fmea-api-mcp-server 1.1.64 → 1.1.65

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.
Files changed (38) hide show
  1. package/data/changelog/1.1.64.json +10 -0
  2. package/data/changelog/next.json +748 -48
  3. package/data/endpoint-lookup.json +1 -1
  4. package/data/enums.json +2 -2
  5. package/data/search-index.oxy +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/services/search/OramaSearchService.js +4 -1
  8. package/dist/synonyms.js +2 -1
  9. package/dist/utils/ScoreCalculator.js +7 -2
  10. package/endpoints/v2/action-status/core.json +59 -0
  11. package/endpoints/v2/classification-excel/core.json +1 -1
  12. package/endpoints/v2/classifications/core.json +110 -458
  13. package/endpoints/v2/condition-library-excel/core.json +220 -2
  14. package/endpoints/v2/division-excel/core.json +1 -1
  15. package/endpoints/v2/divisions/core.json +214 -238
  16. package/endpoints/v2/documents/core.json +1 -1
  17. package/endpoints/v2/evaluation/core.json +433 -663
  18. package/endpoints/v2/evaluation-excel/core.json +1 -1
  19. package/endpoints/v2/failure-mode-library/core.json +189 -0
  20. package/endpoints/v2/failure-mode-library-excel/core.json +289 -0
  21. package/endpoints/v2/fourm/core.json +3 -3
  22. package/endpoints/v2/high-items/core.json +1 -1
  23. package/endpoints/v2/notice-excel/core.json +1 -1
  24. package/endpoints/v2/notices/core.json +4 -4
  25. package/endpoints/v2/process-symbol-excel/core.json +63 -4
  26. package/endpoints/v2/process-symbols/core.json +2 -2
  27. package/endpoints/v2/projects/core.json +26 -2
  28. package/endpoints/v2/scoring/core.json +34 -137
  29. package/endpoints/v2/synonym-excel/core.json +101 -8
  30. package/endpoints/v2/synonyms/core.json +58 -176
  31. package/endpoints/v2/templates/core.json +1 -157
  32. package/endpoints/v2/user-excel/core.json +1 -1
  33. package/endpoints/v2/users/core.json +42 -0
  34. package/endpoints/v2/worksheet-template-excel/core.json +1 -1
  35. package/endpoints/v2/worksheets/core.json +2 -2
  36. package/endpoints/v2/worksheets/excel.json +1 -1
  37. package/package.json +1 -1
  38. package/endpoints/v2/fm-checkpoint/core.json +0 -363
@@ -3,129 +3,12 @@
3
3
  "version": "v2",
4
4
  "description": "",
