@forge/manifest 11.1.0-next.7 → 11.1.0-next.8

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 11.1.0-next.8
4
+
5
+ ### Minor Changes
6
+
7
+ - c50eeb5: Added manifest validation for XPA with full page modules
8
+ - beefc94: Added linting for jira:fullPage
9
+
3
10
  ## 11.1.0-next.7
4
11
 
5
12
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;gBAC1E,WAAW,EAAE,WAAW;CA2BrC"}
1
+ {"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;gBAC1E,WAAW,EAAE,WAAW;CA4BrC"}
@@ -40,7 +40,8 @@ class FullValidationProcessor extends abstract_validation_processor_1.AbstractVa
40
40
  new remote_regions_validator_1.RemoteRegionsValidator(),
41
41
  new remote_auth_scopes_validator_1.RemoteAuthScopesValidator(),
42
42
  new runtime_version_validator_1.RuntimeVersionValidator(lintOptions),
43
- new llm_validator_1.LLMValidator()
43
+ new llm_validator_1.LLMValidator(),
44
+ new validators_1.CompatibilityValidator()
44
45
  ]);
45
46
  }
46
47
  }
@@ -11358,6 +11358,223 @@
11358
11358
  },
11359
11359
  "minItems": 1
11360
11360
  },
11361
+ "jira:fullPage": {
11362
+ "type": "array",
11363
+ "items": {
11364
+ "oneOf": [
11365
+ {
11366
+ "type": "object",
11367
+ "additionalProperties": false,
11368
+ "properties": {
11369
+ "resource": {
11370
+ "type": "string",
11371
+ "minLength": 1,
11372
+ "maxLength": 23,
11373
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
11374
+ },
11375
+ "resourceUploadId": {
11376
+ "type": "string",
11377
+ "minLength": 1,
11378
+ "maxLength": 255
11379
+ },
11380
+ "resolver": {
11381
+ "anyOf": [
11382
+ {
11383
+ "additionalProperties": false,
11384
+ "type": "object",
11385
+ "properties": {
11386
+ "function": {
11387
+ "type": "string",
11388
+ "minLength": 1,
11389
+ "maxLength": 255,
11390
+ "pattern": "^[a-zA-Z0-9-_]+$"
11391
+ }
11392
+ },
11393
+ "required": [
11394
+ "function"
11395
+ ]
11396
+ },
11397
+ {
11398
+ "additionalProperties": false,
11399
+ "type": "object",
11400
+ "properties": {
11401
+ "endpoint": {
11402
+ "type": "string",
11403
+ "minLength": 1,
11404
+ "maxLength": 255,
11405
+ "pattern": "^[a-zA-Z0-9-_]+$"
11406
+ }
11407
+ },
11408
+ "required": [
11409
+ "endpoint"
11410
+ ]
11411
+ }
11412
+ ]
11413
+ },
11414
+ "title": {
11415
+ "anyOf": [
11416
+ {
11417
+ "type": "string",
11418
+ "minLength": 1,
11419
+ "maxLength": 255
11420
+ },
11421
+ {
11422
+ "additionalProperties": false,
11423
+ "type": "object",
11424
+ "properties": {
11425
+ "i18n": {
11426
+ "type": "string",
11427
+ "minLength": 1,
11428
+ "maxLength": 300,
11429
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
11430
+ }
11431
+ },
11432
+ "required": [
11433
+ "i18n"
11434
+ ]
11435
+ }
11436
+ ]
11437
+ },
11438
+ "title__i18n": {
11439
+ "type": "string",
11440
+ "minLength": 1,
11441
+ "maxLength": 300,
11442
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
11443
+ },
11444
+ "routePrefix": {
11445
+ "type": "string",
11446
+ "minLength": 1,
11447
+ "maxLength": 255,
11448
+ "pattern": "^[a-z0-9\\-]+$"
11449
+ },
11450
+ "key": {
11451
+ "$ref": "#/definitions/ModuleKeySchema"
11452
+ }
11453
+ },
11454
+ "required": [
11455
+ "resource",
11456
+ "routePrefix",
11457
+ "key"
11458
+ ],
11459
+ "not": {
11460
+ "required": [
11461
+ "unlicensedAccess"
11462
+ ]
11463
+ }
11464
+ },
11465
+ {
11466
+ "type": "object",
11467
+ "additionalProperties": false,
11468
+ "properties": {
11469
+ "resource": {
11470
+ "type": "string",
11471
+ "minLength": 1,
11472
+ "maxLength": 23,
11473
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
11474
+ },
11475
+ "resourceUploadId": {
11476
+ "type": "string",
11477
+ "minLength": 1,
11478
+ "maxLength": 255
11479
+ },
11480
+ "resolver": {
11481
+ "anyOf": [
11482
+ {
11483
+ "additionalProperties": false,
11484
+ "type": "object",
11485
+ "properties": {
11486
+ "function": {
11487
+ "type": "string",
11488
+ "minLength": 1,
11489
+ "maxLength": 255,
11490
+ "pattern": "^[a-zA-Z0-9-_]+$"
11491
+ }
11492
+ },
11493
+ "required": [
11494
+ "function"
11495
+ ]
11496
+ },
11497
+ {
11498
+ "additionalProperties": false,
11499
+ "type": "object",
11500
+ "properties": {
11501
+ "endpoint": {
11502
+ "type": "string",
11503
+ "minLength": 1,
11504
+ "maxLength": 255,
11505
+ "pattern": "^[a-zA-Z0-9-_]+$"
11506
+ }
11507
+ },
11508
+ "required": [
11509
+ "endpoint"
11510
+ ]
11511
+ }
11512
+ ]
11513
+ },
11514
+ "render": {
11515
+ "default": "default",
11516
+ "enum": [
11517
+ "default",
11518
+ "native"
11519
+ ],
11520
+ "type": "string"
11521
+ },
11522
+ "title": {
11523
+ "anyOf": [
11524
+ {
11525
+ "type": "string",
11526
+ "minLength": 1,
11527
+ "maxLength": 255
11528
+ },
11529
+ {
11530
+ "additionalProperties": false,
11531
+ "type": "object",
11532
+ "properties": {
11533
+ "i18n": {
11534
+ "type": "string",
11535
+ "minLength": 1,
11536
+ "maxLength": 300,
11537
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
11538
+ }
11539
+ },
11540
+ "required": [
11541
+ "i18n"
11542
+ ]
11543
+ }
11544
+ ]
11545
+ },
11546
+ "title__i18n": {
11547
+ "type": "string",
11548
+ "minLength": 1,
11549
+ "maxLength": 300,
11550
+ "pattern": "^[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)*$"
11551
+ },
11552
+ "routePrefix": {
11553
+ "type": "string",
11554
+ "minLength": 1,
11555
+ "maxLength": 255,
11556
+ "pattern": "^[a-z0-9\\-]+$"
11557
+ },
11558
+ "key": {
11559
+ "$ref": "#/definitions/ModuleKeySchema"
11560
+ }
11561
+ },
11562
+ "required": [
11563
+ "resource",
11564
+ "render",
11565
+ "routePrefix",
11566
+ "key"
11567
+ ],
11568
+ "not": {
11569
+ "required": [
11570
+ "unlicensedAccess"
11571
+ ]
11572
+ }
11573
+ }
11574
+ ]
11575
+ },
11576
+ "minItems": 1
11577
+ },
11361
11578
  "jira:globalPage": {
11362
11579
  "type": "array",
11363
11580
  "items": {
@@ -16876,6 +16876,90 @@ export interface Modules {
16876
16876
  }
16877
16877
  )[]
16878
16878
  ];
