|
781 | 781 | "title": "DocumentCreateCheckEvent",
|
782 | 782 | "type": "object"
|
783 | 783 | },
|
| 784 | + "DocumentFieldCalculationData": { |
| 785 | + "properties": { |
| 786 | + "document": { |
| 787 | + "$ref": "#/$defs/Document", |
| 788 | + "description": "Current state of the document" |
| 789 | + }, |
| 790 | + "action": { |
| 791 | + "description": "Action being performed", |
| 792 | + "enum": [ |
| 793 | + "create", |
| 794 | + "modify", |
| 795 | + "copy", |
| 796 | + "index" |
| 797 | + ], |
| 798 | + "title": "Action", |
| 799 | + "type": "string" |
| 800 | + }, |
| 801 | + "linked_parts": { |
| 802 | + "description": "Parts that belong to the document", |
| 803 | + "items": { |
| 804 | + "$ref": "#/$defs/Part" |
| 805 | + }, |
| 806 | + "title": "Linked Parts", |
| 807 | + "type": "array" |
| 808 | + } |
| 809 | + }, |
| 810 | + "required": [ |
| 811 | + "document", |
| 812 | + "action", |
| 813 | + "linked_parts" |
| 814 | + ], |
| 815 | + "title": "DocumentFieldCalculationData", |
| 816 | + "type": "object" |
| 817 | + }, |
| 818 | + "DocumentFieldCalculationEvent": { |
| 819 | + "properties": { |
| 820 | + "name": { |
| 821 | + "const": "document_field_calculation", |
| 822 | + "default": "document_field_calculation", |
| 823 | + "title": "Name", |
| 824 | + "type": "string" |
| 825 | + }, |
| 826 | + "event_id": { |
| 827 | + "description": "unique identifier", |
| 828 | + "title": "Event Id", |
| 829 | + "type": "string" |
| 830 | + }, |
| 831 | + "data": { |
| 832 | + "$ref": "#/$defs/DocumentFieldCalculationData" |
| 833 | + } |
| 834 | + }, |
| 835 | + "required": [ |
| 836 | + "event_id", |
| 837 | + "data" |
| 838 | + ], |
| 839 | + "title": "DocumentFieldCalculationEvent", |
| 840 | + "type": "object" |
| 841 | + }, |
784 | 842 | "DocumentModifyCheckData": {
|
785 | 843 | "properties": {
|
786 | 844 | "documents": {
|
|
2573 | 2631 | "title": "PartCreateCheckEvent",
|
2574 | 2632 | "type": "object"
|
2575 | 2633 | },
|
| 2634 | + "PartFieldCalculationData": { |
| 2635 | + "properties": { |
| 2636 | + "part": { |
| 2637 | + "$ref": "#/$defs/Part", |
| 2638 | + "description": "Current state of the part" |
| 2639 | + }, |
| 2640 | + "action": { |
| 2641 | + "description": "Action being performed", |
| 2642 | + "enum": [ |
| 2643 | + "create", |
| 2644 | + "modify", |
| 2645 | + "copy", |
| 2646 | + "index" |
| 2647 | + ], |
| 2648 | + "title": "Action", |
| 2649 | + "type": "string" |
| 2650 | + }, |
| 2651 | + "linked_documents": { |
| 2652 | + "description": "List of documents that are referenced by the parts.", |
| 2653 | + "items": { |
| 2654 | + "$ref": "#/$defs/Document" |
| 2655 | + }, |
| 2656 | + "title": "Linked Documents", |
| 2657 | + "type": "array" |
| 2658 | + } |
| 2659 | + }, |
| 2660 | + "required": [ |
| 2661 | + "part", |
| 2662 | + "action", |
| 2663 | + "linked_documents" |
| 2664 | + ], |
| 2665 | + "title": "PartFieldCalculationData", |
| 2666 | + "type": "object" |
| 2667 | + }, |
| 2668 | + "PartFieldCalculationEvent": { |
| 2669 | + "properties": { |
| 2670 | + "name": { |
| 2671 | + "const": "part_field_calculation", |
| 2672 | + "default": "part_field_calculation", |
| 2673 | + "title": "Name", |
| 2674 | + "type": "string" |
| 2675 | + }, |
| 2676 | + "event_id": { |
| 2677 | + "description": "unique identifier", |
| 2678 | + "title": "Event Id", |
| 2679 | + "type": "string" |
| 2680 | + }, |
| 2681 | + "data": { |
| 2682 | + "$ref": "#/$defs/PartFieldCalculationData" |
| 2683 | + } |
| 2684 | + }, |
| 2685 | + "required": [ |
| 2686 | + "event_id", |
| 2687 | + "data" |
| 2688 | + ], |
| 2689 | + "title": "PartFieldCalculationEvent", |
| 2690 | + "type": "object" |
| 2691 | + }, |
2576 | 2692 | "PartModifyCheckData": {
|
2577 | 2693 | "properties": {
|
2578 | 2694 | "parts": {
|
|
2950 | 3066 | "discriminator": {
|
2951 | 3067 | "mapping": {
|
2952 | 3068 | "document_create_check": "#/$defs/DocumentCreateCheckEvent",
|
| 3069 | + "document_field_calculation": "#/$defs/DocumentFieldCalculationEvent", |
2953 | 3070 | "document_modify_check": "#/$defs/DocumentModifyCheckEvent",
|
2954 | 3071 | "document_release": "#/$defs/DocumentReleaseEvent",
|
2955 | 3072 | "document_release_check": "#/$defs/DocumentReleaseCheckEvent",
|
|
2958 | 3075 | "engineering_change_release_check": "#/$defs/EngineeringChangeReleaseCheck",
|
2959 | 3076 | "field_value_calculation": "#/$defs/FieldValueCalculationEvent",
|
2960 | 3077 | "part_create_check": "#/$defs/PartCreateCheckEvent",
|
| 3078 | + "part_field_calculation": "#/$defs/PartFieldCalculationEvent", |
2961 | 3079 | "part_modify_check": "#/$defs/PartModifyCheckEvent",
|
2962 | 3080 | "part_release": "#/$defs/PartReleaseEvent",
|
2963 | 3081 | "part_release_check": "#/$defs/PartReleaseCheckEvent",
|
|
2972 | 3090 | {
|
2973 | 3091 | "$ref": "#/$defs/DocumentReleaseCheckEvent"
|
2974 | 3092 | },
|
| 3093 | + { |
| 3094 | + "$ref": "#/$defs/DocumentFieldCalculationEvent" |
| 3095 | + }, |
2975 | 3096 | {
|
2976 | 3097 | "$ref": "#/$defs/PartReleaseEvent"
|
2977 | 3098 | },
|
2978 | 3099 | {
|
2979 | 3100 | "$ref": "#/$defs/PartReleaseCheckEvent"
|
2980 | 3101 | },
|
| 3102 | + { |
| 3103 | + "$ref": "#/$defs/PartFieldCalculationEvent" |
| 3104 | + }, |
2981 | 3105 | {
|
2982 | 3106 | "$ref": "#/$defs/FieldValueCalculationEvent"
|
2983 | 3107 | },
|
|
0 commit comments