rapida-partner 1.18.0 → 1.19.0

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 (37) hide show
  1. package/package.json +1 -1
  2. package/rapidaObject.json +1 -1
  3. package/src/constants/secrets/database.ts +1 -0
  4. package/src/constants/secrets/others.ts +3 -0
  5. package/src/constants/secrets/storage.ts +1 -0
  6. package/src/examples/components/charts/movieGenre.chart.ts +34 -0
  7. package/src/examples/components/forms/character.form.ts +4 -4
  8. package/src/examples/components/forms/company.form.ts +458 -0
  9. package/src/examples/components/forms/movie.form.ts +21 -7
  10. package/src/examples/components/forms/movieEpisode.form.ts +47 -22
  11. package/src/examples/components/forms/movieGenre.form.ts +2 -2
  12. package/src/examples/components/forms/person.form.ts +565 -0
  13. package/src/examples/components/lists/actor.list.ts +17 -0
  14. package/src/examples/components/lists/character.list.ts +1 -1
  15. package/src/examples/components/lists/movie.list.ts +1 -1
  16. package/src/examples/components/lists/movieEpisode.list.ts +15 -11
  17. package/src/examples/components/lists/movieGenre.list.ts +2 -2
  18. package/src/examples/constants/options/countriesFromEarth.ts +2011 -0
  19. package/src/examples/constants/options/legalNature.ts +198 -0
  20. package/src/examples/modules/actor.ts +1 -1
  21. package/src/examples/modules/character.ts +1 -1
  22. package/src/examples/modules/movie.ts +3 -3
  23. package/src/examples/projects/movieBackoffice.ts +22 -2
  24. package/src/interfaces/data-chart.interface.ts +15 -12
  25. package/src/interfaces/e2e.interface.ts +4 -0
  26. package/src/interfaces/form.interface.ts +0 -2
  27. package/src/interfaces/project.interface.ts +58 -14
  28. package/src/schemas/business-rules.ref.json +175 -4
  29. package/src/schemas/component-one-of.ref.json +25 -10
  30. package/src/schemas/data-chart.ref.json +146 -42
  31. package/src/schemas/e2e.ref.json +21 -0
  32. package/src/schemas/module.ref.json +40 -14
  33. package/src/schemas/project.schema.json +34 -11
  34. package/src/interfaces/layout-dashboard.interface.ts +0 -52
  35. package/src/schemas/bdd-and-e2e-narratives.ref.json +0 -47
  36. package/src/schemas/bdd-and-e2e.json +0 -33
  37. package/src/schemas/dashboard.ref.json +0 -111
@@ -1,111 +0,0 @@
1
- {
2
- "$id": "dashboard.ref.json",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "type": "object",
5
- "properties": {
6
- "componentType": { "const": "dashboard" },
7
- "id": { "type": "string" },
8
- "title": { "type": "string" },
9
- "icon": { "type": "string" },
10
- "guards": {
11
- "type": "string",
12
- "enum": ["isAuthenticated", "isAuthorized"]
13
- },
14
- "businessRules": { "$ref": "business-rules.ref.json" },
15
- "userStory": { "type": "string" },
16
- "layout": {
17
- "type": "array",
18
- "items": {
19
- "type": "object",
20
- "properties": {
21
- "id": { "type": "string" },
22
- "title": { "type": "string" },
23
- "columns": { "type": "number" },
24
- "widgets": {
25
- "type": "array",
26
- "items": {
27
- "type": "object",
28
- "properties": {
29
- "id": { "type": "string" },
30
- "title": { "type": "string" },
31
- "type": {
32
- "type": "string",
33
- "enum": ["stats", "chart", "table", "list", "component"]
34
- },
35
- "width": {
36
- "type": "number",
37
- "enum": [1, 2, 3, 4, 6, 12]
38
- },
39
- "height": {
40
- "type": "string",
41
- "enum": ["auto", "small", "medium", "large"]
42
- },
43
- "dataSource": { "$ref": "form-common-api-request.ref.json" },
44
- "refreshInterval": { "type": "number" },
45
- "component": {
46
- "type": "object",
47
- "properties": {
48
- "type": {
49
- "type": "string",
50
- "enum": ["dataTable", "dataGrid", "dataCard", "dataChart"]
51
- },
52
- "config": {}
53
- },
54
- "required": ["type", "config"]
55
- },
56
- "statsConfig": {
57
- "type": "object",
58
- "properties": {
59
- "property": { "type": "string" },
60
- "format": { "type": "string" },
61
- "icon": { "type": "string" },
62
- "subtitle": { "type": "string" },
63
- "trend": {
64
- "type": "object",
65
- "properties": {
66
- "property": { "type": "string" },
67
- "upIsGood": { "type": "boolean" }
68
- },
69
- "required": ["property"]
70
- }
71
- },
72
- "required": ["property"]
73
- },
74
- "chartConfig": {
75
- "type": "object",
76
- "properties": {
77
- "type": {
78
- "type": "string",
79
- "enum": ["line", "bar", "pie", "doughnut", "radar"]
80
- },
81
- "properties": {
82
- "type": "object",
83
- "properties": {
84
- "x": { "type": "string" },
85
- "y": {
86
- "oneOf": [
87
- { "type": "string" },
88
- {
89
- "type": "array",
90
- "items": { "type": "string" }
91
- }
92
- ]
93
- }
94
- },
95
- "required": ["x", "y"]
96
- },
97
- "options": {}
98
- },
99
- "required": ["type", "properties"]
100
- }
101
- },
102
- "required": ["id", "title", "type", "width"]
103
- }
104
- }
105
- },
106
- "required": ["id", "columns", "widgets"]
107
- }
108
- }
109
- },
110
- "required": ["componentType", "id", "title", "layout"]
111
- }