|
737 | 737 | "title": "Document", |
738 | 738 | "type": "object" |
739 | 739 | }, |
| 740 | + "DocumentCreateCheckData": { |
| 741 | + "properties": { |
| 742 | + "documents": { |
| 743 | + "description": "List of documents that are about to be created", |
| 744 | + "items": { |
| 745 | + "$ref": "#/$defs/Document" |
| 746 | + }, |
| 747 | + "title": "Documents", |
| 748 | + "type": "array" |
| 749 | + }, |
| 750 | + "attached_parts": { |
| 751 | + "description": "List of parts that belong to the documents", |
| 752 | + "items": { |
| 753 | + "$ref": "#/$defs/Part" |
| 754 | + }, |
| 755 | + "title": "Attached Parts", |
| 756 | + "type": "array" |
| 757 | + }, |
| 758 | + "attached_documents": { |
| 759 | + "description": "Contains the original document(s) if a document is a copy", |
| 760 | + "items": { |
| 761 | + "$ref": "#/$defs/Document" |
| 762 | + }, |
| 763 | + "title": "Attached Documents", |
| 764 | + "type": "array" |
| 765 | + } |
| 766 | + }, |
| 767 | + "required": [ |
| 768 | + "documents", |
| 769 | + "attached_parts", |
| 770 | + "attached_documents" |
| 771 | + ], |
| 772 | + "title": "DocumentCreateCheckData", |
| 773 | + "type": "object" |
| 774 | + }, |
| 775 | + "DocumentCreateCheckEvent": { |
| 776 | + "properties": { |
| 777 | + "name": { |
| 778 | + "const": "document_create_check", |
| 779 | + "default": "document_create_check", |
| 780 | + "enum": [ |
| 781 | + "document_create_check" |
| 782 | + ], |
| 783 | + "title": "Name", |
| 784 | + "type": "string" |
| 785 | + }, |
| 786 | + "event_id": { |
| 787 | + "description": "unique identifier", |
| 788 | + "title": "Event Id", |
| 789 | + "type": "string" |
| 790 | + }, |
| 791 | + "data": { |
| 792 | + "$ref": "#/$defs/DocumentCreateCheckData" |
| 793 | + } |
| 794 | + }, |
| 795 | + "required": [ |
| 796 | + "event_id", |
| 797 | + "data" |
| 798 | + ], |
| 799 | + "title": "DocumentCreateCheckEvent", |
| 800 | + "type": "object" |
| 801 | + }, |
| 802 | + "DocumentModifyCheckData": { |
| 803 | + "properties": { |
| 804 | + "documents": { |
| 805 | + "description": "List of documents that are about to be modified", |
| 806 | + "items": { |
| 807 | + "$ref": "#/$defs/Document" |
| 808 | + }, |
| 809 | + "title": "Documents", |
| 810 | + "type": "array" |
| 811 | + }, |
| 812 | + "attached_parts": { |
| 813 | + "description": "List of parts that belong to the documents", |
| 814 | + "items": { |
| 815 | + "$ref": "#/$defs/Part" |
| 816 | + }, |
| 817 | + "title": "Attached Parts", |
| 818 | + "type": "array" |
| 819 | + } |
| 820 | + }, |
| 821 | + "required": [ |
| 822 | + "documents", |
| 823 | + "attached_parts" |
| 824 | + ], |
| 825 | + "title": "DocumentModifyCheckData", |
| 826 | + "type": "object" |
| 827 | + }, |
| 828 | + "DocumentModifyCheckEvent": { |
| 829 | + "properties": { |
| 830 | + "name": { |
| 831 | + "const": "document_modify_check", |
| 832 | + "default": "document_modify_check", |
| 833 | + "enum": [ |
| 834 | + "document_modify_check" |
| 835 | + ], |
| 836 | + "title": "Name", |
| 837 | + "type": "string" |
| 838 | + }, |
| 839 | + "event_id": { |
| 840 | + "description": "unique identifier", |
| 841 | + "title": "Event Id", |
| 842 | + "type": "string" |
| 843 | + }, |
| 844 | + "data": { |
| 845 | + "$ref": "#/$defs/DocumentModifyCheckData" |
| 846 | + } |
| 847 | + }, |
| 848 | + "required": [ |
| 849 | + "event_id", |
| 850 | + "data" |
| 851 | + ], |
| 852 | + "title": "DocumentModifyCheckEvent", |
| 853 | + "type": "object" |
| 854 | + }, |
740 | 855 | "DocumentReleaseCheckData": { |
741 | 856 | "properties": { |
742 | 857 | "documents": { |
|
2462 | 2577 | "title": "Part", |
2463 | 2578 | "type": "object" |
2464 | 2579 | }, |
| 2580 | + "PartCreateCheckData": { |
| 2581 | + "properties": { |
| 2582 | + "parts": { |
| 2583 | + "description": "List of parts that are about to be created", |
| 2584 | + "items": { |
| 2585 | + "$ref": "#/$defs/Part" |
| 2586 | + }, |
| 2587 | + "title": "Parts", |
| 2588 | + "type": "array" |
| 2589 | + }, |
| 2590 | + "attached_documents": { |
| 2591 | + "description": "Contains the original part(s) if a part is a copy", |
| 2592 | + "items": { |
| 2593 | + "$ref": "#/$defs/Document" |
| 2594 | + }, |
| 2595 | + "title": "Attached Documents", |
| 2596 | + "type": "array" |
| 2597 | + } |
| 2598 | + }, |
| 2599 | + "required": [ |
| 2600 | + "parts", |
| 2601 | + "attached_documents" |
| 2602 | + ], |
| 2603 | + "title": "PartCreateCheckData", |
| 2604 | + "type": "object" |
| 2605 | + }, |
| 2606 | + "PartCreateCheckEvent": { |
| 2607 | + "properties": { |
| 2608 | + "name": { |
| 2609 | + "const": "part_create_check", |
| 2610 | + "default": "part_create_check", |
| 2611 | + "enum": [ |
| 2612 | + "part_create_check" |
| 2613 | + ], |
| 2614 | + "title": "Name", |
| 2615 | + "type": "string" |
| 2616 | + }, |
| 2617 | + "event_id": { |
| 2618 | + "description": "unique identifier", |
| 2619 | + "title": "Event Id", |
| 2620 | + "type": "string" |
| 2621 | + }, |
| 2622 | + "data": { |
| 2623 | + "$ref": "#/$defs/PartCreateCheckData" |
| 2624 | + } |
| 2625 | + }, |
| 2626 | + "required": [ |
| 2627 | + "event_id", |
| 2628 | + "data" |
| 2629 | + ], |
| 2630 | + "title": "PartCreateCheckEvent", |
| 2631 | + "type": "object" |
| 2632 | + }, |
| 2633 | + "PartModifyCheckData": { |
| 2634 | + "properties": { |
| 2635 | + "parts": { |
| 2636 | + "description": "List of parts that are about to be modified", |
| 2637 | + "items": { |
| 2638 | + "$ref": "#/$defs/Part" |
| 2639 | + }, |
| 2640 | + "title": "Parts", |
| 2641 | + "type": "array" |
| 2642 | + } |
| 2643 | + }, |
| 2644 | + "required": [ |
| 2645 | + "parts" |
| 2646 | + ], |
| 2647 | + "title": "PartModifyCheckData", |
| 2648 | + "type": "object" |
| 2649 | + }, |
| 2650 | + "PartModifyCheckEvent": { |
| 2651 | + "properties": { |
| 2652 | + "name": { |
| 2653 | + "const": "part_modify_check", |
| 2654 | + "default": "part_modify_check", |
| 2655 | + "enum": [ |
| 2656 | + "part_modify_check" |
| 2657 | + ], |
| 2658 | + "title": "Name", |
| 2659 | + "type": "string" |
| 2660 | + }, |
| 2661 | + "event_id": { |
| 2662 | + "description": "unique identifier", |
| 2663 | + "title": "Event Id", |
| 2664 | + "type": "string" |
| 2665 | + }, |
| 2666 | + "data": { |
| 2667 | + "$ref": "#/$defs/PartModifyCheckData" |
| 2668 | + } |
| 2669 | + }, |
| 2670 | + "required": [ |
| 2671 | + "event_id", |
| 2672 | + "data" |
| 2673 | + ], |
| 2674 | + "title": "PartModifyCheckEvent", |
| 2675 | + "type": "object" |
| 2676 | + }, |
2465 | 2677 | "PartReleaseCheckData": { |
2466 | 2678 | "properties": { |
2467 | 2679 | "parts": { |
|
2807 | 3019 | "event": { |
2808 | 3020 | "discriminator": { |
2809 | 3021 | "mapping": { |
| 3022 | + "document_create_check": "#/$defs/DocumentCreateCheckEvent", |
| 3023 | + "document_modify_check": "#/$defs/DocumentModifyCheckEvent", |
2810 | 3024 | "document_release": "#/$defs/DocumentReleaseEvent", |
2811 | 3025 | "document_release_check": "#/$defs/DocumentReleaseCheckEvent", |
2812 | 3026 | "dummy": "#/$defs/DummyEvent", |
2813 | 3027 | "engineering_change_release": "#/$defs/EngineeringChangeRelease", |
2814 | 3028 | "engineering_change_release_check": "#/$defs/EngineeringChangeReleaseCheck", |
2815 | 3029 | "field_value_calculation": "#/$defs/FieldValueCalculationEvent", |
| 3030 | + "part_create_check": "#/$defs/PartCreateCheckEvent", |
| 3031 | + "part_modify_check": "#/$defs/PartModifyCheckEvent", |
2816 | 3032 | "part_release": "#/$defs/PartReleaseEvent", |
2817 | 3033 | "part_release_check": "#/$defs/PartReleaseCheckEvent", |
2818 | 3034 | "workflow_task_trigger": "#/$defs/WorkflowTaskTriggerEvent" |
|
2846 | 3062 | }, |
2847 | 3063 | { |
2848 | 3064 | "$ref": "#/$defs/WorkflowTaskTriggerEvent" |
| 3065 | + }, |
| 3066 | + { |
| 3067 | + "$ref": "#/$defs/DocumentCreateCheckEvent" |
| 3068 | + }, |
| 3069 | + { |
| 3070 | + "$ref": "#/$defs/DocumentModifyCheckEvent" |
| 3071 | + }, |
| 3072 | + { |
| 3073 | + "$ref": "#/$defs/PartCreateCheckEvent" |
| 3074 | + }, |
| 3075 | + { |
| 3076 | + "$ref": "#/$defs/PartModifyCheckEvent" |
2849 | 3077 | } |
2850 | 3078 | ], |
2851 | 3079 | "title": "Event" |
|
0 commit comments