rapida-partner 1.0.0 → 1.1.1

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 (41) hide show
  1. package/README.md +4 -1
  2. package/package.json +2 -2
  3. package/rapidaObject.json +1 -3024
  4. package/src/enums/form-contract.enum.ts +30 -0
  5. package/src/enums/form.enum.ts +31 -0
  6. package/src/examples/components/forms/character.form.ts +12 -10
  7. package/src/examples/components/forms/company.form.ts +83 -76
  8. package/src/examples/components/forms/movie.form.ts +53 -21
  9. package/src/examples/components/forms/movieGenre.form.ts +6 -4
  10. package/src/examples/components/forms/person.form.ts +81 -79
  11. package/src/examples/modules/movie.ts +2 -1
  12. package/src/examples/projects/movieBackoffice.ts +1 -1
  13. package/src/interfaces/data-card.interface.ts +2 -30
  14. package/src/interfaces/data-detail.interface.ts +2 -30
  15. package/src/interfaces/form-autocomplete.interface.ts +2 -30
  16. package/src/interfaces/form-file.interface.ts +2 -30
  17. package/src/interfaces/form-input.interface.ts +2 -30
  18. package/src/interfaces/form-select.interface.ts +2 -30
  19. package/src/interfaces/form.interface.ts +22 -33
  20. package/src/schemas/backend-framework-structure.schema.json +2 -2
  21. package/src/schemas/bdd-and-e2e-narratives.ref.json +39 -49
  22. package/src/schemas/bdd-and-e2e.json +30 -33
  23. package/src/schemas/business-plan.ref.json +23 -23
  24. package/src/schemas/business-rules.ref.json +25 -25
  25. package/src/schemas/component-one-of.ref.json +1 -1
  26. package/src/schemas/data-card.ref.json +2 -28
  27. package/src/schemas/data-detail.ref.json +2 -30
  28. package/src/schemas/form-autocomplete.ref.json +1 -29
  29. package/src/schemas/form-contract-request-array.ref.json +25 -0
  30. package/src/schemas/form-contract-request-one-of.ref.json +11 -0
  31. package/src/schemas/form-contract-request.ref.json +42 -0
  32. package/src/schemas/form-file.ref.json +1 -31
  33. package/src/schemas/form-input.ref.json +1 -31
  34. package/src/schemas/form-select.ref.json +1 -29
  35. package/src/schemas/form.ref.json +44 -40
  36. package/src/schemas/frontend-framework-structure.schema.json +1 -5
  37. package/src/schemas/module.ref.json +1 -1
  38. package/src/schemas/project.schema.json +8 -4
  39. package/src/schemas/todo.ref.json +1 -1
  40. package/src/schemas/types-datatype.ref.json +34 -0
  41. package/src/schemas/external-application.ref.json +0 -97
@@ -120,37 +120,9 @@
120
120
  "label": {
121
121
  "type": "string"
122
122
  },
