@inf-monkeys-tech/monkeys 1.0.36 → 1.0.38

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 (63) hide show
  1. package/lib/contracts/common.d.ts +2 -1
  2. package/lib/contracts/common.d.ts.map +1 -1
  3. package/lib/contracts/common.js.map +1 -1
  4. package/lib/contracts/index.d.ts +1 -0
  5. package/lib/contracts/index.d.ts.map +1 -1
  6. package/lib/contracts/index.js +1 -0
  7. package/lib/contracts/index.js.map +1 -1
  8. package/lib/contracts/menu.d.ts +790 -0
  9. package/lib/contracts/menu.d.ts.map +1 -0
  10. package/lib/contracts/menu.js +319 -0
  11. package/lib/contracts/menu.js.map +1 -0
  12. package/lib/contracts/page.d.ts +6 -0
  13. package/lib/contracts/page.d.ts.map +1 -1
  14. package/lib/contracts/page.js +6 -0
  15. package/lib/contracts/page.js.map +1 -1
  16. package/lib/contracts/semantic.d.ts +59 -0
  17. package/lib/contracts/semantic.d.ts.map +1 -1
  18. package/lib/contracts/semantic.js +2 -0
  19. package/lib/contracts/semantic.js.map +1 -1
  20. package/lib/contracts/tenant.d.ts +157 -0
  21. package/lib/contracts/tenant.d.ts.map +1 -1
  22. package/lib/contracts/tenant.js +4 -0
  23. package/lib/contracts/tenant.js.map +1 -1
  24. package/lib/esm/contracts/index.mjs +1089 -768
  25. package/lib/esm/contracts/index.mjs.map +1 -1
  26. package/lib/esm/index.mjs +1615 -771
  27. package/lib/esm/index.mjs.map +1 -1
  28. package/lib/esm/runtime/index.mjs +1168 -364
  29. package/lib/esm/runtime/index.mjs.map +1 -1
  30. package/lib/esm/schemas/index.mjs +1084 -768
  31. package/lib/esm/schemas/index.mjs.map +1 -1
  32. package/lib/json-schema/index.json +3 -0
  33. package/lib/json-schema/menu-definition-set.schema.json +411 -0
  34. package/lib/json-schema/menu-definition.schema.json +385 -0
  35. package/lib/json-schema/menu-runtime-bundle.schema.json +541 -0
  36. package/lib/json-schema/page-definition.schema.json +14 -0
  37. package/lib/json-schema/page-runtime-descriptor.schema.json +14 -0
  38. package/lib/json-schema/product-declaration.schema.json +369 -1
  39. package/lib/json-schema/tenant-product-config.schema.json +392 -0
  40. package/lib/json-schema/tenant-runtime-config.schema.json +522 -0
  41. package/lib/runtime/declaration-compiler.d.ts +2 -0
  42. package/lib/runtime/declaration-compiler.d.ts.map +1 -1
  43. package/lib/runtime/declaration-compiler.js +4 -0
  44. package/lib/runtime/declaration-compiler.js.map +1 -1
  45. package/lib/runtime/index.d.ts +1 -0
  46. package/lib/runtime/index.d.ts.map +1 -1
  47. package/lib/runtime/index.js +1 -0
  48. package/lib/runtime/index.js.map +1 -1
  49. package/lib/runtime/menu-compiler.d.ts +58 -0
  50. package/lib/runtime/menu-compiler.d.ts.map +1 -0
  51. package/lib/runtime/menu-compiler.js +436 -0
  52. package/lib/runtime/menu-compiler.js.map +1 -0
  53. package/lib/runtime/tenant-config.d.ts +2 -0
  54. package/lib/runtime/tenant-config.d.ts.map +1 -1
  55. package/lib/runtime/tenant-config.js +1 -0
  56. package/lib/runtime/tenant-config.js.map +1 -1
  57. package/lib/schemas/index.d.ts +408 -0
  58. package/lib/schemas/index.d.ts.map +1 -1
  59. package/lib/schemas/index.js +38 -3
  60. package/lib/schemas/index.js.map +1 -1
  61. package/package.json +1 -1
  62. package/test/fixtures/menu-definition.v1.json +41 -0
  63. package/test/fixtures/tenant-product-config.public.json +2 -1