5
5
  "endpoints": [
6
- {
7
- "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}",
8
- "method": "DELETE",
9
- "operationId": "deleteCriteriaEndpoint",
10
- "summary": "Delete evaluation criteria (cascade)",
11
- "description": "Deletes the evaluation criteria and all its descendants (S/O/D nodes, rating items, significance_criteria). Returns 400 if any item is in use by a project.",
12
- "tags": [
13
- "Evaluation Criteria"
14
- ],
15
- "parameters": [
16
- {
17
- "name": "fmeaType",
18
- "in": "path",
19
- "description": "FMEA type",
20
- "required": true,
21
- "schema": {
22
- "type": "string",
23
- "enum": [
24
- "DESIGN",
25
- "PROCESS",
26
- "EQUIPMENT",
27
- "FA",
28
- "FTA",
29
- "CPLAN"
30
- ]
31
- }
32
- },
33
- {
34
- "name": "criteriaId",
35
- "in": "path",
36
- "description": "Unique ID of the evaluation criteria",
37
- "required": true,
38
- "schema": {
39
- "type": "string"
40
- }
41
- }
42
- ],
43
- "requestBody": null,
44
- "responses": {
45
- "default": {
46
- "description": "default response",
47
- "content": {
48
- "application/json": {}
49
- }
50
- }
51
- }
52
- },
53
- {
54
- "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}/{itemId}",
55
- "method": "DELETE",
56
- "operationId": "deleteRatingEndpoint",
57
- "summary": "Delete rating item",
58
- "description": "Deletes the rating item under the specified S/O/D category. Returns 404 if item does not exist.",
59
- "tags": [
60
- "Evaluation Criteria"
61
- ],
62
- "parameters": [
63
- {
64
- "name": "fmeaType",
65
- "in": "path",
66
- "description": "FMEA type",
67
- "required": true,
68
- "schema": {
69
- "type": "string",
70
- "enum": [
71
- "DESIGN",
72
- "PROCESS",
73
- "EQUIPMENT",
74
- "FA",
75
- "FTA",
76
- "CPLAN"
77
- ]
78
- }
79
- },
80
- {
81
- "name": "criteriaId",
82
- "in": "path",
83
- "description": "Unique ID of the evaluation criteria",
84
- "required": true,
85
- "schema": {
86
- "type": "string"
87
- }
88
- },
89
- {
90
- "name": "category",
91
- "in": "path",
92
- "description": "Rating category",
93
- "required": true,
94
- "schema": {
95
- "type": "string",
96
- "enum": [
97
- "SEVERITY",
98
- "OCCURRENCE",
99
- "DETECTION"
100
- ]
101
- }
102
- },
103
- {
104
- "name": "itemId",
105
- "in": "path",
106
- "description": "Unique ID of the rating item",
107
- "required": true,
108
- "schema": {
109
- "type": "string"
110
- }
111
- }
112
- ],
113
- "requestBody": null,
114
- "responses": {
115
- "default": {
116
- "description": "default response",
117
- "content": {
118
- "application/json": {}
119
- }
120
- }
121
- }
122
- },
123
6
  {
124
7
  "path": "/api/v2/evaluation",
125
8
  "method": "GET",
126
9
  "operationId": "getAllEvaluation",
127
10
  "summary": "Get all evaluation criteria by FMEA type",
128
- "description": "Returns all FMEA types with their criteria lists. Each entry includes the FMEA type name and its child criteria. Used for overview of all evaluation criteria across FMEA types. Supports optional keyword search on criteria name or description.",
11
+ "description": "Returns the grouped snapshot-source payload for all FMEA types. Each criteria entry already includes ratings and significance, so FE does not need extra read calls. Supports optional keyword search on criteria name or description.",
129
12
  "tags": [
130
13
  "Evaluation Criteria"
131
14
  ],
@@ -172,6 +55,94 @@
172
55
  },
173
56
  "displayed": {
174
57
  "type": "boolean"
58
+ },
59
+ "ratings": {
60
+ "type": "object",
61
+ "properties": {
62
+ "severity": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "id": {
68
+ "type": "string"
69
+ },
70
+ "name": {
71
+ "type": "string"
72
+ },
73
+ "description": {
74
+ "type": "string"
75
+ },
76
+ "level": {
77
+ "type": "integer"
78
+ }
79
+ }
80
+ }
81
+ },
82
+ "occurrence": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "object",
86
+ "properties": {
87
+ "id": {
88
+ "type": "string"
89
+ },
90
+ "name": {
91
+ "type": "string"
92
+ },
93
+ "description": {
94
+ "type": "string"
95
+ },
96
+ "level": {
97
+ "type": "integer"
98
+ }
99
+ }
100
+ }
101
+ },
102
+ "detection": {
103
+ "type": "array",
104
+ "items": {
105
+ "type": "object",
106
+ "properties": {
107
+ "id": {
108
+ "type": "string"
109
+ },
110
+ "name": {
111
+ "type": "string"
112
+ },
113
+ "description": {
114
+ "type": "string"
115
+ },
116
+ "level": {
117
+ "type": "integer"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "significance": {
125
+ "type": "object",
126
+ "properties": {
127
+ "rpn": {
128
+ "type": "integer"
129
+ },
130
+ "s": {
131
+ "type": "integer"
132
+ },
133
+ "o": {
134
+ "type": "integer"
135
+ },
136
+ "d": {
137
+ "type": "integer"
138
+ },
139
+ "rpnRating": {
140
+ "type": "string"
141
+ },
142
+ "limitType": {
143
+ "type": "string"
144
+ }
145
+ }
175
146
  }
176
147
  }
177
148
  }
@@ -188,8 +159,8 @@
188
159
  "path": "/api/v2/evaluation/{fmeaType}",
189
160
  "method": "GET",
190
161
  "operationId": "getCriteriaByFmeaType",
191
- "summary": "List criteria for a specific FMEA type",
192
- "description": "Returns the evaluation criteria list for the specified FMEA type. Returns an empty list if the FMEA type has no criteria configured. Returns 400 if the fmeaType is invalid. Supports optional keyword search on criteria name or description.",
162
+ "summary": "Get grouped evaluation payload for a specific FMEA type",
163
+ "description": "Returns the same grouped snapshot-source payload as GET /api/v2/evaluation but scoped to one FMEA type. Each criteria entry already includes ratings and significance. Supports optional keyword search on criteria name or description.",
193
164
  "tags": [
194
165
  "Evaluation Criteria"
195
166
  ],
@@ -227,24 +198,120 @@
227
198
  "content": {
228
199
  "application/json": {
229
200
  "schema": {
230
- "type": "array",
231
- "items": {
232
- "type": "object",
233
- "properties": {
234
- "id": {
235
- "type": "string"
236
- },
237
- "name": {
238
- "type": "string"
239
- },
240
- "description": {
241
- "type": "string"
242
- },
243
- "defaultSelected": {
244
- "type": "boolean"
245
- },
246
- "displayed": {
247
- "type": "boolean"
201
+ "type": "object",
202
+ "properties": {
203
+ "fmeaType": {
204
+ "type": "string"
205
+ },
206
+ "criteria": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "object",
210
+ "properties": {
211
+ "id": {
212
+ "type": "string"
213
+ },
214
+ "name": {
215
+ "type": "string"
216
+ },
217
+ "description": {
218
+ "type": "string"
219
+ },
220
+ "defaultSelected": {
221
+ "type": "boolean"
222
+ },
223
+ "displayed": {
224
+ "type": "boolean"
225
+ },
226
+ "ratings": {
227
+ "type": "object",
228
+ "properties": {
229
+ "severity": {
230
+ "type": "array",
231
+ "items": {
232
+ "type": "object",
233
+ "properties": {
234
+ "id": {
235
+ "type": "string"
236
+ },
237
+ "name": {
238
+ "type": "string"
239
+ },
240
+ "description": {
241
+ "type": "string"
242
+ },
243
+ "level": {
244
+ "type": "integer"
245
+ }
246
+ }
247
+ }
248
+ },
249
+ "occurrence": {
250
+ "type": "array",
251
+ "items": {
252
+ "type": "object",
253
+ "properties": {
254
+ "id": {
255
+ "type": "string"
256
+ },
257
+ "name": {
258
+ "type": "string"
259
+ },
260
+ "description": {
261
+ "type": "string"
262
+ },
263
+ "level": {
264
+ "type": "integer"
265
+ }
266
+ }
267
+ }
268
+ },
269
+ "detection": {
270
+ "type": "array",
271
+ "items": {
272
+ "type": "object",
273
+ "properties": {
274
+ "id": {
275
+ "type": "string"
276
+ },
277
+ "name": {
278
+ "type": "string"
279
+ },
280
+ "description": {
281
+ "type": "string"
282
+ },
283
+ "level": {
284
+ "type": "integer"
285
+ }
286
+ }
287
+ }
288
+ }
289
+ }
290
+ },
291
+ "significance": {
292
+ "type": "object",
293
+ "properties": {
294
+ "rpn": {
295
+ "type": "integer"
296
+ },
297
+ "s": {
298
+ "type": "integer"
299
+ },
300
+ "o": {
301
+ "type": "integer"
302
+ },
303
+ "d": {
304
+ "type": "integer"
305
+ },
306
+ "rpnRating": {
307
+ "type": "string"
308
+ },
309
+ "limitType": {
310
+ "type": "string"
311
+ }
312
+ }
313
+ }
314
+ }
248
315
  }
249
316
  }
250
317
  }
@@ -259,7 +326,7 @@
259
326
  "method": "GET",
260
327
  "operationId": "getRatingsByCriteria",
261
328
  "summary": "Get S/O/D ratings for a criteria",
262
- "description": "Returns severity, occurrence, and detection rating items for the specified criteria under the given FMEA type. Rating items are sorted by level descending (10 → 1). Returns 404 if the criteria does not exist or does not belong to the specified FMEA type.",
329
+ "description": "Helper read that returns severity, occurrence, and detection rating items for a single criteria. The main grouped snapshot-source reads are GET /api/v2/evaluation and GET /api/v2/evaluation/{fmeaType}.",
263
330
  "tags": [
264
331
  "Evaluation Criteria"
265
332
  ],
@@ -372,7 +439,7 @@
372
439
  "method": "GET",
373
440
  "operationId": "getSignificanceByCriteria",
374
441
  "summary": "Get significance criteria for a criteria",
375
- "description": "Returns the significance criteria (S/O/D/RPN thresholds) for the specified evaluation criteria under the given FMEA type. Returns an empty DTO if not configured.",
442
+ "description": "Helper read that returns significance criteria for a single evaluation criteria. The main grouped snapshot-source reads are GET /api/v2/evaluation and GET /api/v2/evaluation/{fmeaType}.",
376
443
  "tags": [
377
444
  "Evaluation Criteria"
378
445
  ],
@@ -443,7 +510,7 @@
443
510
  "method": "GET",
444
511
  "operationId": "getRatingsByCategory",
445
512
  "summary": "Get ratings for a specific S/O/D category",
446
- "description": "Returns rating items for the specified category (severity, occurrence, or detection) under the given criteria and FMEA type. Returns 400 if category is invalid.",
513
+ "description": "Helper read that returns one rating category for a single criteria. The main grouped snapshot-source reads are GET /api/v2/evaluation and GET /api/v2/evaluation/{fmeaType}.",
447
514
  "tags": [
448
515
  "Evaluation Criteria"
449
516
  ],
@@ -521,11 +588,11 @@
521
588
  }
522
589
  },
523
590
  {
524
- "path": "/api/v2/evaluation/{fmeaType}/display",
525
- "method": "PATCH",
526
- "operationId": "updateDisplayEndpoint",
527
- "summary": "Bulk update criteria display visibility",
528
- "description": "Updates the display visibility of evaluation criteria items for the specified FMEA type. At least one item must remain visible.",
591
+ "path": "/api/v2/evaluation/{fmeaType}",
592
+ "method": "PUT",
593
+ "operationId": "saveSnapshot_2",
594
+ "summary": "Save evaluation snapshot for a specific FMEA type",
595
+ "description": "Saves a full snapshot scoped to the requested fmeaType. The payload must follow the grouped read shape, including criteria, ratings, significance, defaultSelected, and displayed. This is a full snapshot replace within one fmeaType, so omitted criteria and rating items are deleted.",
529
596
  "tags": [
530
597
  "Evaluation Criteria"
531
598
  ],
@@ -552,9 +619,12 @@
552
619
  "content": {
553
620
  "application/json": {
554
621
  "schema": {
622
+ "required": [
623
+ "criteria"
624
+ ],
555
625
  "type": "object",
556
626
  "properties": {
557
- "items": {
627
+ "criteria": {
558
628
  "type": "array",
559
629
  "items": {
560
630
  "type": "object",
@@ -562,8 +632,112 @@
562
632
  "id": {
563
633
  "type": "string"
564
634
  },
565
- "display": {
635
+ "name": {
636
+ "type": "string"
637
+ },
638
+ "description": {
639
+ "type": "string"
640
+ },
641
+ "defaultSelected": {
642
+ "type": "boolean"
643
+ },
644
+ "displayed": {
566
645
  "type": "boolean"
646
+ },
647
+ "ratings": {
648
+ "type": "object",
649
+ "properties": {
650
+ "severity": {
651
+ "type": "array",
652
+ "items": {
653
+ "type": "object",
654
+ "properties": {
655
+ "id": {
656
+ "type": "string"
657
+ },
658
+ "name": {
659
+ "type": "string"
660
+ },
661
+ "description": {
662
+ "type": "string"
663
+ },
664
+ "level": {
665
+ "type": "integer",
666
+ "format": "int32"
667
+ }
668
+ }
669
+ }
670
+ },
671
+ "occurrence": {
672
+ "type": "array",
673
+ "items": {
674
+ "type": "object",
675
+ "properties": {
676
+ "id": {
677
+ "type": "string"
678
+ },
679
+ "name": {
680
+ "type": "string"
681
+ },
682
+ "description": {
683
+ "type": "string"
684
+ },
685
+ "level": {
686
+ "type": "integer",
687
+ "format": "int32"
688
+ }
689
+ }
690
+ }
691
+ },
692
+ "detection": {
693
+ "type": "array",
694
+ "items": {
695
+ "type": "object",
696
+ "properties": {
697
+ "id": {
698
+ "type": "string"
699
+ },
700
+ "name": {
701
+ "type": "string"
702
+ },
703
+ "description": {
704
+ "type": "string"
705
+ },
706
+ "level": {
707
+ "type": "integer",
708
+ "format": "int32"
709
+ }
710
+ }
711
+ }
712
+ }
713
+ }
714
+ },
715
+ "significance": {
716
+ "type": "object",
717
+ "properties": {
718
+ "rpn": {
719
+ "type": "integer",
720
+ "format": "int32"
721
+ },
722
+ "s": {
723
+ "type": "integer",
724
+ "format": "int32"
725
+ },
726
+ "o": {
727
+ "type": "integer",
728
+ "format": "int32"
729
+ },
730
+ "d": {
731
+ "type": "integer",
732
+ "format": "int32"
733
+ },
734
+ "rpnRating": {
735
+ "type": "string"
736
+ },
737
+ "limitType": {
738
+ "type": "string"
739
+ }
740
+ }
567
741
  }
568
742
  }
569
743
  }
@@ -573,64 +747,6 @@
573
747
  }
574
748
  }
575
749
  },
576
- "responses": {
577
- "default": {
578
- "description": "default response",
579
- "content": {
580
- "application/json": {}
581
- }
582
- }
583
- }
584
- },
585
- {
586
- "path": "/api/v2/evaluation/{fmeaType}",
587
- "method": "POST",
588
- "operationId": "createCriteriaEndpoint",
589
- "summary": "Create evaluation criteria",
590
- "description": "Creates a new evaluation criteria under the specified FMEA type. Auto-generates Severity, Occurrence, and Detection sub-categories and a significance_criteria row. Returns 400 if the fmeaType is invalid or unsupported for evaluation.",
591
- "tags": [
592
- "Evaluation Criteria"
593
- ],
594
- "parameters": [
595
- {
596
- "name": "fmeaType",
597
- "in": "path",
598
- "description": "FMEA type",
599
- "required": true,
600
- "schema": {
601
- "type": "string",
602
- "enum": [
603
- "DESIGN",
604
- "PROCESS",
605
- "EQUIPMENT",
606
- "FA",
607
- "FTA",
608
- "CPLAN"
609
- ]
610
- }
611
- }
612
- ],
613
- "requestBody": {
614
- "content": {
615
- "application/json": {
616
- "schema": {
617
- "type": "object",
618
- "properties": {
619
- "title": {
620
- "type": "string"
621
- },
622
- "description": {
623
- "type": "string"
624
- },
625
- "count": {
626
- "type": "integer",
627
- "format": "int32"
628
- }
629
- }
630
- }
631
- }
632
- }
633
- },
634
750
  "responses": {
635
751
  "default": {
636
752
  "description": "default response",
@@ -639,465 +755,119 @@
639
755
  "schema": {
640
756
  "type": "object",
641
757
  "properties": {
642
- "id": {
758
+ "fmeaType": {
643
759
  "type": "string"
644
760
  },
645
- "name": {
646
- "type": "string"
647
- },
648
- "description": {
649
- "type": "string"
650
- },
651
- "defaultSelected": {
652
- "type": "boolean"
653
- },
654
- "displayed": {
655
- "type": "boolean"
656
- }
657
- }
658
- }
659
- }
660
- }
661
- }
662
- }
663
- },
664
- {
665
- "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}",
666
- "method": "POST",
667
- "operationId": "createRatingEndpoint",
668
- "summary": "Create rating item",
669
- "description": "Creates a new rating item under the specified S/O/D category. Returns 400 if category is invalid.",
670
- "tags": [
671
- "Evaluation Criteria"
672
- ],
673
- "parameters": [
674
- {
675
- "name": "fmeaType",
676
- "in": "path",
677
- "description": "FMEA type",
678
- "required": true,
679
- "schema": {
680
- "type": "string",
681
- "enum": [
682
- "DESIGN",
683
- "PROCESS",
684
- "EQUIPMENT",
685
- "FA",
686
- "FTA",
687
- "CPLAN"
688
- ]
689
- }
690
- },
691
- {
692
- "name": "criteriaId",
693
- "in": "path",
694
- "description": "Unique ID of the evaluation criteria",
695
- "required": true,
696
- "schema": {
697
- "type": "string"
698
- }
699
- },
700
- {
701
- "name": "category",
702
- "in": "path",
703
- "description": "Rating category",
704
- "required": true,
705
- "schema": {
706
- "type": "string",
707
- "enum": [
708
- "SEVERITY",
709
- "OCCURRENCE",
710
- "DETECTION"
711
- ]
712
- }
713
- }
714
- ],
715
- "requestBody": {
716
- "content": {
717
- "application/json": {
718
- "schema": {
719
- "type": "object",
720
- "properties": {
721
- "title": {
722
- "type": "string"
723
- },
724
- "description": {
725
- "type": "string"
726
- },
727
- "count": {
728
- "type": "integer",
729
- "format": "int32"
730
- }
731
- }
732
- }
733
- }
734
- }
735
- },
736
- "responses": {
737
- "default": {
738
- "description": "default response",
739
- "content": {
740
- "application/json": {
741
- "schema": {
742
- "type": "object",
743
- "properties": {
744
- "id": {
745
- "type": "string"
746
- },
747
- "name": {
748
- "type": "string"
749
- },
750
- "description": {
751
- "type": "string"
752
- },
753
- "level": {
754
- "type": "integer"
755
- }
756
- }
757
- }
758
- }
759
- }
760
- }
761
- }
762
- },
763
- {
764
- "path": "/api/v2/evaluation/{fmeaType}/default/{criteriaId}",
765
- "method": "PUT",
766
- "operationId": "setDefaultEndpoint",
767
- "summary": "Set default evaluation criteria",
768
- "description": "Sets the specified criteria as the default for the FMEA type. Unsets the previous default under the same parent.",
769
- "tags": [
770
- "Evaluation Criteria"
771
- ],
772
- "parameters": [
773
- {
774
- "name": "fmeaType",
775
- "in": "path",
776
- "description": "FMEA type",
777
- "required": true,
778
- "schema": {
779
- "type": "string",
780
- "enum": [
781
- "DESIGN",
782
- "PROCESS",
783
- "EQUIPMENT",
784
- "FA",
785
- "FTA",
786
- "CPLAN"
787
- ]
788
- }
789
- },
790
- {
791
- "name": "criteriaId",
792
- "in": "path",
793
- "description": "Unique ID of the criteria to set as default",
794
- "required": true,
795
- "schema": {
796
- "type": "string"
797
- }
798
- }
799
- ],
800
- "requestBody": null,
801
- "responses": {
802
- "default": {
803
- "description": "default response",
804
- "content": {
805
- "application/json": {}
806
- }
807
- }
808
- }
809
- },
810
- {
811
- "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}",
812
- "method": "PUT",
813
- "operationId": "updateCriteriaEndpoint",
814
- "summary": "Update evaluation criteria",
815
- "description": "Updates the evaluation criteria for the specified FMEA type and criteria ID. Syncs mainproject when the name is changed. Returns 404 if criteria does not exist or does not belong to the FMEA type.",
816
- "tags": [
817
- "Evaluation Criteria"
818
- ],
819
- "parameters": [
820
- {
821
- "name": "fmeaType",
822
- "in": "path",
823
- "description": "FMEA type",
824
- "required": true,
825
- "schema": {
826
- "type": "string",
827
- "enum": [
828
- "DESIGN",
829
- "PROCESS",
830
- "EQUIPMENT",
831
- "FA",
832
- "FTA",
833
- "CPLAN"
834
- ]
835
- }
836
- },
837
- {
838
- "name": "criteriaId",
839
- "in": "path",
840
- "description": "Unique ID of the evaluation criteria",
841
- "required": true,
842
- "schema": {
843
- "type": "string"
844
- }
845
- }
846
- ],
847
- "requestBody": {
848
- "content": {
849
- "application/json": {
850
- "schema": {
851
- "type": "object",
852
- "properties": {
853
- "title": {
854
- "type": "string"
855
- },
856
- "description": {
857
- "type": "string"
858
- },
859
- "count": {
860
- "type": "integer",
861
- "format": "int32"
862
- }
863
- }
864
- }
865
- }
866
- }
867
- },
868
- "responses": {
869
- "default": {
870
- "description": "default response",
871
- "content": {
872
- "application/json": {
873
- "schema": {
874
- "type": "object",
875
- "properties": {
876
- "id": {
877
- "type": "string"
878
- },
879
- "name": {
880
- "type": "string"
881
- },
882
- "description": {
883
- "type": "string"
884
- },
885
- "defaultSelected": {
886
- "type": "boolean"
887
- },
888
- "displayed": {
889
- "type": "boolean"
890
- }
891
- }
892
- }
893
- }
894
- }
895
- }
896
- }
897
- },
898
- {
899
- "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/significance",
900
- "method": "PUT",
901
- "operationId": "saveSignificanceEndpoint",
902
- "summary": "Save significance criteria (with fmeaType)",
903
- "description": "Creates or updates the significance criteria (S/O/D/RPN thresholds) for the specified evaluation criteria under the given FMEA type.",
904
- "tags": [
905
- "Evaluation Criteria"
906
- ],
907
- "parameters": [
908
- {
909
- "name": "fmeaType",
910
- "in": "path",
911
- "description": "FMEA type",
912
- "required": true,
913
- "schema": {
914
- "type": "string",
915
- "enum": [
916
- "DESIGN",
917
- "PROCESS",
918
- "EQUIPMENT",
919
- "FA",
920
- "FTA",
921
- "CPLAN"
922
- ]
923
- }
924
- },
925
- {
926
- "name": "criteriaId",
927
- "in": "path",
928
- "description": "Unique ID of the evaluation criteria",
929
- "required": true,
930
- "schema": {
931
- "type": "string"
932
- }
933
- }
934
- ],
935
- "requestBody": {
936
- "content": {
937
- "application/json": {
938
- "schema": {
939
- "type": "object",
940
- "properties": {
941
- "rpn": {
942
- "type": "integer",
943
- "format": "int32"
944
- },
945
- "s": {
946
- "type": "integer",
947
- "format": "int32"
948
- },
949
- "o": {
950
- "type": "integer",
951
- "format": "int32"
952
- },
953
- "d": {
954
- "type": "integer",
955
- "format": "int32"
956
- },
957
- "rpnRating": {
958
- "type": "string"
959
- },
960
- "limitType": {
961
- "type": "string"
962
- }
963
- }
964
- }
965
- }
966
- }
967
- },
968
- "responses": {
969
- "default": {
970
- "description": "default response",
971
- "content": {
972
- "application/json": {
973
- "schema": {
974
- "type": "object",
975
- "properties": {
976
- "rpn": {
977
- "type": "integer"
978
- },
979
- "s": {
980
- "type": "integer"
981
- },
982
- "o": {
983
- "type": "integer"
984
- },
985
- "d": {
986
- "type": "integer"
987
- },
988
- "rpnRating": {
989
- "type": "string"
990
- },
991
- "limitType": {
992
- "type": "string"
993
- }
994
- }
995
- }
996
- }
997
- }
998
- }
999
- }
1000
- },
1001
- {
1002
- "path": "/api/v2/evaluation/{fmeaType}/{criteriaId}/{category}/{itemId}",
1003
- "method": "PUT",
1004
- "operationId": "updateRatingEndpoint",
1005
- "summary": "Update rating item",
1006
- "description": "Updates the rating item for the specified S/O/D category. Returns 404 if item does not exist.",
1007
- "tags": [
1008
- "Evaluation Criteria"
1009
- ],
1010
- "parameters": [
1011
- {
1012
- "name": "fmeaType",
1013
- "in": "path",
1014
- "description": "FMEA type",
1015
- "required": true,
1016
- "schema": {
1017
- "type": "string",
1018
- "enum": [
1019
- "DESIGN",
1020
- "PROCESS",
1021
- "EQUIPMENT",
1022
- "FA",
1023
- "FTA",
1024
- "CPLAN"
1025
- ]
1026
- }
1027
- },
1028
- {
1029
- "name": "criteriaId",
1030
- "in": "path",
1031
- "description": "Unique ID of the evaluation criteria",
1032
- "required": true,
1033
- "schema": {
1034
- "type": "string"
1035
- }
1036
- },
1037
- {
1038
- "name": "category",
1039
- "in": "path",
1040
- "description": "Rating category",
1041
- "required": true,
1042
- "schema": {
1043
- "type": "string",
1044
- "enum": [
1045
- "SEVERITY",
1046
- "OCCURRENCE",
1047
- "DETECTION"
1048
- ]
1049
- }
1050
- },
1051
- {
1052
- "name": "itemId",
1053
- "in": "path",
1054
- "description": "Unique ID of the rating item",
1055
- "required": true,
1056
- "schema": {
1057
- "type": "string"
1058
- }
1059
- }
1060
- ],
1061
- "requestBody": {
1062
- "content": {
1063
- "application/json": {
1064
- "schema": {
1065
- "type": "object",
1066
- "properties": {
1067
- "title": {
1068
- "type": "string"
1069
- },
1070
- "description": {
1071
- "type": "string"
1072
- },
1073
- "count": {
1074
- "type": "integer",
1075
- "format": "int32"
1076
- }
1077
- }
1078
- }
1079
- }
1080
- }
1081
- },
1082
- "responses": {
1083
- "default": {
1084
- "description": "default response",
1085
- "content": {
1086
- "application/json": {
1087
- "schema": {
1088
- "type": "object",
1089
- "properties": {
1090
- "id": {
1091
- "type": "string"
1092
- },
1093
- "name": {
1094
- "type": "string"
1095
- },
1096
- "description": {
1097
- "type": "string"
1098
- },
1099
- "level": {
1100
- "type": "integer"
761
+ "criteria": {
762
+ "type": "array",
763
+ "items": {
764
+ "type": "object",
765
+ "properties": {
766
+ "id": {
767
+ "type": "string"
768
+ },
769
+ "name": {
770
+ "type": "string"
771
+ },
772
+ "description": {
773
+ "type": "string"
774
+ },
775
+ "defaultSelected": {
776
+ "type": "boolean"
777
+ },
778
+ "displayed": {
779
+ "type": "boolean"
780
+ },
781
+ "ratings": {
782
+ "type": "object",
783
+ "properties": {
784
+ "severity": {
785
+ "type": "array",
786
+ "items": {
787
+ "type": "object",
788
+ "properties": {
789
+ "id": {
790
+ "type": "string"
791
+ },
792
+ "name": {
793
+ "type": "string"
794
+ },
795
+ "description": {
796
+ "type": "string"
797
+ },
798
+ "level": {
799
+ "type": "integer"
800
+ }
801
+ }
802
+ }
803
+ },
804
+ "occurrence": {
805
+ "type": "array",
806
+ "items": {
807
+ "type": "object",
808
+ "properties": {
809
+ "id": {
810
+ "type": "string"
811
+ },
812
+ "name": {
813
+ "type": "string"
814
+ },
815
+ "description": {
816
+ "type": "string"
817
+ },
818
+ "level": {
819
+ "type": "integer"
820
+ }
821
+ }
822
+ }
823
+ },
824
+ "detection": {
825
+ "type": "array",
826
+ "items": {
827
+ "type": "object",
828
+ "properties": {
829
+ "id": {
830
+ "type": "string"
831
+ },
832
+ "name": {
833
+ "type": "string"
834
+ },
835
+ "description": {
836
+ "type": "string"
837
+ },
838
+ "level": {
839
+ "type": "integer"
840
+ }
841
+ }
842
+ }
843
+ }
844
+ }
845
+ },
846
+ "significance": {
847
+ "type": "object",
848
+ "properties": {
849
+ "rpn": {
850
+ "type": "integer"
851
+ },
852
+ "s": {
853
+ "type": "integer"
854
+ },
855
+ "o": {
856
+ "type": "integer"
857
+ },
858
+ "d": {
859
+ "type": "integer"
860
+ },
861
+ "rpnRating": {
862
+ "type": "string"
863
+ },
864
+ "limitType": {
865
+ "type": "string"
866
+ }
867
+ }
868
+ }
869
+ }
870
+ }
1101
871
  }
1102
872
  }
1103
873
  }