@targetprocess/shared-data-model-client 0.6.0 → 0.7.0-us817837-mapping.21

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/src/v1.json CHANGED
@@ -540,13 +540,98 @@
540
540
  ]
541
541
  }
542
542
  },
543
+ "/api/settings/profile/validate": {
544
+ "put": {
545
+ "tags": [
546
+ "Settings"
547
+ ],
548
+ "summary": "Validate profile",
549
+ "operationId": "ValidateProfileEndpoint",
550
+ "requestBody": {
551
+ "x-name": "ProfileDto",
552
+ "description": "",
553
+ "content": {
554
+ "application/json": {
555
+ "schema": {
556
+ "$ref": "#/components/schemas/ProfileDto"
557
+ }
558
+ }
559
+ },
560
+ "required": true,
561
+ "x-position": 1
562
+ },
563
+ "responses": {
564
+ "200": {
565
+ "description": "Success",
566
+ "content": {
567
+ "application/json": {
568
+ "schema": {
569
+ "$ref": "#/components/schemas/ValidatedProfileDto"
570
+ }
571
+ }
572
+ }
573
+ },
574
+ "401": {
575
+ "description": "Unauthorized",
576
+ "content": {
577
+ "application/problem+json": {
578
+ "schema": {
579
+ "$ref": "#/components/schemas/ProblemDetails"
580
+ }
581
+ }
582
+ }
583
+ },
584
+ "403": {
585
+ "description": "Forbidden"
586
+ },
587
+ "400": {
588
+ "description": "Validation error",
589
+ "content": {
590
+ "application/problem+json": {
591
+ "schema": {
592
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
593
+ }
594
+ }
595
+ }
596
+ },
597
+ "500": {
598
+ "description": "Internal server error",
599
+ "content": {
600
+ "application/problem+json": {
601
+ "schema": {
602
+ "$ref": "#/components/schemas/ProblemDetails"
603
+ }
604
+ }
605
+ }
606
+ },
607
+ "404": {
608
+ "description": "Unable to find resource",
609
+ "content": {
610
+ "application/problem+json": {
611
+ "schema": {
612
+ "$ref": "#/components/schemas/ProblemDetails"
613
+ }
614
+ }
615
+ }
616
+ }
617
+ },
618
+ "security": [
619
+ {
620
+ "JWTBearerAuth": []
621
+ },
622
+ {
623
+ "OAuth2": []
624
+ }
625
+ ]
626
+ }
627
+ },
543
628
  "/api/settings/profile": {
544
629
  "put": {
545
630
  "tags": [
546
631
  "Settings"
547
632
  ],
548
633
  "summary": "Update settings profile",
549
- "operationId": "UpdateProfileSettingsEndpoint",
634
+ "operationId": "UpdateProfileEndpoint",
550
635
  "requestBody": {
551
636
  "x-name": "ProfileDto",
552
637
  "description": "",
@@ -629,14 +714,17 @@
629
714
  "Settings"
630
715
  ],
631
716
  "summary": "Get settings profile",
632
- "operationId": "GetProfileSettingsEndpoint",
717
+ "operationId": "GetProfilesEndpoint",
633
718
  "responses": {
634
719
  "200": {
635
720
  "description": "Success",
636
721
  "content": {
637
722
  "application/json": {
638
723
  "schema": {
639
- "$ref": "#/components/schemas/GetProfileSettingsDto"
724
+ "type": "array",
725
+ "items": {
726
+ "$ref": "#/components/schemas/ProfileIdDto"
727
+ }
640
728
  }
641
729
  }
642
730
  }
@@ -695,20 +783,34 @@
695
783
  ]
696
784
  }
697
785
  },
698
- "/api/settings/entityTypes": {
699
- "get": {
786
+ "/api/settings/profile/testTypeMapping": {
787
+ "put": {
700
788
  "tags": [
701
789
  "Settings"
702
790
  ],
703
- "summary": "Get Entity Types",
704
- "operationId": "GetEntityTypesEndpoint",
791
+ "summary": "Test type mapping",
792
+ "operationId": "TestTypeMappingEndpoint",
793
+ "requestBody": {
794
+ "x-name": "TestTypeMappingDto",
795
+ "description": "",
796
+ "content": {
797
+ "application/json": {
798
+ "schema": {
799
+ "$ref": "#/components/schemas/TestTypeMappingDto"
800
+ }
801
+ }
802
+ },
803
+ "required": true,
804
+ "x-position": 1
805
+ },
705
806
  "responses": {
706
807
  "200": {
707
808
  "description": "Success",
708
809
  "content": {
709
810
  "application/json": {
710
811
  "schema": {
711
- "$ref": "#/components/schemas/GetEntityTypesDto"
812
+ "type": "array",
813
+ "items": {}
712
814
  }
713
815
  }
714
816
  }
@@ -766,92 +868,319 @@
766
868
  }
767
869
  ]
768
870
  }
769
- }
770
- },
771
- "components": {
772
- "schemas": {
773
- "ProblemDetails": {
774
- "type": "object",
775
- "additionalProperties": {
776
- "nullable": true
871
+ },
872
+ "/api/settings/profile/current": {
873
+ "put": {
874
+ "tags": [
875
+ "Settings"
876
+ ],
877
+ "summary": "Sets current settings profile",
878
+ "operationId": "SetCurrentProfileEndpoint",
879
+ "requestBody": {
880
+ "x-name": "SetCurrentProfileRequestDto",
881
+ "description": "",
882
+ "content": {
883
+ "application/json": {
884
+ "schema": {
885
+ "$ref": "#/components/schemas/SetCurrentProfileRequestDto"
886
+ }
887
+ }
888
+ },
889
+ "required": true,
890
+ "x-position": 1
777
891
  },
778
- "properties": {
779
- "type": {
780
- "type": "string",
781
- "nullable": true
892
+ "responses": {
893
+ "200": {
894
+ "description": "Success",
895
+ "content": {
896
+ "application/json": {
897
+ "schema": {
898
+ "$ref": "#/components/schemas/ProfileDto"
899
+ }
900
+ }
901
+ }
782
902
  },
783
- "title": {
784
- "type": "string",
785
- "nullable": true
903
+ "401": {
904
+ "description": "Unauthorized",
905
+ "content": {
906
+ "application/problem+json": {
907
+ "schema": {
908
+ "$ref": "#/components/schemas/ProblemDetails"
909
+ }
910
+ }
911
+ }
786
912
  },
787
- "status": {
788
- "type": "integer",
789
- "format": "int32",
790
- "nullable": true
913
+ "403": {
914
+ "description": "Forbidden"
791
915
  },
792
- "detail": {
793
- "type": "string",
794
- "nullable": true
916
+ "400": {
917
+ "description": "Validation error",
918
+ "content": {
919
+ "application/problem+json": {
920
+ "schema": {
921
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
922
+ }
923
+ }
924
+ }
795
925
  },
796
- "instance": {
797
- "type": "string",
798
- "nullable": true
799
- }
800
- }
801
- },
802
- "HttpValidationProblemDetails": {
803
- "allOf": [
804
- {
805
- "$ref": "#/components/schemas/ProblemDetails"
926
+ "500": {
927
+ "description": "Internal server error",
928
+ "content": {
929
+ "application/problem+json": {
930
+ "schema": {
931
+ "$ref": "#/components/schemas/ProblemDetails"
932
+ }
933
+ }
934
+ }
806
935
  },
807
- {
808
- "type": "object",
809
- "additionalProperties": {
810
- "nullable": true
811
- },
812
- "required": [
813
- "errors"
814
- ],
815
- "properties": {
816
- "errors": {
817
- "type": "object",
818
- "additionalProperties": {
819
- "type": "array",
820
- "items": {
821
- "type": "string"
822
- }
936
+ "404": {
937
+ "description": "Unable to find resource",
938
+ "content": {
939
+ "application/problem+json": {
940
+ "schema": {
941
+ "$ref": "#/components/schemas/ProblemDetails"
823
942
  }
824
943
  }
825
944
  }
826
945
  }
946
+ },
947
+ "security": [
948
+ {
949
+ "JWTBearerAuth": []
950
+ },
951
+ {
952
+ "OAuth2": []
953
+ }
827
954
  ]
828
955
  },
829
- "SharedDataRequestDto": {
830
- "type": "object",
831
- "additionalProperties": false
832
- },
833
- "SharedDataCountRequestDto": {
834
- "type": "object",
835
- "additionalProperties": false
836
- },
837
- "SharedDataCreateAttachmentResponseDto": {
838
- "type": "object",
839
- "additionalProperties": false,
840
- "required": [
841
- "items"
956
+ "get": {
957
+ "tags": [
958
+ "Settings"
842
959
  ],
843
- "properties": {
844
- "items": {
845
- "type": "array",
846
- "items": {
847
- "$ref": "#/components/schemas/SharedDataCreateAttachmentResponseItemDto"
960
+ "summary": "Get settings profile",
961
+ "operationId": "GetProfileEndpoint",
962
+ "responses": {
963
+ "200": {
964
+ "description": "Success",
965
+ "content": {
966
+ "application/json": {
967
+ "schema": {
968
+ "$ref": "#/components/schemas/ProfileDto"
969
+ }
970
+ }
848
971
  }
849
- }
850
- }
851
- },
852
- "SharedDataCreateAttachmentResponseItemDto": {
853
- "type": "object",
854
- "additionalProperties": false,
972
+ },
973
+ "401": {
974
+ "description": "Unauthorized",
975
+ "content": {
976
+ "application/problem+json": {
977
+ "schema": {
978
+ "$ref": "#/components/schemas/ProblemDetails"
979
+ }
980
+ }
981
+ }
982
+ },
983
+ "403": {
984
+ "description": "Forbidden"
985
+ },
986
+ "400": {
987
+ "description": "Validation error",
988
+ "content": {
989
+ "application/problem+json": {
990
+ "schema": {
991
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
992
+ }
993
+ }
994
+ }
995
+ },
996
+ "500": {
997
+ "description": "Internal server error",
998
+ "content": {
999
+ "application/problem+json": {
1000
+ "schema": {
1001
+ "$ref": "#/components/schemas/ProblemDetails"
1002
+ }
1003
+ }
1004
+ }
1005
+ },
1006
+ "404": {
1007
+ "description": "Unable to find resource",
1008
+ "content": {
1009
+ "application/problem+json": {
1010
+ "schema": {
1011
+ "$ref": "#/components/schemas/ProblemDetails"
1012
+ }
1013
+ }
1014
+ }
1015
+ }
1016
+ },
1017
+ "security": [
1018
+ {
1019
+ "JWTBearerAuth": []
1020
+ },
1021
+ {
1022
+ "OAuth2": []
1023
+ }
1024
+ ]
1025
+ }
1026
+ },
1027
+ "/api/settings/entityTypes": {
1028
+ "get": {
1029
+ "tags": [
1030
+ "Settings"
1031
+ ],
1032
+ "summary": "Get Entity Types",
1033
+ "operationId": "GetEntityTypesEndpoint",
1034
+ "responses": {
1035
+ "200": {
1036
+ "description": "Success",
1037
+ "content": {
1038
+ "application/json": {
1039
+ "schema": {
1040
+ "$ref": "#/components/schemas/GetEntityTypesDto"
1041
+ }
1042
+ }
1043
+ }
1044
+ },
1045
+ "401": {
1046
+ "description": "Unauthorized",
1047
+ "content": {
1048
+ "application/problem+json": {
1049
+ "schema": {
1050
+ "$ref": "#/components/schemas/ProblemDetails"
1051
+ }
1052
+ }
1053
+ }
1054
+ },
1055
+ "403": {
1056
+ "description": "Forbidden"
1057
+ },
1058
+ "400": {
1059
+ "description": "Validation error",
1060
+ "content": {
1061
+ "application/problem+json": {
1062
+ "schema": {
1063
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
1064
+ }
1065
+ }
1066
+ }
1067
+ },
1068
+ "500": {
1069
+ "description": "Internal server error",
1070
+ "content": {
1071
+ "application/problem+json": {
1072
+ "schema": {
1073
+ "$ref": "#/components/schemas/ProblemDetails"
1074
+ }
1075
+ }
1076
+ }
1077
+ },
1078
+ "404": {
1079
+ "description": "Unable to find resource",
1080
+ "content": {
1081
+ "application/problem+json": {
1082
+ "schema": {
1083
+ "$ref": "#/components/schemas/ProblemDetails"
1084
+ }
1085
+ }
1086
+ }
1087
+ }
1088
+ },
1089
+ "security": [
1090
+ {
1091
+ "JWTBearerAuth": []
1092
+ },
1093
+ {
1094
+ "OAuth2": []
1095
+ }
1096
+ ]
1097
+ }
1098
+ }
1099
+ },
1100
+ "components": {
1101
+ "schemas": {
1102
+ "ProblemDetails": {
1103
+ "type": "object",
1104
+ "additionalProperties": {
1105
+ "nullable": true
1106
+ },
1107
+ "properties": {
1108
+ "type": {
1109
+ "type": "string",
1110
+ "nullable": true
1111
+ },
1112
+ "title": {
1113
+ "type": "string",
1114
+ "nullable": true
1115
+ },
1116
+ "status": {
1117
+ "type": "integer",
1118
+ "format": "int32",
1119
+ "nullable": true
1120
+ },
1121
+ "detail": {
1122
+ "type": "string",
1123
+ "nullable": true
1124
+ },
1125
+ "instance": {
1126
+ "type": "string",
1127
+ "nullable": true
1128
+ }
1129
+ }
1130
+ },
1131
+ "HttpValidationProblemDetails": {
1132
+ "allOf": [
1133
+ {
1134
+ "$ref": "#/components/schemas/ProblemDetails"
1135
+ },
1136
+ {
1137
+ "type": "object",
1138
+ "additionalProperties": {
1139
+ "nullable": true
1140
+ },
1141
+ "required": [
1142
+ "errors"
1143
+ ],
1144
+ "properties": {
1145
+ "errors": {
1146
+ "type": "object",
1147
+ "additionalProperties": {
1148
+ "type": "array",
1149
+ "items": {
1150
+ "type": "string"
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1156
+ ]
1157
+ },
1158
+ "SharedDataRequestDto": {
1159
+ "type": "object",
1160
+ "additionalProperties": false
1161
+ },
1162
+ "SharedDataCountRequestDto": {
1163
+ "type": "object",
1164
+ "additionalProperties": false
1165
+ },
1166
+ "SharedDataCreateAttachmentResponseDto": {
1167
+ "type": "object",
1168
+ "additionalProperties": false,
1169
+ "required": [
1170
+ "items"
1171
+ ],
1172
+ "properties": {
1173
+ "items": {
1174
+ "type": "array",
1175
+ "items": {
1176
+ "$ref": "#/components/schemas/SharedDataCreateAttachmentResponseItemDto"
1177
+ }
1178
+ }
1179
+ }
1180
+ },
1181
+ "SharedDataCreateAttachmentResponseItemDto": {
1182
+ "type": "object",
1183
+ "additionalProperties": false,
855
1184
  "required": [
856
1185
  "id",
857
1186
  "uri",
@@ -890,95 +1219,127 @@
890
1219
  "type": "object",
891
1220
  "additionalProperties": false
892
1221
  },
893
- "ProfileDto": {
894
- "type": "object",
895
- "additionalProperties": false,
896
- "required": [
897
- "account",
898
- "mappings",
899
- "enabled"
900
- ],
901
- "properties": {
902
- "id": {
903
- "type": "string",
904
- "format": "guid",
905
- "nullable": true
906
- },
907
- "account": {
908
- "type": "string"
1222
+ "ValidatedProfileDto": {
1223
+ "allOf": [
1224
+ {
1225
+ "$ref": "#/components/schemas/ProfileIdDto"
909
1226
  },
910
- "mappings": {
911
- "type": "array",
912
- "items": {
913
- "$ref": "#/components/schemas/ProfileMappingDto"
1227
+ {
1228
+ "type": "object",
1229
+ "additionalProperties": false,
1230
+ "required": [
1231
+ "typeMappings",
1232
+ "validationState"
1233
+ ],
1234
+ "properties": {
1235
+ "typeMappings": {
1236
+ "type": "array",
1237
+ "items": {
1238
+ "$ref": "#/components/schemas/ValidatedTypeMappingDto"
1239
+ }
1240
+ },
1241
+ "validationState": {
1242
+ "$ref": "#/components/schemas/ValidationState"
1243
+ }
914
1244
  }
1245
+ }
1246
+ ]
1247
+ },
1248
+ "ValidatedTypeMappingDto": {
1249
+ "allOf": [
1250
+ {
1251
+ "$ref": "#/components/schemas/TypeMappingDto"
915
1252
  },
916
- "enabled": {
917
- "type": "boolean"
1253
+ {
1254
+ "type": "object",
1255
+ "additionalProperties": false,
1256
+ "required": [
1257
+ "validationState",
1258
+ "errors"
1259
+ ],
1260
+ "properties": {
1261
+ "validationState": {
1262
+ "$ref": "#/components/schemas/ValidationState"
1263
+ },
1264
+ "errors": {
1265
+ "type": "array",
1266
+ "items": {
1267
+ "$ref": "#/components/schemas/MappingErrorDto"
1268
+ }
1269
+ }
1270
+ }
918
1271
  }
919
- }
1272
+ ]
920
1273
  },
921
- "ProfileMappingDto": {
1274
+ "ValidationState": {
1275
+ "type": "string",
1276
+ "description": "",
1277
+ "x-enumNames": [
1278
+ "Valid",
1279
+ "Warning",
1280
+ "Error"
1281
+ ],
1282
+ "enum": [
1283
+ "Valid",
1284
+ "Warning",
1285
+ "Error"
1286
+ ]
1287
+ },
1288
+ "MappingErrorDto": {
922
1289
  "type": "object",
923
1290
  "additionalProperties": false,
924
1291
  "required": [
925
- "name",
926
- "enabled",
927
- "typeMappings"
1292
+ "message"
928
1293
  ],
929
1294
  "properties": {
930
- "id": {
931
- "type": "string",
932
- "nullable": true
933
- },
934
- "name": {
1295
+ "message": {
935
1296
  "type": "string"
936
- },
937
- "enabled": {
938
- "type": "boolean"
939
- },
940
- "typeMappings": {
941
- "type": "array",
942
- "items": {
943
- "$ref": "#/components/schemas/TypeMappingDto"
944
- }
945
1297
  }
946
1298
  }
947
1299
  },
948
1300
  "TypeMappingDto": {
949
1301
  "type": "object",
1302
+ "discriminator": {
1303
+ "propertyName": "$type",
1304
+ "mapping": {
1305
+ "ValidatedTypeMappingDto": "#/components/schemas/ValidatedTypeMappingDto"
1306
+ }
1307
+ },
950
1308
  "additionalProperties": false,
951
1309
  "required": [
1310
+ "$type",
1311
+ "id",
952
1312
  "sourceType",
953
1313
  "targetType",
954
1314
  "fieldMappings"
955
1315
  ],
956
1316
  "properties": {
957
1317
  "id": {
958
- "type": "string",
959
- "nullable": true
1318
+ "type": "string"
960
1319
  },
961
1320
  "sourceType": {
962
- "$ref": "#/components/schemas/TypeDefDto"
1321
+ "$ref": "#/components/schemas/TpTypeDefDto"
963
1322
  },
964
1323
  "targetType": {
965
- "$ref": "#/components/schemas/TypeDefDto"
1324
+ "$ref": "#/components/schemas/SdmTypeDefDto"
966
1325
  },
967
1326
  "fieldMappings": {
968
1327
  "type": "array",
969
1328
  "items": {
970
1329
  "$ref": "#/components/schemas/FieldMappingDto"
971
1330
  }
1331
+ },
1332
+ "$type": {
1333
+ "type": "string"
972
1334
  }
973
1335
  }
974
1336
  },
975
- "TypeDefDto": {
1337
+ "TpTypeDefDto": {
976
1338
  "type": "object",
977
1339
  "additionalProperties": false,
978
1340
  "required": [
979
1341
  "id",
980
- "name",
981
- "kind"
1342
+ "name"
982
1343
  ],
983
1344
  "properties": {
984
1345
  "id": {
@@ -986,310 +1347,172 @@
986
1347
  },
987
1348
  "name": {
988
1349
  "type": "string"
989
- },
990
- "kind": {
991
- "$ref": "#/components/schemas/TypeKind"
992
- },
993
- "javaScriptComparator": {
994
- "type": "string",
995
- "nullable": true
996
1350
  }
997
1351
  }
998
1352
  },
999
- "TypeKind": {
1000
- "type": "integer",
1001
- "description": "",
1002
- "x-enumNames": [
1003
- "String",
1004
- "RichText",
1005
- "Number",
1006
- "Boolean",
1007
- "User",
1008
- "State",
1009
- "Ref",
1010
- "Date",
1011
- "Comment",
1012
- "Attachment",
1013
- "RoleEffort",
1014
- "RoleAssignment",
1015
- "Unknown"
1016
- ],
1017
- "enum": [
1018
- 0,
1019
- 1,
1020
- 2,
1021
- 3,
1022
- 4,
1023
- 5,
1024
- 6,
1025
- 7,
1026
- 8,
1027
- 9,
1028
- 10,
1029
- 11,
1030
- 12
1031
- ]
1032
- },
1033
- "FieldMappingDto": {
1353
+ "SdmTypeDefDto": {
1034
1354
  "type": "object",
1035
1355
  "additionalProperties": false,
1036
1356
  "required": [
1037
1357
  "id",
1038
- "type"
1358
+ "name"
1039
1359
  ],
1040
1360
  "properties": {
1041
1361
  "id": {
1042
1362
  "type": "string"
1043
1363
  },
1044
- "type": {
1045
- "$ref": "#/components/schemas/FieldMappingType"
1046
- },
1047
- "source": {
1048
- "nullable": true,
1049
- "oneOf": [
1050
- {
1051
- "$ref": "#/components/schemas/FieldDefDto"
1052
- }
1053
- ]
1054
- },
1055
- "target": {
1056
- "nullable": true,
1057
- "oneOf": [
1058
- {
1059
- "$ref": "#/components/schemas/FieldDefDto"
1060
- }
1061
- ]
1062
- },
1063
- "sourceRel": {
1064
- "nullable": true,
1065
- "oneOf": [
1066
- {
1067
- "$ref": "#/components/schemas/RelationDto"
1068
- }
1069
- ]
1070
- },
1071
- "targetRel": {
1072
- "nullable": true,
1073
- "oneOf": [
1074
- {
1075
- "$ref": "#/components/schemas/RelationDto"
1076
- }
1077
- ]
1364
+ "name": {
1365
+ "type": "string"
1078
1366
  }
1079
1367
  }
1080
1368
  },
1081
- "FieldMappingType": {
1082
- "type": "integer",
1083
- "description": "",
1084
- "x-enumNames": [
1085
- "ValueFieldMapping",
1086
- "CollectionFieldMapping",
1087
- "ReferenceToStringFieldMapping",
1088
- "TargetprocessDescriptionMapping",
1089
- "CollectionToStringMapping",
1090
- "RelationFieldMapping",
1091
- "EntityStateMapping",
1092
- "JavaScriptFieldMapping",
1093
- "UserFieldMapping",
1094
- "RoleAssignmentUserFieldMapping",
1095
- "RoleEffortFieldMapping",
1096
- "ConstantFieldMapping",
1097
- "RoleAssignmentsFieldMapping",
1098
- "RoleEffortToRoleEffortFieldMapping"
1099
- ],
1100
- "enum": [
1101
- 0,
1102
- 1,
1103
- 2,
1104
- 3,
1105
- 4,
1106
- 5,
1107
- 6,
1108
- 7,
1109
- 8,
1110
- 9,
1111
- 10,
1112
- 11,
1113
- 12,
1114
- 13
1115
- ]
1116
- },
1117
- "FieldDefDto": {
1369
+ "FieldMappingDto": {
1118
1370
  "type": "object",
1371
+ "discriminator": {
1372
+ "propertyName": "$type",
1373
+ "mapping": {
1374
+ "ValidatedFieldMappingDto": "#/components/schemas/ValidatedFieldMappingDto"
1375
+ }
1376
+ },
1119
1377
  "additionalProperties": false,
1120
1378
  "required": [
1379
+ "$type",
1121
1380
  "id",
1122
- "name",
1123
- "path",
1124
- "meta"
1381
+ "source",
1382
+ "target"
1125
1383
  ],
1126
1384
  "properties": {
1127
1385
  "id": {
1128
1386
  "type": "string"
1129
1387
  },
1130
- "name": {
1131
- "type": "string"
1388
+ "source": {
1389
+ "$ref": "#/components/schemas/MappingFieldDefDto"
1132
1390
  },
1133
- "path": {
1134
- "type": "string"
1391
+ "target": {
1392
+ "$ref": "#/components/schemas/MappingFieldDefDto"
1135
1393
  },
1136
- "meta": {
1137
- "$ref": "#/components/schemas/FieldMetaDto"
1394
+ "$type": {
1395
+ "type": "string"
1138
1396
  }
1139
1397
  }
1140
1398
  },
1141
- "FieldMetaDto": {
1399
+ "MappingFieldDefDto": {
1142
1400
  "type": "object",
1143
1401
  "additionalProperties": false,
1144
1402
  "required": [
1145
- "isReadonly",
1146
- "kind",
1147
- "type",
1148
- "required",
1149
- "attributes",
1150
- "options"
1403
+ "expression"
1151
1404
  ],
1152
1405
  "properties": {
1153
- "isReadonly": {
1154
- "type": "boolean"
1155
- },
1156
- "kind": {
1157
- "$ref": "#/components/schemas/FieldKind"
1158
- },
1159
- "type": {
1160
- "$ref": "#/components/schemas/TypeDefRefDto"
1161
- },
1162
- "required": {
1163
- "type": "boolean"
1164
- },
1165
- "attributes": {
1166
- "$ref": "#/components/schemas/FieldAttributesDto"
1167
- },
1168
- "multiple": {
1169
- "type": "boolean",
1170
- "nullable": true
1171
- },
1172
- "options": {
1173
- "type": "array",
1174
- "items": {}
1175
- },
1176
- "roundsDate": {
1177
- "type": "boolean",
1178
- "nullable": true
1406
+ "expression": {
1407
+ "type": "string"
1179
1408
  }
1180
1409
  }
1181
1410
  },
1182
- "FieldKind": {
1183
- "type": "integer",
1184
- "description": "",
1185
- "x-enumNames": [
1186
- "CollectionFieldMeta",
1187
- "FieldMeta",
1188
- "SelectFieldMeta"
1189
- ],
1190
- "enum": [
1191
- 0,
1192
- 1,
1193
- 2
1194
- ]
1195
- },
1196
- "TypeDefRefDto": {
1197
- "type": "object",
1198
- "additionalProperties": false,
1199
- "required": [
1200
- "id",
1201
- "kind"
1202
- ],
1203
- "properties": {
1204
- "id": {
1205
- "type": "string"
1411
+ "ValidatedFieldMappingDto": {
1412
+ "allOf": [
1413
+ {
1414
+ "$ref": "#/components/schemas/FieldMappingDto"
1206
1415
  },
1207
- "kind": {
1208
- "$ref": "#/components/schemas/TypeKind"
1416
+ {
1417
+ "type": "object",
1418
+ "additionalProperties": false,
1419
+ "required": [
1420
+ "validationState",
1421
+ "errors"
1422
+ ],
1423
+ "properties": {
1424
+ "validationState": {
1425
+ "$ref": "#/components/schemas/ValidationState"
1426
+ },
1427
+ "errors": {
1428
+ "type": "array",
1429
+ "items": {
1430
+ "$ref": "#/components/schemas/MappingErrorDto"
1431
+ }
1432
+ }
1433
+ }
1209
1434
  }
1210
- }
1435
+ ]
1211
1436
  },
1212
- "FieldAttributesDto": {
1437
+ "ProfileIdDto": {
1213
1438
  "type": "object",
1214
1439
  "additionalProperties": false,
1215
1440
  "required": [
1216
- "isExtendable"
1441
+ "name"
1217
1442
  ],
1218
1443
  "properties": {
1219
- "isExtendable": {
1220
- "type": "boolean"
1221
- },
1222
- "roleId": {
1444
+ "id": {
1223
1445
  "type": "string",
1446
+ "format": "guid",
1224
1447
  "nullable": true
1448
+ },
1449
+ "name": {
1450
+ "type": "string"
1225
1451
  }
1226
1452
  }
1227
1453
  },
1228
- "RelationDto": {
1229
- "type": "object",
1230
- "additionalProperties": false,
1231
- "required": [
1232
- "childType",
1233
- "relation"
1234
- ],
1235
- "properties": {
1236
- "childType": {
1237
- "$ref": "#/components/schemas/TypeDefRefDto"
1454
+ "ProfileDto": {
1455
+ "allOf": [
1456
+ {
1457
+ "$ref": "#/components/schemas/ProfileIdDto"
1238
1458
  },
1239
- "field": {
1240
- "nullable": true,
1241
- "oneOf": [
1242
- {
1243
- "$ref": "#/components/schemas/FieldDefDto"
1459
+ {
1460
+ "type": "object",
1461
+ "additionalProperties": false,
1462
+ "required": [
1463
+ "typeMappings"
1464
+ ],
1465
+ "properties": {
1466
+ "typeMappings": {
1467
+ "type": "array",
1468
+ "items": {
1469
+ "$ref": "#/components/schemas/TypeMappingDto"
1470
+ }
1244
1471
  }
1245
- ]
1246
- },
1247
- "relation": {
1248
- "$ref": "#/components/schemas/RelationDefRefDto"
1472
+ }
1249
1473
  }
1250
- }
1474
+ ]
1251
1475
  },
1252
- "RelationDefRefDto": {
1476
+ "TestTypeMappingDto": {
1253
1477
  "type": "object",
1254
1478
  "additionalProperties": false,
1255
1479
  "required": [
1256
- "id"
1480
+ "entityType",
1481
+ "profile"
1257
1482
  ],
1258
1483
  "properties": {
1259
- "id": {
1484
+ "entityType": {
1260
1485
  "type": "string"
1261
1486
  },
1262
- "direction": {
1263
- "nullable": true,
1264
- "oneOf": [
1265
- {
1266
- "$ref": "#/components/schemas/RelationDirection"
1267
- }
1268
- ]
1487
+ "profile": {
1488
+ "$ref": "#/components/schemas/ProfileDto"
1489
+ },
1490
+ "select": {
1491
+ "type": "string",
1492
+ "nullable": true
1493
+ },
1494
+ "skip": {
1495
+ "type": "integer",
1496
+ "format": "int32",
1497
+ "nullable": true
1498
+ },
1499
+ "take": {
1500
+ "type": "integer",
1501
+ "format": "int32",
1502
+ "nullable": true
1269
1503
  }
1270
1504
  }
1271
1505
  },
1272
- "RelationDirection": {
1273
- "type": "integer",
1274
- "description": "",
1275
- "x-enumNames": [
1276
- "Inbound",
1277
- "Outbound"
1278
- ],
1279
- "enum": [
1280
- 0,
1281
- 1
1282
- ]
1283
- },
1284
- "GetProfileSettingsDto": {
1506
+ "SetCurrentProfileRequestDto": {
1285
1507
  "type": "object",
1286
1508
  "additionalProperties": false,
1287
1509
  "required": [
1288
- "profile"
1510
+ "profileId"
1289
1511
  ],
1290
1512
  "properties": {
1291
- "profile": {
1292
- "$ref": "#/components/schemas/ProfileDto"
1513
+ "profileId": {
1514
+ "type": "string",
1515
+ "format": "guid"
1293
1516
  }
1294
1517
  }
1295
1518
  },
@@ -1297,10 +1520,17 @@
1297
1520
  "type": "object",
1298
1521
  "additionalProperties": false,
1299
1522
  "required": [
1300
- "types"
1523
+ "sdmTypes",
1524
+ "tpTypes"
1301
1525
  ],
1302
1526
  "properties": {
1303
- "types": {
1527
+ "sdmTypes": {
1528
+ "type": "array",
1529
+ "items": {
1530
+ "$ref": "#/components/schemas/TypeMetaDefDto"
1531
+ }
1532
+ },
1533
+ "tpTypes": {
1304
1534
  "type": "array",
1305
1535
  "items": {
1306
1536
  "$ref": "#/components/schemas/TypeMetaDefDto"
@@ -1313,7 +1543,6 @@
1313
1543
  "additionalProperties": false,
1314
1544
  "required": [
1315
1545
  "id",
1316
- "kind",
1317
1546
  "name",
1318
1547
  "fields"
1319
1548
  ],
@@ -1321,9 +1550,6 @@
1321
1550
  "id": {
1322
1551
  "type": "string"
1323
1552
  },
1324
- "kind": {
1325
- "type": "string"
1326
- },
1327
1553
  "name": {
1328
1554
  "type": "string"
1329
1555
  },
@@ -1334,6 +1560,46 @@
1334
1560
  }
1335
1561
  }
1336
1562
  }
1563
+ },
1564
+ "FieldDefDto": {
1565
+ "type": "object",
1566
+ "additionalProperties": false,
1567
+ "required": [
1568
+ "expression",
1569
+ "type"
1570
+ ],
1571
+ "properties": {
1572
+ "expression": {
1573
+ "type": "string"
1574
+ },
1575
+ "type": {
1576
+ "type": "string"
1577
+ },
1578
+ "refKind": {
1579
+ "nullable": true,
1580
+ "oneOf": [
1581
+ {
1582
+ "$ref": "#/components/schemas/RefKind"
1583
+ }
1584
+ ]
1585
+ },
1586
+ "refType": {
1587
+ "type": "string",
1588
+ "nullable": true
1589
+ }
1590
+ }
1591
+ },
1592
+ "RefKind": {
1593
+ "type": "string",
1594
+ "description": "",
1595
+ "x-enumNames": [
1596
+ "Single",
1597
+ "Collection"
1598
+ ],
1599
+ "enum": [
1600
+ "Single",
1601
+ "Collection"
1602
+ ]
1337
1603
  }
1338
1604
  },
1339
1605
  "securitySchemes": {