@forge/manifest 0.0.0-experimental-c3effe3 → 0.0.0-experimental-fbe27f8

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 (67) hide show
  1. package/CHANGELOG.md +120 -1
  2. package/out/index.d.ts +1 -1
  3. package/out/index.d.ts.map +1 -1
  4. package/out/index.js +4 -6
  5. package/out/mapping/product-event-to-scope-mapping.json +42 -0
  6. package/out/processor/abstract-validation-processor.d.ts +1 -1
  7. package/out/processor/abstract-validation-processor.d.ts.map +1 -1
  8. package/out/processor/abstract-validation-processor.js +10 -5
  9. package/out/processor/processor-interface.d.ts +1 -1
  10. package/out/processor/processor-interface.d.ts.map +1 -1
  11. package/out/schema/manifest-schema.json +1045 -116
  12. package/out/schema/manifest.d.ts +524 -21
  13. package/out/scopes/index.d.ts +1 -1
  14. package/out/scopes/index.d.ts.map +1 -1
  15. package/out/scopes/index.js +1 -1
  16. package/out/text/errors.d.ts +4 -0
  17. package/out/text/errors.d.ts.map +1 -1
  18. package/out/text/errors.js +4 -0
  19. package/out/types/module-types.d.ts +9 -1
  20. package/out/types/module-types.d.ts.map +1 -1
  21. package/out/types/module-types.js +8 -0
  22. package/out/validators/connect-authentication-validator.d.ts +1 -1
  23. package/out/validators/connect-authentication-validator.d.ts.map +1 -1
  24. package/out/validators/connect-authentication-validator.js +1 -1
  25. package/out/validators/connect-modules-validator.d.ts +1 -1
  26. package/out/validators/connect-modules-validator.d.ts.map +1 -1
  27. package/out/validators/connect-modules-validator.js +1 -1
  28. package/out/validators/connect-remote-validator.d.ts +1 -1
  29. package/out/validators/connect-remote-validator.d.ts.map +1 -1
  30. package/out/validators/connect-remote-validator.js +1 -1
  31. package/out/validators/display-conditions-validator.d.ts +1 -1
  32. package/out/validators/display-conditions-validator.d.ts.map +1 -1
  33. package/out/validators/display-conditions-validator.js +1 -1
  34. package/out/validators/entity-property-validator.d.ts +1 -1
  35. package/out/validators/entity-property-validator.d.ts.map +1 -1
  36. package/out/validators/entity-property-validator.js +1 -1
  37. package/out/validators/file-validator.d.ts +1 -1
  38. package/out/validators/file-validator.d.ts.map +1 -1
  39. package/out/validators/file-validator.js +1 -1
  40. package/out/validators/modules-validator.d.ts +1 -1
  41. package/out/validators/modules-validator.d.ts.map +1 -1
  42. package/out/validators/modules-validator.js +4 -7
  43. package/out/validators/modules-validators/confluence/validateKeyboardShortcuts.d.ts.map +1 -1
  44. package/out/validators/modules-validators/jira/validate-full-admin-page.d.ts +4 -0
  45. package/out/validators/modules-validators/jira/validate-full-admin-page.d.ts.map +1 -0
  46. package/out/validators/modules-validators/jira/validate-full-admin-page.js +62 -0
  47. package/out/validators/permissions-validator.d.ts +1 -1
  48. package/out/validators/permissions-validator.d.ts.map +1 -1
  49. package/out/validators/permissions-validator.js +1 -1
  50. package/out/validators/product-trigger-scopes-validator.d.ts +1 -1
  51. package/out/validators/product-trigger-scopes-validator.d.ts.map +1 -1
  52. package/out/validators/product-trigger-scopes-validator.js +4 -4
  53. package/out/validators/providers-validator.d.ts +1 -1
  54. package/out/validators/providers-validator.d.ts.map +1 -1
  55. package/out/validators/providers-validator.js +1 -1
  56. package/out/validators/resources-validator.d.ts +1 -1
  57. package/out/validators/resources-validator.d.ts.map +1 -1
  58. package/out/validators/resources-validator.js +1 -1
  59. package/out/validators/schema-validator.d.ts +1 -1
  60. package/out/validators/schema-validator.d.ts.map +1 -1
  61. package/out/validators/schema-validator.js +1 -1
  62. package/out/validators/validator-interface.d.ts +1 -1
  63. package/out/validators/validator-interface.d.ts.map +1 -1
  64. package/out/validators/yaml-validator.d.ts +1 -1
  65. package/out/validators/yaml-validator.d.ts.map +1 -1
  66. package/out/validators/yaml-validator.js +1 -1
  67. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,125 @@
1
1
  # @forge/manifest
2
2
 