123
- "type": {
123
+ "dataType": {
124
124
  "type": "string",
125
- "enum": [
126
- "text",
127
- "date",
128
- "currency",
129
- "number",
130
- "boolean",
131
- "image",
132
- "file",
133
- "link",
134
- "html",
135
- "char",
136
- "nchar",
137
- "varchar",
138
- "varchar2",
139
- "nvarchar",
140
- "longtext",
141
- "clob",
142
- "nclob",
143
- "decimal",
144
- "numeric",
145
- "integer",
146
- "float",
147
- "double",
148
- "real",
149
- "timestamp",
150
- "datetime",
151
- "datetime2",
152
- "uniqueidentifier"
153
- ]
125
+ "$ref": "types-datatype.ref.json"
154
126
  },
155
127
  "format": {
156
128
  "type": "string"
@@ -10,35 +10,7 @@
10
10
  },
11
11
  "dataType": {
12
12
  "type": "string",
13
- "enum": [
14
- "text",
15
- "number",
16
- "password",
17
- "email",
18
- "color",
19
- "date",
20
- "file",
21
- "array",
22
- "char",
23
- "nchar",
24
- "varchar",
25
- "varchar2",
26
- "nvarchar",
27
- "longtext",
28
- "clob",
29
- "nclob",
30
- "decimal",
31
- "numeric",
32
- "integer",
33
- "float",
34
- "double",
35
- "real",
36
- "timestamp",
37
- "datetime",
38
- "datetime2",
39
- "uniqueidentifier",
40
- "boolean"
41
- ]
13
+ "$ref": "types-datatype.ref.json"
42
14
  },
43
15
  "label": {
44
16
  "type": "string"
@@ -0,0 +1,25 @@
1
+ {
2
+ "$id": "form-contract-request-array.ref.json",
3
+ "type": "object",
4
+ "properties": {
5
+ "name": {
6
+ "type": "string"
7
+ },
8
+ "dataType": {
9
+ "const": "array"
10
+ },
11
+ "elements": {
12
+ "type": "array",
13
+ "items": {
14
+ "oneOf": [
15
+ {
16
+ "$ref": "form-contract-request.ref.json"
17
+ },
18
+ {
19
+ "$ref": "form-contract-request-array.ref.json"
20
+ }
21
+ ]
22
+ }
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$id": "form-contract-one-of.ref.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "array",
5
+ "items": {
6
+ "oneOf": [
7
+ { "$ref": "form-contract-request-array.ref.json" },
8
+ { "$ref": "form-contract-request.ref.json" }
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$id": "form-contract-request.ref.json",
3
+ "type": "object",
4
+ "properties": {
5
+ "name": {
6
+ "type": "string"
7
+ },
8
+ "dataType": {
9
+ "type": "string",
10
+ "enum": [
11
+ "text",
12
+ "number",
13
+ "password",
14
+ "email",
15
+ "color",
16
+ "date",
17
+ "time",
18
+ "wysiwyg",
19
+ "file",
20
+ "char",
21
+ "nchar",
22
+ "varchar",
23
+ "varchar2",
24
+ "nvarchar",
25
+ "longtext",
26
+ "clob",
27
+ "nclob",
28
+ "decimal",
29
+ "numeric",
30
+ "integer",
31
+ "float",
32
+ "double",
33
+ "real",
34
+ "timestamp",
35
+ "datetime",
36
+ "datetime2",
37
+ "uniqueidentifier",
38
+ "boolean"
39
+ ]
40
+ }
41
+ }
42
+ }
@@ -11,37 +11,7 @@
11
11
  },
12
12
  "dataType": {
13
13
  "type": "string",
14
- "enum": [
15
- "text",
16
- "number",
17
- "password",
18
- "email",
19
- "color",
20
- "date",
21
- "wysiwyg",
22
- "time",
23
- "file",
24
- "array",
25
- "char",
26
- "nchar",
27
- "varchar",
28
- "varchar2",
29
- "nvarchar",
30
- "longtext",
31
- "clob",
32
- "nclob",
33
- "decimal",
34
- "numeric",
35
- "integer",
36
- "float",
37
- "double",
38
- "real",
39
- "timestamp",
40
- "datetime",
41
- "datetime2",
42
- "uniqueidentifier",
43
- "boolean"
44
- ]
14
+ "$ref": "types-datatype.ref.json"
45
15
  },
46
16
  "label": {
47
17
  "type": "string"
@@ -10,37 +10,7 @@
10
10
  },
11
11
  "dataType": {
12
12
  "type": "string",
13
- "enum": [
14
- "text",
15
- "number",
16
- "password",
17
- "email",
18
- "color",
19
- "date",
20
- "wysiwyg",
21
- "time",
22
- "file",
23
- "array",
24
- "char",
25
- "nchar",
26
- "varchar",
27
- "varchar2",
28
- "nvarchar",
29
- "longtext",
30
- "clob",
31
- "nclob",
32
- "decimal",
33
- "numeric",
34
- "integer",
35
- "float",
36
- "double",
37
- "real",
38
- "timestamp",
39
- "datetime",
40
- "datetime2",
41
- "uniqueidentifier",
42
- "boolean"
43
- ]
13
+ "$ref": "types-datatype.ref.json"
44
14
  },
45
15
  "label": {
46
16
  "type": "string"
@@ -10,35 +10,7 @@
10
10
  },
11
11
  "dataType": {
12
12
  "type": "string",
13
- "enum": [
14
- "text",
15
- "number",
16
- "password",
17
- "email",
18
- "color",
19
- "date",
20
- "file",
21
- "array",
22
- "char",
23
- "nchar",
24
- "varchar",
25
- "varchar2",
26
- "nvarchar",
27
- "longtext",
28
- "clob",
29
- "nclob",
30
- "decimal",
31
- "numeric",
32
- "integer",
33
- "float",
34
- "double",
35
- "real",
36
- "timestamp",
37
- "datetime",
38
- "datetime2",
39
- "uniqueidentifier",
40
- "boolean"
41
- ]
13
+ "$ref": "types-datatype.ref.json"
42
14
  },
43
15
  "label": {
44
16
  "type": "string"
@@ -54,46 +54,10 @@
54
54
  "body": {
55
55
  "type": "array",
56
56
  "items": {
57
- "type": "object",
58
- "properties": {
59
- "name": {
60
- "type": "string"
61
- },
62
- "dataType": {
63
- "type": "string",
64
- "enum": [
65
- "text",
66
- "number",
67
- "password",
68
- "email",
69
- "color",
70
- "date",
71
- "time",
72
- "wysiwyg",
73
- "file",
74
- "array",
75
- "char",
76
- "nchar",
77
- "varchar",
78
- "varchar2",
79
- "nvarchar",
80
- "longtext",
81
- "clob",
82
- "nclob",
83
- "decimal",
84
- "numeric",
85
- "integer",
86
- "float",
87
- "double",
88
- "real",
89
- "timestamp",
90
- "datetime",
91
- "datetime2",
92
- "uniqueidentifier",
93
- "boolean"
94
- ]
95
- }
96
- }
57
+ "oneOf": [
58
+ { "$ref": "form-contract-request.ref.json" },
59
+ { "$ref": "form-contract-request-array.ref.json" }
60
+ ]
97
61
  }
98
62
  }
99
63
  }
@@ -101,6 +65,46 @@
101
65
  },
102
66
  "required": ["endpoint", "methods"]
103
67
  }
68
+ },
69
+ "kanban": {
70
+ "type": "object",
71
+ "properties": {
72
+ "status": {
73
+ "type": "string",
74
+ "enum": ["toDo", "inProgress", "done"]
75
+ },
76
+ "assignesIds": {
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string"
80
+ }
81
+ },
82
+ "validatorsIds": {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ "dueDate": {
89
+ "type": "string",
90
+ "format": "date-time"
91
+ },
92
+ "tags": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "priority": {
99
+ "type": "string",
100
+ "enum": ["low", "medium", "high", "urgent"]
101
+ },
102
+ "storyPoints": {
103
+ "type": "number",
104
+ "minimum": 0
105
+ }
106
+ },
107
+ "required": ["status"]
104
108
  }
105
109
  },
106
110
  "required": ["componentType", "id", "title", "elements", "contracts"]
@@ -170,9 +170,5 @@
170
170
  }
