rapida-partner 1.19.0 → 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 +2 -3
  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
@@ -1,3 +1,4 @@
1
+ import type { IAiAgentConfig } from "./ai-agent.interface";
1
2
  import type { IDataCard } from "./data-card.interface";
2
3
  import type { IDataChart } from "./data-chart.interface";
3
4
  import type { IDataDetail } from "./data-detail.interface";
@@ -6,9 +7,12 @@ import type { IDataTable } from "./data-table.interface";
6
7
  import type { IE2e } from "./e2e.interface";
7
8
  import type { IFlowChart } from "./form-flowchart.interface";
8
9
  import type { IForm } from "./form.interface";
10
+ import type { IKanban } from "./kanban.interface";
9
11
  import type { IPanel } from "./layout-panel.interface";
10
12
  import type { IList } from "./list.interface";
13
+ import type { INotification } from "./notification.interface";
11
14
  import type { IBackend } from "./project-backend.interface";
15
+ import type { IProjectRepositories } from "./project-repositories.interface";
12
16
  import type { IStyle } from "./project-style.interface";
13
17
 
14
18
  export interface IProject {
@@ -17,29 +21,61 @@ export interface IProject {
17
21
  description: string;
18
22
  businessPlan?: IBusinessPLan;
19
23
  businessRules?: IBusinessRule[];
20
- skeleton: "backoffice" | "marketplace" | "landingPage" | "socialNetwork";
24
+ skeleton: "backoffice" | "marketplace" | "landingPage" | "socialNetwork" | "service" | "aiAgent";
21
25
  flows?: {
22
26
  authentication?: boolean;
27
+ registrationMethod?: 'link' | 'code';
28
+ resetPasswordMethod?: 'link' | 'code';
23
29
  permission?: boolean;
24
- invitation?: boolean;
30
+ invitation?: {
31
+ mainUserEmail: string; // First user email to own the system and be the first invited
32
+ };
25
33
  registration?: boolean;
26
34
  profiles?: {
27
35
  personProfile?: IForm;
28
36
  companyProfile?: IForm;
29
37
  };
30
38
  };
31
- frontend?: IFrontend;
32
- backend?: IBackend;
39
+ frontend?: IFrontend[];
40
+ backend?: IBackend[];
41
+ deepseekIntegration?: {
42
+ apiKey: string;
43
+ service: "embedding" | "chat" | "custom" | "cost";
44
+ }[];
45
+ openaiIntegration?: {
46
+ apiKey: string;
47
+ // "transcription": speech-to-text (Whisper) used by aiAgent projects to
48
+ // transcribe incoming audio messages.
49
+ service: "embedding" | "chat" | "custom" | "cost" | "transcription";
50
+ }[];
51
+ mongodbIntegration?: {
52
+ accountPublicKey?: string;
53
+ accountPrivateKey?: string;
54
+ organizationId?: string;
55
+ groupId?: string;
56
+ processId?: string;
57
+ service: "embedding" | "chat" | "custom" | "cost";
58
+ }[];
33
59
  e2e?: IE2e;
34
60
  modules?: IModule[];
35
61
  styles?: IStyle[];
36
62
  flowChart?: IFlowChart;
37
63
  dashboard?: IComponent[];
64
+ aiAgentConfig?: IAiAgentConfig;
65
+ notifications?: INotification[];
66
+ repositories?: IProjectRepositories;
38
67
  }
39
68
 
40
- interface IFrontend {
69
+ export interface IFrontend {
70
+ environment: string;
71
+ baseUrl: string;
72
+ apiBaseUrl: string;
73
+ isActiveEnvironment: boolean;
41
74
  framework: "angular" | "flutter" | "react" | "reactnative" | "svelte" | "vue";
42
75
  uiKit: "antdesign" | "bootstrap" | "material" | "flowbite";
76
+ logoPath?: string;
77
+ faviconPath?: string;
78
+ isSsr?: boolean;
43
79
  }
44
80
 
45
81
  interface IBusinessPLan {
@@ -52,6 +88,16 @@ interface IBusinessPLan {
52
88
  monetization?: string;
53
89
  }
54
90
 
91
+ /**
92
+ * Para `codeStartLocationReference` em qualquer `backendComplementaryCode`/`frontendComplementaryCode`
93
+ * (rule ou subrule): "before"/"after" inserem `code` como linha(s) inteira(s) imediatamente antes/depois
94
+ * da PRIMEIRA LINHA onde `codeStartLocation` foi encontrado — não depois da última linha do match, mesmo
95
+ * quando `codeStartLocation` tem várias linhas. Um `codeStartLocation` multi-linha serve só para garantir
96
+ * que o trecho seja único na árvore gerada; ele não pula o conteúdo casado até o fim antes de inserir.
97
+ * Para ancorar a inserção num ponto específico, a primeira linha de `codeStartLocation` precisa já ser
98
+ * essa linha (estendendo o texto para frente, se necessário, só para ganhar unicidade).
99
+ * "replace" substitui exatamente o trecho casado (substring, não a linha inteira) pelo `code`.
100
+ */
55
101
  export interface IBusinessRule {
56
102
  rule: {
57
103
  description: string;
@@ -130,6 +176,7 @@ export interface ITodo {
130
176
  export type IComponent =
131
177
  | IForm
132
178
  | IList
179
+ | IKanban
133
180
  | IDataTable
134
181
  | IDataCard
135
182
  | IDataGrid
@@ -0,0 +1,14 @@
1
+ import type { INotificationCondition, INotificationRecipients } from "./notification.interface";
2
+
3
+ export interface IRecordReminder {
4
+ id: string;
5
+ title: string; // texto exibido na central de notificações, fixo (não interpolado)
6
+ message: string; // corpo da notificação; suporta {{campo}} interpolado a partir do registro observado
7
+ contractId: string; // contrato (IContract.id) cujos registros serão observados
8
+ dateField: string; // campo de data do registro usado como referência do lembrete
9
+ timeField?: string; // campo de hora do registro (HH:MM); se ausente, dispara em qualquer horário do dia
10
+ offsetDays?: number; // deslocamento em dias em relação a dateField: 0 = no dia (padrão), negativo = antes, positivo = depois
11
+ condition?: INotificationCondition[]; // filtros adicionais sobre o registro (ex.: não lembrar contas já liquidadas)
12
+ recipients: INotificationRecipients;
13
+ removeAfterNotify?: boolean; // evita notificar de novo o mesmo registro depois do primeiro disparo
14
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Backend externo autorizado a chamar os `publicContracts` com `access: "trustedCallers"`.
3
+ *
4
+ * Padrão RFC 7523 (JWT assinado pelo próprio chamador, estilo `private_key_jwt`):
5
+ * o chamador assina um JWT curto com sua chave privada e publica a chave pública
6
+ * em `jwksUri`; este backend valida assinatura, `iss`, `aud` e `exp` a cada requisição.
7
+ *
8
+ * Declarado por ambiente em `IBackend.trustedCallers`, nunca no contrato — forms
9
+ * são compartilhados entre projetos e o JWKS muda por ambiente.
10
+ */
11
+ export interface ITrustedCaller {
12
+ id: string;
13
+ /** Valor esperado na claim `iss` do JWT. */
14
+ issuer: string;
15
+ /** URL do JWKS onde o chamador publica a(s) chave(s) pública(s). */
16
+ jwksUri: string;
17
+ /** Valor esperado na claim `aud` do JWT — identifica este backend. */
18
+ audience: string;
19
+ /** Algoritmos aceitos. Apenas assimétricos; o gerador assume `["RS256"]` se omitido. */
20
+ algorithms?: ("RS256" | "ES256")[];
21
+ }
@@ -0,0 +1,232 @@
1
+ {
2
+ "$id": "ai-agent-config.ref.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "agentIdentity": {
7
+ "type": "object",
8
+ "properties": {
9
+ "name": {
10
+ "type": "string"
11
+ },
12
+ "systemPromptTemplate": {
13
+ "type": "string",
14
+ "description": "Literal markdown content of the system prompt (NOT a file path). Empty string triggers the generator's default prompt scaffold."
15
+ },
16
+ "knowledgeBaseFile": {
17
+ "type": "string"
18
+ },
19
+ "companyName": {
20
+ "type": "string"
21
+ },
22
+ "mission": {
23
+ "type": "string"
24
+ },
25
+ "knowledgeBaseContent": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": ["name", "systemPromptTemplate", "knowledgeBaseFile"],
30
+ "additionalProperties": false
31
+ },
32
+ "infrastructure": {
33
+ "type": "object",
34
+ "properties": {
35
+ "messengers": {
36
+ "type": "array",
37
+ "description": "\"instagram\" is a stub today (webhook does not process incoming messages yet).",
38
+ "items": {
39
+ "type": "string",
40
+ "enum": ["whatsapp", "instagram", "telegram"]
41
+ }
42
+ },
43
+ "aiProvider": {
44
+ "type": "string",
45
+ "enum": ["deepseek", "gemini", "openai"]
46
+ },
47
+ "model": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "required": ["messengers", "aiProvider", "model"],
52
+ "additionalProperties": false
53
+ },
54
+ "businessContext": {
55
+ "type": "object",
56
+ "properties": {
57
+ "targetBackendProjectId": {
58
+ "type": "string"
59
+ },
60
+ "targetBackendDefinitionFile": {
61
+ "type": "string",
62
+ "description": "Path to an ALREADY COMPILED rapidaObject.json of the target backend (not the .ts source), resolved relative to the directory of this agent's own rapidaObject.json."
63
+ },
64
+ "exposedContracts": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "object",
68
+ "properties": {
69
+ "contractId": {
70
+ "type": "string"
71
+ },
72
+ "toolName": {
73
+ "type": "string"
74
+ },
75
+ "action": {
76
+ "type": "string",
77
+ "enum": [
78
+ "create",
79
+ "get",
80
+ "getById",
81
+ "update",
82
+ "softDelete",
83
+ "hardDelete"
84
+ ]
85
+ },
86
+ "intentMapping": {
87
+ "type": "object",
88
+ "properties": {
89
+ "formFields": {
90
+ "type": "array",
91
+ "items": {
92
+ "type": "object",
93
+ "properties": {
94
+ "fieldId": {
95
+ "type": "string"
96
+ },
97
+ "naturalLanguagePrompt": {
98
+ "type": "string"
99
+ },
100
+ "validationHint": {
101
+ "type": "string"
102
+ },
103
+ "schemaType": {
104
+ "type": "string",
105
+ "enum": [
106
+ "string",
107
+ "number",
108
+ "integer",
109
+ "boolean",
110
+ "array",
111
+ "object"
112
+ ]
113
+ }
114
+ },
115
+ "required": ["fieldId", "naturalLanguagePrompt"],
116
+ "additionalProperties": false
117
+ }
118
+ },
119
+ "triggerKeywords": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ }
124
+ }
125
+ },
126
+ "required": ["formFields", "triggerKeywords"],
127
+ "additionalProperties": false
128
+ },
129
+ "responseTemplate": {
130
+ "type": "object",
131
+ "properties": {
132
+ "successMessage": {
133
+ "type": "string"
134
+ },
135
+ "errorMessage": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ "required": ["successMessage", "errorMessage"],
140
+ "additionalProperties": false
141
+ }
142
+ },
143
+ "required": ["contractId", "toolName", "action", "intentMapping"],
144
+ "additionalProperties": false
145
+ }
146
+ },
147
+ "botCredentials": {
148
+ "type": "object",
149
+ "description": "Credentials of the dedicated bot user on the target backend (BOT_API_EMAIL/BOT_API_PASSWORD in the generated agent .env).",
150
+ "properties": {
151
+ "email": {
152
+ "type": "string"
153
+ },
154
+ "password": {
155
+ "type": "string"
156
+ }
157
+ },
158
+ "required": ["email", "password"],
159
+ "additionalProperties": false
160
+ }
161
+ },
162
+ "required": ["targetBackendProjectId", "exposedContracts"],
163
+ "additionalProperties": false
164
+ },
165
+ "humanHandoff": {
166
+ "type": "object",
167
+ "properties": {
168
+ "contacts": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "name": {
174
+ "type": "string"
175
+ },
176
+ "useCase": {
177
+ "type": "string"
178
+ },
179
+ "whatsappPhoneNumber": {
180
+ "type": "string"
181
+ }
182
+ },
183
+ "required": ["name", "useCase", "whatsappPhoneNumber"],
184
+ "additionalProperties": false
185
+ }
186
+ }
187
+ },
188
+ "required": ["contacts"],
189
+ "additionalProperties": false
190
+ },
191
+ "audio": {
192
+ "type": "object",
193
+ "properties": {
194
+ "maxDurationSeconds": {
195
+ "type": "number",
196
+ "minimum": 1
197
+ },
198
+ "rateLimitIntervalSeconds": {
199
+ "type": "number",
200
+ "minimum": 0
201
+ }
202
+ },
203
+ "additionalProperties": false
204
+ },
205
+ "jobs": {
206
+ "type": "object",
207
+ "properties": {
208
+ "reminder": {
209
+ "type": "object",
210
+ "properties": {
211
+ "enabled": {
212
+ "type": "boolean"
213
+ },
214
+ "cronInterval": {
215
+ "type": "string"
216
+ },
217
+ "minutesAhead": {
218
+ "type": "number"
219
+ },
220
+ "timezone": {
221
+ "type": "string"
222
+ }
223
+ },
224
+ "additionalProperties": false
225
+ }
226
+ },
227
+ "additionalProperties": false
228
+ }
229
+ },
230
+ "required": ["agentIdentity", "infrastructure", "businessContext"],
231
+ "additionalProperties": false
232
+ }
@@ -2,6 +2,9 @@
2
2
  "$id": "backend.ref.json",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "environment": { "type": "string" },
6
+ "baseUrl": { "type": "string" },
7
+ "isActiveEnvironment": { "type": "boolean" },
5
8
  "framework": {
6
9
  "type": "string",
7
10
  "enum": ["functions", "lambda", "laravel", "nest", "dotnet"]
@@ -17,7 +20,8 @@
17
20
  "oracle",
18
21
  "postgresql",
19
22
  "mysql",
20
- "sqlserver"
23
+ "sqlserver",
24
+ "sqlite"
21
25
  ]
22
26
  },