16879
+ 'jira:fullPage'?: [
16880
+ (
16881
+ | {
16882
+ resource: string;
16883
+ resourceUploadId?: string;
16884
+ resolver?:
16885
+ | {
16886
+ function: string;
16887
+ }
16888
+ | {
16889
+ endpoint: string;
16890
+ };
16891
+ title?:
16892
+ | string
16893
+ | {
16894
+ i18n: string;
16895
+ };
16896
+ title__i18n?: string;
16897
+ routePrefix: string;
16898
+ key: ModuleKeySchema;
16899
+ }
16900
+ | {
16901
+ resource: string;
16902
+ resourceUploadId?: string;
16903
+ resolver?:
16904
+ | {
16905
+ function: string;
16906
+ }
16907
+ | {
16908
+ endpoint: string;
16909
+ };
16910
+ render: 'default' | 'native';
16911
+ title?:
16912
+ | string
16913
+ | {
16914
+ i18n: string;
16915
+ };
16916
+ title__i18n?: string;
16917
+ routePrefix: string;
16918
+ key: ModuleKeySchema;
16919
+ }
16920
+ ),
16921
+ ...(
16922
+ | {
16923
+ resource: string;
16924
+ resourceUploadId?: string;
16925
+ resolver?:
16926
+ | {
16927
+ function: string;
16928
+ }
16929
+ | {
16930
+ endpoint: string;
16931
+ };
16932
+ title?:
16933
+ | string
16934
+ | {
16935
+ i18n: string;
16936
+ };
16937
+ title__i18n?: string;
16938
+ routePrefix: string;
16939
+ key: ModuleKeySchema;
16940
+ }
16941
+ | {
16942
+ resource: string;
16943
+ resourceUploadId?: string;
16944
+ resolver?:
16945
+ | {
16946
+ function: string;
16947
+ }
16948
+ | {
16949
+ endpoint: string;
16950
+ };
16951
+ render: 'default' | 'native';
16952
+ title?:
16953
+ | string
16954
+ | {
16955
+ i18n: string;
16956
+ };
16957
+ title__i18n?: string;
16958
+ routePrefix: string;
16959
+ key: ModuleKeySchema;
16960
+ }
16961
+ )[]
16962
+ ];
16879
16963
  'jira:globalPage'?: [
16880
16964
  (
16881
16965
  | {
@@ -98,6 +98,10 @@ export declare const errors: {
98
98
  incompatibleModules: (otherModules: string[]) => string;
99
99
  tooManyModules: (totalModules: number, limit: number) => string;
100
100
  };
101
+ jiraFullPageModule: {
102
+ invalidRouteRegex: (pattern: string, keyName: string, index: number) => string;
103
+ propertyUniqueness: (property: string, moduleKey: string, keys: string[]) => string;
104
+ };
101
105
  moduleScopesValidator: {
102
106
  missingScopes: (moduleType: AllModuleTypes, key: string, scopes: string[]) => string;
103
107
  };
@@ -204,6 +208,10 @@ export declare const errors: {
204
208
  missing: (glob: string) => string;
205
209
  };
206
210
  };
211
+ compatibility: {
212
+ invalidConfluenceModuleInJira: () => string;
213
+ invalidJiraModuleInConfluence: () => string;
214
+ };
207
215
  };
208
216
  translations: {
209
217
  missingTranslationsJsonFile: (languageLocaleCode: ForgeSupportedLocaleCode) => string;
@@ -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;AAG1C,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,mBAAmB,MAAM,KAAG,MAAM;mDAIvC,MAAM,KAAG,MAAM;4BAEtC,MAAM,EAAE,GAAG,SAAS,KAAG,MAAM;+CAIV,MAAM;6CACR,MAAM,gBAAgB,MAAM;qCAEpC,MAAM;2CACA,MAAM;6CACJ,MAAM;;;qCAGd,MAAM,SAAS,MAAM,KAAG,MAAM;4CAEvB,MAAM,SAAS,MAAM,KAAG,MAAM;oDAEtB,MAAM,OAAO,MAAM,KAAG,MAAM;kDAE9B,MAAM,OAAO,MAAM,KAAG,MAAM;wCAEtC,MAAM,SAAS,MAAM,EAAE,KAAG,MAAM;0CAI9B,MAAM;2CAEL,MAAM,KAAG,MAAM;0CAEhB,MAAM,SAAS,MAAM,KAAG,MAAM;+CAEzB,MAAM,KAAG,MAAM;gCAE9B,MAAM,KAAG,MAAM;;;uCAIR,MAAM,KAAG,MAAM;0CACZ,MAAM,KAAG,MAAM;;;gCAGzB,MAAM,KAAG,MAAM;6BACpB,MAAM;+BACJ,MA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MAAM;2CAEJ,MAAM,eAAe,MAAM,KAAG,MAAM;kCAE7C,MAAM,UAAU,MAAM,KAAG,MAAM;;;uCAI5B,MAAM;uCAEJ,MAAM,KAAG,MAAM;qCAEnB,MAAM;;6CAGA,MAAM;;;mDAIE,MAAM,KAAG,MAAM;iDAEnB,MAAM;;;;4CAKX,MAAM,SAAS,MAAM,KAAG,MAAM;4CAE9B,MAAM,KAAG,MAAM;4CACf,MAAM,SAAS,MAAM,KAAG,MAAM;+CAE3B,MAAM,aAAa,MAAM,SAAS,MAAM,KAAG,MAAM;yCAEvD,MAAM,SAAS,MAAM,KAAG,MAAM;4CAE3B,MAAM,SAAS,MAAM,KAAG,MAAM;gDAE1B,MAAM,aAAa,MAAM,KAAG,MAAM;4CAEtC,MAAM,SAAS,MAAM,KAAG,MAAM;;;;;gCAM1C,MAAM;;;;;;;;;0DAWwB,wBAAwB,KAAG,MAAM;sDAErC,wBAAwB,KAAG,MAAM;kDAErC,wBAAwB,QAAQ,MAAM,KAAG,MAAM;mDAE9C,wBAAwB,KAAG,MAAM;mCAEjD,MAAM,KAAG,MAAM;;oDAEE,MAAM,aAAa,MAAM,KAAG,MAAM;4CAE1C,MAAM,sBAAsB,wBAAwB,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"}
@@ -110,6 +110,10 @@ exports.errors = {
110
110
  incompatibleModules: (otherModules) => `${types_1.AllModuleTypes.JiraActionValidator} modules can only be declared with page modules and core functions. Found incompatible modules: ${otherModules.join(', ')}.`,
111
111
  tooManyModules: (totalModules, limit) => `Apps with ${types_1.AllModuleTypes.JiraActionValidator} modules can declare up to ${limit} additional modules. Found ${totalModules} total modules.`
112
112
  },
113
+ jiraFullPageModule: {
114
+ 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 '-'.`,
115
+ propertyUniqueness: (property, moduleKey, keys) => `${property} should be unique across all ${moduleKey} modules. Found duplicates: ${keys.join(', ')}`
116
+ },
113
117
  moduleScopesValidator: {
114
118
  missingScopes: (moduleType, key, scopes) => `${moduleType} module '${key}' requires '${scopes.join(', ')}' scope(s).`
115
119
  },
@@ -215,6 +219,10 @@ exports.errors = {
215
219
  extraFiles: {
216
220
  missing: (glob) => `Extra files specification '${glob}' does not match any files.`
217
221
  }
222
+ },
223
+ compatibility: {
224
+ invalidConfluenceModuleInJira: () => 'Using the module `confluence:fullPage` is invalid when the required product is Jira. Full page modules must match the required product. Use `jira:fullPage` as the module type, or change the required product to Confluence in your manifest.yml compatibility settings.',
225
+ invalidJiraModuleInConfluence: () => 'Using the module `jira:fullPage` is invalid when the required product is Confluence. Full page modules must match the required product. Use `confluence:fullPage` as the module type, or change the required product to Jira in your manifest.yml compatibility settings.'
218
226
  }
219
227
  },
220
228
  translations: {
@@ -62,6 +62,7 @@ export declare enum AllModuleTypes {
62
62
  JiraSprintAction = "jira:sprintAction",
63
63
  JiraCommand = "jira:command",
64
64
  JiraGlobalBackgroundScript = "jira:globalBackgroundScript",
65
+ JiraFullPage = "jira:fullPage",
65
66
  CompassAdminPage = "compass:adminPage",
66
67
  CompassComponentPage = "compass:componentPage",
67
68
  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,oBA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sCAAsC;IACrE,sBAAsB,6BAA6B;IACnD,2BAA2B,kCAAkC;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;IAE9B,6BAA6B,mCAAmC;IAChE,6BAA6B,mCAAmC;IAChE,4BAA4B,kCAAkC;IAC9D,uBAAuB,6BAA6B;IACpD,4BAA4B,kCAAkC;CAC/D;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
@@ -66,6 +66,7 @@ var AllModuleTypes;
66
66
  AllModuleTypes["JiraSprintAction"] = "jira:sprintAction";
67
67
  AllModuleTypes["JiraCommand"] = "jira:command";
68
68
  AllModuleTypes["JiraGlobalBackgroundScript"] = "jira:globalBackgroundScript";
69
+ AllModuleTypes["JiraFullPage"] = "jira:fullPage";
69
70
  AllModuleTypes["CompassAdminPage"] = "compass:adminPage";
70
71
  AllModuleTypes["CompassComponentPage"] = "compass:componentPage";
71
72
  AllModuleTypes["CompassGlobalPage"] = "compass:globalPage";
@@ -0,0 +1,6 @@
1
+ import { ManifestObject, ManifestValidationResult } from '../types';
2
+ import { ValidatorInterface } from './validator-interface';
3
+ export declare class CompatibilityValidator implements ValidatorInterface<ManifestObject<any> | undefined, any> {
4
+ validate(manifest: ManifestObject<any> | undefined): Promise<ManifestValidationResult<any>>;
5
+ }
6
+ //# sourceMappingURL=compatibility-validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibility-validator.d.ts","sourceRoot":"","sources":["../../src/validators/compatibility-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAK3D,qBAAa,sBAAuB,YAAW,kBAAkB,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,EAAE,GAAG,CAAC;IAC/F,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;CA2ClG"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CompatibilityValidator = void 0;
4
+ const text_1 = require("../text");
5
+ const text_2 = require("../text");
6
+ const utils_1 = require("../utils");
7
+ class CompatibilityValidator {
8
+ async validate(manifest) {
9
+ if (!manifest || !manifest.typedContent || !manifest.filePath) {
10
+ return {
11
+ success: false,
12
+ manifestObject: manifest
13
+ };
14
+ }
15
+ const validationErrors = [];
16
+ const modules = manifest.typedContent.modules || {};
17
+ const compatibility = manifest.typedContent.app?.compatibility || {};
18
+ const isJiraPrimary = compatibility.jira?.required === true;
19
+ const isConfluencePrimary = compatibility.confluence?.required === true;
20
+ const moduleKeys = Object.keys(modules);
21
+ if (isJiraPrimary && moduleKeys.some((key) => key === 'confluence:fullPage')) {
22
+ validationErrors.push({
23
+ message: text_1.errors.app.compatibility.invalidConfluenceModuleInJira(),
24
+ reference: text_2.References.SchemaError,
25
+ level: 'error',
26
+ ...(0, utils_1.findPosition)('confluence:fullPage:', manifest.yamlContentByLine)
27
+ });
28
+ }
29
+ if (isConfluencePrimary && moduleKeys.some((key) => key === 'jira:fullPage')) {
30
+ validationErrors.push({
31
+ message: text_1.errors.app.compatibility.invalidJiraModuleInConfluence(),
32
+ reference: text_2.References.SchemaError,
33
+ level: 'error',
34
+ ...(0, utils_1.findPosition)('jira:fullPage', manifest.yamlContentByLine)
35
+ });
36
+ }
37
+ return {
38
+ success: validationErrors.length === 0,
39
+ manifestObject: manifest,
40
+ errors: validationErrors
41
+ };
42
+ }
43
+ }
44
+ exports.CompatibilityValidator = CompatibilityValidator;
@@ -15,4 +15,5 @@ export * from './connect-authentication-validator';
15
15
  export * from './entity-property-validator';
16
16
  export * from './package-validator';
17
17
  export * from './translations-validator';
18
+ export * from './compatibility-validator';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC"}
@@ -18,3 +18,4 @@ tslib_1.__exportStar(require("./connect-authentication-validator"), exports);
18
18
  tslib_1.__exportStar(require("./entity-property-validator"), exports);
19
19
  tslib_1.__exportStar(require("./package-validator"), exports);
20
20
  tslib_1.__exportStar(require("./translations-validator"), exports);
21
+ tslib_1.__exportStar(require("./compatibility-validator"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EAKzB,MAAM,UAAU,CAAC;AASlB,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAwB3D,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;IA8DpD,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;IA+H3B,OAAO,CAAC,4BAA4B;IA2BpC,OAAO,CAAC,yBAAyB;CAkClC"}
1
+ {"version":3,"file":"modules-validator.d.ts","sourceRoot":"","sources":["../../src/validators/modules-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,wBAAwB,EAKzB,MAAM,UAAU,CAAC;AASlB,OAAO,EAEL,cAAc,EAMf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAyB3D,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;IA+DpD,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;IA+H3B,OAAO,CAAC,4BAA4B;IA2BpC,OAAO,CAAC,yBAAyB;CAkClC"}
@@ -17,6 +17,7 @@ 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");
20
21
  const validate_custom_field_1 = require("./modules-validators/jira/validate-custom-field");
21
22
  const validate_trigger_1 = require("./modules-validators/jira/validate-trigger");
22
23
  const validate_command_1 = require("./modules-validators/jira/validate-command");
@@ -35,7 +36,7 @@ class ModulesValidator {
35
36
  let validationErrors = [...this.connectModuleValidation(manifest)];
36
37
  if (manifest.typedContent.modules) {
37
38
  const { typedContent: { modules, connectModules, remotes, permissions, services }, yamlContentByLine, filePath } = manifest;
38
- 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_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));
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));
39
40
  }
40
41
  else {
41
42
  const { typedContent: { connectModules }, yamlContentByLine } = manifest;
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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;AAoFnD,eAAO,MAAM,0BAA0B,YAAa,OAAO,sBAAsB,MAAM,EAAE,KAAG,eAAe,EA4B1G,CAAC"}
@@ -0,0 +1,57 @@
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 VALID_ROUTE_PATTERN = new RegExp(/^[a-z0-9\\-]+$/);
8
+ const ROUTE_FULL_PAGE = 'routePrefix';
9
+ const errorMessages = text_1.errors.modules.jiraFullPageModule;
10
+ const mapToFullPageError = (validationErrors, moduleKey) => validationErrors.map((message) => ({ moduleKey, message }));
11
+ const validateRegex = (pattern, moduleKey, index) => {
12
+ const validationErrors = [];
13
+ if (!VALID_ROUTE_PATTERN.test(pattern)) {
14
+ validationErrors.push(errorMessages.invalidRouteRegex(pattern, moduleKey, index));
15
+ }
16
+ return validationErrors;
17
+ };
18
+ const validateRoute = (moduleKey, pattern, index) => {
19
+ const validationErrors = [];
20
+ validationErrors.push(...validateRegex(pattern, moduleKey, index));
21
+ return mapToFullPageError(validationErrors, moduleKey);
22
+ };
23
+ const validatePropertyUniqueness = (allModules, moduleType, property, yamlContentByLine) => {
24
+ const validationErrors = [];
25
+ const modules = allModules[moduleType] || [];
26
+ const allPropertyValues = modules.map((module) => module[property]).filter((property) => property);
27
+ const duplicatePropertyValues = allPropertyValues.filter((property, index, all) => all.indexOf(property) !== index);
28
+ if (duplicatePropertyValues.length > 0) {
29
+ const allModulesWithDuplicatedPropertyValues = modules.filter((module) => module[property] === duplicatePropertyValues[0]);
30
+ validationErrors.push({
31
+ message: text_1.errors.modules.jiraFullPageModule.propertyUniqueness(property, moduleType, duplicatePropertyValues),
32
+ reference: text_1.References.Modules,
33
+ level: 'error',
34
+ ...(0, utils_1.findPosition)(allModulesWithDuplicatedPropertyValues?.[0]?.key, yamlContentByLine)
35
+ });
36
+ }
37
+ return validationErrors;
38
+ };
39
+ const validateJiraFullPageModule = (modules, yamlContentByLine) => {
40
+ const validationErrors = [];
41
+ const moduleType = types_1.AllModuleTypes.JiraFullPage;
42
+ const fullPageModules = modules[moduleType] || [];
43
+ validationErrors.push(...validatePropertyUniqueness(modules, moduleType, ROUTE_FULL_PAGE, yamlContentByLine));
44
+ if (validationErrors.length) {
45
+ return validationErrors;
46
+ }
47
+ fullPageModules.forEach((module, index) => {
48
+ validationErrors.push(...validateRoute(module.key, module.routePrefix, index).map((error) => ({
49
+ message: error.message,
50
+ reference: text_1.References.Modules,
51
+ level: 'error',
52
+ ...(0, utils_1.findPosition)(error.moduleKey, yamlContentByLine)
53
+ })));
54
+ });
55
+ return validationErrors;
56
+ };
57
+ exports.validateJiraFullPageModule = validateJiraFullPageModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "11.1.0-next.7",
3
+ "version": "11.1.0-next.8",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {