rapida-partner 1.16.6 → 1.16.7

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 (36) hide show
  1. package/index.ts +2 -2
  2. package/package.json +1 -1
  3. package/rapidaObject.json +1 -0
  4. package/src/constants/options/agendaStatus.ts +3 -0
  5. package/src/constants/options/citiesFromBrazil.ts +27852 -0
  6. package/src/constants/options/countriesFromEarth.ts +1761 -0
  7. package/src/constants/options/currencies.ts +142 -0
  8. package/src/constants/options/eventJobs.ts +94 -0
  9. package/src/constants/options/events.ts +22 -0
  10. package/src/constants/options/hours.ts +26 -0
  11. package/src/constants/options/languages.ts +34 -0
  12. package/src/constants/options/statesFromBrazil.ts +29 -0
  13. package/src/constants/secrets/database.ts +1 -0
  14. package/src/constants/secrets/others.ts +3 -0
  15. package/src/constants/secrets/storage.ts +1 -0
  16. package/src/examples/components/forms/character.form.ts +5 -5
  17. package/src/interfaces/condition.interface.ts +13 -7
  18. package/src/interfaces/form-array.interface.ts +1 -1
  19. package/src/interfaces/form-autocomplete.interface.ts +3 -3
  20. package/src/interfaces/form-button.interface.ts +3 -3
  21. package/src/interfaces/form-datepicker.interface.ts +1 -1
  22. package/src/interfaces/form-fieldset.interface.ts +1 -1
  23. package/src/interfaces/form-file.interface.ts +1 -1
  24. package/src/interfaces/form-inheritance.interface.ts +1 -1
  25. package/src/interfaces/form-input.interface.ts +3 -3
  26. package/src/interfaces/form-numeric.interface.ts +1 -1
  27. package/src/interfaces/form-pattern.interface.ts +1 -1
  28. package/src/interfaces/form-radiogroup.interface.ts +1 -1
  29. package/src/interfaces/form-select.interface.ts +1 -1
  30. package/src/interfaces/form-switch.interface.ts +1 -1
  31. package/src/interfaces/form-tab.interface.ts +2 -2
  32. package/src/interfaces/form.interface.ts +1 -1
  33. package/src/interfaces/list.interface.ts +11 -11
  34. package/src/schemas/condition-body.ref.json +72 -0
  35. package/src/schemas/condition.ref.json +22 -70
  36. package/src/utils/dicionario-visual.html +1 -1
@@ -17,14 +17,14 @@ export interface IList {
17
17
  property?: string; // property taken from dataSource response. e.g.: "email"
18
18
  label?: string; // label to property. e.g.: "E-mail"
19
19
  type?:
20
- | "title"
21
- | "subtitle"
22
- | "description"
23
- | "video"
24
- | "image"
25
- | "images"
26
- | "icon"
27
- | "badge";
20
+ | "title"
21
+ | "subtitle"
22
+ | "description"
23
+ | "video"
24
+ | "image"
25
+ | "images"
26
+ | "icon"
27
+ | "badge";
28
28
  isHtml?: boolean;
29
29
  isLink?: boolean;
30
30
  isTimestamp?: boolean;
@@ -35,7 +35,7 @@ export interface IList {
35
35
  dataType: EDataType;
36
36
  isMultiple?: boolean;
37
37
  isExpansible?: boolean;
38
- conditions?: IFormCondition[];
38
+ conditions?: IFormCondition;
39
39
  businessRules?: IBusinessRule[];
40
40
  todo?: string;
41
41
  }[]; // properties taken from dataSource
@@ -69,7 +69,7 @@ export interface IList {
69
69
  };
70
70
  };
71
71
  businessRules?: IBusinessRule[];
72
- conditions?: IFormCondition[];
72
+ conditions?: IFormCondition;
73
73
  todo?: string;
74
74
  }[];
75
75
  contracts: {
@@ -86,7 +86,7 @@ export interface IList {
86
86
  | "sendEmail"
87
87
  )[];
88
88
  request?: IContractRequest;
89
- conditions?: IFormCondition[];
89
+ conditions?: IFormCondition;
90
90
  businessRules?: IBusinessRule[];
91
91
  userStory?: string;
92
92
  }[];
