lucid-package 0.0.32 → 0.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.32",
3
+ "version": "0.0.35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -21,6 +21,12 @@ export declare type PackageManifest = {
21
21
  'scopes': string[];
22
22
  'domainWhitelist': string[];
23
23
  }[];
24
+ 'mergeProviders'?: {
25
+ 'name': string;
26
+ 'title': string;
27
+ 'categories': string[];
28
+ 'integration'?: string;
29
+ }[];
24
30
  'dataConnectors'?: {
25
31
  'name': string;
26
32
  'oauthProviderName': string;
@@ -87,6 +87,25 @@ function validateManifestOrThrow(manifest) {
87
87
  }
88
88
  }
89
89
  }
90
+ if (manifest['mergeProviders']) {
91
+ if (!(0, checks_1.isTypedArray)(checks_1.isObject)(manifest['mergeProviders'])) {
92
+ throw new Error('manifest.json: "mergeProviders" must be an array of objects');
93
+ }
94
+ for (const provider of manifest['mergeProviders']) {
95
+ if (!(0, checks_1.isString)(provider['name'])) {
96
+ throw new Error('manifest.json: Merge provider "name" must be a string');
97
+ }
98
+ if (!(0, checks_1.isString)(provider['title'])) {
99
+ throw new Error('manifest.json: Merge provider "title" must be a string');
100
+ }
101
+ if (!(0, checks_1.isTypedArray)(checks_1.isString)(provider['categories'])) {
102
+ throw new Error('manifest.json: Merge provider "categories" must be a string array');
103
+ }
104
+ if (provider['integration'] && !(0, checks_1.isString)(provider['integration'])) {
105
+ throw new Error('manifest.json: Merge provider "integration" must be a string');
106
+ }
107
+ }
108
+ }
90
109
  if (manifest['dataConnectors']) {
91
110
  if (!(0, checks_1.isTypedArray)(checks_1.isObject)(manifest['dataConnectors'])) {
92
111
  throw new Error('manifest.json: "dataConnectors" must be an array of objects');