monkey-front-core 0.0.603 → 21.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 (399) hide show
  1. package/README.md +3 -4
  2. package/fesm2022/monkey-front-core.mjs +5727 -0
  3. package/fesm2022/monkey-front-core.mjs.map +1 -0
  4. package/monkey-front-core-21.0.0.tgz +0 -0
  5. package/package.json +26 -39
  6. package/types/monkey-front-core.d.ts +1763 -0
  7. package/esm2020/lib/components/alerts/alerts.component.mjs +0 -45
  8. package/esm2020/lib/components/alerts/alerts.module.mjs +0 -21
  9. package/esm2020/lib/components/alerts/index.mjs +0 -3
  10. package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +0 -29
  11. package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +0 -43
  12. package/esm2020/lib/components/closed-to-maintenance/index.mjs +0 -3
  13. package/esm2020/lib/components/currency-config/currency-config.component.mjs +0 -39
  14. package/esm2020/lib/components/currency-config/currency-config.module.mjs +0 -39
  15. package/esm2020/lib/components/currency-config/index.mjs +0 -3
  16. package/esm2020/lib/components/index.mjs +0 -6
  17. package/esm2020/lib/components/progress-bar/index.mjs +0 -4
  18. package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +0 -23
  19. package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +0 -18
  20. package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +0 -50
  21. package/esm2020/lib/components/version-changed/index.mjs +0 -3
  22. package/esm2020/lib/components/version-changed/version-changed.component.mjs +0 -24
  23. package/esm2020/lib/components/version-changed/version-changed.module.mjs +0 -39
  24. package/esm2020/lib/core/decorators/index.mjs +0 -5
  25. package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +0 -40
  26. package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +0 -111
  27. package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +0 -26
  28. package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +0 -26
  29. package/esm2020/lib/core/directives/index.mjs +0 -14
  30. package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +0 -78
  31. package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +0 -57
  32. package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +0 -54
  33. package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +0 -68
  34. package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +0 -44
  35. package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +0 -67
  36. package/esm2020/lib/core/directives/monkeyecx-loading.mjs +0 -48
  37. package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +0 -28
  38. package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +0 -28
  39. package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +0 -39
  40. package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +0 -212
  41. package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +0 -75
  42. package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +0 -123
  43. package/esm2020/lib/core/index.mjs +0 -11
  44. package/esm2020/lib/core/injectors/index.mjs +0 -8
  45. package/esm2020/lib/core/interceptors/index.mjs +0 -6
  46. package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +0 -49
  47. package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +0 -59
  48. package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +0 -47
  49. package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +0 -43
  50. package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +0 -37
  51. package/esm2020/lib/core/interfaces/index.mjs +0 -37
  52. package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +0 -2
  53. package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +0 -2
  54. package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +0 -2
  55. package/esm2020/lib/core/interfaces/monkeyecx-config-bootstrap.mjs +0 -2
  56. package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +0 -2
  57. package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +0 -2
  58. package/esm2020/lib/core/interfaces/monkeyecx-embedded.mjs +0 -2
  59. package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +0 -2
  60. package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +0 -2
  61. package/esm2020/lib/core/interfaces/monkeyecx-group.mjs +0 -2
  62. package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +0 -2
  63. package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +0 -2
  64. package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +0 -2
  65. package/esm2020/lib/core/interfaces/monkeyecx-interface.mjs +0 -2
  66. package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +0 -2
  67. package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +0 -2
  68. package/esm2020/lib/core/interfaces/monkeyecx-pagination.mjs +0 -2
  69. package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +0 -2
  70. package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +0 -2
  71. package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +0 -2
  72. package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +0 -2
  73. package/esm2020/lib/core/interfaces/monkeyecx-resolver.mjs +0 -2
  74. package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +0 -2
  75. package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +0 -2
  76. package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +0 -2
  77. package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +0 -2
  78. package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +0 -2
  79. package/esm2020/lib/core/interfaces/monkeyecx-storage.mjs +0 -2
  80. package/esm2020/lib/core/interfaces/monkeyecx-store.mjs +0 -2
  81. package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +0 -2
  82. package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +0 -2
  83. package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +0 -2
  84. package/esm2020/lib/core/interfaces/request-download/index.mjs +0 -4
  85. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +0 -2
  86. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +0 -2
  87. package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +0 -2
  88. package/esm2020/lib/core/interfaces/request-queue/index.mjs +0 -4
  89. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +0 -2
  90. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +0 -2
  91. package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +0 -2
  92. package/esm2020/lib/core/interfaces/request-upload/index.mjs +0 -3
  93. package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +0 -2
  94. package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +0 -2
  95. package/esm2020/lib/core/interfaces/schedules/index.mjs +0 -2
  96. package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +0 -2
  97. package/esm2020/lib/core/model/index.mjs +0 -3
  98. package/esm2020/lib/core/model/monkeyecx-links.model.mjs +0 -8
  99. package/esm2020/lib/core/model/monkeyecx-model.mjs +0 -26
  100. package/esm2020/lib/core/pipes/index.mjs +0 -24
  101. package/esm2020/lib/core/pipes/monkeyecx-blob-secure.mjs +0 -26
  102. package/esm2020/lib/core/pipes/monkeyecx-currency-code.mjs +0 -30
  103. package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +0 -19
  104. package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +0 -21
  105. package/esm2020/lib/core/pipes/monkeyecx-display-support-phone.mjs +0 -33
  106. package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +0 -20
  107. package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +0 -38
  108. package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +0 -48
  109. package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +0 -45
  110. package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +0 -32
  111. package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +0 -36
  112. package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +0 -30
  113. package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +0 -20
  114. package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +0 -20
  115. package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +0 -42
  116. package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +0 -20
  117. package/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +0 -23
  118. package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +0 -19
  119. package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +0 -19
  120. package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +0 -19
  121. package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +0 -127
  122. package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +0 -23
  123. package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +0 -16
  124. package/esm2020/lib/core/services/alerts/index.mjs +0 -2
  125. package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +0 -88
  126. package/esm2020/lib/core/services/auth/index.mjs +0 -6
  127. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +0 -28
  128. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +0 -27
  129. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-role.service.mjs +0 -77
  130. package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +0 -26
  131. package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +0 -79
  132. package/esm2020/lib/core/services/commons/index.mjs +0 -4
  133. package/esm2020/lib/core/services/commons/monkeyecx-commons-resolve-base.service.mjs +0 -109
  134. package/esm2020/lib/core/services/commons/monkeyecx-commons-resolve.service.mjs +0 -127
  135. package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +0 -362
  136. package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +0 -43
  137. package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +0 -28
  138. package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +0 -107
  139. package/esm2020/lib/core/services/config/monkeyecx-currency-config.service.mjs +0 -84
  140. package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +0 -85
  141. package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +0 -77
  142. package/esm2020/lib/core/services/config/monkeyecx-gtm-config.service.mjs +0 -47
  143. package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +0 -162
  144. package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +0 -84
  145. package/esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs +0 -37
  146. package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +0 -48
  147. package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +0 -55
  148. package/esm2020/lib/core/services/error/index.mjs +0 -5
  149. package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +0 -27
  150. package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +0 -37
  151. package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +0 -149
  152. package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +0 -49
  153. package/esm2020/lib/core/services/index.mjs +0 -27
  154. package/esm2020/lib/core/services/l/index.mjs +0 -2
  155. package/esm2020/lib/core/services/l/l.service.mjs +0 -45
  156. package/esm2020/lib/core/services/logged/index.mjs +0 -2
  157. package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +0 -40
  158. package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +0 -50
  159. package/esm2020/lib/core/services/monkeyecx-service.service.mjs +0 -109
  160. package/esm2020/lib/core/services/pagination/index.mjs +0 -2
  161. package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +0 -29
  162. package/esm2020/lib/core/services/request-download/index.mjs +0 -3
  163. package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +0 -93
  164. package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +0 -61
  165. package/esm2020/lib/core/services/request-paged/index.mjs +0 -2
  166. package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +0 -42
  167. package/esm2020/lib/core/services/request-queue/index.mjs +0 -3
  168. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +0 -114
  169. package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +0 -119
  170. package/esm2020/lib/core/services/routes/index.mjs +0 -2
  171. package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +0 -54
  172. package/esm2020/lib/core/services/schedules/index.mjs +0 -2
  173. package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +0 -188
  174. package/esm2020/lib/core/services/storage/index.mjs +0 -3
  175. package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +0 -32
  176. package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +0 -237
  177. package/esm2020/lib/core/services/store/index.mjs +0 -5
  178. package/esm2020/lib/core/services/store/monkeyecx-store-base.service.mjs +0 -174
  179. package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +0 -26
  180. package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +0 -87
  181. package/esm2020/lib/core/services/store/monkeyecx-store.service.mjs +0 -195
  182. package/esm2020/lib/core/specification-search/index.mjs +0 -2
  183. package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +0 -108
  184. package/esm2020/lib/core/utils/decorators-utils.mjs +0 -40
  185. package/esm2020/lib/core/utils/index.mjs +0 -8
  186. package/esm2020/lib/core/utils/statics.mjs +0 -47
  187. package/esm2020/lib/core/utils/utils.mjs +0 -469
  188. package/esm2020/lib/core/utils/validate-utils.mjs +0 -219
  189. package/esm2020/lib/core/utils/validators.mjs +0 -327
  190. package/esm2020/lib/monkey-front-core.module.mjs +0 -71
  191. package/esm2020/lib/store/actions/index.mjs +0 -2
  192. package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +0 -8
  193. package/esm2020/lib/store/index.mjs +0 -4
  194. package/esm2020/lib/store/reducers/index.mjs +0 -3
  195. package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +0 -53
  196. package/esm2020/lib/store/reducers/monkeyecx-storage.reducer.mjs +0 -40
  197. package/esm2020/lib/store/selectors/index.mjs +0 -2
  198. package/esm2020/lib/store/selectors/monkeyecx-storage.selector.mjs +0 -17
  199. package/esm2020/monkey-front-core.mjs +0 -5
  200. package/esm2020/public-api.mjs +0 -8
  201. package/fesm2015/monkey-front-core.mjs +0 -7239
  202. package/fesm2015/monkey-front-core.mjs.map +0 -1
  203. package/fesm2020/monkey-front-core.mjs +0 -7249
  204. package/fesm2020/monkey-front-core.mjs.map +0 -1
  205. package/lib/components/alerts/alerts.component.d.ts +0 -22
  206. package/lib/components/alerts/alerts.module.d.ts +0 -10
  207. package/lib/components/alerts/index.d.ts +0 -2
  208. package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +0 -13
  209. package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +0 -11
  210. package/lib/components/closed-to-maintenance/index.d.ts +0 -2
  211. package/lib/components/currency-config/currency-config.component.d.ts +0 -17
  212. package/lib/components/currency-config/currency-config.module.d.ts +0 -10
  213. package/lib/components/currency-config/index.d.ts +0 -2
  214. package/lib/components/index.d.ts +0 -5
  215. package/lib/components/progress-bar/index.d.ts +0 -3
  216. package/lib/components/progress-bar/progress-bar.component.d.ts +0 -11
  217. package/lib/components/progress-bar/progress-bar.module.d.ts +0 -8
  218. package/lib/components/progress-bar/progress-bar.service.d.ts +0 -14
  219. package/lib/components/version-changed/index.d.ts +0 -2
  220. package/lib/components/version-changed/version-changed.component.d.ts +0 -9
  221. package/lib/components/version-changed/version-changed.module.d.ts +0 -10
  222. package/lib/core/decorators/index.d.ts +0 -4
  223. package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +0 -1
  224. package/lib/core/decorators/monkeyecx-decorators.d.ts +0 -7
  225. package/lib/core/decorators/monkeyecx-download-decorators.d.ts +0 -2
  226. package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +0 -2
  227. package/lib/core/directives/index.d.ts +0 -13
  228. package/lib/core/directives/monkeyecx-directives-module.d.ts +0 -20
  229. package/lib/core/directives/monkeyecx-drag-drop.d.ts +0 -12
  230. package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +0 -16
  231. package/lib/core/directives/monkeyecx-feature-directive.d.ts +0 -17
  232. package/lib/core/directives/monkeyecx-format-currency.d.ts +0 -16
  233. package/lib/core/directives/monkeyecx-format-upper.d.ts +0 -18
  234. package/lib/core/directives/monkeyecx-loading.d.ts +0 -16
  235. package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +0 -9
  236. package/lib/core/directives/monkeyecx-only-number-directive.d.ts +0 -9
  237. package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +0 -19
  238. package/lib/core/directives/monkeyecx-popover.directive.d.ts +0 -43
  239. package/lib/core/directives/monkeyecx-security-directive.d.ts +0 -18
  240. package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +0 -23
  241. package/lib/core/index.d.ts +0 -10
  242. package/lib/core/injectors/index.d.ts +0 -7
  243. package/lib/core/interceptors/index.d.ts +0 -5
  244. package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +0 -18
  245. package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +0 -16
  246. package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +0 -9
  247. package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +0 -12
  248. package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +0 -14
  249. package/lib/core/interfaces/index.d.ts +0 -36
  250. package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +0 -15
  251. package/lib/core/interfaces/monkeyecx-company-pendencies.d.ts +0 -14
  252. package/lib/core/interfaces/monkeyecx-company.d.ts +0 -10
  253. package/lib/core/interfaces/monkeyecx-config-bootstrap.d.ts +0 -14
  254. package/lib/core/interfaces/monkeyecx-config.d.ts +0 -132
  255. package/lib/core/interfaces/monkeyecx-country-security.d.ts +0 -4
  256. package/lib/core/interfaces/monkeyecx-embedded.d.ts +0 -7
  257. package/lib/core/interfaces/monkeyecx-error-response.d.ts +0 -5
  258. package/lib/core/interfaces/monkeyecx-filter.d.ts +0 -42
  259. package/lib/core/interfaces/monkeyecx-group.d.ts +0 -13
  260. package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +0 -10
  261. package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +0 -4
  262. package/lib/core/interfaces/monkeyecx-intercom-options.d.ts +0 -4
  263. package/lib/core/interfaces/monkeyecx-interface.d.ts +0 -11
  264. package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +0 -20
  265. package/lib/core/interfaces/monkeyecx-navigation.d.ts +0 -30
  266. package/lib/core/interfaces/monkeyecx-pagination.d.ts +0 -26
  267. package/lib/core/interfaces/monkeyecx-program.d.ts +0 -10
  268. package/lib/core/interfaces/monkeyecx-releases.d.ts +0 -9
  269. package/lib/core/interfaces/monkeyecx-request-in-progress.d.ts +0 -3
  270. package/lib/core/interfaces/monkeyecx-request-paged.d.ts +0 -23
  271. package/lib/core/interfaces/monkeyecx-resolver.d.ts +0 -39
  272. package/lib/core/interfaces/monkeyecx-response-links.d.ts +0 -11
  273. package/lib/core/interfaces/monkeyecx-response-paged.d.ts +0 -6
  274. package/lib/core/interfaces/monkeyecx-saved-state.d.ts +0 -5
  275. package/lib/core/interfaces/monkeyecx-scroll-options.d.ts +0 -5
  276. package/lib/core/interfaces/monkeyecx-service-credentials.d.ts +0 -12
  277. package/lib/core/interfaces/monkeyecx-storage.d.ts +0 -35
  278. package/lib/core/interfaces/monkeyecx-store.d.ts +0 -45
  279. package/lib/core/interfaces/monkeyecx-support-options.d.ts +0 -4
  280. package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +0 -30
  281. package/lib/core/interfaces/monkeyecx-translate-options.d.ts +0 -4
  282. package/lib/core/interfaces/request-download/index.d.ts +0 -3
  283. package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +0 -10
  284. package/lib/core/interfaces/request-download/monkeyecx-request-downloaded.d.ts +0 -7
  285. package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +0 -7
  286. package/lib/core/interfaces/request-queue/index.d.ts +0 -3
  287. package/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.d.ts +0 -7
  288. package/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.d.ts +0 -6
  289. package/lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts +0 -8
  290. package/lib/core/interfaces/request-upload/index.d.ts +0 -2
  291. package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +0 -5
  292. package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +0 -10
  293. package/lib/core/interfaces/schedules/index.d.ts +0 -1
  294. package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +0 -13
  295. package/lib/core/model/index.d.ts +0 -2
  296. package/lib/core/model/monkeyecx-links.model.d.ts +0 -4
  297. package/lib/core/model/monkeyecx-model.d.ts +0 -14
  298. package/lib/core/pipes/index.d.ts +0 -23
  299. package/lib/core/pipes/monkeyecx-blob-secure.d.ts +0 -13
  300. package/lib/core/pipes/monkeyecx-currency-code.d.ts +0 -9
  301. package/lib/core/pipes/monkeyecx-display-first-name.d.ts +0 -7
  302. package/lib/core/pipes/monkeyecx-display-initials.d.ts +0 -7
  303. package/lib/core/pipes/monkeyecx-display-support-phone.d.ts +0 -18
  304. package/lib/core/pipes/monkeyecx-format-address.d.ts +0 -14
  305. package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +0 -8
  306. package/lib/core/pipes/monkeyecx-format-currency.d.ts +0 -12
  307. package/lib/core/pipes/monkeyecx-format-date-group.d.ts +0 -11
  308. package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +0 -7
  309. package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +0 -7
  310. package/lib/core/pipes/monkeyecx-format-date.d.ts +0 -12
  311. package/lib/core/pipes/monkeyecx-format-document.d.ts +0 -7
  312. package/lib/core/pipes/monkeyecx-format-number.d.ts +0 -7
  313. package/lib/core/pipes/monkeyecx-format-phone.d.ts +0 -7
  314. package/lib/core/pipes/monkeyecx-format-size.d.ts +0 -7
  315. package/lib/core/pipes/monkeyecx-format-tax.d.ts +0 -7
  316. package/lib/core/pipes/monkeyecx-format-type-document.d.ts +0 -7
  317. package/lib/core/pipes/monkeyecx-format-value.d.ts +0 -7
  318. package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +0 -7
  319. package/lib/core/pipes/monkeyecx-pipes.module.d.ts +0 -28
  320. package/lib/core/pipes/monkeyecx-text-truncate.d.ts +0 -7
  321. package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +0 -7
  322. package/lib/core/services/alerts/index.d.ts +0 -1
  323. package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +0 -49
  324. package/lib/core/services/auth/index.d.ts +0 -5
  325. package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +0 -10
  326. package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +0 -10
  327. package/lib/core/services/auth/monkeyecx-auth-guard-role.service.d.ts +0 -16
  328. package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +0 -10
  329. package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +0 -35
  330. package/lib/core/services/commons/index.d.ts +0 -3
  331. package/lib/core/services/commons/monkeyecx-commons-resolve-base.service.d.ts +0 -46
  332. package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +0 -60
  333. package/lib/core/services/commons/monkeyecx-commons.service.d.ts +0 -120
  334. package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +0 -11
  335. package/lib/core/services/config/monkeyecx-config.module.d.ts +0 -9
  336. package/lib/core/services/config/monkeyecx-config.service.d.ts +0 -36
  337. package/lib/core/services/config/monkeyecx-currency-config.service.d.ts +0 -15
  338. package/lib/core/services/config/monkeyecx-error-config.service.d.ts +0 -8
  339. package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +0 -17
  340. package/lib/core/services/config/monkeyecx-gtm-config.service.d.ts +0 -8
  341. package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +0 -24
  342. package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +0 -14
  343. package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +0 -13
  344. package/lib/core/services/config/monkeyecx-security-console-config.service.d.ts +0 -12
  345. package/lib/core/services/config/monkeyecx-service-worker-config.service.d.ts +0 -16
  346. package/lib/core/services/error/index.d.ts +0 -4
  347. package/lib/core/services/error/monkeyecx-error-handling.module.d.ts +0 -9
  348. package/lib/core/services/error/monkeyecx-error-handling.service.d.ts +0 -9
  349. package/lib/core/services/error/monkeyecx-http-error-handling.service.d.ts +0 -26
  350. package/lib/core/services/error/monkeyecx-others-errors-handling.service.d.ts +0 -11
  351. package/lib/core/services/index.d.ts +0 -26
  352. package/lib/core/services/l/index.d.ts +0 -1
  353. package/lib/core/services/l/l.service.d.ts +0 -11
  354. package/lib/core/services/logged/index.d.ts +0 -1
  355. package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +0 -14
  356. package/lib/core/services/monkeyecx-handling.service.d.ts +0 -22
  357. package/lib/core/services/monkeyecx-service.service.d.ts +0 -19
  358. package/lib/core/services/pagination/index.d.ts +0 -1
  359. package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +0 -9
  360. package/lib/core/services/request-download/index.d.ts +0 -2
  361. package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +0 -18
  362. package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +0 -16
  363. package/lib/core/services/request-paged/index.d.ts +0 -1
  364. package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +0 -11
  365. package/lib/core/services/request-queue/index.d.ts +0 -2
  366. package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +0 -21
  367. package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +0 -23
  368. package/lib/core/services/routes/index.d.ts +0 -1
  369. package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +0 -13
  370. package/lib/core/services/schedules/index.d.ts +0 -1
  371. package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +0 -47
  372. package/lib/core/services/storage/index.d.ts +0 -2
  373. package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +0 -11
  374. package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +0 -30
  375. package/lib/core/services/store/index.d.ts +0 -4
  376. package/lib/core/services/store/monkeyecx-store-base.service.d.ts +0 -47
  377. package/lib/core/services/store/monkeyecx-store.actions.d.ts +0 -42
  378. package/lib/core/services/store/monkeyecx-store.selector.d.ts +0 -32
  379. package/lib/core/services/store/monkeyecx-store.service.d.ts +0 -50
  380. package/lib/core/specification-search/index.d.ts +0 -1
  381. package/lib/core/specification-search/monkeyecx-specification-search.d.ts +0 -20
  382. package/lib/core/utils/decorators-utils.d.ts +0 -5
  383. package/lib/core/utils/index.d.ts +0 -6
  384. package/lib/core/utils/statics.d.ts +0 -36
  385. package/lib/core/utils/utils.d.ts +0 -39
  386. package/lib/core/utils/validate-utils.d.ts +0 -71
  387. package/lib/core/utils/validators.d.ts +0 -43
  388. package/lib/monkey-front-core.module.d.ts +0 -19
  389. package/lib/store/actions/index.d.ts +0 -1
  390. package/lib/store/actions/monkeyecx-storage.actions.d.ts +0 -23
  391. package/lib/store/index.d.ts +0 -3
  392. package/lib/store/reducers/index.d.ts +0 -2
  393. package/lib/store/reducers/monkeyecx-seeder.reducer.d.ts +0 -2
  394. package/lib/store/reducers/monkeyecx-storage.reducer.d.ts +0 -13
  395. package/lib/store/selectors/index.d.ts +0 -1
  396. package/lib/store/selectors/monkeyecx-storage.selector.d.ts +0 -8
  397. package/monkey-front-core-0.0.603.tgz +0 -0
  398. package/monkey-front-core.d.ts +0 -5
  399. package/public-api.d.ts +0 -4