@@ -0,0 +1,72 @@
1
+ {
2
+ "$id": "condition-body.ref.json",
3
+ "type": "object",
4
+ "properties": {
5
+ "elements": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "key": {
11
+ "type": "string"
12
+ },
13
+ "value": {},
14
+ "comparisonOperator": {
15
+ "enum": [
16
+ "===",
17
+ ">",
18
+ ">=",
19
+ "in",
20
+ "<",
21
+ "<=",
22
+ "!==",
23
+ "nin"
24
+ ]
25
+ },
26
+ "logicalOperator": {
27
+ "enum": [
28
+ "&&",
29
+ "!",
30
+ "nor",
31
+ "||"
32
+ ]
33
+ }
34
+ },
35
+ "required": [
36
+ "key",
37
+ "comparisonOperator"
38
+ ]
39
+ }
40
+ },
41
+ "code": {
42
+ "type": "object",
43
+ "required": [
44
+ "triggerField",
45
+ "code"
46
+ ],
47
+ "properties": {
48
+ "triggerField": {
49
+ "type": "string"
50
+ },
51
+ "code": {
52
+ "type": "string"
53
+ }
54
+ }
55
+ },
56
+ "conditionResponse": {
57
+ "enum": [
58
+ "show",
59
+ "hide",
60
+ "enable",
61
+ "disable",
62
+ "fillFields"
63
+ ]
64
+ },
65
+ "fillFields": {
66
+ "type": "array"
67
+ },
68
+ "buttonId": {
69
+ "type": "string"
70
+ }
71
+ }
72
+ }
@@ -1,73 +1,25 @@
1
1
  {
2
2
  "$id": "condition.ref.json",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "properties": {
7
- "type": {
8
- "type": "string",
9
- "enum": ["property", "enum", "form", "code", "array", "button"]
10
- },
11
- "elements": {
12
- "type": "array",
13
- "items": {
14
- "type": "object",
15
- "properties": {
16
- "key": {
17
- "type": "string"
18
- },
19
- "value": {},
20
- "array": {
21
- "type": "string"
22
- },
23
- "comparisonOperator": {
24
- "type": "string",
25
- "enum": ["===", ">", ">=", "in", "<", "<=", "!==", "nin"]
26
- },
27
- "logicalOperator": {
28
- "type": "string",
29
- "enum": ["&&", "!", "nor", "||"]
30
- }
31
- },
32
- "required": ["key", "comparisonOperator"]
33
- }
34
- },
35
- "code": {
36
- "type": "object",
37
- "properties": {
38
- "triggerField": {
39
- "type": "string"
40
- },
41
- "code": {
42
- "type": "string"
43
- }
44
- },
45
- "required": ["triggerField", "code"]
46
- },
47
- "businessRules": {
48
- "$ref": "business-rules.ref.json"
49
- },
50
- "conditionResponse": {
51
- "type": "string",
52
- "enum": ["show", "hide", "enable", "disable", "fillFields"]
53
- },
54
- "fillFields": {
55
- "type": "array",
56
- "items": {
57
- "type": "object",
58
- "properties": {
59
- "fieldKey": {
60
- "type": "string"
61
- },
62
- "value": {}
63
- },
64
- "required": ["fieldKey", "value"]
65
- }
66
- },
67
- "buttonId": {
68
- "type": "string"
69
- }
3
+ "type": "object",
4
+ "properties": {
5
+ "property": {
6
+ "$ref": "condition-body.ref.json"
70
7
  },
71
- "required": ["type"]
72
- }
73
- }
8
+ "enum": {
9
+ "$ref": "condition-body.ref.json"
10
+ },
11
+ "form": {
12
+ "$ref": "condition-body.ref.json"
13
+ },
14
+ "code": {
15
+ "$ref": "condition-body.ref.json"
16
+ },
17
+ "array": {
18
+ "$ref": "condition-body.ref.json"
19
+ },
20
+ "button": {
21
+ "$ref": "condition-body.ref.json"
22
+ }
23
+ },
24
+ "additionalProperties": false
25
+ }
@@ -491,7 +491,7 @@ rule: Regra 3</pre
491
491
  </div>
492
492
  </div>
493
493
  <div class="element-card">
494
- <h3>Condições (IFormCondition[])</h3>
494
+ <h3>Condições (IFormCondition)</h3>
495
495
  <div class="box-meta box-conditions">
496
496
  <pre>
497
497
  conditionType: form