Skip to content

Commit 0654418

Browse files
authored
Merge pull request #54 from serhii-filonenko/master
Feature/HCK-2752 add relationship properties to fields config
2 parents 781ef0e + be0340e commit 0654418

File tree

2 files changed

+355
-0
lines changed

2 files changed

+355
-0
lines changed

adapter/0.1.58.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* Copyright © 2016-2023 by IntegrIT S.A. dba Hackolade. All rights reserved.
3+
*
4+
* The copyright to the computer software herein is the property of IntegrIT S.A.
5+
* The software may be used and/or copied only with the written permission of
6+
* IntegrIT S.A. or in accordance with the terms and conditions stipulated in
7+
* the agreement/contract under which the software has been supplied.
8+
*
9+
* {
10+
* "add": {
11+
* "entity": [<names of new property>],
12+
* "container": [<names of new property>],
13+
* "model": [<names of new property>],
14+
* "view": [<names of new property>],
15+
* "field": {
16+
* "<type>": [<names of new property>]
17+
* }
18+
* },
19+
* "delete": {
20+
* "entity": [<names of new property>],
21+
* "container": [<names of new property>],
22+
* "model": [<names of new property>],
23+
* "view": [<names of new property>],
24+
* "field": {
25+
* "<type>": [<names of new property>]
26+
* }
27+
* },
28+
* "modify": {
29+
* "entity": [
30+
* {
31+
* "from": { <properties that identify record> },
32+
* "to": { <properties that need to be changed> }
33+
* }
34+
* ],
35+
* "container": [],
36+
* "model": [],
37+
* "view": [],
38+
* "field": []
39+
* },
40+
* }
41+
*/
42+
43+
{
44+
"modify": {
45+
"field": [["setRelationshipPropertiesToField"]]
46+
}
47+
}

