rapida-partner 1.16.9 → 1.16.11

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.
@@ -23,6 +23,7 @@ export interface IFormAutocomplete {
23
23
  isMultiple?: boolean;
24
24
  businessRules?: IBusinessRule[];
25
25
  elementDescription?: string;
26
+ elementsToClearOnValueChange?: string[];
26
27
  }
27
28
 
28
29
  export interface IOptionsApi {
@@ -31,6 +31,15 @@ export interface IForm {
31
31
  businessRules?: IBusinessRule[];
32
32
  userStory?: string;
33
33
  }[];
34
+ publicContracts: {
35
+ id: string;
36
+ endpoint: string;
37
+ actions: ("create" | "get" | "getById" | "update" | "softDelete" | "hardDelete" | "clone" | "sendEmail")[];
38
+ request?: IContractRequest;
39
+ conditions?: IFormCondition;
40
+ businessRules?: IBusinessRule[];
41
+ userStory?: string;
42
+ }[];
34
43
  flowChart?: IFlowChart;
35
44
  }
36
45
 
@@ -90,4 +90,13 @@ export interface IList {
90
90
  businessRules?: IBusinessRule[];
91
91
  userStory?: string;
92
92
  }[];
93
+ publicContracts: {
94
+ id: string;
95
+ endpoint: string;
96
+ actions: ("create" | "get" | "getById" | "update" | "softDelete" | "hardDelete" | "clone" | "sendEmail")[];
97
+ request?: IContractRequest;
98
+ conditions?: IFormCondition;
99
+ businessRules?: IBusinessRule[];
100
+ userStory?: string;
101
+ }[];
93
102
  }
@@ -46,7 +46,10 @@
46
46
  "type": "array",
47
47
  "items": {
48
48
  "type": "string",
49
- "enum": ["cpf", "cnpj"]
49
+ "enum": [
50
+ "cpf",
51
+ "cnpj"
52
+ ]
50
53
  }
51
54
  },
52
55
  "todo": {
@@ -81,7 +84,10 @@
81
84
  },
82
85
  "paramType": {
83
86
  "type": "string",
84
- "enum": ["query", "path"]
87
+ "enum": [
88
+ "query",
89
+ "path"
90
+ ]
85
91
  },
86
92
  "populate": {
87
93
  "type": "array",
@@ -142,7 +148,10 @@
142
148
  },
143
149
  "paramType": {
144
150
  "type": "string",
145
- "enum": ["query", "path"]
151
+ "enum": [
152
+ "query",
153
+ "path"
154
+ ]
146
155
  },
147
156
  "populate": {
148
157
  "type": "array",
@@ -181,7 +190,18 @@
181
190
  },
182
191
  "isMultiple": {
183
192
  "type": "boolean"
193
+ },
194
+ "elementsToClearOnValueChange": {
195
+ "type": "array",
196
+ "items": {
197
+ "type": "string"
198
+ }
184
199
  }
185
200
  },
186
- "required": ["type", "dataType", "name", "label"]
187
- }
201
+ "required": [
202
+ "type",
203
+ "dataType",
204
+ "name",
205
+ "label"
206
+ ]
207
+ }
@@ -17,7 +17,10 @@
17
17
  },
18
18
  "guards": {
19
19
  "type": "string",
20
- "enum": ["isAuthenticated", "isAuthorized"]
20
+ "enum": [
21
+ "isAuthenticated",
22
+ "isAuthorized"
23
+ ]
21
24
  },
22
25
  "businessRules": {
23
26
  "$ref": "business-rules.ref.json"
@@ -43,7 +46,16 @@
43
46
  "type": "array",
44
47
  "items": {
45
48
  "type": "string",
46
- "enum": ["create", "get", "getById", "update", "softDelete", "hardDelete", "clone", "sendEmail"]
49
+ "enum": [
50
+ "create",
51
+ "get",
52
+ "getById",
53
+ "update",
54
+ "softDelete",
55
+ "hardDelete",
56
+ "clone",
57
+ "sendEmail"
58
+ ]
47
59
  }
48
60
  },
49
61
  "request": {
@@ -90,7 +102,11 @@
90
102
  },
91
103
  "relationship": {
92
104
  "type": "string",
93
- "enum": ["one-to-one", "one-to-many", "many-to-many"]
105
+ "enum": [
106
+ "one-to-one",
107
+ "one-to-many",
108
+ "many-to-many"
109
+ ]
94
110
  },