23
27
  "connectionString": { "type": "string" },
@@ -35,6 +39,11 @@
35
39
  },
36
40
  "required": ["provider", "connectionString", "credentials"]
37
41
  },
42
+ "jwtSecret": { "type": "string" },
43
+ "trustedCallers": {
44
+ "type": "array",
45
+ "items": { "$ref": "trusted-caller.ref.json" }
46
+ },
38
47
  "storage": {
39
48
  "type": "object",
40
49
  "properties": {
@@ -64,6 +73,14 @@
64
73
  "discordWebhookUrl": { "type": "string" }
65
74
  }
66
75
  },
76
+ "whatsapp": {
77
+ "type": "object",
78
+ "properties": {
79
+ "whatsappToken": { "type": "string" },
80
+ "whatsappPhoneNumberId": { "type": "string" },
81
+ "whatsappVerifyToken": { "type": "string" }
82
+ }
83
+ },
67
84
  "email": {
68
85
  "type": "object",
69
86
  "properties": {
@@ -71,6 +88,75 @@
71
88
  "smtpPass": { "type": "string" },
72
89
  "smtpFrom": { "type": "string" }
73
90
  }
91
+ },
92
+ "marketplace": {
93
+ "type": "object",
94
+ "properties": {
95
+ "paymentGateways": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "object",
99
+ "properties": {
100
+ "provider": { "type": "string" }
101
+ }
102
+ }
103
+ },
104
+ "productsAutocomplete": { "$ref": "form-autocomplete.ref.json" },
105
+ "stockInEndpoint": { "type": "string" },
106
+ "stockOutEndpoint": { "type": "string" },
107
+ "productBaseUrl": { "type": "string" }
108
+ },
109
+ "required": ["paymentGateways", "productsAutocomplete", "stockInEndpoint", "stockOutEndpoint", "productBaseUrl"]
110
+ },
111
+ "service": {
112
+ "type": "object",
113
+ "properties": {
114
+ "paymentGateways": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "object",
118
+ "properties": {
119
+ "provider": { "type": "string" }
120
+ }
121
+ }
122
+ },
123
+ "appointmentList": { "$ref": "list.ref.json" },
124
+ "availabilityScheduleList": { "$ref": "list.ref.json" },
125
+ "appointmentByAiList": { "$ref": "list.ref.json" }
126
+ },
127
+ "required": ["paymentGateways", "appointmentList", "availabilityScheduleList"]
128
+ },
129
+ "mercadoPagoIntegration": {
130
+ "type": "object",
131
+ "properties": {
132
+ "publicKey": { "type": "string" },
133
+ "accessToken": { "type": "string" },
134
+ "appId": { "type": "string" },
135
+ "userId": { "type": "string" },
136
+ "testUserId": { "type": "string" },
137
+ "password": { "type": "string" },
138
+ "verificationCode": { "type": "string" },
139
+ "testSellerSettings": {
140
+ "type": "object",
141
+ "properties": {
142
+ "userId": { "type": "string" },
143
+ "user": { "type": "string" },
144
+ "password": { "type": "string" },
145
+ "verificationCode": { "type": "string" }
146
+ },
147
+ "required": ["userId", "user", "password", "verificationCode"]
148
+ },
149
+ "testBuyerSettings": {
150
+ "type": "object",
151
+ "properties": {
152
+ "userId": { "type": "string" },
153
+ "user": { "type": "string" },
154
+ "password": { "type": "string" },
155
+ "verificationCode": { "type": "string" }
156
+ },
157
+ "required": ["userId", "user", "password", "verificationCode"]
158
+ }
159
+ }
74
160
  }
