simetra 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +40 -2
- package/dist/compiler/index.d.ts +2532 -0
- package/dist/compiler/index.js +38373 -0
- package/dist/model/index.d.ts +5784 -0
- package/dist/model/index.js +4818 -0
- package/dist/schema/index.d.ts +3073 -0
- package/dist/schema/index.js +12210 -0
- package/dist/server/index.d.ts +103 -0
- package/dist/server/index.js +1503 -0
- package/package.json +81 -3
- package/schemas/accumulation-registers.schema.json +996 -0
- package/schemas/catalogs.schema.json +1278 -0
- package/schemas/constants.schema.json +327 -0
- package/schemas/custom-tables.schema.json +860 -0
- package/schemas/documents.schema.json +1285 -0
- package/schemas/enumerations.schema.json +121 -0
- package/schemas/event-subscriptions.schema.json +165 -0
- package/schemas/information-registers.schema.json +1202 -0
- package/schemas/pg-enums.schema.json +81 -0
- package/schemas/project.schema.json +945 -0
- package/schemas/rights-sets.schema.json +248 -0
- package/schemas/roles.schema.json +498 -0
- package/schemas/sql-debt.schema.json +23 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"description": "Editor hint: path to the JSON Schema of this file.",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"format": "uuid",
|
|
12
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$",
|
|
13
|
+
"description": "Stable lowercase UUID v4 identity of the element. Assigned by tooling at creation and never reused; a rename keeps it."
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
18
|
+
"description": "Logical object name in PascalCase."
|
|
19
|
+
},
|
|
20
|
+
"kind": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"const": "RightsSet",
|
|
23
|
+
"description": "Metadata kind; always RightsSet."
|
|
24
|
+
},
|
|
25
|
+
"include": {
|
|
26
|
+
"default": [],
|
|
27
|
+
"description": "Rights sets whose grants this declaration includes.",
|
|
28
|
+
"type": "array",
|
|
29
|
+
"items": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"kind": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"Catalog",
|
|
36
|
+
"Document",
|
|
37
|
+
"Enumeration",
|
|
38
|
+
"InformationRegister",
|
|
39
|
+
"AccumulationRegister",
|
|
40
|
+
"Constant",
|
|
41
|
+
"CustomTable",
|
|
42
|
+
"PgEnum",
|
|
43
|
+
"EventSubscription",
|
|
44
|
+
"RightsSet",
|
|
45
|
+
"Role"
|
|
46
|
+
],
|
|
47
|
+
"description": "Kind of the referenced metadata object."
|
|
48
|
+
},
|
|
49
|
+
"name": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
52
|
+
"description": "Logical name of the referenced object."
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"kind",
|
|
57
|
+
"name"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"description": "Reference to a metadata object by kind and logical name; the compiler resolves it to an id."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"grants": {
|
|
64
|
+
"default": [],
|
|
65
|
+
"description": "Grants of the set; a set has no level and cannot deny.",
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"anyOf": [
|
|
69
|
+
{
|
|
70
|
+
"type": "object",
|
|
71
|
+
"properties": {
|
|
72
|
+
"grantAll": {
|
|
73
|
+
"type": "object",
|
|
74
|
+
"properties": {
|
|
75
|
+
"extent": {
|
|
76
|
+
"anyOf": [
|
|
77
|
+
{
|
|
78
|
+
"type": "string",
|
|
79
|
+
"const": "any"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"type": "string",
|
|
83
|
+
"const": "own"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"dimension": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
91
|
+
"description": "Name of a project access dimension."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"dimension"
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"description": "Rows the grant opens: any row, own rows, or rows with a value of an access dimension of the user."
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"extent"
|
|
105
|
+
],
|
|
106
|
+
"additionalProperties": false,
|
|
107
|
+
"description": "Grant every action the role level allows on every object of the level that supports the extent."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"required": [
|
|
111
|
+
"grantAll"
|
|
112
|
+
],
|
|
113
|
+
"additionalProperties": false
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"grant": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"objects": {
|
|
122
|
+
"anyOf": [
|
|
123
|
+
{
|
|
124
|
+
"minItems": 1,
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"kind": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"enum": [
|
|
132
|
+
"Catalog",
|
|
133
|
+
"Document",
|
|
134
|
+
"Enumeration",
|
|
135
|
+
"InformationRegister",
|
|
136
|
+
"AccumulationRegister",
|
|
137
|
+
"Constant",
|
|
138
|
+
"CustomTable",
|
|
139
|
+
"PgEnum",
|
|
140
|
+
"EventSubscription",
|
|
141
|
+
"RightsSet",
|
|
142
|
+
"Role"
|
|
143
|
+
],
|
|
144
|
+
"description": "Kind of the referenced metadata object."
|
|
145
|
+
},
|
|
146
|
+
"name": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
149
|
+
"description": "Logical name of the referenced object."
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"kind",
|
|
154
|
+
"name"
|
|
155
|
+
],
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"description": "Reference to a metadata object by kind and logical name; the compiler resolves it to an id."
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"withAction": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"enum": [
|
|
166
|
+
"read",
|
|
167
|
+
"create",
|
|
168
|
+
"update",
|
|
169
|
+
"markDeletion",
|
|
170
|
+
"delete",
|
|
171
|
+
"post",
|
|
172
|
+
"unpost",
|
|
173
|
+
"write"
|
|
174
|
+
],
|
|
175
|
+
"description": "Standard action word; selects every object of the role level that has it."
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"withAction"
|
|
180
|
+
],
|
|
181
|
+
"additionalProperties": false
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"description": "Objects of the grant: a list, or every object of the role level with an action."
|
|
185
|
+
},
|
|
186
|
+
"actions": {
|
|
187
|
+
"minItems": 1,
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
192
|
+
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
193
|
+
},
|
|
194
|
+
"description": "Standard action words, or names of custom actions of the single object of the grant."
|
|
195
|
+
},
|
|
196
|
+
"extent": {
|
|
197
|
+
"anyOf": [
|
|
198
|
+
{
|
|
199
|
+
"type": "string",
|
|
200
|
+
"const": "any"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"type": "string",
|
|
204
|
+
"const": "own"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"dimension": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
212
|
+
"description": "Name of a project access dimension."
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"required": [
|
|
216
|
+
"dimension"
|
|
217
|
+
],
|
|
218
|
+
"additionalProperties": false
|
|
219
|
+
}
|
|
220
|
+
],
|
|
221
|
+
"description": "Rows the grant opens: any row, own rows, or rows with a value of an access dimension of the user."
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"required": [
|
|
225
|
+
"objects",
|
|
226
|
+
"actions",
|
|
227
|
+
"extent"
|
|
228
|
+
],
|
|
229
|
+
"additionalProperties": false,
|
|
230
|
+
"description": "Grant the actions on the objects within the extent."
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"required": [
|
|
234
|
+
"grant"
|
|
235
|
+
],
|
|
236
|
+
"additionalProperties": false
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"required": [
|
|
243
|
+
"name",
|
|
244
|
+
"kind"
|
|
245
|
+
],
|
|
246
|
+
"additionalProperties": false,
|
|
247
|
+
"$id": "rights-sets.schema.json"
|
|
248
|
+
}
|