@forge/manifest 0.0.0-experimental-64caa5a → 0.0.0-experimental-7c72fec

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +99 -6
  2. package/out/index.d.ts +1 -1
  3. package/out/index.d.ts.map +1 -1
  4. package/out/mapping/product-event-to-scope-mapping.json +8 -8
  5. package/out/processor/full-validation-processor.d.ts.map +1 -1
  6. package/out/processor/full-validation-processor.js +3 -0
  7. package/out/schema/basic-manifest-schema.json +9 -0
  8. package/out/schema/basic-manifest.d.ts +4 -0
  9. package/out/schema/manifest-schema.json +814 -919
  10. package/out/schema/manifest.d.ts +941 -911
  11. package/out/scopes/deprecated-shipyard-scopes.json +24 -0
  12. package/out/scopes/shipyard-scopes.json +47 -69
  13. package/out/text/errors.d.ts +2 -0
  14. package/out/text/errors.d.ts.map +1 -1
  15. package/out/text/errors.js +4 -2
  16. package/out/types/module-types.d.ts +8 -0
  17. package/out/types/module-types.d.ts.map +1 -1
  18. package/out/types/module-types.js +8 -0
  19. package/out/validators/connect-authentication-validator.d.ts +7 -0
  20. package/out/validators/connect-authentication-validator.d.ts.map +1 -0
  21. package/out/validators/connect-authentication-validator.js +27 -0
  22. package/out/validators/deprecated-permissions-validator.d.ts +7 -0
  23. package/out/validators/deprecated-permissions-validator.d.ts.map +1 -0
  24. package/out/validators/deprecated-permissions-validator.js +31 -0
  25. package/out/validators/index.d.ts +1 -0
  26. package/out/validators/index.d.ts.map +1 -1
  27. package/out/validators/index.js +1 -0
  28. package/out/validators/permissions-validator.d.ts.map +1 -1
  29. package/out/validators/permissions-validator.js +14 -8
  30. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,35 +1,128 @@
1
1
  # @forge/manifest
2
2
 
3
- ## 0.0.0-experimental-64caa5a
3
+ ## 0.0.0-experimental-7c72fec
4
+
5
+ ### Major Changes
6
+
7
+ - c145946: Add following Jira Service Management modules:
8
+ - jiraServiceManagement:organizationPanel module
9
+ - jiraServiceManagement:portalHeader module
10
+ - jiraServiceManagement:portalSubheader module
11
+ - jiraServiceManagement:portalFooter module
12
+ - jiraServiceManagement:portalRequestDetail module
13
+ - jiraServiceManagement:portalRequestDetailPanel module
14
+ - jiraServiceManagement:queuePage module
15
+
16
+ ### Minor Changes
17
+
18
+ - 7c72fec: Add jiraServiceManagement:portalUserMenuAction module
19
+ - 813f8f3: Add remotes to external auth config
20
+
21
+ ### Patch Changes
22
+
23
+ - 8ee1c58: Update manifest definitions
24
+ - 5152239: Update manifest definitions
25
+
26
+ ## 3.1.0-next.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 813f8f3: Add remotes to external auth config
31
+
32
+ ### Patch Changes
33
+
34
+ - 5152239: Update manifest definitions
35
+
36
+ ## 3.0.0
37
+
38
+ ### Major Changes
39
+
40
+ - 4cfa56d: make bearerMethod mandatory in external auth config
4
41
 
5
42
  ### Minor Changes
6
43
 
7
44
  - bd6e025: Add confluence:globalPage module
45
+ - 1c196ff: Add support for external fetch client to reference remote
46
+ - 218fe20: Added an optional connect.authentication property to indicate how the harmonized forge app will be authenticating with tenant API's - using "jwt" or "oauth2". If not specified it defaults to "jwt".
47
+ - 2bca1c0: Show a warning message during forge lint if manifest has deprecated permission scope
8
48
  - 0a39c43: Updating forge-manifest to include new Compass Metric scopes
9
49
 
10
50
  ### Patch Changes
11
51
 
