@forge/manifest 13.8.0-next.7 → 13.8.0-next.9
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 +12 -0
- package/out/schema/manifest-schema.json +68 -298
- package/out/schema/manifest.d.ts +28 -118
- package/out/text/errors.d.ts +0 -5
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +0 -5
- package/out/types/module-types.d.ts +0 -1
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +0 -1
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +1 -2
- package/package.json +1 -1
- package/out/validators/modules-validators/jira/validate-full-page-module.d.ts +0 -4
- package/out/validators/modules-validators/jira/validate-full-page-module.d.ts.map +0 -1
- package/out/validators/modules-validators/jira/validate-full-page-module.js +0 -51
package/CHANGELOG.md
CHANGED
|
@@ -2854,20 +2854,76 @@
|
|
|
2854
2854
|
"type": "object",
|
|
2855
2855
|
"properties": {
|
|
2856
2856
|
"title": {
|
|
2857
|
+
"anyOf": [
|
|
2858
|
+
{
|
|
2859
|
+
"type": "string",
|
|
2860
|
+
"minLength": 1,
|
|
2861
|
+
"maxLength": 255
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
"type": "object",
|
|
2865
|
+
"additionalProperties": false,
|
|
2866
|
+
"properties": {
|
|
2867
|
+
"i18n": {
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"minLength": 1,
|
|
2870
|
+
"maxLength": 300,
|
|
2871
|
+
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
2872
|
+
}
|
|
2873
|
+
},
|
|
2874
|
+
"required": [
|
|
2875
|
+
"i18n"
|
|
2876
|
+
]
|
|
2877
|
+
}
|
|
2878
|
+
]
|
|
2879
|
+
},
|
|
2880
|
+
"title__i18n": {
|
|
2857
2881
|
"type": "string",
|
|
2858
2882
|
"minLength": 1,
|
|
2859
|
-
"maxLength":
|
|
2883
|
+
"maxLength": 300,
|
|
2884
|
+
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
2860
2885
|
},
|
|
2861
2886
|
"description": {
|
|
2887
|
+
"anyOf": [
|
|
2888
|
+
{
|
|
2889
|
+
"type": "string",
|
|
2890
|
+
"minLength": 1,
|
|
2891
|
+
"maxLength": 1000
|
|
2892
|
+
},
|
|
2893
|
+
{
|
|
2894
|
+
"type": "object",
|
|
2895
|
+
"additionalProperties": false,
|
|
2896
|
+
"properties": {
|
|
2897
|
+
"i18n": {
|
|
2898
|
+
"type": "string",
|
|
2899
|
+
"minLength": 1,
|
|
2900
|
+
"maxLength": 300,
|
|
2901
|
+
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
2902
|
+
}
|
|
2903
|
+
},
|
|
2904
|
+
"required": [
|
|
2905
|
+
"i18n"
|
|
2906
|
+
]
|
|
2907
|
+
}
|
|
2908
|
+
]
|
|
2909
|
+
},
|
|
2910
|
+
"description__i18n": {
|
|
2862
2911
|
"type": "string",
|
|
2863
2912
|
"minLength": 1,
|
|
2864
|
-
"maxLength":
|
|
2913
|
+
"maxLength": 300,
|
|
2914
|
+
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
2865
2915
|
},
|
|
2866
2916
|
"resource": {
|
|
2867
2917
|
"type": "string",
|
|
2868
2918
|
"minLength": 1,
|
|
2869
|
-
"maxLength":
|
|
2870
|
-
"pattern": "^[a-zA-Z0-9_\\-]
|
|
2919
|
+
"maxLength": 47,
|
|
2920
|
+
"pattern": "^[a-zA-Z0-9_\\-]{1,23}(/[a-zA-Z0-9_\\-]{1,23})?$"
|
|
2921
|
+
},
|
|
2922
|
+
"resolvedResourceEntry": {
|
|
2923
|
+
"type": "string",
|
|
2924
|
+
"minLength": 1,
|
|
2925
|
+
"maxLength": 64,
|
|
2926
|
+
"pattern": "^[a-zA-Z0-9._-]+$"
|
|
2871
2927
|
},
|
|
2872
2928
|
"render": {
|
|
2873
2929
|
"default": "default",
|
|
@@ -2883,8 +2939,14 @@
|
|
|
2883
2939
|
"resource": {
|
|
2884
2940
|
"type": "string",
|
|
2885
2941
|
"minLength": 1,
|
|
2886
|
-
"maxLength":
|
|
2887
|
-
"pattern": "^[a-zA-Z0-9_\\-]
|
|
2942
|
+
"maxLength": 47,
|
|
2943
|
+
"pattern": "^[a-zA-Z0-9_\\-]{1,23}(/[a-zA-Z0-9_\\-]{1,23})?$"
|
|
2944
|
+
},
|
|
2945
|
+
"resolvedResourceEntry": {
|
|
2946
|
+
"type": "string",
|
|
2947
|
+
"minLength": 1,
|
|
2948
|
+
"maxLength": 64,
|
|
2949
|
+
"pattern": "^[a-zA-Z0-9._-]+$"
|
|
2888
2950
|
},
|
|
2889
2951
|
"render": {
|
|
2890
2952
|
"default": "default",
|
|
@@ -3241,59 +3303,6 @@
|
|
|
3241
3303
|
],
|
|
3242
3304
|
"type": "string"
|
|
3243
3305
|
},
|
|
3244
|
-
"migration": {
|
|
3245
|
-
"type": "object",
|
|
3246
|
-
"properties": {
|
|
3247
|
-
"from": {
|
|
3248
|
-
"type": "array",
|
|
3249
|
-
"minItems": 1,
|
|
3250
|
-
"items": {
|
|
3251
|
-
"type": "string",
|
|
3252
|
-
"minLength": 1,
|
|
3253
|
-
"maxLength": 255,
|
|
3254
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
3255
|
-
}
|
|
3256
|
-
},
|
|
3257
|
-
"migrate": {
|
|
3258
|
-
"anyOf": [
|
|
3259
|
-
{
|
|
3260
|
-
"additionalProperties": false,
|
|
3261
|
-
"type": "object",
|
|
3262
|
-
"properties": {
|
|
3263
|
-
"function": {
|
|
3264
|
-
"type": "string",
|
|
3265
|
-
"minLength": 1,
|
|
3266
|
-
"maxLength": 255,
|
|
3267
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
3268
|
-
}
|
|
3269
|
-
},
|
|
3270
|
-
"required": [
|
|
3271
|
-
"function"
|
|
3272
|
-
]
|
|
3273
|
-
},
|
|
3274
|
-
{
|
|
3275
|
-
"additionalProperties": false,
|
|
3276
|
-
"type": "object",
|
|
3277
|
-
"properties": {
|
|
3278
|
-
"endpoint": {
|
|
3279
|
-
"type": "string",
|
|
3280
|
-
"minLength": 1,
|
|
3281
|
-
"maxLength": 255,
|
|
3282
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
3283
|
-
}
|
|
3284
|
-
},
|
|
3285
|
-
"required": [
|
|
3286
|
-
"endpoint"
|
|
3287
|
-
]
|
|
3288
|
-
}
|
|
3289
|
-
]
|
|
3290
|
-
}
|
|
3291
|
-
},
|
|
3292
|
-
"required": [
|
|
3293
|
-
"from",
|
|
3294
|
-
"migrate"
|
|
3295
|
-
]
|
|
3296
|
-
},
|
|
3297
3306
|
"key": {
|
|
3298
3307
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
3299
3308
|
}
|
|
@@ -13517,245 +13526,6 @@
|
|
|
13517
13526
|
},
|
|
13518
13527
|
"minItems": 1
|
|
13519
13528
|
},
|
|
13520
|
-
"jira:fullPage": {
|
|
13521
|
-
"type": "array",
|
|
13522
|
-
"items": {
|
|
13523
|
-
"oneOf": [
|
|
13524
|
-
{
|
|
13525
|
-
"type": "object",
|
|
13526
|
-
"additionalProperties": false,
|
|
13527
|
-
"properties": {
|
|
13528
|
-
"resource": {
|
|
13529
|
-
"type": "string",
|
|
13530
|
-
"minLength": 1,
|
|
13531
|
-
"maxLength": 47,
|
|
13532
|
-
"pattern": "^[a-zA-Z0-9_\\-]{1,23}(/[a-zA-Z0-9_\\-]{1,23})?$"
|
|
13533
|
-
},
|
|
13534
|
-
"resolvedResourceEntry": {
|
|
13535
|
-
"type": "string",
|
|
13536
|
-
"minLength": 1,
|
|
13537
|
-
"maxLength": 64,
|
|
13538
|
-
"pattern": "^[a-zA-Z0-9._-]+$"
|
|
13539
|
-
},
|
|
13540
|
-
"resourceUploadId": {
|
|
13541
|
-
"type": "string",
|
|
13542
|
-
"minLength": 1,
|
|
13543
|
-
"maxLength": 255
|
|
13544
|
-
},
|
|
13545
|
-
"resolver": {
|
|
13546
|
-
"anyOf": [
|
|
13547
|
-
{
|
|
13548
|
-
"additionalProperties": false,
|
|
13549
|
-
"type": "object",
|
|
13550
|
-
"properties": {
|
|
13551
|
-
"function": {
|
|
13552
|
-
"type": "string",
|
|
13553
|
-
"minLength": 1,
|
|
13554
|
-
"maxLength": 255,
|
|
13555
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
13556
|
-
}
|
|
13557
|
-
},
|
|
13558
|
-
"required": [
|
|
13559
|
-
"function"
|
|
13560
|
-
]
|
|
13561
|
-
},
|
|
13562
|
-
{
|
|
13563
|
-
"additionalProperties": false,
|
|
13564
|
-
"type": "object",
|
|
13565
|
-
"properties": {
|
|
13566
|
-
"endpoint": {
|
|
13567
|
-
"type": "string",
|
|
13568
|
-
"minLength": 1,
|
|
13569
|
-
"maxLength": 255,
|
|
13570
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
13571
|
-
}
|
|
13572
|
-
},
|
|
13573
|
-
"required": [
|
|
13574
|
-
"endpoint"
|
|
13575
|
-
]
|
|
13576
|
-
}
|
|
13577
|
-
]
|
|
13578
|
-
},
|
|
13579
|
-
"title": {
|
|
13580
|
-
"anyOf": [
|
|
13581
|
-
{
|
|
13582
|
-
"type": "string",
|
|
13583
|
-
"minLength": 1,
|
|
13584
|
-
"maxLength": 255
|
|
13585
|
-
},
|
|
13586
|
-
{
|
|
13587
|
-
"additionalProperties": false,
|
|
13588
|
-
"type": "object",
|
|
13589
|
-
"properties": {
|
|
13590
|
-
"i18n": {
|
|
13591
|
-
"type": "string",
|
|
13592
|
-
"minLength": 1,
|
|
13593
|
-
"maxLength": 300,
|
|
13594
|
-
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
13595
|
-
}
|
|
13596
|
-
},
|
|
13597
|
-
"required": [
|
|
13598
|
-
"i18n"
|
|
13599
|
-
]
|
|
13600
|
-
}
|
|
13601
|
-
]
|
|
13602
|
-
},
|
|
13603
|
-
"title__i18n": {
|
|
13604
|
-
"type": "string",
|
|
13605
|
-
"minLength": 1,
|
|
13606
|
-
"maxLength": 300,
|
|
13607
|
-
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
13608
|
-
},
|
|
13609
|
-
"routePrefix": {
|
|
13610
|
-
"type": "string",
|
|
13611
|
-
"minLength": 1,
|
|
13612
|
-
"maxLength": 255,
|
|
13613
|
-
"pattern": "^[a-z0-9\\-]+$"
|
|
13614
|
-
},
|
|
13615
|
-
"icon": {
|
|
13616
|
-
"type": "string",
|
|
13617
|
-
"minLength": 1,
|
|
13618
|
-
"maxLength": 255
|
|
13619
|
-
},
|
|
13620
|
-
"key": {
|
|
13621
|
-
"$ref": "#/definitions/ModuleKeySchema"
|
|
13622
|
-
}
|
|
13623
|
-
},
|
|
13624
|
-
"required": [
|
|
13625
|
-
"resource",
|
|
13626
|
-
"routePrefix",
|
|
13627
|
-
"key"
|
|
13628
|
-
],
|
|
13629
|
-
"not": {
|
|
13630
|
-
"required": [
|
|
13631
|
-
"unlicensedAccess"
|
|
13632
|
-
]
|
|
13633
|
-
}
|
|
13634
|
-
},
|
|
13635
|
-
{
|
|
13636
|
-
"type": "object",
|
|
13637
|
-
"additionalProperties": false,
|
|
13638
|
-
"properties": {
|
|
13639
|
-
"resource": {
|
|
13640
|
-
"type": "string",
|
|
13641
|
-
"minLength": 1,
|
|
13642
|
-
"maxLength": 47,
|
|
13643
|
-
"pattern": "^[a-zA-Z0-9_\\-]{1,23}(/[a-zA-Z0-9_\\-]{1,23})?$"
|
|
13644
|
-
},
|
|
13645
|
-
"resolvedResourceEntry": {
|
|
13646
|
-
"type": "string",
|
|
13647
|
-
"minLength": 1,
|
|
13648
|
-
"maxLength": 64,
|
|
13649
|
-
"pattern": "^[a-zA-Z0-9._-]+$"
|
|
13650
|
-
},
|
|
13651
|
-
"resourceUploadId": {
|
|
13652
|
-
"type": "string",
|
|
13653
|
-
"minLength": 1,
|
|
13654
|
-
"maxLength": 255
|
|
13655
|
-
},
|
|
13656
|
-
"resolver": {
|
|
13657
|
-
"anyOf": [
|
|
13658
|
-
{
|
|
13659
|
-
"additionalProperties": false,
|
|
13660
|
-
"type": "object",
|
|
13661
|
-
"properties": {
|
|
13662
|
-
"function": {
|
|
13663
|
-
"type": "string",
|
|
13664
|
-
"minLength": 1,
|
|
13665
|
-
"maxLength": 255,
|
|
13666
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
13667
|
-
}
|
|
13668
|
-
},
|
|
13669
|
-
"required": [
|
|
13670
|
-
"function"
|
|
13671
|
-
]
|
|
13672
|
-
},
|
|
13673
|
-
{
|
|
13674
|
-
"additionalProperties": false,
|
|
13675
|
-
"type": "object",
|
|
13676
|
-
"properties": {
|
|
13677
|
-
"endpoint": {
|
|
13678
|
-
"type": "string",
|
|
13679
|
-
"minLength": 1,
|
|
13680
|
-
"maxLength": 255,
|
|
13681
|
-
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
13682
|
-
}
|
|
13683
|
-
},
|
|
13684
|
-
"required": [
|
|
13685
|
-
"endpoint"
|
|
13686
|
-
]
|
|
13687
|
-
}
|
|
13688
|
-
]
|
|
13689
|
-
},
|
|
13690
|
-
"render": {
|
|
13691
|
-
"default": "default",
|
|
13692
|
-
"enum": [
|
|
13693
|
-
"default",
|
|
13694
|
-
"native"
|
|
13695
|
-
],
|
|
13696
|
-
"type": "string"
|
|
13697
|
-
},
|
|
13698
|
-
"title": {
|
|
13699
|
-
"anyOf": [
|
|
13700
|
-
{
|
|
13701
|
-
"type": "string",
|
|
13702
|
-
"minLength": 1,
|
|
13703
|
-
"maxLength": 255
|
|
13704
|
-
},
|
|
13705
|
-
{
|
|
13706
|
-
"additionalProperties": false,
|
|
13707
|
-
"type": "object",
|
|
13708
|
-
"properties": {
|
|
13709
|
-
"i18n": {
|
|
13710
|
-
"type": "string",
|
|
13711
|
-
"minLength": 1,
|
|
13712
|
-
"maxLength": 300,
|
|
13713
|
-
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
13714
|
-
}
|
|
13715
|
-
},
|
|
13716
|
-
"required": [
|
|
13717
|
-
"i18n"
|
|
13718
|
-
]
|
|
13719
|
-
}
|
|
13720
|
-
]
|
|
13721
|
-
},
|
|
13722
|
-
"title__i18n": {
|
|
13723
|
-
"type": "string",
|
|
13724
|
-
"minLength": 1,
|
|
13725
|
-
"maxLength": 300,
|
|
13726
|
-
"pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
|
|
13727
|
-
},
|
|
13728
|
-
"routePrefix": {
|
|
13729
|
-
"type": "string",
|
|
13730
|
-
"minLength": 1,
|
|
13731
|
-
"maxLength": 255,
|
|
13732
|
-
"pattern": "^[a-z0-9\\-]+$"
|
|
13733
|
-
},
|
|
13734
|
-
"icon": {
|
|
13735
|
-
"type": "string",
|
|
13736
|
-
"minLength": 1,
|
|
13737
|
-
"maxLength": 255
|
|
13738
|
-
},
|
|
13739
|
-
"key": {
|
|
13740
|
-
"$ref": "#/definitions/ModuleKeySchema"
|
|
13741
|
-
}
|
|
13742
|
-
},
|
|
13743
|
-
"required": [
|
|
13744
|
-
"resource",
|
|
13745
|
-
"render",
|
|
13746
|
-
"routePrefix",
|
|
13747
|
-
"key"
|
|
13748
|
-
],
|
|
13749
|
-
"not": {
|
|
13750
|
-
"required": [
|
|
13751
|
-
"unlicensedAccess"
|
|
13752
|
-
]
|
|
13753
|
-
}
|
|
13754
|
-
}
|
|
13755
|
-
]
|
|
13756
|
-
},
|
|
13757
|
-
"minItems": 1
|
|
13758
|
-
},
|
|
13759
13529
|
"jira:globalPage": {
|
|
13760
13530
|
"type": "array",
|
|
13761
13531
|
"items": {
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -13247,12 +13247,24 @@ export interface Modules {
|
|
|
13247
13247
|
];
|
|
13248
13248
|
'dashboards:widget'?: [
|
|
13249
13249
|
{
|
|
13250
|
-
title:
|
|
13251
|
-
|
|
13250
|
+
title:
|
|
13251
|
+
| string
|
|
13252
|
+
| {
|
|
13253
|
+
i18n: string;
|
|
13254
|
+
};
|
|
13255
|
+
title__i18n?: string;
|
|
13256
|
+
description:
|
|
13257
|
+
| string
|
|
13258
|
+
| {
|
|
13259
|
+
i18n: string;
|
|
13260
|
+
};
|
|
13261
|
+
description__i18n?: string;
|
|
13252
13262
|
resource: string;
|
|
13263
|
+
resolvedResourceEntry?: string;
|
|
13253
13264
|
render?: 'default' | 'native';
|
|
13254
13265
|
edit?: {
|
|
13255
13266
|
resource: string;
|
|
13267
|
+
resolvedResourceEntry?: string;
|
|
13256
13268
|
render?: 'default' | 'native';
|
|
13257
13269
|
[k: string]: unknown;
|
|
13258
13270
|
};
|
|
@@ -13289,12 +13301,24 @@ export interface Modules {
|
|
|
13289
13301
|
[k: string]: unknown;
|
|
13290
13302
|
},
|
|
13291
13303
|
...{
|
|
13292
|
-
title:
|
|
13293
|
-
|
|
13304
|
+
title:
|
|
13305
|
+
| string
|
|
13306
|
+
| {
|
|
13307
|
+
i18n: string;
|
|
13308
|
+
};
|
|
13309
|
+
title__i18n?: string;
|
|
13310
|
+
description:
|
|
13311
|
+
| string
|
|
13312
|
+
| {
|
|
13313
|
+
i18n: string;
|
|
13314
|
+
};
|
|
13315
|
+
description__i18n?: string;
|
|
13294
13316
|
resource: string;
|
|
13317
|
+
resolvedResourceEntry?: string;
|
|
13295
13318
|
render?: 'default' | 'native';
|
|
13296
13319
|
edit?: {
|
|
13297
13320
|
resource: string;
|
|
13321
|
+
resolvedResourceEntry?: string;
|
|
13298
13322
|
render?: 'default' | 'native';
|
|
13299
13323
|
[k: string]: unknown;
|
|
13300
13324
|
};
|
|
@@ -13368,17 +13392,6 @@ export interface Modules {
|
|
|
13368
13392
|
endpoint: string;
|
|
13369
13393
|
};
|
|
13370
13394
|
render?: 'default' | 'native';
|
|
13371
|
-
migration?: {
|
|
13372
|
-
from: [string, ...string[]];
|
|
13373
|
-
migrate:
|
|
13374
|
-
| {
|
|
13375
|
-
function: string;
|
|
13376
|
-
}
|
|
13377
|
-
| {
|
|
13378
|
-
endpoint: string;
|
|
13379
|
-
};
|
|
13380
|
-
[k: string]: unknown;
|
|
13381
|
-
};
|
|
13382
13395
|
key: ModuleKeySchema;
|
|
13383
13396
|
[k: string]: unknown;
|
|
13384
13397
|
},
|
|
@@ -13392,17 +13405,6 @@ export interface Modules {
|
|
|
13392
13405
|
endpoint: string;
|
|
13393
13406
|
};
|
|
13394
13407
|
render?: 'default' | 'native';
|
|
13395
|
-
migration?: {
|
|
13396
|
-
from: [string, ...string[]];
|
|
13397
|
-
migrate:
|
|
13398
|
-
| {
|
|
13399
|
-
function: string;
|
|
13400
|
-
}
|
|
13401
|
-
| {
|
|
13402
|
-
endpoint: string;
|
|
13403
|
-
};
|
|
13404
|
-
[k: string]: unknown;
|
|
13405
|
-
};
|
|
13406
13408
|
key: ModuleKeySchema;
|
|
13407
13409
|
[k: string]: unknown;
|
|
13408
13410
|
}[]
|
|
@@ -18423,98 +18425,6 @@ export interface Modules {
|
|
|
18423
18425
|
}
|
|
18424
18426
|
)[]
|
|
18425
18427
|
];
|
|
18426
|
-
'jira:fullPage'?: [
|
|
18427
|
-
(
|
|
18428
|
-
| {
|
|
18429
|
-
resource: string;
|
|
18430
|
-
resolvedResourceEntry?: string;
|
|
18431
|
-
resourceUploadId?: string;
|
|
18432
|
-
resolver?:
|
|
18433
|
-
| {
|
|
18434
|
-
function: string;
|
|
18435
|
-
}
|
|
18436
|
-
| {
|
|
18437
|
-
endpoint: string;
|
|
18438
|
-
};
|
|
18439
|
-
title?:
|
|
18440
|
-
| string
|
|
18441
|
-
| {
|
|
18442
|
-
i18n: string;
|
|
18443
|
-
};
|
|
18444
|
-
title__i18n?: string;
|
|
18445
|
-
routePrefix: string;
|
|
18446
|
-
icon?: string;
|
|
18447
|
-
key: ModuleKeySchema;
|
|
18448
|
-
}
|
|
18449
|
-
| {
|
|
18450
|
-
resource: string;
|
|
18451
|
-
resolvedResourceEntry?: string;
|
|
18452
|
-
resourceUploadId?: string;
|
|
18453
|
-
resolver?:
|
|
18454
|
-
| {
|
|
18455
|
-
function: string;
|
|
18456
|
-
}
|
|
18457
|
-
| {
|
|
18458
|
-
endpoint: string;
|
|
18459
|
-
};
|
|
18460
|
-
render: 'default' | 'native';
|
|
18461
|
-
title?:
|
|
18462
|
-
| string
|
|
18463
|
-
| {
|
|
18464
|
-
i18n: string;
|
|
18465
|
-
};
|
|
18466
|
-
title__i18n?: string;
|
|
18467
|
-
routePrefix: string;
|
|
18468
|
-
icon?: string;
|
|
18469
|
-
key: ModuleKeySchema;
|
|
18470
|
-
}
|
|
18471
|
-
),
|
|
18472
|
-
...(
|
|
18473
|
-
| {
|
|
18474
|
-
resource: string;
|
|
18475
|
-
resolvedResourceEntry?: string;
|
|
18476
|
-
resourceUploadId?: string;
|
|
18477
|
-
resolver?:
|
|
18478
|
-
| {
|
|
18479
|
-
function: string;
|
|
18480
|
-
}
|
|
18481
|
-
| {
|
|
18482
|
-
endpoint: string;
|
|
18483
|
-
};
|
|
18484
|
-
title?:
|
|
18485
|
-
| string
|
|
18486
|
-
| {
|
|
18487
|
-
i18n: string;
|
|
18488
|
-
};
|
|
18489
|
-
title__i18n?: string;
|
|
18490
|
-
routePrefix: string;
|
|
18491
|
-
icon?: string;
|
|
18492
|
-
key: ModuleKeySchema;
|
|
18493
|
-
}
|
|
18494
|
-
| {
|
|
18495
|
-
resource: string;
|
|
18496
|
-
resolvedResourceEntry?: string;
|
|
18497
|
-
resourceUploadId?: string;
|
|
18498
|
-
resolver?:
|
|
18499
|
-
| {
|
|
18500
|
-
function: string;
|
|
18501
|
-
}
|
|
18502
|
-
| {
|
|
18503
|
-
endpoint: string;
|
|
18504
|
-
};
|
|
18505
|
-
render: 'default' | 'native';
|
|
18506
|
-
title?:
|
|
18507
|
-
| string
|
|
18508
|
-
| {
|
|
18509
|
-
i18n: string;
|
|
18510
|
-
};
|
|
18511
|
-
title__i18n?: string;
|
|
18512
|
-
routePrefix: string;
|
|
18513
|
-
icon?: string;
|
|
18514
|
-
key: ModuleKeySchema;
|
|
18515
|
-
}
|
|
18516
|
-
)[]
|
|
18517
|
-
];
|
|
18518
18428
|
'jira:globalPage'?: [
|
|
18519
18429
|
(
|
|
18520
18430
|
| {
|
package/out/text/errors.d.ts
CHANGED
|
@@ -103,11 +103,6 @@ export declare const errors: {
|
|
|
103
103
|
jiraActionValidator: {
|
|
104
104
|
limitPerActionType: (actionType: string, limit: number) => string;
|
|
105
105
|
};
|
|
106
|
-
jiraFullPageModule: {
|
|
107
|
-
invalidRouteRegex: (pattern: string, keyName: string, index: number) => string;
|
|
108
|
-
propertyUniqueness: (property: string, moduleKey: string, keys: string[]) => string;
|
|
109
|
-
invalidIcon: (icon: string, keyName: string, index: number) => string;
|
|
110
|
-
};
|
|
111
106
|
jiraGlobalBackgroundScript: {
|
|
112
107
|
experienceRequired: (key: string) => string;
|
|
113
108
|
experienceAllExclusive: (key: string) => string;
|
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":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK1C,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,SAA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,YAAY,MAAM;;;;mCAKjF,MAAM;;;CAQlC,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,SAAS,4BAA4B;IACrC,SAAS,4BAA4B;IACrC,UAAU,wBAAwB;IAClC,GAAG,8BAA8B;CAClC"}
|
package/out/text/errors.js
CHANGED
|
@@ -116,11 +116,6 @@ exports.errors = {
|
|
|
116
116
|
jiraActionValidator: {
|
|
117
117
|
limitPerActionType: (actionType, limit) => `Only ${limit} ${types_1.AllModuleTypes.JiraActionValidator} module is allowed per action type. Found multiple modules for action type: ${actionType}.`
|
|
118
118
|
},
|
|
119
|
-
jiraFullPageModule: {
|
|
120
|
-
invalidRouteRegex: (pattern, keyName, index) => `The routePrefix '${pattern}' at index '${index}' for key '${keyName}' needs to be in a valid URL route between 1-255 characters and contain only URL safe characters such as: a-z, 0-9 and '\' and '-'.`,
|
|
121
|
-
propertyUniqueness: (property, moduleKey, keys) => `${property} should be unique across all ${moduleKey} modules. Found duplicates: ${keys.join(', ')}`,
|
|
122
|
-
invalidIcon: (icon, keyName, index) => `The icon '${icon}' at index '${index}' for key '${keyName}' needs to be a defined resource of file type svg.`
|
|
123
|
-
},
|
|
124
119
|
jiraGlobalBackgroundScript: {
|
|
125
120
|
experienceRequired: (key) => `jira:globalBackgroundScript module '${key}' must have at least one value configured in experience.`,
|
|
126
121
|
experienceAllExclusive: (key) => `jira:globalBackgroundScript module '${key}' has 'all' in experience; when 'all' is configured, no other value should be configured in experience.`
|
|
@@ -68,7 +68,6 @@ export declare enum AllModuleTypes {
|
|
|
68
68
|
JiraSprintAction = "jira:sprintAction",
|
|
69
69
|
JiraCommand = "jira:command",
|
|
70
70
|
JiraGlobalBackgroundScript = "jira:globalBackgroundScript",
|
|
71
|
-
JiraFullPage = "jira:fullPage",
|
|
72
71
|
CompassAdminPage = "compass:adminPage",
|
|
73
72
|
CompassComponentPage = "compass:componentPage",
|
|
74
73
|
CompassGlobalPage = "compass:globalPage",
|
|
@@ -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,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,SAAS,eAAe;IACxB,YAAY,kBAAkB;IAC9B,gBAAgB,sBAAsB;IACtC,oBAAoB,0BAA0B;IAC9C,YAAY,kBAAkB;IAC9B,aAAa,mBAAmB;IAChC,UAAU,gBAAgB;IAC1B,WAAW,iBAAiB;IAC5B,OAAO,aAAa;IACpB,MAAM,qBAAqB;IAC3B,OAAO,aAAa;IACpB,gBAAgB,sBAAsB;IACtC,2BAA2B,iCAAiC;IAC5D,QAAQ,cAAc;IACtB,sBAAsB,4BAA4B;IAClD,gBAAgB,sBAAsB;IACtC,gBAAgB,sBAAsB;IACtC,0BAA0B,gCAAgC;IAE1D,0BAA0B,gCAAgC;IAC1D,uBAAuB,6BAA6B;IACpD,2BAA2B,iCAAiC;IAC5D,qBAAqB,2BAA2B;IAChD,uBAAuB,6BAA6B;IACpD,wBAAwB,8BAA8B;IACtD,oBAAoB,0BAA0B;IAC9C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,uBAAuB,6BAA6B;IACpD,0BAA0B,gCAAgC;IAC1D,oBAAoB,0BAA0B;IAC9C,kBAAkB,wBAAwB;IAC1C,yBAAyB,+BAA+B;IAExD,kBAAkB,wBAAwB;IAC1C,qBAAqB,2BAA2B;IAChD,qBAAqB,2BAA2B;IAChD,qBAAqB,2BAA2B;IAChD,wBAAwB,8BAA8B;IACtD,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,mBAAmB,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CAAkC;IAC7D,qCAAqC,4CAA4C;IACjF,sCAAsC,6CAA6C;IAEnF,8BAA8B,uBAAuB;IACrD,6BAA6B,sBAAsB;IACnD,6BAA6B,sBAAsB;IACnD,gCAAgC,yBAAyB;IACzD,wCAAwC,iCAAiC;IACzE,+BAA+B,wBAAwB;IACvD,2BAA2B,oBAAoB;IAC/C,wBAAwB,8BAA8B;IAEtD,SAAS,eAAe;IACxB,kBAAkB,wBAAwB;IAC1C,UAAU,gBAAgB;IAC1B,mBAAmB,yBAAyB;IAC5C,cAAc,oBAAoB;IAClC,UAAU,oBAAoB;IAC9B,SAAS,eAAe;IACxB,OAAO,aAAa;IAEpB,6BAA6B,mCAAmC;IAChE,6BAA6B,mCAAmC;IAChE,4BAA4B,kCAAkC;IAC9D,uBAAuB,6BAA6B;IACpD,4BAA4B,kCAAkC;IAC9D,wBAAwB,8BAA8B;IACtD,0BAA0B,gCAAgC;IAE1D,QAAQ,cAAc;IACtB,cAAc,oBAAoB;IAElC,sBAAsB,4BAA4B;IAElD,uBAAuB,6BAA6B;CACrD;AAGD,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAE7C,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
|
|
@@ -72,7 +72,6 @@ var AllModuleTypes;
|
|
|
72
72
|
AllModuleTypes["JiraSprintAction"] = "jira:sprintAction";
|
|
73
73
|
AllModuleTypes["JiraCommand"] = "jira:command";
|
|
74
74
|
AllModuleTypes["JiraGlobalBackgroundScript"] = "jira:globalBackgroundScript";
|
|
75
|
-
AllModuleTypes["JiraFullPage"] = "jira:fullPage";
|
|
76
75
|
AllModuleTypes["CompassAdminPage"] = "compass:adminPage";
|
|
77
76
|
AllModuleTypes["CompassComponentPage"] = "compass:componentPage";
|
|
78
77
|
AllModuleTypes["CompassGlobalPage"] = "compass:globalPage";
|
|
@@ -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;AAWxH,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,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;AAWxH,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AA4B3D,qBAAa,gBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAGzF,OAAO,CAAC,oBAAoB,CAAsE;IAE5F,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;IAwEpD,OAAO,CAAC,uBAAuB;IAO/B,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,4BAA4B;IAapC,OAAO,CAAC,uBAAuB;IAe/B,OAAO,CAAC,uBAAuB;IAiB/B,OAAO,CAAC,4BAA4B;IA0BpC,OAAO,CAAC,mBAAmB;IA2E3B,OAAO,CAAC,4BAA4B;IA2BpC,OAAO,CAAC,yBAAyB;CAoClC"}
|
|
@@ -17,7 +17,6 @@ const bitbucket_1 = require("./modules-validators/bitbucket");
|
|
|
17
17
|
const rovo_1 = require("./modules-validators/rovo");
|
|
18
18
|
const validate_workflow_1 = require("./modules-validators/jira/validate-workflow");
|
|
19
19
|
const validate_full_page_1 = require("./modules-validators/jira/validate-full-page");
|
|
20
|
-
const validate_full_page_module_1 = require("./modules-validators/jira/validate-full-page-module");
|
|
21
20
|
const validate_custom_field_1 = require("./modules-validators/jira/validate-custom-field");
|
|
22
21
|
const validate_trigger_1 = require("./modules-validators/jira/validate-trigger");
|
|
23
22
|
const validate_command_1 = require("./modules-validators/jira/validate-command");
|
|
@@ -40,7 +39,7 @@ class ModulesValidator {
|
|
|
40
39
|
let validationErrors = [...this.connectModuleValidation(manifest)];
|
|
41
40
|
if (manifest.typedContent.modules) {
|
|
42
41
|
const { typedContent: { modules, connectModules, remotes, permissions, services, providers }, yamlContentByLine, filePath } = manifest;
|
|
43
|
-
validationErrors = validationErrors.concat(this.checkUnsupportedModules(manifest.typedContent.modules, yamlContentByLine), this.functionKeyLength(modules, yamlContentByLine), this.minimumModuleCountValidation(modules, yamlContentByLine), this.functionKeyDefinedValidation(modules, yamlContentByLine), this.endpointValidations(modules, yamlContentByLine, remotes, permissions?.scopes || [], services), this.duplicateModuleKeyValidation(modules, connectModules || {}, yamlContentByLine), this.functionHandlerValidation(modules, yamlContentByLine, filePath, (0, utils_1.getHandlersDirectory)(manifest.typedContent)), (0, validate_workflow_1.validateJiraWorkflowValidator)(modules, yamlContentByLine), (0, validate_workflow_1.validateJiraWorkflowCondition)(modules, yamlContentByLine), (0, ui_modifications_1.validateUiModificationsModule)(modules, yamlContentByLine), (0, validate_full_admin_page_1.validateJiraFullAdminPage)(modules, yamlContentByLine), (0, validate_full_page_1.validateJiraFullPage)(modules, yamlContentByLine), (0,
|
|
42
|
+
validationErrors = validationErrors.concat(this.checkUnsupportedModules(manifest.typedContent.modules, yamlContentByLine), this.functionKeyLength(modules, yamlContentByLine), this.minimumModuleCountValidation(modules, yamlContentByLine), this.functionKeyDefinedValidation(modules, yamlContentByLine), this.endpointValidations(modules, yamlContentByLine, remotes, permissions?.scopes || [], services), this.duplicateModuleKeyValidation(modules, connectModules || {}, yamlContentByLine), this.functionHandlerValidation(modules, yamlContentByLine, filePath, (0, utils_1.getHandlersDirectory)(manifest.typedContent)), (0, validate_workflow_1.validateJiraWorkflowValidator)(modules, yamlContentByLine), (0, validate_workflow_1.validateJiraWorkflowCondition)(modules, yamlContentByLine), (0, ui_modifications_1.validateUiModificationsModule)(modules, yamlContentByLine), (0, validate_full_admin_page_1.validateJiraFullAdminPage)(modules, yamlContentByLine), (0, validate_full_page_1.validateJiraFullPage)(modules, yamlContentByLine), (0, validate_custom_field_1.validateJiraCustomField)(modules, yamlContentByLine), (0, confluence_1.validateConfluenceModules)(modules, yamlContentByLine), (0, bitbucket_1.validateBitbucketModules)(modules, yamlContentByLine), (0, validate_trigger_1.validateJiraTriggers)(modules, yamlContentByLine), (0, remote_1.validateRemoteModules)(modules, yamlContentByLine), (0, dataResidency_1.validateMigrationDataResidencyModule)(modules, remotes, yamlContentByLine), (0, validateModuleScopes_1.validateModuleScopes)(modules, yamlContentByLine, permissions), (0, rovo_1.validateRovoModules)(modules, (0, path_1.dirname)(filePath), yamlContentByLine), (0, automation_1.validateAutomationModules)(modules, yamlContentByLine), (0, validate_timetrackingprovider_module_1.validateJiraTimeTrackingModule)(modules, yamlContentByLine), (0, validate_command_1.validateJiraCommandModule)(modules, yamlContentByLine), (0, validate_action_validator_1.validateJiraActionValidator)(modules, yamlContentByLine), (0, validate_global_background_script_1.validateJiraGlobalBackgroundScript)(modules, yamlContentByLine), (0, graph_1.validateGraphModules)(modules, providers, yamlContentByLine), (0, dashboards_1.validateDashboardModules)(modules, yamlContentByLine), (0, validate_global_ui_1.validateGlobalUi)(modules, yamlContentByLine), (0, validate_global_full_page_1.validateGlobalFullPage)(modules, yamlContentByLine));
|
|
44
43
|
}
|
|
45
44
|
else {
|
|
46
45
|
const { typedContent: { connectModules }, yamlContentByLine } = manifest;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ValidationError } from '../../../types';
|
|
2
|
-
import { Modules } from '../../../schema/manifest';
|
|
3
|
-
export declare const validateJiraFullPageModule: (modules: Modules, yamlContentByLine?: string[]) => ValidationError[];
|
|
4
|
-
//# sourceMappingURL=validate-full-page-module.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-full-page-module.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/jira/validate-full-page-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjE,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAsDnD,eAAO,MAAM,0BAA0B,GAAI,SAAS,OAAO,EAAE,oBAAoB,MAAM,EAAE,KAAG,eAAe,EAuC1G,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateJiraFullPageModule = void 0;
|
|
4
|
-
const types_1 = require("../../../types");
|
|
5
|
-
const text_1 = require("../../../text");
|
|
6
|
-
const utils_1 = require("../../../utils");
|
|
7
|
-
const validateGlobalModules_1 = require("../../../utils/global/validateGlobalModules");
|
|
8
|
-
const ROUTE_FULL_PAGE = 'routePrefix';
|
|
9
|
-
const errorMessages = text_1.errors.modules.jiraFullPageModule;
|
|
10
|
-
const validatePropertyUniqueness = (allModules, moduleType, property, yamlContentByLine) => {
|
|
11
|
-
const validationErrors = [];
|
|
12
|
-
const modules = allModules[moduleType] || [];
|
|
13
|
-
const allPropertyValues = modules.map((module) => module[property]).filter((property) => property);
|
|
14
|
-
const duplicatePropertyValues = allPropertyValues.filter((property, index, all) => all.indexOf(property) !== index);
|
|
15
|
-
if (duplicatePropertyValues.length > 0) {
|
|
16
|
-
const allModulesWithDuplicatedPropertyValues = modules.filter((module) => module[property] === duplicatePropertyValues[0]);
|
|
17
|
-
validationErrors.push({
|
|
18
|
-
message: errorMessages.propertyUniqueness(property, moduleType, duplicatePropertyValues),
|
|
19
|
-
reference: text_1.References.Modules,
|
|
20
|
-
level: 'error',
|
|
21
|
-
...(0, utils_1.findPosition)(allModulesWithDuplicatedPropertyValues?.[0]?.key, yamlContentByLine)
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return validationErrors;
|
|
25
|
-
};
|
|
26
|
-
const validateJiraFullPageModule = (modules, yamlContentByLine) => {
|
|
27
|
-
const validationErrors = [];
|
|
28
|
-
const moduleType = types_1.AllModuleTypes.JiraFullPage;
|
|
29
|
-
const fullPageModules = modules[moduleType] || [];
|
|
30
|
-
validationErrors.push(...validatePropertyUniqueness(modules, moduleType, ROUTE_FULL_PAGE, yamlContentByLine));
|
|
31
|
-
if (validationErrors.length) {
|
|
32
|
-
return validationErrors;
|
|
33
|
-
}
|
|
34
|
-
fullPageModules.forEach((module, index) => {
|
|
35
|
-
validationErrors.push(...(0, validateGlobalModules_1.validateRoute)(module.key, module.routePrefix, index, errorMessages).map((error) => ({
|
|
36
|
-
message: error.message,
|
|
37
|
-
reference: text_1.References.Modules,
|
|
38
|
-
level: 'error',
|
|
39
|
-
...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
|
|
40
|
-
})), ...(module.icon
|
|
41
|
-
? (0, validateGlobalModules_1.validateIcon)(module.key, module.icon, index, errorMessages).map((error) => ({
|
|
42
|
-
message: error.message,
|
|
43
|
-
reference: text_1.References.Modules,
|
|
44
|
-
level: 'error',
|
|
45
|
-
...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
|
|
46
|
-
}))
|
|
47
|
-
: []));
|
|
48
|
-
});
|
|
49
|
-
return validationErrors;
|
|
50
|
-
};
|
|
51
|
-
exports.validateJiraFullPageModule = validateJiraFullPageModule;
|