properties_pane/field_level/fieldLevelConfig.json

Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,83 @@ making sure that you maintain a proper JSON format.
341341
"propertyType": "checkbox",
342342
"enableForReference": true
343343
},
344+
{
345+
"propertyName": "Foreign definition",
346+
"propertyKeyword": "foreignCollection",
347+
"template": "definitions",
348+
"disableForDefinitions": false,
349+
"dependency": {
350+
"type": "and",
351+
"values": [
352+
{
353+
"level": "parent",
354+
"key": "type",
355+
"value": "definitions",
356+
"inDepthParentSearch": true
357+
}
358+
]
359+
}
360+
},
361+
{
362+
"propertyKeyword": "foreignField",
363+
"disableForDefinitions": false,
364+
"dependency": {
365+
"type": "and",
366+
"values": [
367+
{
368+
"level": "parent",
369+
"key": "type",
370+
"value": "definitions",
371+
"inDepthParentSearch": true
372+
}
373+
]
374+
}
375+
},
376+
{
377+
"propertyKeyword": "relationshipType",
378+
"disableForDefinitions": false,
379+
"dependency": {
380+
"type": "and",
381+
"values": [
382+
{
383+
"level": "parent",
384+
"key": "type",
385+
"value": "definitions",
386+
"inDepthParentSearch": true
387+
}
388+
]
389+
}
390+
},
391+
{
392+
"propertyKeyword": "relationshipName",
393+
"disableForDefinitions": false,
394+
"dependency": {
395+
"type": "and",
396+
"values": [
397+
{
398+
"level": "parent",
399+
"key": "type",
400+
"value": "definitions",
401+
"inDepthParentSearch": true
402+
}
403+
]
404+
}
405+
},
406+
{
407+
"propertyKeyword": "cardinality",
408+
"disableForDefinitions": false,
409+
"dependency": {
410+
"type": "and",
411+
"values": [
412+
{
413+
"level": "parent",
414+
"key": "type",
415+
"value": "definitions",
416+
"inDepthParentSearch": true
417+
}
418+
]
419+
}
420+
},
344421
{
345422
"propertyName": "xml",
346423
"propertyType": "block",
@@ -543,6 +620,83 @@ making sure that you maintain a proper JSON format.
543620
"propertyType": "checkbox",
544621
"enableForReference": true
545622
},
623+
{
624+
"propertyName": "Foreign definition",
625+
"propertyKeyword": "foreignCollection",
626+
"template": "definitions",
627+
"disableForDefinitions": false,
628+
"dependency": {
629+
"type": "and",
630+
"values": [
631+
{
632+
"level": "parent",
633+
"key": "type",
634+
"value": "definitions",
635+
"inDepthParentSearch": true
636+
}
637+
]
638+
}
639+
},
640+
{
641+
"propertyKeyword": "foreignField",
642+
"disableForDefinitions": false,
643+
"dependency": {
644+
"type": "and",
645+
"values": [
646+
{
647+
"level": "parent",
648+
"key": "type",
649+
"value": "definitions",
650+
"inDepthParentSearch": true
651+
}
652+
]
653+
}
654+
},
655+
{
656+
"propertyKeyword": "relationshipType",
657+
"disableForDefinitions": false,
658+
"dependency": {
659+
"type": "and",
660+
"values": [
661+
{
662+
"level": "parent",
663+
"key": "type",
664+
"value": "definitions",
665+
"inDepthParentSearch": true
666+
}
667+
]
668+
}
669+
},
670+
{
671+
"propertyKeyword": "relationshipName",
672+
"disableForDefinitions": false,
673+
"dependency": {
674+
"type": "and",
675+
"values": [
676+
{
677+
"level": "parent",
678+
"key": "type",
679+
"value": "definitions",
680+
"inDepthParentSearch": true
681+
}
682+
]
683+
}
684+
},
685+
{
686+
"propertyKeyword": "cardinality",
687+
"disableForDefinitions": false,
688+
"dependency": {
689+
"type": "and",
690+
"values": [
691+
{
692+
"level": "parent",
693+
"key": "type",
694+
"value": "definitions",
695+
"inDepthParentSearch": true
696+
}
697+
]
698+
}
699+
},
546700
{
547701
"propertyName": "xml",
548702
"propertyType": "block",
@@ -746,6 +900,83 @@ making sure that you maintain a proper JSON format.
746900
"propertyType": "checkbox",
747901
"enableForReference": true
748902
},
903+
{
904+
"propertyName": "Foreign definition",
905+
"propertyKeyword": "foreignCollection",
906+
"template": "definitions",
907+
"disableForDefinitions": false,
908+
"dependency": {
909+
"type": "and",
910+
"values": [
911+
{
912+
"level": "parent",
913+
"key": "type",
914+
"value": "definitions",
915+
"inDepthParentSearch": true
916+
}
917+
]
918+
}
919+
},
920+
{
921+
"propertyKeyword": "foreignField",
922+
"disableForDefinitions": false,
923+
"dependency": {
924+
"type": "and",
925+
"values": [
926+
{
927+
"level": "parent",
928+
"key": "type",
929+
"value": "definitions",
930+
"inDepthParentSearch": true
931+
}
932+
]
933+
}
934+
},
935+
{
936+
"propertyKeyword": "relationshipType",
937+
"disableForDefinitions": false,
938+
"dependency": {
939+
"type": "and",
940+
"values": [
941+
{
942+
"level": "parent",
943+
"key": "type",
944+
"value": "definitions",
945+
"inDepthParentSearch": true
946+
}
947+
]
948+
}
949+
},
950+
{
951+
"propertyKeyword": "relationshipName",
952+
"disableForDefinitions": false,
953+
"dependency": {
954+
"type": "and",
955+
"values": [
956+
{
957+
"level": "parent",
958+
"key": "type",
959+
"value": "definitions",
960+
"inDepthParentSearch": true
961+
}
962+
]
963+
}
964+
},
965+
{
966+
"propertyKeyword": "cardinality",
967+
"disableForDefinitions": false,
968+
"dependency": {
969+
"type": "and",
970+
"values": [
971+
{
972+
"level": "parent",
973+
"key": "type",
974+
"value": "definitions",
975+
"inDepthParentSearch": true
976+
}
977+
]
978+
}
979+
},
749980
{
750981
"propertyName": "xml",
751982
"propertyType": "block",
@@ -906,6 +1137,83 @@ making sure that you maintain a proper JSON format.
9061137
"enableForReference": true
9071138
},
9081139
"default",
1140+
{
1141+
"propertyName": "Foreign definition",
1142+
"propertyKeyword": "foreignCollection",
1143+
"template": "definitions",
1144+
"disableForDefinitions": false,
1145+
"dependency": {
1146+
"type": "and",
1147+
"values": [
1148+
{
1149+
"level": "parent",
1150+
"key": "type",
1151+
"value": "definitions",
1152+
"inDepthParentSearch": true
1153+
}
1154+
]
1155+
}
1156+
},
1157+
{
1158+
"propertyKeyword": "foreignField",
1159+
"disableForDefinitions": false,
1160+
"dependency": {
1161+
"type": "and",
1162+
"values": [
1163+
{
1164+
"level": "parent",
1165+
"key": "type",
1166+
"value": "definitions",
1167+
"inDepthParentSearch": true
1168+
}
1169+
]
1170+
}
1171+
},
1172+
{
1173+
"propertyKeyword": "relationshipType",
1174+
"disableForDefinitions": false,
1175+
"dependency": {
1176+
"type": "and",
1177+
"values": [
1178+
{
1179+
"level": "parent",
1180+
"key": "type",
1181+
"value": "definitions",
1182+
"inDepthParentSearch": true
1183+
}
1184+
]
1185+
}
1186+
},
1187+
{
1188+
"propertyKeyword": "relationshipName",
1189+
"disableForDefinitions": false,
1190+
"dependency": {
1191+
"type": "and",
1192+
"values": [
1193+
{
1194+
"level": "parent",
1195+
"key": "type",
1196+
"value": "definitions",
1197+
"inDepthParentSearch": true
1198+
}
1199+
]
1200+
}
1201+
},
1202+
{
1203+
"propertyKeyword": "cardinality",
1204+
"disableForDefinitions": false,
1205+
"dependency": {
1206+
"type": "and",
1207+
"values": [
1208+
{
1209+
"level": "parent",
1210+
"key": "type",
1211+
"value": "definitions",
1212+
"inDepthParentSearch": true
1213+
}
1214+
]
1215+
}
1216+
},
9091217
{
9101218
"propertyName": "example",
9111219
"propertyKeyword": "sample",

0 commit comments

Comments
 (0)