rapida-partner 1.19.1 → 2.0.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 (92) hide show
  1. package/README.md +73 -43
  2. package/index.ts +87 -13
  3. package/package.json +2 -2
  4. package/src/controllers/ts_project_to_json_project.ts +12 -11
  5. package/src/enums/form.enum.ts +3 -0
  6. package/src/examples/components/forms/actor.form.ts +57 -5
  7. package/src/examples/components/forms/character.form.ts +6 -1
  8. package/src/examples/components/forms/company.form.ts +9 -5
  9. package/src/examples/components/forms/movie.form.ts +21 -5
  10. package/src/examples/components/forms/movieEpisode.form.ts +10 -5
  11. package/src/examples/components/forms/movieGenre.form.ts +6 -1
  12. package/src/examples/components/forms/person.form.ts +9 -14
  13. package/src/examples/components/forms/project.form.ts +295 -0
  14. package/src/examples/components/forms/taskWithProject.form.ts +310 -0
  15. package/src/examples/components/lists/actor.list.ts +15 -9
  16. package/src/examples/components/lists/character.list.ts +13 -7
  17. package/src/examples/components/lists/movie.list.ts +104 -24
  18. package/src/examples/components/lists/movieEpisode.list.ts +17 -11
  19. package/src/examples/components/lists/movieGenre.list.ts +12 -6
  20. package/src/examples/components/lists/project.list.ts +78 -0
  21. package/src/examples/components/lists/taskWithProject.list.ts +202 -0
  22. package/src/examples/components/tables/character.table.ts +40 -0
  23. package/src/examples/modules/character.ts +1 -0
  24. package/src/examples/modules/project.ts +18 -0
  25. package/src/examples/projects/assets/images/favicon/android-chrome-192x192.png +0 -0
  26. package/src/examples/projects/assets/images/favicon/android-chrome-512x512.png +0 -0
  27. package/src/examples/projects/assets/images/favicon/apple-touch-icon.png +0 -0
  28. package/src/examples/projects/assets/images/favicon/favicon-16x16.png +0 -0
  29. package/src/examples/projects/assets/images/favicon/favicon-32x32.png +0 -0
  30. package/src/examples/projects/assets/images/favicon/favicon.ico +0 -0
  31. package/src/examples/projects/assets/images/logo.png +0 -0
  32. package/src/examples/projects/movieBackoffice.ts +62 -62
  33. package/src/interfaces/ai-agent.interface.ts +179 -0
  34. package/src/interfaces/condition.interface.ts +0 -1
  35. package/src/interfaces/data-chart.interface.ts +74 -56
  36. package/src/interfaces/data-table.interface.ts +43 -0
  37. package/src/interfaces/form-array.interface.ts +1 -0
  38. package/src/interfaces/form-autocomplete.interface.ts +1 -0
  39. package/src/interfaces/form-checkbox.interface.ts +27 -0
  40. package/src/interfaces/form-contract.interface.ts +12 -2
  41. package/src/interfaces/form-file.interface.ts +1 -1
  42. package/src/interfaces/form-input.interface.ts +18 -3
  43. package/src/interfaces/form-radio.interface.ts +27 -0
  44. package/src/interfaces/form-select.interface.ts +1 -1
  45. package/src/interfaces/form.interface.ts +13 -4
  46. package/src/interfaces/kanban.interface.ts +82 -0
  47. package/src/interfaces/list.interface.ts +15 -1
  48. package/src/interfaces/notification.interface.ts +27 -0
  49. package/src/interfaces/project-backend.interface.ts +61 -2
  50. package/src/interfaces/project-repositories.interface.ts +18 -0
  51. package/src/interfaces/project-style.interface.ts +15 -96
  52. package/src/interfaces/project.interface.ts +52 -5
  53. package/src/interfaces/record-reminder.interface.ts +14 -0
  54. package/src/interfaces/trusted-caller.interface.ts +21 -0
  55. package/src/schemas/ai-agent-config.ref.json +232 -0
  56. package/src/schemas/backend.ref.json +87 -1
  57. package/src/schemas/component-one-of.ref.json +4 -1
  58. package/src/schemas/data-chart.ref.json +3 -0
  59. package/src/schemas/data-table.ref.json +24 -0
  60. package/src/schemas/form-array.ref.json +3 -0
  61. package/src/schemas/form-autocomplete.ref.json +6 -0
  62. package/src/schemas/form-checkbox.ref.json +73 -0
  63. package/src/schemas/form-contract-request.ref.json +1 -0
  64. package/src/schemas/form-contract.ref.json +2 -1
  65. package/src/schemas/form-input.ref.json +8 -2
  66. package/src/schemas/form-one-of.ref.json +4 -2
  67. package/src/schemas/form-public-contract.ref.json +16 -5
  68. package/src/schemas/form-radio.ref.json +73 -0
  69. package/src/schemas/form-switch.ref.json +3 -12
  70. package/src/schemas/form.ref.json +14 -50
  71. package/src/schemas/frontend.ref.json +26 -1
  72. package/src/schemas/kanban.ref.json +259 -0
  73. package/src/schemas/list.ref.json +65 -313
  74. package/src/schemas/module.ref.json +3 -0
  75. package/src/schemas/notification-condition.ref.json +20 -0
  76. package/src/schemas/notification-recipients.ref.json +31 -0
  77. package/src/schemas/notification.ref.json +65 -0
  78. package/src/schemas/project-repositories.ref.json +19 -0
  79. package/src/schemas/project-style.ref.json +28 -12
  80. package/src/schemas/project.schema.json +115 -4
  81. package/src/schemas/record-reminder.ref.json +41 -0
  82. package/src/schemas/send-message.ref.json +33 -0
  83. package/src/schemas/trusted-caller.ref.json +28 -0
  84. package/src/schemas/types-datatype.ref.json +1 -0
  85. package/src/utils/json.ts +3 -11
  86. package/src/utils/path.ts +22 -27
  87. package/rapidaObject.json +0 -1
  88. package/src/constants/secrets/database.ts +0 -1
  89. package/src/constants/secrets/others.ts +0 -3
  90. package/src/constants/secrets/storage.ts +0 -1
  91. package/src/schemas/project-style-theme.ref.json +0 -98
  92. package/src/utils/env.ts +0 -9