171
171
  }
172
172
  },
173
- "required": [
174
- "projectFolderCase",
175
- "componentFile",
176
- "moduleFile"
177
- ]
173
+ "required": ["projectFolderCase", "componentFile", "moduleFile"]
178
174
  }
@@ -36,4 +36,4 @@
36
36
  },
37
37
  "required": ["id", "title", "icon", "components"]
38
38
  }
39
- }
39
+ }
@@ -14,7 +14,14 @@
14
14
  },
15
15
  "flow": {
16
16
  "type": "string",
17
- "enum": ["autentikigo", "invito", "permeson", "komerco", "labotablo", "reto"]
17
+ "enum": [
18
+ "autentikigo",
19
+ "invito",
20
+ "permeson",
21
+ "komerco",
22
+ "labotablo",
23
+ "reto"
24
+ ]
18
25
  },
19
26
  "businessPlan": {
20
27
  "$ref": "business-plan.ref.json"
@@ -28,9 +35,6 @@
28
35
  "backend": {
29
36
  "$ref": "backend.ref.json"
30
37
  },
31
- "externalApplications": {
32
- "$ref": "external-application.ref.json"
33
- },
34
38
  "modules": {
35
39
  "$ref": "module.ref.json"
36
40
  }
@@ -7,4 +7,4 @@
7
7
  "description": { "type": "string" }
8
8
  },
