@credithub/harlan-components 1.1.1

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 (162) hide show
  1. package/README.md +44 -0
  2. package/lib/cjs/components/adresses/adresses.d.ts +18 -0
  3. package/lib/cjs/components/adresses/adresses.js +68 -0
  4. package/lib/cjs/components/adresses/getGeocode.d.ts +6 -0
  5. package/lib/cjs/components/adresses/getGeocode.js +74 -0
  6. package/lib/cjs/components/adresses/map.d.ts +11 -0
  7. package/lib/cjs/components/adresses/map.js +50 -0
  8. package/lib/cjs/components/bank-accounts/bank-accounts.d.ts +3 -0
  9. package/lib/cjs/components/bank-accounts/bank-accounts.js +28 -0
  10. package/lib/cjs/components/ccf/ccf.d.ts +6 -0
  11. package/lib/cjs/components/ccf/ccf.js +31 -0
  12. package/lib/cjs/components/ccf/ccfList.d.ts +13 -0
  13. package/lib/cjs/components/ccf/ccfList.js +46 -0
  14. package/lib/cjs/components/common/addItem.d.ts +11 -0
  15. package/lib/cjs/components/common/addItem.js +40 -0
  16. package/lib/cjs/components/common/button.d.ts +5 -0
  17. package/lib/cjs/components/common/button.js +15 -0
  18. package/lib/cjs/components/common/carousel.d.ts +4 -0
  19. package/lib/cjs/components/common/carousel.js +24 -0
  20. package/lib/cjs/components/common/headerAction.d.ts +9 -0
  21. package/lib/cjs/components/common/headerAction.js +15 -0
  22. package/lib/cjs/components/contacts/contacts.d.ts +14 -0
  23. package/lib/cjs/components/contacts/contacts.js +68 -0
  24. package/lib/cjs/components/contacts/contactsLikeDislike.d.ts +9 -0
  25. package/lib/cjs/components/contacts/contactsLikeDislike.js +14 -0
  26. package/lib/cjs/components/contacts/thumbsButton.d.ts +10 -0
  27. package/lib/cjs/components/contacts/thumbsButton.js +22 -0
  28. package/lib/cjs/components/dossie/carrousel/carrousel.d.ts +8 -0
  29. package/lib/cjs/components/dossie/carrousel/carrousel.js +15 -0
  30. package/lib/cjs/components/dossie/companyLogo/companyLogo.d.ts +7 -0
  31. package/lib/cjs/components/dossie/companyLogo/companyLogo.js +19 -0
  32. package/lib/cjs/components/dossie/dossie.d.ts +35 -0
  33. package/lib/cjs/components/dossie/dossie.js +66 -0
  34. package/lib/cjs/components/dossie/summary/summary.d.ts +17 -0
  35. package/lib/cjs/components/dossie/summary/summary.js +187 -0
  36. package/lib/cjs/components/dossie/transactionTable/transactionTable.d.ts +6 -0
  37. package/lib/cjs/components/dossie/transactionTable/transactionTable.js +39 -0
  38. package/lib/cjs/components/interface/header.d.ts +16 -0
  39. package/lib/cjs/components/interface/header.js +56 -0
  40. package/lib/cjs/components/interface/result.d.ts +7 -0
  41. package/lib/cjs/components/interface/result.js +38 -0
  42. package/lib/cjs/components/interface/section.d.ts +14 -0
  43. package/lib/cjs/components/interface/section.js +45 -0
  44. package/lib/cjs/components/partners/partnerField.d.ts +9 -0
  45. package/lib/cjs/components/partners/partnerField.js +14 -0
  46. package/lib/cjs/components/partners/partnerList.d.ts +16 -0
  47. package/lib/cjs/components/partners/partnerList.js +43 -0
  48. package/lib/cjs/components/partners/partners.d.ts +3 -0
  49. package/lib/cjs/components/partners/partners.js +55 -0
  50. package/lib/cjs/components/processos-juridicos/envolvidosList.d.ts +9 -0
  51. package/lib/cjs/components/processos-juridicos/envolvidosList.js +22 -0
  52. package/lib/cjs/components/processos-juridicos/processosJuridicos.d.ts +7 -0
  53. package/lib/cjs/components/processos-juridicos/processosJuridicos.js +24 -0
  54. package/lib/cjs/components/processos-juridicos/processosJuridicosList.d.ts +15 -0
  55. package/lib/cjs/components/processos-juridicos/processosJuridicosList.js +52 -0
  56. package/lib/cjs/components/protestos/protestos.d.ts +3 -0
  57. package/lib/cjs/components/protestos/protestos.js +69 -0
  58. package/lib/cjs/components/protestos/protestosCategory.d.ts +7 -0
  59. package/lib/cjs/components/protestos/protestosCategory.js +21 -0
  60. package/lib/cjs/components/protestos/protestosList.d.ts +33 -0
  61. package/lib/cjs/components/protestos/protestosList.js +73 -0
  62. package/lib/cjs/components/reclameAqui/reclameAquiCarousel.d.ts +26 -0
  63. package/lib/cjs/components/reclameAqui/reclameAquiCarousel.js +64 -0
  64. package/lib/cjs/components/resultWithoutInformation/ResultWithoutInformation.d.ts +4 -0
  65. package/lib/cjs/components/resultWithoutInformation/ResultWithoutInformation.js +37 -0
  66. package/lib/cjs/components/webservice.d.ts +67 -0
  67. package/lib/cjs/components/webservice.js +150 -0
  68. package/lib/cjs/constants/regex.d.ts +2 -0
  69. package/lib/cjs/constants/regex.js +5 -0
  70. package/lib/cjs/hooks/useToggle.d.ts +10 -0
  71. package/lib/cjs/hooks/useToggle.js +26 -0
  72. package/lib/cjs/index.d.ts +12 -0
  73. package/lib/cjs/index.js +43 -0
  74. package/lib/cjs/mock/dossie.d.ts +207 -0
  75. package/lib/cjs/mock/dossie.js +630 -0
  76. package/lib/cjs/utils/number.d.ts +1 -0
  77. package/lib/cjs/utils/number.js +10 -0
  78. package/lib/cjs/utils/string.d.ts +3 -0
  79. package/lib/cjs/utils/string.js +22 -0
  80. package/lib/cjs/utils/xpath.d.ts +4 -0
  81. package/lib/cjs/utils/xpath.js +12 -0
  82. package/lib/esm/components/adresses/adresses.d.ts +18 -0
  83. package/lib/esm/components/adresses/adresses.js +40 -0
  84. package/lib/esm/components/adresses/getGeocode.d.ts +6 -0
  85. package/lib/esm/components/adresses/getGeocode.js +67 -0
  86. package/lib/esm/components/adresses/map.d.ts +11 -0
  87. package/lib/esm/components/adresses/map.js +25 -0
  88. package/lib/esm/components/bank-accounts/bank-accounts.d.ts +3 -0
  89. package/lib/esm/components/bank-accounts/bank-accounts.js +23 -0
  90. package/lib/esm/components/ccf/ccf.d.ts +6 -0
  91. package/lib/esm/components/ccf/ccf.js +26 -0
  92. package/lib/esm/components/ccf/ccfList.d.ts +13 -0
  93. package/lib/esm/components/ccf/ccfList.js +18 -0
  94. package/lib/esm/components/common/addItem.d.ts +11 -0
  95. package/lib/esm/components/common/addItem.js +35 -0
  96. package/lib/esm/components/common/button.d.ts +5 -0
  97. package/lib/esm/components/common/button.js +10 -0
  98. package/lib/esm/components/common/carousel.d.ts +4 -0
  99. package/lib/esm/components/common/carousel.js +19 -0
  100. package/lib/esm/components/common/headerAction.d.ts +9 -0
  101. package/lib/esm/components/common/headerAction.js +10 -0
  102. package/lib/esm/components/contacts/contacts.d.ts +14 -0
  103. package/lib/esm/components/contacts/contacts.js +40 -0
  104. package/lib/esm/components/contacts/contactsLikeDislike.d.ts +9 -0
  105. package/lib/esm/components/contacts/contactsLikeDislike.js +9 -0
  106. package/lib/esm/components/contacts/thumbsButton.d.ts +10 -0
  107. package/lib/esm/components/contacts/thumbsButton.js +17 -0
  108. package/lib/esm/components/dossie/carrousel/carrousel.d.ts +8 -0
  109. package/lib/esm/components/dossie/carrousel/carrousel.js +8 -0
  110. package/lib/esm/components/dossie/companyLogo/companyLogo.d.ts +7 -0
  111. package/lib/esm/components/dossie/companyLogo/companyLogo.js +14 -0
  112. package/lib/esm/components/dossie/dossie.d.ts +35 -0
  113. package/lib/esm/components/dossie/dossie.js +38 -0
  114. package/lib/esm/components/dossie/summary/summary.d.ts +17 -0
  115. package/lib/esm/components/dossie/summary/summary.js +180 -0
  116. package/lib/esm/components/dossie/transactionTable/transactionTable.d.ts +6 -0
  117. package/lib/esm/components/dossie/transactionTable/transactionTable.js +32 -0
  118. package/lib/esm/components/interface/header.d.ts +16 -0
  119. package/lib/esm/components/interface/header.js +51 -0
  120. package/lib/esm/components/interface/result.d.ts +7 -0
  121. package/lib/esm/components/interface/result.js +31 -0
  122. package/lib/esm/components/interface/section.d.ts +14 -0
  123. package/lib/esm/components/interface/section.js +40 -0
  124. package/lib/esm/components/partners/partnerField.d.ts +9 -0
  125. package/lib/esm/components/partners/partnerField.js +9 -0
  126. package/lib/esm/components/partners/partnerList.d.ts +16 -0
  127. package/lib/esm/components/partners/partnerList.js +15 -0
  128. package/lib/esm/components/partners/partners.d.ts +3 -0
  129. package/lib/esm/components/partners/partners.js +27 -0
  130. package/lib/esm/components/processos-juridicos/envolvidosList.d.ts +9 -0
  131. package/lib/esm/components/processos-juridicos/envolvidosList.js +17 -0
  132. package/lib/esm/components/processos-juridicos/processosJuridicos.d.ts +7 -0
  133. package/lib/esm/components/processos-juridicos/processosJuridicos.js +19 -0
  134. package/lib/esm/components/processos-juridicos/processosJuridicosList.d.ts +15 -0
  135. package/lib/esm/components/processos-juridicos/processosJuridicosList.js +24 -0
  136. package/lib/esm/components/protestos/protestos.d.ts +3 -0
  137. package/lib/esm/components/protestos/protestos.js +41 -0
  138. package/lib/esm/components/protestos/protestosCategory.d.ts +7 -0
  139. package/lib/esm/components/protestos/protestosCategory.js +16 -0
  140. package/lib/esm/components/protestos/protestosList.d.ts +33 -0
  141. package/lib/esm/components/protestos/protestosList.js +43 -0
  142. package/lib/esm/components/reclameAqui/reclameAquiCarousel.d.ts +26 -0
  143. package/lib/esm/components/reclameAqui/reclameAquiCarousel.js +57 -0
  144. package/lib/esm/components/resultWithoutInformation/ResultWithoutInformation.d.ts +4 -0
  145. package/lib/esm/components/resultWithoutInformation/ResultWithoutInformation.js +32 -0
  146. package/lib/esm/components/webservice.d.ts +67 -0
  147. package/lib/esm/components/webservice.js +119 -0
  148. package/lib/esm/constants/regex.d.ts +2 -0
  149. package/lib/esm/constants/regex.js +2 -0
  150. package/lib/esm/hooks/useToggle.d.ts +10 -0
  151. package/lib/esm/hooks/useToggle.js +24 -0
  152. package/lib/esm/index.d.ts +12 -0
  153. package/lib/esm/index.js +12 -0
  154. package/lib/esm/mock/dossie.d.ts +207 -0
  155. package/lib/esm/mock/dossie.js +628 -0
  156. package/lib/esm/utils/number.d.ts +1 -0
  157. package/lib/esm/utils/number.js +6 -0
  158. package/lib/esm/utils/string.d.ts +3 -0
  159. package/lib/esm/utils/string.js +16 -0
  160. package/lib/esm/utils/xpath.d.ts +4 -0
  161. package/lib/esm/utils/xpath.js +10 -0
  162. package/package.json +79 -0