3
- ## 0.0.0-experimental-c3effe3
3
+ ## 0.0.0-experimental-fbe27f8
4
+
5
+ ### Major Changes
6
+
7
+ - 6728c67: Make validator interface asynchronous
8
+
9
+ ### Minor Changes
10
+
11
+ - c0c88f0: BCAT-1386 Remove scopes mapping for bitbucket repo created event
12
+
13
+ ### Patch Changes
14
+
15
+ - c1c93a4: Update manifest definitions
16
+ - b1684fd: Update manifest definitions
17
+
18
+ ## 4.0.0-next.5
19
+
20
+ ### Minor Changes
21
+
22
+ - c0c88f09: BCAT-1386 Remove scopes mapping for bitbucket repo created event
23
+
24
+ ## 4.0.0-next.4
25
+
26
+ ### Patch Changes
27
+
28
+ - b1684fd: Update manifest definitions
29
+
30
+ ## 4.0.0-next.3
31
+
32
+ ### Major Changes
33
+
34
+ - 6728c67: Make validator interface asynchronous
35
+
36
+ ## 3.11.0-next.2
37
+
38
+ ### Minor Changes
39
+
40
+ - 0da5775: Add following Jira Service Management modules:
41
+
42
+ - jiraServiceManagement:portalRequestCreatePropertyPanel module
43
+
44
+ ## 3.11.0-next.1
45
+
46
+ ### Minor Changes
47
+
48
+ - acf78b58: BCAT-1386 Add scopes mapping for bitbucket repo created event
49
+
50
+ ## 3.10.1-next.0
51
+
52
+ ### Patch Changes
53
+
54
+ - c1c93a4: Update manifest definitions
55
+
56
+ ## 3.10.0
57
+
58
+ ### Minor Changes
59
+
60
+ - f890e0e: Enabling jira permission modules
61
+ - 9298536: Added manifest schema changes for KeyboardShortcuts in Confluence Forge modules.
62
+
63
+ ### Patch Changes
64
+
65
+ - 02aefee: Verify Automation for Confluence extension points
66
+ - d486898: Add new product events for issue links
67
+ - ee8d860: Update manifest definitions
68
+ - 2ae0afe: Update manifest definitions
69
+ - 91daffc: Update manifest definitions
70
+ - 7558a5d: Update manifest definitions
71
+ - f543a47: Update manifest definitions
72
+ - 8876b96: Update manifest definitions
73
+
74
+ ## 3.10.0-next.6
75
+
76
+ ### Patch Changes
77
+
78
+ - ee8d860: Update manifest definitions
79
+
80
+ ## 3.10.0-next.5
81
+
82
+ ### Patch Changes
83
+
84
+ - 8876b96: Update manifest definitions
85
+
86
+ ## 3.10.0-next.4
87
+
88
+ ### Minor Changes
89
+
90
+ - 9298536: Added manifest schema changes for KeyboardShortcuts in Confluence Forge modules.
91
+
92
+ ## 3.10.0-next.3
93
+
94
+ ### Minor Changes
95
+
96
+ - f890e0e: Enabling jira permission modules
97
+
98
+ ### Patch Changes
99
+
100
+ - d486898: Add new product events for issue links
101
+ - 91daffc: Update manifest definitions
102
+
103
+ ## 3.9.1-next.2
104
+
105
+ ### Patch Changes
106
+
107
+ - 7558a5d9: Update manifest definitions
108
+
109
+ ## 3.9.1-next.1
110
+
111
+ ### Patch Changes
112
+
113
+ - 02aefee: Verify Automation for Confluence extension points
114
+ - f543a47: Update manifest definitions
115
+
116
+ ## 3.9.1-next.0
117
+
118
+ ### Patch Changes
119
+
120
+ - 2ae0afe: Update manifest definitions
121
+
122
+ ## 3.9.0
4
123
 
5
124
  ### Minor Changes
6
125
 
package/out/index.d.ts CHANGED
@@ -9,5 +9,5 @@ export * from './types';
9
9
  export * from './utils';
10
10
  export * from './validators';
11
11
  export { Modules, ManifestSchema, App, Resources, Permissions, Remotes, Fetch } from './schema/manifest';
12
- export declare const validate: (basic?: boolean, manifest?: string | undefined) => ManifestValidationResult<ManifestSchema | BasicManifestSchema>;
12
+ export declare const validate: (basic?: boolean, manifest?: string | undefined) => Promise<ManifestValidationResult<ManifestSchema | BasicManifestSchema>>;
13
13
  //# 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,UAAU,CAAC;AACzB,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"}
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,UAAU,CAAC;AACzB,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,OAAO,CAAC,wBAAwB,CAAC,cAAc,GAAG,mBAAmB,CAAC,CAInD,CAAC"}
package/out/index.js CHANGED
@@ -11,9 +11,7 @@ tslib_1.__exportStar(require("./text"), exports);
11
11
  tslib_1.__exportStar(require("./types"), exports);
12
12
  tslib_1.__exportStar(require("./utils"), exports);
13
13
  tslib_1.__exportStar(require("./validators"), exports);
