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.
- package/index.ts +2 -2
- package/package.json +1 -1
- package/rapidaObject.json +1 -0
- package/src/constants/options/agendaStatus.ts +3 -0
- package/src/constants/options/citiesFromBrazil.ts +27852 -0
- package/src/constants/options/countriesFromEarth.ts +1761 -0
- package/src/constants/options/currencies.ts +142 -0
- package/src/constants/options/eventJobs.ts +94 -0
- package/src/constants/options/events.ts +22 -0
- package/src/constants/options/hours.ts +26 -0
- package/src/constants/options/languages.ts +34 -0
- package/src/constants/options/statesFromBrazil.ts +29 -0
- package/src/constants/secrets/database.ts +1 -0
- package/src/constants/secrets/others.ts +3 -0
- package/src/constants/secrets/storage.ts +1 -0
- package/src/examples/components/forms/character.form.ts +5 -5
- package/src/interfaces/condition.interface.ts +13 -7
- package/src/interfaces/form-array.interface.ts +1 -1
- package/src/interfaces/form-autocomplete.interface.ts +3 -3
- package/src/interfaces/form-button.interface.ts +3 -3
- package/src/interfaces/form-datepicker.interface.ts +1 -1
- package/src/interfaces/form-fieldset.interface.ts +1 -1
- package/src/interfaces/form-file.interface.ts +1 -1
- package/src/interfaces/form-inheritance.interface.ts +1 -1
- package/src/interfaces/form-input.interface.ts +3 -3
- package/src/interfaces/form-numeric.interface.ts +1 -1
- package/src/interfaces/form-pattern.interface.ts +1 -1
- package/src/interfaces/form-radiogroup.interface.ts +1 -1
- package/src/interfaces/form-select.interface.ts +1 -1
- package/src/interfaces/form-switch.interface.ts +1 -1
- package/src/interfaces/form-tab.interface.ts +2 -2
- package/src/interfaces/form.interface.ts +1 -1
- package/src/interfaces/list.interface.ts +11 -11
- package/src/schemas/condition-body.ref.json +72 -0
- package/src/schemas/condition.ref.json +22 -70
- package/src/utils/dicionario-visual.html +1 -1
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export const CURRENCIES = [
|
|
2
|
+
{ label: "Australia Dollar", value: "AUD" },
|
|
3
|
+
{ label: "Great Britain Pound", value: "GBP" },
|
|
4
|
+
{ label: "Euro", value: "EUR" },
|
|
5
|
+
{ label: "Japan Yen", value: "JPY" },
|
|
6
|
+
{ label: "Switzerland Franc", value: "CHF" },
|
|
7
|
+
{ label: "USA Dollar", value: "USD" },
|
|
8
|
+
{ label: "Afghanistan Afghani", value: "AFN" },
|
|
9
|
+
{ label: "Albania Lek", value: "ALL" },
|
|
10
|
+
{ label: "Algeria Dinar", value: "DZD" },
|
|
11
|
+
{ label: "Angola Kwanza", value: "AOA" },
|
|
12
|
+
{ label: "Argentina Peso", value: "ARS" },
|
|
13
|
+
{ label: "Armenia Dram", value: "AMD" },
|
|
14
|
+
{ label: "Aruba Florin", value: "AWG" },
|
|
15
|
+
{ label: "Austria Schilling", value: "ATS" },
|
|
16
|
+
{ label: "Belgium Franc", value: "BEF" },
|
|
17
|
+
{ label: "Azerbaijan New Manat", value: "AZN" },
|
|
18
|
+
{ label: "Bahamas Dollar", value: "BSD" },
|
|
19
|
+
{ label: "Bahrain Dinar", value: "BHD" },
|
|
20
|
+
{ label: "Bangladesh Taka", value: "BDT" },
|
|
21
|
+
{ label: "Barbados Dollar", value: "BBD" },
|
|
22
|
+
{ label: "Belarus Ruble", value: "BYR" },
|
|
23
|
+
{ label: "Belize Dollar", value: "BZD" },
|
|
24
|
+
{ label: "Bermuda Dollar", value: "BMD" },
|
|
25
|
+
{ label: "Bhutan Ngultrum", value: "BTN" },
|
|
26
|
+
{ label: "Bolivia Boliviano", value: "BOB" },
|
|
27
|
+
{ label: "Bosnia Mark", value: "BAM" },
|
|
28
|
+
{ label: "Botswana Pula", value: "BWP" },
|
|
29
|
+
{ label: "Brazil Real", value: "BRL" },
|
|
30
|
+
{ label: "Brunei Dollar", value: "BND" },
|
|
31
|
+
{ label: "Bulgaria Lev", value: "BGN" },
|
|
32
|
+
{ label: "Burundi Franc", value: "BIF" },
|
|
33
|
+
{ label: "CFA Franc BCEAO", value: "XOF" },
|
|
34
|
+
{ label: "CFA Franc BEAC", value: "XAF" },
|
|
35
|
+
{ label: "CFP Franc", value: "XPF" },
|
|
36
|
+
{ label: "Cambodia Riel", value: "KHR" },
|
|
37
|
+
{ label: "Canada Dollar", value: "CAD" },
|
|
38
|
+
{ label: "Cape Verde Escudo", value: "CVE" },
|
|
39
|
+
{ label: "Cayman Islands Dollar", value: "KYD" },
|
|
40
|
+
{ label: "Chili Peso", value: "CLP" },
|
|
41
|
+
{ label: "China Yuan/Renminbi", value: "CNY" },
|
|
42
|
+
{ label: "Colombia Peso", value: "COP" },
|
|
43
|
+
{ label: "Comoros Franc", value: "KMF" },
|
|
44
|
+
{ label: "Congo Franc", value: "CDF" },
|
|
45
|
+
{ label: "Costa Rica Colon", value: "CRC" },
|
|
46
|
+
{ label: "Croatia Kuna", value: "HRK" },
|
|
47
|
+
{ label: "Cuba Convertible Peso", value: "CUC" },
|
|
48
|
+
{ label: "Cuba Peso", value: "CUP" },
|
|
49
|
+
{ label: "Cyprus Pound", value: "CYP" },
|
|
50
|
+
{ label: "Czech Koruna", value: "CZK" },
|
|
51
|
+
{ label: "Denmark Krone", value: "DKK" },
|
|
52
|
+
{ label: "Djibouti Franc", value: "DJF" },
|
|
53
|
+
{ label: "Dominican Republic Peso", value: "DOP" },
|
|
54
|
+
{ label: "East Caribbean Dollar", value: "XCD" },
|
|
55
|
+
{ label: "Egypt Pound", value: "EGP" },
|
|
56
|
+
{ label: "El Salvador Colon", value: "SVC" },
|
|
57
|
+
{ label: "Estonia Kroon", value: "EEK" },
|
|
58
|
+
{ label: "Ethiopia Birr", value: "ETB" },
|
|
59
|
+
{ label: "Falkland Islands Pound", value: "FKP" },
|
|
60
|
+
{ label: "Finland Markka", value: "FIM" },
|
|
61
|
+
{ label: "Fiji Dollar", value: "FJD" },
|
|
62
|
+
{ label: "Gambia Dalasi", value: "GMD" },
|
|
63
|
+
{ label: "Georgia Lari", value: "GEL" },
|
|
64
|
+
{ label: "Germany Mark", value: "DMK" },
|
|
65
|
+
{ label: "Ghana New Cedi", value: "GHS" },
|
|
66
|
+
{ label: "Gibraltar Pound", value: "GIP" },
|
|
67
|
+
{ label: "Greece Drachma", value: "GRD" },
|
|
68
|
+
{ label: "Guatemala Quetzal", value: "GTQ" },
|
|
69
|
+
{ label: "Guinea Franc", value: "GNF" },
|
|
70
|
+
{ label: "Guyana Dollar", value: "GYD" },
|
|
71
|
+
{ label: "Haiti Gourde", value: "HTG" },
|
|
72
|
+
{ label: "Honduras Lempira", value: "HNL" },
|
|
73
|
+
{ label: "Hong Kong Dollar", value: "HKD" },
|
|
74
|
+
{ label: "Hungary Forint", value: "HUF" },
|
|
75
|
+
{ label: "Iceland Krona", value: "ISK" },
|
|
76
|
+
{ label: "India Rupee", value: "INR" },
|
|
77
|
+
{ label: "Indonesia Rupiah", value: "IDR" },
|
|
78
|
+
{ label: "Iran Rial", value: "IRR" },
|
|
79
|
+
{ label: "Iraq Dinar", value: "IQD" },
|
|
80
|
+
{ label: "Ireland Pound", value: "IED" },
|
|
81
|
+
{ label: "Israel New Shekel", value: "ILS" },
|
|
82
|
+
{ label: "Italy Lira", value: "ITL" },
|
|
83
|
+
{ label: "Jamaica Dollar", value: "JMD" },
|
|
84
|
+
{ label: "Jordan Dinar", value: "JOD" },
|
|
85
|
+
{ label: "Kazakhstan Tenge", value: "KZT" },
|
|
86
|
+
{ label: "Kenya Shilling", value: "KES" },
|
|
87
|
+
{ label: "Kuwait Dinar", value: "KWD" },
|
|
88
|
+
{ label: "Kyrgyzstan Som", value: "KGS" },
|
|
89
|
+
{ label: "Laos Kip", value: "LAK" },
|
|
90
|
+
{ label: "Latvia Lats", value: "LVL" },
|
|
91
|
+
{ label: "Lebanon Pound", value: "LBP" },
|
|
92
|
+
{ label: "Lesotho Loti", value: "LSL" },
|
|
93
|
+
{ label: "Liberia Dollar", value: "LRD" },
|
|
94
|
+
{ label: "Libya Dinar", value: "LYD" },
|
|
95
|
+
{ label: "Lithuania Litas", value: "LTL" },
|
|
96
|
+
{ label: "Luxembourg Franc", value: "LUF" },
|
|
97
|
+
{ label: "Macau Pataca", value: "MOP" },
|
|
98
|
+
{ label: "Macedonia Denar", value: "MKD" },
|
|
99
|
+
{ label: "Malagasy Ariary", value: "MGA" },
|
|
100
|
+
{ label: "Malawi Kwacha", value: "MWK" },
|
|
101
|
+
{ label: "Malaysia Ringgit", value: "MYR" },
|
|
102
|
+
{ label: "Maldives Rufiyaa", value: "MVR" },
|
|
103
|
+
{ label: "Malta Lira", value: "MTL" },
|
|
104
|
+
{ label: "Mauritania Ouguiya", value: "MRO" },
|
|
105
|
+
{ label: "Mauritius Rupee", value: "MUR" },
|
|
106
|
+
{ label: "Mexico Peso", value: "MXN" },
|
|
107
|
+
{ label: "Moldova Leu", value: "MDL" },
|
|
108
|
+
{ label: "Mongolia Tugrik", value: "MNT" },
|
|
109
|
+
{ label: "Morocco Dirham", value: "MAD" },
|
|
110
|
+
{ label: "Mozambique New Metical", value: "MZN" },
|
|
111
|
+
{ label: "Myanmar Kyat", value: "MMK" },
|
|
112
|
+
{ label: "NL Antilles Guilder", value: "ANG" },
|
|
113
|
+
{ label: "Namibia Dollar", value: "NAD" },
|
|
114
|
+
{ label: "Nepal Rupee", value: "NPR" },
|
|
115
|
+
{ label: "New Zealand Dollar", value: "NZD" },
|
|
116
|
+
{ label: "Nicaragua Cordoba Oro", value: "NIO" },
|
|
117
|
+
{ label: "Nigeria Naira", value: "NGN" },
|
|
118
|
+
{ label: "North Korea Won", value: "KPW" },
|
|
119
|
+
{ label: "Norway Kroner", value: "NOK" },
|
|
120
|
+
{ label: "Oman Rial", value: "OMR" },
|
|
121
|
+
{ label: "Pakistan Rupee", value: "PKR" },
|
|
122
|
+
{ label: "Panama Balboa", value: "PAB" },
|
|
123
|
+
{ label: "Papua New Guinea Kina", value: "PGK" },
|
|
124
|
+
{ label: "Paraguay Guarani", value: "PYG" },
|
|
125
|
+
{ label: "Peru Nuevo Sol", value: "PEN" },
|
|
126
|
+
{ label: "Philippines Peso", value: "PHP" },
|
|
127
|
+
{ label: "Poland Zloty", value: "PLN" },
|
|
128
|
+
{ label: "Portugal Escudo", value: "PTE" },
|
|
129
|
+
{ label: "Qatar Rial", value: "QAR" },
|
|
130
|
+
{ label: "Romania New Lei", value: "RON" },
|
|
131
|
+
{ label: "Russia Rouble", value: "RUB" },
|
|
132
|
+
{ label: "Rwanda Franc", value: "RWF" },
|
|
133
|
+
{ label: "Samoa Tala", value: "WST" },
|
|
134
|
+
{ label: "Saudi Arabia Riyal", value: "SAR" },
|
|
135
|
+
{ label: "Singapore Dollar", value: "SGD" },
|
|
136
|
+
{ label: "Solomon Islands Dollar", value: "SBD" },
|
|
137
|
+
{ label: "South Africa Rand", value: "ZAR" },
|
|
138
|
+
{ label: "Sri Lanka Rupee", value: "LKR" },
|
|
139
|
+
{ label: "Sweden Krona", value: "SEK" },
|
|
140
|
+
{ label: "Taiwan Dollar", value: "TWD" },
|
|
141
|
+
{ label: "Thailand Baht", value: "THB" },
|
|
142
|
+
];
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export const EVENT_JOBS: {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}[] = [
|
|
5
|
+
{label: 'Animador', value: 'entertainer'},
|
|
6
|
+
{label: 'Apresentador', value: 'host'},
|
|
7
|
+
{label: 'Apoio técnico', value: 'technicalSupport'},
|
|
8
|
+
{label: 'Arquiteto de eventos', value: 'eventArchitect'},
|
|
9
|
+
{label: 'Artesão', value: 'artisan'},
|
|
10
|
+
{label: 'Assistente de bilheteria', value: 'ticketBoothAssistant'},
|
|
11
|
+
{label: 'Assistente de figurino', value: 'costumeAssistant'},
|
|
12
|
+
{label: 'Assistente de logística', value: 'logisticsAssistant'},
|
|
13
|
+
{label: 'Assistente de palco', value: 'stageAssistant'},
|
|
14
|
+
{label: 'Assistente de produção', value: 'productionAssistant'},
|
|
15
|
+
{label: 'Assistente de som', value: 'soundAssistant'},
|
|
16
|
+
{label: 'Assessor de imprensa', value: 'pressOfficer'},
|
|
17
|
+
{label: 'Atendente', value: 'attendant'},
|
|
18
|
+
{label: 'Auxiliar administrativo', value: 'administrativeAssistant'},
|
|
19
|
+
{label: 'Auxiliar de credenciamento', value: 'registrationAssistant'},
|
|
20
|
+
{label: 'Auxiliar de limpeza', value: 'cleaningAssistant'},
|
|
21
|
+
{label: 'Bailarino', value: 'dancer'},
|
|
22
|
+
{label: 'Barman', value: 'bartender'},
|
|
23
|
+
{label: 'Bilheteiro', value: 'ticketSeller'},
|
|
24
|
+
{label: 'Cabeleireiro', value: 'hairdresser'},
|
|
25
|
+
{label: 'Carregador', value: 'porter'},
|
|
26
|
+
{label: 'Cerimonialista', value: 'ceremonialist'},
|
|
27
|
+
{label: 'Chef de cozinha', value: 'headChef'},
|
|
28
|
+
{label: 'Chefe de cozinha', value: 'kitchenChief'},
|
|
29
|
+
{label: 'Chefe de logística', value: 'logisticsChief'},
|
|
30
|
+
{label: 'Chefe de segurança', value: 'chiefOfSecurity'},
|
|
31
|
+
{label: 'Cinegrafista', value: 'cameraman'},
|
|
32
|
+
{label: 'Conferencista', value: 'keynoteSpeaker'},
|
|
33
|
+
{label: 'Coordenador de credenciamento', value: 'registrationCoordinator'},
|
|
34
|
+
{label: 'Copeiro', value: 'pantryWorker'},
|
|
35
|
+
{label: 'Cozinheiro', value: 'cook'},
|
|
36
|
+
{label: 'Designer de interiores', value: 'interiorDesigner'},
|
|
37
|
+
{label: 'Designer gráfico', value: 'graphicDesigner'},
|
|
38
|
+
{label: 'DJ', value: 'dj'},
|
|
39
|
+
{label: 'Editor de vídeo', value: 'videoEditor'},
|
|
40
|
+
{label: 'Empregador de equipe', value: 'staffRecruiter'},
|
|
41
|
+
{label: 'Enfermeiro', value: 'nurse'},
|
|
42
|
+
{label: 'Engenheiro de som', value: 'soundEngineer'},
|
|
43
|
+
{label: 'Figurante', value: 'extra'},
|
|
44
|
+
{label: 'Figurinista', value: 'costumeDesigner'},
|
|
45
|
+
{label: 'Fiscal de entrada', value: 'entryInspector'},
|
|
46
|
+
{label: 'Fotógrafo', value: 'photographer'},
|
|
47
|
+
{label: 'Garçom', value: 'waiter'},
|
|
48
|
+
{label: 'Gerente de bilheteria', value: 'ticketOfficeManager'},
|
|
49
|
+
{label: 'Gerente de marketing', value: 'marketingManager'},
|
|
50
|
+
{label: 'Gerente de operações', value: 'operationsManager'},
|
|
51
|
+
{label: 'Guia turístico', value: 'tourGuide'},
|
|
52
|
+
{label: 'Ilusionista', value: 'illusionist'},
|
|
53
|
+
{label: 'Instrutor de atividades', value: 'activityInstructor'},
|
|
54
|
+
{label: 'Instrutor de brigada de incêndio', value: 'fireBrigadeInstructor'},
|
|
55
|
+
{label: 'Instrutor de workshop', value: 'workshopInstructor'},
|
|
56
|
+
{label: 'Intérprete de Libras', value: 'signLanguageInterpreter'},
|
|
57
|
+
{label: 'Locutor', value: 'announcer'},
|
|
58
|
+
{label: 'Maquiador', value: 'makeupArtist'},
|
|
59
|
+
{label: 'Malabarista', value: 'juggler'},
|
|
60
|
+
{label: 'Manobrista', value: 'valet'},
|
|
61
|
+
{label: 'Médico', value: 'doctor'},
|
|
62
|
+
{label: 'Mestre de cerimônias', value: 'masterOfCeremonies'},
|
|
63
|
+
{label: 'Moderador de painel', value: 'panelModerator'},
|
|
64
|
+
{label: 'Monitor infantil', value: 'kidsMonitor'},
|
|
65
|
+
{label: 'Montador de palco', value: 'stageBuilder'},
|
|
66
|
+
{label: 'Músico', value: 'musician'},
|
|
67
|
+
{label: 'Operador de drones', value: 'droneOperator'},
|
|
68
|
+
{label: 'Operador de projeção', value: 'projectionOperator'},
|
|
69
|
+
{label: 'Operador de telão', value: 'screenOperator'},
|
|
70
|
+
{label: 'Organizador de feira', value: 'fairOrganizer'},
|
|
71
|
+
{label: 'Palestrante', value: 'speaker'},
|
|
72
|
+
{label: 'Personal stylist', value: 'personalStylist'},
|
|
73
|
+
{label: 'Personal trainer', value: 'personalTrainer'},
|
|
74
|
+
{label: 'Planejador de eventos', value: 'eventPlanner'},
|
|
75
|
+
{label: 'Porteiro', value: 'doorman'},
|
|
76
|
+
{label: 'Produtor', value: 'producer'},
|
|
77
|
+
{label: 'Recepcionista', value: 'receptionist'},
|
|
78
|
+
{label: 'Relações públicas', value: 'publicRelations'},
|
|
79
|
+
{label: 'Segurança', value: 'securityGuard'},
|
|
80
|
+
{label: 'Social media', value: 'socialMediaManager'},
|
|
81
|
+
{label: 'Socorrista', value: 'paramedic'},
|
|
82
|
+
{label: 'Sommelier', value: 'sommelier'},
|
|
83
|
+
{label: 'Supervisor de eventos', value: 'eventSupervisor'},
|
|
84
|
+
{label: 'Supervisor de segurança', value: 'securitySupervisor'},
|
|
85
|
+
{label: 'Técnico de iluminação', value: 'lightingTechnician'},
|
|
86
|
+
{label: 'Técnico de informática', value: 'itTechnician'},
|
|
87
|
+
{label: 'Técnico de palco', value: 'stageTechnician'},
|
|
88
|
+
{label: 'Técnico de som', value: 'soundTechnician'},
|
|
89
|
+
{label: 'Terapeuta', value: 'therapist'},
|
|
90
|
+
{label: 'Tradutor', value: 'translator'},
|
|
91
|
+
{label: 'Vendedor de ingressos', value: 'ticketSalesperson'},
|
|
92
|
+
{label: 'Vigia', value: 'watchman'},
|
|
93
|
+
{label: 'Vocalista', value: 'leadSinger'},
|
|
94
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const EVENTS= [
|
|
2
|
+
{ label: "Casamento", value: "wedding" },
|
|
3
|
+
{ label: "Aniversário", value: "birthday" },
|
|
4
|
+
{ label: "Batizado", value: "baptism" },
|
|
5
|
+
{ label: "Festa de 15 anos", value: "sweetFifteenParty" },
|
|
6
|
+
{ label: "Palestra", value: "lecture" },
|
|
7
|
+
{ label: "Congresso", value: "conference" },
|
|
8
|
+
{ label: "Formatura", value: "graduation" },
|
|
9
|
+
{ label: "Reunião Corporativa", value: "corporateMeeting" },
|
|
10
|
+
{ label: "Workshop", value: "workshop" },
|
|
11
|
+
{ label: "Feira", value: "fair" },
|
|
12
|
+
{ label: "Show", value: "concert" },
|
|
13
|
+
{ label: "Seminário", value: "seminar" },
|
|
14
|
+
{ label: "Exposição", value: "exhibition" },
|
|
15
|
+
{ label: "Coquetel", value: "cocktailParty" },
|
|
16
|
+
{ label: "Chá de Bebê", value: "babyShower" },
|
|
17
|
+
{ label: "Inauguração", value: "openingEvent" },
|
|
18
|
+
{ label: "Despedida de Solteiro", value: "bachelorParty" },
|
|
19
|
+
{ label: "Despedida de Solteira", value: "bacheloretteParty" },
|
|
20
|
+
{ label: "Jantar de Gala", value: "galaDinner" },
|
|
21
|
+
{ label: "Festival", value: "festival" },
|
|
22
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const HOURS = [
|
|
2
|
+
{ label: '00h00', value: '0' },
|
|
3
|
+
{ label: '01h00', value: '1' },
|
|
4
|
+
{ label: '02h00', value: '2' },
|
|
5
|
+
{ label: '03h00', value: '3' },
|
|
6
|
+
{ label: '04h00', value: '4' },
|
|
7
|
+
{ label: '05h00', value: '5' },
|
|
8
|
+
{ label: '06h00', value: '6' },
|
|
9
|
+
{ label: '07h00', value: '7' },
|
|
10
|
+
{ label: '08h00', value: '8' },
|
|
11
|
+
{ label: '09h00', value: '9' },
|
|
12
|
+
{ label: '10h00', value: '10' },
|
|
13
|
+
{ label: '11h00', value: '11' },
|
|
14
|
+
{ label: '12h00', value: '12' },
|
|
15
|
+
{ label: '13h00', value: '13' },
|
|
16
|
+
{ label: '14h00', value: '14' },
|
|
17
|
+
{ label: '15h00', value: '15' },
|
|
18
|
+
{ label: '16h00', value: '16' },
|
|
19
|
+
{ label: '17h00', value: '17' },
|
|
20
|
+
{ label: '18h00', value: '18' },
|
|
21
|
+
{ label: '19h00', value: '19' },
|
|
22
|
+
{ label: '20h00', value: '20' },
|
|
23
|
+
{ label: '21h00', value: '21' },
|
|
24
|
+
{ label: '22h00', value: '22' },
|
|
25
|
+
{ label: '23h00', value: '23' },
|
|
26
|
+
];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const LANGUAGES: {
|
|
2
|
+
originalName: string;
|
|
3
|
+
portugueseName: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[] = [
|
|
6
|
+
{originalName: 'English', portugueseName: 'Inglês', value: 'english'},
|
|
7
|
+
{originalName: 'Español', portugueseName: 'Espanhol', value: 'spanish'},
|
|
8
|
+
{originalName: 'Français', portugueseName: 'Francês', value: 'french'},
|
|
9
|
+
{originalName: 'Deutsch', portugueseName: 'Alemão', value: 'german'},
|
|
10
|
+
{originalName: 'Italiano', portugueseName: 'Italiano', value: 'italian'},
|
|
11
|
+
{originalName: 'Русский', portugueseName: 'Russo', value: 'russian'},
|
|
12
|
+
{originalName: '中文', portugueseName: 'Chinês', value: 'chinese'},
|
|
13
|
+
{originalName: '日本語', portugueseName: 'Japonês', value: 'japanese'},
|
|
14
|
+
{originalName: '한국어', portugueseName: 'Coreano', value: 'korean'},
|
|
15
|
+
{originalName: 'العربية', portugueseName: 'Árabe', value: 'arabic'},
|
|
16
|
+
{originalName: 'हिन्दी', portugueseName: 'Hindi', value: 'hindi'},
|
|
17
|
+
{originalName: 'Türkçe', portugueseName: 'Turco', value: 'turkish'},
|
|
18
|
+
{originalName: 'Português', portugueseName: 'Português', value: 'portuguese'},
|
|
19
|
+
{originalName: 'Nederlands', portugueseName: 'Holandês', value: 'dutch'},
|
|
20
|
+
{originalName: 'Polski', portugueseName: 'Polonês', value: 'polish'},
|
|
21
|
+
{originalName: 'Ελληνικά', portugueseName: 'Grego', value: 'greek'},
|
|
22
|
+
{originalName: 'Magyar', portugueseName: 'Húngaro', value: 'hungarian'},
|
|
23
|
+
{originalName: 'Svenska', portugueseName: 'Sueco', value: 'swedish'},
|
|
24
|
+
{originalName: 'Čeština', portugueseName: 'Tcheco', value: 'czech'},
|
|
25
|
+
{originalName: 'Suomi', portugueseName: 'Finlandês', value: 'finnish'},
|
|
26
|
+
{originalName: 'Dansk', portugueseName: 'Dinamarquês', value: 'danish'},
|
|
27
|
+
{
|
|
28
|
+
originalName: 'Bahasa Indonesia',
|
|
29
|
+
portugueseName: 'Indonésio',
|
|
30
|
+
value: 'indonesian',
|
|
31
|
+
},
|
|
32
|
+
{originalName: 'Українська', portugueseName: 'Ucraniano', value: 'ukrainian'},
|
|
33
|
+
{originalName: 'Română', portugueseName: 'Romeno', value: 'romanian'},
|
|
34
|
+
];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const STATES_FROM_BRAZIL = [
|
|
2
|
+
{ label: "Acre", value: "acre" },
|
|
3
|
+
{ label: "Alagoas", value: "alagoas" },
|
|
4
|
+
{ label: "Amapá", value: "amapa" },
|
|
5
|
+
{ label: "Amazonas", value: "amazonas" },
|
|
6
|
+
{ label: "Bahia", value: "bahia" },
|
|
7
|
+
{ label: "Ceará", value: "ceara" },
|
|
8
|
+
{ label: "Distrito Federal", value: "distritoFederal" },
|
|
9
|
+
{ label: "Espírito Santo", value: "espiritoSanto" },
|
|
10
|
+
{ label: "Goiás", value: "goias" },
|
|
11
|
+
{ label: "Maranhão", value: "maranhao" },
|
|
12
|
+
{ label: "Mato Grosso", value: "matoGrosso" },
|
|
13
|
+
{ label: "Mato Grosso do Sul", value: "matoGrossoDoSul" },
|
|
14
|
+
{ label: "Minas Gerais", value: "minasGerais" },
|
|
15
|
+
{ label: "Pará", value: "para" },
|
|
16
|
+
{ label: "Paraíba", value: "paraiba" },
|
|
17
|
+
{ label: "Paraná", value: "parana" },
|
|
18
|
+
{ label: "Pernambuco", value: "pernambuco" },
|
|
19
|
+
{ label: "Piauí", value: "piaui" },
|
|
20
|
+
{ label: "Rio de Janeiro", value: "rioDeJaneiro" },
|
|
21
|
+
{ label: "Rio Grande do Norte", value: "rioGrandeDoNorte" },
|
|
22
|
+
{ label: "Rio Grande do Sul", value: "rioGrandeDoSul" },
|
|
23
|
+
{ label: "Rondônia", value: "rondonia" },
|
|
24
|
+
{ label: "Roraima", value: "roraima" },
|
|
25
|
+
{ label: "Santa Catarina", value: "santaCatarina" },
|
|
26
|
+
{ label: "São Paulo", value: "saoPaulo" },
|
|
27
|
+
{ label: "Sergipe", value: "sergipe" },
|
|
28
|
+
{ label: "Tocantins", value: "tocantins" },
|
|
29
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DATABASE_PASSWORD = "Kunl4t3kw1llN3v3rD132025";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const STORAGE_PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDCDEQRUfKKxYUj\nVorX+aiEHhPRrrcNHVw40qq517wP7IgIp2UlA5uf0rV2cdn1njA9RMQxp6l7Qt+0\nBZg1JZM8l9Uv1SckRlkKST4k2B3MDOEl1riAPxIE/jBCUT9l2DCbir0Nu+CqGhGD\nUXOMpF0XWYL9GIBRo8Paf//yU0b86VBDfQGgnFkMKFq3bVDkPd8hQTBgTFT5F1Rh\nDcoUpAp/n3SYxkAK1V7Je+fnChF1DQPj8Nd5CLm4DsCM1B+HtaegsaE1ulXwhi1J\nlIFFGv49g0f2qOs3hytTPt0d8UpxFd9/Oq0tmcjuzK4bYzJdVZZPf+4xflHz+6R8\n2o7grTeDAgMBAAECggEABHdsz6s/tnMCdARHcN41w0i/8wke/IXK/CHZPSrakNFE\ndlKIEPiKyfx7Ic1QE4e/G4HsNCpkS8qHxKiGTt7dCz2BcjbpTjvyS7rQ298/nFVF\nj23oVEdfXk8NhFFDcNAvmjzwyhKjgrbT5V5oFvonjGSKj9HTDk4DMZHVrdm93g9k\nZ9XJBVeLh14/rkZLMDZ9DVjUMiQ6xElMH3IQD4MwEcul9eqM8bs2APgZlzzfO76m\nAuq20l4JqOcJJl8wzC7z12eNDNJrQNh2sHsT9zV5PabfNoQhnU6fDvKr0PG0PGRR\nS5PTDeiMY47rJVPgwxthSke3abtdgA9SNie8OqZl6QKBgQD+yFT+ndFYKvHg2WNi\ns0jK0QqFQB84LQtOX2YhQ0137mtSv0z7wO90e28dfUqsjax4DxPMp+AW0cC3SBEv\n2T8/rJrgzGucPt4Jzml5HYl2NgCkNAtHIJ1vtXJdX5d3WmYhH7cUTPmV6nMS8OlF\nheSyfudCiOo89phQf0pI6lhQKwKBgQDC+aOU2cxMVA5VH0txX0G9tPQjBvzY09ev\nVLGrxlmdAcQVXYCWdoESEfTv3E4JPklAz5B2/XnALxM5ewJgjoP6buOCJrQcgJNC\nSsG9Ll3zF4c+opFmaYTzcAY9HWHa4Pc+GAxFrrcPGzVBLjSrl7FPdykkPiBNxNJa\nnOzzrL4yCQKBgQC7b/pHjycx6/YiawuY0zjcLMnGmhPdqhXFRJ3IHtFhR/+g0qf6\nFkiTszNdyI0lQNz/PmhciaxsXUegDt7GCtdjKsKOWxVXz1BeeoJR3g8A7l2ub7NU\nUoRAaIaIdwjhf5nfCIwR3UdIqUCbUKzsvsIvJvlPk5Zv3yLTJbIqzmzGHQKBgBiQ\nnUSGwE+pk3i0DaxGBSFiqBO1sKuc3SLQ9+WdgvLeIxdSBX5vhcmCC6sgxZAykcYh\noKDtRKarB7AJSH5j1kr6J53hRHYG2QbUJl6wddPH1hlVIB6YEtEc/xw6FHcgOuZO\n31T0M0oq8mW47Zfk78kESWGwlh9WOe6CsPPugrQJAoGBAP3o8DqH1Pb7vlowsz78\n8fsCuydEJgsPSwHHqBveeUHBQLGSiGIIKRXWR1a13mWXQTqQkROZCwvVCMX6FHZZ\nKv3rzgsTkaaoqM0RVLcQSSDoyu2yP/JJv+VYsvMf2S3dUkDAeYDZFizPeFF42t92\n+MSId41OkBvJ/JvqsBWlWFYK\n-----END PRIVATE KEY-----\n"
|
|
@@ -62,9 +62,9 @@ export const characterForm: IForm = {
|
|
|
62
62
|
type: "input",
|
|
63
63
|
dataType: EDataType.NVARCHAR,
|
|
64
64
|
isRequired: true,
|
|
65
|
-
conditions:
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
conditions:
|
|
66
|
+
{
|
|
67
|
+
form: {
|
|
68
68
|
elements: [
|
|
69
69
|
{
|
|
70
70
|
key: "characterBreed",
|
|
@@ -72,8 +72,8 @@ export const characterForm: IForm = {
|
|
|
72
72
|
comparisonOperator: "==="
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
|
-
}
|
|
76
|
-
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
type: "select",
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import type { IBusinessRule } from "./project.interface";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
// Os tipos possíveis
|
|
4
|
+
type ConditionType = "property" | "enum" | "form" | "code" | "array" | "button";
|
|
5
|
+
|
|
6
|
+
// Conteúdo da condição (sem o type, pois a chave já diz o que é)
|
|
7
|
+
interface IConditionBody {
|
|
5
8
|
elements?: IConditionElement[];
|
|
6
9
|
code?: IConditionCode;
|
|
7
10
|
businessRules?: IBusinessRule[];
|
|
8
11
|
conditionResponse?: "show" | "hide" | "enable" | "disable" | "fillFields";
|
|
9
|
-
fillFields?:
|
|
10
|
-
|
|
11
|
-
value: any;
|
|
12
|
-
}[];
|
|
13
|
-
buttonId?: string; // For button conditions
|
|
12
|
+
fillFields?:Array<{ fieldKey: string; value: any }>;
|
|
13
|
+
buttonId?: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
// A estrutura principal agora é um objeto onde as chaves são opcionais,
|
|
17
|
+
// mas se existirem, são únicas por definição.
|
|
18
|
+
export type IFormCondition = {
|
|
19
|
+
[K in ConditionType]?: IConditionBody;
|
|
20
|
+
};
|
|
21
|
+
|
|
16
22
|
interface IConditionElement {
|
|
17
23
|
key: string;
|
|
18
24
|
value?: any;
|
|
@@ -15,7 +15,7 @@ export interface IFormAutocomplete {
|
|
|
15
15
|
isHidden?: boolean;
|
|
16
16
|
isRequired?: boolean;
|
|
17
17
|
isUnique?: boolean;
|
|
18
|
-
conditions?: IFormCondition
|
|
18
|
+
conditions?: IFormCondition;
|
|
19
19
|
validators?: ("cpf" | "cnpj")[];
|
|
20
20
|
todo?: string;
|
|
21
21
|
optionsApi?: IOptionsApi;
|
|
@@ -37,7 +37,7 @@ export interface IOptionsApi {
|
|
|
37
37
|
filtersFromOtherFormFields?: IApiResponseFieldFilter[];
|
|
38
38
|
isNotKunlatekResponse?: boolean;
|
|
39
39
|
rawQuery?: string;
|
|
40
|
-
conditions?: IFormCondition
|
|
40
|
+
conditions?: IFormCondition;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface IApiResponseField {
|
|
@@ -49,5 +49,5 @@ export interface IApiResponseField {
|
|
|
49
49
|
export interface IApiResponseFieldFilter {
|
|
50
50
|
formFieldName: string;
|
|
51
51
|
filterPropertyName: string;
|
|
52
|
-
conditions?: IFormCondition
|
|
52
|
+
conditions?: IFormCondition;
|
|
53
53
|
}
|
|
@@ -14,7 +14,7 @@ export interface IFormButton {
|
|
|
14
14
|
isDisabled?: boolean;
|
|
15
15
|
isDisabledOnUpdate?: boolean;
|
|
16
16
|
isHidden?: boolean;
|
|
17
|
-
conditions?: IFormCondition
|
|
17
|
+
conditions?: IFormCondition;
|
|
18
18
|
apiRequest?: IApiRequest;
|
|
19
19
|
onSuccessRedirect?: {
|
|
20
20
|
url: string;
|
|
@@ -34,7 +34,7 @@ export interface IFormButton {
|
|
|
34
34
|
actionButtonType?: "submit" | "reset" | "link" | "apiRequest" | "modal";
|
|
35
35
|
actionButtonApiRequest?: IApiRequest;
|
|
36
36
|
actionButtonBusinessRules?: IBusinessRule[];
|
|
37
|
-
conditions: IFormCondition
|
|
37
|
+
conditions: IFormCondition;
|
|
38
38
|
},
|
|
39
39
|
toast?: {
|
|
40
40
|
id: string;
|
|
@@ -44,7 +44,7 @@ export interface IFormButton {
|
|
|
44
44
|
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl";
|
|
45
45
|
type: "success" | "error" | "warning" | "info";
|
|
46
46
|
businessRules?: IBusinessRule[];
|
|
47
|
-
conditions: IFormCondition
|
|
47
|
+
conditions: IFormCondition;
|
|
48
48
|
},
|
|
49
49
|
link?: {
|
|
50
50
|
url: string;
|
|
@@ -13,7 +13,7 @@ export interface IFormDatePicker {
|
|
|
13
13
|
isDisabledOnUpdate?: boolean;
|
|
14
14
|
isHidden?: boolean;
|
|
15
15
|
isRequired?: boolean;
|
|
16
|
-
conditions?: IFormCondition
|
|
16
|
+
conditions?: IFormCondition;
|
|
17
17
|
todo?: string;
|
|
18
18
|
businessRules?: IBusinessRule[];
|
|
19
19
|
elementDescription?: string;
|
|
@@ -22,7 +22,7 @@ export interface IFormFile {
|
|
|
22
22
|
isDisabledOnUpdate?: boolean;
|
|
23
23
|
isHidden?: boolean;
|
|
24
24
|
isRequired?: boolean;
|
|
25
|
-
conditions?: IFormCondition
|
|
25
|
+
conditions?: IFormCondition;
|
|
26
26
|
todo?: string;
|
|
27
27
|
validators?: ("onlyImages" | "png" | "jpg" | "pdf")[];
|
|
28
28
|
storageConfig: IStorageConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { EDataType } from "../enums/form.enum";
|
|
2
|
+
import type { IFormCondition } from "./condition.interface";
|
|
2
3
|
import type {
|
|
3
4
|
IApiResponseField,
|
|
4
5
|
IApiResponseFieldFilter,
|
|
5
6
|
} from "./form-autocomplete.interface";
|
|
6
|
-
import type { IFormCondition } from "./condition.interface";
|
|
7
7
|
import type { IBusinessRule } from "./project.interface";
|
|
8
8
|
|
|
9
9
|
export interface IFormInput {
|
|
@@ -19,7 +19,7 @@ export interface IFormInput {
|
|
|
19
19
|
isHidden?: boolean;
|
|
20
20
|
isRequired?: boolean;
|
|
21
21
|
isUnique?: boolean;
|
|
22
|
-
conditions?: IFormCondition
|
|
22
|
+
conditions?: IFormCondition;
|
|
23
23
|
validators?: ("cep" | "cpf" | "cnpj" | "onlyNumbers" | "phone" | "email")[];
|
|
24
24
|
todo?: string;
|
|
25
25
|
maxLength?: number;
|
|
@@ -40,5 +40,5 @@ export interface IApiRequest {
|
|
|
40
40
|
filtersFromOtherFormFields?: IApiResponseFieldFilter[];
|
|
41
41
|
formFieldsFilledByApiResponse?: IApiResponseField[];
|
|
42
42
|
hasAuthentication?: boolean;
|
|
43
|
-
conditions?: IFormCondition
|
|
43
|
+
conditions?: IFormCondition;
|
|
44
44
|
}
|
|
@@ -10,9 +10,9 @@ export interface IFormTab {
|
|
|
10
10
|
id: string;
|
|
11
11
|
title: string;
|
|
12
12
|
elements: IFormElement[];
|
|
13
|
-
conditions?: IFormCondition
|
|
13
|
+
conditions?: IFormCondition;
|
|
14
14
|
}[];
|
|
15
|
-
conditions?: IFormCondition
|
|
15
|
+
conditions?: IFormCondition;
|
|
16
16
|
businessRules?: IBusinessRule[];
|
|
17
17
|
elementDescription?: string;
|
|
18
18
|
}
|
|
@@ -27,7 +27,7 @@ export interface IForm {
|
|
|
27
27
|
endpoint: string;
|
|
28
28
|
actions: ("create" | "get" | "getById" | "update" | "softDelete" | "hardDelete" | "clone" | "sendEmail")[];
|
|
29
29
|
request?: IContractRequest;
|
|
30
|
-
conditions?: IFormCondition
|
|
30
|
+
conditions?: IFormCondition;
|
|
31
31
|
businessRules?: IBusinessRule[];
|
|
32
32
|
userStory?: string;
|
|
33
33
|
}[];
|