@targetprocess/shared-data-model-client 1.29.0 → 1.30.4

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
@@ -16,25 +16,26 @@
16
16
  }
17
17
  }
18
18
  },
19
- "/api/sdm/terms": {
20
- "get": {
19
+ "/api/settings/profile/copy": {
20
+ "post": {
21
21
  "tags": [
22
- "Sdm"
22
+ "Settings"
23
23
  ],
24
- "summary": "Gets terms for a given process id.",
25
- "operationId": "TermsEndpoint",
26
- "parameters": [
27
- {
28
- "name": "processId",
29
- "in": "query",
30
- "description": "Id of the process to read terms from. If not set, default process will be returned",
31
- "schema": {
32
- "type": "integer",
33
- "format": "int32",
34
- "nullable": true
24
+ "summary": "Copy profile and sets as current",
25
+ "operationId": "CopyCurrentProfileEndpoint",
26
+ "requestBody": {
27
+ "x-name": "CopyCurrentProfileRequestDto",
28
+ "description": "",
29
+ "content": {
30
+ "application/json": {
31
+ "schema": {
32
+ "$ref": "#/components/schemas/CopyCurrentProfileRequestDto"
33
+ }
35
34
  }
36
- }
37
- ],
35
+ },
36
+ "required": true,
37
+ "x-position": 1
38
+ },
38
39
  "responses": {
39
40
  "400": {
40
41
  "description": "Validation error",
@@ -86,8 +87,15 @@
86
87
  }
87
88
  }
88
89
  },
89
- "204": {
90
- "description": "No Content"
90
+ "200": {
91
+ "description": "Success",
92
+ "content": {
93
+ "application/json": {
94
+ "schema": {
95
+ "$ref": "#/components/schemas/ProfileDto"
96
+ }
97
+ }
98
+ }
91
99
  },
92
100
  "403": {
93
101
  "description": "Forbidden"
@@ -100,23 +108,31 @@
100
108
  ]
101
109
  }
102
110
  },
103
- "/api/sdm/globalsettings": {
104
- "get": {
111
+ "/api/settings/profile": {
112
+ "delete": {
105
113
  "tags": [
106
- "Sdm"
114
+ "Settings"
107
115
  ],
108
- "summary": "Retrieves Shared Data Model",
109
- "operationId": "SharedDataGetGlobalSettingsEndpoint",
110
- "parameters": [
111
- {
112
- "name": "select",
113
- "in": "query",
114
- "schema": {
115
- "type": "string",
116
- "nullable": true
116
+ "summary": "Delete profile and sets default one as current",
117
+ "operationId": "DeleteProfileEndpoint",
118
+ "requestBody": {
119
+ "x-name": "DeleteProfileRequestDto",
120
+ "description": "",
121
+ "content": {
122
+ "*/*": {
123
+ "schema": {
124
+ "$ref": "#/components/schemas/DeleteProfileRequestDto"
125
+ }
126
+ },
127
+ "application/json": {
128
+ "schema": {
129
+ "$ref": "#/components/schemas/DeleteProfileRequestDto"
130
+ }
117
131
  }
118
- }
119
- ],
132
+ },
133
+ "required": true,
134
+ "x-position": 1
135
+ },
120
136
  "responses": {
121
137
  "400": {
122
138
  "description": "Validation error",
@@ -173,8 +189,7 @@
173
189
  "content": {
174
190
  "application/json": {
175
191
  "schema": {
176
- "type": "array",
177
- "items": {}
192
+ "$ref": "#/components/schemas/ProfileDto"
178
193
  }
179
194
  }
180
195
  }
@@ -188,34 +203,13 @@
188
203
  "apptio-token-scheme": []
189
204
  }
190
205
  ]
191
- }
192
- },
193
- "/api/sdm/{entityType}": {
194
- "post": {
206
+ },
207
+ "get": {
195
208
  "tags": [
196
- "Sdm"
197
- ],
198
- "summary": "Creates or Updates Shared Data Model",
199
- "operationId": "SharedDataPostEndpoint",
200
- "parameters": [
201
- {
202
- "name": "entityType",
203
- "in": "path",
204
- "required": true,
205
- "schema": {
206
- "type": "string"
207
- }
208
- }
209
+ "Settings"
209
210
  ],
210
- "requestBody": {
211
- "x-name": "payload",
212
- "content": {
213
- "application/json": {
214
- "schema": {}
215
- }
216
- },
217
- "required": true
218
- },
211
+ "summary": "Get settings profile",
212
+ "operationId": "GetProfilesEndpoint",
219
213
  "responses": {
220
214
  "400": {
221
215
  "description": "Validation error",
@@ -271,7 +265,12 @@
271
265
  "description": "Success",
272
266
  "content": {
273
267
  "application/json": {
274
- "schema": {}
268
+ "schema": {
269
+ "type": "array",
270
+ "items": {
271
+ "$ref": "#/components/schemas/ProfileIdDto"
272
+ }
273
+ }
275
274
  }
276
275
  }
277
276
  },
@@ -285,39 +284,26 @@
285
284
  }
286
285
  ]
287
286
  },
288
- "delete": {
287
+ "put": {
289
288
  "tags": [
290
- "Sdm"
291
- ],
292
- "summary": "Deletes Shared Data Model",
293
- "operationId": "SharedDataDeleteEndpoint",
294
- "parameters": [
295
- {
296
- "name": "entityType",
297
- "in": "path",
298
- "required": true,
299
- "schema": {
300
- "type": "string"
301
- }
302
- }
289
+ "Settings"
303
290
  ],
291
+ "summary": "Update settings profile",
292
+ "operationId": "UpdateProfileEndpoint",
304
293
  "requestBody": {
305
- "x-name": "SharedDataDeleteDto",
306
- "description": "",
294
+ "x-name": "profile",
307
295
  "content": {
308
- "*/*": {
309
- "schema": {
310
- "$ref": "#/components/schemas/SharedDataDeleteDto"
311
- }
312
- },
313
296
  "application/json": {
314
297
  "schema": {
315
- "$ref": "#/components/schemas/SharedDataDeleteDto"
298
+ "oneOf": [
299
+ {
300
+ "$ref": "#/components/schemas/ProfileDto"
301
+ }
302
+ ]
316
303
  }
317
304
  }
318
305
  },
319
- "required": true,
320
- "x-position": 1
306
+ "required": true
321
307
  },
322
308
  "responses": {
323
309
  "400": {
@@ -370,8 +356,15 @@
370
356
  }
371
357
  }
372
358
  },
373
- "204": {
374
- "description": "No Content"
359
+ "200": {
360
+ "description": "Success",
361
+ "content": {
362
+ "application/json": {
363
+ "schema": {
364
+ "$ref": "#/components/schemas/ProfileDto"
365
+ }
366
+ }
367
+ }
375
368
  },
376
369
  "403": {
377
370
  "description": "Forbidden"
@@ -384,20 +377,20 @@
384
377
  ]
385
378
  }
386
379
  },
387
- "/api/sdm/mentions": {
380
+ "/api/settings/profile/current": {
388
381
  "get": {
389
382
  "tags": [
390
- "Sdm"
383
+ "Settings"
391
384
  ],
392
- "summary": "Gets mentions",
393
- "operationId": "MentionEndpoint",
385
+ "summary": "Get settings profile",
386
+ "operationId": "GetProfileEndpoint",
394
387
  "parameters": [
395
388
  {
396
- "name": "filter",
389
+ "name": "validate",
397
390
  "in": "query",
398
391
  "required": true,
399
392
  "schema": {
400
- "type": "string"
393
+ "type": "boolean"
401
394
  }
402
395
  }
403
396
  ],
@@ -452,8 +445,15 @@
452
445
  }
453
446
  }
454
447
  },
455
- "204": {
456
- "description": "No Content"
448
+ "200": {
449
+ "description": "Success",
450
+ "content": {
451
+ "application/json": {
452
+ "schema": {
453
+ "$ref": "#/components/schemas/ProfileDto"
454
+ }
455
+ }
456
+ }
457
457
  },
458
458
  "403": {
459
459
  "description": "Forbidden"
@@ -464,143 +464,45 @@
464
464
  "apptio-token-scheme": []
465
465
  }
466
466
  ]
467
- }
468
- },
469
- "/api/sdm/schema/{entityType}": {
470
- "get": {
467
+ },
468
+ "put": {
471
469
  "tags": [
472
- "Sdm"
470
+ "Settings"
473
471
  ],
474
- "summary": "Retrieves Shared Data Model",
475
- "operationId": "SharedDataGetSchemaEndpoint",
476
- "parameters": [
477
- {
478
- "name": "entityType",
479
- "in": "path",
480
- "required": true,
481
- "schema": {
482
- "type": "string"
472
+ "summary": "Sets current settings profile",
473
+ "operationId": "SetCurrentProfileEndpoint",
474
+ "requestBody": {
475
+ "x-name": "SetCurrentProfileRequestDto",
476
+ "description": "",
477
+ "content": {
478
+ "application/json": {
479
+ "schema": {
480
+ "$ref": "#/components/schemas/SetCurrentProfileRequestDto"
481
+ }
483
482
  }
484
483
  },
485
- {
486
- "name": "useDefaultProfile",
487
- "in": "query",
488
- "required": true,
489
- "schema": {
490
- "type": "boolean"
484
+ "required": true,
485
+ "x-position": 1
486
+ },
487
+ "responses": {
488
+ "400": {
489
+ "description": "Validation error",
490
+ "content": {
491
+ "application/problem+json": {
492
+ "schema": {
493
+ "$ref": "#/components/schemas/HttpValidationProblemDetails"
494
+ }
495
+ }
491
496
  }
492
497
  },
493
- {
494
- "name": "id",
495
- "in": "query",
496
- "schema": {
497
- "type": "integer",
498
- "format": "int32",
499
- "nullable": true
500
- }
501
- },
502
- {
503
- "name": "select",
504
- "in": "query",
505
- "schema": {
506
- "type": "string",
507
- "nullable": true
508
- }
509
- },
510
- {
511
- "name": "skip",
512
- "in": "query",
513
- "schema": {
514
- "type": "integer",
515
- "format": "int32",
516
- "nullable": true
517
- }
518
- },
519
- {
520
- "name": "take",
521
- "in": "query",
522
- "schema": {
523
- "type": "integer",
524
- "format": "int32",
525
- "nullable": true
526
- }
527
- },
528
- {
529
- "name": "where",
530
- "in": "query",
531
- "schema": {
532
- "type": "string",
533
- "nullable": true
534
- }
535
- },
536
- {
537
- "name": "filter",
538
- "in": "query",
539
- "schema": {
540
- "type": "string",
541
- "nullable": true
542
- }
543
- },
544
- {
545
- "name": "orderBy",
546
- "in": "query",
547
- "schema": {
548
- "type": "string",
549
- "nullable": true
550
- }
551
- },
552
- {
553
- "name": "result",
554
- "in": "query",
555
- "schema": {
556
- "type": "string",
557
- "nullable": true
558
- }
559
- },
560
- {
561
- "name": "convertAttachmentsHost",
562
- "in": "query",
563
- "schema": {
564
- "type": "string",
565
- "nullable": true
566
- }
567
- },
568
- {
569
- "name": "dateFormat",
570
- "in": "query",
571
- "schema": {
572
- "type": "string",
573
- "nullable": true
574
- }
575
- },
576
- {
577
- "name": "disableProfileValidation",
578
- "in": "query",
579
- "required": true,
580
- "schema": {
581
- "type": "boolean"
582
- }
583
- }
584
- ],
585
- "responses": {
586
- "400": {
587
- "description": "Validation error",
588
- "content": {
589
- "application/problem+json": {
590
- "schema": {
591
- "$ref": "#/components/schemas/HttpValidationProblemDetails"
592
- }
593
- }
594
- }
595
- },
596
- "401": {
597
- "description": "Unauthorized",
598
- "content": {
599
- "application/problem+json": {
600
- "schema": {
601
- "$ref": "#/components/schemas/ProblemDetails"
602
- }
603
- }
498
+ "401": {
499
+ "description": "Unauthorized",
500
+ "content": {
501
+ "application/problem+json": {
502
+ "schema": {
503
+ "$ref": "#/components/schemas/ProblemDetails"
504
+ }
505
+ }
604
506
  }
605
507
  },
606
508
  "404": {
@@ -638,8 +540,7 @@
638
540
  "content": {
639
541
  "application/json": {
640
542
  "schema": {
641
- "type": "array",
642
- "items": {}
543
+ "$ref": "#/components/schemas/ProfileDto"
643
544
  }
644
545
  }
645
546
  }
@@ -655,114 +556,13 @@
655
556
  ]
656
557
  }
657
558
  },
658
- "/api/sdm/{entityType}/{id}": {
559
+ "/api/settings/entityTypes": {
659
560
  "get": {
660
561
  "tags": [
661
- "Sdm"
662
- ],
663
- "summary": "Retrieves Shared Data Model",
664
- "operationId": "SharedDataGetEndpoint",
665
- "parameters": [
666
- {
667
- "name": "entityType",
668
- "in": "path",
669
- "required": true,
670
- "schema": {
671
- "type": "string"
672
- }
673
- },
674
- {
675
- "name": "id",
676
- "in": "path",
677
- "required": true,
678
- "schema": {
679
- "type": "integer",
680
- "format": "int32"
681
- }
682
- },
683
- {
684
- "name": "select",
685
- "in": "query",
686
- "schema": {
687
- "type": "string",
688
- "nullable": true
689
- }
690
- },
691
- {
692
- "name": "skip",
693
- "in": "query",
694
- "schema": {
695
- "type": "integer",
696
- "format": "int32",
697
- "nullable": true
698
- }
699
- },
700
- {
701
- "name": "take",
702
- "in": "query",
703
- "schema": {
704
- "type": "integer",
705
- "format": "int32",
706
- "nullable": true
707
- }
708
- },
709
- {
710
- "name": "where",
711
- "in": "query",
712
- "schema": {
713
- "type": "string",
714
- "nullable": true
715
- }
716
- },
717
- {
718
- "name": "filter",
719
- "in": "query",
720
- "schema": {
721
- "type": "string",
722
- "nullable": true
723
- }
724
- },
725
- {
726
- "name": "orderBy",
727
- "in": "query",
728
- "schema": {
729
- "type": "string",
730
- "nullable": true
731
- }
732
- },
733
- {
734
- "name": "result",
735
- "in": "query",
736
- "schema": {
737
- "type": "string",
738
- "nullable": true
739
- }
740
- },
741
- {
742
- "name": "convertAttachmentsHost",
743
- "in": "query",
744
- "schema": {
745
- "type": "string",
746
- "nullable": true
747
- }
748
- },
749
- {
750
- "name": "dateFormat",
751
- "in": "query",
752
- "schema": {
753
- "type": "string",
754
- "nullable": true
755
- }
756
- },
757
- {
758
- "name": "disableProfileValidation",
759
- "in": "query",
760
- "required": true,
761
- "schema": {
762
- "type": "boolean"
763
- }
764
- }
562
+ "Settings"
765
563
  ],
564
+ "summary": "Get Entity Types",
565
+ "operationId": "GetEntityTypesEndpoint",
766
566
  "responses": {
767
567
  "400": {
768
568
  "description": "Validation error",
@@ -819,8 +619,7 @@
819
619
  "content": {
820
620
  "application/json": {
821
621
  "schema": {
822
- "type": "array",
823
- "items": {}
622
+ "$ref": "#/components/schemas/GetEntityTypesDto"
824
623
  }
825
624
  }
826
625
  }
@@ -836,42 +635,25 @@
836
635
  ]
837
636
  }
838
637
  },
839
- "/api/sdm/fetch/{entityType}/{id}": {
840
- "post": {
638
+ "/api/settings/profile/testTypeMapping": {
639
+ "put": {
841
640
  "tags": [
842
- "Sdm"
843
- ],
844
- "summary": "Fetches entities using POST with complex filters",
845
- "operationId": "SharedDataFetchPostEndpoint",
846
- "parameters": [
847
- {
848
- "name": "entityType",
849
- "in": "path",
850
- "required": true,
851
- "schema": {
852
- "type": "string"
853
- }
854
- },
855
- {
856
- "name": "id",
857
- "in": "path",
858
- "required": true,
859
- "schema": {
860
- "type": "integer",
861
- "format": "int32"
862
- }
863
- }
641
+ "Settings"
864
642
  ],
643
+ "summary": "Test type mapping",
644
+ "operationId": "TestTypeMappingEndpoint",
865
645
  "requestBody": {
866
- "x-name": "payload",
646
+ "x-name": "TestTypeMappingDto",
647
+ "description": "",
867
648
  "content": {
868
649
  "application/json": {
869
650
  "schema": {
870
- "$ref": "#/components/schemas/QueryFiltersDto"
651
+ "$ref": "#/components/schemas/TestTypeMappingDto"
871
652
  }
872
653
  }
873
654
  },
874
- "required": true
655
+ "required": true,
656
+ "x-position": 1
875
657
  },
876
658
  "responses": {
877
659
  "400": {
@@ -928,7 +710,10 @@
928
710
  "description": "Success",
929
711
  "content": {
930
712
  "application/json": {
931
- "schema": {}
713
+ "schema": {
714
+ "type": "array",
715
+ "items": {}
716
+ }
932
717
  }
933
718
  }
934
719
  },
@@ -943,39 +728,26 @@
943
728
  ]
944
729
  }
945
730
  },
946
- "/api/sdm/{entityType}/count": {
947
- "get": {
731
+ "/api/settings/profile/validate": {
732
+ "put": {
948
733
  "tags": [
949
- "Sdm"
734
+ "Settings"
950
735
  ],
951
- "summary": "Retrieves Shared Data Model entities count",
952
- "operationId": "SharedDataCountEndpoint",
953
- "parameters": [
954
- {
955
- "name": "entityType",
956
- "in": "path",
957
- "required": true,
958
- "schema": {
959
- "type": "string"
960
- }
961
- },
962
- {
963
- "name": "where",
964
- "in": "query",
965
- "schema": {
966
- "type": "string",
967
- "nullable": true
736
+ "summary": "Validate profile",
737
+ "operationId": "ValidateProfileEndpoint",
738
+ "requestBody": {
739
+ "x-name": "ProfileDto",
740
+ "description": "",
741
+ "content": {
742
+ "application/json": {
743
+ "schema": {
744
+ "$ref": "#/components/schemas/ProfileDto"
745
+ }
968
746
  }
969
747
  },
970
- {
971
- "name": "filter",
972
- "in": "query",
973
- "schema": {
974
- "type": "string",
975
- "nullable": true
976
- }
977
- }
978
- ],
748
+ "required": true,
749
+ "x-position": 1
750
+ },
979
751
  "responses": {
980
752
  "400": {
981
753
  "description": "Validation error",
@@ -1032,8 +804,7 @@
1032
804
  "content": {
1033
805
  "application/json": {
1034
806
  "schema": {
1035
- "type": "integer",
1036
- "format": "int32"
807
+ "$ref": "#/components/schemas/ValidatedProfileDto"
1037
808
  }
1038
809
  }
1039
810
  }
@@ -1049,37 +820,23 @@
1049
820
  ]
1050
821
  }
1051
822
  },
1052
- "/api/sdm/attachments/{entityId}": {
1053
- "post": {
823
+ "/api/sdm/alerts/{storageKey}": {
824
+ "get": {
1054
825
  "tags": [
1055
826
  "Sdm"
1056
827
  ],
1057
- "summary": "Uploads attachments to entity",
1058
- "operationId": "SharedDataCreateAttachmentEndpoint",
828
+ "summary": "Gets alerts",
829
+ "operationId": "SharedDataAlertsEndpoint",
1059
830
  "parameters": [
1060
831
  {
1061
- "name": "entityId",
832
+ "name": "storageKey",
1062
833
  "in": "path",
1063
834
  "required": true,
1064
835
  "schema": {
1065
- "type": "integer",
1066
- "format": "int32"
836
+ "type": "string"
1067
837
  }
1068
838
  }
1069
839
  ],
1070
- "requestBody": {
1071
- "x-name": "SharedDataCreateAttachmentRequestDto",
1072
- "description": "",
1073
- "content": {
1074
- "multipart/form-data": {
1075
- "schema": {
1076
- "$ref": "#/components/schemas/SharedDataCreateAttachmentRequestDto"
1077
- }
1078
- }
1079
- },
1080
- "required": true,
1081
- "x-position": 1
1082
- },
1083
840
  "responses": {
1084
841
  "400": {
1085
842
  "description": "Validation error",
@@ -1136,7 +893,8 @@
1136
893
  "content": {
1137
894
  "application/json": {
1138
895
  "schema": {
1139
- "$ref": "#/components/schemas/SharedDataCreateAttachmentResponseDto"
896
+ "type": "array",
897
+ "items": {}
1140
898
  }
1141
899
  }
1142
900
  }
@@ -1242,23 +1000,37 @@
1242
1000
  ]
1243
1001
  }
1244
1002
  },
1245
- "/api/sdm/alerts/{storageKey}": {
1246
- "get": {
1003
+ "/api/sdm/attachments/{entityId}": {
1004
+ "post": {
1247
1005
  "tags": [
1248
1006
  "Sdm"
1249
1007
  ],
1250
- "summary": "Gets alerts",
1251
- "operationId": "SharedDataAlertsEndpoint",
1008
+ "summary": "Uploads attachments to entity",
1009
+ "operationId": "SharedDataCreateAttachmentEndpoint",
1252
1010
  "parameters": [
1253
1011
  {
1254
- "name": "storageKey",
1012
+ "name": "entityId",
1255
1013
  "in": "path",
1256
1014
  "required": true,
1257
1015
  "schema": {
1258
- "type": "string"
1016
+ "type": "integer",
1017
+ "format": "int32"
1259
1018
  }
1260
1019
  }
1261
1020
  ],
1021
+ "requestBody": {
1022
+ "x-name": "SharedDataCreateAttachmentRequestDto",
1023
+ "description": "",
1024
+ "content": {
1025
+ "multipart/form-data": {
1026
+ "schema": {
1027
+ "$ref": "#/components/schemas/SharedDataCreateAttachmentRequestDto"
1028
+ }
1029
+ }
1030
+ },
1031
+ "required": true,
1032
+ "x-position": 1
1033
+ },
1262
1034
  "responses": {
1263
1035
  "400": {
1264
1036
  "description": "Validation error",
@@ -1315,8 +1087,7 @@
1315
1087
  "content": {
1316
1088
  "application/json": {
1317
1089
  "schema": {
1318
- "type": "array",
1319
- "items": {}
1090
+ "$ref": "#/components/schemas/SharedDataCreateAttachmentResponseDto"
1320
1091
  }
1321
1092
  }
1322
1093
  }
@@ -1332,26 +1103,39 @@
1332
1103
  ]
1333
1104
  }
1334
1105
  },
1335
- "/api/settings/profile/validate": {
1336
- "put": {
1106
+ "/api/sdm/{entityType}/count": {
1107
+ "get": {
1337
1108
  "tags": [
1338
- "Settings"
1109
+ "Sdm"
1339
1110
  ],
1340
- "summary": "Validate profile",
1341
- "operationId": "ValidateProfileEndpoint",
1342
- "requestBody": {
1343
- "x-name": "ProfileDto",
1344
- "description": "",
1345
- "content": {
1346
- "application/json": {
1347
- "schema": {
1348
- "$ref": "#/components/schemas/ProfileDto"
1349
- }
1111
+ "summary": "Retrieves Shared Data Model entities count",
1112
+ "operationId": "SharedDataCountEndpoint",
1113
+ "parameters": [
1114
+ {
1115
+ "name": "entityType",
1116
+ "in": "path",
1117
+ "required": true,
1118
+ "schema": {
1119
+ "type": "string"
1350
1120
  }
1351
1121
  },
1352
- "required": true,
1353
- "x-position": 1
1354
- },
1122
+ {
1123
+ "name": "where",
1124
+ "in": "query",
1125
+ "schema": {
1126
+ "type": "string",
1127
+ "nullable": true
1128
+ }
1129
+ },
1130
+ {
1131
+ "name": "filter",
1132
+ "in": "query",
1133
+ "schema": {
1134
+ "type": "string",
1135
+ "nullable": true
1136
+ }
1137
+ }
1138
+ ],
1355
1139
  "responses": {
1356
1140
  "400": {
1357
1141
  "description": "Validation error",
@@ -1408,7 +1192,8 @@
1408
1192
  "content": {
1409
1193
  "application/json": {
1410
1194
  "schema": {
1411
- "$ref": "#/components/schemas/ValidatedProfileDto"
1195
+ "type": "integer",
1196
+ "format": "int32"
1412
1197
  }
1413
1198
  }
1414
1199
  }
@@ -1424,27 +1209,40 @@
1424
1209
  ]
1425
1210
  }
1426
1211
  },
1427
- "/api/settings/profile": {
1428
- "put": {
1212
+ "/api/sdm/{entityType}": {
1213
+ "delete": {
1429
1214
  "tags": [
1430
- "Settings"
1215
+ "Sdm"
1216
+ ],
1217
+ "summary": "Deletes Shared Data Model",
1218
+ "operationId": "SharedDataDeleteEndpoint",
1219
+ "parameters": [
1220
+ {
1221
+ "name": "entityType",
1222
+ "in": "path",
1223
+ "required": true,
1224
+ "schema": {
1225
+ "type": "string"
1226
+ }
1227
+ }
1431
1228
  ],
1432
- "summary": "Update settings profile",
1433
- "operationId": "UpdateProfileEndpoint",
1434
1229
  "requestBody": {
1435
- "x-name": "profile",
1230
+ "x-name": "SharedDataDeleteDto",
1231
+ "description": "",
1436
1232
  "content": {
1233
+ "*/*": {
1234
+ "schema": {
1235
+ "$ref": "#/components/schemas/SharedDataDeleteDto"
1236
+ }
1237
+ },
1437
1238
  "application/json": {
1438
1239
  "schema": {
1439
- "oneOf": [
1440
- {
1441
- "$ref": "#/components/schemas/ProfileDto"
1442
- }
1443
- ]
1240
+ "$ref": "#/components/schemas/SharedDataDeleteDto"
1444
1241
  }
1445
1242
  }
1446
1243
  },
1447
- "required": true
1244
+ "required": true,
1245
+ "x-position": 1
1448
1246
  },
1449
1247
  "responses": {
1450
1248
  "400": {
@@ -1497,15 +1295,8 @@
1497
1295
  }
1498
1296
  }
1499
1297
  },
1500
- "200": {
1501
- "description": "Success",
1502
- "content": {
1503
- "application/json": {
1504
- "schema": {
1505
- "$ref": "#/components/schemas/ProfileDto"
1506
- }
1507
- }
1508
- }
1298
+ "204": {
1299
+ "description": "No Content"
1509
1300
  },
1510
1301
  "403": {
1511
1302
  "description": "Forbidden"
@@ -1517,12 +1308,31 @@
1517
1308
  }
1518
1309
  ]
1519
1310
  },
1520
- "get": {
1311
+ "post": {
1521
1312
  "tags": [
1522
- "Settings"
1313
+ "Sdm"
1523
1314
  ],
1524
- "summary": "Get settings profile",
1525
- "operationId": "GetProfilesEndpoint",
1315
+ "summary": "Creates or Updates Shared Data Model",
1316
+ "operationId": "SharedDataPostEndpoint",
1317
+ "parameters": [
1318
+ {
1319
+ "name": "entityType",
1320
+ "in": "path",
1321
+ "required": true,
1322
+ "schema": {
1323
+ "type": "string"
1324
+ }
1325
+ }
1326
+ ],
1327
+ "requestBody": {
1328
+ "x-name": "payload",
1329
+ "content": {
1330
+ "application/json": {
1331
+ "schema": {}
1332
+ }
1333
+ },
1334
+ "required": true
1335
+ },
1526
1336
  "responses": {
1527
1337
  "400": {
1528
1338
  "description": "Validation error",
@@ -1578,12 +1388,7 @@
1578
1388
  "description": "Success",
1579
1389
  "content": {
1580
1390
  "application/json": {
1581
- "schema": {
1582
- "type": "array",
1583
- "items": {
1584
- "$ref": "#/components/schemas/ProfileIdDto"
1585
- }
1586
- }
1391
+ "schema": {}
1587
1392
  }
1588
1393
  }
1589
1394
  },
@@ -1596,30 +1401,44 @@
1596
1401
  "apptio-token-scheme": []
1597
1402
  }
1598
1403
  ]
1599
- },
1600
- "delete": {
1404
+ }
1405
+ },
1406
+ "/api/sdm/fetch/{entityType}/{id}": {
1407
+ "post": {
1601
1408
  "tags": [
1602
- "Settings"
1409
+ "Sdm"
1603
1410
  ],
1604
- "summary": "Delete profile and sets default one as current",
1605
- "operationId": "DeleteProfileEndpoint",
1606
- "requestBody": {
1607
- "x-name": "DeleteProfileRequestDto",
1608
- "description": "",
1609
- "content": {
1610
- "*/*": {
1611
- "schema": {
1612
- "$ref": "#/components/schemas/DeleteProfileRequestDto"
1613
- }
1614
- },
1615
- "application/json": {
1616
- "schema": {
1617
- "$ref": "#/components/schemas/DeleteProfileRequestDto"
1411
+ "summary": "Fetches entities using POST with complex filters",
1412
+ "operationId": "SharedDataFetchPostEndpoint",
1413
+ "parameters": [
1414
+ {
1415
+ "name": "entityType",
1416
+ "in": "path",
1417
+ "required": true,
1418
+ "schema": {
1419
+ "type": "string"
1420
+ }
1421
+ },
1422
+ {
1423
+ "name": "id",
1424
+ "in": "path",
1425
+ "required": true,
1426
+ "schema": {
1427
+ "type": "integer",
1428
+ "format": "int32"
1429
+ }
1430
+ }
1431
+ ],
1432
+ "requestBody": {
1433
+ "x-name": "payload",
1434
+ "content": {
1435
+ "application/json": {
1436
+ "schema": {
1437
+ "$ref": "#/components/schemas/QueryFiltersDto"
1618
1438
  }
1619
1439
  }
1620
1440
  },
1621
- "required": true,
1622
- "x-position": 1
1441
+ "required": true
1623
1442
  },
1624
1443
  "responses": {
1625
1444
  "400": {
@@ -1676,9 +1495,7 @@
1676
1495
  "description": "Success",
1677
1496
  "content": {
1678
1497
  "application/json": {
1679
- "schema": {
1680
- "$ref": "#/components/schemas/ProfileDto"
1681
- }
1498
+ "schema": {}
1682
1499
  }
1683
1500
  }
1684
1501
  },
@@ -1693,26 +1510,114 @@
1693
1510
  ]
1694
1511
  }
1695
1512
  },
1696
- "/api/settings/profile/testTypeMapping": {
1697
- "put": {
1513
+ "/api/sdm/{entityType}/{id}": {
1514
+ "get": {
1698
1515
  "tags": [
1699
- "Settings"
1516
+ "Sdm"
1700
1517
  ],
1701
- "summary": "Test type mapping",
1702
- "operationId": "TestTypeMappingEndpoint",
1703
- "requestBody": {
1704
- "x-name": "TestTypeMappingDto",
1705
- "description": "",
1706
- "content": {
1707
- "application/json": {
1708
- "schema": {
1709
- "$ref": "#/components/schemas/TestTypeMappingDto"
1710
- }
1518
+ "summary": "Retrieves Shared Data Model",
1519
+ "operationId": "SharedDataGetEndpoint",
1520
+ "parameters": [
1521
+ {
1522
+ "name": "entityType",
1523
+ "in": "path",
1524
+ "required": true,
1525
+ "schema": {
1526
+ "type": "string"
1711
1527
  }
1712
1528
  },
1713
- "required": true,
1714
- "x-position": 1
1715
- },
1529
+ {
1530
+ "name": "id",
1531
+ "in": "path",
1532
+ "required": true,
1533
+ "schema": {
1534
+ "type": "integer",
1535
+ "format": "int32"
1536
+ }
1537
+ },
1538
+ {
1539
+ "name": "select",
1540
+ "in": "query",
1541
+ "schema": {
1542
+ "type": "string",
1543
+ "nullable": true
1544
+ }
1545
+ },
1546
+ {
1547
+ "name": "skip",
1548
+ "in": "query",
1549
+ "schema": {
1550
+ "type": "integer",
1551
+ "format": "int32",
1552
+ "nullable": true
1553
+ }
1554
+ },
1555
+ {
1556
+ "name": "take",
1557
+ "in": "query",
1558
+ "schema": {
1559
+ "type": "integer",
1560
+ "format": "int32",
1561
+ "nullable": true
1562
+ }
1563
+ },
1564
+ {
1565
+ "name": "where",
1566
+ "in": "query",
1567
+ "schema": {
1568
+ "type": "string",
1569
+ "nullable": true
1570
+ }
1571
+ },
1572
+ {
1573
+ "name": "filter",
1574
+ "in": "query",
1575
+ "schema": {
1576
+ "type": "string",
1577
+ "nullable": true
1578
+ }
1579
+ },
1580
+ {
1581
+ "name": "orderBy",
1582
+ "in": "query",
1583
+ "schema": {
1584
+ "type": "string",
1585
+ "nullable": true
1586
+ }
1587
+ },
1588
+ {
1589
+ "name": "result",
1590
+ "in": "query",
1591
+ "schema": {
1592
+ "type": "string",
1593
+ "nullable": true
1594
+ }
1595
+ },
1596
+ {
1597
+ "name": "convertAttachmentsHost",
1598
+ "in": "query",
1599
+ "schema": {
1600
+ "type": "string",
1601
+ "nullable": true
1602
+ }
1603
+ },
1604
+ {
1605
+ "name": "dateFormat",
1606
+ "in": "query",
1607
+ "schema": {
1608
+ "type": "string",
1609
+ "nullable": true
1610
+ }
1611
+ },
1612
+ {
1613
+ "name": "disableProfileValidation",
1614
+ "in": "query",
1615
+ "required": true,
1616
+ "schema": {
1617
+ "type": "boolean"
1618
+ }
1619
+ }
1620
+ ],
1716
1621
  "responses": {
1717
1622
  "400": {
1718
1623
  "description": "Validation error",
@@ -1786,106 +1691,115 @@
1786
1691
  ]
1787
1692
  }
1788
1693
  },
1789
- "/api/settings/profile/current": {
1790
- "put": {
1694
+ "/api/sdm/schema/{entityType}": {
1695
+ "get": {
1791
1696
  "tags": [
1792
- "Settings"
1697
+ "Sdm"
1793
1698
  ],
1794
- "summary": "Sets current settings profile",
1795
- "operationId": "SetCurrentProfileEndpoint",
1796
- "requestBody": {
1797
- "x-name": "SetCurrentProfileRequestDto",
1798
- "description": "",
1799
- "content": {
1800
- "application/json": {
1801
- "schema": {
1802
- "$ref": "#/components/schemas/SetCurrentProfileRequestDto"
1803
- }
1699
+ "summary": "Retrieves Shared Data Model",
1700
+ "operationId": "SharedDataGetSchemaEndpoint",
1701
+ "parameters": [
1702
+ {
1703
+ "name": "entityType",
1704
+ "in": "path",
1705
+ "required": true,
1706
+ "schema": {
1707
+ "type": "string"
1804
1708
  }
1805
1709
  },
1806
- "required": true,
1807
- "x-position": 1
1808
- },
1809
- "responses": {
1810
- "400": {
1811
- "description": "Validation error",
1812
- "content": {
1813
- "application/problem+json": {
1814
- "schema": {
1815
- "$ref": "#/components/schemas/HttpValidationProblemDetails"
1816
- }
1817
- }
1710
+ {
1711
+ "name": "useDefaultProfile",
1712
+ "in": "query",
1713
+ "required": true,
1714
+ "schema": {
1715
+ "type": "boolean"
1818
1716
  }
1819
1717
  },
1820
- "401": {
1821
- "description": "Unauthorized",
1822
- "content": {
1823
- "application/problem+json": {
1824
- "schema": {
1825
- "$ref": "#/components/schemas/ProblemDetails"
1826
- }
1827
- }
1718
+ {
1719
+ "name": "id",
1720
+ "in": "query",
1721
+ "schema": {
1722
+ "type": "integer",
1723
+ "format": "int32",
1724
+ "nullable": true
1828
1725
  }
1829
1726
  },
1830
- "404": {
1831
- "description": "Unable to find resource",
1832
- "content": {
1833
- "application/problem+json": {
1834
- "schema": {
1835
- "$ref": "#/components/schemas/ProblemDetails"
1836
- }
1837
- }
1727
+ {
1728
+ "name": "select",
1729
+ "in": "query",
1730
+ "schema": {
1731
+ "type": "string",
1732
+ "nullable": true
1838
1733
  }
1839
1734
  },
1840
- "409": {
1841
- "description": "Conflict",
1842
- "content": {
1843
- "application/problem+json": {
1844
- "schema": {
1845
- "$ref": "#/components/schemas/ProblemDetails"
1846
- }
1847
- }
1735
+ {
1736
+ "name": "skip",
1737
+ "in": "query",
1738
+ "schema": {
1739
+ "type": "integer",
1740
+ "format": "int32",
1741
+ "nullable": true
1848
1742
  }
1849
1743
  },
1850
- "500": {
1851
- "description": "Internal server error",
1852
- "content": {
1853
- "application/problem+json": {
1854
- "schema": {
1855
- "$ref": "#/components/schemas/ProblemDetails"
1856
- }
1857
- }
1744
+ {
1745
+ "name": "take",
1746
+ "in": "query",
1747
+ "schema": {
1748
+ "type": "integer",
1749
+ "format": "int32",
1750
+ "nullable": true
1858
1751
  }
1859
1752
  },
1860
- "200": {
1861
- "description": "Success",
1862
- "content": {
1863
- "application/json": {
1864
- "schema": {
1865
- "$ref": "#/components/schemas/ProfileDto"
1866
- }
1867
- }
1753
+ {
1754
+ "name": "where",
1755
+ "in": "query",
1756
+ "schema": {
1757
+ "type": "string",
1758
+ "nullable": true
1868
1759
  }
1869
1760
  },
1870
- "403": {
1871
- "description": "Forbidden"
1872
- }
1873
- },
1874
- "security": [
1875
1761
  {
1876
- "apptio-token-scheme": []
1877
- }
1878
- ]
1879
- },
1880
- "get": {
1881
- "tags": [
1882
- "Settings"
1883
- ],
1884
- "summary": "Get settings profile",
1885
- "operationId": "GetProfileEndpoint",
1886
- "parameters": [
1762
+ "name": "filter",
1763
+ "in": "query",
1764
+ "schema": {
1765
+ "type": "string",
1766
+ "nullable": true
1767
+ }
1768
+ },
1887
1769
  {
1888
- "name": "validate",
1770
+ "name": "orderBy",
1771
+ "in": "query",
1772
+ "schema": {
1773
+ "type": "string",
1774
+ "nullable": true
1775
+ }
1776
+ },
1777
+ {
1778
+ "name": "result",
1779
+ "in": "query",
1780
+ "schema": {
1781
+ "type": "string",
1782
+ "nullable": true
1783
+ }
1784
+ },
1785
+ {
1786
+ "name": "convertAttachmentsHost",
1787
+ "in": "query",
1788
+ "schema": {
1789
+ "type": "string",
1790
+ "nullable": true
1791
+ }
1792
+ },
1793
+ {
1794
+ "name": "dateFormat",
1795
+ "in": "query",
1796
+ "schema": {
1797
+ "type": "string",
1798
+ "nullable": true
1799
+ }
1800
+ },
1801
+ {
1802
+ "name": "disableProfileValidation",
1889
1803
  "in": "query",
1890
1804
  "required": true,
1891
1805
  "schema": {
@@ -1949,7 +1863,8 @@
1949
1863
  "content": {
1950
1864
  "application/json": {
1951
1865
  "schema": {
1952
- "$ref": "#/components/schemas/ProfileDto"
1866
+ "type": "array",
1867
+ "items": {}
1953
1868
  }
1954
1869
  }
1955
1870
  }
@@ -1965,13 +1880,23 @@
1965
1880
  ]
1966
1881
  }
1967
1882
  },
1968
- "/api/settings/internal/test-k8s-token": {
1883
+ "/api/sdm/mentions": {
1969
1884
  "get": {
1970
1885
  "tags": [
1971
- "Settings"
1886
+ "Sdm"
1887
+ ],
1888
+ "summary": "Gets mentions",
1889
+ "operationId": "MentionEndpoint",
1890
+ "parameters": [
1891
+ {
1892
+ "name": "filter",
1893
+ "in": "query",
1894
+ "required": true,
1895
+ "schema": {
1896
+ "type": "string"
1897
+ }
1898
+ }
1972
1899
  ],
1973
- "summary": "Tests K8S token",
1974
- "operationId": "TestK8STokenEndpoint",
1975
1900
  "responses": {
1976
1901
  "400": {
1977
1902
  "description": "Validation error",
@@ -2023,16 +1948,8 @@
2023
1948
  }
2024
1949
  }
2025
1950
  },
2026
- "200": {
2027
- "description": "Success",
2028
- "content": {
2029
- "application/json": {
2030
- "schema": {
2031
- "type": "array",
2032
- "items": {}
2033
- }
2034
- }
2035
- }
1951
+ "204": {
1952
+ "description": "No Content"
2036
1953
  },
2037
1954
  "403": {
2038
1955
  "description": "Forbidden"
@@ -2045,13 +1962,23 @@
2045
1962
  ]
2046
1963
  }
2047
1964
  },
2048
- "/api/settings/entityTypes": {
1965
+ "/api/sdm/globalsettings": {
2049
1966
  "get": {
2050
1967
  "tags": [
2051
- "Settings"
1968
+ "Sdm"
1969
+ ],
1970
+ "summary": "Retrieves Shared Data Model",
1971
+ "operationId": "SharedDataGetGlobalSettingsEndpoint",
1972
+ "parameters": [
1973
+ {
1974
+ "name": "select",
1975
+ "in": "query",
1976
+ "schema": {
1977
+ "type": "string",
1978
+ "nullable": true
1979
+ }
1980
+ }
2052
1981
  ],
2053
- "summary": "Get Entity Types",
2054
- "operationId": "GetEntityTypesEndpoint",
2055
1982
  "responses": {
2056
1983
  "400": {
2057
1984
  "description": "Validation error",
@@ -2108,7 +2035,8 @@
2108
2035
  "content": {
2109
2036
  "application/json": {
2110
2037
  "schema": {
2111
- "$ref": "#/components/schemas/GetEntityTypesDto"
2038
+ "type": "array",
2039
+ "items": {}
2112
2040
  }
2113
2041
  }
2114
2042
  }
@@ -2124,26 +2052,25 @@
2124
2052
  ]
2125
2053
  }
2126
2054
  },
2127
- "/api/settings/profile/copy": {
2128
- "post": {
2055
+ "/api/sdm/terms": {
2056
+ "get": {
2129
2057
  "tags": [
2130
- "Settings"
2058
+ "Sdm"
2131
2059
  ],
2132
- "summary": "Copy profile and sets as current",
2133
- "operationId": "CopyCurrentProfileEndpoint",
2134
- "requestBody": {
2135
- "x-name": "CopyCurrentProfileRequestDto",
2136
- "description": "",
2137
- "content": {
2138
- "application/json": {
2139
- "schema": {
2140
- "$ref": "#/components/schemas/CopyCurrentProfileRequestDto"
2141
- }
2060
+ "summary": "Gets terms for a given process id.",
2061
+ "operationId": "TermsEndpoint",
2062
+ "parameters": [
2063
+ {
2064
+ "name": "processId",
2065
+ "in": "query",
2066
+ "description": "Id of the process to read terms from. If not set, default process will be returned",
2067
+ "schema": {
2068
+ "type": "integer",
2069
+ "format": "int32",
2070
+ "nullable": true
2142
2071
  }
2143
- },
2144
- "required": true,
2145
- "x-position": 1
2146
- },
2072
+ }
2073
+ ],
2147
2074
  "responses": {
2148
2075
  "400": {
2149
2076
  "description": "Validation error",
@@ -2195,228 +2122,80 @@
2195
2122
  }
2196
2123
  }
2197
2124
  },
2198
- "200": {
2199
- "description": "Success",
2200
- "content": {
2201
- "application/json": {
2202
- "schema": {
2203
- "$ref": "#/components/schemas/ProfileDto"
2204
- }
2205
- }
2206
- }
2125
+ "204": {
2126
+ "description": "No Content"
2207
2127
  },
2208
2128
  "403": {
2209
2129
  "description": "Forbidden"
2210
2130
  }
2211
2131
  },
2212
- "security": [
2213
- {
2214
- "apptio-token-scheme": []
2215
- }
2216
- ]
2217
- }
2218
- }
2219
- },
2220
- "components": {
2221
- "schemas": {
2222
- "HttpValidationProblemDetails": {
2223
- "allOf": [
2224
- {
2225
- "$ref": "#/components/schemas/ProblemDetails"
2226
- },
2227
- {
2228
- "type": "object",
2229
- "additionalProperties": {
2230
- "nullable": true
2231
- },
2232
- "required": [
2233
- "errors"
2234
- ],
2235
- "properties": {
2236
- "errors": {
2237
- "type": "object",
2238
- "additionalProperties": {
2239
- "type": "array",
2240
- "items": {
2241
- "type": "string"
2242
- }
2243
- }
2244
- }
2245
- }
2246
- }
2247
- ]
2248
- },
2249
- "ProblemDetails": {
2250
- "type": "object",
2251
- "additionalProperties": {
2252
- "nullable": true
2253
- },
2254
- "properties": {
2255
- "type": {
2256
- "type": "string",
2257
- "nullable": true
2258
- },
2259
- "title": {
2260
- "type": "string",
2261
- "nullable": true
2262
- },
2263
- "status": {
2264
- "type": "integer",
2265
- "format": "int32",
2266
- "nullable": true
2267
- },
2268
- "detail": {
2269
- "type": "string",
2270
- "nullable": true
2271
- },
2272
- "instance": {
2273
- "type": "string",
2274
- "nullable": true
2275
- }
2276
- }
2277
- },
2278
- "TermsRequestDto": {
2279
- "type": "object",
2280
- "description": "Get terms for process",
2281
- "additionalProperties": false
2282
- },
2283
- "SharedDataGetGlobalSettingsRequestDto": {
2284
- "type": "object",
2285
- "additionalProperties": false
2286
- },
2287
- "MentionsRequestDto": {
2288
- "type": "object",
2289
- "additionalProperties": false
2290
- },
2291
- "SharedDataGetSchemaDto": {
2132
+ "security": [
2133
+ {
2134
+ "apptio-token-scheme": []
2135
+ }
2136
+ ]
2137
+ }
2138
+ }
2139
+ },
2140
+ "components": {
2141
+ "schemas": {
2142
+ "HttpValidationProblemDetails": {
2292
2143
  "allOf": [
2293
2144
  {
2294
- "$ref": "#/components/schemas/SharedDataRequestDto"
2145
+ "$ref": "#/components/schemas/ProblemDetails"
2295
2146
  },
2296
2147
  {
2297
2148
  "type": "object",
2298
- "additionalProperties": false
2149
+ "additionalProperties": {
2150
+ "nullable": true
2151
+ },
2152
+ "required": [
2153
+ "errors"
2154
+ ],
2155
+ "properties": {
2156
+ "errors": {
2157
+ "type": "object",
2158
+ "additionalProperties": {
2159
+ "type": "array",
2160
+ "items": {
2161
+ "type": "string"
2162
+ }
2163
+ }
2164
+ }
2165
+ }
2299
2166
  }
2300
2167
  ]
2301
2168
  },
2302
- "SharedDataRequestDto": {
2303
- "type": "object",
2304
- "additionalProperties": false
2305
- },
2306
- "SharedDataDeleteDto": {
2307
- "type": "object",
2308
- "additionalProperties": false,
2309
- "required": [
2310
- "id"
2311
- ],
2312
- "properties": {
2313
- "id": {
2314
- "type": "integer",
2315
- "format": "int32"
2316
- }
2317
- }
2318
- },
2319
- "QueryFiltersDto": {
2169
+ "ProblemDetails": {
2320
2170
  "type": "object",
2321
- "additionalProperties": false,
2171
+ "additionalProperties": {
2172
+ "nullable": true
2173
+ },
2322
2174
  "properties": {
2323
- "select": {
2175
+ "type": {
2324
2176
  "type": "string",
2325
2177
  "nullable": true
2326
2178
  },
2327
- "skip": {
2328
- "type": "integer",
2329
- "format": "int32",
2179
+ "title": {
2180
+ "type": "string",
2330
2181
  "nullable": true
2331
2182
  },
2332
- "take": {
2183
+ "status": {
2333
2184
  "type": "integer",
2334
2185
  "format": "int32",
2335
2186
  "nullable": true
2336
2187
  },
2337
- "where": {
2338
- "type": "string",
2339
- "nullable": true
2340
- },
2341
- "filter": {
2342
- "type": "string",
2343
- "nullable": true
2344
- },
2345
- "orderBy": {
2188
+ "detail": {
2346
2189
  "type": "string",
2347
2190
  "nullable": true
2348
2191
  },
2349
- "result": {
2192
+ "instance": {
2350
2193
  "type": "string",
2351
2194
  "nullable": true
2352
2195
  }
2353
2196
  }
2354
2197
  },
2355
- "SharedDataCountRequestDto": {
2356
- "type": "object",
2357
- "additionalProperties": false
2358
- },
2359
- "SharedDataCreateAttachmentResponseDto": {
2360
- "type": "object",
2361
- "additionalProperties": false,
2362
- "required": [
2363
- "items"
2364
- ],
2365
- "properties": {
2366
- "items": {
2367
- "type": "array",
2368
- "items": {
2369
- "$ref": "#/components/schemas/SharedDataCreateAttachmentResponseItemDto"
2370
- }
2371
- }
2372
- }
2373
- },
2374
- "SharedDataCreateAttachmentResponseItemDto": {
2375
- "type": "object",
2376
- "additionalProperties": false,
2377
- "required": [
2378
- "id",
2379
- "uri",
2380
- "name"
2381
- ],
2382
- "properties": {
2383
- "id": {
2384
- "type": "integer",
2385
- "format": "int32"
2386
- },
2387
- "uri": {
2388
- "type": "string"
2389
- },
2390
- "name": {
2391
- "type": "string"
2392
- }
2393
- }
2394
- },
2395
- "SharedDataCreateAttachmentRequestDto": {
2396
- "type": "object",
2397
- "additionalProperties": false,
2398
- "required": [
2399
- "file"
2400
- ],
2401
- "properties": {
2402
- "file": {
2403
- "type": "array",
2404
- "items": {
2405
- "type": "string",
2406
- "format": "binary"
2407
- }
2408
- }
2409
- }
2410
- },
2411
- "SharedDataAttachmentRequestDto": {
2412
- "type": "object",
2413
- "additionalProperties": false
2414
- },
2415
- "SharedDataAlertsRequestDto": {
2416
- "type": "object",
2417
- "additionalProperties": false
2418
- },
2419
- "ValidatedProfileDto": {
2198
+ "ProfileDto": {
2420
2199
  "allOf": [
2421
2200
  {
2422
2201
  "$ref": "#/components/schemas/ProfileIdDto"
@@ -2425,79 +2204,19 @@
2425
2204
  "type": "object",
2426
2205
  "additionalProperties": false,
2427
2206
  "required": [
2428
- "typeMappings",
2429
- "validationState"
2207
+ "typeMappings"
2430
2208
  ],
2431
2209
  "properties": {
2432
2210
  "typeMappings": {
2433
2211
  "type": "array",
2434
2212
  "items": {
2435
- "$ref": "#/components/schemas/ValidatedTypeMappingDto"
2436
- }
2437
- },
2438
- "validationState": {
2439
- "$ref": "#/components/schemas/ValidationState"
2440
- }
2441
- }
2442
- }
2443
- ]
2444
- },
2445
- "ValidatedTypeMappingDto": {
2446
- "allOf": [
2447
- {
2448
- "$ref": "#/components/schemas/TypeMappingDto"
2449
- },
2450
- {
2451
- "type": "object",
2452
- "additionalProperties": false,
2453
- "required": [
2454
- "validationState",
2455
- "isDefault"
2456
- ],
2457
- "properties": {
2458
- "validationState": {
2459
- "$ref": "#/components/schemas/ValidationState"
2460
- },
2461
- "errors": {
2462
- "type": "array",
2463
- "nullable": true,
2464
- "items": {
2465
- "$ref": "#/components/schemas/MappingErrorDto"
2213
+ "$ref": "#/components/schemas/TypeMappingDto"
2466
2214
  }
2467
- },
2468
- "isDefault": {
2469
- "type": "boolean"
2470
2215
  }
2471
2216
  }
2472
2217
  }
2473
2218
  ]
2474
2219
  },
2475
- "ValidationState": {
2476
- "type": "string",
2477
- "description": "",
2478
- "x-enumNames": [
2479
- "Valid",
2480
- "Warning",
2481
- "Error"
2482
- ],
2483
- "enum": [
2484
- "Valid",
2485
- "Warning",
2486
- "Error"
2487
- ]
2488
- },
2489
- "MappingErrorDto": {
2490
- "type": "object",
2491
- "additionalProperties": false,
2492
- "required": [
2493
- "message"
2494
- ],
2495
- "properties": {
2496
- "message": {
2497
- "type": "string"
2498
- }
2499
- }
2500
- },
2501
2220
  "TypeMappingDto": {
2502
2221
  "type": "object",
2503
2222
  "discriminator": {
@@ -2640,7 +2359,60 @@
2640
2359
  "type": "object",
2641
2360
  "additionalProperties": false,
2642
2361
  "required": [
2643
- "validationState"
2362
+ "validationState"
2363
+ ],
2364
+ "properties": {
2365
+ "validationState": {
2366
+ "$ref": "#/components/schemas/ValidationState"
2367
+ },
2368
+ "errors": {
2369
+ "type": "array",
2370
+ "nullable": true,
2371
+ "items": {
2372
+ "$ref": "#/components/schemas/MappingErrorDto"
2373
+ }
2374
+ }
2375
+ }
2376
+ }
2377
+ ]
2378
+ },
2379
+ "ValidationState": {
2380
+ "type": "string",
2381
+ "description": "",
2382
+ "x-enumNames": [
2383
+ "Valid",
2384
+ "Warning",
2385
+ "Error"
2386
+ ],
2387
+ "enum": [
2388
+ "Valid",
2389
+ "Warning",
2390
+ "Error"
2391
+ ]
2392
+ },
2393
+ "MappingErrorDto": {
2394
+ "type": "object",
2395
+ "additionalProperties": false,
2396
+ "required": [
2397
+ "message"
2398
+ ],
2399
+ "properties": {
2400
+ "message": {
2401
+ "type": "string"
2402
+ }
2403
+ }
2404
+ },
2405
+ "ValidatedTypeMappingDto": {
2406
+ "allOf": [
2407
+ {
2408
+ "$ref": "#/components/schemas/TypeMappingDto"
2409
+ },
2410
+ {
2411
+ "type": "object",
2412
+ "additionalProperties": false,
2413
+ "required": [
2414
+ "validationState",
2415
+ "isDefault"
2644
2416
  ],
2645
2417
  "properties": {
2646
2418
  "validationState": {
@@ -2652,6 +2424,9 @@
2652
2424
  "items": {
2653
2425
  "$ref": "#/components/schemas/MappingErrorDto"
2654
2426
  }
2427
+ },
2428
+ "isDefault": {
2429
+ "type": "boolean"
2655
2430
  }
2656
2431
  }
2657
2432
  }
@@ -2678,59 +2453,19 @@
2678
2453
  }
2679
2454
  }
2680
2455
  },
2681
- "ProfileDto": {
2682
- "allOf": [
2683
- {
2684
- "$ref": "#/components/schemas/ProfileIdDto"
2685
- },
2686
- {
2687
- "type": "object",
2688
- "additionalProperties": false,
2689
- "required": [
2690
- "typeMappings"
2691
- ],
2692
- "properties": {
2693
- "typeMappings": {
2694
- "type": "array",
2695
- "items": {
2696
- "$ref": "#/components/schemas/TypeMappingDto"
2697
- }
2698
- }
2699
- }
2700
- }
2701
- ]
2702
- },
2703
- "TestTypeMappingDto": {
2456
+ "CopyCurrentProfileRequestDto": {
2704
2457
  "type": "object",
2705
2458
  "additionalProperties": false,
2706
2459
  "required": [
2707
- "entityType",
2708
- "profile"
2460
+ "profileName"
2709
2461
  ],
2710
2462
  "properties": {
2711
- "entityType": {
2463
+ "profileName": {
2712
2464
  "type": "string"
2713
- },
2714
- "profile": {
2715
- "$ref": "#/components/schemas/ProfileDto"
2716
- },
2717
- "select": {
2718
- "type": "string",
2719
- "nullable": true
2720
- },
2721
- "skip": {
2722
- "type": "integer",
2723
- "format": "int32",
2724
- "nullable": true
2725
- },
2726
- "take": {
2727
- "type": "integer",
2728
- "format": "int32",
2729
- "nullable": true
2730
2465
  }
2731
2466
  }
2732
2467
  },
2733
- "SetCurrentProfileRequestDto": {
2468
+ "DeleteProfileRequestDto": {
2734
2469
  "type": "object",
2735
2470
  "additionalProperties": false,
2736
2471
  "required": [
@@ -2743,6 +2478,10 @@
2743
2478
  }
2744
2479
  }
2745
2480
  },
2481
+ "GetProfileRequestDto": {
2482
+ "type": "object",
2483
+ "additionalProperties": false
2484
+ },
2746
2485
  "GetEntityTypesDto": {
2747
2486
  "type": "object",
2748
2487
  "additionalProperties": false,
@@ -2832,11 +2571,7 @@
2832
2571
  "Collection"
2833
2572
  ]
2834
2573
  },
2835
- "GetProfileRequestDto": {
2836
- "type": "object",
2837
- "additionalProperties": false
2838
- },
2839
- "DeleteProfileRequestDto": {
2574
+ "SetCurrentProfileRequestDto": {
2840
2575
  "type": "object",
2841
2576
  "additionalProperties": false,
2842
2577
  "required": [
@@ -2849,17 +2584,202 @@
2849
2584
  }
2850
2585
  }
2851
2586
  },
2852
- "CopyCurrentProfileRequestDto": {
2587
+ "TestTypeMappingDto": {
2853
2588
  "type": "object",
2854
2589
  "additionalProperties": false,
2855
2590
  "required": [
2856
- "profileName"
2591
+ "entityType",
2592
+ "profile"
2857
2593
  ],
2858
2594
  "properties": {
2859
- "profileName": {
2595
+ "entityType": {
2596
+ "type": "string"
2597
+ },
2598
+ "profile": {
2599
+ "$ref": "#/components/schemas/ProfileDto"
2600
+ },
2601
+ "select": {
2602
+ "type": "string",
2603
+ "nullable": true
2604
+ },
2605
+ "skip": {
2606
+ "type": "integer",
2607
+ "format": "int32",
2608
+ "nullable": true
2609
+ },
2610
+ "take": {
2611
+ "type": "integer",
2612
+ "format": "int32",
2613
+ "nullable": true
2614
+ }
2615
+ }
2616
+ },
2617
+ "ValidatedProfileDto": {
2618
+ "allOf": [
2619
+ {
2620
+ "$ref": "#/components/schemas/ProfileIdDto"
2621
+ },
2622
+ {
2623
+ "type": "object",
2624
+ "additionalProperties": false,
2625
+ "required": [
2626
+ "typeMappings",
2627
+ "validationState"
2628
+ ],
2629
+ "properties": {
2630
+ "typeMappings": {
2631
+ "type": "array",
2632
+ "items": {
2633
+ "$ref": "#/components/schemas/ValidatedTypeMappingDto"
2634
+ }
2635
+ },
2636
+ "validationState": {
2637
+ "$ref": "#/components/schemas/ValidationState"
2638
+ }
2639
+ }
2640
+ }
2641
+ ]
2642
+ },
2643
+ "SharedDataAlertsRequestDto": {
2644
+ "type": "object",
2645
+ "additionalProperties": false
2646
+ },
2647
+ "SharedDataAttachmentRequestDto": {
2648
+ "type": "object",
2649
+ "additionalProperties": false
2650
+ },
2651
+ "SharedDataCreateAttachmentResponseDto": {
2652
+ "type": "object",
2653
+ "additionalProperties": false,
2654
+ "required": [
2655
+ "items"
2656
+ ],
2657
+ "properties": {
2658
+ "items": {
2659
+ "type": "array",
2660
+ "items": {
2661
+ "$ref": "#/components/schemas/SharedDataCreateAttachmentResponseItemDto"
2662
+ }
2663
+ }
2664
+ }
2665
+ },
2666
+ "SharedDataCreateAttachmentResponseItemDto": {
2667
+ "type": "object",
2668
+ "additionalProperties": false,
2669
+ "required": [
2670
+ "id",
2671
+ "uri",
2672
+ "name"
2673
+ ],
2674
+ "properties": {
2675
+ "id": {
2676
+ "type": "integer",
2677
+ "format": "int32"
2678
+ },
2679
+ "uri": {
2860
2680
  "type": "string"
2681
+ },
2682
+ "name": {
2683
+ "type": "string"
2684
+ }
2685
+ }
2686
+ },
2687
+ "SharedDataCreateAttachmentRequestDto": {
2688
+ "type": "object",
2689
+ "additionalProperties": false,
2690
+ "required": [
2691
+ "file"
2692
+ ],
2693
+ "properties": {
2694
+ "file": {
2695
+ "type": "array",
2696
+ "items": {
2697
+ "type": "string",
2698
+ "format": "binary"
2699
+ }
2700
+ }
2701
+ }
2702
+ },
2703
+ "SharedDataCountRequestDto": {
2704
+ "type": "object",
2705
+ "additionalProperties": false
2706
+ },
2707
+ "SharedDataDeleteDto": {
2708
+ "type": "object",
2709
+ "additionalProperties": false,
2710
+ "required": [
2711
+ "id"
2712
+ ],
2713
+ "properties": {
2714
+ "id": {
2715
+ "type": "integer",
2716
+ "format": "int32"
2861
2717
  }
2862
2718
  }
2719
+ },
2720
+ "SharedDataRequestDto": {
2721
+ "type": "object",
2722
+ "additionalProperties": false
2723
+ },
2724
+ "QueryFiltersDto": {
2725
+ "type": "object",
2726
+ "additionalProperties": false,
2727
+ "properties": {
2728
+ "select": {
2729
+ "type": "string",
2730
+ "nullable": true
2731
+ },
2732
+ "skip": {
2733
+ "type": "integer",
2734
+ "format": "int32",
2735
+ "nullable": true
2736
+ },
2737
+ "take": {
2738
+ "type": "integer",
2739
+ "format": "int32",
2740
+ "nullable": true
2741
+ },
2742
+ "where": {
2743
+ "type": "string",
2744
+ "nullable": true
2745
+ },
2746
+ "filter": {
2747
+ "type": "string",
2748
+ "nullable": true
2749
+ },
2750
+ "orderBy": {
2751
+ "type": "string",
2752
+ "nullable": true
2753
+ },
2754
+ "result": {
2755
+ "type": "string",
2756
+ "nullable": true
2757
+ }
2758
+ }
2759
+ },
2760
+ "SharedDataGetSchemaDto": {
2761
+ "allOf": [
2762
+ {
2763
+ "$ref": "#/components/schemas/SharedDataRequestDto"
2764
+ },
2765
+ {
2766
+ "type": "object",
2767
+ "additionalProperties": false
2768
+ }
2769
+ ]
2770
+ },
2771
+ "MentionsRequestDto": {
2772
+ "type": "object",
2773
+ "additionalProperties": false
2774
+ },
2775
+ "SharedDataGetGlobalSettingsRequestDto": {
2776
+ "type": "object",
2777
+ "additionalProperties": false
2778
+ },
2779
+ "TermsRequestDto": {
2780
+ "type": "object",
2781
+ "description": "Get terms for process",
2782
+ "additionalProperties": false
2863
2783
  }
2864
2784
  },
2865
2785
  "securitySchemes": {