@panneau/protocol 5.0.0-alpha.11 → 5.0.0-alpha.13
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/dist/conformance/index.d.ts +6 -0
- package/dist/conformance/index.d.ts.map +1 -1
- package/dist/conformance/index.js +185 -2
- package/dist/conformance/index.js.map +1 -1
- package/dist/constants.d.ts +12 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +22 -2
- package/dist/constants.js.map +1 -1
- package/dist/context.d.ts +15 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +34 -0
- package/dist/context.js.map +1 -0
- package/dist/index.js +6 -5
- package/dist/lint.d.ts.map +1 -1
- package/dist/lint.js +17 -0
- package/dist/lint.js.map +1 -1
- package/dist/mock/index.d.ts +25 -4
- package/dist/mock/index.d.ts.map +1 -1
- package/dist/mock/index.js +129 -29
- package/dist/mock/index.js.map +1 -1
- package/dist/openapi.d.ts.map +1 -1
- package/dist/openapi.js +57 -5
- package/dist/openapi.js.map +1 -1
- package/dist/rules.d.ts +6 -0
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +20 -5
- package/dist/rules.js.map +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +3 -2
- package/dist/schemas/action.d.ts +2 -0
- package/dist/schemas/action.d.ts.map +1 -1
- package/dist/schemas/api.d.ts +9 -0
- package/dist/schemas/api.d.ts.map +1 -1
- package/dist/schemas/api.js +5 -3
- package/dist/schemas/api.js.map +1 -1
- package/dist/schemas/definition.d.ts +67 -0
- package/dist/schemas/definition.d.ts.map +1 -1
- package/dist/schemas/definition.js +45 -2
- package/dist/schemas/definition.js.map +1 -1
- package/dist/schemas/field.d.ts +3 -0
- package/dist/schemas/field.d.ts.map +1 -1
- package/dist/schemas/field.js +6 -4
- package/dist/schemas/field.js.map +1 -1
- package/dist/schemas/index.d.ts +102 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +9 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/list.d.ts +15 -0
- package/dist/schemas/list.d.ts.map +1 -1
- package/dist/schemas/list.js +13 -5
- package/dist/schemas/list.js.map +1 -1
- package/dist/schemas/resource.d.ts +11 -0
- package/dist/schemas/resource.d.ts.map +1 -1
- package/package.json +1 -1
- package/schema/boot.schema.json +136 -10
- package/schema/definition.schema.json +136 -10
- package/schema/openapi.json +523 -32
package/schema/boot.schema.json
CHANGED
|
@@ -143,6 +143,9 @@
|
|
|
143
143
|
"uploads": {
|
|
144
144
|
"$ref": "#/$defs/Uploads"
|
|
145
145
|
},
|
|
146
|
+
"context": {
|
|
147
|
+
"$ref": "#/$defs/DefinitionContext"
|
|
148
|
+
},
|
|
146
149
|
"theme": {
|
|
147
150
|
"$ref": "#/$defs/DefinitionTheme"
|
|
148
151
|
},
|
|
@@ -312,6 +315,9 @@
|
|
|
312
315
|
"readOnly": {
|
|
313
316
|
"type": "boolean"
|
|
314
317
|
},
|
|
318
|
+
"abilities": {
|
|
319
|
+
"$ref": "#/$defs/Abilities"
|
|
320
|
+
},
|
|
315
321
|
"createOnly": {
|
|
316
322
|
"type": "boolean"
|
|
317
323
|
},
|
|
@@ -414,6 +420,15 @@
|
|
|
414
420
|
],
|
|
415
421
|
"additionalProperties": {}
|
|
416
422
|
},
|
|
423
|
+
"Abilities": {
|
|
424
|
+
"type": "object",
|
|
425
|
+
"propertyNames": {
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
"additionalProperties": {
|
|
429
|
+
"type": "boolean"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
417
432
|
"Rule": {
|
|
418
433
|
"anyOf": [
|
|
419
434
|
{
|
|
@@ -507,7 +522,8 @@
|
|
|
507
522
|
"enum": [
|
|
508
523
|
"email",
|
|
509
524
|
"url",
|
|
510
|
-
"json"
|
|
525
|
+
"json",
|
|
526
|
+
"tel"
|
|
511
527
|
]
|
|
512
528
|
},
|
|
513
529
|
"message": {
|
|
@@ -942,6 +958,9 @@
|
|
|
942
958
|
},
|
|
943
959
|
"selectable": {
|
|
944
960
|
"type": "boolean"
|
|
961
|
+
},
|
|
962
|
+
"calendar": {
|
|
963
|
+
"$ref": "#/$defs/ListCalendar"
|
|
945
964
|
}
|
|
946
965
|
},
|
|
947
966
|
"additionalProperties": {}
|
|
@@ -979,6 +998,12 @@
|
|
|
979
998
|
"center",
|
|
980
999
|
"end"
|
|
981
1000
|
]
|
|
1001
|
+
},
|
|
1002
|
+
"hidden": {
|
|
1003
|
+
"type": "boolean"
|
|
1004
|
+
},
|
|
1005
|
+
"hideable": {
|
|
1006
|
+
"type": "boolean"
|
|
982
1007
|
}
|
|
983
1008
|
},
|
|
984
1009
|
"additionalProperties": {}
|
|
@@ -1017,6 +1042,28 @@
|
|
|
1017
1042
|
],
|
|
1018
1043
|
"additionalProperties": {}
|
|
1019
1044
|
},
|
|
1045
|
+
"ListCalendar": {
|
|
1046
|
+
"type": "object",
|
|
1047
|
+
"properties": {
|
|
1048
|
+
"field": {
|
|
1049
|
+
"type": "string",
|
|
1050
|
+
"minLength": 1
|
|
1051
|
+
},
|
|
1052
|
+
"filter": {
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"minLength": 1
|
|
1055
|
+
},
|
|
1056
|
+
"perPage": {
|
|
1057
|
+
"type": "integer",
|
|
1058
|
+
"exclusiveMinimum": 0,
|
|
1059
|
+
"maximum": 9007199254740991
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
"required": [
|
|
1063
|
+
"field"
|
|
1064
|
+
],
|
|
1065
|
+
"additionalProperties": {}
|
|
1066
|
+
},
|
|
1020
1067
|
"Action": {
|
|
1021
1068
|
"type": "object",
|
|
1022
1069
|
"properties": {
|
|
@@ -1238,15 +1285,6 @@
|
|
|
1238
1285
|
}
|
|
1239
1286
|
]
|
|
1240
1287
|
},
|
|
1241
|
-
"Abilities": {
|
|
1242
|
-
"type": "object",
|
|
1243
|
-
"propertyNames": {
|
|
1244
|
-
"type": "string"
|
|
1245
|
-
},
|
|
1246
|
-
"additionalProperties": {
|
|
1247
|
-
"type": "boolean"
|
|
1248
|
-
}
|
|
1249
|
-
},
|
|
1250
1288
|
"ResourceFeatures": {
|
|
1251
1289
|
"type": "object",
|
|
1252
1290
|
"properties": {
|
|
@@ -1314,6 +1352,9 @@
|
|
|
1314
1352
|
"type": "string",
|
|
1315
1353
|
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
1316
1354
|
}
|
|
1355
|
+
},
|
|
1356
|
+
"abilities": {
|
|
1357
|
+
"$ref": "#/$defs/Abilities"
|
|
1317
1358
|
}
|
|
1318
1359
|
},
|
|
1319
1360
|
"required": [
|
|
@@ -1503,6 +1544,91 @@
|
|
|
1503
1544
|
],
|
|
1504
1545
|
"additionalProperties": {}
|
|
1505
1546
|
},
|
|
1547
|
+
"DefinitionContext": {
|
|
1548
|
+
"type": "object",
|
|
1549
|
+
"properties": {
|
|
1550
|
+
"params": {
|
|
1551
|
+
"minItems": 1,
|
|
1552
|
+
"type": "array",
|
|
1553
|
+
"items": {
|
|
1554
|
+
"$ref": "#/$defs/ContextParam"
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
"required": [
|
|
1559
|
+
"params"
|
|
1560
|
+
],
|
|
1561
|
+
"additionalProperties": {}
|
|
1562
|
+
},
|
|
1563
|
+
"ContextParam": {
|
|
1564
|
+
"type": "object",
|
|
1565
|
+
"properties": {
|
|
1566
|
+
"name": {
|
|
1567
|
+
"type": "string",
|
|
1568
|
+
"pattern": "^(?!(?:resources|pages|media|search|account|auth)$)[A-Za-z_][A-Za-z0-9_]*$"
|
|
1569
|
+
},
|
|
1570
|
+
"label": {
|
|
1571
|
+
"type": "string"
|
|
1572
|
+
},
|
|
1573
|
+
"required": {
|
|
1574
|
+
"type": "boolean"
|
|
1575
|
+
},
|
|
1576
|
+
"fixed": {
|
|
1577
|
+
"type": "boolean"
|
|
1578
|
+
},
|
|
1579
|
+
"allLabel": {
|
|
1580
|
+
"type": "string"
|
|
1581
|
+
},
|
|
1582
|
+
"options": {
|
|
1583
|
+
"type": "array",
|
|
1584
|
+
"items": {
|
|
1585
|
+
"$ref": "#/$defs/ContextOption"
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
"value": {
|
|
1589
|
+
"anyOf": [
|
|
1590
|
+
{
|
|
1591
|
+
"type": "string",
|
|
1592
|
+
"minLength": 1
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"type": "null"
|
|
1596
|
+
}
|
|
1597
|
+
]
|
|
1598
|
+
},
|
|
1599
|
+
"valueLabel": {
|
|
1600
|
+
"type": [
|
|
1601
|
+
"string",
|
|
1602
|
+
"null"
|
|
1603
|
+
]
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
"required": [
|
|
1607
|
+
"name",
|
|
1608
|
+
"label"
|
|
1609
|
+
],
|
|
1610
|
+
"additionalProperties": {}
|
|
1611
|
+
},
|
|
1612
|
+
"ContextOption": {
|
|
1613
|
+
"type": "object",
|
|
1614
|
+
"properties": {
|
|
1615
|
+
"value": {
|
|
1616
|
+
"type": "string",
|
|
1617
|
+
"minLength": 1
|
|
1618
|
+
},
|
|
1619
|
+
"label": {
|
|
1620
|
+
"type": "string"
|
|
1621
|
+
},
|
|
1622
|
+
"description": {
|
|
1623
|
+
"type": "string"
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
"required": [
|
|
1627
|
+
"value",
|
|
1628
|
+
"label"
|
|
1629
|
+
],
|
|
1630
|
+
"additionalProperties": {}
|
|
1631
|
+
},
|
|
1506
1632
|
"DefinitionTheme": {
|
|
1507
1633
|
"type": "object",
|
|
1508
1634
|
"properties": {
|
|
@@ -106,6 +106,9 @@
|
|
|
106
106
|
"uploads": {
|
|
107
107
|
"$ref": "#/$defs/Uploads"
|
|
108
108
|
},
|
|
109
|
+
"context": {
|
|
110
|
+
"$ref": "#/$defs/DefinitionContext"
|
|
111
|
+
},
|
|
109
112
|
"theme": {
|
|
110
113
|
"$ref": "#/$defs/DefinitionTheme"
|
|
111
114
|
},
|
|
@@ -275,6 +278,9 @@
|
|
|
275
278
|
"readOnly": {
|
|
276
279
|
"type": "boolean"
|
|
277
280
|
},
|
|
281
|
+
"abilities": {
|
|
282
|
+
"$ref": "#/$defs/Abilities"
|
|
283
|
+
},
|
|
278
284
|
"createOnly": {
|
|
279
285
|
"type": "boolean"
|
|
280
286
|
},
|
|
@@ -377,6 +383,15 @@
|
|
|
377
383
|
],
|
|
378
384
|
"additionalProperties": {}
|
|
379
385
|
},
|
|
386
|
+
"Abilities": {
|
|
387
|
+
"type": "object",
|
|
388
|
+
"propertyNames": {
|
|
389
|
+
"type": "string"
|
|
390
|
+
},
|
|
391
|
+
"additionalProperties": {
|
|
392
|
+
"type": "boolean"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
380
395
|
"Rule": {
|
|
381
396
|
"anyOf": [
|
|
382
397
|
{
|
|
@@ -470,7 +485,8 @@
|
|
|
470
485
|
"enum": [
|
|
471
486
|
"email",
|
|
472
487
|
"url",
|
|
473
|
-
"json"
|
|
488
|
+
"json",
|
|
489
|
+
"tel"
|
|
474
490
|
]
|
|
475
491
|
},
|
|
476
492
|
"message": {
|
|
@@ -905,6 +921,9 @@
|
|
|
905
921
|
},
|
|
906
922
|
"selectable": {
|
|
907
923
|
"type": "boolean"
|
|
924
|
+
},
|
|
925
|
+
"calendar": {
|
|
926
|
+
"$ref": "#/$defs/ListCalendar"
|
|
908
927
|
}
|
|
909
928
|
},
|
|
910
929
|
"additionalProperties": {}
|
|
@@ -942,6 +961,12 @@
|
|
|
942
961
|
"center",
|
|
943
962
|
"end"
|
|
944
963
|
]
|
|
964
|
+
},
|
|
965
|
+
"hidden": {
|
|
966
|
+
"type": "boolean"
|
|
967
|
+
},
|
|
968
|
+
"hideable": {
|
|
969
|
+
"type": "boolean"
|
|
945
970
|
}
|
|
946
971
|
},
|
|
947
972
|
"additionalProperties": {}
|
|
@@ -980,6 +1005,28 @@
|
|
|
980
1005
|
],
|
|
981
1006
|
"additionalProperties": {}
|
|
982
1007
|
},
|
|
1008
|
+
"ListCalendar": {
|
|
1009
|
+
"type": "object",
|
|
1010
|
+
"properties": {
|
|
1011
|
+
"field": {
|
|
1012
|
+
"type": "string",
|
|
1013
|
+
"minLength": 1
|
|
1014
|
+
},
|
|
1015
|
+
"filter": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"minLength": 1
|
|
1018
|
+
},
|
|
1019
|
+
"perPage": {
|
|
1020
|
+
"type": "integer",
|
|
1021
|
+
"exclusiveMinimum": 0,
|
|
1022
|
+
"maximum": 9007199254740991
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
"required": [
|
|
1026
|
+
"field"
|
|
1027
|
+
],
|
|
1028
|
+
"additionalProperties": {}
|
|
1029
|
+
},
|
|
983
1030
|
"Action": {
|
|
984
1031
|
"type": "object",
|
|
985
1032
|
"properties": {
|
|
@@ -1201,15 +1248,6 @@
|
|
|
1201
1248
|
}
|
|
1202
1249
|
]
|
|
1203
1250
|
},
|
|
1204
|
-
"Abilities": {
|
|
1205
|
-
"type": "object",
|
|
1206
|
-
"propertyNames": {
|
|
1207
|
-
"type": "string"
|
|
1208
|
-
},
|
|
1209
|
-
"additionalProperties": {
|
|
1210
|
-
"type": "boolean"
|
|
1211
|
-
}
|
|
1212
|
-
},
|
|
1213
1251
|
"ResourceFeatures": {
|
|
1214
1252
|
"type": "object",
|
|
1215
1253
|
"properties": {
|
|
@@ -1277,6 +1315,9 @@
|
|
|
1277
1315
|
"type": "string",
|
|
1278
1316
|
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
|
|
1279
1317
|
}
|
|
1318
|
+
},
|
|
1319
|
+
"abilities": {
|
|
1320
|
+
"$ref": "#/$defs/Abilities"
|
|
1280
1321
|
}
|
|
1281
1322
|
},
|
|
1282
1323
|
"required": [
|
|
@@ -1466,6 +1507,91 @@
|
|
|
1466
1507
|
],
|
|
1467
1508
|
"additionalProperties": {}
|
|
1468
1509
|
},
|
|
1510
|
+
"DefinitionContext": {
|
|
1511
|
+
"type": "object",
|
|
1512
|
+
"properties": {
|
|
1513
|
+
"params": {
|
|
1514
|
+
"minItems": 1,
|
|
1515
|
+
"type": "array",
|
|
1516
|
+
"items": {
|
|
1517
|
+
"$ref": "#/$defs/ContextParam"
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
"required": [
|
|
1522
|
+
"params"
|
|
1523
|
+
],
|
|
1524
|
+
"additionalProperties": {}
|
|
1525
|
+
},
|
|
1526
|
+
"ContextParam": {
|
|
1527
|
+
"type": "object",
|
|
1528
|
+
"properties": {
|
|
1529
|
+
"name": {
|
|
1530
|
+
"type": "string",
|
|
1531
|
+
"pattern": "^(?!(?:resources|pages|media|search|account|auth)$)[A-Za-z_][A-Za-z0-9_]*$"
|
|
1532
|
+
},
|
|
1533
|
+
"label": {
|
|
1534
|
+
"type": "string"
|
|
1535
|
+
},
|
|
1536
|
+
"required": {
|
|
1537
|
+
"type": "boolean"
|
|
1538
|
+
},
|
|
1539
|
+
"fixed": {
|
|
1540
|
+
"type": "boolean"
|
|
1541
|
+
},
|
|
1542
|
+
"allLabel": {
|
|
1543
|
+
"type": "string"
|
|
1544
|
+
},
|
|
1545
|
+
"options": {
|
|
1546
|
+
"type": "array",
|
|
1547
|
+
"items": {
|
|
1548
|
+
"$ref": "#/$defs/ContextOption"
|
|
1549
|
+
}
|
|
1550
|
+
},
|
|
1551
|
+
"value": {
|
|
1552
|
+
"anyOf": [
|
|
1553
|
+
{
|
|
1554
|
+
"type": "string",
|
|
1555
|
+
"minLength": 1
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
"type": "null"
|
|
1559
|
+
}
|
|
1560
|
+
]
|
|
1561
|
+
},
|
|
1562
|
+
"valueLabel": {
|
|
1563
|
+
"type": [
|
|
1564
|
+
"string",
|
|
1565
|
+
"null"
|
|
1566
|
+
]
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
"required": [
|
|
1570
|
+
"name",
|
|
1571
|
+
"label"
|
|
1572
|
+
],
|
|
1573
|
+
"additionalProperties": {}
|
|
1574
|
+
},
|
|
1575
|
+
"ContextOption": {
|
|
1576
|
+
"type": "object",
|
|
1577
|
+
"properties": {
|
|
1578
|
+
"value": {
|
|
1579
|
+
"type": "string",
|
|
1580
|
+
"minLength": 1
|
|
1581
|
+
},
|
|
1582
|
+
"label": {
|
|
1583
|
+
"type": "string"
|
|
1584
|
+
},
|
|
1585
|
+
"description": {
|
|
1586
|
+
"type": "string"
|
|
1587
|
+
}
|
|
1588
|
+
},
|
|
1589
|
+
"required": [
|
|
1590
|
+
"value",
|
|
1591
|
+
"label"
|
|
1592
|
+
],
|
|
1593
|
+
"additionalProperties": {}
|
|
1594
|
+
},
|
|
1469
1595
|
"DefinitionTheme": {
|
|
1470
1596
|
"type": "object",
|
|
1471
1597
|
"properties": {
|