@camunda/zeebe-element-templates-json-schema 0.34.0 → 0.35.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/zeebe-element-templates-json-schema",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "JSON Schema for (Zeebe) Element Templates",
5
5
  "files": [
6
6
  "resources"
@@ -25,6 +25,5 @@
25
25
  "element-templates",
26
26
  "camunda"
27
27
  ],
28
- "license": "MIT",
29
- "gitHead": "c0c565b30fa34074256c2bf1912757ebd1cb2472"
28
+ "license": "MIT"
30
29
  }
@@ -330,7 +330,7 @@
330
330
  "properties",
331
331
  "type"
332
332
  ],
333
- "errorMessage": "invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property }"
333
+ "errorMessage": "invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"
334
334
  },
335
335
  {
336
336
  "path": [
@@ -798,5 +798,58 @@
798
798
  "then"
799
799
  ],
800
800
  "errorMessage": "FEEL is not supported for `zeebe:calledElement` variable propagation properties"
801
+ },
802
+ {
803
+ "path": [
804
+ "definitions",
805
+ "template",
806
+ "allOf",
807
+ 1,
808
+ "allOf",
809
+ 11,
810
+ "allOf",
811
+ 0,
812
+ "then",
813
+ "properties",
814
+ "elementType"
815
+ ],
816
+ "errorMessage": {
817
+ "required": {
818
+ "eventDefinition": "Timer bindings require elementType.eventDefinition to equal \"bpmn:TimerEventDefinition\""
819
+ }
820
+ }
821
+ },
822
+ {
823
+ "path": [
824
+ "definitions",
825
+ "template",
826
+ "allOf",
827
+ 1,
828
+ "allOf",
829
+ 11,
830
+ "allOf",
831
+ 1,
832
+ "then",
833
+ "properties",
834
+ "properties"
835
+ ],
836
+ "errorMessage": "Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."
837
+ },
838
+ {
839
+ "path": [
840
+ "definitions",
841
+ "template",
842
+ "allOf",
843
+ 1,
844
+ "allOf",
845
+ 11,
846
+ "allOf",
847
+ 2,
848
+ "then",
849
+ "properties",
850
+ "properties",
851
+ "not"
852
+ ],
853
+ "errorMessage": "Binding with `type`=`bpmn:TimerEventDefinition#property` and `name`=`timeCycle` is only allowed on `bpmn:StartEvent` or `bpmn:BoundaryEvent` templates"
801
854
  }
802
855
  ]
@@ -1630,6 +1630,47 @@
1630
1630
  ]
1631
1631
  }
1632
1632
  }
1633
+ },
1634
+ {
1635
+ "if": {
1636
+ "properties": {
1637
+ "binding": {
1638
+ "properties": {
1639
+ "type": {
1640
+ "const": "bpmn:TimerEventDefinition#property"
1641
+ },
1642
+ "name": {
1643
+ "enum": [
1644
+ "timeDate",
1645
+ "timeDuration",
1646
+ "timeCycle"
1647
+ ]
1648
+ }
1649
+ },
1650
+ "required": [
1651
+ "type",
1652
+ "name"
1653
+ ]
1654
+ }
1655
+ },
1656
+ "required": [
1657
+ "binding"
1658
+ ]
1659
+ },
1660
+ "then": {
1661
+ "required": [
1662
+ "type"
1663
+ ],
1664
+ "properties": {
1665
+ "type": {
1666
+ "enum": [
1667
+ "Hidden",
1668
+ "String",
1669
+ "Text"
1670
+ ]
1671
+ }
1672
+ }
1673
+ }
1633
1674
  }
1634
1675
  ],
1635
1676
  "properties": {
@@ -1651,7 +1692,8 @@
1651
1692
  "zeebe:input",
1652
1693
  "bpmn:Message#property",
1653
1694
  "bpmn:Message#zeebe:subscription#property",
1654
- "bpmn:Signal#property"
1695
+ "bpmn:Signal#property",
1696
+ "bpmn:TimerEventDefinition#property"
1655
1697
  ]
1656
1698
  }
1657
1699
  },
@@ -1967,6 +2009,32 @@
1967
2009
  ]
1968
2010
  }
1969
2011
  },
2012
+ {
2013
+ "if": {
2014
+ "properties": {
2015
+ "type": {
2016
+ "const": "bpmn:TimerEventDefinition#property"
2017
+ }
2018
+ },
2019
+ "required": [
2020
+ "type"
2021
+ ]
2022
+ },
2023
+ "then": {
2024
+ "properties": {
2025
+ "name": {
2026
+ "enum": [
2027
+ "timeCycle",
2028
+ "timeDate",
2029
+ "timeDuration"
2030
+ ]
2031
+ }
2032
+ },
2033
+ "required": [
2034
+ "name"
2035
+ ]
2036
+ }
2037
+ },
1970
2038
  {
1971
2039
  "examples": [
1972
2040
  {
@@ -2025,7 +2093,8 @@
2025
2093
  "zeebe:priorityDefinition",
2026
2094
  "zeebe:adHoc",
2027
2095
  "zeebe:taskSchedule",
2028
- "bpmn:Signal#property"
2096
+ "bpmn:Signal#property",
2097
+ "bpmn:TimerEventDefinition#property"
2029
2098
  ]
2030
2099
  },
2031
2100
  "name": {
@@ -3588,6 +3657,215 @@
3588
3657
  }
3589
3658
  }
3590
3659
  ]
3660
+ },
3661
+ {
3662
+ "$defs": {
3663
+ "timeDateProperty": {
3664
+ "properties": {
3665
+ "binding": {
3666
+ "properties": {
3667
+ "type": {
3668
+ "const": "bpmn:TimerEventDefinition#property"
3669
+ },
3670
+ "name": {
3671
+ "const": "timeDate"
3672
+ }
3673
+ },
3674
+ "required": [
3675
+ "type",
3676
+ "name"
3677
+ ]
3678
+ }
3679
+ },
3680
+ "required": [
3681
+ "binding"
3682
+ ]
3683
+ },
3684
+ "timeCycleProperty": {
3685
+ "properties": {
3686
+ "binding": {
3687
+ "properties": {
3688
+ "type": {
3689
+ "const": "bpmn:TimerEventDefinition#property"
3690
+ },
3691
+ "name": {
3692
+ "const": "timeCycle"
3693
+ }
3694
+ },
3695
+ "required": [
3696
+ "type",
3697
+ "name"
3698
+ ]
3699
+ }
3700
+ },
3701
+ "required": [
3702
+ "binding"
3703
+ ]
3704
+ },
3705
+ "timeDurationProperty": {
3706
+ "properties": {
3707
+ "binding": {
3708
+ "properties": {
3709
+ "type": {
3710
+ "const": "bpmn:TimerEventDefinition#property"
3711
+ },
3712
+ "name": {
3713
+ "const": "timeDuration"
3714
+ }
3715
+ },
3716
+ "required": [
3717
+ "type",
3718
+ "name"
3719
+ ]
3720
+ }
3721
+ },
3722
+ "required": [
3723
+ "binding"
3724
+ ]
3725
+ }
3726
+ },
3727
+ "allOf": [
3728
+ {
3729
+ "if": {
3730
+ "properties": {
3731
+ "properties": {
3732
+ "contains": {
3733
+ "properties": {
3734
+ "binding": {
3735
+ "properties": {
3736
+ "type": {
3737
+ "const": "bpmn:TimerEventDefinition#property"
3738
+ },
3739
+ "name": {
3740
+ "enum": [
3741
+ "timeDate",
3742
+ "timeCycle",
3743
+ "timeDuration"
3744
+ ]
3745
+ }
3746
+ },
3747
+ "required": [
3748
+ "type",
3749
+ "name"
3750
+ ]
3751
+ }
3752
+ },
3753
+ "required": [
3754
+ "binding"
3755
+ ]
3756
+ }
3757
+ }
3758
+ },
3759
+ "required": [
3760
+ "properties"
3761
+ ]
3762
+ },
3763
+ "then": {
3764
+ "required": [
3765
+ "elementType"
3766
+ ],
3767
+ "properties": {
3768
+ "elementType": {
3769
+ "required": [
3770
+ "eventDefinition",
3771
+ "value"
3772
+ ],
3773
+ "properties": {
3774
+ "eventDefinition": {
3775
+ "const": "bpmn:TimerEventDefinition"
3776
+ },
3777
+ "value": {
3778
+ "enum": [
3779
+ "bpmn:StartEvent",
3780
+ "bpmn:IntermediateCatchEvent",
3781
+ "bpmn:BoundaryEvent"
3782
+ ]
3783
+ }
3784
+ }
3785
+ }
3786
+ }
3787
+ }
3788
+ },
3789
+ {
3790
+ "if": {
3791
+ "properties": {
3792
+ "elementType": {
3793
+ "properties": {
3794
+ "eventDefinition": {
3795
+ "const": "bpmn:TimerEventDefinition"
3796
+ }
3797
+ },
3798
+ "required": [
3799
+ "eventDefinition"
3800
+ ]
3801
+ }
3802
+ },
3803
+ "required": [
3804
+ "elementType"
3805
+ ]
3806
+ },
3807
+ "then": {
3808
+ "properties": {
3809
+ "properties": {
3810
+ "oneOf": [
3811
+ {
3812
+ "contains": {
3813
+ "$ref": "#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty"
3814
+ }
3815
+ },
3816
+ {
3817
+ "contains": {
3818
+ "$ref": "#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"
3819
+ }
3820
+ },
3821
+ {
3822
+ "contains": {
3823
+ "$ref": "#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty"
3824
+ }
3825
+ }
3826
+ ]
3827
+ }
3828
+ },
3829
+ "required": [
3830
+ "properties"
3831
+ ]
3832
+ }
3833
+ },
3834
+ {
3835
+ "if": {
3836
+ "properties": {
3837
+ "elementType": {
3838
+ "properties": {
3839
+ "eventDefinition": {
3840
+ "const": "bpmn:TimerEventDefinition"
3841
+ },
3842
+ "value": {
3843
+ "const": "bpmn:IntermediateCatchEvent"
3844
+ }
3845
+ },
3846
+ "required": [
3847
+ "eventDefinition",
3848
+ "value"
3849
+ ]
3850
+ }
3851
+ },
3852
+ "required": [
3853
+ "elementType"
3854
+ ]
3855
+ },
3856
+ "then": {
3857
+ "properties": {
3858
+ "properties": {
3859
+ "not": {
3860
+ "contains": {
3861
+ "$ref": "#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"
3862
+ }
3863
+ }
3864
+ }
3865
+ }
3866
+ }
3867
+ }
3868
+ ]
3591
3869
  }
3592
3870
  ]
3593
3871
  },
@@ -3989,7 +4267,8 @@
3989
4267
  "description": "Define the event definition type for a typed event template. Otherwise, ignore.",
3990
4268
  "enum": [
3991
4269
  "bpmn:MessageEventDefinition",
3992
- "bpmn:SignalEventDefinition"
4270
+ "bpmn:SignalEventDefinition",
4271
+ "bpmn:TimerEventDefinition"
3993
4272
  ]
3994
4273
  }
3995
4274
  }
@@ -4016,6 +4295,32 @@
4016
4295
  "value"
4017
4296
  ]
4018
4297
  }
4298
+ },
4299
+ {
4300
+ "if": {
4301
+ "properties": {
4302
+ "eventDefinition": {
4303
+ "const": "bpmn:TimerEventDefinition"
4304
+ }
4305
+ },
4306
+ "required": [
4307
+ "eventDefinition"
4308
+ ]
4309
+ },
4310
+ "then": {
4311
+ "properties": {
4312
+ "value": {
4313
+ "enum": [
4314
+ "bpmn:StartEvent",
4315
+ "bpmn:IntermediateCatchEvent",
4316
+ "bpmn:BoundaryEvent"
4317
+ ]
4318
+ }
4319
+ },
4320
+ "required": [
4321
+ "value"
4322
+ ]
4323
+ }
4019
4324
  }
4020
4325
  ]
4021
4326
  }