@@ -0,0 +1,628 @@
1
+ var data = {
2
+ "@type": "Dossie",
3
+ "@version": "1.1.10",
4
+ associates: [
5
+ {
6
+ tipo: "Empresa",
7
+ document: "360.978.868-29",
8
+ dividasPublicas: "00,0",
9
+ nome: "PAULO DAUDT MARINHO",
10
+ protestos: 0,
11
+ receitaStatus: "BAIXADA",
12
+ },
13
+ {
14
+ tipo: "Diretor",
15
+ document: "27.865.757/0001-02",
16
+ dividasPublicas: "00,0",
17
+ nome: "PAULO DAUDT MARINHO",
18
+ protestos: 0,
19
+ receitaStatus: "BAIXADA",
20
+ },
21
+ {
22
+ tipo: "Empresa",
23
+ document: "27.865.757/0001-02",
24
+ dividasPublicas: "00,0",
25
+ nome: "PAULO DAUDT MARINHO",
26
+ protestos: 0,
27
+ receitaStatus: "BAIXADA",
28
+ },
29
+ {
30
+ tipo: "Empresa",
31
+ document: "360.978.868-29",
32
+ dividasPublicas: "00,0",
33
+ nome: "PAULO DAUDT MARINHO",
34
+ protestos: 0,
35
+ receitaStatus: "BAIXADA",
36
+ },
37
+ ],
38
+ events: [
39
+ {
40
+ "@types": "EventSearch",
41
+ "@version": "1.1.10",
42
+ identificator: "919dfff0-8e11-11e9-a7e9-e1b06305e9bd",
43
+ name: "Investhor Consultoria LTDA",
44
+ memories: "2023-06-07T18:30:50.014Z",
45
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc, vitae aliquam ni",
46
+ parameters: {
47
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
48
+ "CPF/CNPJ": "27.865.757/0001-02",
49
+ },
50
+ queryType: "Consulta Simples",
51
+ resultBehaviour: 7,
52
+ resultNotation: "",
53
+ status: 253,
54
+ target: {
55
+ "@types": "Notation",
56
+ "@version": "1.1.10",
57
+ about: {
58
+ fantasyName: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
59
+ phones: ["(11) 99999-9999"],
60
+ addresses: [
61
+ {
62
+ street: "Rua dos Bobos",
63
+ number: "0",
64
+ complement: "Apto 0",
65
+ district: "Vila do Chaves",
66
+ city: "São Paulo",
67
+ state: "SP",
68
+ country: "Brasil",
69
+ zipcode: "00000-000",
70
+ main: true,
71
+ },
72
+ ],
73
+ birthday: "1990-01-01",
74
+ emails: ["jhodoe@outlook.com"],
75
+ status: true,
76
+ companySize: "DEMAIS",
77
+ jointStock: "R$6.983.568.523,86",
78
+ numberOfEmployees: "242",
79
+ companyAge: "36",
80
+ openingDate: "31/01/1986",
81
+ economicActivity: "Atividades De Televisão Aberta",
82
+ },
83
+ },
84
+ },
85
+ {
86
+ "@types": "EventSearch",
87
+ "@version": "1.1.10",
88
+ identificator: "919dfff0-8e11-11e9-a7e9-e1b06305e9bd",
89
+ name: "Investhor Consultoria LTDA",
90
+ memories: "2023-06-07T18:30:50.014Z",
91
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc, vitae aliquam ni",
92
+ parameters: {
93
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
94
+ "CPF/CNPJ": "27.865.757/0001-02",
95
+ },
96
+ queryType: "Consulta Simples",
97
+ resultBehaviour: 7,
98
+ resultNotation: "",
99
+ status: 253,
100
+ target: {
101
+ "@types": "Notation",
102
+ "@version": "1.1.10",
103
+ about: {
104
+ fantasyName: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
105
+ phones: ["(11) 99999-9999"],
106
+ addresses: [
107
+ {
108
+ street: "Rua dos Bobos",
109
+ number: "0",
110
+ complement: "Apto 0",
111
+ district: "Vila do Chaves",
112
+ city: "São Paulo",
113
+ state: "SP",
114
+ country: "Brasil",
115
+ zipcode: "00000-000",
116
+ main: true,
117
+ },
118
+ ],
119
+ birthday: "1990-01-01",
120
+ emails: ["jhodoe@outlook.com"],
121
+ status: true,
122
+ companySize: "DEMAIS",
123
+ jointStock: "R$6.983.568.523,86",
124
+ numberOfEmployees: "242",
125
+ companyAge: "36",
126
+ openingDate: "31/01/1986",
127
+ economicActivity: "Atividades De Televisão Aberta",
128
+ },
129
+ },
130
+ },
131
+ {
132
+ "@types": "EventSearch",
133
+ "@version": "1.1.10",
134
+ identificator: "919dfff0-8e11-11e9-a7e9-e1b06305e9bd",
135
+ name: "Investhor Consultoria LTDA",
136
+ memories: "2023-06-07T18:30:50.014Z",
137
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc, vitae aliquam ni",
138
+ parameters: {
139
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
140
+ "CPF/CNPJ": "27.865.757/0001-02",
141
+ },
142
+ queryType: "Consulta Simples",
143
+ resultBehaviour: 7,
144
+ resultNotation: "",
145
+ status: 253,
146
+ target: {
147
+ "@types": "Notation",
148
+ "@version": "1.1.10",
149
+ about: {
150
+ fantasyName: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
151
+ phones: ["(11) 99999-9999"],
152
+ addresses: [
153
+ {
154
+ street: "Rua dos Bobos",
155
+ number: "0",
156
+ complement: "Apto 0",
157
+ district: "Vila do Chaves",
158
+ city: "São Paulo",
159
+ state: "SP",
160
+ country: "Brasil",
161
+ zipcode: "00000-000",
162
+ main: true,
163
+ },
164
+ ],
165
+ birthday: "1990-01-01",
166
+ emails: ["jhodoe@outlook.com"],
167
+ status: true,
168
+ companySize: "DEMAIS",
169
+ jointStock: "R$6.983.568.523,86",
170
+ numberOfEmployees: "242",
171
+ companyAge: "36",
172
+ openingDate: "31/01/1986",
173
+ economicActivity: "Atividades De Televisão Aberta",
174
+ },
175
+ },
176
+ },
177
+ {
178
+ "@types": "EventSearch",
179
+ "@version": "1.1.10",
180
+ identificator: "919dfff0-8e11-11e9-a7e9-e1b06305e9bd",
181
+ name: "Investhor Consultoria LTDA",
182
+ memories: "2023-06-07T18:30:50.014Z",
183
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc, vitae aliquam ni",
184
+ parameters: {
185
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
186
+ "CPF/CNPJ": "27.865.757/0001-02",
187
+ },
188
+ queryType: "Consulta Simples",
189
+ resultBehaviour: 7,
190
+ resultNotation: "",
191
+ status: 253,
192
+ target: {
193
+ "@types": "Notation",
194
+ "@version": "1.1.10",
195
+ about: {
196
+ fantasyName: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
197
+ phones: ["(11) 99999-9999"],
198
+ addresses: [
199
+ {
200
+ street: "Rua dos Bobos",
201
+ number: "0",
202
+ complement: "Apto 0",
203
+ district: "Vila do Chaves",
204
+ city: "São Paulo",
205
+ state: "SP",
206
+ country: "Brasil",
207
+ zipcode: "00000-000",
208
+ main: true,
209
+ },
210
+ ],
211
+ birthday: "1990-01-01",
212
+ emails: ["jhodoe@outlook.com"],
213
+ status: true,
214
+ companySize: "DEMAIS",
215
+ jointStock: "R$6.983.568.523,86",
216
+ numberOfEmployees: "242",
217
+ companyAge: "36",
218
+ openingDate: "31/01/1986",
219
+ economicActivity: "Atividades De Televisão Aberta",
220
+ },
221
+ },
222
+ },
223
+ {
224
+ "@types": "EventSearch",
225
+ "@version": "1.1.10",
226
+ identificator: "919dfff0-8e11-11e9-a7e9-e1b06305e9bd",
227
+ name: "Investhor Consultoria LTDA",
228
+ memories: "2023-06-07T18:30:50.014Z",
229
+ message: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc, vitae aliquam ni",
230
+ parameters: {
231
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
232
+ "CPF/CNPJ": "27.865.757/0001-02",
233
+ },
234
+ queryType: "Consulta Simples",
235
+ resultBehaviour: 7,
236
+ resultNotation: "",
237
+ status: 253,
238
+ target: {
239
+ "@types": "Notation",
240
+ "@version": "1.1.10",
241
+ about: {
242
+ fantasyName: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
243
+ phones: ["(11) 99999-9999"],
244
+ addresses: [
245
+ {
246
+ street: "Rua dos Bobos",
247
+ number: "0",
248
+ complement: "Apto 0",
249
+ district: "Vila do Chaves",
250
+ city: "São Paulo",
251
+ state: "SP",
252
+ country: "Brasil",
253
+ zipcode: "00000-000",
254
+ main: true,
255
+ },
256
+ ],
257
+ birthday: "1990-01-01",
258
+ emails: ["jhodoe@outlook.com"],
259
+ status: true,
260
+ companySize: "DEMAIS",
261
+ jointStock: "R$6.983.568.523,86",
262
+ numberOfEmployees: "242",
263
+ companyAge: "36",
264
+ openingDate: "31/01/1986",
265
+ economicActivity: "Atividades De Televisão Aberta",
266
+ },
267
+ },
268
+ },
269
+ ],
270
+ notations: [
271
+ {
272
+ "@types": "Notation",
273
+ "@version": "1.1.10",
274
+ identificator: "919dfff0-8e11-11e9-a7e9-e1b06305e9bd",
275
+ queryType: "SERASA",
276
+ results: [
277
+ {
278
+ "@types": "Notation",
279
+ "@version": "1.1.10",
280
+ behaviour: 7,
281
+ items: [
282
+ {
283
+ "@types": "Notation",
284
+ "@version": "1.1.10",
285
+ about: {
286
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
287
+ phones: ["(11) 99999-9999"],
288
+ addresses: [
289
+ {
290
+ street: "Rua dos Bobos",
291
+ number: "0",
292
+ complement: "Apto 0",
293
+ district: "Vila do Chaves",
294
+ city: "São Paulo",
295
+ state: "SP",
296
+ country: "Brasil",
297
+ zipcode: "00000-000",
298
+ main: true,
299
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
300
+ pastUrlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
301
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
302
+ },
303
+ ],
304
+ birthday: "1990-01-01",
305
+ emails: ["aline.martins@tvglobo.com"],
306
+ },
307
+ },
308
+ ],
309
+ notation: "huobuiceucbuv-0589-vvew9919819",
310
+ notationType: 1,
311
+ sideNote: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc.",
312
+ subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
313
+ title: "SERASA",
314
+ },
315
+ {
316
+ "@types": "Notation",
317
+ "@version": "1.1.10",
318
+ behaviour: 7,
319
+ items: [
320
+ {
321
+ "@types": "Notation",
322
+ "@version": "1.1.10",
323
+ about: {
324
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
325
+ phones: ["(11) 99999-9999"],
326
+ addresses: [
327
+ {
328
+ street: "Rua dos Bobos",
329
+ number: "0",
330
+ complement: "Apto 0",
331
+ district: "Vila do Chaves",
332
+ city: "São Paulo",
333
+ state: "SP",
334
+ country: "Brasil",
335
+ zipcode: "00000-000",
336
+ main: true,
337
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
338
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
339
+ },
340
+ ],
341
+ birthday: "1990-01-01",
342
+ emails: ["aline.martins@tvglobo.com"],
343
+ },
344
+ },
345
+ ],
346
+ notation: "huobuiceucbuv-0589-vvew9919819",
347
+ notationType: 1,
348
+ sideNote: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc.",
349
+ subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
350
+ title: "SERASA",
351
+ },
352
+ {
353
+ "@types": "Notation",
354
+ "@version": "1.1.10",
355
+ behaviour: 7,
356
+ items: [
357
+ {
358
+ "@types": "Notation",
359
+ "@version": "1.1.10",
360
+ about: {
361
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
362
+ phones: ["(11) 99999-9999"],
363
+ addresses: [
364
+ {
365
+ street: "Rua dos Bobos",
366
+ number: "0",
367
+ complement: "Apto 0",
368
+ district: "Vila do Chaves",
369
+ city: "São Paulo",
370
+ state: "SP",
371
+ country: "Brasil",
372
+ zipcode: "00000-000",
373
+ main: true,
374
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
375
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
376
+ },
377
+ ],
378
+ birthday: "1990-01-01",
379
+ emails: ["aline.martins@tvglobo.com"],
380
+ },
381
+ },
382
+ ],
383
+ notation: "huobuiceucbuv-0589-vvew9919819",
384
+ notationType: 1,
385
+ sideNote: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc.",
386
+ subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
387
+ title: "SERASA",
388
+ },
389
+ {
390
+ "@types": "Notation",
391
+ "@version": "1.1.10",
392
+ behaviour: 7,
393
+ items: [
394
+ {
395
+ "@types": "Notation",
396
+ "@version": "1.1.10",
397
+ about: {
398
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
399
+ phones: ["(11) 99999-9999"],
400
+ addresses: [
401
+ {
402
+ street: "Rua dos Bobos",
403
+ number: "0",
404
+ complement: "Apto 0",
405
+ district: "Vila do Chaves",
406
+ city: "São Paulo",
407
+ state: "SP",
408
+ country: "Brasil",
409
+ zipcode: "00000-000",
410
+ main: true,
411
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
412
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
413
+ },
414
+ ],
415
+ birthday: "1990-01-01",
416
+ emails: ["aline.martins@tvglobo.com"],
417
+ },
418
+ },
419
+ ],
420
+ notation: "huobuiceucbuv-0589-vvew9919819",
421
+ notationType: 1,
422
+ sideNote: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc.",
423
+ subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
424
+ title: "SERASA",
425
+ },
426
+ {
427
+ "@types": "Notation",
428
+ "@version": "1.1.10",
429
+ behaviour: 7,
430
+ items: [
431
+ {
432
+ "@types": "Notation",
433
+ "@version": "1.1.10",
434
+ about: {
435
+ name: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
436
+ phones: ["(11) 99999-9999"],
437
+ addresses: [
438
+ {
439
+ street: "Rua dos Bobos",
440
+ number: "0",
441
+ complement: "Apto 0",
442
+ district: "Vila do Chaves",
443
+ city: "São Paulo",
444
+ state: "SP",
445
+ country: "Brasil",
446
+ zipcode: "00000-000",
447
+ main: true,
448
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
449
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
450
+ },
451
+ ],
452
+ birthday: "1990-01-01",
453
+ emails: ["aline.martins@tvglobo.com"],
454
+ },
455
+ },
456
+ ],
457
+ notation: "huobuiceucbuv-0589-vvew9919819",
458
+ notationType: 1,
459
+ sideNote: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc.",
460
+ subtitle: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
461
+ title: "SERASA",
462
+ },
463
+ ],
464
+ target: {
465
+ "@types": "Notation",
466
+ "@version": "1.1.10",
467
+ about: {
468
+ fantasyName: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
469
+ phones: ["(11) 99999-9999"],
470
+ addresses: [
471
+ {
472
+ street: "Rua dos Bobos",
473
+ number: "0",
474
+ complement: "Apto 0",
475
+ district: "Vila do Chaves",
476
+ city: "São Paulo",
477
+ state: "SP",
478
+ country: "Brasil",
479
+ zipcode: "00000-000",
480
+ main: true,
481
+ },
482
+ ],
483
+ birthday: "1990-01-01",
484
+ emails: ["jhodoe@outlook.com"],
485
+ status: true,
486
+ companySize: "DEMAIS",
487
+ jointStock: "R$6.983.568.523,86",
488
+ numberOfEmployees: "242",
489
+ companyAge: "36",
490
+ openingDate: "31/01/1986",
491
+ economicActivity: "Atividades De Televisão Aberta",
492
+ },
493
+ },
494
+ },
495
+ ],
496
+ relations: {
497
+ "@types": "Notation",
498
+ "@version": "1.1.10",
499
+ description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec euismod, nisl eget aliquam ultricies, nunc nisl aliquet nunc, vitae aliquam ni",
500
+ from: "PAULO DAUDT MARINHO",
501
+ to: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
502
+ type: 5,
503
+ },
504
+ target: {
505
+ "@types": "Notation",
506
+ "@version": "1.1.10",
507
+ about: {
508
+ nomeFantasia: "TV/REDE/CANAIS/G2C+GLOBO GLOBO.COM GLOBOPLAY",
509
+ contacts: [
510
+ {
511
+ phone: "(11) 99999-9999",
512
+ email: "aline.martins@tvglobo.com.br",
513
+ validEmail: true,
514
+ },
515
+ {
516
+ phone: "(11) 99999-9999",
517
+ email: "aline.martins@tvglobo.com.br",
518
+ validEmail: false,
519
+ },
520
+ {
521
+ phone: "(11) 99999-9999",
522
+ email: "aline.martins@tvglobo.com.br",
523
+ validEmail: true,
524
+ },
525
+ {
526
+ phone: "(11) 99999-9999",
527
+ email: "aline.martins@tvglobo.com.br",
528
+ validEmail: false,
529
+ },
530
+ {
531
+ phone: "(11) 99999-9999",
532
+ email: "aline.martins@tvglobo.com.br",
533
+ validEmail: true,
534
+ },
535
+ ],
536
+ addresses: [
537
+ {
538
+ address: "Test",
539
+ type: "Avenue",
540
+ number: "0",
541
+ complement: "Apto 0",
542
+ district: "Test",
543
+ city: "Rio de Janeiro",
544
+ state: "RJ",
545
+ country: "Brasil",
546
+ zipcode: "00000-000",
547
+ main: true,
548
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
549
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
550
+ },
551
+ {
552
+ address: "Test",
553
+ type: "Avenue",
554
+ number: "0",
555
+ complement: "Apto 0",
556
+ district: "Test",
557
+ city: "Rio de Janeiro",
558
+ state: "RJ",
559
+ country: "Brasil",
560
+ zipcode: "00000-000",
561
+ main: true,
562
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
563
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
564
+ },
565
+ {
566
+ address: "Test",
567
+ type: "Avenue",
568
+ number: "0",
569
+ complement: "Apto 0",
570
+ district: "Test",
571
+ city: "Rio de Janeiro",
572
+ state: "RJ",
573
+ country: "Brasil",
574
+ zipcode: "00000-000",
575
+ main: true,
576
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
577
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
578
+ },
579
+ {
580
+ address: "Test",
581
+ type: "Avenue",
582
+ number: "0",
583
+ complement: "Apto 0",
584
+ district: "Test",
585
+ city: "Rio de Janeiro",
586
+ state: "RJ",
587
+ country: "Brasil",
588
+ zipcode: "00000-000",
589
+ main: true,
590
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
591
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
592
+ },
593
+ {
594
+ address: "Test",
595
+ type: "Avenue",
596
+ number: "0",
597
+ complement: "Apto 0",
598
+ district: "Test",
599
+ city: "Rio de Janeiro",
600
+ state: "RJ",
601
+ country: "Brasil",
602
+ zipcode: "00000-000",
603
+ main: true,
604
+ urlImage: "https://t.ctcdn.com.br/roqtFTBPUOZ-VXUxNoeN1Z0iaI4=/1244x700/smart/i381158.jpeg",
605
+ urlMaps: "https://www.google.com/maps?q=RUA%2C%20LOPES%20QUINTAS%2C%20303%2C%2022460901%2C%20JARDIM%20BOTANICO%2C%20%2C%20RJ",
606
+ },
607
+ ],
608
+ aniversario: "1990-01-01",
609
+ emails: ["aline.martins@tvglobo.com.br"],
610
+ situacao: "ATIVA",
611
+ dividaPublica: "341.506.830,24",
612
+ porteDaEmpresa: "DEMAIS",
613
+ capitalSocial: "R$6.983.568.523,86",
614
+ chequesDevolvidos: 0,
615
+ totalDeProtestos: 3,
616
+ quantidadeDeFuncionarios: "242",
617
+ idadeDaEmpresa: "36",
618
+ dataDeAbertura: "31/01/1986",
619
+ atividadeEconomica: "Atividades De Televisão Aberta",
620
+ "CPF/CNPJ": "27.865.757/0001-02",
621
+ },
622
+ identificator: {
623
+ "CPF/CNPJ": "27.865.757/0001-02",
624
+ },
625
+ },
626
+ };
627
+ var returnData = function () { return data; };
628
+ export default returnData;
@@ -0,0 +1 @@
1
+ export declare const formatMoney: (value: string | number) => string;
@@ -0,0 +1,6 @@
1
+ export var formatMoney = function (value) {
2
+ return new Intl.NumberFormat('pt-BR', {
3
+ style: 'currency',
4
+ currency: 'BRL'
5
+ }).format(Number(value));
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare function formatCpf(cpf: string): string;
2
+ export declare function formatCnpj(cnpj: string): string;
3
+ export declare function isCnpj(documento: string): boolean;
@@ -0,0 +1,16 @@
1
+ export function formatCpf(cpf) {
2
+ cpf = cpf.replace(/[^0-9]/g, "");
3
+ if (cpf.length !== 11)
4
+ return '';
5
+ return "".concat(cpf.slice(0, 3), ".").concat(cpf.slice(3, 6), ".").concat(cpf.slice(6, 9), "-").concat(cpf.slice(9));
6
+ }
7
+ export function formatCnpj(cnpj) {
8
+ cnpj = cnpj.replace(/[^0-9]/g, "");
9
+ if (cnpj.length !== 14)
10
+ return '';
11
+ return "".concat(cnpj.slice(0, 2), ".").concat(cnpj.slice(2, 5), ".").concat(cnpj.slice(5, 8), "/").concat(cnpj.slice(8, 12), "-").concat(cnpj.slice(12));
12
+ }
13
+ export function isCnpj(documento) {
14
+ documento = documento.replace(/[^0-9]/g, "");
15
+ return documento.length === 14;
16
+ }
@@ -0,0 +1,4 @@
1
+ declare class XPathUtils {
2
+ static select<T = string>(expression: string, node: Node | undefined): T;
3
+ }
4
+ export default XPathUtils;
@@ -0,0 +1,10 @@
1
+ import { xpath as x } from "@credithub/webservice";
2
+ var XPathUtils = /** @class */ (function () {
3
+ function XPathUtils() {
4
+ }
5
+ XPathUtils.select = function (expression, node) {
6
+ return x.select(expression, node);
7
+ };
8
+ return XPathUtils;
9
+ }());
10
+ export default XPathUtils;