75
161
  },
76
162
  "required": ["framework", "database", "jwtSecret"]
@@ -25,6 +25,9 @@
25
25
  },
26
26
  {
27
27
  "$ref": "panel.ref.json"
28
+ },
29
+ {
30
+ "$ref": "kanban.ref.json"
28
31
  }
29
32
  ]
30
- }
33
+ }
@@ -45,6 +45,9 @@
45
45
  "polarArea"
46
46
  ]
47
47
  },
48
+ "limit": {
49
+ "type": "number"
50
+ },
48
51
  "dimensions": {
49
52
  "type": "object",
50
53
  "properties": {
@@ -21,6 +21,30 @@
21
21
  "properties": {
22
22
  "property": { "type": "string" },
23
23
  "label": { "type": "string" },
24
+ "type": {
25
+ "type": "string",
26
+ "enum": [
27
+ "title",
28
+ "subtitle",
29
+ "description",
30
+ "video",
31
+ "image",
32
+ "images",
33
+ "icon",
34
+ "badge"
35
+ ]
36
+ },
37
+ "isHtml": { "type": "boolean" },
38
+ "isTimestamp": { "type": "boolean" },
39
+ "callToAction": {
40
+ "type": "object",
41
+ "properties": {
42
+ "link": { "type": "string" },
43
+ "usePropertyAsQuery": { "type": "boolean" }
44
+ },
45
+ "required": ["link"]
46
+ },
47
+ "dataType": { "$ref": "types-datatype.ref.json" },
24
48
  "sortable": { "type": "boolean" },
25
49
  "filterable": { "type": "boolean" },
26
50
  "hidden": { "type": "boolean" },
@@ -8,6 +8,9 @@
8
8
  "conditions": {
9
9
  "$ref": "condition.ref.json"
10
10
  },
11
+ "tooltip": {
12
+ "type": "string"
13
+ },
11
14
  "todo": {
12
15
  "type": "string"
13
16
  },
@@ -112,6 +112,9 @@
112
112
  },
113
113
  "relatedEntity": {
114
114
  "type": "string"
115
+ },
116
+ "isExternal": {
117
+ "type": "boolean"
115
118
  }
116
119
  },
117
120
  "required": [
@@ -176,6 +179,9 @@
176
179
  },
177
180
  "relatedEntity": {
178
181
  "type": "string"
182
+ },
183
+ "isExternal": {
184
+ "type": "boolean"
179
185
  }
180
186
  }