12
- - a0a2c5b: Reverting new granular scopes for custom field related product events as the release date of granular scope is delayed by 2 weeks
52
+ - 271b98a: add new, granular scopes for custom field related product events
13
53
  - 22a488e: Add avi:jira:updated:field:context:configuration product event for scope mapping
14
- - 62089be: Reverting warning message for deprecated non granular scopes as the release date of granular scope is delayed by 2 weeks
15
54
  - 689c09b: Update manifest definitions
16
55
  - b97660c: Update manifest definitions
17
56
  - 7c0d2ee: Update manifest definitions
18
- - 06209fc: Update manifest definitions
57
+ - 1dba082: Update manifest definitions
19
58
  - d3afe01: Update manifest definitions
20
59
  - dfe9dd8: Update manifest definitions
21
60
  - 91ea057: Update manifest definitions
22
61
  - 3010f0e: Update manifest definitions
23
62
  - 2b7c32b: Update manifest definitions
63
+ - e7ee3a7: Update manifest definitions
24
64
  - 92d081d: Update manifest definitions
25
65
  - d3c8c8d: Update manifest definitions
66
+ - fca240d: Update manifest definitions
26
67
  - 36c7c8f: Update manifest definitions
27
68
  - d2f6992: Update manifest definitions
28
- - a017696: Update manifest definitions
69
+ - d18c9f1: Update manifest definitions
70
+ - 1dba082: Update manifest definitions
71
+ - fa963b1: Update manifest definitions
29
72
  - 0a7725f: Update manifest definitions
30
- - af1473c: Update manifest definitions
73
+ - 1dba082: Update manifest definitions
31
74
  - e4a14c7: Update manifest definitions
32
75
  - 2bb89c5: Update manifest definitions
76
+ - 5875eb3: Update manifest definitions
77
+
78
+ ## 3.0.0-next.21
79
+
80
+ ### Major Changes
81
+
82
+ - 4cfa56d: make bearerMethod mandatory in external auth config
83
+
84
+ ### Patch Changes
85
+
86
+ - fca240d: Update manifest definitions
87
+
88
+ ## 2.6.0-next.20
89
+
90
+ ### Minor Changes
91
+
92
+ - 2bca1c0: Show a warning message during forge lint if manifest has deprecated permission scope
93
+
94
+ ### Patch Changes
95
+
96
+ - 271b98a: add new, granular scopes for custom field related product events
97
+
98
+ ## 2.6.0-next.19
99
+
100
+ ### Patch Changes
101
+
102
+ - d18c9f1: Update manifest definitions
103
+ - 5875eb3: Update manifest definitions
104
+
105
+ ## 2.6.0-next.18
106
+
107
+ ### Minor Changes
108
+
109
+ - 1c196ff: Add support for external fetch client to reference remote
110
+
111
+ ### Patch Changes
112
+
113
+ - e7ee3a7: Update manifest definitions
114
+
115
+ ## 2.6.0-next.17
116
+
117
+ ### Patch Changes
118
+
119
+ - fa963b1: Update manifest definitions
120
+
121
+ ## 2.6.0-next.16
122
+
123
+ ### Minor Changes
124
+
125
+ - 218fe20: Added an optional connect.authentication property to indicate how the harmonized forge app will be authenticating with tenant API's - using "jwt" or "oauth2". If not specified it defaults to "jwt".
33
126
 
34
127
  ## 2.6.0-next.15
35
128
 
package/out/index.d.ts CHANGED
@@ -7,6 +7,6 @@ export * from './text';
7
7
  export * from './types';
8
8
  export * from './utils';
9
9
  export * from './validators';
10
- export { Modules, ManifestSchema, App, Resources, Permissions, Remotes } from './schema/manifest';
10
+ export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch } from './schema/manifest';
11
11
  export declare const validate: (basic?: boolean, manifest?: string | undefined) => ManifestValidationResult<ManifestSchema | BasicManifestSchema>;
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAElG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAmB,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAG9D,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAEzG,eAAO,MAAM,QAAQ,+BAET,MAAM,GAAG,SAAS,KAC3B,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAK/D,CAAC"}
@@ -45,49 +45,49 @@
45
45
  {
46
46
  "productEvent": "avi:jira:created:field",
47
47
  "oAuthScopes": [
48
- "manage:jira-configuration"
48
+ "read:field:jira"
49
49
  ]
50
50
  },