@@ -21,8 +21,8 @@ export const actorList: IList = {
21
21
  icon: "pencil",
22
22
  action: {
23
23
  link: {
24
- endpoint: "/actor-form",
25
- propertiesAsQueryParam: ["_id"],
24
+ endpoint: "/actors",
25
+ propertiesAsPathParam: ["_id"],
26
26
  },
27
27
  },
28
28
  },
@@ -30,34 +30,40 @@ export const actorList: IList = {
30
30
  label: "Excluir",
31
31
  icon: "delete",
32
32
  action: {
33
- link: {
34
- endpoint: "/actor-list",
33
+ linkAfterAction: {
34
+ endpoint: "/actors",
35
35
  },
36
36
  request: {
37
37
  endpoint: "/actors",
38
38
  verb: "softDelete",
39
39
  propertiesAsPathParam: ["_id"],
40
40
  dialog: {
41
- title: "Excluir projeto",
42
- message: "Deseja realmente excluir essa projeto?",
41
+ title: "Excluir conteúdo",
42
+ message: "Deseja realmente excluir esse conteúdo?",
43
43
  }
44
44
  }
45
45
  },
46
46
  }
47
47
  ],
48
- contracts: [
48
+ "pagination": {
49
+ "enabled": true,
50
+ "pageSize": 15,
51
+ "pageSizeOptions": [10, 15, 25, 50],
52
+ "position": "bottom"
53
+ },
54
+ contracts: [
49
55
  {
50
56
  id: "actors",
51
57
  endpoint: "/actors",
52
58
  actions: ["create", "get", "getById", "update", "softDelete"],
53
59
  request: {
54
- entity: "Actor",
60
+ entity: "actors",
55
61
  description: "Represents an actor or actress in the system.",
56
62
  fields: [
57
63
  { name: "id", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: true, isPrimaryKey: true },
58
64
  { name: "name", dataType: EDataType.NVARCHAR, isRequired: true },
59
65
  { name: "socialName", dataType: EDataType.NVARCHAR, isRequired: true },
60
- { name: "birthDate", dataType: EDataType.DATETIME2, isRequired: true },
66
+ { name: "birthDate", dataType: EDataType.DATE, isRequired: true },
61
67
  { name: "pictureFile", dataType: EDataType.NVARCHAR },
62
68
  { name: "biography", dataType: EDataType.LONGTEXT },
63
69
  ]
@@ -21,8 +21,8 @@ export const characterList: IList = {
21
21
  icon: "pencil",
22
22
  action: {
23
23
  link: {
24
- endpoint: "/character-form",
25
- propertiesAsQueryParam: ["_id"],
24
+ endpoint: "/characters",
25
+ propertiesAsPathParam: ["_id"],
26
26
  },
27
27
  },
28
28
  },
@@ -30,22 +30,28 @@ export const characterList: IList = {
30
30
  label: "Excluir",
31
31
  icon: "delete",
32
32
  action: {
33
- link: {
34
- endpoint: "/character-list",
33
+ linkAfterAction: {
34
+ endpoint: "/characters",
35
35
  },
36
36
  request: {
37
37
  endpoint: "/characters",
38
38
  verb: "softDelete",
39
39
  propertiesAsPathParam: ["_id"],
40
40
  dialog: {
41
- title: "Excluir projeto",
42
- message: "Deseja realmente excluir essa projeto?",
41
+ title: "Excluir conteúdo",
42
+ message: "Deseja realmente excluir esse conteúdo?",
43
43
  }
44
44
  }
45
45
  },
46
46
  }
47
47
  ],
48
- contracts: [
48
+ "pagination": {
49
+ "enabled": true,
50
+ "pageSize": 15,
51
+ "pageSizeOptions": [10, 15, 25, 50],
52
+ "position": "bottom"
53
+ },
54
+ contracts: [
49
55
  {
50
56
  id: "characters",
51
57
  endpoint: "/characters",
@@ -11,21 +11,77 @@ export const movieList: IList = {
11
11
  paramType: "query",
12
12
  hasAuthentication: true,
13
13
  },
14
+ listFilters: [
15
+ {
16
+ type: "input",
17
+ dataType: EDataType.TEXT,
18
+ label: "Nome",
19
+ name: "name",
20
+ isRequired: true,
21
+ },
22
+ {
23
+ type: "input",
24
+ dataType: EDataType.DATE,
25
+ label: "Data de lançamento",
26
+ name: "releaseDate",
27
+ isRequired: true,
28
+ },
29
+ {
30
+ type: "input",
31
+ name: "imdbRating",
32
+ label: "Pontuação do IMDb",
33
+ dataType: EDataType.DECIMAL,
34
+ isRequired: true,
35
+ },
36
+ {
37
+ type: "autocomplete",
38
+ dataType: EDataType.UNIQUEIDENTIFIER,
39
+ label: "Gêneros",
40
+ name: "movieGenresId",
41
+ optionsApi: {
42
+ endpoint: "/api/movie-genres",
43
+ labelField: ["name"],
44
+ valueField: "_id",
45
+ paramsToFilter: ["name"],
46
+ paramType: "query",
47
+ relatedEntity: "movieGenres",
48
+ },
49
+ isMultiple: true,
50
+ isRequired: true,
51
+ },
52
+ ],
14
53
  listItems: [
15
54
  {
16
- property: "pictureFile", type: "image", label: "Cartaz", dataType: EDataType.NVARCHAR,
55
+ property: "pictureFile",
56
+ type: "image",
57
+ label: "Cartaz",
58
+ dataType: EDataType.NVARCHAR,
17
59
  },
18
60
  {
19
- property: "name", type: "title", label: "Nome", dataType: EDataType.NVARCHAR,
61
+ property: "name",
62
+ type: "title",
63
+ label: "Nome",
64
+ dataType: EDataType.NVARCHAR,
20
65
  },
21
66
  {
22
- property: "releaseDate", type: "subtitle", label: "Data de lançamento", dataType: EDataType.DATETIME2,
67
+ property: "releaseDate",
68
+ type: "subtitle",
69
+ label: "Data de lançamento",
70
+ dataType: EDataType.DATE,
23
71
  },
24
72
  {
25
- property: "movieGenresId.name", type: "subtitle", label: "Gênero", dataType: EDataType.NVARCHAR,
73
+ property: "movieGenresId.name",
74
+ type: "subtitle",
75
+ label: "Gênero",
76
+ dataType: EDataType.NVARCHAR,
77
+ isMultiple: true,
26
78
  },
27
79
  {
28
- property: "description", type: "description", label: "Descrição", isHtml: true, dataType: EDataType.LONGTEXT
80
+ property: "description",
81
+ type: "description",
82
+ label: "Descrição",
83
+ isHtml: true,
84
+ dataType: EDataType.LONGTEXT,
29
85
  },
30
86
  ],
31
87
  callsToActionMenu: [
@@ -34,8 +90,8 @@ export const movieList: IList = {
34
90
  icon: "pencil",
35
91
  action: {
36
92
  link: {
37
- endpoint: "/movie-form",
38
- propertiesAsQueryParam: ["_id"],
93
+ endpoint: "/movies",
94
+ propertiesAsPathParam: ["_id"],
39
95
  },
40
96
  },
41
97
  },
@@ -43,8 +99,8 @@ export const movieList: IList = {
43
99
  label: "Excluir",
44
100
  icon: "delete",
45
101
  action: {
46
- link: {
47
- endpoint: "/movie-list",
102
+ linkAfterAction: {
103
+ endpoint: "/movies",
48
104
  },
49
105
  request: {
50
106
  endpoint: "/movies",
@@ -53,11 +109,17 @@ export const movieList: IList = {
53
109
  dialog: {
54
110
  title: "Excluir conteúdo",
55
111
  message: "Deseja realmente excluir esse conteúdo?",
56
- }
57
- }
112
+ },
113
+ },
58
114
  },
59
- }
115
+ },
60
116
  ],
117
+ pagination: {
118
+ enabled: true,
119
+ pageSize: 15,
120
+ pageSizeOptions: [10, 15, 25, 50],
121
+ position: "bottom",
122
+ },
61
123
  contracts: [
62
124
  {
63
125
  id: "movies",
@@ -67,22 +129,40 @@ export const movieList: IList = {
67
129
  entity: "Movie",
68
130
  description: "Represents a movie or TV series in the system.",
69
131
  fields: [
70
- { name: "id", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: true, isPrimaryKey: true },
71
- { name: "pictureFile", dataType: EDataType.NVARCHAR, isRequired: false },
132
+ {
133
+ name: "id",
134
+ dataType: EDataType.UNIQUEIDENTIFIER,
135
+ isRequired: true,
136
+ isPrimaryKey: true,
137
+ },
138
+ {
139
+ name: "pictureFile",
140
+ dataType: EDataType.NVARCHAR,
141
+ isRequired: false,
142
+ },
72
143
  { name: "name", dataType: EDataType.NVARCHAR, isRequired: true },
73
- { name: "description", dataType: EDataType.LONGTEXT, isRequired: true },
74
- { name: "releaseDate", dataType: EDataType.DATETIME2, isRequired: true },
144
+ {
145
+ name: "description",
146
+ dataType: EDataType.LONGTEXT,
147
+ isRequired: true,
148
+ },
149
+ { name: "releaseDate", dataType: EDataType.DATE, isRequired: true },
75
150
  { name: "imdbRating", dataType: EDataType.FLOAT, isRequired: true },
76
- { name: "movieGenres", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: true, foreignKey: {
77
- entity: "MovieGenre",
78
- connectionAttribute: "_id",
79
- relationship: "many-to-many"
80
- } },
151
+ {
152
+ name: "movieGenres",
153
+ dataType: EDataType.UNIQUEIDENTIFIER,
154
+ isRequired: true,
155
+ foreignKey: {
156
+ entity: "movieGenres",
157
+ connectionAttribute: "_id",
158
+ relationship: "many-to-many",
159
+ },
160
+ },
81
161
  { name: "link1", dataType: EDataType.NVARCHAR, isRequired: true },
82
162
  { name: "link2", dataType: EDataType.NVARCHAR, isRequired: false },
83
163
  { name: "link3", dataType: EDataType.NVARCHAR, isRequired: false },
84
164
  ],
85
- }
86
- }
165
+ },
166
+ },
87
167
  ],
88
- };
168
+ };
@@ -13,10 +13,10 @@ export const movieEpisodeList: IList = {
13
13
  },
14
14
  listItems: [
15
15
  {
16
- property: "episodeTitle", type: "title", label: "Título", dataType: EDataType.NVARCHAR,
16
+ property: "episodes.episodeTitle", type: "title", label: "Título", dataType: EDataType.NVARCHAR,
17
17
  },
18
18
  {
19
- property: "episodeDescription", type: "description", label: "Descrição", isHtml: true, dataType: EDataType.LONGTEXT,
19
+ property: "episodes.episodeDescription", type: "description", label: "Descrição", isHtml: true, dataType: EDataType.LONGTEXT,
20
20
  },
21
21
  ],
22
22
  callsToActionMenu: [
@@ -25,8 +25,8 @@ export const movieEpisodeList: IList = {
25
25
  icon: "pencil",
26
26
  action: {
27
27
  link: {
28
- endpoint: "/movie-episode-form",
29
- propertiesAsQueryParam: ["_id"],
28
+ endpoint: "/movies-episodes",
29
+ propertiesAsPathParam: ["_id"],
30
30
  },
31
31
  },
32
32
  },
@@ -34,8 +34,8 @@ export const movieEpisodeList: IList = {
34
34
  label: "Excluir",
35
35
  icon: "delete",
36
36
  action: {
37
- link: {
38
- endpoint: "/movie-episode-list",
37
+ linkAfterAction: {
38
+ endpoint: "/movies-episodes",
39
39
  },
40
40
  request: {
41
41
  endpoint: "/movies-episodes",
@@ -49,29 +49,35 @@ export const movieEpisodeList: IList = {
49
49
  },
50
50
  }
51
51
  ],
52
- contracts: [
52
+ "pagination": {
53
+ "enabled": true,
54
+ "pageSize": 15,
55
+ "pageSizeOptions": [10, 15, 25, 50],
56
+ "position": "bottom"
57
+ },
58
+ contracts: [
53
59
  {
54
60
  id: "movieEpisodes",
55
61
  endpoint: "/movies-episodes",
56
62
  actions: ["create", "get", "getById", "update", "softDelete"],
57
63
  request: {
58
- entity: "MovieEpisode",
64
+ entity: "movieEpisodes",
59
65
  description: "Represents an episode of a TV series or show.",
60
66
  fields: [
61
67
  { name: "_id", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: true, isPrimaryKey: true },
62
68
  {
63
69
  name: "movieId", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: true, foreignKey: {
64
- entity: "Movie",
70
+ entity: "movies",
65
71
  connectionAttribute: "_id",
66
72
  relationship: "one-to-many"
67
73
  }
68
74
  },
69
75
  { name: "title", dataType: EDataType.NVARCHAR, isRequired: true },
70
76
  { name: "description", dataType: EDataType.LONGTEXT, isRequired: true },
71
- { name: "releaseDate", dataType: EDataType.DATETIME2, isRequired: true },
77
+ { name: "releaseDate", dataType: EDataType.DATE, isRequired: true },
72
78
  {
73
79
  name: "characters", dataType: EDataType.UNIQUEIDENTIFIER, isRequired: false, foreignKey: {
74
- entity: "Character",
80
+ entity: "characters",
75
81
  connectionAttribute: "_id",
76
82
  relationship: "many-to-many"
77
83
  }
@@ -25,8 +25,8 @@ export const movieGenreList: IList = {
25
25
  icon: "pencil",
26
26
  action: {
27
27
  link: {
28
- endpoint: "/movie-genre-form",
29
- propertiesAsQueryParam: ["_id"],
28
+ endpoint: "/movie-genres",
29
+ propertiesAsPathParam: ["_id"],
30
30
  },
31
31
  },
32
32
  },
@@ -34,8 +34,8 @@ export const movieGenreList: IList = {
34
34
  label: "Excluir",
35
35
  icon: "delete",
36
36
  action: {
37
- link: {
38
- endpoint: "/movie-genre-list",
37
+ linkAfterAction: {
38
+ endpoint: "/movie-genres",
39
39
  },
40
40
  request: {
41
41
  endpoint: "/movie-genres",
@@ -49,13 +49,19 @@ export const movieGenreList: IList = {
49
49
  },
50
50
  }
51
51
  ],
52
- contracts: [
52
+ "pagination": {
53
+ "enabled": true,
54
+ "pageSize": 15,
55
+ "pageSizeOptions": [10, 15, 25, 50],
56
+ "position": "bottom"
57
+ },
58
+ contracts: [
53
59
  {
54
60
  id: "movieGenres",
55
61
  endpoint: "/movie-genres",
56
62
  actions: ["create", "get", "getById", "update", "softDelete"],
57
63
  request: {
58
- entity: "MovieGenre",
64
+ entity: "movieGenres",
59
65
  description: "",
60
66
  fields: [
61
67
  {
@@ -0,0 +1,78 @@
1
+ import { EDataType } from "../../../enums/form.enum";
2
+ import type { IList } from "../../../interfaces/list.interface";
3
+
4
+ export const projectList: IList = {
5
+ componentType: "list",
6
+ id: "projectList",
7
+ title: "Lista de projetos",
8
+ guards: ["isAuthorized"],
9
+ dataSource: {
10
+ endpoint: "/projects",
11
+ paramType: "query",
12
+ hasAuthentication: true,
13
+ },
14
+ listItems: [
15
+ {
16
+ label: "Título",
17
+ property: "title",
18
+ type: "title",
19
+ dataType: EDataType.NVARCHAR,
20
+ },
21
+ {
22
+ label: "Descrição",
23
+ property: "description",
24
+ type: "description",
25
+ dataType: EDataType.WYSIWYG,
26
+ isHtml: true,
27
+ },
28
+ // { label: "Usuários compartilhando o projeto", property: "usersSharingProject", type: "subtitle", dataType: EDataType.ARRAY, }, // discuss @alexis
29
+ ],
30
+ callsToActionMenu: [
31
+ {
32
+ label: "Editar",
33
+ icon: "pencil",
34
+ action: {
35
+ link: {
36
+ endpoint: "/projects",
37
+ propertiesAsPathParam: ["_id"],
38
+ },
39
+ },
40
+ },
41
+ {
42
+ label: "Excluir",
43
+ icon: "trash",
44
+ action: {
45
+ link: {
46
+ endpoint: "/projects",
47
+ },
48
+ request: {
49
+ endpoint: "/projects",
50
+ verb: "softDelete",
51
+ propertiesAsPathParam: ["_id"],
52
+ dialog: {
53
+ title: "Excluir projeto",
54
+ message: "Deseja realmente excluir essa projeto?",
55
+ },
56
+ },
57
+ },
58
+ },
59
+ ],
60
+
61
+ pagination: {
62
+ enabled: true,
63
+ pageSize: 15,
64
+ pageSizeOptions: [10, 15, 25, 50],
65
+ position: "bottom",
66
+ },
67
+ contracts: [
68
+ {
69
+ id: "projects",
70
+ endpoint: "/projects",
71
+ actions: ["create", "update", "get", "getById", "softDelete"],
72
+ request: {
73
+ entity: "projects",
74
+ fields: [],
75
+ },
76
+ },
77
+ ],
78
+ };
@@ -0,0 +1,202 @@
1
+ import { EDataType } from "../../../enums/form.enum";
2
+ import type { IList } from "../../../interfaces/list.interface";
3
+
4
+ export const taskWithProjectList: IList = {
5
+ title: "Lista de tarefas",
6
+ id: "taskWithProjectList",
7
+ componentType: "list",
8
+ dataSource: {
9
+ endpoint: "/tasks",
10
+ paramType: "query",
11
+ hasAuthentication: true,
12
+ },
13
+ listItems: [
14
+ {
15
+ property: "title",
16
+ type: "title",
17
+ label: "Título",
18
+ dataType: EDataType.NVARCHAR,
19
+ },
20
+ {
21
+ property: "projectId.title",
22
+ type: "subtitle",
23
+ label: "Projeto",
24
+ dataType: EDataType.NVARCHAR,
25
+ },
26
+ {
27
+ property: "status",
28
+ type: "subtitle",
29
+ label: "Status",
30
+ dataType: EDataType.NVARCHAR,
31
+ },
32
+ {
33
+ property: "priority",
34
+ type: "subtitle",
35
+ label: "Prioridade",
36
+ dataType: EDataType.INTEGER,
37
+ },
38
+ {
39
+ property: "developerId.userName",
40
+ type: "subtitle",
41
+ label: "Desenvolvedor",
42
+ dataType: EDataType.NVARCHAR,
43
+ },
44
+ {
45
+ property: "validatorId.userName",
46
+ type: "subtitle",
47
+ label: "Validador",
48
+ dataType: EDataType.NVARCHAR,
49
+ },
50
+ {
51
+ property: "approverId.userName",
52
+ type: "subtitle",
53
+ label: "Homologador",
54
+ dataType: EDataType.NVARCHAR,
55
+ },
56
+ // {
57
+ // property: "_creator.username",
58
+ // type: "subtitle",
59
+ // label: "Criador",
60
+ // dataType: EDataType.NVARCHAR,
61
+ // },
62
+ {
63
+ property: "expectedDeliveryDate",
64
+ type: "subtitle",
65
+ label: "Data esperada de entrega",
66
+ dataType: EDataType.DATE,
67
+ },
68
+ ],
69
+ listFilters: [
70
+ // {
71
+ // label: "Projeto",
72
+ // name: "project.title",
73
+ // type: "input",
74
+ // dataType: EDataType.NVARCHAR,
75
+ // },
76
+ {
77
+ label: "Tarefa",
78
+ name: "title",
79
+ type: "input",
80
+ dataType: EDataType.NVARCHAR,
81
+ },
82
+ // {
83
+ // label: "Prioridade",
84
+ // type: "select",
85
+ // dataType: EDataType.INTEGER,
86
+ // name: "priority",
87
+ // placeholder: "Selecione a prioridade da tarefa",
88
+ // tooltip: "Nível de urgência da tarefa",
89
+ // isRequired: true,
90
+ // options: [
91
+ // { label: "Baixa", value: 3 },
92
+ // { label: "Média", value: 2 },
93
+ // { label: "Alta", value: 1 },
94
+ // { label: "Urgente", value: 0 },
95
+ // ],
96
+ // },
97
+ // {
98
+ // label: "Complexidade",
99
+ // type: "select",
100
+ // dataType: EDataType.INTEGER,
101
+ // name: "complexity",
102
+ // placeholder: "Selecione a complexidade da tarefa",
103
+ // tooltip: "Nível de complexidade da tarefa",
104
+ // isRequired: true,
105
+ // options: [
106
+ // { label: "Baixa", value: 1 },
107
+ // { label: "Média", value: 2 },
108
+ // { label: "Alta", value: 3 },
109
+ // { label: "Muito alta", value: 4 },
110
+ // { label: "Precisa de estudo", value: 0 },
111
+ // ],
112
+ // },
113
+ // {
114
+ // label: "Status",
115
+ // type: "select",
116
+ // dataType: EDataType.NVARCHAR,
117
+ // name: "status",
118
+ // options: [
119
+ // { label: "Pendente", value: "pending" },
120
+ // { label: "Em andamento", value: "inProgress" },
121
+ // { label: "Aguardando validação técnica", value: "awaitingValidation" },
122
+ // { label: "Aguardando homologação", value: "awaitingApproval" },
123
+ // { label: "Pendência pós-validação", value: "postValidationPending" },
124
+ // { label: "Pendência pós-homologação", value: "postApprovalPending" },
125
+ // { label: "Finalizado", value: "completed" },
126
+ // ],
127
+ // isRequired: true,
128
+ // },
129
+ // {
130
+ // label: "Desenvolvedor",
131
+ // type: "input",
132
+ // dataType: EDataType.NVARCHAR,
133
+ // name: "developer.userName",
134
+ // },
135
+ // {
136
+ // label: "Validador",
137
+ // type: "input",
138
+ // dataType: EDataType.NVARCHAR,
139
+ // name: "validator.userName",
140
+ // },
141
+ // {
142
+ // label: "Homologador",
143
+ // type: "input",
144
+ // dataType: EDataType.NVARCHAR,
145
+ // name: "approver.userName",
146
+ // },
147
+ ],
148
+ // archive: [
149
+ // {
150
+ // property: "status",
151
+ // value: "completed",
152
+ // },
153
+ // ],
154
+ callsToActionMenu: [
155
+ {
156
+ label: "Editar",
157
+ icon: "pencil",
158
+ action: {
159
+ link: {
160
+ endpoint: "/tasks",
161
+ propertiesAsPathParam: ["_id"],
162
+ },
163
+ },
164
+ },
165
+ {
166
+ label: "Excluir",
167
+ icon: "trash",
168
+ action: {
169
+ link: {
170
+ endpoint: "/tasks",
171
+ },
172
+ request: {
173
+ endpoint: "/tasks",
174
+ verb: "softDelete",
175
+ propertiesAsPathParam: ["_id"],
176
+ dialog: {
177
+ title: "Excluir item",
178
+ message: "Deseja realmente excluir esse item?",
179
+ },
180
+ },
181
+ },
182
+ },
183
+ ],
184
+
185
+ "pagination": {
186
+ "enabled": true,
187
+ "pageSize": 15,
188
+ "pageSizeOptions": [10, 15, 25, 50],
189
+ "position": "bottom"
190
+ },
191
+ contracts: [
192
+ {
193
+ id: "tasks",
194
+ endpoint: "/tasks",
195
+ actions: ["create", "update", "get", "softDelete", "getById"],
196
+ request: {
197
+ entity: "tasks",
198
+ fields: [],
199
+ },
200
+ },
201
+ ],
202
+ };