@giteeteam/apps-manifest 0.7.4 → 0.7.5

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.
@@ -24,5 +24,8 @@
24
24
  "type",
25
25
  "endpoint"
26
26
  ]
27
+ },
28
+ "errorMessage": {
29
+ "uniqueItemProperties": "key must be unique"
27
30
  }
28
31
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "type": "object",
3
+ "$id": "http://proxima.com/schemas/modules/custom-field/proxima-field.json",
4
+ "additionalProperties": true,
5
+ "properties": {
6
+ "key": {
7
+ "type": "string"
8
+ },
9
+ "name": {
10
+ "type": "string"
11
+ },
12
+ "fieldType": {
13
+ "type": "string"
14
+ }
15
+ },
16
+ "required": [
17
+ "key", "name", "fieldType"
18
+ ]
19
+ }
@@ -9,12 +9,9 @@
9
9
  "key"
10
10
  ],
11
11
  "minItems": 1,
12
- "additionalItems": true,
13
- "items": [
14
- {
15
- "$ref": "frontend/base.json"
16
- }
17
- ],
12
+ "items": {
13
+ "$ref": "frontend/base.json"
14
+ },
18
15
  "errorMessage": {
19
16
  "uniqueItemProperties": "key must be unique"
20
17
  }
@@ -26,12 +23,9 @@
26
23
  "key"
27
24
  ],
28
25
  "minItems": 1,
29
- "additionalItems": true,
30
- "items": [
31
- {
32
- "$ref": "frontend/workspacePage.json"
33
- }
34
- ],
26
+ "items": {
27
+ "$ref": "frontend/workspacePage.json"
28
+ },
35
29
  "errorMessage": {
36
30
  "uniqueItemProperties": "key must be unique"
37
31
  }
@@ -43,12 +37,9 @@
43
37
  "key"
44
38
  ],
45
39
  "minItems": 1,
46
- "additionalItems": true,
47
- "items": [
48
- {
49
- "$ref": "trigger/webtrigger.json"
50
- }
51
- ],
40
+ "items": {
41
+ "$ref": "trigger/webtrigger.json"
42
+ },
52
43
  "errorMessage": {
53
44
  "uniqueItemProperties": "key must be unique"
54
45
  }
@@ -60,12 +51,9 @@
60
51
  "key"
61
52
  ],
62
53
  "minItems": 1,
63
- "additionalItems": true,
64
- "items": [
65
- {
66
- "$ref": "trigger/base.json"
67
- }
68
- ],
54
+ "items": {
55
+ "$ref": "trigger/base.json"
56
+ },
69
57
  "errorMessage": {
70
58
  "uniqueItemProperties": "key must be unique"
71
59
  }
@@ -77,12 +65,12 @@
77
65
  "key"
78
66
  ],
79
67
  "minItems": 1,
80
- "additionalItems": true,
81
- "items": [
82
- {
83
- "$ref": "function/base.json"
84
- }
85
- ]
68
+ "items": {
69
+ "$ref": "function/base.json"
70
+ },
71
+ "errorMessage": {
72
+ "uniqueItemProperties": "key must be unique"
73
+ }
86
74
  },
87
75
  "^(customFieldType|proxima:FieldType)$": {
88
76
  "type": "array",
@@ -92,17 +80,14 @@
92
80
  "name"
93
81
  ],
94
82
  "minItems": 1,
95
- "additionalItems": true,
96
- "items": [
97
- {
98
- "$ref": "custom-field/type.json"
99
- }
100
- ],
83
+ "items": {
84
+ "$ref": "custom-field/type.json"
85
+ },
101
86
  "errorMessage": {
102
87
  "uniqueItemProperties": "key and name must be unique"
103
88
  }
104
89
  },
105
- "^(customField|proxima:CustomField)$": {
90
+ "^(customField)$": {
106
91
  "type": "array",
107
92
  "uniqueItems": true,
108
93
  "uniqueItemProperties": [
@@ -110,12 +95,24 @@
110
95
  "name"
111
96
  ],
112
97
  "minItems": 1,
113
- "additionalItems": true,
114
- "items": [
115
- {
116
- "$ref": "custom-field/field.json"
117
- }
98
+ "items": {
99
+ "$ref": "custom-field/field.json"
100
+ },
101
+ "errorMessage": {
102
+ "uniqueItemProperties": "key and name must be unique"
103
+ }
104
+ },
105
+ "^(proxima:CustomField)$": {
106
+ "type": "array",
107
+ "uniqueItems": true,
108
+ "uniqueItemProperties": [
109
+ "key",
110
+ "name"
118
111
  ],
112
+ "minItems": 1,
113
+ "items": {
114
+ "$ref": "custom-field/proxima-field.json"
115
+ },
119
116
  "errorMessage": {
120
117
  "uniqueItemProperties": "key and name must be unique"
121
118
  }
@@ -128,12 +125,9 @@
128
125
  "name"
129
126
  ],
130
127
  "minItems": 1,
131
- "additionalItems": true,
132
- "items": [
133
- {
134
- "$ref": "custom-item-type/base.json"
135
- }
136
- ],
128
+ "items": {
129
+ "$ref": "custom-item-type/base.json"
130
+ },
137
131
  "errorMessage": {
138
132
  "uniqueItemProperties": "key and name must be unique"
139
133
  }
@@ -20,5 +20,8 @@
20
20
  "key",
21
21
  "path"
22
22
  ]
23
+ },
24
+ "errorMessage": {
25
+ "uniqueItemProperties": "key must be unique"
23
26
  }
24
27
  }
@@ -58,6 +58,9 @@
58
58
  "name",
59
59
  "attributes"
60
60
  ]
61
+ },
62
+ "errorMessage": {
63
+ "uniqueItemProperties": "name must be unique"
61
64
  }
62
65
  }
63
66
  },
package/lib/validate.js CHANGED
@@ -18,6 +18,7 @@ const webtrigger_json_1 = __importDefault(require("./schema/modules/trigger/webt
18
18
  const base_json_3 = __importDefault(require("./schema/modules/function/base.json"));
19
19
  const field_json_1 = __importDefault(require("./schema/modules/custom-field/field.json"));
20
20
  const type_json_1 = __importDefault(require("./schema/modules/custom-field/type.json"));
21
+ const proxima_field_json_1 = __importDefault(require("./schema/modules/custom-field/proxima-field.json"));
21
22
  const base_json_4 = __importDefault(require("./schema/modules/custom-item-type/base.json"));
22
23
  const resources_json_1 = __importDefault(require("./schema/resources.json"));
23
24
  const tables_json_1 = __importDefault(require("./schema/tables.json"));
@@ -99,6 +100,7 @@ const validateFactory = (schema) => {
99
100
  field_json_1.default,
100
101
  type_json_1.default,
101
102
  base_json_4.default,
103
+ proxima_field_json_1.default,
102
104
  resources_json_1.default,
103
105
  tables_json_1.default,
104
106
  locales_json_1.default,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-manifest",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Giteeteam Apps Manifest",
5
5
  "keywords": [
6
6
  "typescript",