14
- exports.validate = (basic = false, manifest = undefined) => {
15
- return builder_1.ProcessorBuilder.instance()
16
- .withValidation(basic ? types_1.ValidationTypes.BASIC : types_1.ValidationTypes.FULL)
17
- .build()
18
- .process(manifest);
19
- };
14
+ exports.validate = (basic = false, manifest = undefined) => builder_1.ProcessorBuilder.instance()
15
+ .withValidation(basic ? types_1.ValidationTypes.BASIC : types_1.ValidationTypes.FULL)
16
+ .build()
17
+ .process(manifest);
@@ -106,6 +106,48 @@
106
106
  ]
107
107
  }
108
108
  },
109
+ {
110
+ "productEvent": "avi:jira:created:issuelink",
111
+ "oAuthScopes": {
112
+ "beta": [
113
+ "read:field:jira",
114
+ "read:issue-link-type:jira",
115
+ "read:issue:jira",
116
+ "read:issue-type:jira",
117
+ "read:priority:jira",
118
+ "read:status:jira",
119
+ "read:avatar:jira",
120
+ "read:issue.time-tracking:jira",
121
+ "read:project-category:jira",
122
+ "read:project:jira",
123
+ "read:user:jira"
124
+ ],
125
+ "current": [
126
+ "read:jira-work"
127
+ ]
128
+ }
129
+ },
130
+ {
131
+ "productEvent": "avi:jira:deleted:issuelink",
132
+ "oAuthScopes": {
133
+ "beta": [
134
+ "read:field:jira",
135
+ "read:issue-link-type:jira",
136
+ "read:issue:jira",
137
+ "read:issue-type:jira",
138
+ "read:priority:jira",
139
+ "read:status:jira",
140
+ "read:avatar:jira",
141
+ "read:issue.time-tracking:jira",
142
+ "read:project-category:jira",
143
+ "read:project:jira",
144
+ "read:user:jira"
145
+ ],
146
+ "current": [
147
+ "read:jira-work"
148
+ ]
149
+ }
150
+ },
109
151
  {
110
152
  "productEvent": "avi:jira:created:field",
111
153
  "oAuthScopes": {
@@ -4,6 +4,6 @@ import { ValidatorInterface } from '../validators';
4
4
  export declare abstract class AbstractValidationProcessor<T> implements ProcessorInterface<T> {
5
5
  protected readonly validators: ValidatorInterface<any | undefined, T>[];
6
6
  protected constructor(validators: ValidatorInterface<any | undefined, T>[]);
7
- process(manifest: string | undefined): ManifestValidationResult<T>;
7
+ process(manifest: string | undefined): Promise<ManifestValidationResult<T>>;
8
8
  }
9
9
  //# sourceMappingURL=abstract-validation-processor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"abstract-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/abstract-validation-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,8BAAsB,2BAA2B,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAA7F,SAAS,aAAgC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAE7F,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,wBAAwB,CAAC,CAAC,CAAC;CAcnE"}
1
+ {"version":3,"file":"abstract-validation-processor.d.ts","sourceRoot":"","sources":["../../src/processor/abstract-validation-processor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,8BAAsB,2BAA2B,CAAC,CAAC,CAAE,YAAW,kBAAkB,CAAC,CAAC,CAAC;IAC7D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAA7F,SAAS,aAAgC,UAAU,EAAE,kBAAkB,CAAC,GAAG,GAAG,SAAS,EAAE,CAAC,CAAC,EAAE;IAEvF,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;CAkBlF"}
@@ -5,15 +5,20 @@ class AbstractValidationProcessor {
5
5
  constructor(validators) {
6
6
  this.validators = validators;
7
7
  }
8
- process(manifest) {
9
- return this.validators.reduce((results, validator) => {
10
- const stepResults = validator.validate(results.manifestObject ? results.manifestObject : manifest);
11
- return {
8
+ async process(manifest) {
9
+ var _a;
10
+ let results = {
11
+ success: true
12
+ };
13
+ for (const validator of this.validators) {
14
+ const stepResults = await validator.validate((_a = results.manifestObject) !== null && _a !== void 0 ? _a : manifest);
15
+ results = {
12
16
  success: results.success && stepResults.success,
13
17
  manifestObject: stepResults.manifestObject || results.manifestObject,
14
18
  errors: [...(results.errors || []), ...(stepResults.errors || [])]
15
19
  };
16
- }, { success: true });
20
+ }
21
+ return results;
17
22
  }
18
23
  }
19
24
  exports.AbstractValidationProcessor = AbstractValidationProcessor;
@@ -1,5 +1,5 @@
1
1
  import { ManifestValidationResult } from '../types';
2
2
  export interface ProcessorInterface<T> {
3
- process(manifest?: string): ManifestValidationResult<T>;
3
+ process(manifest?: string): Promise<ManifestValidationResult<T>>;
4
4
  }
5
5
  //# sourceMappingURL=processor-interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"processor-interface.d.ts","sourceRoot":"","sources":["../../src/processor/processor-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"processor-interface.d.ts","sourceRoot":"","sources":["../../src/processor/processor-interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAAC;CAClE"}