simetra 0.1.0 → 0.3.0-next.1
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/README.md +1 -0
- package/dist/channel-grant-BATD6oQu.js +15 -0
- package/dist/compiler/index.d.ts +1470 -227
- package/dist/compiler/index.js +39407 -14041
- package/dist/data/centrifugo/index.d.ts +24 -0
- package/dist/data/centrifugo/index.js +173 -0
- package/dist/data/index.d.ts +27 -0
- package/dist/data/index.js +9779 -0
- package/dist/data/react/index.d.ts +103 -0
- package/dist/data/react/index.js +214 -0
- package/dist/grant-Zg0hmqK7.d.ts +11 -0
- package/dist/handle-C6PFsnUX.js +44 -0
- package/dist/holder-CkR-qRYU.d.ts +585 -0
- package/dist/model/index.d.ts +5240 -276
- package/dist/model/index.js +5030 -276
- package/dist/schema/index.d.ts +1812 -660
- package/dist/schema/index.js +12649 -6849
- package/dist/server/index.d.ts +747 -0
- package/dist/server/index.js +5356 -0
- package/dist/server/signals/index.d.ts +92 -0
- package/dist/server/signals/index.js +140 -0
- package/dist/shell/index.d.ts +100 -0
- package/dist/shell/index.js +148 -0
- package/dist/ui/index.d.ts +213 -0
- package/dist/ui/index.js +1075 -0
- package/package.json +87 -10
- package/schemas/accumulation-registers.schema.json +46 -5
- package/schemas/catalogs.schema.json +114 -7
- package/schemas/constants.schema.json +31 -5
- package/schemas/custom-tables.schema.json +77 -2
- package/schemas/documents.schema.json +83 -5
- package/schemas/functions.schema.json +129 -0
- package/schemas/information-registers.schema.json +47 -5
- package/schemas/project.schema.json +266 -4
- package/schemas/rights-sets.schema.json +3 -1
- package/schemas/roles.schema.json +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simetra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-next.1",
|
|
4
4
|
"description": "Metadata-driven platform for business applications on Postgres: metamodel, compiler and schema engine",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metadata",
|
|
@@ -30,21 +30,64 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@libpg-query/parser": "17.8.0",
|
|
32
32
|
"jsonc-parser": "3.3.1",
|
|
33
|
-
"libpg-query": "17.
|
|
34
|
-
"zod": "^4.6.
|
|
33
|
+
"libpg-query": "17.8.2",
|
|
34
|
+
"zod": "^4.6.7"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"centrifuge": "^5.8.0",
|
|
38
|
+
"@tanstack/react-form": "^1.33.5",
|
|
39
|
+
"@tanstack/react-router": "^1.170.46",
|
|
40
|
+
"@tanstack/react-virtual": "^3.14.26",
|
|
41
|
+
"react": "^19.3.1",
|
|
42
|
+
"react-dom": "^19.3.1"
|
|
43
|
+
},
|
|
44
|
+
"peerDependenciesMeta": {
|
|
45
|
+
"centrifuge": {
|
|
46
|
+
"optional": true
|
|
47
|
+
},
|
|
48
|
+
"@tanstack/react-form": {
|
|
49
|
+
"optional": true
|
|
50
|
+
},
|
|
51
|
+
"@tanstack/react-router": {
|
|
52
|
+
"optional": true
|
|
53
|
+
},
|
|
54
|
+
"@tanstack/react-virtual": {
|
|
55
|
+
"optional": true
|
|
56
|
+
},
|
|
57
|
+
"react": {
|
|
58
|
+
"optional": true
|
|
59
|
+
},
|
|
60
|
+
"react-dom": {
|
|
61
|
+
"optional": true
|
|
62
|
+
}
|
|
35
63
|
},
|
|
36
64
|
"devDependencies": {
|
|
65
|
+
"@aws-sdk/client-s3": "3.1175.0",
|
|
37
66
|
"@eslint/js": "^10.0.1",
|
|
38
|
-
"@
|
|
67
|
+
"@tanstack/react-form": "1.33.5",
|
|
68
|
+
"@tanstack/react-router": "1.170.46",
|
|
69
|
+
"@tanstack/react-virtual": "3.14.26",
|
|
70
|
+
"@testing-library/dom": "10.4.2",
|
|
71
|
+
"@testing-library/react": "16.3.3",
|
|
72
|
+
"@types/node": "^24.19.2",
|
|
39
73
|
"@types/pg": "^8.23.1",
|
|
74
|
+
"@types/react": "19.3.0",
|
|
75
|
+
"@types/react-dom": "19.3.0",
|
|
40
76
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
41
|
-
"
|
|
77
|
+
"better-auth": "1.7.12",
|
|
78
|
+
"centrifuge": "5.8.0",
|
|
79
|
+
"eslint": "^10.14.0",
|
|
80
|
+
"fast-check": "4.10.2",
|
|
81
|
+
"jsdom": "31.0.1",
|
|
82
|
+
"kysely": "0.29.7",
|
|
42
83
|
"pg": "8.23.1",
|
|
43
|
-
"
|
|
84
|
+
"react": "19.3.1",
|
|
85
|
+
"react-dom": "19.3.1",
|
|
86
|
+
"tsdown": "0.23.5",
|
|
44
87
|
"tsx": "4.23.15",
|
|
45
88
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
46
|
-
"typescript-eslint": "^8.
|
|
47
|
-
"vitest": "^5.0
|
|
89
|
+
"typescript-eslint": "^8.72.1",
|
|
90
|
+
"vitest": "^5.1.0"
|
|
48
91
|
},
|
|
49
92
|
"exports": {
|
|
50
93
|
"./model": {
|
|
@@ -59,6 +102,34 @@
|
|
|
59
102
|
"types": "./dist/schema/index.d.ts",
|
|
60
103
|
"import": "./dist/schema/index.js"
|
|
61
104
|
},
|
|
105
|
+
"./server": {
|
|
106
|
+
"types": "./dist/server/index.d.ts",
|
|
107
|
+
"import": "./dist/server/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./server/signals": {
|
|
110
|
+
"types": "./dist/server/signals/index.d.ts",
|
|
111
|
+
"import": "./dist/server/signals/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./data": {
|
|
114
|
+
"types": "./dist/data/index.d.ts",
|
|
115
|
+
"import": "./dist/data/index.js"
|
|
116
|
+
},
|
|
117
|
+
"./data/react": {
|
|
118
|
+
"types": "./dist/data/react/index.d.ts",
|
|
119
|
+
"import": "./dist/data/react/index.js"
|
|
120
|
+
},
|
|
121
|
+
"./data/centrifugo": {
|
|
122
|
+
"types": "./dist/data/centrifugo/index.d.ts",
|
|
123
|
+
"import": "./dist/data/centrifugo/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./ui": {
|
|
126
|
+
"types": "./dist/ui/index.d.ts",
|
|
127
|
+
"import": "./dist/ui/index.js"
|
|
128
|
+
},
|
|
129
|
+
"./shell": {
|
|
130
|
+
"types": "./dist/shell/index.d.ts",
|
|
131
|
+
"import": "./dist/shell/index.js"
|
|
132
|
+
},
|
|
62
133
|
"./schemas/*": "./schemas/*"
|
|
63
134
|
},
|
|
64
135
|
"publishConfig": {
|
|
@@ -69,10 +140,16 @@
|
|
|
69
140
|
"build:package": "tsdown",
|
|
70
141
|
"lint": "eslint",
|
|
71
142
|
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
|
72
|
-
"typecheck": "tsc --noEmit",
|
|
143
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.dom.json",
|
|
73
144
|
"test": "vitest run --project unit",
|
|
145
|
+
"test:docs": "vitest run --project unit .docs.test.",
|
|
74
146
|
"test:watch": "vitest --project unit",
|
|
75
147
|
"test:db": "vitest run --project db",
|
|
76
|
-
"
|
|
148
|
+
"test:db:supabase": "vitest run --project db-supabase",
|
|
149
|
+
"schemas:update": "UPDATE_JSON_SCHEMAS=1 vitest run --project unit json-schema",
|
|
150
|
+
"bench:rights": "vitest run --project bench rights",
|
|
151
|
+
"bench:tabular": "vitest run --project bench tabular",
|
|
152
|
+
"catalog-functions": "node scripts/catalog-functions.ts",
|
|
153
|
+
"builtin-functions": "node scripts/builtin-functions.ts"
|
|
77
154
|
}
|
|
78
155
|
}
|
|
@@ -135,11 +135,36 @@
|
|
|
135
135
|
"additionalProperties": false
|
|
136
136
|
},
|
|
137
137
|
"publicRead": {
|
|
138
|
-
"description": "API role that may read
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
"description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
|
|
139
|
+
"anyOf": [
|
|
140
|
+
{
|
|
141
|
+
"type": "string",
|
|
142
|
+
"enum": [
|
|
143
|
+
"authenticated",
|
|
144
|
+
"anon"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"role": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": [
|
|
153
|
+
"authenticated",
|
|
154
|
+
"anon"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
"published": {
|
|
158
|
+
"type": "boolean",
|
|
159
|
+
"const": true
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"role",
|
|
164
|
+
"published"
|
|
165
|
+
],
|
|
166
|
+
"additionalProperties": false
|
|
167
|
+
}
|
|
143
168
|
]
|
|
144
169
|
},
|
|
145
170
|
"customActions": {
|
|
@@ -381,6 +406,7 @@
|
|
|
381
406
|
"DateTime",
|
|
382
407
|
"Bytes",
|
|
383
408
|
"Json",
|
|
409
|
+
"RichText",
|
|
384
410
|
"Ref"
|
|
385
411
|
],
|
|
386
412
|
"description": "Logical value type."
|
|
@@ -756,6 +782,7 @@
|
|
|
756
782
|
"DateTime",
|
|
757
783
|
"Bytes",
|
|
758
784
|
"Json",
|
|
785
|
+
"RichText",
|
|
759
786
|
"Ref"
|
|
760
787
|
],
|
|
761
788
|
"description": "Logical value type."
|
|
@@ -977,6 +1004,20 @@
|
|
|
977
1004
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
978
1005
|
"type": "boolean",
|
|
979
1006
|
"const": true
|
|
1007
|
+
},
|
|
1008
|
+
"load": {
|
|
1009
|
+
"description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
|
|
1010
|
+
"type": "string",
|
|
1011
|
+
"enum": [
|
|
1012
|
+
"eager",
|
|
1013
|
+
"lazy"
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"maxBytes": {
|
|
1017
|
+
"description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
|
|
1018
|
+
"type": "integer",
|
|
1019
|
+
"exclusiveMinimum": 0,
|
|
1020
|
+
"maximum": 9007199254740991
|
|
980
1021
|
}
|
|
981
1022
|
},
|
|
982
1023
|
"required": [
|
|
@@ -71,9 +71,14 @@
|
|
|
71
71
|
"minLength": 1
|
|
72
72
|
},
|
|
73
73
|
"role": {
|
|
74
|
-
"description": "System role of the catalog: users marks the users catalog that the platform layer provisions and references; at most one per project,
|
|
74
|
+
"description": "System role of the catalog: users marks the users catalog that the platform layer provisions and references (at most one per project, unscoped); rightsRoles and roleAssignments mark the custom roles and role assignments catalogs of a rights level, the level being the catalog's own scope (at most one per role and level); languages marks the catalog of data languages (unscoped, at most one per project, a code of the form language[-Script][-REGION]).",
|
|
75
75
|
"type": "string",
|
|
76
|
-
"
|
|
76
|
+
"enum": [
|
|
77
|
+
"users",
|
|
78
|
+
"rightsRoles",
|
|
79
|
+
"roleAssignments",
|
|
80
|
+
"languages"
|
|
81
|
+
]
|
|
77
82
|
},
|
|
78
83
|
"codeLength": {
|
|
79
84
|
"default": 9,
|
|
@@ -231,11 +236,36 @@
|
|
|
231
236
|
"additionalProperties": false
|
|
232
237
|
},
|
|
233
238
|
"publicRead": {
|
|
234
|
-
"description": "API role that may read
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
"description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
|
|
240
|
+
"anyOf": [
|
|
241
|
+
{
|
|
242
|
+
"type": "string",
|
|
243
|
+
"enum": [
|
|
244
|
+
"authenticated",
|
|
245
|
+
"anon"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"role": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"enum": [
|
|
254
|
+
"authenticated",
|
|
255
|
+
"anon"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"published": {
|
|
259
|
+
"type": "boolean",
|
|
260
|
+
"const": true
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"role",
|
|
265
|
+
"published"
|
|
266
|
+
],
|
|
267
|
+
"additionalProperties": false
|
|
268
|
+
}
|
|
239
269
|
]
|
|
240
270
|
},
|
|
241
271
|
"customActions": {
|
|
@@ -430,6 +460,30 @@
|
|
|
430
460
|
"description": "Marks the catalog as a rights container: objects bind to its rows with containerBinding, and a grant on the container covers them.",
|
|
431
461
|
"type": "boolean"
|
|
432
462
|
},
|
|
463
|
+
"storage": {
|
|
464
|
+
"type": "object",
|
|
465
|
+
"properties": {
|
|
466
|
+
"maxBytes": {
|
|
467
|
+
"type": "integer",
|
|
468
|
+
"minimum": 1,
|
|
469
|
+
"maximum": 104857600,
|
|
470
|
+
"description": "Largest accepted file size in bytes, 1 to the platform ceiling."
|
|
471
|
+
},
|
|
472
|
+
"mediaTypes": {
|
|
473
|
+
"type": "array",
|
|
474
|
+
"items": {
|
|
475
|
+
"type": "string"
|
|
476
|
+
},
|
|
477
|
+
"description": "Accepted content types: a non-empty list of unique lowercase type/subtype strings without parameters."
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
"required": [
|
|
481
|
+
"maxBytes",
|
|
482
|
+
"mediaTypes"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false,
|
|
485
|
+
"description": "File storage of a catalog: each row is one file, its bytes live outside the database."
|
|
486
|
+
},
|
|
433
487
|
"standardAttributeOverrides": {
|
|
434
488
|
"default": {},
|
|
435
489
|
"description": "Custom titles and descriptions of derived standard attributes, keyed by standard attribute name.",
|
|
@@ -542,6 +596,7 @@
|
|
|
542
596
|
"DateTime",
|
|
543
597
|
"Bytes",
|
|
544
598
|
"Json",
|
|
599
|
+
"RichText",
|
|
545
600
|
"Ref"
|
|
546
601
|
],
|
|
547
602
|
"description": "Logical value type."
|
|
@@ -764,6 +819,20 @@
|
|
|
764
819
|
"type": "boolean",
|
|
765
820
|
"const": true
|
|
766
821
|
},
|
|
822
|
+
"load": {
|
|
823
|
+
"description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
|
|
824
|
+
"type": "string",
|
|
825
|
+
"enum": [
|
|
826
|
+
"eager",
|
|
827
|
+
"lazy"
|
|
828
|
+
]
|
|
829
|
+
},
|
|
830
|
+
"maxBytes": {
|
|
831
|
+
"description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
|
|
832
|
+
"type": "integer",
|
|
833
|
+
"exclusiveMinimum": 0,
|
|
834
|
+
"maximum": 9007199254740991
|
|
835
|
+
},
|
|
767
836
|
"uniqueWithin": {
|
|
768
837
|
"description": "Narrows uniqueness to the owner or the parent of the object (needs unique; own attributes of an object whose kind has that standard attribute).",
|
|
769
838
|
"type": "string",
|
|
@@ -930,6 +999,7 @@
|
|
|
930
999
|
"DateTime",
|
|
931
1000
|
"Bytes",
|
|
932
1001
|
"Json",
|
|
1002
|
+
"RichText",
|
|
933
1003
|
"Ref"
|
|
934
1004
|
],
|
|
935
1005
|
"description": "Logical value type."
|
|
@@ -1151,6 +1221,20 @@
|
|
|
1151
1221
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
1152
1222
|
"type": "boolean",
|
|
1153
1223
|
"const": true
|
|
1224
|
+
},
|
|
1225
|
+
"load": {
|
|
1226
|
+
"description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
|
|
1227
|
+
"type": "string",
|
|
1228
|
+
"enum": [
|
|
1229
|
+
"eager",
|
|
1230
|
+
"lazy"
|
|
1231
|
+
]
|
|
1232
|
+
},
|
|
1233
|
+
"maxBytes": {
|
|
1234
|
+
"description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
|
|
1235
|
+
"type": "integer",
|
|
1236
|
+
"exclusiveMinimum": 0,
|
|
1237
|
+
"maximum": 9007199254740991
|
|
1154
1238
|
}
|
|
1155
1239
|
},
|
|
1156
1240
|
"required": [
|
|
@@ -1263,6 +1347,29 @@
|
|
|
1263
1347
|
"additionalProperties": false,
|
|
1264
1348
|
"description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
|
|
1265
1349
|
}
|
|
1350
|
+
},
|
|
1351
|
+
"search": {
|
|
1352
|
+
"type": "object",
|
|
1353
|
+
"properties": {
|
|
1354
|
+
"fields": {
|
|
1355
|
+
"description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
|
|
1356
|
+
"type": "array",
|
|
1357
|
+
"items": {
|
|
1358
|
+
"type": "string",
|
|
1359
|
+
"minLength": 1
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
"mode": {
|
|
1363
|
+
"description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
|
|
1364
|
+
"type": "string",
|
|
1365
|
+
"enum": [
|
|
1366
|
+
"startsWith",
|
|
1367
|
+
"contains"
|
|
1368
|
+
]
|
|
1369
|
+
}
|
|
1370
|
+
},
|
|
1371
|
+
"additionalProperties": false,
|
|
1372
|
+
"description": "Search fields and mode of the object."
|
|
1266
1373
|
}
|
|
1267
1374
|
},
|
|
1268
1375
|
"required": [
|
|
@@ -71,11 +71,36 @@
|
|
|
71
71
|
"minLength": 1
|
|
72
72
|
},
|
|
73
73
|
"publicRead": {
|
|
74
|
-
"description": "API role that may read
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
"description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
|
|
75
|
+
"anyOf": [
|
|
76
|
+
{
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"authenticated",
|
|
80
|
+
"anon"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "object",
|
|
85
|
+
"properties": {
|
|
86
|
+
"role": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"enum": [
|
|
89
|
+
"authenticated",
|
|
90
|
+
"anon"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"published": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"const": true
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"role",
|
|
100
|
+
"published"
|
|
101
|
+
],
|
|
102
|
+
"additionalProperties": false
|
|
103
|
+
}
|
|
79
104
|
]
|
|
80
105
|
},
|
|
81
106
|
"customActions": {
|
|
@@ -157,6 +182,7 @@
|
|
|
157
182
|
"DateTime",
|
|
158
183
|
"Bytes",
|
|
159
184
|
"Json",
|
|
185
|
+
"RichText",
|
|
160
186
|
"Ref"
|
|
161
187
|
],
|
|
162
188
|
"description": "Logical value type."
|
|
@@ -182,6 +182,7 @@
|
|
|
182
182
|
"DateTime",
|
|
183
183
|
"Bytes",
|
|
184
184
|
"Json",
|
|
185
|
+
"RichText",
|
|
185
186
|
"Ref",
|
|
186
187
|
"PgEnum",
|
|
187
188
|
"Raw"
|
|
@@ -489,7 +490,7 @@
|
|
|
489
490
|
"pattern": "^[A-Za-z][A-Za-z0-9_]*$",
|
|
490
491
|
"description": "Logical element name (attribute, section, column). The casing style is checked against the project naming setting."
|
|
491
492
|
},
|
|
492
|
-
"description": "Logical names of columns of the referenced
|
|
493
|
+
"description": "Logical names of columns of the referenced CustomTable."
|
|
493
494
|
}
|
|
494
495
|
},
|
|
495
496
|
"required": [
|
|
@@ -498,6 +499,57 @@
|
|
|
498
499
|
],
|
|
499
500
|
"additionalProperties": false
|
|
500
501
|
},
|
|
502
|
+
{
|
|
503
|
+
"type": "object",
|
|
504
|
+
"properties": {
|
|
505
|
+
"object": {
|
|
506
|
+
"type": "object",
|
|
507
|
+
"properties": {
|
|
508
|
+
"kind": {
|
|
509
|
+
"type": "string",
|
|
510
|
+
"enum": [
|
|
511
|
+
"Catalog",
|
|
512
|
+
"Document",
|
|
513
|
+
"Enumeration",
|
|
514
|
+
"InformationRegister",
|
|
515
|
+
"AccumulationRegister",
|
|
516
|
+
"Constant",
|
|
517
|
+
"CustomTable",
|
|
518
|
+
"PgEnum",
|
|
519
|
+
"EventSubscription",
|
|
520
|
+
"RightsSet",
|
|
521
|
+
"Role"
|
|
522
|
+
],
|
|
523
|
+
"description": "Kind of the referenced metadata object."
|
|
524
|
+
},
|
|
525
|
+
"name": {
|
|
526
|
+
"type": "string",
|
|
527
|
+
"pattern": "^[A-Z][A-Za-z0-9]*$",
|
|
528
|
+
"description": "Logical name of the referenced object."
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"required": [
|
|
532
|
+
"kind",
|
|
533
|
+
"name"
|
|
534
|
+
],
|
|
535
|
+
"additionalProperties": false,
|
|
536
|
+
"description": "Referenced object of a kind (not a CustomTable)."
|
|
537
|
+
},
|
|
538
|
+
"key": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"enum": [
|
|
541
|
+
"ref",
|
|
542
|
+
"scopedRef"
|
|
543
|
+
],
|
|
544
|
+
"description": "Referenced key of the kind table: \"ref\" is its key column (one local column); \"scopedRef\" is the pair (scope column, key) of a table with its own scope column (two local columns: scope, then key)."
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
"required": [
|
|
548
|
+
"object",
|
|
549
|
+
"key"
|
|
550
|
+
],
|
|
551
|
+
"additionalProperties": false
|
|
552
|
+
},
|
|
501
553
|
{
|
|
502
554
|
"type": "object",
|
|
503
555
|
"properties": {
|
|
@@ -539,7 +591,7 @@
|
|
|
539
591
|
"additionalProperties": false
|
|
540
592
|
}
|
|
541
593
|
],
|
|
542
|
-
"description": "Referenced target: a
|
|
594
|
+
"description": "Referenced target: columns of a CustomTable, the key of a kind table, or an external table."
|
|
543
595
|
},
|
|
544
596
|
"onDelete": {
|
|
545
597
|
"default": "noAction",
|
|
@@ -797,6 +849,29 @@
|
|
|
797
849
|
"enabled",
|
|
798
850
|
"forced"
|
|
799
851
|
]
|
|
852
|
+
},
|
|
853
|
+
"search": {
|
|
854
|
+
"type": "object",
|
|
855
|
+
"properties": {
|
|
856
|
+
"fields": {
|
|
857
|
+
"description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
|
|
858
|
+
"type": "array",
|
|
859
|
+
"items": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"minLength": 1
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"mode": {
|
|
865
|
+
"description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
|
|
866
|
+
"type": "string",
|
|
867
|
+
"enum": [
|
|
868
|
+
"startsWith",
|
|
869
|
+
"contains"
|
|
870
|
+
]
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
"additionalProperties": false,
|
|
874
|
+
"description": "Search fields and mode of the object."
|
|
800
875
|
}
|
|
801
876
|
},
|
|
802
877
|
"required": [
|
|
@@ -254,11 +254,36 @@
|
|
|
254
254
|
"type": "boolean"
|
|
255
255
|
},
|
|
256
256
|
"publicRead": {
|
|
257
|
-
"description": "API role that may read
|
|
258
|
-
"
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
257
|
+
"description": "API role that may read the object: authenticated users or anonymous visitors. A string opens every row; an object { role, published: true } opens only rows marked published. Absent means no public read.",
|
|
258
|
+
"anyOf": [
|
|
259
|
+
{
|
|
260
|
+
"type": "string",
|
|
261
|
+
"enum": [
|
|
262
|
+
"authenticated",
|
|
263
|
+
"anon"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"role": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"enum": [
|
|
272
|
+
"authenticated",
|
|
273
|
+
"anon"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"published": {
|
|
277
|
+
"type": "boolean",
|
|
278
|
+
"const": true
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"role",
|
|
283
|
+
"published"
|
|
284
|
+
],
|
|
285
|
+
"additionalProperties": false
|
|
286
|
+
}
|
|
262
287
|
]
|
|
263
288
|
},
|
|
264
289
|
"customActions": {
|
|
@@ -561,6 +586,7 @@
|
|
|
561
586
|
"DateTime",
|
|
562
587
|
"Bytes",
|
|
563
588
|
"Json",
|
|
589
|
+
"RichText",
|
|
564
590
|
"Ref"
|
|
565
591
|
],
|
|
566
592
|
"description": "Logical value type."
|
|
@@ -782,6 +808,20 @@
|
|
|
782
808
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
783
809
|
"type": "boolean",
|
|
784
810
|
"const": true
|
|
811
|
+
},
|
|
812
|
+
"load": {
|
|
813
|
+
"description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
|
|
814
|
+
"type": "string",
|
|
815
|
+
"enum": [
|
|
816
|
+
"eager",
|
|
817
|
+
"lazy"
|
|
818
|
+
]
|
|
819
|
+
},
|
|
820
|
+
"maxBytes": {
|
|
821
|
+
"description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
|
|
822
|
+
"type": "integer",
|
|
823
|
+
"exclusiveMinimum": 0,
|
|
824
|
+
"maximum": 9007199254740991
|
|
785
825
|
}
|
|
786
826
|
},
|
|
787
827
|
"required": [
|
|
@@ -941,6 +981,7 @@
|
|
|
941
981
|
"DateTime",
|
|
942
982
|
"Bytes",
|
|
943
983
|
"Json",
|
|
984
|
+
"RichText",
|
|
944
985
|
"Ref"
|
|
945
986
|
],
|
|
946
987
|
"description": "Logical value type."
|
|
@@ -1162,6 +1203,20 @@
|
|
|
1162
1203
|
"description": "Marks the attribute as personal data: anonymization sets its columns to NULL, so it cannot be required.",
|
|
1163
1204
|
"type": "boolean",
|
|
1164
1205
|
"const": true
|
|
1206
|
+
},
|
|
1207
|
+
"load": {
|
|
1208
|
+
"description": "Whether list reads omit the attribute (\"lazy\"; a card read returns it); default lazy for Bytes and RichText of the header, eager otherwise. Not allowed on a polymorphic Ref, a tabular section attribute, a register attribute or a rights carrier.",
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"enum": [
|
|
1211
|
+
"eager",
|
|
1212
|
+
"lazy"
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
"maxBytes": {
|
|
1216
|
+
"description": "Most UTF-8 bytes of the JSON wire value a command may write; Text, Json, RichText, Bytes or an array only (the whole array counts). Default 1 MiB for Json, RichText and Bytes, 64 KiB for Text and arrays. Not allowed on a register attribute.",
|
|
1217
|
+
"type": "integer",
|
|
1218
|
+
"exclusiveMinimum": 0,
|
|
1219
|
+
"maximum": 9007199254740991
|
|
1165
1220
|
}
|
|
1166
1221
|
},
|
|
1167
1222
|
"required": [
|
|
@@ -1274,6 +1329,29 @@
|
|
|
1274
1329
|
"additionalProperties": false,
|
|
1275
1330
|
"description": "Non-unique btree index over attributes of the same table; the scope carrier is added first automatically."
|
|
1276
1331
|
}
|
|
1332
|
+
},
|
|
1333
|
+
"search": {
|
|
1334
|
+
"type": "object",
|
|
1335
|
+
"properties": {
|
|
1336
|
+
"fields": {
|
|
1337
|
+
"description": "Logical names of header attributes (standard and custom) to search by; omitted means the kind's default presentation fields.",
|
|
1338
|
+
"type": "array",
|
|
1339
|
+
"items": {
|
|
1340
|
+
"type": "string",
|
|
1341
|
+
"minLength": 1
|
|
1342
|
+
}
|
|
1343
|
+
},
|
|
1344
|
+
"mode": {
|
|
1345
|
+
"description": "Search mode: startsWith (prefix, indexed) or contains (substring, scope scan); contains by default.",
|
|
1346
|
+
"type": "string",
|
|
1347
|
+
"enum": [
|
|
1348
|
+
"startsWith",
|
|
1349
|
+
"contains"
|
|
1350
|
+
]
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
"additionalProperties": false,
|
|
1354
|
+
"description": "Search fields and mode of the object."
|
|
1277
1355
|
}
|
|
1278
1356
|
},
|
|
1279
1357
|
"required": [
|