@@ -0,0 +1,385 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "MenuDefinition"
8
+ },
9
+ "version": {
10
+ "type": "number",
11
+ "const": 1
12
+ },
13
+ "applicationId": {
14
+ "type": "string",
15
+ "minLength": 1,
16
+ "maxLength": 256
17
+ },
18
+ "surface": {
19
+ "type": "string",
20
+ "minLength": 1,
21
+ "maxLength": 256
22
+ },
23
+ "menuId": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 256
27
+ },
28
+ "nodes": {
29
+ "maxItems": 1024,
30
+ "type": "array",
31
+ "items": {
32
+ "anyOf": [
33
+ {
34
+ "type": "object",
35
+ "properties": {
36
+ "nodeId": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "maxLength": 256
40
+ },
41
+ "parentNodeId": {
42
+ "type": "string",
43
+ "minLength": 1,
44
+ "maxLength": 256
45
+ },
46
+ "order": {
47
+ "type": "integer",
48
+ "minimum": -1000000,
49
+ "maximum": 1000000
50
+ },
51
+ "kind": {
52
+ "type": "string",
53
+ "const": "group"
54
+ },
55
+ "label": {
56
+ "anyOf": [
57
+ {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ {
62
+ "type": "object",
63
+ "propertyNames": {
64
+ "type": "string",
65
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
66
+ },
67
+ "additionalProperties": {
68
+ "type": "string",
69
+ "minLength": 1
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ "iconRef": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "maxLength": 256
78
+ }
79
+ },
80
+ "required": [
81
+ "nodeId",
82
+ "order",
83
+ "kind"
84
+ ],
85
+ "additionalProperties": false
86
+ },
87
+ {
88
+ "type": "object",
89
+ "properties": {
90
+ "nodeId": {
91
+ "type": "string",
92
+ "minLength": 1,
93
+ "maxLength": 256
94
+ },
95
+ "parentNodeId": {
96
+ "type": "string",
97
+ "minLength": 1,
98
+ "maxLength": 256
99
+ },
100
+ "order": {
101
+ "type": "integer",
102
+ "minimum": -1000000,
103
+ "maximum": 1000000
104
+ },
105
+ "kind": {
106
+ "type": "string",
107
+ "const": "divider"
108
+ }
109
+ },
110
+ "required": [
111
+ "nodeId",
112
+ "order",
113
+ "kind"
114
+ ],
115
+ "additionalProperties": false
116
+ },
117
+ {
118
+ "type": "object",
119
+ "properties": {
120
+ "nodeId": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 256
124
+ },
125
+ "parentNodeId": {
126
+ "type": "string",
127
+ "minLength": 1,
128
+ "maxLength": 256
129
+ },
130
+ "order": {
131
+ "type": "integer",
132
+ "minimum": -1000000,
133
+ "maximum": 1000000
134
+ },
135
+ "kind": {
136
+ "type": "string",
137
+ "const": "item"
138
+ },
139
+ "label": {
140
+ "anyOf": [
141
+ {
142
+ "type": "string",
143
+ "minLength": 1
144
+ },
145
+ {
146
+ "type": "object",
147
+ "propertyNames": {
148
+ "type": "string",
149
+ "pattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-[A-Z]{2}|-\\d{3})?$"
150
+ },
151
+ "additionalProperties": {
152
+ "type": "string",
153
+ "minLength": 1
154
+ }
155
+ }
156
+ ]
157
+ },
158
+ "iconRef": {
159
+ "type": "string",
160
+ "minLength": 1,
161
+ "maxLength": 256
162
+ },
163
+ "tone": {
164
+ "type": "string",
165
+ "enum": [
166
+ "default",
167
+ "danger"
168
+ ]
169
+ },
170
+ "requiredPermission": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "maxLength": 256
174
+ },
175
+ "behavior": {
176
+ "anyOf": [
177
+ {
178
+ "type": "object",
179
+ "properties": {
180
+ "kind": {
181
+ "type": "string",
182
+ "const": "navigate"
183
+ },
184
+ "page": {
185
+ "type": "object",
186
+ "properties": {
187
+ "applicationId": {
188
+ "type": "string",
189
+ "minLength": 1,
190
+ "maxLength": 256
191
+ },
192
+ "pageId": {
193
+ "type": "string",
194
+ "minLength": 1,
195
+ "maxLength": 256
196
+ }
197
+ },
198
+ "required": [
199
+ "applicationId",
200
+ "pageId"
201
+ ],
202
+ "additionalProperties": false
203
+ },
204
+ "activationId": {
205
+ "type": "string",
206
+ "minLength": 1,
207
+ "maxLength": 256
208
+ },
209
+ "input": {
210
+ "anyOf": [
211
+ {
212
+ "type": "object",
213
+ "properties": {
214
+ "exposure": {
215
+ "type": "string",
216
+ "const": "client"
217
+ },
218
+ "value": {
219
+ "type": "object",
220
+ "propertyNames": {
221
+ "type": "string"
222
+ },
223
+ "additionalProperties": {
224
+ "$ref": "#/$defs/__schema0"
225
+ }
226
+ }
227
+ },
228
+ "required": [
229
+ "exposure",
230
+ "value"
231
+ ],
232
+ "additionalProperties": false
233
+ },
234
+ {
235
+ "type": "object",
236
+ "properties": {
237
+ "exposure": {
238
+ "type": "string",
239
+ "const": "server"
240
+ },
241
+ "value": {
242
+ "type": "object",
243
+ "propertyNames": {
244
+ "type": "string"
245
+ },
246
+ "additionalProperties": {
247
+ "$ref": "#/$defs/__schema0"
248
+ }
249
+ }
250
+ },
251
+ "required": [
252
+ "exposure",
253
+ "value"
254
+ ],
255
+ "additionalProperties": false
256
+ }
257
+ ]
258
+ }
259
+ },
260
+ "required": [
261
+ "kind",
262
+ "page"
263
+ ],
264
+ "additionalProperties": false
265
+ },
266
+ {
267
+ "type": "object",
268
+ "properties": {
269
+ "kind": {
270
+ "type": "string",
271
+ "const": "action"
272
+ },
273
+ "actionRef": {
274
+ "type": "string",
275
+ "minLength": 1,
276
+ "maxLength": 256
277
+ },
278
+ "input": {
279
+ "type": "object",
280
+ "propertyNames": {
281
+ "type": "string"
282
+ },
283
+ "additionalProperties": {
284
+ "$ref": "#/$defs/__schema0"
285
+ }
286
+ }
287
+ },
288
+ "required": [
289
+ "kind",
290
+ "actionRef"
291
+ ],
292
+ "additionalProperties": false
293
+ }
294
+ ]
295
+ }
296
+ },
297
+ "required": [
298
+ "nodeId",
299
+ "order",
300
+ "kind",
301
+ "label",
302
+ "behavior"
303
+ ],
304
+ "additionalProperties": false
305
+ }
306
+ ]
307
+ }
308
+ },
309
+ "contributions": {
310
+ "default": [],
311
+ "maxItems": 1024,
312
+ "type": "array",
313
+ "items": {
314
+ "type": "object",
315
+ "properties": {
316
+ "providerId": {
317
+ "type": "string",
318
+ "minLength": 1,
319
+ "maxLength": 256
320
+ },
321
+ "parentNodeId": {
322
+ "type": "string",
323
+ "minLength": 1,
324
+ "maxLength": 256
325
+ },
326
+ "order": {
327
+ "type": "integer",
328
+ "minimum": -1000000,
329
+ "maximum": 1000000
330
+ }
331
+ },
332
+ "required": [
333
+ "providerId",
334
+ "order"
335
+ ],
336
+ "additionalProperties": false
337
+ }
338
+ }
339
+ },
340
+ "required": [
341
+ "contract",
342
+ "version",
343
+ "applicationId",
344
+ "surface",
345
+ "menuId",
346
+ "nodes",
347
+ "contributions"
348
+ ],
349
+ "additionalProperties": false,
350
+ "$defs": {
351
+ "__schema0": {
352
+ "anyOf": [
353
+ {
354
+ "type": "string"
355
+ },
356
+ {
357
+ "type": "number"
358
+ },
359
+ {
360
+ "type": "boolean"
361
+ },
362
+ {
363
+ "type": "null"
364
+ },
365
+ {
366
+ "type": "array",
367
+ "items": {
368
+ "$ref": "#/$defs/__schema0"
369
+ }
370
+ },
371
+ {
372
+ "type": "object",
373
+ "propertyNames": {
374
+ "type": "string"
375
+ },
376
+ "additionalProperties": {
377
+ "$ref": "#/$defs/__schema0"
378
+ }
379
+ }
380
+ ]
381
+ }
382
+ },
383
+ "$id": "https://schemas.infmonkeys.com/contracts/menu-definition.schema.json",
384
+ "title": "menu-definition"
385
+ }