@@ -0,0 +1,1763 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy, TemplateRef, ViewContainerRef, OnChanges, SimpleChanges, InjectionToken, ModuleWithProviders, PipeTransform } from '@angular/core';
3
+ import { NgModel, AbstractControl, ValidationErrors, FormGroup } from '@angular/forms';
4
+ import { CanActivate, Router, ActivatedRouteSnapshot, RouterStateSnapshot, Resolve } from '@angular/router';
5
+ import * as _ngrx_store from '@ngrx/store';
6
+ import { Action, Store, ActionReducer } from '@ngrx/store';
7
+ import { Observable, Subject, BehaviorSubject } from 'rxjs';
8
+ import { HttpErrorResponse, HttpRequest, HttpHandler, HttpEvent, HttpContextToken, HttpInterceptorFn, HttpHeaders, HttpContext, HttpParams, HttpResponse } from '@angular/common/http';
9
+ import * as i1 from '@angular/common';
10
+ import { CurrencyPipe, DatePipe } from '@angular/common';
11
+ import { SafeUrl } from '@angular/platform-browser';
12
+ import { CookieService } from 'ngx-cookie-service';
13
+
14
+ /** ************************
15
+ * Copyright Monkey Exchange. All Rights Reserved
16
+ * This style guide was developed by Monkey Exchange Team
17
+ * MIT Licence
18
+ ************************* */
19
+ interface MonkeyEcxServiceHttpResponseCredentials {
20
+ httpCodeIgnore?: number[];
21
+ httpCodeIgnoreRedirect?: number[];
22
+ }
23
+ interface MonkeyEcxServiceCredentials {
24
+ id: string;
25
+ httpResponse?: MonkeyEcxServiceHttpResponseCredentials;
26
+ }
27
+
28
+ /** ************************
29
+ * Copyright Monkey Exchange. All Rights Reserved
30
+ * This style guide was developed by Monkey Exchange Team
31
+ * MIT Licence
32
+ ************************* */
33
+
34
+ declare function MonkeyEcxCoreService(params: MonkeyEcxServiceCredentials): (target: Object, propertyName: string, propertyDescriptor: PropertyDescriptor) => PropertyDescriptor;
35
+
36
+ interface ErrorMessageContext {
37
+ $implicit: string | null;
38
+ errorMessage: string | null;
39
+ errorParams: {
40
+ [key: string]: string | number;
41
+ } | null;
42
+ }
43
+ declare class MonkeyEcxErrorMessageDirective implements OnInit, OnDestroy {
44
+ private tpl;
45
+ private vcr;
46
+ private _destroyRef;
47
+ private control;
48
+ private sub?;
49
+ private context;
50
+ private updateViewEvent;
51
+ set errorMessage(control: NgModel | AbstractControl | null);
52
+ constructor(tpl: TemplateRef<ErrorMessageContext>, vcr: ViewContainerRef);
53
+ ngOnInit(): void;
54
+ private subscribe;
55
+ private updateView;
56
+ ngOnDestroy(): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxErrorMessageDirective, never>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxErrorMessageDirective, "[monkeyecxErrorMessage]", never, { "errorMessage": { "alias": "monkeyecxErrorMessage"; "required": false; }; }, {}, never, never, true, never>;
59
+ }
60
+
61
+ /** ************************
62
+ * Copyright Monkey Exchange. All Rights Reserved
63
+ * This style guide was developed by Monkey Exchange Team
64
+ * MIT Licence
65
+ ************************* */
66
+
67
+ declare class MonkeyEcxFeatureByProgramDirective implements OnInit {
68
+ feature: string;
69
+ private readonly _configsService;
70
+ private readonly _elementRef;
71
+ private readonly _changeDetectorRef;
72
+ private init;
73
+ private handleDisplay;
74
+ ngOnInit(): void;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFeatureByProgramDirective, never>;
76
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxFeatureByProgramDirective, "[monkeyecxFeatureByProgram]", never, { "feature": { "alias": "feature"; "required": false; }; }, {}, never, never, true, never>;
77
+ }
78
+
79
+ /** ************************
80
+ * Copyright Monkey Exchange. All Rights Reserved
81
+ * This style guide was developed by Monkey Exchange Team
82
+ * MIT Licence
83
+ ************************* */
84
+
85
+ declare class MonkeyEcxFeatureDirective implements OnInit {
86
+ feature?: string;
87
+ private readonly _service;
88
+ private readonly _elementRef;
89
+ private readonly _changeDetectorRef;
90
+ private readonly _destroyRef;
91
+ private getFeature;
92
+ private handleDisplay;
93
+ ngOnInit(): void;
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFeatureDirective, never>;
95
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxFeatureDirective, "[monkeyecxFeature]", never, { "feature": { "alias": "featureName"; "required": false; }; }, {}, never, never, true, never>;
96
+ }
97
+
98
+ /** ************************
99
+ * Copyright Monkey Exchange. All Rights Reserved
100
+ * This style guide was developed by Monkey Exchange Team
101
+ * MIT Licence
102
+ ************************* */
103
+
104
+ declare class MonkeyEcxLoadingDirective implements OnChanges {
105
+ private templateRef;
106
+ private viewContainer;
107
+ private _view;
108
+ private _loadingElement;
109
+ private readonly elementRef;
110
+ constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
111
+ monkeyecxLoading: boolean;
112
+ monkeyecxLoadingSize: 'lg' | 'md' | 'sm';
113
+ ngOnChanges(changes: SimpleChanges): void;
114
+ updateView(): void;
115
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxLoadingDirective, never>;
116
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxLoadingDirective, "[monkeyecxLoading]", never, { "monkeyecxLoading": { "alias": "monkeyecxLoading"; "required": false; }; "monkeyecxLoadingSize": { "alias": "monkeyecxLoadingSize"; "required": false; }; }, {}, never, never, true, never>;
117
+ }
118
+
119
+ /** ************************
120
+ * Copyright Monkey Exchange. All Rights Reserved
121
+ * This style guide was developed by Monkey Exchange Team
122
+ * MIT Licence
123
+ ************************* */
124
+
125
+ declare class MonkeyEcxSecurityDirective implements OnInit {
126
+ roles: string[];
127
+ byExclusion: boolean;
128
+ private _tokenCredentials;
129
+ private readonly _tokenStorageService;
130
+ private readonly elementRef;
131
+ private readonly changeDetectorRef;
132
+ constructor();
133
+ private getRole;
134
+ private handleAccess;
135
+ private handleData;
136
+ ngOnInit(): void;
137
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxSecurityDirective, never>;
138
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MonkeyEcxSecurityDirective, "[monkeyecxSecurity]", never, { "roles": { "alias": "securityRoles"; "required": false; }; "byExclusion": { "alias": "securityByExclusion"; "required": false; }; }, {}, never, never, true, never>;
139
+ }
140
+
141
+ declare const CACHE_LOCALE_EXPIRATION_MS: number;
142
+
143
+ /** ************************
144
+ * Copyright Monkey Exchange. All Rights Reserved
145
+ * This style guide was developed by Monkey Exchange Team
146
+ * MIT Licence
147
+ ************************* */
148
+ declare enum CountryMasks {
149
+ CPF = "000.000.000-00",
150
+ CNPJ = "00.000.000/0000-00",
151
+ RUT1 = "0000000-A",
152
+ RUT2 = "00000000-A",
153
+ RFC1 = "AAAA000000AA0",
154
+ RFC2 = "AAA000000AA0",
155
+ EIN = "00-0000000"
156
+ }
157
+
158
+ declare function emailValidator(control: AbstractControl): ValidationErrors | null;
159
+ declare function dateRangeValidator(control: AbstractControl): ValidationErrors | null;
160
+ declare function registerValidator(control: AbstractControl, type: string): ValidationErrors | null;
161
+ declare function dateStartEndValidator(control: AbstractControl): ValidationErrors | null;
162
+ declare function urlValidator(control: AbstractControl): ValidationErrors | null;
163
+ declare function passwordConfirmValidator(control: AbstractControl): ValidationErrors | null;
164
+ declare function trueValidator(control: AbstractControl): ValidationErrors | null;
165
+ declare function comboValidator(control: AbstractControl): ValidationErrors | null;
166
+ declare function zipCodeValidator(control: AbstractControl, country?: string): ValidationErrors | null;
167
+ declare function documentValidator(control: AbstractControl, country: string): ValidationErrors | null;
168
+ declare function minYearsValidator(param: number, control: AbstractControl): ValidationErrors | null;
169
+ declare function dateValidator(control: AbstractControl): ValidationErrors | null;
170
+ declare function valueGreaterThanZero(control: AbstractControl): ValidationErrors | null;
171
+ declare function requiredWithTrimValidator(control: AbstractControl): ValidationErrors | null;
172
+ declare function differentFromZero(control: AbstractControl): ValidationErrors | null;
173
+ declare function documentValidatorByType(type: string, control: AbstractControl): ValidationErrors | null;
174
+ declare function validateFullName(control: AbstractControl): ValidationErrors | null;
175
+ declare function containsNumber(control: AbstractControl): ValidationErrors | null;
176
+ declare class MonkeyValidators {
177
+ static email(control: AbstractControl): ValidationErrors | null;
178
+ static dateRange(control: AbstractControl): ValidationErrors | null;
179
+ static unlockSponsorRegister(control: AbstractControl): ValidationErrors | null;
180
+ static unlockBuyerRegister(control: AbstractControl): ValidationErrors | null;
181
+ static dateStartEnd(control: AbstractControl): ValidationErrors | null;
182
+ static url(control: AbstractControl): ValidationErrors | null;
183
+ static passwordConfirm(control: AbstractControl): ValidationErrors | null;
184
+ static true(control: AbstractControl): ValidationErrors | null;
185
+ static combo(control: AbstractControl): ValidationErrors | null;
186
+ static zipCode(control: AbstractControl): ValidationErrors | null;
187
+ static zipCodeByCountry(country: string): (control: AbstractControl) => ValidationErrors | null;
188
+ static documentBR(control: AbstractControl): ValidationErrors | null;
189
+ static documentCL(control: AbstractControl): ValidationErrors | null;
190
+ static documentMX(control: AbstractControl): ValidationErrors | null;
191
+ static documentUS(control: AbstractControl): ValidationErrors | null;
192
+ static date(control: AbstractControl): ValidationErrors | null;
193
+ static minYears(param: number): ValidationErrors | null;
194
+ static greaterThanZero(control: AbstractControl): ValidationErrors | null;
195
+ static required(control: AbstractControl): ValidationErrors | null;
196
+ static differentFromZero(control: AbstractControl): ValidationErrors | null;
197
+ static documentValidatorByType(type: string): (control: AbstractControl) => ValidationErrors | null;
198
+ static validateFullName(control: AbstractControl): ValidationErrors | null;
199
+ static containsNumber(control: AbstractControl): ValidationErrors | null;
200
+ }
201
+
202
+ declare class MonkeyEcxAuthGuardCompany implements CanActivate {
203
+ private readonly _authService;
204
+ canActivate(): boolean;
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuardCompany, never>;
206
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuardCompany>;
207
+ }
208
+
209
+ declare class MonkeyEcxAuthGuardLogin implements CanActivate {
210
+ private readonly _authService;
211
+ canActivate(): boolean;
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuardLogin, never>;
213
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuardLogin>;
214
+ }
215
+
216
+ declare class MonkeyEcxCookieStorageService {
217
+ private cookieService;
218
+ private readonly _bootstrapService;
219
+ constructor(cookieService: CookieService);
220
+ setCookie(name: string, value: any): void;
221
+ getCookie(name: string): string;
222
+ removeCookie(name: string): void;
223
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxCookieStorageService, never>;
224
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxCookieStorageService>;
225
+ }
226
+
227
+ /** ************************
228
+ * Copyright Monkey Exchange. All Rights Reserved
229
+ * This style guide was developed by Monkey Exchange Team
230
+ * MIT Licence
231
+ ************************* */
232
+ interface MonkeyEcxGroupCompany {
233
+ governmentId: string;
234
+ id: string;
235
+ role: string;
236
+ status: string;
237
+ }
238
+ interface MonkeyEcxGroup {
239
+ companies: MonkeyEcxGroupCompany[];
240
+ groupId: string;
241
+ name: string;
242
+ role: string;
243
+ style: 'mandril' | 'koba' | 'colobus' | 'prego' | 'saki' | 'mico-leao' | 'gibbon' | 'babuino';
244
+ }
245
+ interface MonkeyEcxMeCredentials {
246
+ name: string;
247
+ email: string;
248
+ username: string;
249
+ status: string;
250
+ pictureURL: string;
251
+ selectedLanguage: string;
252
+ companies: {
253
+ id: string;
254
+ companyId: string;
255
+ governmentId: string;
256
+ program: string;
257
+ programAdmin: boolean;
258
+ role: string;
259
+ type: string;
260
+ selected: boolean;
261
+ }[];
262
+ programs: {
263
+ name: string;
264
+ ownerGovernmentId: string;
265
+ ownerName: string;
266
+ product: string;
267
+ token: string;
268
+ ownerId: string;
269
+ type: string;
270
+ url: string;
271
+ }[];
272
+ groups: MonkeyEcxGroup[];
273
+ nickname: string;
274
+ cellPhone: string;
275
+ smsNotification: boolean;
276
+ privacyPolicy: boolean;
277
+ useTerms: boolean;
278
+ locale: string;
279
+ newsletter: boolean;
280
+ others: string;
281
+ }
282
+
283
+ /** ************************
284
+ * Copyright Monkey Exchange. All Rights Reserved
285
+ * This style guide was developed by Monkey Exchange Team
286
+ * MIT Licence
287
+ ************************* */
288
+ interface MonkeyEcxTokenCredentialsClearIgnore {
289
+ ignore: string[];
290
+ }
291
+ type MonkeyEcxAccessHandleAccessTypes = 'BY_GROUP' | 'REFRESH_TOKEN' | 'BY_REGISTER' | 'BY_COMPANY_SETTINGS';
292
+ interface MonkeyEcxAccessHandleTokenCredentials {
293
+ access: MonkeyEcxAccessHandleAccessTypes;
294
+ governmentId: string;
295
+ groupId: string;
296
+ groupName: string;
297
+ type: string;
298
+ programUrl: string;
299
+ }
300
+ interface MonkeyEcxTokenCredentials {
301
+ username: string;
302
+ program?: string;
303
+ accessToken?: string;
304
+ refreshToken?: string;
305
+ companyId?: string;
306
+ governmentId?: string;
307
+ companyTypeUrl?: string;
308
+ companyType?: string;
309
+ role?: string;
310
+ programAdmin?: boolean | string;
311
+ programType?: string;
312
+ accessType?: string;
313
+ ownerGovernmentId?: string;
314
+ name?: string;
315
+ status?: string;
316
+ accessHandle?: MonkeyEcxAccessHandleTokenCredentials;
317
+ _clearIgnore?: MonkeyEcxTokenCredentialsClearIgnore;
318
+ }
319
+
320
+ interface MonkeyEcxAuthCredentials {
321
+ client_id?: string;
322
+ client_secret?: string;
323
+ grant_type?: string;
324
+ scope?: string;
325
+ username?: string;
326
+ password?: string;
327
+ access_token?: string;
328
+ token_type?: string;
329
+ refresh_token?: string;
330
+ expires_in?: number;
331
+ program?: string;
332
+ userType?: string;
333
+ totp_code?: string;
334
+ }
335
+ interface MonkeyEcxAuthReAuthenticateData {
336
+ accessHandle: MonkeyEcxAccessHandleTokenCredentials;
337
+ }
338
+ type MonkeyEcxRefreshTokenStrategy = () => Observable<any>;
339
+ type MonkeyEcxRedirectLoginWelcomeBackStrategy = () => void;
340
+ interface MonkeyEcxAuthenticationService {
341
+ handleErrorFromLogin(err: HttpErrorResponse, param: MonkeyEcxAuthCredentials): void;
342
+ deleteToken(): void;
343
+ saveTokenCredentials(authCredentials: MonkeyEcxAuthCredentials): void;
344
+ getClientIdSecretByAccess(): void;
345
+ setToken(token: Partial<MonkeyEcxTokenCredentials>): void;
346
+ setMe(me: Partial<MonkeyEcxMeCredentials>): void;
347
+ isAuthorized(): void;
348
+ isCompanyAuthorized(): void;
349
+ hadAtLeastOneLogin(): void;
350
+ logOut(force?: boolean, redirect?: boolean, callback?: Function, doDelete?: boolean): void;
351
+ redirectLoginWelcomeBack: MonkeyEcxRedirectLoginWelcomeBackStrategy;
352
+ redirectApp(): void;
353
+ handleFlowAfterLogin(): void;
354
+ reAuthenticate(authData: MonkeyEcxAuthReAuthenticateData): void;
355
+ login(param: MonkeyEcxAuthCredentials): void;
356
+ refreshToken: MonkeyEcxRefreshTokenStrategy;
357
+ me(authCredentials: MonkeyEcxAuthCredentials): void;
358
+ saveMeCredentials(meCredentials: MonkeyEcxMeCredentials): void;
359
+ }
360
+
361
+ /** ************************
362
+ * Copyright Monkey Exchange. All Rights Reserved
363
+ * This style guide was developed by Monkey Exchange Team
364
+ * MIT Licence
365
+ ************************* */
366
+ interface MonkeyEcxCompany {
367
+ id: string;
368
+ companyId: string;
369
+ governmentId: string;
370
+ program: string;
371
+ programAdmin: boolean;
372
+ role: string;
373
+ type: string;
374
+ selected?: boolean;
375
+ }
376
+
377
+ /** ************************
378
+ * Copyright Monkey Exchange. All Rights Reserved
379
+ * This style guide was developed by Monkey Exchange Team
380
+ * MIT Licence
381
+ ************************* */
382
+ interface MonkeyEcxEnv {
383
+ baseUrl: string;
384
+ bootstrapAssets: string;
385
+ snENDUPLuHlBxIJD7h: string;
386
+ zi7TpJCi6JD1Kqzb4S: string;
387
+ DBMpPL0iJZSWKZIzky: string;
388
+ GCJfuDpr4j1xVMQtt4: string;
389
+ iYLTsmFPXYjRhCLtnoRe: string;
390
+ qvz2w3GII6uWTdRHV4m3: string;
391
+ a7T3bM9qL1xZ8d: string;
392
+ country: string;
393
+ lang: string;
394
+ countryTzName: string;
395
+ dataDogApplicationId: string;
396
+ dataDogClientToken: string;
397
+ dataDogBrowserLogsEnable: boolean;
398
+ environment: string;
399
+ grant_type: string;
400
+ launchDarklyClientSideID: string;
401
+ localAssets: string;
402
+ product: string;
403
+ production: boolean;
404
+ scope: string;
405
+ urlAddressSearch: string;
406
+ urlAssets: string;
407
+ urli18nAssets: string;
408
+ urlDomain: string;
409
+ urlZipCodeSearch: string;
410
+ zenDeskKey: string;
411
+ zenDeskUrlDoc: string;
412
+ apps?: {
413
+ login?: string;
414
+ soo?: string;
415
+ caco?: string;
416
+ monkey?: string;
417
+ };
418
+ paths: {
419
+ redirectAfterLogin: string;
420
+ redirectAfterLoginProduct: string;
421
+ redirectApp: string;
422
+ redirectByCompanyType: Function;
423
+ };
424
+ termsUrl?: {
425
+ privacyPolicy: string;
426
+ useTerms: string;
427
+ mfa: string;
428
+ };
429
+ genericAlerts?: {
430
+ [key: string]: {
431
+ pathToShow: string;
432
+ pathToEvict: string;
433
+ name: string;
434
+ img: string;
435
+ startDate: string;
436
+ endDate: string;
437
+ noEndDate: boolean;
438
+ cookieName: string;
439
+ };
440
+ };
441
+ locale?: {
442
+ timezoneOffset: string;
443
+ defaultCurrency: string;
444
+ lang: string;
445
+ dateFormat: string;
446
+ dateFormatSec: string;
447
+ };
448
+ gtm?: {
449
+ enabled: boolean;
450
+ key: string;
451
+ };
452
+ sdk?: {
453
+ faceid: string;
454
+ };
455
+ braze: {
456
+ api_key: string;
457
+ sdk_endpoint: string;
458
+ enableLogging: boolean;
459
+ };
460
+ }
461
+
462
+ /** ************************
463
+ * Copyright Monkey Exchange. All Rights Reserved
464
+ * This style guide was developed by Monkey Exchange Team
465
+ * MIT Licence
466
+ ************************* */
467
+ interface MonkeyEcxCachedFile {
468
+ filename: string;
469
+ blob: Blob;
470
+ timestamp: number;
471
+ }
472
+
473
+ /** ************************
474
+ * Copyright Monkey Exchange. All Rights Reserved
475
+ * This style guide was developed by Monkey Exchange Team
476
+ * MIT Licence
477
+ ************************* */
478
+ interface MonkeyEcxHeaderCredentials {
479
+ Authorization?: string;
480
+ Program?: string;
481
+ }
482
+
483
+ /** ************************
484
+ * Copyright Monkey Exchange. All Rights Reserved
485
+ * This style guide was developed by Monkey Exchange Team
486
+ * MIT Licence
487
+ ************************* */
488
+
489
+ interface MonkeyEcxBootstrap {
490
+ version: string;
491
+ showNewVersion: boolean;
492
+ pingThresholdMs: number;
493
+ maintenance: {
494
+ closed: boolean;
495
+ startDate: string;
496
+ endDate: string;
497
+ };
498
+ languagesAvailables: {
499
+ lang: string;
500
+ currency: string;
501
+ title: string;
502
+ }[];
503
+ federationSettings: {
504
+ [key: string]: {
505
+ host: string;
506
+ parentPath: string;
507
+ [key: string]: string;
508
+ };
509
+ };
510
+ }
511
+ interface MonkeyEcxAlert {
512
+ img: string;
513
+ title: string;
514
+ message: string;
515
+ endDate: string;
516
+ noEndDate?: boolean;
517
+ hideClose?: boolean;
518
+ action?: {
519
+ href: string;
520
+ label: string;
521
+ };
522
+ }
523
+ interface MonkeyEcxWhiteLabel {
524
+ program: {
525
+ token: string;
526
+ name: string;
527
+ type: string;
528
+ register: {
529
+ seller: {
530
+ types: string[];
531
+ documentTypes: string[];
532
+ legalNatures: string[];
533
+ };
534
+ sponsor: {
535
+ types: string[];
536
+ };
537
+ buyer: {
538
+ calculationTypes: string[];
539
+ legalNatures: string[];
540
+ types: string[];
541
+ };
542
+ };
543
+ settings: {
544
+ editSponsorTax: boolean;
545
+ disableBuyerInformation: boolean;
546
+ [key: string]: boolean;
547
+ };
548
+ screens: {
549
+ login: {
550
+ passwordStrength: {
551
+ WHITE_SPACE?: string;
552
+ DIGIT_CHARACTER?: string;
553
+ UPPERCASE_CHARACTER?: string;
554
+ LOWERCASE_CHARACTER?: string;
555
+ ALPHA_SEQUENCE?: string;
556
+ NUMBER_SEQUENCE?: string;
557
+ QWERTY_SEQUENCE?: string;
558
+ REPEAT_CHARS?: string;
559
+ };
560
+ };
561
+ };
562
+ };
563
+ market?: {
564
+ daysToSearch: number;
565
+ operation: {
566
+ currentDaysToSearch: number;
567
+ maximumDaysToSearch: number;
568
+ };
569
+ hourToClose?: number;
570
+ };
571
+ theme?: {
572
+ logos: {
573
+ favicon: string;
574
+ toolbar: string;
575
+ login: string;
576
+ footer: string;
577
+ };
578
+ };
579
+ support?: {
580
+ phones?: {
581
+ attendant?: string;
582
+ endHour: number;
583
+ icon: string;
584
+ numbers?: string[];
585
+ startHour: number;
586
+ }[];
587
+ emails?: {
588
+ attendant?: string;
589
+ icon: string;
590
+ recipients?: string[];
591
+ }[];
592
+ information?: {
593
+ icon: string;
594
+ message?: string;
595
+ action?: string;
596
+ };
597
+ };
598
+ i18n?: {
599
+ lang?: string;
600
+ currency?: string;
601
+ currencies?: string[];
602
+ 'google-chart-language'?: string;
603
+ paths: string[];
604
+ };
605
+ logs?: {
606
+ enabled: boolean;
607
+ };
608
+ externali18n?: {
609
+ [s: string]: any;
610
+ };
611
+ messages?: {
612
+ checkoutSuccess: string[];
613
+ };
614
+ externalSettings?: {
615
+ dev: {
616
+ url: string;
617
+ urlName: string;
618
+ };
619
+ hmg: {
620
+ url: string;
621
+ urlName: string;
622
+ };
623
+ prod: {
624
+ url: string;
625
+ urlName: string;
626
+ };
627
+ };
628
+ gtm?: {
629
+ enabled: boolean;
630
+ key: string;
631
+ };
632
+ alert?: MonkeyEcxAlert;
633
+ }
634
+ interface MonkeyEcxStyleColor {
635
+ main: string;
636
+ 0: string;
637
+ 50: string;
638
+ 100: string;
639
+ 200: string;
640
+ 300: string;
641
+ 400: string;
642
+ 500: string;
643
+ 600: string;
644
+ 700: string;
645
+ 800: string;
646
+ 900: string;
647
+ A100: string;
648
+ A200: string;
649
+ A400: string;
650
+ A700: string;
651
+ contrast: {
652
+ main: string;
653
+ 50: string;
654
+ 100: string;
655
+ 200: string;
656
+ 300: string;
657
+ 400: string;
658
+ 500: string;
659
+ 600: string;
660
+ 700: string;
661
+ 800: string;
662
+ 900: string;
663
+ A100: string;
664
+ A200: string;
665
+ A400: string;
666
+ A700: string;
667
+ };
668
+ }
669
+ interface MonkeyEcxStyleGuideFont {
670
+ url: string;
671
+ name: string;
672
+ }
673
+ interface MonkeyEcxStyleGuide {
674
+ theme?: {
675
+ title?: string;
676
+ favicon?: string;
677
+ };
678
+ colors?: {
679
+ theme: MonkeyEcxStyleColor;
680
+ error: MonkeyEcxStyleColor;
681
+ warning: MonkeyEcxStyleColor;
682
+ success: MonkeyEcxStyleColor;
683
+ };
684
+ font?: MonkeyEcxStyleGuideFont;
685
+ currency?: {
686
+ code: string;
687
+ name: string;
688
+ locale: string;
689
+ };
690
+ }
691
+ interface MonkeyEcxBootstrapService {
692
+ handleMessage(message: string, type: string): void;
693
+ handleI18N(lang: string, obj: any): void;
694
+ finishLoading(): void;
695
+ getEnv(): MonkeyEcxEnv;
696
+ getDefaultProgram(): string;
697
+ /**
698
+ * This is a token to send every request that we want some mandatory headers
699
+ * Like if we want to use Authorization and Program to every requests.
700
+ * This token must have the following content:
701
+ *
702
+ * ### Example
703
+ * ```
704
+ * 'viacep.com.br/#assets.monkeyecx.com/#assets.monkey.exchange/'
705
+ * ```
706
+ *
707
+ */
708
+ getNotMandatoryUrls(): string;
709
+ handleProgram?(token: string): string;
710
+ }
711
+
712
+ interface MonkeyEcxInterface {
713
+ createdAt?: string;
714
+ createUserId?: string;
715
+ createUserIp?: string;
716
+ updatedAt?: string;
717
+ lastUserId?: string;
718
+ lastUserIp?: string;
719
+ _links?: any;
720
+ id?: string;
721
+ identifier?: string;
722
+ }
723
+
724
+ /** ************************
725
+ * Copyright Monkey Exchange. All Rights Reserved
726
+ * This style guide was developed by Monkey Exchange Team
727
+ * MIT Licence
728
+ ************************* */
729
+ declare class Link {
730
+ href: string;
731
+ type: string;
732
+ profile: string;
733
+ templated: boolean;
734
+ constructor(data?: any);
735
+ }
736
+ declare class MonkeyEcxModel {
737
+ _links: any;
738
+ getAction(type: string, replaceOptions?: {
739
+ from: string;
740
+ to: string;
741
+ }): Link | null;
742
+ }
743
+
744
+ /** ************************
745
+ * Copyright Monkey Exchange. All Rights Reserved
746
+ * This style guide was developed by Monkey Exchange Team
747
+ * MIT Licence
748
+ ************************* */
749
+
750
+ declare class MonkeyEcxLinksModel extends MonkeyEcxModel {
751
+ constructor(data?: any);
752
+ }
753
+
754
+ /** ************************
755
+ * Copyright Monkey Exchange. All Rights Reserved
756
+ * This style guide was developed by Monkey Exchange Team
757
+ * MIT Licence
758
+ ************************* */
759
+
760
+ type MonkeyEcxPaginationActions = 'first' | 'next' | 'prev' | 'last';
761
+ interface MonkeyEcxPagination {
762
+ action: MonkeyEcxPaginationActions;
763
+ }
764
+ interface MonkeyEcxTypedLink extends Link {
765
+ url: string;
766
+ }
767
+ interface MonkeyEcxPaginationData {
768
+ [key: string]: MonkeyEcxTypedLink;
769
+ }
770
+ interface MonkeyEcxPaginationSortField {
771
+ type?: string;
772
+ format?: string;
773
+ direction: 'desc' | 'asc';
774
+ }
775
+ interface MonkeyEcxPaginationSortData {
776
+ [key: string]: MonkeyEcxPaginationSortField;
777
+ }
778
+ interface MonkeyEcxPage {
779
+ size: number;
780
+ totalElements: number;
781
+ totalPages: number;
782
+ number: number;
783
+ }
784
+
785
+ /** ************************
786
+ * Copyright Monkey Exchange. All Rights Reserved
787
+ * This style guide was developed by Monkey Exchange Team
788
+ * MIT Licence
789
+ ************************* */
790
+ interface MonkeyEcxProgram {
791
+ name: string;
792
+ ownerGovernmentId: string;
793
+ ownerName: string;
794
+ product: string;
795
+ token: string;
796
+ ownerId: string;
797
+ type: string;
798
+ url: string;
799
+ }
800
+
801
+ interface MonkeyEcxPendingRequest {
802
+ request: HttpRequest<any>;
803
+ next: HttpHandler;
804
+ observer: Subject<HttpEvent<any>>;
805
+ }
806
+
807
+ interface MonkeyEcxBaseResolverParams {
808
+ pathParams: any;
809
+ queryParams: any;
810
+ stateData: any;
811
+ }
812
+
813
+ /** ************************
814
+ * Copyright Monkey Exchange. All Rights Reserved
815
+ * This style guide was developed by Monkey Exchange Team
816
+ * MIT Licence
817
+ ************************* */
818
+
819
+ interface MonkeyEcxStorage {
820
+ username: string;
821
+ program: string;
822
+ accessToken: string;
823
+ refreshToken: string;
824
+ companyId: string;
825
+ governmentId: string;
826
+ companyTypeUrl: string;
827
+ companyType: string;
828
+ role: string;
829
+ programAdmin: boolean | string;
830
+ programType: string;
831
+ accessType: string;
832
+ ownerGovernmentId: string;
833
+ name: string;
834
+ status: string;
835
+ accessHandle: MonkeyEcxAccessHandleTokenCredentials;
836
+ me: Partial<MonkeyEcxMeCredentials>;
837
+ }
838
+
839
+ /** ************************
840
+ * Copyright Monkey Exchange. All Rights Reserved
841
+ * This style guide was developed by Monkey Exchange Team
842
+ * MIT Licence
843
+ ************************* */
844
+
845
+ interface MonkeyEcxConfigStore {
846
+ actions?: {};
847
+ selectors?: {};
848
+ }
849
+ interface MonkeyEcxCollectionStore extends MonkeyEcxConfigStore {
850
+ actions: {
851
+ updateControl: Action;
852
+ updateLinks: Action;
853
+ updatePage: Action;
854
+ updateAll: Action;
855
+ clear: Action;
856
+ };
857
+ selectors: {
858
+ linksHasDifference?: Function;
859
+ selectLinks: Function;
860
+ };
861
+ }
862
+ interface MonkeyEcxEntityStore extends MonkeyEcxConfigStore {
863
+ actions: {
864
+ updateControl: Action;
865
+ updateOne: Action;
866
+ };
867
+ }
868
+ interface MonkeyEcxControlStore {
869
+ [key: string]: any;
870
+ }
871
+ interface MonkeyEcxLinks {
872
+ [key: string]: Link | string | undefined;
873
+ url?: string;
874
+ }
875
+ interface MonkeyEcxStoreControl {
876
+ isLoading: boolean;
877
+ }
878
+ interface MonkeyEcxStoreLoadParams {
879
+ force?: boolean;
880
+ url: string;
881
+ }
882
+ interface MonkeyEcxStoreStartParams {
883
+ force?: boolean;
884
+ url?: string;
885
+ [key: string]: string | number | boolean | undefined;
886
+ }
887
+ interface MonkeyEcxStoreLoadPageParams {
888
+ pagination: MonkeyEcxPagination;
889
+ }
890
+
891
+ declare type Token = Partial<MonkeyEcxTokenCredentials> | null;
892
+ declare type Me = Partial<MonkeyEcxMeCredentials> | null;
893
+ declare class MonkeyEcxTokenStorageService {
894
+ private store;
895
+ private tokenFields;
896
+ private token$;
897
+ private me$;
898
+ private readonly _configService;
899
+ constructor(store: Store);
900
+ private setAllTokens;
901
+ private getAllTokens;
902
+ private setAllMe;
903
+ private getAllMe;
904
+ tokenHasChanged(): Observable<Token>;
905
+ meHasChanged(): Observable<Me>;
906
+ getToken(): MonkeyEcxTokenCredentials | null;
907
+ getMe(): any;
908
+ setToken(token: Token): void;
909
+ setMe(me: Partial<MonkeyEcxMeCredentials>): void;
910
+ clear(force?: boolean): Observable<boolean>;
911
+ /**
912
+ * @param fields (the name of fields you want to clear. ie: ['companyId', 'role', ...])
913
+ */
914
+ clearCredentials(fields?: string[]): void;
915
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxTokenStorageService, never>;
916
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxTokenStorageService>;
917
+ }
918
+
919
+ /** ************************
920
+ * Copyright Monkey Exchange. All Rights Reserved
921
+ * This style guide was developed by Monkey Exchange Team
922
+ * MIT Licence
923
+ ************************* */
924
+
925
+ type index_d$4_MonkeyEcxCookieStorageService = MonkeyEcxCookieStorageService;
926
+ declare const index_d$4_MonkeyEcxCookieStorageService: typeof MonkeyEcxCookieStorageService;
927
+ type index_d$4_MonkeyEcxTokenStorageService = MonkeyEcxTokenStorageService;
928
+ declare const index_d$4_MonkeyEcxTokenStorageService: typeof MonkeyEcxTokenStorageService;
929
+ declare namespace index_d$4 {
930
+ export {
931
+ index_d$4_MonkeyEcxCookieStorageService as MonkeyEcxCookieStorageService,
932
+ index_d$4_MonkeyEcxTokenStorageService as MonkeyEcxTokenStorageService,
933
+ };
934
+ }
935
+
936
+ declare class MonkeyEcxAuthGuardByRole implements CanActivate {
937
+ private tokenStorage;
938
+ private router;
939
+ private securityCredentials;
940
+ private tokenCredentials;
941
+ constructor(tokenStorage: MonkeyEcxTokenStorageService, router: Router);
942
+ private navigateToErrorPage;
943
+ private getRole;
944
+ private allowedSecurityAccess;
945
+ canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean>;
946
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuardByRole, never>;
947
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuardByRole>;
948
+ }
949
+
950
+ declare class MonkeyEcxAuthGuard implements CanActivate {
951
+ private readonly _authService;
952
+ canActivate(): boolean;
953
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuard, never>;
954
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuard>;
955
+ }
956
+
957
+ /** ************************
958
+ * Copyright Monkey Exchange. All Rights Reserved
959
+ * This style guide was developed by Monkey Exchange Team
960
+ * MIT Licence
961
+ ************************* */
962
+
963
+ declare function injectTokenWithWarning<T>(token: InjectionToken<T>, name?: string): T | null;
964
+ declare const MECX_TIMEZONEOFFSET: InjectionToken<string>;
965
+ declare const MECX_DATE_FORMAT: InjectionToken<string>;
966
+ declare const MECX_COUNTRY: InjectionToken<string>;
967
+ declare const MECX_ALPHA: InjectionToken<string>;
968
+ declare const MECX_BETA: InjectionToken<string>;
969
+ /**
970
+ * This is a token to be used to every request context. Just for internal of core use.
971
+ */
972
+ declare const MECX_REQUEST_ID: HttpContextToken<string>;
973
+ /**
974
+ * This is a token to be used with a service created in the project who uses
975
+ * this library. We always be use this service to callback the messages from intercetors or related
976
+ *
977
+ * ### Example
978
+ * ```
979
+ * {
980
+ * provide: MECX_SERVICE_MESSAGE,
981
+ * useClass: AppServiceErrorMessage
982
+ * },
983
+ * ```
984
+ * ### Service
985
+ * ```
986
+ * @Injectable()
987
+ * export class AppServiceErrorMessage implements MonkeyEcxServiceMessage {
988
+ * handleMessage(message: string, type: string): void {
989
+ * throw new Error('Method not implemented.');
990
+ * }
991
+ * }
992
+ * ```
993
+ */
994
+ declare const MECX_BOOTSTRAP_SERVICE: InjectionToken<MonkeyEcxBootstrapService>;
995
+ declare const MECX_CORE_I18N_WRAPPER: InjectionToken<BehaviorSubject<string>>;
996
+ /**
997
+ * ```
998
+ * providers: [
999
+ * {
1000
+ * provide: MONKEY_REFRESH_TOKEN,
1001
+ * useValue: () => {
1002
+ * // Custom refresh logic here
1003
+ * return http.post('/auth/refresh');
1004
+ * }
1005
+ * }
1006
+ *]
1007
+ * ```
1008
+ */
1009
+ declare const MECX_REFRESH_TOKEN_STRATEGY: InjectionToken<MonkeyEcxRefreshTokenStrategy>;
1010
+ declare const MECX_REDIRECT_LOGIN_WELCOMEBACK_STRATEGY: InjectionToken<MonkeyEcxRedirectLoginWelcomeBackStrategy>;
1011
+
1012
+ /** ************************
1013
+ * Copyright Monkey Exchange. All Rights Reserved
1014
+ * This style guide was developed by Monkey Exchange Team
1015
+ * MIT Licence
1016
+ ************************* */
1017
+
1018
+ declare const monkeyEcxHttpConfigInterceptor: HttpInterceptorFn;
1019
+
1020
+ declare class MonkeyEcxCoreModule {
1021
+ static forRoot(): ModuleWithProviders<MonkeyEcxCoreModule>;
1022
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxCoreModule, never>;
1023
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxCoreModule, never, [typeof i1.CommonModule], never>;
1024
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyEcxCoreModule>;
1025
+ }
1026
+
1027
+ /** ************************
1028
+ * Copyright Monkey Exchange. All Rights Reserved
1029
+ * This style guide was developed by Monkey Exchange Team
1030
+ * MIT Licence
1031
+ ************************* */
1032
+
1033
+ declare class MonkeyEcxBlobSecurePipe implements PipeTransform {
1034
+ private readonly _service;
1035
+ private readonly _sanitizer;
1036
+ constructor();
1037
+ transform(url: string): Observable<SafeUrl>;
1038
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxBlobSecurePipe, never>;
1039
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxBlobSecurePipe, "monkeyecxBlobSecure", false>;
1040
+ }
1041
+
1042
+ /** ************************
1043
+ * Copyright Monkey Exchange. All Rights Reserved
1044
+ * This style guide was developed by Monkey Exchange Team
1045
+ * MIT Licence
1046
+ ************************* */
1047
+
1048
+ declare class MonkeyEcxCurrencyCodePipe implements PipeTransform {
1049
+ private readonly _defaultCurencyCode;
1050
+ transform(value: any, type?: 'symbol' | 'code'): string;
1051
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxCurrencyCodePipe, never>;
1052
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxCurrencyCodePipe, "monkeyecxCurrencyCode", false>;
1053
+ }
1054
+
1055
+ /** ************************
1056
+ * Copyright Monkey Exchange. All Rights Reserved
1057
+ * This style guide was developed by Monkey Exchange Team
1058
+ * MIT Licence
1059
+ ************************* */
1060
+
1061
+ declare class MonkeyEcxDisplayFirstNamePipe implements PipeTransform {
1062
+ transform(name: string): string;
1063
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxDisplayFirstNamePipe, never>;
1064
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxDisplayFirstNamePipe, "monkeyecxDisplayFirstName", false>;
1065
+ }
1066
+
1067
+ /** ************************
1068
+ * Copyright Monkey Exchange. All Rights Reserved
1069
+ * This style guide was developed by Monkey Exchange Team
1070
+ * MIT Licence
1071
+ ************************* */
1072
+
1073
+ declare class MonkeyEcxDisplayInitialsPipe implements PipeTransform {
1074
+ transform(name: string): string;
1075
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxDisplayInitialsPipe, never>;
1076
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxDisplayInitialsPipe, "monkeyecxDisplayInitials", false>;
1077
+ }
1078
+
1079
+ /** ************************
1080
+ * Copyright Monkey Exchange. All Rights Reserved
1081
+ * This style guide was developed by Monkey Exchange Team
1082
+ * MIT Licence
1083
+ ************************* */
1084
+
1085
+ declare class MonkeyEcxFormatAddressPipe implements PipeTransform {
1086
+ transform({ zipCode, address, neighborhood, city, state }: {
1087
+ zipCode: string;
1088
+ address: string;
1089
+ neighborhood: string;
1090
+ city: string;
1091
+ state: string;
1092
+ country: string;
1093
+ }): string;
1094
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatAddressPipe, never>;
1095
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatAddressPipe, "monkeyecxFormatAddress", false>;
1096
+ }
1097
+
1098
+ /** ************************
1099
+ * Copyright Monkey Exchange. All Rights Reserved
1100
+ * This style guide was developed by Monkey Exchange Team
1101
+ * MIT Licence
1102
+ ************************* */
1103
+
1104
+ declare class MonkeyEcxFormatBeaufityJSONPipe implements PipeTransform {
1105
+ constructor();
1106
+ transform(value: any): string;
1107
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatBeaufityJSONPipe, never>;
1108
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatBeaufityJSONPipe, "monkeyecxFormatBeautifyJSON", false>;
1109
+ }
1110
+
1111
+ /** ************************
1112
+ * Copyright Monkey Exchange. All Rights Reserved
1113
+ * This style guide was developed by Monkey Exchange Team
1114
+ * MIT Licence
1115
+ ************************* */
1116
+
1117
+ declare class MonkeyEcxFormatCurrencyPipe implements PipeTransform {
1118
+ private currencyPipe;
1119
+ private readonly _defaultCurencyCode;
1120
+ private readonly _localeId;
1121
+ constructor(currencyPipe: CurrencyPipe);
1122
+ transform(value: any, symbol?: string): any;
1123
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatCurrencyPipe, never>;
1124
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatCurrencyPipe, "monkeyecxFormatCurrency", false>;
1125
+ }
1126
+
1127
+ /** ************************
1128
+ * Copyright Monkey Exchange. All Rights Reserved
1129
+ * This style guide was developed by Monkey Exchange Team
1130
+ * MIT Licence
1131
+ ************************* */
1132
+
1133
+ declare class MonkeyEcxFormatDatePipe implements PipeTransform {
1134
+ private dt;
1135
+ private readonly _dateFormat;
1136
+ private readonly _timezone;
1137
+ constructor(dt: DatePipe);
1138
+ transform(date: any | Date, format?: string): string | null;
1139
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatDatePipe, never>;
1140
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatDatePipe, "monkeyecxFormatDate", false>;
1141
+ }
1142
+
1143
+ /** ************************
1144
+ * Copyright Monkey Exchange. All Rights Reserved
1145
+ * This style guide was developed by Monkey Exchange Team
1146
+ * MIT Licence
1147
+ ************************* */
1148
+
1149
+ declare class MonkeyEcxFormatDocumentPipe implements PipeTransform {
1150
+ private readonly _country;
1151
+ transform(document: string, withType?: boolean): string;
1152
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatDocumentPipe, never>;
1153
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatDocumentPipe, "monkeyecxFormatDocument", false>;
1154
+ }
1155
+
1156
+ declare class MonkeyEcxFormatNumberPipe implements PipeTransform {
1157
+ transform(number: string): string;
1158
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatNumberPipe, never>;
1159
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatNumberPipe, "monkeyecxFormatNumber", false>;
1160
+ }
1161
+
1162
+ /** ************************
1163
+ * Copyright Monkey Exchange. All Rights Reserved
1164
+ * This style guide was developed by Monkey Exchange Team
1165
+ * MIT Licence
1166
+ ************************* */
1167
+
1168
+ declare class MonkeyEcxFormatPhonePipe implements PipeTransform {
1169
+ transform(phone: string): string;
1170
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatPhonePipe, never>;
1171
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatPhonePipe, "monkeyecxFormatPhone", false>;
1172
+ }
1173
+
1174
+ /** ************************
1175
+ * Copyright Monkey Exchange. All Rights Reserved
1176
+ * This style guide was developed by Monkey Exchange Team
1177
+ * MIT Licence
1178
+ ************************* */
1179
+
1180
+ declare class MonkeyEcxFormatSizePipe implements PipeTransform {
1181
+ transform(size: string): string;
1182
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatSizePipe, never>;
1183
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatSizePipe, "monkeyecxFormatSize", false>;
1184
+ }
1185
+
1186
+ /** ************************
1187
+ * Copyright Monkey Exchange. All Rights Reserved
1188
+ * This style guide was developed by Monkey Exchange Team
1189
+ * MIT Licence
1190
+ ************************* */
1191
+
1192
+ declare class MonkeyEcxFormatTaxPipe implements PipeTransform {
1193
+ transform(tax: number, decimalDigits?: number): string;
1194
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatTaxPipe, never>;
1195
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatTaxPipe, "monkeyecxFormatTax", false>;
1196
+ }
1197
+
1198
+ /** ************************
1199
+ * Copyright Monkey Exchange. All Rights Reserved
1200
+ * This style guide was developed by Monkey Exchange Team
1201
+ * MIT Licence
1202
+ ************************* */
1203
+
1204
+ declare class MonkeyEcxFormatDocumentTypePipe implements PipeTransform {
1205
+ private readonly _country;
1206
+ transform(document: string): string;
1207
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatDocumentTypePipe, never>;
1208
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatDocumentTypePipe, "monkeyecxFormatDocumentType", false>;
1209
+ }
1210
+
1211
+ /** ************************
1212
+ * Copyright Monkey Exchange. All Rights Reserved
1213
+ * This style guide was developed by Monkey Exchange Team
1214
+ * MIT Licence
1215
+ ************************* */
1216
+
1217
+ declare class MonkeyEcxFormatValue implements PipeTransform {
1218
+ transform(number: string): string;
1219
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatValue, never>;
1220
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatValue, "monkeyecxFormatValue", false>;
1221
+ }
1222
+
1223
+ /** ************************
1224
+ * Copyright Monkey Exchange. All Rights Reserved
1225
+ * This style guide was developed by Monkey Exchange Team
1226
+ * MIT Licence
1227
+ ************************* */
1228
+
1229
+ declare class MonkeyEcxFormatZipCodePipe implements PipeTransform {
1230
+ transform(zipCode: string): string;
1231
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatZipCodePipe, never>;
1232
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatZipCodePipe, "monkeyecxFormatZipCode", false>;
1233
+ }
1234
+
1235
+ /** ************************
1236
+ * Copyright Monkey Exchange. All Rights Reserved
1237
+ * This style guide was developed by Monkey Exchange Team
1238
+ * MIT Licence
1239
+ ************************* */
1240
+
1241
+ declare class MonkeyEcxTextTruncatePipe implements PipeTransform {
1242
+ transform(text: string, maxLength?: number): string;
1243
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxTextTruncatePipe, never>;
1244
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxTextTruncatePipe, "monkeyecxTextTruncate", false>;
1245
+ }
1246
+
1247
+ /** ************************
1248
+ * Copyright Monkey Exchange. All Rights Reserved
1249
+ * This style guide was developed by Monkey Exchange Team
1250
+ * MIT Licence
1251
+ ************************* */
1252
+
1253
+ declare class MonkeyEcxTruncateQtdPipe implements PipeTransform {
1254
+ transform(number: number, threshold: number): string;
1255
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxTruncateQtdPipe, never>;
1256
+ static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxTruncateQtdPipe, "monkeyecxTruncateQtd", false>;
1257
+ }
1258
+
1259
+ declare class MonkeyEcxPipesModule {
1260
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxPipesModule, never>;
1261
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxPipesModule, [typeof MonkeyEcxBlobSecurePipe, typeof MonkeyEcxDisplayFirstNamePipe, typeof MonkeyEcxDisplayInitialsPipe, typeof MonkeyEcxFormatAddressPipe, typeof MonkeyEcxFormatBeaufityJSONPipe, typeof MonkeyEcxFormatCurrencyPipe, typeof MonkeyEcxCurrencyCodePipe, typeof MonkeyEcxFormatDocumentPipe, typeof MonkeyEcxFormatDocumentTypePipe, typeof MonkeyEcxFormatNumberPipe, typeof MonkeyEcxFormatPhonePipe, typeof MonkeyEcxFormatSizePipe, typeof MonkeyEcxFormatTaxPipe, typeof MonkeyEcxFormatValue, typeof MonkeyEcxFormatZipCodePipe, typeof MonkeyEcxTextTruncatePipe, typeof MonkeyEcxTruncateQtdPipe, typeof MonkeyEcxFormatDatePipe], never, [typeof MonkeyEcxBlobSecurePipe, typeof MonkeyEcxDisplayFirstNamePipe, typeof MonkeyEcxDisplayInitialsPipe, typeof MonkeyEcxFormatAddressPipe, typeof MonkeyEcxFormatBeaufityJSONPipe, typeof MonkeyEcxFormatCurrencyPipe, typeof MonkeyEcxCurrencyCodePipe, typeof MonkeyEcxFormatDocumentPipe, typeof MonkeyEcxFormatDocumentTypePipe, typeof MonkeyEcxFormatNumberPipe, typeof MonkeyEcxFormatPhonePipe, typeof MonkeyEcxFormatSizePipe, typeof MonkeyEcxFormatTaxPipe, typeof MonkeyEcxFormatValue, typeof MonkeyEcxFormatZipCodePipe, typeof MonkeyEcxTextTruncatePipe, typeof MonkeyEcxTruncateQtdPipe, typeof MonkeyEcxFormatDatePipe]>;
1262
+ static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyEcxPipesModule>;
1263
+ }
1264
+
1265
+ declare function provideDomainServiceWorker(workerUrl: string): i0.EnvironmentProviders;
1266
+
1267
+ declare abstract class MonkeyEcxBaseResolver implements Resolve<any> {
1268
+ readonly router: Router;
1269
+ readonly paramsSubject: BehaviorSubject<Partial<MonkeyEcxBaseResolverParams>>;
1270
+ readonly params$: Observable<Partial<MonkeyEcxBaseResolverParams>>;
1271
+ get pathParams(): any;
1272
+ get queryParams(): any;
1273
+ get stateData(): any;
1274
+ resolve(route: ActivatedRouteSnapshot): Observable<any> | Promise<any>;
1275
+ protected abstract resolveData(route: ActivatedRouteSnapshot): void;
1276
+ }
1277
+
1278
+ declare abstract class MonkeyEcxI18nResolver implements Resolve<boolean> {
1279
+ private readonly _injector;
1280
+ private readonly _localeId;
1281
+ private readonly _bootstrapService;
1282
+ private readonly _tokenStorageService;
1283
+ private static _loadedPaths;
1284
+ constructor();
1285
+ abstract getPath(): string;
1286
+ abstract getAlias(): string;
1287
+ resolve(): Observable<boolean>;
1288
+ getHost(): string;
1289
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxI18nResolver, never>;
1290
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxI18nResolver>;
1291
+ }
1292
+
1293
+ declare class MonkeyEcxFileCacheService {
1294
+ private cache;
1295
+ private readonly EXPIRATION_MS;
1296
+ private isExpired;
1297
+ saveFile(filename: string, blob: Blob): void;
1298
+ hasFile(filename: string): boolean;
1299
+ getFile(filename: string): MonkeyEcxCachedFile | null;
1300
+ download(filename: string): void;
1301
+ deleteFile(filename: string): void;
1302
+ clear(): void;
1303
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFileCacheService, never>;
1304
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxFileCacheService>;
1305
+ }
1306
+
1307
+ declare class MonkeyEcxConfigsService {
1308
+ private readonly _bootstrap$;
1309
+ private readonly _whiteLabel$;
1310
+ private readonly _styleGuide$;
1311
+ get bootstrap$(): Observable<MonkeyEcxBootstrap | null>;
1312
+ get bootstrap(): MonkeyEcxBootstrap | null;
1313
+ set bootstrap(data: MonkeyEcxBootstrap);
1314
+ get whiteLabel$(): Observable<MonkeyEcxWhiteLabel | null>;
1315
+ get whiteLabel(): MonkeyEcxWhiteLabel | null;
1316
+ set whiteLabel(data: MonkeyEcxWhiteLabel);
1317
+ get styleGuide(): Observable<MonkeyEcxStyleGuide | null>;
1318
+ set styleGuide(data: MonkeyEcxStyleGuide);
1319
+ federationsSettings(key: string): {
1320
+ [key: string]: string;
1321
+ host: string;
1322
+ parentPath: string;
1323
+ } | null;
1324
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxConfigsService, never>;
1325
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxConfigsService>;
1326
+ }
1327
+
1328
+ declare class MonkeyEcxFeatureToggleService {
1329
+ private readonly _bootstrapService;
1330
+ private readonly _configService;
1331
+ private readonly _flagSubject$;
1332
+ private _ldClient;
1333
+ private handleValidation;
1334
+ getFlag<T = boolean>(flagName: string, defaultValue: T): T;
1335
+ get onFlags(): Observable<any>;
1336
+ apply(): Promise<void>;
1337
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFeatureToggleService, never>;
1338
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxFeatureToggleService>;
1339
+ }
1340
+
1341
+ declare class MonkeyEcxLocaleService {
1342
+ private readonly _localeId;
1343
+ private readonly _service;
1344
+ private readonly _bootstrapService;
1345
+ private readonly _errorService;
1346
+ private readonly _configsService;
1347
+ private readonly _tokenStorageService;
1348
+ private static _loadedBundles;
1349
+ private static _loadedFromWhiteLabel;
1350
+ constructor();
1351
+ private isExpired;
1352
+ private loadFromWhitelabel;
1353
+ private loadExternal;
1354
+ private loadInternal;
1355
+ private handleValidation;
1356
+ apply(): Promise<void>;
1357
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxLocaleService, never>;
1358
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxLocaleService>;
1359
+ }
1360
+
1361
+ declare class LService {
1362
+ private readonly _alpha;
1363
+ private readonly _beta;
1364
+ y(data: string): Promise<string>;
1365
+ private w;
1366
+ static ɵfac: i0.ɵɵFactoryDeclaration<LService, never>;
1367
+ static ɵprov: i0.ɵɵInjectableDeclaration<LService>;
1368
+ }
1369
+
1370
+ declare class MonkeyEcxLoggedHandleService {
1371
+ private readonly _injector;
1372
+ constructor();
1373
+ private destroyToken;
1374
+ private destroySchedule;
1375
+ destroy(): void;
1376
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxLoggedHandleService, never>;
1377
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxLoggedHandleService>;
1378
+ }
1379
+
1380
+ /** ************************
1381
+ * Copyright Monkey Exchange. All Rights Reserved
1382
+ * This style guide was developed by Monkey Exchange Team
1383
+ * MIT Licence
1384
+ ************************* */
1385
+
1386
+ interface HttpOptions {
1387
+ headers: HttpHeaders | Record<string, string | string[]>;
1388
+ observe: 'events';
1389
+ context: HttpContext;
1390
+ params: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
1391
+ reportProgress: boolean;
1392
+ responseType: 'json';
1393
+ withCredentials: boolean;
1394
+ transferCache: {
1395
+ includeHeaders?: string[];
1396
+ } | boolean;
1397
+ }
1398
+ declare class MonkeyEcxService {
1399
+ private _http;
1400
+ private _stateService;
1401
+ private handlelize;
1402
+ internalRequestData: MonkeyEcxServiceCredentials | null;
1403
+ private getOptions;
1404
+ get<T>(url: string, options?: any): Observable<T>;
1405
+ getWithProgress<T>(url: string, options?: Partial<HttpOptions> | {}): Observable<HttpEvent<T>>;
1406
+ post<T>(url: string, params: T, options?: Partial<HttpOptions> | {}): Observable<any>;
1407
+ put<T>(url: string, params: T, options?: Partial<HttpOptions> | {}): Observable<any>;
1408
+ patch<T>(url: string, params: T, options?: Partial<HttpOptions> | {}): Observable<any>;
1409
+ delete<T>(url: string, options?: Partial<HttpOptions> | {}): Observable<T>;
1410
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxService, never>;
1411
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxService>;
1412
+ }
1413
+
1414
+ declare class MonkeyEcxDiscoveryParamsService {
1415
+ private router;
1416
+ constructor(router: Router);
1417
+ private getLastChild;
1418
+ setData(field: string, value: any): any;
1419
+ getData(field: string): any;
1420
+ getDataFromCurrentNavigation(field: string, router?: Router): any;
1421
+ getParam(param: string): string | null;
1422
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxDiscoveryParamsService, never>;
1423
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxDiscoveryParamsService>;
1424
+ }
1425
+
1426
+ /** ************************
1427
+ * Copyright Monkey Exchange. All Rights Reserved
1428
+ * This style guide was developed by Monkey Exchange Team
1429
+ * MIT Licence
1430
+ ************************* */
1431
+
1432
+ interface MonkeyEcxStartWithRequestInterface {
1433
+ data?: any;
1434
+ url: string;
1435
+ id?: string;
1436
+ params?: any;
1437
+ period?: number;
1438
+ preserveOnNavigation?: boolean;
1439
+ callback(data: any, subscriptionId: string): void;
1440
+ onError?(err: HttpErrorResponse, data?: any): void;
1441
+ }
1442
+ interface MonkeyEcxStartInterface {
1443
+ id?: string;
1444
+ period?: number;
1445
+ callback: Function;
1446
+ onError?: Function;
1447
+ preserveOnNavigation?: boolean;
1448
+ }
1449
+ declare class MonkeyEcxScheduleService {
1450
+ private readonly _router;
1451
+ private readonly _service;
1452
+ private _routerSubscription;
1453
+ private _schedules;
1454
+ private handleRoute;
1455
+ start({ callback, period, preserveOnNavigation, id }: MonkeyEcxStartInterface): void;
1456
+ startWithRequest({ id, url, data, params, period, onError, callback, preserveOnNavigation }: MonkeyEcxStartWithRequestInterface): void;
1457
+ stop(id: string): void;
1458
+ stopAll(): void;
1459
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxScheduleService, never>;
1460
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxScheduleService>;
1461
+ }
1462
+
1463
+ declare abstract class MonkeyEcxCommonsActions {
1464
+ static getActions<T>(actionName: string): {
1465
+ clear: _ngrx_store.ActionCreator<`[${string}] Clear All`, () => _ngrx_store.Action<`[${string}] Clear All`>>;
1466
+ load: _ngrx_store.ActionCreator<`[${string}] Load`, (props: MonkeyEcxStoreLoadParams) => MonkeyEcxStoreLoadParams & _ngrx_store.Action<`[${string}] Load`>>;
1467
+ start: _ngrx_store.ActionCreator<`[${string}] Start`, (props: MonkeyEcxStoreStartParams) => MonkeyEcxStoreStartParams & _ngrx_store.Action<`[${string}] Start`>>;
1468
+ loadPagination: _ngrx_store.ActionCreator<`[${string} Pagination] Load`, (props: MonkeyEcxStoreLoadPageParams) => MonkeyEcxStoreLoadPageParams & _ngrx_store.Action<`[${string} Pagination] Load`>>;
1469
+ removeOne: _ngrx_store.ActionCreator<`[${string}] Remove One`, (props: {
1470
+ data: T;
1471
+ }) => {
1472
+ data: T;
1473
+ } & _ngrx_store.Action<`[${string}] Remove One`>>;
1474
+ updateAll: _ngrx_store.ActionCreator<`[${string}] Update All`, (props: {
1475
+ data: T[];
1476
+ }) => {
1477
+ data: T[];
1478
+ } & _ngrx_store.Action<`[${string}] Update All`>>;
1479
+ updateOne: _ngrx_store.ActionCreator<`[${string}] Update One`, (props: {
1480
+ data: T;
1481
+ }) => {
1482
+ data: T;
1483
+ } & _ngrx_store.Action<`[${string}] Update One`>>;
1484
+ updateControl: _ngrx_store.ActionCreator<`[${string}] Update Control`, (props: {
1485
+ data: MonkeyEcxStoreControl;
1486
+ }) => {
1487
+ data: MonkeyEcxStoreControl;
1488
+ } & _ngrx_store.Action<`[${string}] Update Control`>>;
1489
+ updateLinks: _ngrx_store.ActionCreator<`[${string}] Update Links`, (props: {
1490
+ data: MonkeyEcxPaginationData;
1491
+ }) => {
1492
+ data: MonkeyEcxPaginationData;
1493
+ } & _ngrx_store.Action<`[${string}] Update Links`>>;
1494
+ updatePage: _ngrx_store.ActionCreator<`[${string}] Update Page`, (props: {
1495
+ data: MonkeyEcxPage;
1496
+ }) => {
1497
+ data: MonkeyEcxPage;
1498
+ } & _ngrx_store.Action<`[${string}] Update Page`>>;
1499
+ };
1500
+ }
1501
+
1502
+ interface IReducer {
1503
+ featureKey: string;
1504
+ selectAll: any;
1505
+ }
1506
+ declare abstract class MonkeyEcxCommonsSelectors {
1507
+ static getSelectors<T>(reducer: IReducer): {
1508
+ selectState: _ngrx_store.MemoizedSelector<object, T, _ngrx_store.DefaultProjectorFn<T>>;
1509
+ selectAll: any;
1510
+ selectData: () => _ngrx_store.MemoizedSelector<object, any, (s1: T) => any>;
1511
+ selectControl: () => _ngrx_store.MemoizedSelector<object, any, (s1: T) => any>;
1512
+ selectLinks: () => _ngrx_store.MemoizedSelector<object, any, (s1: T) => any>;
1513
+ selectPage: () => _ngrx_store.MemoizedSelector<object, any, (s1: T) => any>;
1514
+ };
1515
+ }
1516
+
1517
+ /**
1518
+ * Classe genérica que recebe duas interfaces como tipos genéricos.
1519
+ *
1520
+ * @typeparam T deve ser a mesma interface utilizada na Entity da Store
1521
+ * @typeparam K faz referência ao tipo de configuração.
1522
+ *
1523
+ * @description interfaces de configuração:
1524
+ * ```
1525
+ * MonkeyEcxCollectionStore e MonkeyEcxEntityStore
1526
+ * ```
1527
+ */
1528
+ declare abstract class MonkeyEcxCommonsStoreService<T, K extends MonkeyEcxConfigStore> {
1529
+ protected store: Store;
1530
+ private action;
1531
+ private selector;
1532
+ readonly service: MonkeyEcxService;
1533
+ constructor(store: Store, config: K);
1534
+ private handleResponseData;
1535
+ protected updateControl(data: MonkeyEcxControlStore): void;
1536
+ protected mappingData(args: T | T[]): T | T[];
1537
+ protected update?(args: T | T[]): void;
1538
+ protected updatePage?(data: MonkeyEcxPage): void;
1539
+ protected updateLinks?(data: MonkeyEcxLinks): void;
1540
+ protected loadData(url: string, updateLinks?: boolean): Promise<void>;
1541
+ protected loadPageData(pagination: MonkeyEcxPagination): Promise<void>;
1542
+ /**
1543
+ * @description Neste método precisamos incluir a lógica para conferir se precisa limpar a
1544
+ * entidade ou não
1545
+ * E depois precisa invocar o método loadData
1546
+ * @param (url) ou de acordo com a action criada
1547
+ * @example
1548
+ * ```
1549
+ * const hasDifference = .....
1550
+ * if(hasDifference) {
1551
+ * store.dispatch(clear)
1552
+ * }
1553
+ *
1554
+ * this.loadData(...)
1555
+ * ```
1556
+ */
1557
+ load?(args: any): void;
1558
+ loadPage?(args: any): void;
1559
+ }
1560
+
1561
+ declare class MonkeyEcxFormValidationService {
1562
+ validateForm(form: FormGroup): boolean;
1563
+ scrollToError(): void;
1564
+ private markAllTouched;
1565
+ static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormValidationService, never>;
1566
+ static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxFormValidationService>;
1567
+ }
1568
+
1569
+ declare const clear: _ngrx_store.ActionCreator<"[MECX Core Storage] Clear All", () => _ngrx_store.Action<"[MECX Core Storage] Clear All">>;
1570
+ declare const create: _ngrx_store.ActionCreator<"[MECX Core Storage] Create", (props: {
1571
+ data: Partial<MonkeyEcxStorage>;
1572
+ }) => {
1573
+ data: Partial<MonkeyEcxStorage>;
1574
+ } & _ngrx_store.Action<"[MECX Core Storage] Create">>;
1575
+ declare const updateControl: _ngrx_store.ActionCreator<"[MECX Core Storage] Update Control", (props: {
1576
+ data: MonkeyEcxStoreControl;
1577
+ }) => {
1578
+ data: MonkeyEcxStoreControl;
1579
+ } & _ngrx_store.Action<"[MECX Core Storage] Update Control">>;
1580
+ declare const updateData: _ngrx_store.ActionCreator<"[MECX Core Storage] Update One", (props: {
1581
+ data: MonkeyEcxStorage;
1582
+ }) => {
1583
+ data: MonkeyEcxStorage;
1584
+ } & _ngrx_store.Action<"[MECX Core Storage] Update One">>;
1585
+ declare const updateMe: _ngrx_store.ActionCreator<"[MECX Core Storage] Update Me", (props: {
1586
+ data: Partial<MonkeyEcxMeCredentials>;
1587
+ }) => {
1588
+ data: Partial<MonkeyEcxMeCredentials>;
1589
+ } & _ngrx_store.Action<"[MECX Core Storage] Update Me">>;
1590
+
1591
+ declare const monkeyecxStorage_actions_d_clear: typeof clear;
1592
+ declare const monkeyecxStorage_actions_d_create: typeof create;
1593
+ declare const monkeyecxStorage_actions_d_updateControl: typeof updateControl;
1594
+ declare const monkeyecxStorage_actions_d_updateData: typeof updateData;
1595
+ declare const monkeyecxStorage_actions_d_updateMe: typeof updateMe;
1596
+ declare namespace monkeyecxStorage_actions_d {
1597
+ export {
1598
+ monkeyecxStorage_actions_d_clear as clear,
1599
+ monkeyecxStorage_actions_d_create as create,
1600
+ monkeyecxStorage_actions_d_updateControl as updateControl,
1601
+ monkeyecxStorage_actions_d_updateData as updateData,
1602
+ monkeyecxStorage_actions_d_updateMe as updateMe,
1603
+ };
1604
+ }
1605
+
1606
+ /** ************************
1607
+ * Copyright Monkey Exchange. All Rights Reserved
1608
+ * This style guide was developed by Monkey Exchange Team
1609
+ * MIT Licence
1610
+ ************************* */
1611
+
1612
+ declare namespace index_d$3 {
1613
+ export {
1614
+ monkeyecxStorage_actions_d as monkeyecxStorage,
1615
+ };
1616
+ }
1617
+
1618
+ /** ************************
1619
+ * Copyright Monkey Exchange. All Rights Reserved
1620
+ * This style guide was developed by Monkey Exchange Team
1621
+ * MIT Licence
1622
+ ************************* */
1623
+
1624
+ declare const seederReducer: (keys: string[]) => (reducer: ActionReducer<any>) => ActionReducer<any>;
1625
+
1626
+ declare const monkeyecxSeeder_reducer_d_seederReducer: typeof seederReducer;
1627
+ declare namespace monkeyecxSeeder_reducer_d {
1628
+ export {
1629
+ monkeyecxSeeder_reducer_d_seederReducer as seederReducer,
1630
+ };
1631
+ }
1632
+
1633
+ declare const featureKey = "mecx-core-storage";
1634
+ interface State {
1635
+ control: {
1636
+ isLoading: boolean;
1637
+ };
1638
+ data: Partial<MonkeyEcxStorage> | null;
1639
+ }
1640
+ declare const initialState: State;
1641
+ declare const reducer: _ngrx_store.ActionReducer<State, _ngrx_store.Action<string>>;
1642
+
1643
+ type monkeyecxStorage_reducer_d_State = State;
1644
+ declare const monkeyecxStorage_reducer_d_featureKey: typeof featureKey;
1645
+ declare const monkeyecxStorage_reducer_d_initialState: typeof initialState;
1646
+ declare const monkeyecxStorage_reducer_d_reducer: typeof reducer;
1647
+ declare namespace monkeyecxStorage_reducer_d {
1648
+ export { monkeyecxStorage_reducer_d_featureKey as featureKey, monkeyecxStorage_reducer_d_initialState as initialState, monkeyecxStorage_reducer_d_reducer as reducer };
1649
+ export type { monkeyecxStorage_reducer_d_State as State };
1650
+ }
1651
+
1652
+ /** ************************
1653
+ * Copyright Monkey Exchange. All Rights Reserved
1654
+ * This style guide was developed by Monkey Exchange Team
1655
+ * MIT Licence
1656
+ ************************* */
1657
+
1658
+ declare namespace index_d$2 {
1659
+ export {
1660
+ monkeyecxSeeder_reducer_d as fromMonkeyecxSeeder,
1661
+ monkeyecxStorage_reducer_d as fromMonkeyecxStorage,
1662
+ };
1663
+ }
1664
+
1665
+ declare const selectState: _ngrx_store.MemoizedSelector<object, State, _ngrx_store.DefaultProjectorFn<State>>;
1666
+ declare const select: _ngrx_store.MemoizedSelector<object, Partial<MonkeyEcxStorage> | null, (s1: State) => Partial<MonkeyEcxStorage> | null>;
1667
+ declare const selectUser: _ngrx_store.MemoizedSelector<object, Partial<MonkeyEcxStorage> | null, (s1: State) => Partial<MonkeyEcxStorage> | null>;
1668
+ declare const selectControl: _ngrx_store.MemoizedSelector<object, any, (s1: State) => any>;
1669
+
1670
+ declare const monkeyecxStorage_selector_d_select: typeof select;
1671
+ declare const monkeyecxStorage_selector_d_selectControl: typeof selectControl;
1672
+ declare const monkeyecxStorage_selector_d_selectState: typeof selectState;
1673
+ declare const monkeyecxStorage_selector_d_selectUser: typeof selectUser;
1674
+ declare namespace monkeyecxStorage_selector_d {
1675
+ export {
1676
+ monkeyecxStorage_selector_d_select as select,
1677
+ monkeyecxStorage_selector_d_selectControl as selectControl,
1678
+ monkeyecxStorage_selector_d_selectState as selectState,
1679
+ monkeyecxStorage_selector_d_selectUser as selectUser,
1680
+ };
1681
+ }
1682
+
1683
+ /** ************************
1684
+ * Copyright Monkey Exchange. All Rights Reserved
1685
+ * This style guide was developed by Monkey Exchange Team
1686
+ * MIT Licence
1687
+ ************************* */
1688
+
1689
+ declare namespace index_d$1 {
1690
+ export {
1691
+ monkeyecxStorage_selector_d as monkeyecxStorage,
1692
+ };
1693
+ }
1694
+
1695
+ /** ************************
1696
+ * Copyright Monkey Exchange. All Rights Reserved
1697
+ * This style guide was developed by Monkey Exchange Team
1698
+ * MIT Licence
1699
+ ************************* */
1700
+
1701
+ declare namespace index_d {
1702
+ export {
1703
+ index_d$3 as actions,
1704
+ index_d$2 as reducers,
1705
+ index_d$1 as selectors,
1706
+ };
1707
+ }
1708
+
1709
+ /** ************************
1710
+ * Copyright Monkey Exchange. All Rights Reserved
1711
+ * This style guide was developed by Monkey Exchange Team
1712
+ * MIT Licence
1713
+ ************************* */
1714
+
1715
+ type DocumentType = 'CPF' | 'CNPJ';
1716
+ type LogParams = {
1717
+ message: string;
1718
+ context?: any;
1719
+ error?: Error;
1720
+ type?: 'ok' | 'debug' | 'info' | 'notice' | 'warn' | 'error' | 'critical' | 'alert' | 'emerg';
1721
+ };
1722
+ declare class MonkeyEcxUtils {
1723
+ static persistNullEmptyUndefined(tp: any): boolean;
1724
+ static getDocumentType(doc: string, country?: string): "" | "CPF" | "CNPJ" | "RUT" | "RFC" | "EIN";
1725
+ static getDocumentMask(type: DocumentType, country?: string): CountryMasks;
1726
+ static getDocumentPlaceholder(type: DocumentType, country?: string): string;
1727
+ static formatDocumentWithMask(doc: string, withType?: boolean, country?: string): string;
1728
+ static cutFirstLastName(value: string, tp?: string): string;
1729
+ static isCPFCNPJValid(document: any): boolean;
1730
+ static isValidRUT(document: string): boolean;
1731
+ static isValidEIN(ein: string): boolean;
1732
+ static isValidRFC(document: string): boolean;
1733
+ static isValidUrl(txt: string): boolean;
1734
+ static isValidZipCode(zipCode: string, country?: string): boolean;
1735
+ static isValidEmail(email: string): boolean;
1736
+ static getRandomString(len: number, charSet?: string): string;
1737
+ static handleOnlyNumbers(value: any): any;
1738
+ static handleOnlyAlphaNumeric(value: any): any;
1739
+ static capitalize(value: string): string;
1740
+ static formatZipCode(zipCode: string): string;
1741
+ static formatFileSize(size: number): string;
1742
+ static sufflue(data: any[]): any[];
1743
+ static handleBlobFile(theBlob: any, fileName: string, fileType: string): any;
1744
+ static truncate(text: string, maxLength?: number): string;
1745
+ static isLocalhost(): boolean;
1746
+ static isSameOrigin(frontend: string): boolean;
1747
+ static replaceVariables(data: string, obj: any): string;
1748
+ static trimValuesToSave(obj: any, fields: string[]): any;
1749
+ static base64ToBuffer(base64: string): ArrayBuffer;
1750
+ static isValidDate(dateString: string, formats?: string[]): boolean;
1751
+ static getEmbeddedData(data: any, field: string): any[] | any;
1752
+ static getFileToDownload(resp: HttpResponse<any>, filename?: string): {
1753
+ filename: string | undefined;
1754
+ blob: Blob;
1755
+ resp: HttpResponse<any>;
1756
+ };
1757
+ }
1758
+ declare class MonkeyEcxLogs {
1759
+ static log(params: LogParams): void;
1760
+ }
1761
+
1762
+ export { CACHE_LOCALE_EXPIRATION_MS, CountryMasks, LService, Link, MECX_ALPHA, MECX_BETA, MECX_BOOTSTRAP_SERVICE, MECX_CORE_I18N_WRAPPER, MECX_COUNTRY, MECX_DATE_FORMAT, MECX_REDIRECT_LOGIN_WELCOMEBACK_STRATEGY, MECX_REFRESH_TOKEN_STRATEGY, MECX_REQUEST_ID, MECX_TIMEZONEOFFSET, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardByRole, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxBaseResolver, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsActions, MonkeyEcxCommonsSelectors, MonkeyEcxCommonsStoreService, MonkeyEcxConfigsService, MonkeyEcxCookieStorageService, MonkeyEcxCoreModule, MonkeyEcxCoreService, MonkeyEcxCurrencyCodePipe, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxErrorMessageDirective, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFileCacheService, MonkeyEcxFormValidationService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxI18nResolver, MonkeyEcxLinksModel, MonkeyEcxLoadingDirective, MonkeyEcxLocaleService, MonkeyEcxLoggedHandleService, MonkeyEcxLogs, MonkeyEcxModel, MonkeyEcxPipesModule, MonkeyEcxScheduleService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyValidators, comboValidator, containsNumber, dateRangeValidator, dateStartEndValidator, dateValidator, differentFromZero, documentValidator, documentValidatorByType, emailValidator, injectTokenWithWarning, minYearsValidator, monkeyEcxHttpConfigInterceptor, passwordConfirmValidator, provideDomainServiceWorker, registerValidator, requiredWithTrimValidator, index_d$4 as storage, index_d as store, trueValidator, urlValidator, validateFullName, valueGreaterThanZero, zipCodeValidator };
1763
+ export type { MonkeyEcxAccessHandleAccessTypes, MonkeyEcxAccessHandleTokenCredentials, MonkeyEcxAlert, MonkeyEcxAuthCredentials, MonkeyEcxAuthReAuthenticateData, MonkeyEcxAuthenticationService, MonkeyEcxBaseResolverParams, MonkeyEcxBootstrap, MonkeyEcxBootstrapService, MonkeyEcxCachedFile, MonkeyEcxCollectionStore, MonkeyEcxCompany, MonkeyEcxConfigStore, MonkeyEcxControlStore, MonkeyEcxEntityStore, MonkeyEcxEnv, MonkeyEcxGroup, MonkeyEcxGroupCompany, MonkeyEcxHeaderCredentials, MonkeyEcxInterface, MonkeyEcxLinks, MonkeyEcxMeCredentials, MonkeyEcxPage, MonkeyEcxPagination, MonkeyEcxPaginationActions, MonkeyEcxPaginationData, MonkeyEcxPaginationSortData, MonkeyEcxPaginationSortField, MonkeyEcxPendingRequest, MonkeyEcxProgram, MonkeyEcxRedirectLoginWelcomeBackStrategy, MonkeyEcxRefreshTokenStrategy, MonkeyEcxServiceCredentials, MonkeyEcxStorage, MonkeyEcxStoreControl, MonkeyEcxStoreLoadPageParams, MonkeyEcxStoreLoadParams, MonkeyEcxStoreStartParams, MonkeyEcxStyleColor, MonkeyEcxStyleGuide, MonkeyEcxStyleGuideFont, MonkeyEcxTokenCredentials, MonkeyEcxWhiteLabel };