95
111
  "fields": {
96
112
  "type": "array",
@@ -104,7 +120,10 @@
104
120
  "$ref": "types-datatype.ref.json"
105
121
  }
106
122
  },
107
- "required": ["name", "dataType"]
123
+ "required": [
124
+ "name",
125
+ "dataType"
126
+ ]
108
127
  }
109
128
  },
110
129
  "isHidden": {
@@ -169,7 +188,10 @@
169
188
  "$ref": "business-rules.ref.json"
170
189
  }
171
190
  },
172
- "required": ["name", "dataType"]
191
+ "required": [
192
+ "name",
193
+ "dataType"
194
+ ]
173
195
  }
174
196
  },
175
197
  "relatedEntity": {
@@ -196,7 +218,10 @@
196
218
  }
197
219
  }
198
220
  },
199
- "required": ["fields", "contractId"]
221
+ "required": [
222
+ "fields",
223
+ "contractId"
224
+ ]
200
225
  }
201
226
  },
202
227
  "required": [
@@ -223,7 +248,10 @@
223
248
  }
224
249
  }
225
250
  },
226
- "required": ["entity", "fields"]
251
+ "required": [
252
+ "entity",
253
+ "fields"
254
+ ]
227
255
  },
228
256
  "conditions": {
229
257
  "$ref": "condition.ref.json"
@@ -235,7 +263,250 @@
235
263
  "type": "string"
236
264
  }
237
265
  },
