@forge/manifest 12.3.1-next.0 → 12.4.0-next.2
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 +150 -20
- package/out/schema/manifest.d.ts +30 -2
- package/out/text/errors.d.ts +4 -0
- package/out/text/errors.d.ts.map +1 -1
- package/out/text/errors.js +4 -0
- package/out/validators/modules-validator.d.ts.map +1 -1
- package/out/validators/modules-validator.js +2 -1
- package/out/validators/modules-validators/jira/validate-global-background-script.d.ts +4 -0
- package/out/validators/modules-validators/jira/validate-global-background-script.d.ts.map +1 -0
- package/out/validators/modules-validators/jira/validate-global-background-script.js +34 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 12.4.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 06c240c: Update manifest definitions
|
|
8
|
+
|
|
9
|
+
## 12.4.0-next.1
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 34fc90d: Global background script milestone 2 release
|
|
14
|
+
|
|
3
15
|
## 12.3.1-next.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -2799,6 +2799,16 @@
|
|
|
2799
2799
|
"accelerator"
|
|
2800
2800
|
]
|
|
2801
2801
|
},
|
|
2802
|
+
"unlicensedAccess": {
|
|
2803
|
+
"type": "array",
|
|
2804
|
+
"items": {
|
|
2805
|
+
"type": "string",
|
|
2806
|
+
"enum": [
|
|
2807
|
+
"unlicensed",
|
|
2808
|
+
"anonymous"
|
|
2809
|
+
]
|
|
2810
|
+
}
|
|
2811
|
+
},
|
|
2802
2812
|
"key": {
|
|
2803
2813
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
2804
2814
|
}
|
|
@@ -2953,6 +2963,16 @@
|
|
|
2953
2963
|
"type": "string",
|
|
2954
2964
|
"default": "default"
|
|
2955
2965
|
},
|
|
2966
|
+
"unlicensedAccess": {
|
|
2967
|
+
"type": "array",
|
|
2968
|
+
"items": {
|
|
2969
|
+
"type": "string",
|
|
2970
|
+
"enum": [
|
|
2971
|
+
"unlicensed",
|
|
2972
|
+
"anonymous"
|
|
2973
|
+
]
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2956
2976
|
"key": {
|
|
2957
2977
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
2958
2978
|
}
|
|
@@ -3058,6 +3078,16 @@
|
|
|
3058
3078
|
"accelerator"
|
|
3059
3079
|
]
|
|
3060
3080
|
},
|
|
3081
|
+
"unlicensedAccess": {
|
|
3082
|
+
"type": "array",
|
|
3083
|
+
"items": {
|
|
3084
|
+
"type": "string",
|
|
3085
|
+
"enum": [
|
|
3086
|
+
"unlicensed",
|
|
3087
|
+
"anonymous"
|
|
3088
|
+
]
|
|
3089
|
+
}
|
|
3090
|
+
},
|
|
3061
3091
|
"key": {
|
|
3062
3092
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
3063
3093
|
}
|
|
@@ -3206,6 +3236,16 @@
|
|
|
3206
3236
|
"accelerator"
|
|
3207
3237
|
]
|
|
3208
3238
|
},
|
|
3239
|
+
"unlicensedAccess": {
|
|
3240
|
+
"type": "array",
|
|
3241
|
+
"items": {
|
|
3242
|
+
"type": "string",
|
|
3243
|
+
"enum": [
|
|
3244
|
+
"unlicensed",
|
|
3245
|
+
"anonymous"
|
|
3246
|
+
]
|
|
3247
|
+
}
|
|
3248
|
+
},
|
|
3209
3249
|
"render": {
|
|
3210
3250
|
"enum": [
|
|
3211
3251
|
"native",
|
|
@@ -3654,14 +3694,6 @@
|
|
|
3654
3694
|
"accelerator"
|
|
3655
3695
|
]
|
|
3656
3696
|
},
|
|
3657
|
-
"render": {
|
|
3658
|
-
"enum": [
|
|
3659
|
-
"native",
|
|
3660
|
-
"default"
|
|
3661
|
-
],
|
|
3662
|
-
"type": "string",
|
|
3663
|
-
"default": "default"
|
|
3664
|
-
},
|
|
3665
3697
|
"unlicensedAccess": {
|
|
3666
3698
|
"type": "array",
|
|
3667
3699
|
"items": {
|
|
@@ -3672,6 +3704,14 @@
|
|
|
3672
3704
|
]
|
|
3673
3705
|
}
|
|
3674
3706
|
},
|
|
3707
|
+
"render": {
|
|
3708
|
+
"enum": [
|
|
3709
|
+
"native",
|
|
3710
|
+
"default"
|
|
3711
|
+
],
|
|
3712
|
+
"type": "string",
|
|
3713
|
+
"default": "default"
|
|
3714
|
+
},
|
|
3675
3715
|
"key": {
|
|
3676
3716
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
3677
3717
|
}
|
|
@@ -4059,6 +4099,16 @@
|
|
|
4059
4099
|
"accelerator"
|
|
4060
4100
|
]
|
|
4061
4101
|
},
|
|
4102
|
+
"unlicensedAccess": {
|
|
4103
|
+
"type": "array",
|
|
4104
|
+
"items": {
|
|
4105
|
+
"type": "string",
|
|
4106
|
+
"enum": [
|
|
4107
|
+
"unlicensed",
|
|
4108
|
+
"anonymous"
|
|
4109
|
+
]
|
|
4110
|
+
}
|
|
4111
|
+
},
|
|
4062
4112
|
"key": {
|
|
4063
4113
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
4064
4114
|
}
|
|
@@ -4207,6 +4257,16 @@
|
|
|
4207
4257
|
"accelerator"
|
|
4208
4258
|
]
|
|
4209
4259
|
},
|
|
4260
|
+
"unlicensedAccess": {
|
|
4261
|
+
"type": "array",
|
|
4262
|
+
"items": {
|
|
4263
|
+
"type": "string",
|
|
4264
|
+
"enum": [
|
|
4265
|
+
"unlicensed",
|
|
4266
|
+
"anonymous"
|
|
4267
|
+
]
|
|
4268
|
+
}
|
|
4269
|
+
},
|
|
4210
4270
|
"render": {
|
|
4211
4271
|
"enum": [
|
|
4212
4272
|
"native",
|
|
@@ -5171,6 +5231,16 @@
|
|
|
5171
5231
|
}
|
|
5172
5232
|
]
|
|
5173
5233
|
},
|
|
5234
|
+
"unlicensedAccess": {
|
|
5235
|
+
"type": "array",
|
|
5236
|
+
"items": {
|
|
5237
|
+
"type": "string",
|
|
5238
|
+
"enum": [
|
|
5239
|
+
"unlicensed",
|
|
5240
|
+
"anonymous"
|
|
5241
|
+
]
|
|
5242
|
+
}
|
|
5243
|
+
},
|
|
5174
5244
|
"key": {
|
|
5175
5245
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5176
5246
|
}
|
|
@@ -5279,6 +5349,16 @@
|
|
|
5279
5349
|
"minLength": 1,
|
|
5280
5350
|
"maxLength": 255
|
|
5281
5351
|
},
|
|
5352
|
+
"unlicensedAccess": {
|
|
5353
|
+
"type": "array",
|
|
5354
|
+
"items": {
|
|
5355
|
+
"type": "string",
|
|
5356
|
+
"enum": [
|
|
5357
|
+
"unlicensed",
|
|
5358
|
+
"anonymous"
|
|
5359
|
+
]
|
|
5360
|
+
}
|
|
5361
|
+
},
|
|
5282
5362
|
"key": {
|
|
5283
5363
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5284
5364
|
}
|
|
@@ -5421,6 +5501,16 @@
|
|
|
5421
5501
|
"maxLength": 255,
|
|
5422
5502
|
"pattern": "^[a-zA-Z0-9-_]+$"
|
|
5423
5503
|
},
|
|
5504
|
+
"unlicensedAccess": {
|
|
5505
|
+
"type": "array",
|
|
5506
|
+
"items": {
|
|
5507
|
+
"type": "string",
|
|
5508
|
+
"enum": [
|
|
5509
|
+
"unlicensed",
|
|
5510
|
+
"anonymous"
|
|
5511
|
+
]
|
|
5512
|
+
}
|
|
5513
|
+
},
|
|
5424
5514
|
"key": {
|
|
5425
5515
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5426
5516
|
}
|
|
@@ -5588,6 +5678,16 @@
|
|
|
5588
5678
|
"default": false,
|
|
5589
5679
|
"description": "A flag indicating whether this custom content module was migrated from a Connect app."
|
|
5590
5680
|
},
|
|
5681
|
+
"unlicensedAccess": {
|
|
5682
|
+
"type": "array",
|
|
5683
|
+
"items": {
|
|
5684
|
+
"type": "string",
|
|
5685
|
+
"enum": [
|
|
5686
|
+
"unlicensed",
|
|
5687
|
+
"anonymous"
|
|
5688
|
+
]
|
|
5689
|
+
}
|
|
5690
|
+
},
|
|
5591
5691
|
"key": {
|
|
5592
5692
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5593
5693
|
}
|
|
@@ -5653,6 +5753,16 @@
|
|
|
5653
5753
|
"displayConditions": {
|
|
5654
5754
|
"type": "object"
|
|
5655
5755
|
},
|
|
5756
|
+
"unlicensedAccess": {
|
|
5757
|
+
"type": "array",
|
|
5758
|
+
"items": {
|
|
5759
|
+
"type": "string",
|
|
5760
|
+
"enum": [
|
|
5761
|
+
"unlicensed",
|
|
5762
|
+
"anonymous"
|
|
5763
|
+
]
|
|
5764
|
+
}
|
|
5765
|
+
},
|
|
5656
5766
|
"key": {
|
|
5657
5767
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5658
5768
|
}
|
|
@@ -5716,6 +5826,16 @@
|
|
|
5716
5826
|
"displayConditions": {
|
|
5717
5827
|
"type": "object"
|
|
5718
5828
|
},
|
|
5829
|
+
"unlicensedAccess": {
|
|
5830
|
+
"type": "array",
|
|
5831
|
+
"items": {
|
|
5832
|
+
"type": "string",
|
|
5833
|
+
"enum": [
|
|
5834
|
+
"unlicensed",
|
|
5835
|
+
"anonymous"
|
|
5836
|
+
]
|
|
5837
|
+
}
|
|
5838
|
+
},
|
|
5719
5839
|
"key": {
|
|
5720
5840
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5721
5841
|
}
|
|
@@ -5779,6 +5899,16 @@
|
|
|
5779
5899
|
"displayConditions": {
|
|
5780
5900
|
"type": "object"
|
|
5781
5901
|
},
|
|
5902
|
+
"unlicensedAccess": {
|
|
5903
|
+
"type": "array",
|
|
5904
|
+
"items": {
|
|
5905
|
+
"type": "string",
|
|
5906
|
+
"enum": [
|
|
5907
|
+
"unlicensed",
|
|
5908
|
+
"anonymous"
|
|
5909
|
+
]
|
|
5910
|
+
}
|
|
5911
|
+
},
|
|
5782
5912
|
"key": {
|
|
5783
5913
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5784
5914
|
}
|
|
@@ -5842,6 +5972,16 @@
|
|
|
5842
5972
|
"displayConditions": {
|
|
5843
5973
|
"type": "object"
|
|
5844
5974
|
},
|
|
5975
|
+
"unlicensedAccess": {
|
|
5976
|
+
"type": "array",
|
|
5977
|
+
"items": {
|
|
5978
|
+
"type": "string",
|
|
5979
|
+
"enum": [
|
|
5980
|
+
"unlicensed",
|
|
5981
|
+
"anonymous"
|
|
5982
|
+
]
|
|
5983
|
+
}
|
|
5984
|
+
},
|
|
5845
5985
|
"key": {
|
|
5846
5986
|
"$ref": "#/definitions/ModuleKeySchema"
|
|
5847
5987
|
}
|
|
@@ -9979,12 +10119,7 @@
|
|
|
9979
10119
|
"icon",
|
|
9980
10120
|
"title",
|
|
9981
10121
|
"key"
|
|
9982
|
-
]
|
|
9983
|
-
"not": {
|
|
9984
|
-
"required": [
|
|
9985
|
-
"unlicensedAccess"
|
|
9986
|
-
]
|
|
9987
|
-
}
|
|
10122
|
+
]
|
|
9988
10123
|
},
|
|
9989
10124
|
{
|
|
9990
10125
|
"type": "object",
|
|
@@ -10119,12 +10254,7 @@
|
|
|
10119
10254
|
"resource",
|
|
10120
10255
|
"title",
|
|
10121
10256
|
"key"
|
|
10122
|
-
]
|
|
10123
|
-
"not": {
|
|
10124
|
-
"required": [
|
|
10125
|
-
"unlicensedAccess"
|
|
10126
|
-
]
|
|
10127
|
-
}
|
|
10257
|
+
]
|
|
10128
10258
|
}
|
|
10129
10259
|
]
|
|
10130
10260
|
},
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -12747,6 +12747,7 @@ export interface Modules {
|
|
|
12747
12747
|
| string;
|
|
12748
12748
|
description__i18n?: string;
|
|
12749
12749
|
};
|
|
12750
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12750
12751
|
key: ModuleKeySchema;
|
|
12751
12752
|
[k: string]: unknown;
|
|
12752
12753
|
}
|
|
@@ -12783,6 +12784,7 @@ export interface Modules {
|
|
|
12783
12784
|
description__i18n?: string;
|
|
12784
12785
|
};
|
|
12785
12786
|
render?: 'native' | 'default';
|
|
12787
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12786
12788
|
key: ModuleKeySchema;
|
|
12787
12789
|
[k: string]: unknown;
|
|
12788
12790
|
}
|
|
@@ -12811,6 +12813,7 @@ export interface Modules {
|
|
|
12811
12813
|
| string;
|
|
12812
12814
|
description__i18n?: string;
|
|
12813
12815
|
};
|
|
12816
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12814
12817
|
key: ModuleKeySchema;
|
|
12815
12818
|
[k: string]: unknown;
|
|
12816
12819
|
}
|
|
@@ -12847,6 +12850,7 @@ export interface Modules {
|
|
|
12847
12850
|
description__i18n?: string;
|
|
12848
12851
|
};
|
|
12849
12852
|
render?: 'native' | 'default';
|
|
12853
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12850
12854
|
key: ModuleKeySchema;
|
|
12851
12855
|
[k: string]: unknown;
|
|
12852
12856
|
}
|
|
@@ -12877,6 +12881,7 @@ export interface Modules {
|
|
|
12877
12881
|
| string;
|
|
12878
12882
|
description__i18n?: string;
|
|
12879
12883
|
};
|
|
12884
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12880
12885
|
key: ModuleKeySchema;
|
|
12881
12886
|
[k: string]: unknown;
|
|
12882
12887
|
}
|
|
@@ -12912,6 +12917,7 @@ export interface Modules {
|
|
|
12912
12917
|
| string;
|
|
12913
12918
|
description__i18n?: string;
|
|
12914
12919
|
};
|
|
12920
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12915
12921
|
render?: 'native' | 'default';
|
|
12916
12922
|
key: ModuleKeySchema;
|
|
12917
12923
|
[k: string]: unknown;
|
|
@@ -12941,6 +12947,7 @@ export interface Modules {
|
|
|
12941
12947
|
| string;
|
|
12942
12948
|
description__i18n?: string;
|
|
12943
12949
|
};
|
|
12950
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12944
12951
|
key: ModuleKeySchema;
|
|
12945
12952
|
[k: string]: unknown;
|
|
12946
12953
|
}
|
|
@@ -12976,6 +12983,7 @@ export interface Modules {
|
|
|
12976
12983
|
| string;
|
|
12977
12984
|
description__i18n?: string;
|
|
12978
12985
|
};
|
|
12986
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
12979
12987
|
render?: 'native' | 'default';
|
|
12980
12988
|
key: ModuleKeySchema;
|
|
12981
12989
|
[k: string]: unknown;
|
|
@@ -13076,8 +13084,8 @@ export interface Modules {
|
|
|
13076
13084
|
| string;
|
|
13077
13085
|
description__i18n?: string;
|
|
13078
13086
|
};
|
|
13079
|
-
render?: 'native' | 'default';
|
|
13080
13087
|
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13088
|
+
render?: 'native' | 'default';
|
|
13081
13089
|
key: ModuleKeySchema;
|
|
13082
13090
|
}
|
|
13083
13091
|
),
|
|
@@ -13174,8 +13182,8 @@ export interface Modules {
|
|
|
13174
13182
|
| string;
|
|
13175
13183
|
description__i18n?: string;
|
|
13176
13184
|
};
|
|
13177
|
-
render?: 'native' | 'default';
|
|
13178
13185
|
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13186
|
+
render?: 'native' | 'default';
|
|
13179
13187
|
key: ModuleKeySchema;
|
|
13180
13188
|
}
|
|
13181
13189
|
)[]
|
|
@@ -13337,6 +13345,7 @@ export interface Modules {
|
|
|
13337
13345
|
| string;
|
|
13338
13346
|
description__i18n?: string;
|
|
13339
13347
|
};
|
|
13348
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13340
13349
|
key: ModuleKeySchema;
|
|
13341
13350
|
[k: string]: unknown;
|
|
13342
13351
|
}
|
|
@@ -13373,6 +13382,7 @@ export interface Modules {
|
|
|
13373
13382
|
| string;
|
|
13374
13383
|
description__i18n?: string;
|
|
13375
13384
|
};
|
|
13385
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13376
13386
|
render?: 'native' | 'default';
|
|
13377
13387
|
key: ModuleKeySchema;
|
|
13378
13388
|
[k: string]: unknown;
|
|
@@ -13404,6 +13414,7 @@ export interface Modules {
|
|
|
13404
13414
|
| string;
|
|
13405
13415
|
description__i18n?: string;
|
|
13406
13416
|
};
|
|
13417
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13407
13418
|
key: ModuleKeySchema;
|
|
13408
13419
|
[k: string]: unknown;
|
|
13409
13420
|
}
|
|
@@ -13440,6 +13451,7 @@ export interface Modules {
|
|
|
13440
13451
|
| string;
|
|
13441
13452
|
description__i18n?: string;
|
|
13442
13453
|
};
|
|
13454
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13443
13455
|
render?: 'native' | 'default';
|
|
13444
13456
|
key: ModuleKeySchema;
|
|
13445
13457
|
[k: string]: unknown;
|
|
@@ -13894,6 +13906,7 @@ export interface Modules {
|
|
|
13894
13906
|
| {
|
|
13895
13907
|
endpoint: string;
|
|
13896
13908
|
};
|
|
13909
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13897
13910
|
key: ModuleKeySchema;
|
|
13898
13911
|
}
|
|
13899
13912
|
| {
|
|
@@ -13915,6 +13928,7 @@ export interface Modules {
|
|
|
13915
13928
|
render: 'native' | 'default';
|
|
13916
13929
|
routePrefix: string;
|
|
13917
13930
|
icon?: string;
|
|
13931
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13918
13932
|
key: ModuleKeySchema;
|
|
13919
13933
|
}
|
|
13920
13934
|
),
|
|
@@ -13937,6 +13951,7 @@ export interface Modules {
|
|
|
13937
13951
|
| {
|
|
13938
13952
|
endpoint: string;
|
|
13939
13953
|
};
|
|
13954
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13940
13955
|
key: ModuleKeySchema;
|
|
13941
13956
|
}
|
|
13942
13957
|
| {
|
|
@@ -13958,6 +13973,7 @@ export interface Modules {
|
|
|
13958
13973
|
render: 'native' | 'default';
|
|
13959
13974
|
routePrefix: string;
|
|
13960
13975
|
icon?: string;
|
|
13976
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13961
13977
|
key: ModuleKeySchema;
|
|
13962
13978
|
}
|
|
13963
13979
|
)[]
|
|
@@ -13985,6 +14001,7 @@ export interface Modules {
|
|
|
13985
14001
|
indexing?: boolean;
|
|
13986
14002
|
preventDuplicateTitle?: boolean;
|
|
13987
14003
|
function: string;
|
|
14004
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
13988
14005
|
key: ModuleKeySchema;
|
|
13989
14006
|
}
|
|
13990
14007
|
| {
|
|
@@ -14017,6 +14034,7 @@ export interface Modules {
|
|
|
14017
14034
|
* A flag indicating whether this custom content module was migrated from a Connect app.
|
|
14018
14035
|
*/
|
|
14019
14036
|
migratedFromConnect?: boolean;
|
|
14037
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14020
14038
|
key: ModuleKeySchema;
|
|
14021
14039
|
}
|
|
14022
14040
|
),
|
|
@@ -14042,6 +14060,7 @@ export interface Modules {
|
|
|
14042
14060
|
indexing?: boolean;
|
|
14043
14061
|
preventDuplicateTitle?: boolean;
|
|
14044
14062
|
function: string;
|
|
14063
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14045
14064
|
key: ModuleKeySchema;
|
|
14046
14065
|
}
|
|
14047
14066
|
| {
|
|
@@ -14074,6 +14093,7 @@ export interface Modules {
|
|
|
14074
14093
|
* A flag indicating whether this custom content module was migrated from a Connect app.
|
|
14075
14094
|
*/
|
|
14076
14095
|
migratedFromConnect?: boolean;
|
|
14096
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14077
14097
|
key: ModuleKeySchema;
|
|
14078
14098
|
}
|
|
14079
14099
|
)[]
|
|
@@ -14092,6 +14112,7 @@ export interface Modules {
|
|
|
14092
14112
|
displayConditions?: {
|
|
14093
14113
|
[k: string]: unknown;
|
|
14094
14114
|
};
|
|
14115
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14095
14116
|
key: ModuleKeySchema;
|
|
14096
14117
|
[k: string]: unknown;
|
|
14097
14118
|
}
|
|
@@ -14108,6 +14129,7 @@ export interface Modules {
|
|
|
14108
14129
|
displayConditions?: {
|
|
14109
14130
|
[k: string]: unknown;
|
|
14110
14131
|
};
|
|
14132
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14111
14133
|
key: ModuleKeySchema;
|
|
14112
14134
|
[k: string]: unknown;
|
|
14113
14135
|
}
|
|
@@ -14125,6 +14147,7 @@ export interface Modules {
|
|
|
14125
14147
|
displayConditions?: {
|
|
14126
14148
|
[k: string]: unknown;
|
|
14127
14149
|
};
|
|
14150
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14128
14151
|
key: ModuleKeySchema;
|
|
14129
14152
|
[k: string]: unknown;
|
|
14130
14153
|
}
|
|
@@ -14141,6 +14164,7 @@ export interface Modules {
|
|
|
14141
14164
|
displayConditions?: {
|
|
14142
14165
|
[k: string]: unknown;
|
|
14143
14166
|
};
|
|
14167
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14144
14168
|
key: ModuleKeySchema;
|
|
14145
14169
|
[k: string]: unknown;
|
|
14146
14170
|
}
|
|
@@ -14160,6 +14184,7 @@ export interface Modules {
|
|
|
14160
14184
|
displayConditions?: {
|
|
14161
14185
|
[k: string]: unknown;
|
|
14162
14186
|
};
|
|
14187
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14163
14188
|
key: ModuleKeySchema;
|
|
14164
14189
|
[k: string]: unknown;
|
|
14165
14190
|
}
|
|
@@ -14176,6 +14201,7 @@ export interface Modules {
|
|
|
14176
14201
|
displayConditions?: {
|
|
14177
14202
|
[k: string]: unknown;
|
|
14178
14203
|
};
|
|
14204
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14179
14205
|
key: ModuleKeySchema;
|
|
14180
14206
|
[k: string]: unknown;
|
|
14181
14207
|
}
|
|
@@ -14193,6 +14219,7 @@ export interface Modules {
|
|
|
14193
14219
|
displayConditions?: {
|
|
14194
14220
|
[k: string]: unknown;
|
|
14195
14221
|
};
|
|
14222
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14196
14223
|
key: ModuleKeySchema;
|
|
14197
14224
|
[k: string]: unknown;
|
|
14198
14225
|
}
|
|
@@ -14209,6 +14236,7 @@ export interface Modules {
|
|
|
14209
14236
|
displayConditions?: {
|
|
14210
14237
|
[k: string]: unknown;
|
|
14211
14238
|
};
|
|
14239
|
+
unlicensedAccess?: ('unlicensed' | 'anonymous')[];
|
|
14212
14240
|
key: ModuleKeySchema;
|
|
14213
14241
|
[k: string]: unknown;
|
|
14214
14242
|
}
|
package/out/text/errors.d.ts
CHANGED
|
@@ -106,6 +106,10 @@ export declare const errors: {
|
|
|
106
106
|
propertyUniqueness: (property: string, moduleKey: string, keys: string[]) => string;
|
|
107
107
|
invalidIcon: (icon: string, keyName: string, index: number) => string;
|
|
108
108
|
};
|
|
109
|
+
jiraGlobalBackgroundScript: {
|
|
110
|
+
experienceRequired: (key: string) => string;
|
|
111
|
+
experienceAllExclusive: (key: string) => string;
|
|
112
|
+
};
|
|
109
113
|
moduleScopesValidator: {
|
|
110
114
|
missingScopes: (moduleType: AllModuleTypes, key: string, scopes: string[]) => string;
|
|
111
115
|
};
|
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,oBAA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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
|
@@ -120,6 +120,10 @@ exports.errors = {
|
|
|
120
120
|
propertyUniqueness: (property, moduleKey, keys) => `${property} should be unique across all ${moduleKey} modules. Found duplicates: ${keys.join(', ')}`,
|
|
121
121
|
invalidIcon: (icon, keyName, index) => `The icon '${icon}' at index '${index}' for key '${keyName}' needs to be a defined resource of file type svg.`
|
|
122
122
|
},
|
|
123
|
+
jiraGlobalBackgroundScript: {
|
|
124
|
+
experienceRequired: (key) => `jira:globalBackgroundScript module '${key}' must have at least one value configured in experience.`,
|
|
125
|
+
experienceAllExclusive: (key) => `jira:globalBackgroundScript module '${key}' has 'all' in experience; when 'all' is configured, no other value should be configured in experience.`
|
|
126
|
+
},
|
|
123
127
|
moduleScopesValidator: {
|
|
124
128
|
missingScopes: (moduleType, key, scopes) => `${moduleType} module '${key}' requires '${scopes.join(', ')}' scope(s).`
|
|
125
129
|
},
|
|
@@ -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;AASxH,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;AASxH,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AA0B3D,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;IAiEpD,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;CAkClC"}
|
|
@@ -22,6 +22,7 @@ const validate_custom_field_1 = require("./modules-validators/jira/validate-cust
|
|
|
22
22
|
const validate_trigger_1 = require("./modules-validators/jira/validate-trigger");
|
|
23
23
|
const validate_command_1 = require("./modules-validators/jira/validate-command");
|
|
24
24
|
const validate_action_validator_1 = require("./modules-validators/jira/validate-action-validator");
|
|
25
|
+
const validate_global_background_script_1 = require("./modules-validators/jira/validate-global-background-script");
|
|
25
26
|
const automation_1 = require("./modules-validators/automation");
|
|
26
27
|
const graph_1 = require("./modules-validators/graph");
|
|
27
28
|
class ModulesValidator {
|
|
@@ -36,7 +37,7 @@ class ModulesValidator {
|
|
|
36
37
|
let validationErrors = [...this.connectModuleValidation(manifest)];
|
|
37
38
|
if (manifest.typedContent.modules) {
|
|
38
39
|
const { typedContent: { modules, connectModules, remotes, permissions, services, providers }, yamlContentByLine, filePath } = manifest;
|
|
39
|
-
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, 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_full_page_module_1.validateJiraFullPageModule)(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, 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, graph_1.validateGraphModules)(modules, providers, yamlContentByLine));
|
|
40
|
+
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, 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_full_page_module_1.validateJiraFullPageModule)(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, 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));
|
|
40
41
|
}
|
|
41
42
|
else {
|
|
42
43
|
const { typedContent: { connectModules }, yamlContentByLine } = manifest;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Modules } from '../../../schema/manifest';
|
|
2
|
+
import { ValidationError } from '../../../types';
|
|
3
|
+
export declare function validateJiraGlobalBackgroundScript(modules: Modules, yamlContentByLine: string[] | undefined): ValidationError[];
|
|
4
|
+
//# sourceMappingURL=validate-global-background-script.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-global-background-script.d.ts","sourceRoot":"","sources":["../../../../src/validators/modules-validators/jira/validate-global-background-script.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIjD,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,MAAM,EAAE,GAAG,SAAS,GACtC,eAAe,EAAE,CA8BnB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateJiraGlobalBackgroundScript = void 0;
|
|
4
|
+
const text_1 = require("../../../text");
|
|
5
|
+
const utils_1 = require("../../../utils");
|
|
6
|
+
function validateJiraGlobalBackgroundScript(modules, yamlContentByLine) {
|
|
7
|
+
const validationErrors = [];
|
|
8
|
+
const entries = modules['jira:globalBackgroundScript'];
|
|
9
|
+
if (!entries)
|
|
10
|
+
return [];
|
|
11
|
+
entries.forEach((module) => {
|
|
12
|
+
const experience = module.experience;
|
|
13
|
+
if (!experience || !Array.isArray(experience) || experience.length === 0) {
|
|
14
|
+
validationErrors.push({
|
|
15
|
+
message: text_1.errors.modules.jiraGlobalBackgroundScript.experienceRequired(module.key),
|
|
16
|
+
reference: text_1.References.Modules,
|
|
17
|
+
level: 'error',
|
|
18
|
+
...(0, utils_1.findPosition)(module.key, yamlContentByLine)
|
|
19
|
+
});
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const hasAll = experience.includes('all');
|
|
23
|
+
if (hasAll && experience.length > 1) {
|
|
24
|
+
validationErrors.push({
|
|
25
|
+
message: text_1.errors.modules.jiraGlobalBackgroundScript.experienceAllExclusive(module.key),
|
|
26
|
+
reference: text_1.References.Modules,
|
|
27
|
+
level: 'error',
|
|
28
|
+
...(0, utils_1.findPosition)(module.key, yamlContentByLine)
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return validationErrors;
|
|
33
|
+
}
|
|
34
|
+
exports.validateJiraGlobalBackgroundScript = validateJiraGlobalBackgroundScript;
|