51
51
  {
52
52
  "productEvent": "avi:jira:updated:field",
53
53
  "oAuthScopes": [
54
- "manage:jira-configuration"
54
+ "read:field:jira"
55
55
  ]
56
56
  },
57
57
  {
58
58
  "productEvent": "avi:jira:trashed:field",
59
59
  "oAuthScopes": [
60
- "manage:jira-configuration"
60
+ "read:field:jira"
61
61
  ]
62
62
  },
63
63
  {
64
64
  "productEvent": "avi:jira:deleted:field",
65
65
  "oAuthScopes": [
66
- "manage:jira-configuration"
66
+ "read:field:jira"
67
67
  ]
68
68
  },
69
69
  {
70
70
  "productEvent": "avi:jira:restored:field",
71
71
  "oAuthScopes": [
72
- "manage:jira-configuration"
72
+ "read:field:jira"
73
73
  ]
74
74
  },
75
75
  {
76
76
  "productEvent": "avi:jira:created:field:context",
77
77
  "oAuthScopes": [
78
- "manage:jira-configuration"
78
+ "read:field:jira"
79
79
  ]
80
80
  },
81
81
  {
82
82
  "productEvent": "avi:jira:updated:field:context",
83
83
  "oAuthScopes": [
84
- "manage:jira-configuration"
84
+ "read:field:jira"
85
85
  ]
86
86
  },
87
87
  {
88
88
  "productEvent": "avi:jira:deleted:field:context",
89
89
  "oAuthScopes": [
90
- "manage:jira-configuration"
90
+ "read:field:jira"
91
91
  ]
92
92
  },
93
93
  {
@@ -1 +1 @@
1
- {"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAevF"}
1
+ {"version":3,"file":"full-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/full-validation-processor.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,qBAAa,uBAAwB,SAAQ,2BAA2B,CAAC,cAAc,CAAC;;CAiBvF"}
@@ -6,6 +6,7 @@ const validators_1 = require("../validators");
6
6
  const FULL_SCHEMA = tslib_1.__importStar(require("../schema/manifest-schema.json"));
7
7
  const DISPLAY_CONDITIONS_SCHEMA = tslib_1.__importStar(require("../schema/display-conditions-schema.json"));
8
8
  const abstract_validation_processor_1 = require("./abstract-validation-processor");
9
+ const deprecated_permissions_validator_1 = require("../validators/deprecated-permissions-validator");
9
10
  class FullValidationProcessor extends abstract_validation_processor_1.AbstractValidationProcessor {
10
11
  constructor() {
11
12
  super([
@@ -16,7 +17,9 @@ class FullValidationProcessor extends abstract_validation_processor_1.AbstractVa
16
17
  new validators_1.ConnectModulesValidator(),
17
18
  new validators_1.ResourcesValidator(),
18
19
  new validators_1.ConnectRemoteValidator(),
20
+ new validators_1.ConnectAuthenticationValidator(),
19
21
  new validators_1.PermissionsValidator(),
22
+ new deprecated_permissions_validator_1.DeprecatedPermissionsValidator(),
20
23
  new validators_1.DisplayConditionsValidator(DISPLAY_CONDITIONS_SCHEMA),
21
24
  new validators_1.ProvidersValidator()
22
25
  ]);
@@ -69,6 +69,15 @@
69
69
  "description": "A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.",
70
70
  "pattern": "^[a-zA-Z0-9_-]+$",
71
71
  "maxLength": 23
72
+ },
73
+ "authentication": {
74
+ "description": "The type of authentication used to communicate with tenant APIs",
75
+ "type": "string",
76
+ "default": "jwt",
77
+ "enum": [
78
+ "jwt",
79
+ "oauth2"
80
+ ]
72
81
  }
73
82
  }
74
83
  }
@@ -58,4 +58,8 @@ export interface Connect {
58
58
  * A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.
59
59
  */
60
60
  remote?: string;
61
+ /**
62
+ * The type of authentication used to communicate with tenant APIs
63
+ */
64
+ authentication?: 'jwt' | 'oauth2';
61
65
  }