@forge/manifest 3.4.0-next.8 → 3.5.0-next.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/CHANGELOG.md +31 -0
- package/out/schema/manifest-schema.json +154 -154
- package/out/schema/manifest.d.ts +167 -167
- package/out/text/errors.d.ts +1 -3
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +1 -3
- package/out/types/module-types.d.ts +1 -0
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +1 -0
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +3 -1
- package/out/validators/modules-validators/issue-adjustment.d.ts +4 -0
- package/out/validators/modules-validators/issue-adjustment.d.ts.map +1 -0
- package/out/validators/modules-validators/issue-adjustment.js +16 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 3.5.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ba674590: Add validation for Issue Adjustments module
|
|
8
|
+
|
|
9
|
+
## 3.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 64dd525: Make revokeToken optional in External Auth
|
|
14
|
+
- 8e2c90f: Manifest schema updated. Includes new jira:workflowCondition module
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 1c6c578: Add jiraEntityProperty values validation
|
|
19
|
+
- 8b4fede: Update manifest definitions
|
|
20
|
+
- 54bf134: Update manifest definitions
|
|
21
|
+
- 10f147f: Update manifest definitions
|
|
22
|
+
- 2484683: Update manifest definitions
|
|
23
|
+
- 1a8a4bb: Update manifest definitions
|
|
24
|
+
- e0a44d4: Update manifest definitions
|
|
25
|
+
- 19820d3: Update manifest definitions
|
|
26
|
+
- 1ca8bbc: Update manifest definitions
|
|
27
|
+
|
|
28
|
+
## 3.4.0-next.9
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- 19820d3: Update manifest definitions
|
|
33
|
+
|
|
3
34
|
## 3.4.0-next.8
|
|
4
35
|
|
|
5
36
|
### Minor Changes
|
|
@@ -7598,10 +7598,10 @@
|
|
|
7598
7598
|
"type": "object",
|
|
7599
7599
|
"anyOf": [
|
|
7600
7600
|
{
|
|
7601
|
-
"$ref": "#/definitions/
|
|
7601
|
+
"$ref": "#/definitions/singleCondition"
|
|
7602
7602
|
},
|
|
7603
7603
|
{
|
|
7604
|
-
"$ref": "#/definitions/
|
|
7604
|
+
"$ref": "#/definitions/compositeCondition"
|
|
7605
7605
|
}
|
|
7606
7606
|
]
|
|
7607
7607
|
},
|
|
@@ -7788,10 +7788,10 @@
|
|
|
7788
7788
|
"type": "object",
|
|
7789
7789
|
"anyOf": [
|
|
7790
7790
|
{
|
|
7791
|
-
"$ref": "#/definitions/
|
|
7791
|
+
"$ref": "#/definitions/compositeCondition"
|
|
7792
7792
|
},
|
|
7793
7793
|
{
|
|
7794
|
-
"$ref": "#/definitions/
|
|
7794
|
+
"$ref": "#/definitions/singleCondition"
|
|
7795
7795
|
}
|
|
7796
7796
|
]
|
|
7797
7797
|
},
|
|
@@ -7846,10 +7846,10 @@
|
|
|
7846
7846
|
"type": "object",
|
|
7847
7847
|
"anyOf": [
|
|
7848
7848
|
{
|
|
7849
|
-
"$ref": "#/definitions/
|
|
7849
|
+
"$ref": "#/definitions/compositeCondition"
|
|
7850
7850
|
},
|
|
7851
7851
|
{
|
|
7852
|
-
"$ref": "#/definitions/
|
|
7852
|
+
"$ref": "#/definitions/singleCondition"
|
|
7853
7853
|
}
|
|
7854
7854
|
]
|
|
7855
7855
|
},
|
|
@@ -7904,10 +7904,10 @@
|
|
|
7904
7904
|
"type": "object",
|
|
7905
7905
|
"anyOf": [
|
|
7906
7906
|
{
|
|
7907
|
-
"$ref": "#/definitions/
|
|
7907
|
+
"$ref": "#/definitions/compositeCondition"
|
|
7908
7908
|
},
|
|
7909
7909
|
{
|
|
7910
|
-
"$ref": "#/definitions/
|
|
7910
|
+
"$ref": "#/definitions/singleCondition"
|
|
7911
7911
|
}
|
|
7912
7912
|
]
|
|
7913
7913
|
},
|
|
@@ -8022,6 +8022,22 @@
|
|
|
8022
8022
|
"title": "Dialog Options",
|
|
8023
8023
|
"description": "\n\nOptions for a modal dialog <a href=\"../web-item-target/\">web item target</a> or <a href=\"../dialog/\">common module</a>.\n\n <p>\n These options are a subset of those available via the <a href=\"../../jsapi/dialog/\">JavaScript API</a>.\n </p>\n\n <h2>Web Item Example</h2>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialog\",\n \"options\": {\n \"height\": \"100px\",\n \"width\": \"200px\"\n }\n }\n }\n\n\n\n\n <h2>Dialog Example</h2>\n\n\n\n\n\n {\n \"modules\": {\n \"dialogs\": [\n {\n \"url\": \"/my-dialog-content\",\n \"options\": {\n \"size\": \"fullscreen\",\n \"header\": {\n \"value\": \"Example Dialog\"\n }\n },\n \"key\": \"dialog-module-key\"\n }\n ]\n }\n }\n\n\n"
|
|
8024
8024
|
},
|
|
8025
|
+
{
|
|
8026
|
+
"properties": {
|
|
8027
|
+
"key": {
|
|
8028
|
+
"maxLength": 100,
|
|
8029
|
+
"type": "string",
|
|
8030
|
+
"fieldDescription": "\n\n<p>The key of a <a href=\"../dialog/\">Dialog</a> module declared in this Connect add-on.</p>\n\n <p>\n The dialog module will include the <a href=\"../dialog-options/\">Dialog Options</a>\n that would otherwise need to be specified directly in this options object.\n </p>\n\n"
|
|
8031
|
+
}
|
|
8032
|
+
},
|
|
8033
|
+
"required": [
|
|
8034
|
+
"key"
|
|
8035
|
+
],
|
|
8036
|
+
"shortClassName": "dialogModuleOptions",
|
|
8037
|
+
"type": "object",
|
|
8038
|
+
"title": "Dialog Module Options",
|
|
8039
|
+
"description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
|
|
8040
|
+
},
|
|
8025
8041
|
{
|
|
8026
8042
|
"properties": {
|
|
8027
8043
|
"offsetX": {
|
|
@@ -8068,22 +8084,6 @@
|
|
|
8068
8084
|
"type": "object",
|
|
8069
8085
|
"title": "Inline Dialog Options",
|
|
8070
8086
|
"description": "\n\nOptions for an inline dialog target\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"inlinedialog\",\n \"options\": {\n \"onHover\": true,\n \"offsetX\": \"30px\",\n \"offsetY\": \"20px\"\n }\n }\n }\n\n\n"
|
|
8071
|
-
},
|
|
8072
|
-
{
|
|
8073
|
-
"properties": {
|
|
8074
|
-
"key": {
|
|
8075
|
-
"maxLength": 100,
|
|
8076
|
-
"type": "string",
|
|
8077
|
-
"fieldDescription": "\n\n<p>The key of a <a href=\"../dialog/\">Dialog</a> module declared in this Connect add-on.</p>\n\n <p>\n The dialog module will include the <a href=\"../dialog-options/\">Dialog Options</a>\n that would otherwise need to be specified directly in this options object.\n </p>\n\n"
|
|
8078
|
-
}
|
|
8079
|
-
},
|
|
8080
|
-
"required": [
|
|
8081
|
-
"key"
|
|
8082
|
-
],
|
|
8083
|
-
"shortClassName": "dialogModuleOptions",
|
|
8084
|
-
"type": "object",
|
|
8085
|
-
"title": "Dialog Module Options",
|
|
8086
|
-
"description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
|
|
8087
8087
|
}
|
|
8088
8088
|
]
|
|
8089
8089
|
},
|
|
@@ -8140,6 +8140,33 @@
|
|
|
8140
8140
|
"items": {
|
|
8141
8141
|
"type": "object",
|
|
8142
8142
|
"anyOf": [
|
|
8143
|
+
{
|
|
8144
|
+
"properties": {
|
|
8145
|
+
"condition": {
|
|
8146
|
+
"maxLength": 100,
|
|
8147
|
+
"type": "string",
|
|
8148
|
+
"fieldDescription": "\n\nA string indicating the name of the condition\n\n"
|
|
8149
|
+
},
|
|
8150
|
+
"invert": {
|
|
8151
|
+
"type": "boolean",
|
|
8152
|
+
"fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
|
|
8153
|
+
"defaultValue": "false"
|
|
8154
|
+
},
|
|
8155
|
+
"params": {
|
|
8156
|
+
"additionalProperties": true,
|
|
8157
|
+
"type": "object",
|
|
8158
|
+
"fieldTitle": "Object",
|
|
8159
|
+
"fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
|
|
8160
|
+
}
|
|
8161
|
+
},
|
|
8162
|
+
"required": [
|
|
8163
|
+
"condition"
|
|
8164
|
+
],
|
|
8165
|
+
"shortClassName": "singleConditionBean",
|
|
8166
|
+
"type": "object",
|
|
8167
|
+
"title": "Single Condition",
|
|
8168
|
+
"description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
|
|
8169
|
+
},
|
|
8143
8170
|
{
|
|
8144
8171
|
"properties": {
|
|
8145
8172
|
"conditions": {
|
|
@@ -8147,10 +8174,10 @@
|
|
|
8147
8174
|
"type": "object",
|
|
8148
8175
|
"anyOf": [
|
|
8149
8176
|
{
|
|
8150
|
-
"$ref": "
|
|
8177
|
+
"$ref": "#"
|
|
8151
8178
|
},
|
|
8152
8179
|
{
|
|
8153
|
-
"$ref": "
|
|
8180
|
+
"$ref": "#/definitions/singleCondition"
|
|
8154
8181
|
}
|
|
8155
8182
|
]
|
|
8156
8183
|
},
|
|
@@ -8172,33 +8199,6 @@
|
|
|
8172
8199
|
"type": "object",
|
|
8173
8200
|
"title": "Composite Condition",
|
|
8174
8201
|
"description": "\n\nComposite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions\n and a type attribute.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"conditions\": [\n {\n \"or\": [\n {\n \"condition\": \"can_attach_file_to_issue\",\n \"invert\": false\n },\n {\n \"condition\": \"is_issue_assigned_to_current_user\",\n \"invert\": false\n }\n ]\n },\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n ]\n }\n\n\n"
|
|
8175
|
-
},
|
|
8176
|
-
{
|
|
8177
|
-
"properties": {
|
|
8178
|
-
"condition": {
|
|
8179
|
-
"maxLength": 100,
|
|
8180
|
-
"type": "string",
|
|
8181
|
-
"fieldDescription": "\n\nA string indicating the name of the condition\n\n"
|
|
8182
|
-
},
|
|
8183
|
-
"invert": {
|
|
8184
|
-
"type": "boolean",
|
|
8185
|
-
"fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
|
|
8186
|
-
"defaultValue": "false"
|
|
8187
|
-
},
|
|
8188
|
-
"params": {
|
|
8189
|
-
"additionalProperties": true,
|
|
8190
|
-
"type": "object",
|
|
8191
|
-
"fieldTitle": "Object",
|
|
8192
|
-
"fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
|
|
8193
|
-
}
|
|
8194
|
-
},
|
|
8195
|
-
"required": [
|
|
8196
|
-
"condition"
|
|
8197
|
-
],
|
|
8198
|
-
"shortClassName": "singleConditionBean",
|
|
8199
|
-
"type": "object",
|
|
8200
|
-
"title": "Single Condition",
|
|
8201
|
-
"description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
|
|
8202
8202
|
}
|
|
8203
8203
|
]
|
|
8204
8204
|
},
|
|
@@ -8252,10 +8252,10 @@
|
|
|
8252
8252
|
"type": "object",
|
|
8253
8253
|
"anyOf": [
|
|
8254
8254
|
{
|
|
8255
|
-
"$ref": "#/definitions/
|
|
8255
|
+
"$ref": "#/definitions/singleCondition"
|
|
8256
8256
|
},
|
|
8257
8257
|
{
|
|
8258
|
-
"$ref": "#/definitions/
|
|
8258
|
+
"$ref": "#/definitions/compositeCondition"
|
|
8259
8259
|
}
|
|
8260
8260
|
]
|
|
8261
8261
|
},
|
|
@@ -8737,35 +8737,72 @@
|
|
|
8737
8737
|
"anyOf": [
|
|
8738
8738
|
{
|
|
8739
8739
|
"properties": {
|
|
8740
|
+
"controls": {
|
|
8741
|
+
"items": {
|
|
8742
|
+
"properties": {
|
|
8743
|
+
"macroParameterValue": {
|
|
8744
|
+
"maxLength": 10000,
|
|
8745
|
+
"type": "string",
|
|
8746
|
+
"fieldDescription": "\n\nThe value that will be assigned to a macro parameter when this toggle is clicked\n\n"
|
|
8747
|
+
},
|
|
8748
|
+
"label": {
|
|
8749
|
+
"$ref": "#/definitions/i18nProperty",
|
|
8750
|
+
"fieldDescription": "\n\nText which will appear inside the button\n\n"
|
|
8751
|
+
},
|
|
8752
|
+
"type": {
|
|
8753
|
+
"enum": [
|
|
8754
|
+
"togglebutton",
|
|
8755
|
+
"TOGGLEBUTTON"
|
|
8756
|
+
],
|
|
8757
|
+
"type": "string",
|
|
8758
|
+
"fieldDescription": "\n\nThe type field must be set to 'togglebutton'\n\n"
|
|
8759
|
+
},
|
|
8760
|
+
"key": {
|
|
8761
|
+
"pattern": "^[a-zA-Z0-9-]+$",
|
|
8762
|
+
"maxLength": 100,
|
|
8763
|
+
"type": "string",
|
|
8764
|
+
"fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
|
|
8765
|
+
}
|
|
8766
|
+
},
|
|
8767
|
+
"required": [
|
|
8768
|
+
"macroParameterValue",
|
|
8769
|
+
"label",
|
|
8770
|
+
"type",
|
|
8771
|
+
"key"
|
|
8772
|
+
],
|
|
8773
|
+
"additionalProperties": true,
|
|
8774
|
+
"shortClassName": "macroToggleButtonControlBean",
|
|
8775
|
+
"type": "object",
|
|
8776
|
+
"title": "ToggleButtonControl",
|
|
8777
|
+
"description": "\n\nDefines a toggle button which appears inside a ToggleGroup\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n }\n\n\n"
|
|
8778
|
+
},
|
|
8779
|
+
"type": "array",
|
|
8780
|
+
"fieldDescription": "\n\nToggle buttons which will appear in the toggle group\n\n"
|
|
8781
|
+
},
|
|
8740
8782
|
"macroParameter": {
|
|
8783
|
+
"pattern": "[-_a-z0-9\\.]+",
|
|
8741
8784
|
"maxLength": 100,
|
|
8742
8785
|
"type": "string",
|
|
8743
|
-
"fieldDescription": "\n\nThe
|
|
8786
|
+
"fieldDescription": "\n\nThe macro parameter identifier used to store the toggle state.\n It must only contain lowercase alphanumeric characters, dashes, underscores, dots and must not contain any spaces.\n\n"
|
|
8744
8787
|
},
|
|
8745
8788
|
"type": {
|
|
8746
8789
|
"enum": [
|
|
8747
|
-
"
|
|
8748
|
-
"
|
|
8790
|
+
"togglegroup",
|
|
8791
|
+
"TOGGLEGROUP"
|
|
8749
8792
|
],
|
|
8750
8793
|
"type": "string",
|
|
8751
|
-
"fieldDescription": "\n\nThe type field must be set to '
|
|
8752
|
-
},
|
|
8753
|
-
"key": {
|
|
8754
|
-
"pattern": "^[a-zA-Z0-9-]+$",
|
|
8755
|
-
"maxLength": 100,
|
|
8756
|
-
"type": "string",
|
|
8757
|
-
"fieldDescription": "\n\nA key to identify this module.\n\n This key must be unique relative to the add on, with the exception of Confluence macros: Their keys need to be\n globally unique.\n\n Keys must only contain alphanumeric characters and dashes.\n\n The key is used to generate the url to your add-on's module. The url is generated as a combination of your add-on\n key and module key. For example, an add-on which looks like:\n\n {\n \"key\": \"my-addon\",\n \"modules\": {\n \"configurePage\": {\n \"key\": \"configure-me\",\n }\n }\n }\n\n Will have a configuration page module with a URL of `/plugins/servlet/ac/my-addon/configure-me`.\n\n"
|
|
8794
|
+
"fieldDescription": "\n\nThe type field must be set to 'togglegroup'\n\n"
|
|
8758
8795
|
}
|
|
8759
8796
|
},
|
|
8760
8797
|
"required": [
|
|
8798
|
+
"controls",
|
|
8761
8799
|
"macroParameter",
|
|
8762
|
-
"type"
|
|
8763
|
-
"key"
|
|
8800
|
+
"type"
|
|
8764
8801
|
],
|
|
8765
|
-
"shortClassName": "
|
|
8802
|
+
"shortClassName": "macroToggleGroupBean",
|
|
8766
8803
|
"type": "object",
|
|
8767
|
-
"title": "
|
|
8768
|
-
"description": "\n\nDefines a
|
|
8804
|
+
"title": "ToggleGroup",
|
|
8805
|
+
"description": "\n\nDefines a ToggleGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"togglegroup\",\n \"macroParameter\": \"toggleGroupMacroParameter\",\n \"controls\": [\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n },\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 1\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-toggle-button-1\"\n }\n ]\n }\n ]\n\n\n"
|
|
8769
8806
|
},
|
|
8770
8807
|
{
|
|
8771
8808
|
"properties": {
|
|
@@ -8825,104 +8862,67 @@
|
|
|
8825
8862
|
},
|
|
8826
8863
|
{
|
|
8827
8864
|
"properties": {
|
|
8828
|
-
"
|
|
8829
|
-
"
|
|
8830
|
-
"
|
|
8865
|
+
"macroParameter": {
|
|
8866
|
+
"maxLength": 100,
|
|
8867
|
+
"type": "string",
|
|
8868
|
+
"fieldDescription": "\n\nThe Macro Parameter identifier used to store the text\n\n"
|
|
8831
8869
|
},
|
|
8832
8870
|
"type": {
|
|
8833
8871
|
"enum": [
|
|
8834
|
-
"
|
|
8835
|
-
"
|
|
8872
|
+
"text",
|
|
8873
|
+
"TEXT"
|
|
8836
8874
|
],
|
|
8837
8875
|
"type": "string",
|
|
8838
|
-
"fieldDescription": "\n\nThe type field must be set to '
|
|
8876
|
+
"fieldDescription": "\n\nThe type field must be set to 'text'\n\n"
|
|
8839
8877
|
},
|
|
8840
8878
|
"key": {
|
|
8841
8879
|
"pattern": "^[a-zA-Z0-9-]+$",
|
|
8842
8880
|
"maxLength": 100,
|
|
8843
8881
|
"type": "string",
|
|
8844
|
-
"fieldDescription": "\n\nA key to identify the
|
|
8882
|
+
"fieldDescription": "\n\nA key to identify this module.\n\n This key must be unique relative to the add on, with the exception of Confluence macros: Their keys need to be\n globally unique.\n\n Keys must only contain alphanumeric characters and dashes.\n\n The key is used to generate the url to your add-on's module. The url is generated as a combination of your add-on\n key and module key. For example, an add-on which looks like:\n\n {\n \"key\": \"my-addon\",\n \"modules\": {\n \"configurePage\": {\n \"key\": \"configure-me\",\n }\n }\n }\n\n Will have a configuration page module with a URL of `/plugins/servlet/ac/my-addon/configure-me`.\n\n"
|
|
8845
8883
|
}
|
|
8846
8884
|
},
|
|
8847
8885
|
"required": [
|
|
8848
|
-
"
|
|
8886
|
+
"macroParameter",
|
|
8849
8887
|
"type",
|
|
8850
8888
|
"key"
|
|
8851
8889
|
],
|
|
8852
|
-
"
|
|
8853
|
-
"shortClassName": "buttonControlBean",
|
|
8890
|
+
"shortClassName": "textControlBean",
|
|
8854
8891
|
"type": "object",
|
|
8855
|
-
"title": "
|
|
8856
|
-
"description": "\n\nDefines a
|
|
8892
|
+
"title": "TextControl",
|
|
8893
|
+
"description": "\n\nDefines a text field which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
|
|
8857
8894
|
},
|
|
8858
8895
|
{
|
|
8859
8896
|
"properties": {
|
|
8860
|
-
"
|
|
8861
|
-
"
|
|
8862
|
-
|
|
8863
|
-
"macroParameterValue": {
|
|
8864
|
-
"maxLength": 10000,
|
|
8865
|
-
"type": "string",
|
|
8866
|
-
"fieldDescription": "\n\nThe value that will be assigned to a macro parameter when this toggle is clicked\n\n"
|
|
8867
|
-
},
|
|
8868
|
-
"label": {
|
|
8869
|
-
"$ref": "#/definitions/i18nProperty",
|
|
8870
|
-
"fieldDescription": "\n\nText which will appear inside the button\n\n"
|
|
8871
|
-
},
|
|
8872
|
-
"type": {
|
|
8873
|
-
"enum": [
|
|
8874
|
-
"togglebutton",
|
|
8875
|
-
"TOGGLEBUTTON"
|
|
8876
|
-
],
|
|
8877
|
-
"type": "string",
|
|
8878
|
-
"fieldDescription": "\n\nThe type field must be set to 'togglebutton'\n\n"
|
|
8879
|
-
},
|
|
8880
|
-
"key": {
|
|
8881
|
-
"pattern": "^[a-zA-Z0-9-]+$",
|
|
8882
|
-
"maxLength": 100,
|
|
8883
|
-
"type": "string",
|
|
8884
|
-
"fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
|
|
8885
|
-
}
|
|
8886
|
-
},
|
|
8887
|
-
"required": [
|
|
8888
|
-
"macroParameterValue",
|
|
8889
|
-
"label",
|
|
8890
|
-
"type",
|
|
8891
|
-
"key"
|
|
8892
|
-
],
|
|
8893
|
-
"additionalProperties": true,
|
|
8894
|
-
"shortClassName": "macroToggleButtonControlBean",
|
|
8895
|
-
"type": "object",
|
|
8896
|
-
"title": "ToggleButtonControl",
|
|
8897
|
-
"description": "\n\nDefines a toggle button which appears inside a ToggleGroup\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n }\n\n\n"
|
|
8898
|
-
},
|
|
8899
|
-
"type": "array",
|
|
8900
|
-
"fieldDescription": "\n\nToggle buttons which will appear in the toggle group\n\n"
|
|
8901
|
-
},
|
|
8902
|
-
"macroParameter": {
|
|
8903
|
-
"pattern": "[-_a-z0-9\\.]+",
|
|
8904
|
-
"maxLength": 100,
|
|
8905
|
-
"type": "string",
|
|
8906
|
-
"fieldDescription": "\n\nThe macro parameter identifier used to store the toggle state.\n It must only contain lowercase alphanumeric characters, dashes, underscores, dots and must not contain any spaces.\n\n"
|
|
8897
|
+
"label": {
|
|
8898
|
+
"$ref": "#/definitions/i18nProperty",
|
|
8899
|
+
"fieldDescription": "\n\nText which will appear inside the button\n\n"
|
|
8907
8900
|
},
|
|
8908
8901
|
"type": {
|
|
8909
8902
|
"enum": [
|
|
8910
|
-
"
|
|
8911
|
-
"
|
|
8903
|
+
"button",
|
|
8904
|
+
"BUTTON"
|
|
8912
8905
|
],
|
|
8913
8906
|
"type": "string",
|
|
8914
|
-
"fieldDescription": "\n\nThe type field must be set to '
|
|
8907
|
+
"fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
|
|
8908
|
+
},
|
|
8909
|
+
"key": {
|
|
8910
|
+
"pattern": "^[a-zA-Z0-9-]+$",
|
|
8911
|
+
"maxLength": 100,
|
|
8912
|
+
"type": "string",
|
|
8913
|
+
"fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
|
|
8915
8914
|
}
|
|
8916
8915
|
},
|
|
8917
8916
|
"required": [
|
|
8918
|
-
"
|
|
8919
|
-
"
|
|
8920
|
-
"
|
|
8917
|
+
"label",
|
|
8918
|
+
"type",
|
|
8919
|
+
"key"
|
|
8921
8920
|
],
|
|
8922
|
-
"
|
|
8921
|
+
"additionalProperties": true,
|
|
8922
|
+
"shortClassName": "buttonControlBean",
|
|
8923
8923
|
"type": "object",
|
|
8924
|
-
"title": "
|
|
8925
|
-
"description": "\n\nDefines a
|
|
8924
|
+
"title": "ButtonControl",
|
|
8925
|
+
"description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
|
|
8926
8926
|
}
|
|
8927
8927
|
]
|
|
8928
8928
|
},
|
|
@@ -9640,22 +9640,6 @@
|
|
|
9640
9640
|
"type": "object",
|
|
9641
9641
|
"fieldDescription": "\n\n<p>An object containing options which vary based on the type of web item target you are implementing.</p>\n\n <p>Currently-allowed options are:</p>\n <ul>\n <li><a href=\"../inline-dialog-options/\">Inline Dialog Options</a> when type is \"inlinedialog\", and</li>\n <li><a href=\"../dialog-options/\">Dialog Options</a> when type is \"dialog\"</li>\n <li><a href=\"../dialog-module-options/\">Dialog Module Options</a> when type is \"dialogmodule\"</li>\n </ul>\n\n",
|
|
9642
9642
|
"anyOf": [
|
|
9643
|
-
{
|
|
9644
|
-
"properties": {
|
|
9645
|
-
"key": {
|
|
9646
|
-
"maxLength": 100,
|
|
9647
|
-
"type": "string",
|
|
9648
|
-
"fieldDescription": "\n\n<p>The key of a <a href=\"../dialog/\">Dialog</a> module declared in this Connect add-on.</p>\n\n <p>\n The dialog module will include the <a href=\"../dialog-options/\">Dialog Options</a>\n that would otherwise need to be specified directly in this options object.\n </p>\n\n"
|
|
9649
|
-
}
|
|
9650
|
-
},
|
|
9651
|
-
"required": [
|
|
9652
|
-
"key"
|
|
9653
|
-
],
|
|
9654
|
-
"shortClassName": "dialogModuleOptions",
|
|
9655
|
-
"type": "object",
|
|
9656
|
-
"title": "Dialog Module Options",
|
|
9657
|
-
"description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
|
|
9658
|
-
},
|
|
9659
9643
|
{
|
|
9660
9644
|
"properties": {
|
|
9661
9645
|
"size": {
|
|
@@ -9747,6 +9731,22 @@
|
|
|
9747
9731
|
"type": "object",
|
|
9748
9732
|
"title": "Inline Dialog Options",
|
|
9749
9733
|
"description": "\n\nOptions for an inline dialog target\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"inlinedialog\",\n \"options\": {\n \"onHover\": true,\n \"offsetX\": \"30px\",\n \"offsetY\": \"20px\"\n }\n }\n }\n\n\n"
|
|
9734
|
+
},
|
|
9735
|
+
{
|
|
9736
|
+
"properties": {
|
|
9737
|
+
"key": {
|
|
9738
|
+
"maxLength": 100,
|
|
9739
|
+
"type": "string",
|
|
9740
|
+
"fieldDescription": "\n\n<p>The key of a <a href=\"../dialog/\">Dialog</a> module declared in this Connect add-on.</p>\n\n <p>\n The dialog module will include the <a href=\"../dialog-options/\">Dialog Options</a>\n that would otherwise need to be specified directly in this options object.\n </p>\n\n"
|
|
9741
|
+
}
|
|
9742
|
+
},
|
|
9743
|
+
"required": [
|
|
9744
|
+
"key"
|
|
9745
|
+
],
|
|
9746
|
+
"shortClassName": "dialogModuleOptions",
|
|
9747
|
+
"type": "object",
|
|
9748
|
+
"title": "Dialog Module Options",
|
|
9749
|
+
"description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
|
|
9750
9750
|
}
|
|
9751
9751
|
]
|
|
9752
9752
|
},
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -3743,7 +3743,7 @@ export interface Modules {
|
|
|
3743
3743
|
fullPage?: boolean;
|
|
3744
3744
|
cacheable?: boolean;
|
|
3745
3745
|
location?: string;
|
|
3746
|
-
conditions?: (
|
|
3746
|
+
conditions?: (SingleCondition | CompositeCondition)[];
|
|
3747
3747
|
params?: {
|
|
3748
3748
|
[k: string]: unknown;
|
|
3749
3749
|
};
|
|
@@ -3758,7 +3758,7 @@ export interface Modules {
|
|
|
3758
3758
|
fullPage?: boolean;
|
|
3759
3759
|
cacheable?: boolean;
|
|
3760
3760
|
location?: string;
|
|
3761
|
-
conditions?: (
|
|
3761
|
+
conditions?: (SingleCondition | CompositeCondition)[];
|
|
3762
3762
|
params?: {
|
|
3763
3763
|
[k: string]: unknown;
|
|
3764
3764
|
};
|
|
@@ -3830,7 +3830,7 @@ export interface Modules {
|
|
|
3830
3830
|
weight?: number;
|
|
3831
3831
|
cacheable?: boolean;
|
|
3832
3832
|
location?: string;
|
|
3833
|
-
conditions?: (
|
|
3833
|
+
conditions?: (CompositeCondition | SingleCondition)[];
|
|
3834
3834
|
params?: {
|
|
3835
3835
|
[k: string]: unknown;
|
|
3836
3836
|
};
|
|
@@ -3844,7 +3844,7 @@ export interface Modules {
|
|
|
3844
3844
|
weight?: number;
|
|
3845
3845
|
cacheable?: boolean;
|
|
3846
3846
|
location?: string;
|
|
3847
|
-
conditions?: (
|
|
3847
|
+
conditions?: (CompositeCondition | SingleCondition)[];
|
|
3848
3848
|
params?: {
|
|
3849
3849
|
[k: string]: unknown;
|
|
3850
3850
|
};
|
|
@@ -3859,7 +3859,7 @@ export interface Modules {
|
|
|
3859
3859
|
name?: I18NProperty55;
|
|
3860
3860
|
weight?: number;
|
|
3861
3861
|
location?: string;
|
|
3862
|
-
conditions?: (
|
|
3862
|
+
conditions?: (CompositeCondition | SingleCondition)[];
|
|
3863
3863
|
params?: {
|
|
3864
3864
|
[k: string]: unknown;
|
|
3865
3865
|
};
|
|
@@ -3871,7 +3871,7 @@ export interface Modules {
|
|
|
3871
3871
|
name?: I18NProperty55;
|
|
3872
3872
|
weight?: number;
|
|
3873
3873
|
location?: string;
|
|
3874
|
-
conditions?: (
|
|
3874
|
+
conditions?: (CompositeCondition | SingleCondition)[];
|
|
3875
3875
|
params?: {
|
|
3876
3876
|
[k: string]: unknown;
|
|
3877
3877
|
};
|
|
@@ -3886,7 +3886,7 @@ export interface Modules {
|
|
|
3886
3886
|
weight?: number;
|
|
3887
3887
|
cacheable?: boolean;
|
|
3888
3888
|
location?: string;
|
|
3889
|
-
conditions?: (
|
|
3889
|
+
conditions?: (CompositeCondition | SingleCondition)[];
|
|
3890
3890
|
params?: {
|
|
3891
3891
|
[k: string]: unknown;
|
|
3892
3892
|
};
|
|
@@ -3900,7 +3900,7 @@ export interface Modules {
|
|
|
3900
3900
|
weight?: number;
|
|
3901
3901
|
cacheable?: boolean;
|
|
3902
3902
|
location?: string;
|
|
3903
|
-
conditions?: (
|
|
3903
|
+
conditions?: (CompositeCondition | SingleCondition)[];
|
|
3904
3904
|
params?: {
|
|
3905
3905
|
[k: string]: unknown;
|
|
3906
3906
|
};
|
|
@@ -3924,7 +3924,7 @@ export interface Modules {
|
|
|
3924
3924
|
name?: I18NProperty59;
|
|
3925
3925
|
location?: string;
|
|
3926
3926
|
cacheable?: boolean;
|
|
3927
|
-
conditions?: (
|
|
3927
|
+
conditions?: (SingleCondition4 | CompositeCondition6)[];
|
|
3928
3928
|
key: ModuleKeySchema;
|
|
3929
3929
|
[k: string]: unknown;
|
|
3930
3930
|
},
|
|
@@ -3942,7 +3942,7 @@ export interface Modules {
|
|
|
3942
3942
|
name?: I18NProperty59;
|
|
3943
3943
|
location?: string;
|
|
3944
3944
|
cacheable?: boolean;
|
|
3945
|
-
conditions?: (
|
|
3945
|
+
conditions?: (SingleCondition4 | CompositeCondition6)[];
|
|
3946
3946
|
key: ModuleKeySchema;
|
|
3947
3947
|
[k: string]: unknown;
|
|
3948
3948
|
}[]
|
|
@@ -3955,7 +3955,7 @@ export interface Modules {
|
|
|
3955
3955
|
fullPage?: boolean;
|
|
3956
3956
|
cacheable?: boolean;
|
|
3957
3957
|
location?: string;
|
|
3958
|
-
conditions?: (
|
|
3958
|
+
conditions?: (SingleCondition | CompositeCondition)[];
|
|
3959
3959
|
params?: {
|
|
3960
3960
|
[k: string]: unknown;
|
|
3961
3961
|
};
|
|
@@ -3970,7 +3970,7 @@ export interface Modules {
|
|
|
3970
3970
|
fullPage?: boolean;
|
|
3971
3971
|
cacheable?: boolean;
|
|
3972
3972
|
location?: string;
|
|
3973
|
-
conditions?: (
|
|
3973
|
+
conditions?: (SingleCondition | CompositeCondition)[];
|
|
3974
3974
|
params?: {
|
|
3975
3975
|
[k: string]: unknown;
|
|
3976
3976
|
};
|
|
@@ -7171,7 +7171,7 @@ export interface Icon10 {
|
|
|
7171
7171
|
*
|
|
7172
7172
|
*/
|
|
7173
7173
|
export interface WebItemTarget1 {
|
|
7174
|
-
options?: DialogOptions2 |
|
|
7174
|
+
options?: DialogOptions2 | DialogModuleOptions1 | InlineDialogOptions1;
|
|
7175
7175
|
type?: 'page' | 'PAGE' | 'dialog' | 'DIALOG' | 'inlinedialog' | 'INLINEDIALOG' | 'dialogmodule' | 'DIALOGMODULE';
|
|
7176
7176
|
[k: string]: unknown;
|
|
7177
7177
|
}
|
|
@@ -7273,6 +7273,33 @@ export interface I18NProperty58 {
|
|
|
7273
7273
|
i18n?: string;
|
|
7274
7274
|
[k: string]: unknown;
|
|
7275
7275
|
}
|
|
7276
|
+
/**
|
|
7277
|
+
*
|
|
7278
|
+
*
|
|
7279
|
+
* Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
|
|
7280
|
+
*
|
|
7281
|
+
* <h3>Example</h3>
|
|
7282
|
+
*
|
|
7283
|
+
*
|
|
7284
|
+
*
|
|
7285
|
+
*
|
|
7286
|
+
*
|
|
7287
|
+
* {
|
|
7288
|
+
* "target": {
|
|
7289
|
+
* "type": "dialogmodule",
|
|
7290
|
+
* "options": {
|
|
7291
|
+
* "key": "dialog-module-key"
|
|
7292
|
+
* }
|
|
7293
|
+
* }
|
|
7294
|
+
* }
|
|
7295
|
+
*
|
|
7296
|
+
*
|
|
7297
|
+
*
|
|
7298
|
+
*/
|
|
7299
|
+
export interface DialogModuleOptions1 {
|
|
7300
|
+
key: string;
|
|
7301
|
+
[k: string]: unknown;
|
|
7302
|
+
}
|
|
7276
7303
|
/**
|
|
7277
7304
|
*
|
|
7278
7305
|
*
|
|
@@ -7313,7 +7340,8 @@ export interface InlineDialogOptions1 {
|
|
|
7313
7340
|
/**
|
|
7314
7341
|
*
|
|
7315
7342
|
*
|
|
7316
|
-
*
|
|
7343
|
+
* Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
|
|
7344
|
+
* and value in multiple places if you like, but identical keys must have identical values.
|
|
7317
7345
|
*
|
|
7318
7346
|
* <h3>Example</h3>
|
|
7319
7347
|
*
|
|
@@ -7322,26 +7350,25 @@ export interface InlineDialogOptions1 {
|
|
|
7322
7350
|
*
|
|
7323
7351
|
*
|
|
7324
7352
|
* {
|
|
7325
|
-
* "
|
|
7326
|
-
* "type": "dialogmodule",
|
|
7327
|
-
* "options": {
|
|
7328
|
-
* "key": "dialog-module-key"
|
|
7329
|
-
* }
|
|
7330
|
-
* }
|
|
7353
|
+
* "value": "My text"
|
|
7331
7354
|
* }
|
|
7332
7355
|
*
|
|
7333
7356
|
*
|
|
7334
7357
|
*
|
|
7335
7358
|
*/
|
|
7336
|
-
export interface
|
|
7337
|
-
|
|
7359
|
+
export interface I18NProperty59 {
|
|
7360
|
+
value: string;
|
|
7361
|
+
i18n?: string;
|
|
7338
7362
|
[k: string]: unknown;
|
|
7339
7363
|
}
|
|
7340
7364
|
/**
|
|
7341
7365
|
*
|
|
7342
7366
|
*
|
|
7343
|
-
*
|
|
7344
|
-
*
|
|
7367
|
+
* Single Conditions are either provided by the host application. See the complete documentation of
|
|
7368
|
+
* [Conditions](../../conditions/) for more information.
|
|
7369
|
+
*
|
|
7370
|
+
* To invert a condition, add the attribute ``invert="true"`` to the condition element.
|
|
7371
|
+
* This is useful where you want to show the section if a certain condition is not satisfied.
|
|
7345
7372
|
*
|
|
7346
7373
|
* <h3>Example</h3>
|
|
7347
7374
|
*
|
|
@@ -7350,15 +7377,19 @@ export interface DialogModuleOptions1 {
|
|
|
7350
7377
|
*
|
|
7351
7378
|
*
|
|
7352
7379
|
* {
|
|
7353
|
-
* "
|
|
7380
|
+
* "condition": "user_is_logged_in",
|
|
7381
|
+
* "invert": false
|
|
7354
7382
|
* }
|
|
7355
7383
|
*
|
|
7356
7384
|
*
|
|
7357
7385
|
*
|
|
7358
7386
|
*/
|
|
7359
|
-
export interface
|
|
7360
|
-
|
|
7361
|
-
|
|
7387
|
+
export interface SingleCondition4 {
|
|
7388
|
+
condition: string;
|
|
7389
|
+
invert?: boolean;
|
|
7390
|
+
params?: {
|
|
7391
|
+
[k: string]: unknown;
|
|
7392
|
+
};
|
|
7362
7393
|
[k: string]: unknown;
|
|
7363
7394
|
}
|
|
7364
7395
|
/**
|
|
@@ -7398,41 +7429,10 @@ export interface I18NProperty59 {
|
|
|
7398
7429
|
*
|
|
7399
7430
|
*/
|
|
7400
7431
|
export interface CompositeCondition6 {
|
|
7401
|
-
conditions?: (
|
|
7432
|
+
conditions?: (ManifestSchema | SingleCondition)[];
|
|
7402
7433
|
type?: 'and' | 'AND' | 'or' | 'OR';
|
|
7403
7434
|
[k: string]: unknown;
|
|
7404
7435
|
}
|
|
7405
|
-
/**
|
|
7406
|
-
*
|
|
7407
|
-
*
|
|
7408
|
-
* Single Conditions are either provided by the host application. See the complete documentation of
|
|
7409
|
-
* [Conditions](../../conditions/) for more information.
|
|
7410
|
-
*
|
|
7411
|
-
* To invert a condition, add the attribute ``invert="true"`` to the condition element.
|
|
7412
|
-
* This is useful where you want to show the section if a certain condition is not satisfied.
|
|
7413
|
-
*
|
|
7414
|
-
* <h3>Example</h3>
|
|
7415
|
-
*
|
|
7416
|
-
*
|
|
7417
|
-
*
|
|
7418
|
-
*
|
|
7419
|
-
*
|
|
7420
|
-
* {
|
|
7421
|
-
* "condition": "user_is_logged_in",
|
|
7422
|
-
* "invert": false
|
|
7423
|
-
* }
|
|
7424
|
-
*
|
|
7425
|
-
*
|
|
7426
|
-
*
|
|
7427
|
-
*/
|
|
7428
|
-
export interface SingleCondition4 {
|
|
7429
|
-
condition: string;
|
|
7430
|
-
invert?: boolean;
|
|
7431
|
-
params?: {
|
|
7432
|
-
[k: string]: unknown;
|
|
7433
|
-
};
|
|
7434
|
-
[k: string]: unknown;
|
|
7435
|
-
}
|
|
7436
7436
|
/**
|
|
7437
7437
|
*
|
|
7438
7438
|
*
|
|
@@ -9278,7 +9278,7 @@ export interface I18NProperty74 {
|
|
|
9278
9278
|
*
|
|
9279
9279
|
*/
|
|
9280
9280
|
export interface MacroPropertyPanel {
|
|
9281
|
-
controls?: (
|
|
9281
|
+
controls?: (ToggleGroup | ControlGroup | TextControl | ButtonControl1)[];
|
|
9282
9282
|
cacheable?: boolean;
|
|
9283
9283
|
url: string;
|
|
9284
9284
|
[k: string]: unknown;
|
|
@@ -9286,35 +9286,7 @@ export interface MacroPropertyPanel {
|
|
|
9286
9286
|
/**
|
|
9287
9287
|
*
|
|
9288
9288
|
*
|
|
9289
|
-
* Defines a
|
|
9290
|
-
*
|
|
9291
|
-
* <p><b>Example</b></p>
|
|
9292
|
-
*
|
|
9293
|
-
*
|
|
9294
|
-
*
|
|
9295
|
-
*
|
|
9296
|
-
*
|
|
9297
|
-
* {
|
|
9298
|
-
* "type": "button",
|
|
9299
|
-
* "label": {
|
|
9300
|
-
* "value": "My Custom Control 0"
|
|
9301
|
-
* },
|
|
9302
|
-
* "key": "my-custom-control-0"
|
|
9303
|
-
* }
|
|
9304
|
-
*
|
|
9305
|
-
*
|
|
9306
|
-
*
|
|
9307
|
-
*/
|
|
9308
|
-
export interface TextControl {
|
|
9309
|
-
macroParameter: string;
|
|
9310
|
-
type: 'text' | 'TEXT';
|
|
9311
|
-
key: string;
|
|
9312
|
-
[k: string]: unknown;
|
|
9313
|
-
}
|
|
9314
|
-
/**
|
|
9315
|
-
*
|
|
9316
|
-
*
|
|
9317
|
-
* Defines a ControlGroup which may appear in control extension points such as the property panel
|
|
9289
|
+
* Defines a ToggleGroup which may appear in control extension points such as the property panel
|
|
9318
9290
|
*
|
|
9319
9291
|
* <p><b>Example</b></p>
|
|
9320
9292
|
*
|
|
@@ -9324,21 +9296,24 @@ export interface TextControl {
|
|
|
9324
9296
|
*
|
|
9325
9297
|
* [
|
|
9326
9298
|
* {
|
|
9327
|
-
* "type": "
|
|
9299
|
+
* "type": "togglegroup",
|
|
9300
|
+
* "macroParameter": "toggleGroupMacroParameter",
|
|
9328
9301
|
* "controls": [
|
|
9329
9302
|
* {
|
|
9330
|
-
* "type": "
|
|
9303
|
+
* "type": "togglebutton",
|
|
9304
|
+
* "macroParameterValue": "macroParameterValue 0",
|
|
9331
9305
|
* "label": {
|
|
9332
9306
|
* "value": "My Custom Control 0"
|
|
9333
9307
|
* },
|
|
9334
|
-
* "key": "my-custom-
|
|
9308
|
+
* "key": "my-custom-toggle-button-0"
|
|
9335
9309
|
* },
|
|
9336
9310
|
* {
|
|
9337
|
-
* "type": "
|
|
9311
|
+
* "type": "togglebutton",
|
|
9312
|
+
* "macroParameterValue": "macroParameterValue 1",
|
|
9338
9313
|
* "label": {
|
|
9339
9314
|
* "value": "My Custom Control 1"
|
|
9340
9315
|
* },
|
|
9341
|
-
* "key": "my-custom-
|
|
9316
|
+
* "key": "my-custom-toggle-button-1"
|
|
9342
9317
|
* }
|
|
9343
9318
|
* ]
|
|
9344
9319
|
* }
|
|
@@ -9347,15 +9322,16 @@ export interface TextControl {
|
|
|
9347
9322
|
*
|
|
9348
9323
|
*
|
|
9349
9324
|
*/
|
|
9350
|
-
export interface
|
|
9351
|
-
controls:
|
|
9352
|
-
|
|
9325
|
+
export interface ToggleGroup {
|
|
9326
|
+
controls: ToggleButtonControl[];
|
|
9327
|
+
macroParameter: string;
|
|
9328
|
+
type: 'togglegroup' | 'TOGGLEGROUP';
|
|
9353
9329
|
[k: string]: unknown;
|
|
9354
9330
|
}
|
|
9355
9331
|
/**
|
|
9356
9332
|
*
|
|
9357
9333
|
*
|
|
9358
|
-
* Defines a button which
|
|
9334
|
+
* Defines a toggle button which appears inside a ToggleGroup
|
|
9359
9335
|
*
|
|
9360
9336
|
* <p><b>Example</b></p>
|
|
9361
9337
|
*
|
|
@@ -9364,19 +9340,21 @@ export interface ControlGroup {
|
|
|
9364
9340
|
*
|
|
9365
9341
|
*
|
|
9366
9342
|
* {
|
|
9367
|
-
* "type": "
|
|
9343
|
+
* "type": "togglebutton",
|
|
9344
|
+
* "macroParameterValue": "macroParameterValue 0",
|
|
9368
9345
|
* "label": {
|
|
9369
9346
|
* "value": "My Custom Control 0"
|
|
9370
9347
|
* },
|
|
9371
|
-
* "key": "my-custom-
|
|
9348
|
+
* "key": "my-custom-toggle-button-0"
|
|
9372
9349
|
* }
|
|
9373
9350
|
*
|
|
9374
9351
|
*
|
|
9375
9352
|
*
|
|
9376
9353
|
*/
|
|
9377
|
-
export interface
|
|
9354
|
+
export interface ToggleButtonControl {
|
|
9355
|
+
macroParameterValue: string;
|
|
9378
9356
|
label: I18NProperty75;
|
|
9379
|
-
type: '
|
|
9357
|
+
type: 'togglebutton' | 'TOGGLEBUTTON';
|
|
9380
9358
|
key: string;
|
|
9381
9359
|
[k: string]: unknown;
|
|
9382
9360
|
}
|
|
@@ -9404,6 +9382,47 @@ export interface I18NProperty75 {
|
|
|
9404
9382
|
i18n?: string;
|
|
9405
9383
|
[k: string]: unknown;
|
|
9406
9384
|
}
|
|
9385
|
+
/**
|
|
9386
|
+
*
|
|
9387
|
+
*
|
|
9388
|
+
* Defines a ControlGroup which may appear in control extension points such as the property panel
|
|
9389
|
+
*
|
|
9390
|
+
* <p><b>Example</b></p>
|
|
9391
|
+
*
|
|
9392
|
+
*
|
|
9393
|
+
*
|
|
9394
|
+
*
|
|
9395
|
+
*
|
|
9396
|
+
* [
|
|
9397
|
+
* {
|
|
9398
|
+
* "type": "group",
|
|
9399
|
+
* "controls": [
|
|
9400
|
+
* {
|
|
9401
|
+
* "type": "button",
|
|
9402
|
+
* "label": {
|
|
9403
|
+
* "value": "My Custom Control 0"
|
|
9404
|
+
* },
|
|
9405
|
+
* "key": "my-custom-control-0"
|
|
9406
|
+
* },
|
|
9407
|
+
* {
|
|
9408
|
+
* "type": "button",
|
|
9409
|
+
* "label": {
|
|
9410
|
+
* "value": "My Custom Control 1"
|
|
9411
|
+
* },
|
|
9412
|
+
* "key": "my-custom-control-1"
|
|
9413
|
+
* }
|
|
9414
|
+
* ]
|
|
9415
|
+
* }
|
|
9416
|
+
* ]
|
|
9417
|
+
*
|
|
9418
|
+
*
|
|
9419
|
+
*
|
|
9420
|
+
*/
|
|
9421
|
+
export interface ControlGroup {
|
|
9422
|
+
controls: ButtonControl[];
|
|
9423
|
+
type: 'group' | 'GROUP';
|
|
9424
|
+
[k: string]: unknown;
|
|
9425
|
+
}
|
|
9407
9426
|
/**
|
|
9408
9427
|
*
|
|
9409
9428
|
*
|
|
@@ -9426,7 +9445,7 @@ export interface I18NProperty75 {
|
|
|
9426
9445
|
*
|
|
9427
9446
|
*
|
|
9428
9447
|
*/
|
|
9429
|
-
export interface
|
|
9448
|
+
export interface ButtonControl {
|
|
9430
9449
|
label: I18NProperty76;
|
|
9431
9450
|
type: 'button' | 'BUTTON';
|
|
9432
9451
|
key: string;
|
|
@@ -9459,7 +9478,7 @@ export interface I18NProperty76 {
|
|
|
9459
9478
|
/**
|
|
9460
9479
|
*
|
|
9461
9480
|
*
|
|
9462
|
-
* Defines a
|
|
9481
|
+
* Defines a text field which may appear in control extension points such as the property panel
|
|
9463
9482
|
*
|
|
9464
9483
|
* <p><b>Example</b></p>
|
|
9465
9484
|
*
|
|
@@ -9467,44 +9486,27 @@ export interface I18NProperty76 {
|
|
|
9467
9486
|
*
|
|
9468
9487
|
*
|
|
9469
9488
|
*
|
|
9470
|
-
*
|
|
9471
|
-
*
|
|
9472
|
-
*
|
|
9473
|
-
* "
|
|
9474
|
-
*
|
|
9475
|
-
*
|
|
9476
|
-
*
|
|
9477
|
-
* "macroParameterValue": "macroParameterValue 0",
|
|
9478
|
-
* "label": {
|
|
9479
|
-
* "value": "My Custom Control 0"
|
|
9480
|
-
* },
|
|
9481
|
-
* "key": "my-custom-toggle-button-0"
|
|
9482
|
-
* },
|
|
9483
|
-
* {
|
|
9484
|
-
* "type": "togglebutton",
|
|
9485
|
-
* "macroParameterValue": "macroParameterValue 1",
|
|
9486
|
-
* "label": {
|
|
9487
|
-
* "value": "My Custom Control 1"
|
|
9488
|
-
* },
|
|
9489
|
-
* "key": "my-custom-toggle-button-1"
|
|
9490
|
-
* }
|
|
9491
|
-
* ]
|
|
9492
|
-
* }
|
|
9493
|
-
* ]
|
|
9489
|
+
* {
|
|
9490
|
+
* "type": "button",
|
|
9491
|
+
* "label": {
|
|
9492
|
+
* "value": "My Custom Control 0"
|
|
9493
|
+
* },
|
|
9494
|
+
* "key": "my-custom-control-0"
|
|
9495
|
+
* }
|
|
9494
9496
|
*
|
|
9495
9497
|
*
|
|
9496
9498
|
*
|
|
9497
9499
|
*/
|
|
9498
|
-
export interface
|
|
9499
|
-
controls: ToggleButtonControl[];
|
|
9500
|
+
export interface TextControl {
|
|
9500
9501
|
macroParameter: string;
|
|
9501
|
-
type: '
|
|
9502
|
+
type: 'text' | 'TEXT';
|
|
9503
|
+
key: string;
|
|
9502
9504
|
[k: string]: unknown;
|
|
9503
9505
|
}
|
|
9504
9506
|
/**
|
|
9505
9507
|
*
|
|
9506
9508
|
*
|
|
9507
|
-
* Defines a
|
|
9509
|
+
* Defines a button which may appear in control extension points such as the property panel
|
|
9508
9510
|
*
|
|
9509
9511
|
* <p><b>Example</b></p>
|
|
9510
9512
|
*
|
|
@@ -9513,21 +9515,19 @@ export interface ToggleGroup {
|
|
|
9513
9515
|
*
|
|
9514
9516
|
*
|
|
9515
9517
|
* {
|
|
9516
|
-
* "type": "
|
|
9517
|
-
* "macroParameterValue": "macroParameterValue 0",
|
|
9518
|
+
* "type": "button",
|
|
9518
9519
|
* "label": {
|
|
9519
9520
|
* "value": "My Custom Control 0"
|
|
9520
9521
|
* },
|
|
9521
|
-
* "key": "my-custom-
|
|
9522
|
+
* "key": "my-custom-control-0"
|
|
9522
9523
|
* }
|
|
9523
9524
|
*
|
|
9524
9525
|
*
|
|
9525
9526
|
*
|
|
9526
9527
|
*/
|
|
9527
|
-
export interface
|
|
9528
|
-
macroParameterValue: string;
|
|
9528
|
+
export interface ButtonControl1 {
|
|
9529
9529
|
label: I18NProperty77;
|
|
9530
|
-
type: '
|
|
9530
|
+
type: 'button' | 'BUTTON';
|
|
9531
9531
|
key: string;
|
|
9532
9532
|
[k: string]: unknown;
|
|
9533
9533
|
}
|
|
@@ -51649,37 +51649,10 @@ export interface I18NProperty91 {
|
|
|
51649
51649
|
*
|
|
51650
51650
|
*/
|
|
51651
51651
|
export interface WebItemTarget2 {
|
|
51652
|
-
options?:
|
|
51652
|
+
options?: DialogOptions4 | InlineDialogOptions2 | DialogModuleOptions2;
|
|
51653
51653
|
type?: 'page' | 'PAGE' | 'dialog' | 'DIALOG' | 'inlinedialog' | 'INLINEDIALOG' | 'dialogmodule' | 'DIALOGMODULE';
|
|
51654
51654
|
[k: string]: unknown;
|
|
51655
51655
|
}
|
|
51656
|
-
/**
|
|
51657
|
-
*
|
|
51658
|
-
*
|
|
51659
|
-
* Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
|
|
51660
|
-
*
|
|
51661
|
-
* <h3>Example</h3>
|
|
51662
|
-
*
|
|
51663
|
-
*
|
|
51664
|
-
*
|
|
51665
|
-
*
|
|
51666
|
-
*
|
|
51667
|
-
* {
|
|
51668
|
-
* "target": {
|
|
51669
|
-
* "type": "dialogmodule",
|
|
51670
|
-
* "options": {
|
|
51671
|
-
* "key": "dialog-module-key"
|
|
51672
|
-
* }
|
|
51673
|
-
* }
|
|
51674
|
-
* }
|
|
51675
|
-
*
|
|
51676
|
-
*
|
|
51677
|
-
*
|
|
51678
|
-
*/
|
|
51679
|
-
export interface DialogModuleOptions2 {
|
|
51680
|
-
key: string;
|
|
51681
|
-
[k: string]: unknown;
|
|
51682
|
-
}
|
|
51683
51656
|
/**
|
|
51684
51657
|
*
|
|
51685
51658
|
*
|
|
@@ -51815,6 +51788,33 @@ export interface InlineDialogOptions2 {
|
|
|
51815
51788
|
isRelativeToMouse?: boolean;
|
|
51816
51789
|
[k: string]: unknown;
|
|
51817
51790
|
}
|
|
51791
|
+
/**
|
|
51792
|
+
*
|
|
51793
|
+
*
|
|
51794
|
+
* Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
|
|
51795
|
+
*
|
|
51796
|
+
* <h3>Example</h3>
|
|
51797
|
+
*
|
|
51798
|
+
*
|
|
51799
|
+
*
|
|
51800
|
+
*
|
|
51801
|
+
*
|
|
51802
|
+
* {
|
|
51803
|
+
* "target": {
|
|
51804
|
+
* "type": "dialogmodule",
|
|
51805
|
+
* "options": {
|
|
51806
|
+
* "key": "dialog-module-key"
|
|
51807
|
+
* }
|
|
51808
|
+
* }
|
|
51809
|
+
* }
|
|
51810
|
+
*
|
|
51811
|
+
*
|
|
51812
|
+
*
|
|
51813
|
+
*/
|
|
51814
|
+
export interface DialogModuleOptions2 {
|
|
51815
|
+
key: string;
|
|
51816
|
+
[k: string]: unknown;
|
|
51817
|
+
}
|
|
51818
51818
|
/**
|
|
51819
51819
|
*
|
|
51820
51820
|
*
|
package/out/text/errors.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const errors: {
|
|
|
26
26
|
duplicateKeyFound: (key: string) => string;
|
|
27
27
|
wrongFunctionReference: (module: string, functionKey: string) => string;
|
|
28
28
|
wrongResourceReference: (module: string, resourceKey: string) => string;
|
|
29
|
+
singleEntryOfTheModule: (moduleType: string) => string;
|
|
29
30
|
displayConditions: {
|
|
30
31
|
overcomplicated: (moduleKey: string) => string;
|
|
31
32
|
invalid: (moduleKey: string) => string;
|
|
@@ -42,9 +43,6 @@ export declare const errors: {
|
|
|
42
43
|
jiraEntityProperty: {
|
|
43
44
|
maxExtractionsPerApp: (limit: number) => string;
|
|
44
45
|
};
|
|
45
|
-
fullPage: {
|
|
46
|
-
children: (moduleType: string) => string;
|
|
47
|
-
};
|
|
48
46
|
customFields: {
|
|
49
47
|
searchAlias: (aliases: string[]) => string;
|
|
50
48
|
};
|
package/out/text/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/text/errors.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;8BACS,MAAM,KAAG,MAAM;2BACpB,MAAM;yBAEN,MAAM,GAAG,SAAS,QAAQ,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,KAAG,MAAM;;uBAO3E,MAAM,EAAE,EAAE,GAAG,SAAS,KAAG,MAAM;4BAI1B,MAAM,EAAE,KAAG,MAAM;mCACV,MAAM,SAAS,MAAM,0CAA4B,MAAM;mDAIvC,MAAM,KAAG,MAAM;;;qCAI7B,MAAM,SAAS,MAAM,KAAG,MAAM;4CAEvB,MAAM,SAAS,MAAM,KAAG,MAAM;wCAElC,MAAM,SAAS,MAAM,EAAE,KAAG,MAAM;;;uCAMjC,MAAM,KAAG,MAAM;oCACpB,MAAM;iCAEP,MAAM,KAAG,MAAM;4CACJ,MAAM,KAAG,MAAM;;;gCAG3B,MAAM,KAAG,MAAM;6BACpB,MAAM;+BACJ,MAAM;iCACF,MAAM,KAAG,MAAM;yCACP,MAAM,eAAe,MAAM,KAAG,MAAM;yCAEpC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MAAM,KAAG,MAAM;;;;;mCAQ/B,MAAM,OAAO,MAAM,KAAG,MAAM;iCAE9B,MAAM,OAAO,MAAM,KAAG,MAAM;oCAEzB,MAAM,OAAO,MAAM,KAAG,MAAM;gDAEhB,MAAM,KAAG,MAAM;uCAExB,MAAM,KAAG,MAAM;;;;;;;;kCAQpB,MAAM,UAAU,MAAM,KAAG,MAAM;gCAEjC,MAAM,KAAG,MAAM;2CAEJ,MAAM,eAAe,MAAM,KAAG,MAAM;;;uCAI1C,MAAM;uCAEJ,MAAM,KAAG,MAAM;qCAEnB,MAAM;;CAGpC,CAAC;AAEF,oBAAY,UAAU;IACpB,eAAe,2BAA2B;IAC1C,eAAe,wBAAwB;IACvC,WAAW,4BAA4B;IACvC,WAAW,+BAA+B;IAC1C,aAAa,8BAA8B;IAC3C,OAAO,0BAA0B;IACjC,cAAc,kCAAkC;IAChD,mBAAmB,0BAA0B;IAC7C,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;CAClC"}
|
package/out/text/errors.js
CHANGED
|
@@ -38,6 +38,7 @@ exports.errors = {
|
|
|
38
38
|
duplicateKeyFound: (key) => `found duplicate module key '${key}'`,
|
|
39
39
|
wrongFunctionReference: (module, functionKey) => `${module} references undefined function module with key '${functionKey}'`,
|
|
40
40
|
wrongResourceReference: (module, resourceKey) => `missing resource key '${resourceKey}' is being referenced by ${module} module`,
|
|
41
|
+
singleEntryOfTheModule: (moduleType) => `Only a single entry of the ${moduleType} module can be defined in the manifest`,
|
|
41
42
|
displayConditions: {
|
|
42
43
|
overcomplicated: (moduleKey) => `Nesting of display conditions of the "${moduleKey}" module exceeds 10 levels.`,
|
|
43
44
|
invalid: (moduleKey) => `Display conditions of the "${moduleKey}" module are invalid.`,
|
|
@@ -54,9 +55,6 @@ exports.errors = {
|
|
|
54
55
|
jiraEntityProperty: {
|
|
55
56
|
maxExtractionsPerApp: (limit) => `All ${types_1.AllModuleTypes.JiraEntityProperty} modules combined cannot declare more than ${limit} values.`
|
|
56
57
|
},
|
|
57
|
-
fullPage: {
|
|
58
|
-
children: (moduleType) => `Only a single entry of the ${moduleType} module can be defined in the manifest`
|
|
59
|
-
},
|
|
60
58
|
customFields: {
|
|
61
59
|
searchAlias: (aliases) => `Search alias should be always unique per field. Found duplicates: ${aliases.join(', ')}.`
|
|
62
60
|
},
|
|
@@ -20,6 +20,7 @@ export declare enum AllModuleTypes {
|
|
|
20
20
|
JiraCustomFieldType = "jira:customFieldType",
|
|
21
21
|
JiraIssueAction = "jira:issueAction",
|
|
22
22
|
JiraIssueActivity = "jira:issueActivity",
|
|
23
|
+
JiraIssueAdjustment = "jira:issueAdjustment",
|
|
23
24
|
JiraIssueGlance = "jira:issueGlance",
|
|
24
25
|
JiraIssuePanel = "jira:issuePanel",
|
|
25
26
|
JiraAdminPage = "jira:adminPage",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-types.d.ts","sourceRoot":"","sources":["../../src/types/module-types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,oBAAoB,0BAA0B;IAC9C,QAAQ,cAAc;IACtB,uBAAuB,6BAA6B;IACpD,2BAA2B,iCAAiC;IAC5D,qBAAqB,2BAA2B;IAChD,wBAAwB,8BAA8B;IACtD,oBAAoB,0BAA0B;IAC9C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,uBAAuB,6BAA6B;IACpD,kBAAkB,wBAAwB;IAC1C,qBAAqB,2BAA2B;IAChD,qBAAqB,2BAA2B;IAChD,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IACpC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,u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D,iCAAiC,wCAAwC;IACzE,sBAAsB,6BAA6B;IACnD,iCAAiC,wCAAwC;IACzE,oCAAoC,2CAA2C;IAC/E,iCAAiC,wCAAwC;IACzE,0BAA0B,iCAAiC;IAC3D,oBAAoB,2BAA2B;IAC/C,sBAAsB,6BAA6B;IACnD,mBAAmB,0BAA0B;IAC7C,0BAA0B,iCAAiC;CAC5D;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
|
|
@@ -24,6 +24,7 @@ var AllModuleTypes;
|
|
|
24
24
|
AllModuleTypes["JiraCustomFieldType"] = "jira:customFieldType";
|
|
25
25
|
AllModuleTypes["JiraIssueAction"] = "jira:issueAction";
|
|
26
26
|
AllModuleTypes["JiraIssueActivity"] = "jira:issueActivity";
|
|
27
|
+
AllModuleTypes["JiraIssueAdjustment"] = "jira:issueAdjustment";
|
|
27
28
|
AllModuleTypes["JiraIssueGlance"] = "jira:issueGlance";
|
|
28
29
|
AllModuleTypes["JiraIssuePanel"] = "jira:issuePanel";
|
|
29
30
|
AllModuleTypes["JiraAdminPage"] = "jira:adminPage";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAGxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,cAAc,EAAE,wBAAwB,EAAsC,MAAM,UAAU,CAAC;AAGxH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IACzF,OAAO,CAAC,oBAAoB,CAA0C;IAEtE,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GAAG,wBAAwB,CAAC,cAAc,CAAC;CA0OzG"}
|
|
@@ -6,6 +6,7 @@ const utils_1 = require("../utils");
|
|
|
6
6
|
const text_1 = require("../text");
|
|
7
7
|
const fs_1 = require("fs");
|
|
8
8
|
const path_1 = require("path");
|
|
9
|
+
const issue_adjustment_1 = require("./modules-validators/issue-adjustment");
|
|
9
10
|
class ModulesValidator {
|
|
10
11
|
constructor() {
|
|
11
12
|
this.functionHandlerRegex = /^([a-zA-Z0-9-_]+)\.([a-zA-Z0-9-_]+)$/;
|
|
@@ -90,6 +91,7 @@ class ModulesValidator {
|
|
|
90
91
|
validationErrors.push(Object.assign({ message: text_1.errors.modules.jiraWorkflowCondition.missingExpression(module.key), reference: text_1.References.Modules, level: 'error' }, utils_1.findPosition(module.key, yamlContentByLine)));
|
|
91
92
|
}
|
|
92
93
|
});
|
|
94
|
+
validationErrors.push(...issue_adjustment_1.validateIssueAdjustmentModule(modules, yamlContentByLine));
|
|
93
95
|
[
|
|
94
96
|
types_1.AllModuleTypes.JiraAdminPage,
|
|
95
97
|
types_1.AllModuleTypes.JiraProjectPage,
|
|
@@ -98,7 +100,7 @@ class ModulesValidator {
|
|
|
98
100
|
].forEach((moduleType) => {
|
|
99
101
|
const moduleArray = modules[moduleType];
|
|
100
102
|
if (moduleArray && moduleArray.length > 1) {
|
|
101
|
-
validationErrors.push(Object.assign({ message: text_1.errors.modules.
|
|
103
|
+
validationErrors.push(Object.assign({ message: text_1.errors.modules.singleEntryOfTheModule(moduleType), reference: text_1.References.Modules, level: 'error' }, utils_1.findPosition(moduleArray[1].key, yamlContentByLine)));
|
|
102
104
|
}
|
|
103
105
|
if (moduleArray && moduleArray.length === 1) {
|
|
104
106
|
const module = moduleArray[0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issue-adjustment.d.ts","sourceRoot":"","sources":["../../../src/validators/modules-validators/issue-adjustment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAe/G"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateIssueAdjustmentModule = void 0;
|
|
4
|
+
const types_1 = require("../../types");
|
|
5
|
+
const text_1 = require("../../text");
|
|
6
|
+
const utils_1 = require("../../utils");
|
|
7
|
+
function validateIssueAdjustmentModule(modules, yamlContentByLine) {
|
|
8
|
+
const validationErrors = [];
|
|
9
|
+
const moduleType = types_1.AllModuleTypes.JiraIssueAdjustment;
|
|
10
|
+
const moduleArray = modules[moduleType];
|
|
11
|
+
if (moduleArray && moduleArray.length > 1) {
|
|
12
|
+
validationErrors.push(Object.assign({ message: text_1.errors.modules.singleEntryOfTheModule(moduleType), reference: text_1.References.Modules, level: 'error' }, utils_1.findPosition(moduleArray[1].key, yamlContentByLine)));
|
|
13
|
+
}
|
|
14
|
+
return validationErrors;
|
|
15
|
+
}
|
|
16
|
+
exports.validateIssueAdjustmentModule = validateIssueAdjustmentModule;
|