181
187
  },
@@ -0,0 +1,73 @@
1
+ {
2
+ "$id": "form-checkbox.ref.json",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "type": {
7
+ "const": "checkbox"
8
+ },
9
+ "name": {
10
+ "type": "string"
11
+ },
12
+ "label": {
13
+ "type": "string"
14
+ },
15
+ "options": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "label": {
21
+ "type": "string"
22
+ },
23
+ "value": {
24
+ "oneOf": [
25
+ { "type": "string" },
26
+ { "type": "number" },
27
+ { "type": "boolean" }
28
+ ]
29
+ },
30
+ "isDisabled": {
31
+ "type": "boolean"
32
+ },
33
+ "isSelected": {
34
+ "type": "boolean"
35
+ }
36
+ },
37
+ "required": ["label", "value"]
38
+ }
39
+ },
40
+ "tooltip": {
41
+ "type": "string"
42
+ },
43
+ "isDisabled": {
44
+ "type": "boolean"
45
+ },
46
+ "isDisabledOnUpdate": {
47
+ "type": "boolean"
48
+ },
49
+ "isHidden": {
50
+ "type": "boolean"
51
+ },
52
+ "isRequired": {
53
+ "type": "boolean"
54
+ },
55
+ "conditions": {
56
+ "$ref": "condition.ref.json"
57
+ },
58
+ "todo": {
59
+ "type": "string"
60
+ },
61
+ "businessRules": {
62
+ "$ref": "business-rules.ref.json"
63
+ },
64
+ "elementDescription": {
65
+ "type": "string"
66
+ },
67
+ "space": {
68
+ "type": "number",
69
+ "enum": [1, 2, 3, 4]
70
+ }
71
+ },
72
+ "required": ["type", "name", "label", "options"]
73
+ }
@@ -26,6 +26,7 @@
26
26
  "clob",
27
27
  "nclob",
28
28
  "decimal",
29
+ "currency",
29
30
  "numeric",
30
31
  "integer",
31
32
  "float",
@@ -72,7 +72,8 @@
72
72
  "enum": [
73
73
  "one-to-one",
74
74
  "one-to-many",
75
- "many-to-many"
75
+ "many-to-many",
76
+ "many-to-one"
76
77
  ]
77
78
  },
78
79
  "fields": {