9
9
  "required": ["title", "description"]
10
- }
10
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$id": "types-datatype.ref.json",
3
+ "enum": [
4
+ "text",
5
+ "number",
6
+ "password",
7
+ "email",
8
+ "color",
9
+ "date",
10
+ "wysiwyg",
11
+ "time",
12
+ "file",
13
+ "array",
14
+ "char",
15
+ "nchar",
16
+ "varchar",
17
+ "varchar2",
18
+ "nvarchar",
19
+ "longtext",
20
+ "clob",
21
+ "nclob",
22
+ "decimal",
23
+ "numeric",
24
+ "integer",
25
+ "float",
26
+ "double",
27
+ "real",
28
+ "timestamp",
29
+ "datetime",
30
+ "datetime2",
31
+ "uniqueidentifier",
32
+ "boolean"
33
+ ]
34
+ }
@@ -1,97 +0,0 @@
1
- {
2
- "$id": "external-application.ref.json",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "type": "object",
5
- "properties": {
6
- "applications": {
7
- "type": "array",
8
- "items": {
9
- "oneOf": [
10
- {
11
- "type": "object",
12
- "properties": {
13
- "id": { "const": "financo" },
14
- "icon": { "const": "attach_money" },
15
- "alternativeIcon": { "type": "string" }
16
- },
17
- "required": ["id"],
18
- "additionalProperties": false
19
- },
20
- {
21
- "type": "object",
22
- "properties": {
23
- "id": { "const": "kliento" },
24
- "icon": { "const": "support_agent" },
25
- "alternativeIcon": { "type": "string" }
26
- },
27
- "required": ["id"],
28
- "additionalProperties": false
29
- },
30
- {
31
- "type": "object",
32
- "properties": {
33
- "id": { "const": "kontado" },
34
- "icon": { "const": "account_balance" },
35
- "alternativeIcon": { "type": "string" }
36
- },
37
- "required": ["id"],
38
- "additionalProperties": false
39
- },
40
- {
41
- "type": "object",
42
- "properties": {
43
- "id": { "const": "pago" },
44
- "icon": { "const": "credit_card" },
45
- "alternativeIcon": { "type": "string" }
46
- },
47
- "required": ["id"],
48
- "additionalProperties": false
49
- },
50
- {
51
- "type": "object",
52
- "properties": {
53
- "id": { "const": "produkto" },
54
- "icon": { "const": "qr_code_2" },
55
- "alternativeIcon": { "type": "string" }
56
- },
57
- "required": ["id"],
58
- "additionalProperties": false
59
- },
60
- {
61
- "type": "object",
62
- "properties": {
63
- "id": { "const": "projekto" },
64
- "icon": { "const": "tactic" },
65
- "alternativeIcon": { "type": "string" }
66
- },
67
- "required": ["id"],
68
- "additionalProperties": false
69
- },
70
- {
71
- "type": "object",
72
- "properties": {
73
- "id": { "const": "stoko" },
74
- "icon": { "const": "inventory_2" },
75
- "alternativeIcon": { "type": "string" }
76
- },
77
- "required": ["id"],
78
- "additionalProperties": false
79
- },
80
- {
81
- "type": "object",
82
- "properties": {
83
- "id": { "const": "uzanto" },
84
- "icon": { "const": "face" },
85
- "alternativeIcon": { "type": "string" }
86
- },
87
- "required": ["id"],
88
- "additionalProperties": false
89
- }
90
- ]
91
- },
92
- "uniqueItems": true
93
- }
94
- },
95
- "required": ["applications"],
96
- "additionalProperties": false
97
- }