238
- "required": ["id", "endpoint", "actions"]
266
+ "required": [
267
+ "id",
268
+ "endpoint",
269
+ "actions"
270
+ ]
271
+ }
272
+ },
273
+ "publicContracts": {
274
+ "type": "array",
275
+ "items": {
276
+ "type": "object",
277
+ "properties": {
278
+ "id": {
279
+ "type": "string"
280
+ },
281
+ "endpoint": {
282
+ "type": "string"
283
+ },
284
+ "actions": {
285
+ "type": "array",
286
+ "items": {
287
+ "type": "string",
288
+ "enum": [
289
+ "create",
290
+ "get",
291
+ "getById",
292
+ "update",
293
+ "softDelete",
294
+ "hardDelete",
295
+ "clone",
296
+ "sendEmail"
297
+ ]
298
+ }
299
+ },
300
+ "request": {
301
+ "type": "object",
302
+ "properties": {
303
+ "entity": {
304
+ "type": "string"
305
+ },
306
+ "description": {
307
+ "type": "string"
308
+ },
309
+ "fields": {
310
+ "type": "array",
311
+ "items": {
312
+ "type": "object",
313
+ "properties": {
314
+ "name": {
315
+ "type": "string"
316
+ },
317
+ "dataType": {
318
+ "$ref": "types-datatype.ref.json"
319
+ },
320
+ "isRequired": {
321
+ "type": "boolean"
322
+ },
323
+ "requiredOneOf": {
324
+ "type": "array",
325
+ "items": {
326
+ "type": "string"
327
+ }
328
+ },
329
+ "isHidden": {
330
+ "type": "boolean",
331
+ "description": "If true, the attribute will not be exposed in the API."
332
+ },
333
+ "foreignKey": {
334
+ "type": "object",
335
+ "properties": {
336
+ "entity": {
337
+ "type": "string"
338
+ },
339
+ "connectionAttribute": {
340
+ "type": "string"
341
+ },
342
+ "relationship": {
343
+ "type": "string",
344
+ "enum": [
345
+ "one-to-one",
346
+ "one-to-many",
347
+ "many-to-many"
348
+ ]
349
+ },
350
+ "fields": {
351
+ "type": "array",
352
+ "items": {
353
+ "type": "object",
354
+ "properties": {
355
+ "name": {
356
+ "type": "string"
357
+ },
358
+ "dataType": {
359
+ "$ref": "types-datatype.ref.json"
360
+ }
361
+ },
362
+ "required": [
363
+ "name",
364
+ "dataType"
365
+ ]
366
+ }
367
+ },
368
+ "isHidden": {
369
+ "type": "boolean",
370
+ "description": "If true, the connection attribute will not be exposed in the API."
371
+ }
372
+ },
373
+ "required": [
374
+ "entity",
375
+ "connectionAttribute",
376
+ "relationship"
377
+ ]
378
+ },
379
+ "isPrimaryKey": {
380
+ "type": "boolean"
381
+ },
382
+ "minSize": {
383
+ "type": "number"
384
+ },
385
+ "maxSize": {
386
+ "type": "number"
387
+ },
388
+ "enum": {
389
+ "type": "array",
390
+ "items": {
391
+ "oneOf": [
392
+ {
393
+ "type": "string"
394
+ },
395
+ {
396
+ "type": "number"
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "isUnique": {
402
+ "type": "boolean"
403
+ },
404
+ "uniqueComposedFields": {
405
+ "type": "array",
406
+ "items": {
407
+ "type": "string"
408
+ }
409
+ },
410
+ "actionsExceptions": {
411
+ "type": "array",
412
+ "items": {
413
+ "type": "string",
414
+ "enum": [
415
+ "create",
416
+ "get",
417
+ "getById",
418
+ "update",
419
+ "softDelete",
420
+ "hardDelete",
421
+ "clone",
422
+ "sendEmail"
423
+ ]
424
+ }
425
+ },
426
+ "businessRules": {
427
+ "$ref": "business-rules.ref.json"
428
+ }
429
+ },
430
+ "required": [
431
+ "name",
432
+ "dataType"
433
+ ]
434
+ }
435
+ },
436
+ "relatedEntity": {
437
+ "type": "object",
438
+ "properties": {
439
+ "entity": {
440
+ "type": "string",
441
+ "description": "An attribute called 'relatedEntity' will be created in the main entity to refer to an entity that will be related to the main one."
442
+ },
443
+ "connectionAttribute": {
444
+ "type": "string",
445
+ "description": "An attribute called 'relatedEntityId' will be created in the main entity to set the value of the id over 'relatedEntity' to make the connection."
446
+ },
447
+ "fieldsFromEntity": {
448
+ "type": "array",
449
+ "items": {
450
+ "type": "object",
451
+ "properties": {
452
+ "fields": {
453
+ "$ref": "form.ref.json"
454
+ },
455
+ "contractId": {
456
+ "type": "string"
457
+ }
458
+ }
459
+ },
460
+ "required": [
461
+ "fields",
462
+ "contractId"
463
+ ]
464
+ }
465
+ },
466
+ "required": [
467
+ "entity",
468
+ "connectionAttribute",
469
+ "fieldsFromEntity"
470
+ ]
471
+ },
472
+ "uniqueConstraints": {
473
+ "type": "array",
474
+ "items": {
475
+ "type": "object",
476
+ "properties": {
477
+ "name": {
478
+ "type": "string"
479
+ },
480
+ "fields": {
481
+ "type": "array",
482
+ "items": {
483
+ "type": "string"
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
489
+ },
490
+ "required": [
491
+ "entity",
492
+ "fields"
493
+ ]
494
+ },
495
+ "conditions": {
496
+ "$ref": "condition.ref.json"
497
+ },
498
+ "businessRules": {
499
+ "$ref": "business-rules.ref.json"
500
+ },
501
+ "userStory": {
502
+ "type": "string"
503
+ }
504
+ },
505
+ "required": [
506
+ "id",
507
+ "endpoint",
508
+ "actions"
509
+ ]
239
510
  }
240
511
  },
241
512
  "flowChart": {
@@ -246,7 +517,11 @@
246
517
  "properties": {
247
518
  "status": {
248
519
  "type": "string",
249
- "enum": ["toDo", "inProgress", "done"]
520
+ "enum": [
521
+ "toDo",
522
+ "inProgress",
523
+ "done"
524
+ ]
250
525
  },
251
526
  "assignesIds": {
252
527
  "type": "array",
@@ -272,15 +547,28 @@
272
547
  },
273
548
  "priority": {
274
549
  "type": "string",
275
- "enum": ["low", "medium", "high", "urgent"]
550
+ "enum": [
551
+ "low",
552
+ "medium",
553
+ "high",
554
+ "urgent"
555
+ ]
276
556
  },
277
557
  "storyPoints": {
278
558
  "type": "number",
279
559
  "minimum": 0
280
560
  }
281
561
  },
282
- "required": ["status"]
562
+ "required": [
563
+ "status"
564
+ ]
283
565
  }
284
566
  },
285
- "required": ["componentType", "id", "title", "elements", "contracts"]
286
- }
567
+ "required": [
568
+ "componentType",
569
+ "id",
570
+ "title",
571
+ "elements",
572
+ "contracts"
573
+ ]
574
+ }