@mapvx/web-js 1.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 (397) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +257 -0
  3. package/dist/cjs/assets/icons.js +87 -0
  4. package/dist/cjs/assets/icons.js.map +1 -0
  5. package/dist/cjs/assets/route_animation_icon.svg +15 -0
  6. package/dist/cjs/assets/user-dot-icon.svg +3 -0
  7. package/dist/cjs/config/sdkConfig.js +3 -0
  8. package/dist/cjs/config/sdkConfig.js.map +1 -0
  9. package/dist/cjs/controllers/routeController.js +1054 -0
  10. package/dist/cjs/controllers/routeController.js.map +1 -0
  11. package/dist/cjs/domain/models/_internal.js +15 -0
  12. package/dist/cjs/domain/models/_internal.js.map +1 -0
  13. package/dist/cjs/domain/models/_rtl.js +10 -0
  14. package/dist/cjs/domain/models/_rtl.js.map +1 -0
  15. package/dist/cjs/domain/models/animation.js +63 -0
  16. package/dist/cjs/domain/models/animation.js.map +1 -0
  17. package/dist/cjs/domain/models/banner.js +24 -0
  18. package/dist/cjs/domain/models/banner.js.map +1 -0
  19. package/dist/cjs/domain/models/categories.js +25 -0
  20. package/dist/cjs/domain/models/categories.js.map +1 -0
  21. package/dist/cjs/domain/models/cityFilterOption.js +3 -0
  22. package/dist/cjs/domain/models/cityFilterOption.js.map +1 -0
  23. package/dist/cjs/domain/models/configuration.js +3 -0
  24. package/dist/cjs/domain/models/configuration.js.map +1 -0
  25. package/dist/cjs/domain/models/cssCustomization.js +3 -0
  26. package/dist/cjs/domain/models/cssCustomization.js.map +1 -0
  27. package/dist/cjs/domain/models/fitOptions.js +3 -0
  28. package/dist/cjs/domain/models/fitOptions.js.map +1 -0
  29. package/dist/cjs/domain/models/innerFloors.js +3 -0
  30. package/dist/cjs/domain/models/innerFloors.js.map +1 -0
  31. package/dist/cjs/domain/models/institution.js +44 -0
  32. package/dist/cjs/domain/models/institution.js.map +1 -0
  33. package/dist/cjs/domain/models/latLng.js +3 -0
  34. package/dist/cjs/domain/models/latLng.js.map +1 -0
  35. package/dist/cjs/domain/models/location.js +3 -0
  36. package/dist/cjs/domain/models/location.js.map +1 -0
  37. package/dist/cjs/domain/models/loggeable.js +52 -0
  38. package/dist/cjs/domain/models/loggeable.js.map +1 -0
  39. package/dist/cjs/domain/models/mapCamera.js +3 -0
  40. package/dist/cjs/domain/models/mapCamera.js.map +1 -0
  41. package/dist/cjs/domain/models/mapConfig.js +15 -0
  42. package/dist/cjs/domain/models/mapConfig.js.map +1 -0
  43. package/dist/cjs/domain/models/marker.js +400 -0
  44. package/dist/cjs/domain/models/marker.js.map +1 -0
  45. package/dist/cjs/domain/models/multilanguage.js +18 -0
  46. package/dist/cjs/domain/models/multilanguage.js.map +1 -0
  47. package/dist/cjs/domain/models/openingHours.js +3 -0
  48. package/dist/cjs/domain/models/openingHours.js.map +1 -0
  49. package/dist/cjs/domain/models/place.js +101 -0
  50. package/dist/cjs/domain/models/place.js.map +1 -0
  51. package/dist/cjs/domain/models/platform.js +3 -0
  52. package/dist/cjs/domain/models/platform.js.map +1 -0
  53. package/dist/cjs/domain/models/popover.js +3 -0
  54. package/dist/cjs/domain/models/popover.js.map +1 -0
  55. package/dist/cjs/domain/models/product.js +3 -0
  56. package/dist/cjs/domain/models/product.js.map +1 -0
  57. package/dist/cjs/domain/models/property.js +104 -0
  58. package/dist/cjs/domain/models/property.js.map +1 -0
  59. package/dist/cjs/domain/models/route.js +166 -0
  60. package/dist/cjs/domain/models/route.js.map +1 -0
  61. package/dist/cjs/domain/models/routeConfiguration.js +80 -0
  62. package/dist/cjs/domain/models/routeConfiguration.js.map +1 -0
  63. package/dist/cjs/domain/models/routeInstance.js +30 -0
  64. package/dist/cjs/domain/models/routeInstance.js.map +1 -0
  65. package/dist/cjs/domain/models/routeStyle.js +3 -0
  66. package/dist/cjs/domain/models/routeStyle.js.map +1 -0
  67. package/dist/cjs/domain/models/transport.js +22 -0
  68. package/dist/cjs/domain/models/transport.js.map +1 -0
  69. package/dist/cjs/domain/ports/ICache.js +3 -0
  70. package/dist/cjs/domain/ports/ICache.js.map +1 -0
  71. package/dist/cjs/domain/ports/IHttpClient.js +3 -0
  72. package/dist/cjs/domain/ports/IHttpClient.js.map +1 -0
  73. package/dist/cjs/domain/ports/ILogger.js +23 -0
  74. package/dist/cjs/domain/ports/ILogger.js.map +1 -0
  75. package/dist/cjs/domain/ports/index.js +10 -0
  76. package/dist/cjs/domain/ports/index.js.map +1 -0
  77. package/dist/cjs/index.js +76 -0
  78. package/dist/cjs/index.js.map +1 -0
  79. package/dist/cjs/infrastructure/cache/CacheManager.js +236 -0
  80. package/dist/cjs/infrastructure/cache/CacheManager.js.map +1 -0
  81. package/dist/cjs/infrastructure/cache/LRUCache.js +153 -0
  82. package/dist/cjs/infrastructure/cache/LRUCache.js.map +1 -0
  83. package/dist/cjs/infrastructure/cache/PersistentCache.js +160 -0
  84. package/dist/cjs/infrastructure/cache/PersistentCache.js.map +1 -0
  85. package/dist/cjs/infrastructure/cache/cacheConfig.js +70 -0
  86. package/dist/cjs/infrastructure/cache/cacheConfig.js.map +1 -0
  87. package/dist/cjs/infrastructure/http/FetchHttpClient.js +75 -0
  88. package/dist/cjs/infrastructure/http/FetchHttpClient.js.map +1 -0
  89. package/dist/cjs/infrastructure/logging/CountlyLogger.js +78 -0
  90. package/dist/cjs/infrastructure/logging/CountlyLogger.js.map +1 -0
  91. package/dist/cjs/interfaces/cache.js +3 -0
  92. package/dist/cjs/interfaces/cache.js.map +1 -0
  93. package/dist/cjs/interfaces/healthResponse.js +3 -0
  94. package/dist/cjs/interfaces/healthResponse.js.map +1 -0
  95. package/dist/cjs/interfaces/institutionResponse.js +3 -0
  96. package/dist/cjs/interfaces/institutionResponse.js.map +1 -0
  97. package/dist/cjs/interfaces/metadata.js +3 -0
  98. package/dist/cjs/interfaces/metadata.js.map +1 -0
  99. package/dist/cjs/interfaces/placeResponse.js +3 -0
  100. package/dist/cjs/interfaces/placeResponse.js.map +1 -0
  101. package/dist/cjs/interfaces/routeCacheResponse.js +3 -0
  102. package/dist/cjs/interfaces/routeCacheResponse.js.map +1 -0
  103. package/dist/cjs/interfaces/routeResponse.js +3 -0
  104. package/dist/cjs/interfaces/routeResponse.js.map +1 -0
  105. package/dist/cjs/interfaces/styleResponse.js +3 -0
  106. package/dist/cjs/interfaces/styleResponse.js.map +1 -0
  107. package/dist/cjs/logger/logger.js +91 -0
  108. package/dist/cjs/logger/logger.js.map +1 -0
  109. package/dist/cjs/logger/rollbar.js +24 -0
  110. package/dist/cjs/logger/rollbar.js.map +1 -0
  111. package/dist/cjs/map/map.js +1457 -0
  112. package/dist/cjs/map/map.js.map +1 -0
  113. package/dist/cjs/repository/repository.js +574 -0
  114. package/dist/cjs/repository/repository.js.map +1 -0
  115. package/dist/cjs/repository/requester.js +590 -0
  116. package/dist/cjs/repository/requester.js.map +1 -0
  117. package/dist/cjs/sdk.js +351 -0
  118. package/dist/cjs/sdk.js.map +1 -0
  119. package/dist/cjs/utils/error.js +20 -0
  120. package/dist/cjs/utils/error.js.map +1 -0
  121. package/dist/cjs/utils/images.js +26 -0
  122. package/dist/cjs/utils/images.js.map +1 -0
  123. package/dist/cjs/utils/nav-functions.js +150 -0
  124. package/dist/cjs/utils/nav-functions.js.map +1 -0
  125. package/dist/cjs/utils/opening-hours-helper.js +911 -0
  126. package/dist/cjs/utils/opening-hours-helper.js.map +1 -0
  127. package/dist/cjs/utils/route-utils.js +58 -0
  128. package/dist/cjs/utils/route-utils.js.map +1 -0
  129. package/dist/cjs/utils/update-css.js +77 -0
  130. package/dist/cjs/utils/update-css.js.map +1 -0
  131. package/dist/cjs/utils/utils.js +105 -0
  132. package/dist/cjs/utils/utils.js.map +1 -0
  133. package/dist/es/assets/icons.d.ts +86 -0
  134. package/dist/es/assets/icons.d.ts.map +1 -0
  135. package/dist/es/assets/icons.js +83 -0
  136. package/dist/es/assets/icons.js.map +1 -0
  137. package/dist/es/assets/route_animation_icon.svg +15 -0
  138. package/dist/es/assets/user-dot-icon.svg +3 -0
  139. package/dist/es/config/sdkConfig.d.ts +105 -0
  140. package/dist/es/config/sdkConfig.d.ts.map +1 -0
  141. package/dist/es/config/sdkConfig.js +2 -0
  142. package/dist/es/config/sdkConfig.js.map +1 -0
  143. package/dist/es/controllers/routeController.d.ts +161 -0
  144. package/dist/es/controllers/routeController.d.ts.map +1 -0
  145. package/dist/es/controllers/routeController.js +1050 -0
  146. package/dist/es/controllers/routeController.js.map +1 -0
  147. package/dist/es/domain/models/_internal.d.ts +21 -0
  148. package/dist/es/domain/models/_internal.d.ts.map +1 -0
  149. package/dist/es/domain/models/_internal.js +11 -0
  150. package/dist/es/domain/models/_internal.js.map +1 -0
  151. package/dist/es/domain/models/_rtl.d.ts +7 -0
  152. package/dist/es/domain/models/_rtl.d.ts.map +1 -0
  153. package/dist/es/domain/models/_rtl.js +7 -0
  154. package/dist/es/domain/models/_rtl.js.map +1 -0
  155. package/dist/es/domain/models/animation.d.ts +161 -0
  156. package/dist/es/domain/models/animation.d.ts.map +1 -0
  157. package/dist/es/domain/models/animation.js +58 -0
  158. package/dist/es/domain/models/animation.js.map +1 -0
  159. package/dist/es/domain/models/banner.d.ts +64 -0
  160. package/dist/es/domain/models/banner.d.ts.map +1 -0
  161. package/dist/es/domain/models/banner.js +20 -0
  162. package/dist/es/domain/models/banner.js.map +1 -0
  163. package/dist/es/domain/models/categories.d.ts +157 -0
  164. package/dist/es/domain/models/categories.d.ts.map +1 -0
  165. package/dist/es/domain/models/categories.js +20 -0
  166. package/dist/es/domain/models/categories.js.map +1 -0
  167. package/dist/es/domain/models/cityFilterOption.d.ts +15 -0
  168. package/dist/es/domain/models/cityFilterOption.d.ts.map +1 -0
  169. package/dist/es/domain/models/cityFilterOption.js +2 -0
  170. package/dist/es/domain/models/cityFilterOption.js.map +1 -0
  171. package/dist/es/domain/models/configuration.d.ts +523 -0
  172. package/dist/es/domain/models/configuration.d.ts.map +1 -0
  173. package/dist/es/domain/models/configuration.js +2 -0
  174. package/dist/es/domain/models/configuration.js.map +1 -0
  175. package/dist/es/domain/models/cssCustomization.d.ts +63 -0
  176. package/dist/es/domain/models/cssCustomization.d.ts.map +1 -0
  177. package/dist/es/domain/models/cssCustomization.js +2 -0
  178. package/dist/es/domain/models/cssCustomization.js.map +1 -0
  179. package/dist/es/domain/models/fitOptions.d.ts +175 -0
  180. package/dist/es/domain/models/fitOptions.d.ts.map +1 -0
  181. package/dist/es/domain/models/fitOptions.js +2 -0
  182. package/dist/es/domain/models/fitOptions.js.map +1 -0
  183. package/dist/es/domain/models/innerFloors.d.ts +42 -0
  184. package/dist/es/domain/models/innerFloors.d.ts.map +1 -0
  185. package/dist/es/domain/models/innerFloors.js +2 -0
  186. package/dist/es/domain/models/innerFloors.js.map +1 -0
  187. package/dist/es/domain/models/institution.d.ts +64 -0
  188. package/dist/es/domain/models/institution.d.ts.map +1 -0
  189. package/dist/es/domain/models/institution.js +40 -0
  190. package/dist/es/domain/models/institution.js.map +1 -0
  191. package/dist/es/domain/models/latLng.d.ts +14 -0
  192. package/dist/es/domain/models/latLng.d.ts.map +1 -0
  193. package/dist/es/domain/models/latLng.js +2 -0
  194. package/dist/es/domain/models/latLng.js.map +1 -0
  195. package/dist/es/domain/models/location.d.ts +10 -0
  196. package/dist/es/domain/models/location.d.ts.map +1 -0
  197. package/dist/es/domain/models/location.js +2 -0
  198. package/dist/es/domain/models/location.js.map +1 -0
  199. package/dist/es/domain/models/loggeable.d.ts +43 -0
  200. package/dist/es/domain/models/loggeable.d.ts.map +1 -0
  201. package/dist/es/domain/models/loggeable.js +48 -0
  202. package/dist/es/domain/models/loggeable.js.map +1 -0
  203. package/dist/es/domain/models/mapCamera.d.ts +109 -0
  204. package/dist/es/domain/models/mapCamera.d.ts.map +1 -0
  205. package/dist/es/domain/models/mapCamera.js +2 -0
  206. package/dist/es/domain/models/mapCamera.js.map +1 -0
  207. package/dist/es/domain/models/mapConfig.d.ts +238 -0
  208. package/dist/es/domain/models/mapConfig.d.ts.map +1 -0
  209. package/dist/es/domain/models/mapConfig.js +12 -0
  210. package/dist/es/domain/models/mapConfig.js.map +1 -0
  211. package/dist/es/domain/models/marker.d.ts +301 -0
  212. package/dist/es/domain/models/marker.d.ts.map +1 -0
  213. package/dist/es/domain/models/marker.js +396 -0
  214. package/dist/es/domain/models/marker.js.map +1 -0
  215. package/dist/es/domain/models/multilanguage.d.ts +27 -0
  216. package/dist/es/domain/models/multilanguage.d.ts.map +1 -0
  217. package/dist/es/domain/models/multilanguage.js +14 -0
  218. package/dist/es/domain/models/multilanguage.js.map +1 -0
  219. package/dist/es/domain/models/openingHours.d.ts +30 -0
  220. package/dist/es/domain/models/openingHours.d.ts.map +1 -0
  221. package/dist/es/domain/models/openingHours.js +2 -0
  222. package/dist/es/domain/models/openingHours.js.map +1 -0
  223. package/dist/es/domain/models/place.d.ts +167 -0
  224. package/dist/es/domain/models/place.d.ts.map +1 -0
  225. package/dist/es/domain/models/place.js +97 -0
  226. package/dist/es/domain/models/place.js.map +1 -0
  227. package/dist/es/domain/models/platform.d.ts +6 -0
  228. package/dist/es/domain/models/platform.d.ts.map +1 -0
  229. package/dist/es/domain/models/platform.js +2 -0
  230. package/dist/es/domain/models/platform.js.map +1 -0
  231. package/dist/es/domain/models/popover.d.ts +14 -0
  232. package/dist/es/domain/models/popover.d.ts.map +1 -0
  233. package/dist/es/domain/models/popover.js +2 -0
  234. package/dist/es/domain/models/popover.js.map +1 -0
  235. package/dist/es/domain/models/product.d.ts +36 -0
  236. package/dist/es/domain/models/product.d.ts.map +1 -0
  237. package/dist/es/domain/models/product.js +2 -0
  238. package/dist/es/domain/models/product.js.map +1 -0
  239. package/dist/es/domain/models/property.d.ts +172 -0
  240. package/dist/es/domain/models/property.d.ts.map +1 -0
  241. package/dist/es/domain/models/property.js +100 -0
  242. package/dist/es/domain/models/property.js.map +1 -0
  243. package/dist/es/domain/models/route.d.ts +199 -0
  244. package/dist/es/domain/models/route.d.ts.map +1 -0
  245. package/dist/es/domain/models/route.js +160 -0
  246. package/dist/es/domain/models/route.js.map +1 -0
  247. package/dist/es/domain/models/routeConfiguration.d.ts +140 -0
  248. package/dist/es/domain/models/routeConfiguration.d.ts.map +1 -0
  249. package/dist/es/domain/models/routeConfiguration.js +75 -0
  250. package/dist/es/domain/models/routeConfiguration.js.map +1 -0
  251. package/dist/es/domain/models/routeInstance.d.ts +52 -0
  252. package/dist/es/domain/models/routeInstance.d.ts.map +1 -0
  253. package/dist/es/domain/models/routeInstance.js +26 -0
  254. package/dist/es/domain/models/routeInstance.js.map +1 -0
  255. package/dist/es/domain/models/routeStyle.d.ts +47 -0
  256. package/dist/es/domain/models/routeStyle.d.ts.map +1 -0
  257. package/dist/es/domain/models/routeStyle.js +2 -0
  258. package/dist/es/domain/models/routeStyle.js.map +1 -0
  259. package/dist/es/domain/models/transport.d.ts +176 -0
  260. package/dist/es/domain/models/transport.d.ts.map +1 -0
  261. package/dist/es/domain/models/transport.js +18 -0
  262. package/dist/es/domain/models/transport.js.map +1 -0
  263. package/dist/es/domain/ports/ICache.d.ts +70 -0
  264. package/dist/es/domain/ports/ICache.d.ts.map +1 -0
  265. package/dist/es/domain/ports/ICache.js +2 -0
  266. package/dist/es/domain/ports/ICache.js.map +1 -0
  267. package/dist/es/domain/ports/IHttpClient.d.ts +77 -0
  268. package/dist/es/domain/ports/IHttpClient.d.ts.map +1 -0
  269. package/dist/es/domain/ports/IHttpClient.js +2 -0
  270. package/dist/es/domain/ports/IHttpClient.js.map +1 -0
  271. package/dist/es/domain/ports/ILogger.d.ts +61 -0
  272. package/dist/es/domain/ports/ILogger.d.ts.map +1 -0
  273. package/dist/es/domain/ports/ILogger.js +19 -0
  274. package/dist/es/domain/ports/ILogger.js.map +1 -0
  275. package/dist/es/domain/ports/index.d.ts +9 -0
  276. package/dist/es/domain/ports/index.d.ts.map +1 -0
  277. package/dist/es/domain/ports/index.js +6 -0
  278. package/dist/es/domain/ports/index.js.map +1 -0
  279. package/dist/es/index.d.ts +58 -0
  280. package/dist/es/index.d.ts.map +1 -0
  281. package/dist/es/index.js +48 -0
  282. package/dist/es/index.js.map +1 -0
  283. package/dist/es/infrastructure/cache/CacheManager.d.ts +106 -0
  284. package/dist/es/infrastructure/cache/CacheManager.d.ts.map +1 -0
  285. package/dist/es/infrastructure/cache/CacheManager.js +232 -0
  286. package/dist/es/infrastructure/cache/CacheManager.js.map +1 -0
  287. package/dist/es/infrastructure/cache/LRUCache.d.ts +70 -0
  288. package/dist/es/infrastructure/cache/LRUCache.d.ts.map +1 -0
  289. package/dist/es/infrastructure/cache/LRUCache.js +149 -0
  290. package/dist/es/infrastructure/cache/LRUCache.js.map +1 -0
  291. package/dist/es/infrastructure/cache/PersistentCache.d.ts +58 -0
  292. package/dist/es/infrastructure/cache/PersistentCache.d.ts.map +1 -0
  293. package/dist/es/infrastructure/cache/PersistentCache.js +156 -0
  294. package/dist/es/infrastructure/cache/PersistentCache.js.map +1 -0
  295. package/dist/es/infrastructure/cache/cacheConfig.d.ts +51 -0
  296. package/dist/es/infrastructure/cache/cacheConfig.d.ts.map +1 -0
  297. package/dist/es/infrastructure/cache/cacheConfig.js +66 -0
  298. package/dist/es/infrastructure/cache/cacheConfig.js.map +1 -0
  299. package/dist/es/infrastructure/http/FetchHttpClient.d.ts +41 -0
  300. package/dist/es/infrastructure/http/FetchHttpClient.d.ts.map +1 -0
  301. package/dist/es/infrastructure/http/FetchHttpClient.js +71 -0
  302. package/dist/es/infrastructure/http/FetchHttpClient.js.map +1 -0
  303. package/dist/es/infrastructure/logging/CountlyLogger.d.ts +47 -0
  304. package/dist/es/infrastructure/logging/CountlyLogger.d.ts.map +1 -0
  305. package/dist/es/infrastructure/logging/CountlyLogger.js +74 -0
  306. package/dist/es/infrastructure/logging/CountlyLogger.js.map +1 -0
  307. package/dist/es/interfaces/cache.d.ts +5 -0
  308. package/dist/es/interfaces/cache.d.ts.map +1 -0
  309. package/dist/es/interfaces/cache.js +2 -0
  310. package/dist/es/interfaces/cache.js.map +1 -0
  311. package/dist/es/interfaces/healthResponse.d.ts +17 -0
  312. package/dist/es/interfaces/healthResponse.d.ts.map +1 -0
  313. package/dist/es/interfaces/healthResponse.js +2 -0
  314. package/dist/es/interfaces/healthResponse.js.map +1 -0
  315. package/dist/es/interfaces/institutionResponse.d.ts +12 -0
  316. package/dist/es/interfaces/institutionResponse.d.ts.map +1 -0
  317. package/dist/es/interfaces/institutionResponse.js +2 -0
  318. package/dist/es/interfaces/institutionResponse.js.map +1 -0
  319. package/dist/es/interfaces/metadata.d.ts +7 -0
  320. package/dist/es/interfaces/metadata.d.ts.map +1 -0
  321. package/dist/es/interfaces/metadata.js +2 -0
  322. package/dist/es/interfaces/metadata.js.map +1 -0
  323. package/dist/es/interfaces/placeResponse.d.ts +50 -0
  324. package/dist/es/interfaces/placeResponse.d.ts.map +1 -0
  325. package/dist/es/interfaces/placeResponse.js +2 -0
  326. package/dist/es/interfaces/placeResponse.js.map +1 -0
  327. package/dist/es/interfaces/routeCacheResponse.d.ts +13 -0
  328. package/dist/es/interfaces/routeCacheResponse.d.ts.map +1 -0
  329. package/dist/es/interfaces/routeCacheResponse.js +2 -0
  330. package/dist/es/interfaces/routeCacheResponse.js.map +1 -0
  331. package/dist/es/interfaces/routeResponse.d.ts +42 -0
  332. package/dist/es/interfaces/routeResponse.d.ts.map +1 -0
  333. package/dist/es/interfaces/routeResponse.js +2 -0
  334. package/dist/es/interfaces/routeResponse.js.map +1 -0
  335. package/dist/es/interfaces/styleResponse.d.ts +5 -0
  336. package/dist/es/interfaces/styleResponse.d.ts.map +1 -0
  337. package/dist/es/interfaces/styleResponse.js +2 -0
  338. package/dist/es/interfaces/styleResponse.js.map +1 -0
  339. package/dist/es/logger/logger.d.ts +14 -0
  340. package/dist/es/logger/logger.d.ts.map +1 -0
  341. package/dist/es/logger/logger.js +84 -0
  342. package/dist/es/logger/logger.js.map +1 -0
  343. package/dist/es/logger/rollbar.d.ts +4 -0
  344. package/dist/es/logger/rollbar.d.ts.map +1 -0
  345. package/dist/es/logger/rollbar.js +20 -0
  346. package/dist/es/logger/rollbar.js.map +1 -0
  347. package/dist/es/map/map.d.ts +598 -0
  348. package/dist/es/map/map.d.ts.map +1 -0
  349. package/dist/es/map/map.js +1430 -0
  350. package/dist/es/map/map.js.map +1 -0
  351. package/dist/es/repository/repository.d.ts +65 -0
  352. package/dist/es/repository/repository.d.ts.map +1 -0
  353. package/dist/es/repository/repository.js +570 -0
  354. package/dist/es/repository/repository.js.map +1 -0
  355. package/dist/es/repository/requester.d.ts +169 -0
  356. package/dist/es/repository/requester.d.ts.map +1 -0
  357. package/dist/es/repository/requester.js +586 -0
  358. package/dist/es/repository/requester.js.map +1 -0
  359. package/dist/es/sdk.d.ts +279 -0
  360. package/dist/es/sdk.d.ts.map +1 -0
  361. package/dist/es/sdk.js +346 -0
  362. package/dist/es/sdk.js.map +1 -0
  363. package/dist/es/utils/error.d.ts +8 -0
  364. package/dist/es/utils/error.d.ts.map +1 -0
  365. package/dist/es/utils/error.js +16 -0
  366. package/dist/es/utils/error.js.map +1 -0
  367. package/dist/es/utils/images.d.ts +8 -0
  368. package/dist/es/utils/images.d.ts.map +1 -0
  369. package/dist/es/utils/images.js +22 -0
  370. package/dist/es/utils/images.js.map +1 -0
  371. package/dist/es/utils/nav-functions.d.ts +85 -0
  372. package/dist/es/utils/nav-functions.d.ts.map +1 -0
  373. package/dist/es/utils/nav-functions.js +143 -0
  374. package/dist/es/utils/nav-functions.js.map +1 -0
  375. package/dist/es/utils/opening-hours-helper.d.ts +395 -0
  376. package/dist/es/utils/opening-hours-helper.d.ts.map +1 -0
  377. package/dist/es/utils/opening-hours-helper.js +906 -0
  378. package/dist/es/utils/opening-hours-helper.js.map +1 -0
  379. package/dist/es/utils/route-utils.d.ts +28 -0
  380. package/dist/es/utils/route-utils.d.ts.map +1 -0
  381. package/dist/es/utils/route-utils.js +54 -0
  382. package/dist/es/utils/route-utils.js.map +1 -0
  383. package/dist/es/utils/update-css.d.ts +12 -0
  384. package/dist/es/utils/update-css.d.ts.map +1 -0
  385. package/dist/es/utils/update-css.js +73 -0
  386. package/dist/es/utils/update-css.js.map +1 -0
  387. package/dist/es/utils/utils.d.ts +39 -0
  388. package/dist/es/utils/utils.d.ts.map +1 -0
  389. package/dist/es/utils/utils.js +97 -0
  390. package/dist/es/utils/utils.js.map +1 -0
  391. package/dist/umd/index.js +16874 -0
  392. package/dist/umd/index.js.map +1 -0
  393. package/dist/umd/styles.css +107 -0
  394. package/dist/umd/styles.css.map +1 -0
  395. package/dist/umd/styles.js +37 -0
  396. package/dist/umd/styles.js.map +1 -0
  397. package/package.json +198 -0
@@ -0,0 +1,175 @@
1
+ import { type PointLike } from "maplibre-gl";
2
+ import { type CameraAnimation, type MapCamera } from "./mapCamera";
3
+ /**
4
+ * Options interface to select when making a fitBounds call on a map
5
+ * Combines camera configuration with animation options for smooth transitions
6
+ * @group Map
7
+ */
8
+ export type FitOptions = MapCamera & CameraAnimation & {
9
+ /**
10
+ * Value in which the center of the fit will be moved
11
+ * Allows adjusting the center point of the fitted bounds
12
+ */
13
+ offset?: PointLike;
14
+ /**
15
+ * Set padding (in pixels) to be added at the edges of the canvas
16
+ * Provides space around the fitted bounds to prevent elements from being cut off
17
+ */
18
+ padding?: PaddingOptions;
19
+ /**
20
+ * Max zoom allowed when trying to make a fitBounds call
21
+ * Prevents the map from zooming in too far when fitting bounds
22
+ */
23
+ maxZoom?: number;
24
+ /**
25
+ * Callback function executed when the fit animation completes
26
+ * Called after the camera has finished moving to the new position
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * map.fitCoordinates(coords, {
31
+ * onComplete: () => {
32
+ * console.log('Fit animation completed');
33
+ * }
34
+ * });
35
+ * ```
36
+ */
37
+ onComplete?: () => void;
38
+ };
39
+ /**
40
+ * Represents a padding value that can be:
41
+ * - A number (interpreted as pixels)
42
+ * - A string with a unit: "10%", "5vh", "5vw", "100px"
43
+ *
44
+ * Supported units:
45
+ * - `px` - Pixels (default if number)
46
+ * - `%` - Percentage of the map container dimension (width for left/right, height for top/bottom)
47
+ * - `vh` - Percentage of viewport height
48
+ * - `vw` - Percentage of viewport width
49
+ *
50
+ * @example
51
+ * ```typescript
52
+ * // All equivalent to 50 pixels
53
+ * padding: { top: 50 }
54
+ * padding: { top: "50px" }
55
+ *
56
+ * // Percentage of container
57
+ * padding: { left: "30%" } // 30% of container width
58
+ * padding: { top: "20%" } // 20% of container height
59
+ *
60
+ * // Viewport units
61
+ * padding: { top: "10vh" } // 10% of viewport height
62
+ * padding: { left: "15vw" } // 15% of viewport width
63
+ * ```
64
+ *
65
+ * @group Map
66
+ */
67
+ export type PaddingValue = number | string;
68
+ /**
69
+ * Interface defining padding options for fitBounds operations.
70
+ * All fields are optional - only specify the edges you need padding for.
71
+ * Unspecified edges default to 0.
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * // Only pad left and top (for a modal in the top-left corner)
76
+ * map.fitCoordinates(coords, {
77
+ * padding: {
78
+ * left: "30%", // 30% of container width
79
+ * top: "40%" // 40% of container height
80
+ * }
81
+ * });
82
+ *
83
+ * // Mixed units
84
+ * map.fitCoordinates(coords, {
85
+ * padding: {
86
+ * top: 100, // 100 pixels
87
+ * left: "25%", // 25% of container width
88
+ * bottom: "5vh" // 5% of viewport height
89
+ * }
90
+ * });
91
+ * ```
92
+ *
93
+ * @group Map
94
+ */
95
+ export interface PaddingOptions {
96
+ /**
97
+ * Padding for the bottom edge of the viewport.
98
+ * Can be a number (pixels) or string with unit (%, vh, vw, px).
99
+ */
100
+ bottom?: PaddingValue;
101
+ /**
102
+ * Padding for the left edge of the viewport.
103
+ * Can be a number (pixels) or string with unit (%, vh, vw, px).
104
+ */
105
+ left?: PaddingValue;
106
+ /**
107
+ * Padding for the right edge of the viewport.
108
+ * Can be a number (pixels) or string with unit (%, vh, vw, px).
109
+ */
110
+ right?: PaddingValue;
111
+ /**
112
+ * Padding for the top edge of the viewport.
113
+ * Can be a number (pixels) or string with unit (%, vh, vw, px).
114
+ */
115
+ top?: PaddingValue;
116
+ }
117
+ /**
118
+ * Options for floor update operations
119
+ * @group Map
120
+ */
121
+ export interface FloorUpdateOptions {
122
+ /**
123
+ * Callback function executed when the floor update completes
124
+ * Called after all floor filters and markers have been updated
125
+ *
126
+ * @example
127
+ * ```typescript
128
+ * map.updateFloor('floor-1', {
129
+ * onComplete: () => {
130
+ * console.log('Floor update completed');
131
+ * }
132
+ * });
133
+ * ```
134
+ */
135
+ onComplete?: () => void;
136
+ }
137
+ /**
138
+ * Options for zoom level operations
139
+ * @group Map
140
+ */
141
+ export interface ZoomOptions {
142
+ /**
143
+ * Callback function executed when the zoom change completes
144
+ *
145
+ * @example
146
+ * ```typescript
147
+ * map.setMinZoom(10, {
148
+ * onComplete: () => {
149
+ * console.log('Min zoom set');
150
+ * }
151
+ * });
152
+ * ```
153
+ */
154
+ onComplete?: () => void;
155
+ }
156
+ /**
157
+ * Options for bounds operations
158
+ * @group Map
159
+ */
160
+ export interface BoundsOptions {
161
+ /**
162
+ * Callback function executed when the bounds change completes
163
+ *
164
+ * @example
165
+ * ```typescript
166
+ * map.setMaxBounds(coordinates, {
167
+ * onComplete: () => {
168
+ * console.log('Bounds set');
169
+ * }
170
+ * });
171
+ * ```
172
+ */
173
+ onComplete?: () => void;
174
+ }
175
+ //# sourceMappingURL=fitOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fitOptions.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/fitOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAA;AAElE;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAChC,eAAe,GAAG;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAA;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IAErB;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;IAEpB;;;OAGG;IACH,GAAG,CAAC,EAAE,YAAY,CAAA;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=fitOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fitOptions.js","sourceRoot":"","sources":["../../../../src/domain/models/fitOptions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Model parameters of each floor for locations
3
+ * Represents the configuration and properties of individual floors within a building
4
+ * @group Places & Locations
5
+ */
6
+ export interface InnerFloor {
7
+ /**
8
+ * Unique identifier for the floor
9
+ */
10
+ key: string;
11
+ /**
12
+ * Numerical index representing the floor's position in the building
13
+ * Lower numbers typically represent lower floors
14
+ */
15
+ index: number;
16
+ /**
17
+ * Floor level number (can be negative for basement floors)
18
+ */
19
+ level: number;
20
+ /**
21
+ * Full name of the floor (e.g., "Ground Floor", "First Floor")
22
+ */
23
+ name: string;
24
+ /**
25
+ * Abbreviated name of the floor (e.g., "G", "1F", "B1")
26
+ */
27
+ shortName?: string;
28
+ /**
29
+ * Indicates if this is the default floor to display when entering the building
30
+ */
31
+ defaultFloor: boolean;
32
+ /**
33
+ * Reference to the base floor identifier (used for relative positioning)
34
+ */
35
+ baseFloor?: string;
36
+ /**
37
+ * Indicates if this floor can be reached using GPS positioning
38
+ * Useful for outdoor areas or floors with GPS accessibility
39
+ */
40
+ reachableFromGPS?: boolean;
41
+ }
42
+ //# sourceMappingURL=innerFloors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"innerFloors.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/innerFloors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,YAAY,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=innerFloors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"innerFloors.js","sourceRoot":"","sources":["../../../../src/domain/models/innerFloors.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ import { type InstitutionResponse } from "../../interfaces/institutionResponse";
2
+ import { type Property } from "./property";
3
+ /**
4
+ * MapVX Institution object, is a custom object containing data of conglomerate of places (enterprise or subdivision).
5
+ * Represents a collection of related places that form a larger organizational unit.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * const institution = new Institution(institutionResponse);
10
+ * console.log(institution.title); // "Shopping Mall"
11
+ * console.log(institution.hasPlaces); // true
12
+ * ```
13
+ *
14
+ * @group Places & Locations
15
+ */
16
+ export declare class Institution {
17
+ /**
18
+ * Unique identifier for the institution in MapVX system
19
+ */
20
+ mapvxId: string;
21
+ /**
22
+ * Title or name of the institution
23
+ */
24
+ title: string;
25
+ /**
26
+ * Detailed description of the institution (optional)
27
+ */
28
+ description?: string;
29
+ /**
30
+ * Country where the institution is located
31
+ */
32
+ country: string;
33
+ /**
34
+ * Category or type of the institution
35
+ */
36
+ category: string;
37
+ /**
38
+ * Flag indicating if the institution contains places
39
+ */
40
+ hasPlaces: boolean;
41
+ /**
42
+ * List of properties associated with the institution
43
+ * @see {@link Property} for property structure
44
+ */
45
+ properties?: Property[];
46
+ /**
47
+ * URL of the institution's icon or logo
48
+ */
49
+ icon?: string;
50
+ /**
51
+ * Creates a new instance of an Institution object with the rawInstitution arguments.
52
+ *
53
+ * @param rawInstitution - JSON configuration parameters for the institution from API response
54
+ * @returns A new instance of Institution
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * const institutionResponse = await fetchInstitutionData(institutionId);
59
+ * const institution = new Institution(institutionResponse);
60
+ * ```
61
+ */
62
+ constructor(rawInstitution: InstitutionResponse);
63
+ }
64
+ //# sourceMappingURL=institution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"institution.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/institution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEzD;;;;;;;;;;;;GAYG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACI,OAAO,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACI,KAAK,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACI,WAAW,CAAC,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACI,OAAO,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACI,QAAQ,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACI,SAAS,EAAE,OAAO,CAAA;IAEzB;;;OAGG;IACI,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAA;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;;;;;;OAWG;gBACS,cAAc,EAAE,mBAAmB;CAUhD"}
@@ -0,0 +1,40 @@
1
+ import { PropertyUtils } from "./property";
2
+ /**
3
+ * MapVX Institution object, is a custom object containing data of conglomerate of places (enterprise or subdivision).
4
+ * Represents a collection of related places that form a larger organizational unit.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * const institution = new Institution(institutionResponse);
9
+ * console.log(institution.title); // "Shopping Mall"
10
+ * console.log(institution.hasPlaces); // true
11
+ * ```
12
+ *
13
+ * @group Places & Locations
14
+ */
15
+ export class Institution {
16
+ /**
17
+ * Creates a new instance of an Institution object with the rawInstitution arguments.
18
+ *
19
+ * @param rawInstitution - JSON configuration parameters for the institution from API response
20
+ * @returns A new instance of Institution
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const institutionResponse = await fetchInstitutionData(institutionId);
25
+ * const institution = new Institution(institutionResponse);
26
+ * ```
27
+ */
28
+ constructor(rawInstitution) {
29
+ var _a;
30
+ this.mapvxId = rawInstitution.id;
31
+ this.country = rawInstitution.country;
32
+ this.title = rawInstitution.title;
33
+ this.category = rawInstitution.category;
34
+ this.icon = rawInstitution.icon;
35
+ this.description = rawInstitution.description;
36
+ this.hasPlaces = rawInstitution.hasPlaces;
37
+ this.properties = PropertyUtils.parseProperties((_a = rawInstitution.properties) !== null && _a !== void 0 ? _a : []);
38
+ }
39
+ }
40
+ //# sourceMappingURL=institution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"institution.js","sourceRoot":"","sources":["../../../../src/domain/models/institution.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAiB,MAAM,YAAY,CAAA;AAEzD;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,WAAW;IA0CtB;;;;;;;;;;;OAWG;IACH,YAAY,cAAmC;;QAC7C,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,EAAE,CAAA;QAChC,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,OAAO,CAAA;QACrC,IAAI,CAAC,KAAK,GAAG,cAAc,CAAC,KAAK,CAAA;QACjC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC,QAAQ,CAAA;QACvC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC,IAAI,CAAA;QAC/B,IAAI,CAAC,WAAW,GAAG,cAAc,CAAC,WAAW,CAAA;QAC7C,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,SAAS,CAAA;QACzC,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,eAAe,CAAC,MAAA,cAAc,CAAC,UAAU,mCAAI,EAAE,CAAC,CAAA;IAClF,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * basic latitude and longitude model
3
+ * @group Places & Locations
4
+ */
5
+ export interface LatLng {
6
+ lat: number;
7
+ lng: number;
8
+ }
9
+ /**
10
+ * Represents the callback function for the position.
11
+ * @group Utils
12
+ */
13
+ export type PositionCallback = (latLng: GeolocationPosition) => void;
14
+ //# sourceMappingURL=latLng.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latLng.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/latLng.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACZ;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=latLng.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"latLng.js","sourceRoot":"","sources":["../../../../src/domain/models/latLng.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { type LatLng } from "./latLng";
2
+ /**
3
+ * Represents a location on the map.
4
+ * @group Places & Locations
5
+ */
6
+ export interface MVXLocation extends LatLng {
7
+ floorId?: string;
8
+ placeId?: string;
9
+ }
10
+ //# sourceMappingURL=location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,MAAM;IACzC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.js","sourceRoot":"","sources":["../../../../src/domain/models/location.ts"],"names":[],"mappings":""}
@@ -0,0 +1,43 @@
1
+ import { type LogArgument } from "rollbar";
2
+ /**
3
+ * Represents the abstract class for the loggeable.
4
+ * @hidden
5
+ */
6
+ export declare abstract class Loggeable {
7
+ /**
8
+ * The object to log the events and errors.
9
+ */
10
+ private readonly logger;
11
+ constructor();
12
+ /**
13
+ * Add values to identify the client.
14
+ * @param segmentation The pair values to use as segmentation.
15
+ * @returns The segmentation with the added values.
16
+ */
17
+ protected abstract prepareSegmentation(segmentation: Record<string, string>): Record<string, string>;
18
+ /**
19
+ * To log a event in this class.
20
+ * @param eventName The event name.
21
+ * @param eventSegmentation The pair key, value to segment this event count.
22
+ */
23
+ protected logEvent(eventName: string, eventSegmentation?: Record<string, string>): void;
24
+ /**
25
+ * To log a captured error in this class.
26
+ * @param error The captured error
27
+ * @param args The rest of the arguments.
28
+ */
29
+ protected logError(error: unknown, ...args: LogArgument[]): void;
30
+ /**
31
+ * To log a captured error as a warning.
32
+ * @param error The captured error
33
+ * @param args The rest of the arguments.
34
+ */
35
+ protected logWarning(error: unknown, ...args: LogArgument[]): void;
36
+ protected logDebug(...args: LogArgument[]): void;
37
+ /**
38
+ * Prints in console any number of given arguments, if and only if, app is running in debug mode.
39
+ * @param args An array of arguments to log
40
+ */
41
+ protected debugLog(...args: unknown[]): void;
42
+ }
43
+ //# sourceMappingURL=loggeable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loggeable.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/loggeable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1C;;;GAGG;AACH,8BAAsB,SAAS;IAC7B;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;;IAM/B;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,mBAAmB,CACpC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,iBAAiB,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,IAAI;IAI3F;;;;OAIG;IACH,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI;IAKhE;;;;OAIG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI;IAKlE,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI;IAIhD;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE;CAGtC"}
@@ -0,0 +1,48 @@
1
+ import { Logger } from "../../logger/logger";
2
+ import { convertToError } from "../../utils/error";
3
+ /**
4
+ * Represents the abstract class for the loggeable.
5
+ * @hidden
6
+ */
7
+ export class Loggeable {
8
+ constructor() {
9
+ this.logger = Logger.getInstance();
10
+ }
11
+ /**
12
+ * To log a event in this class.
13
+ * @param eventName The event name.
14
+ * @param eventSegmentation The pair key, value to segment this event count.
15
+ */
16
+ logEvent(eventName, eventSegmentation = {}) {
17
+ this.logger.logEvent(eventName, this.prepareSegmentation(eventSegmentation));
18
+ }
19
+ /**
20
+ * To log a captured error in this class.
21
+ * @param error The captured error
22
+ * @param args The rest of the arguments.
23
+ */
24
+ logError(error, ...args) {
25
+ const errorTyped = convertToError(error);
26
+ this.logger.logError(errorTyped, ...args);
27
+ }
28
+ /**
29
+ * To log a captured error as a warning.
30
+ * @param error The captured error
31
+ * @param args The rest of the arguments.
32
+ */
33
+ logWarning(error, ...args) {
34
+ const errorTyped = convertToError(error);
35
+ this.logger.logWarning(errorTyped, ...args);
36
+ }
37
+ logDebug(...args) {
38
+ this.logger.logDebug(...args);
39
+ }
40
+ /**
41
+ * Prints in console any number of given arguments, if and only if, app is running in debug mode.
42
+ * @param args An array of arguments to log
43
+ */
44
+ debugLog(...args) {
45
+ this.logger.debugLog(args);
46
+ }
47
+ }
48
+ //# sourceMappingURL=loggeable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loggeable.js","sourceRoot":"","sources":["../../../../src/domain/models/loggeable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD;;;GAGG;AACH,MAAM,OAAgB,SAAS;IAM7B;QACE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CAAA;IACpC,CAAC;IAWD;;;;OAIG;IACO,QAAQ,CAAC,SAAiB,EAAE,oBAA4C,EAAE;QAClF,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC,CAAA;IAC9E,CAAC;IAED;;;;OAIG;IACO,QAAQ,CAAC,KAAc,EAAE,GAAG,IAAmB;QACvD,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;QACxC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAA;IAC3C,CAAC;IAED;;;;OAIG;IACO,UAAU,CAAC,KAAc,EAAE,GAAG,IAAmB;QACzD,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;QACxC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,CAAA;IAC7C,CAAC;IAES,QAAQ,CAAC,GAAG,IAAmB;QACvC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACO,QAAQ,CAAC,GAAG,IAAe;QACnC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;CACF"}
@@ -0,0 +1,109 @@
1
+ import { type LatLng } from "./latLng";
2
+ /**
3
+ * Model of configuration parameters for the change in map camera.
4
+ * Defines the target camera position and orientation for map transitions.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * const cameraConfig: MapCamera = {
9
+ * center: { lat: 40.7128, lng: -74.0060 },
10
+ * zoom: 15,
11
+ * bearing: 45,
12
+ * pitch: 30
13
+ * };
14
+ * ```
15
+ *
16
+ * @group Map
17
+ */
18
+ export interface MapCamera {
19
+ /**
20
+ * The desired center coordinates for the map view.
21
+ * @see {@link LatLng} for coordinate structure
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * center: { lat: 40.7128, lng: -74.0060 } // New York
26
+ * ```
27
+ */
28
+ center?: LatLng;
29
+ /**
30
+ * The desired zoom level for the map view.
31
+ * Higher values indicate more zoomed in view.
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * zoom: 15 // City level
36
+ * zoom: 10 // Country level
37
+ * ```
38
+ */
39
+ zoom?: number;
40
+ /**
41
+ * The desired bearing in degrees. The bearing is the compass direction that is "up".
42
+ * 0 degrees points north, 90 degrees points east, 180 degrees points south, 270 degrees points west.
43
+ *
44
+ * @example
45
+ * ```typescript
46
+ * bearing: 90 // East is up
47
+ * bearing: 180 // South is up
48
+ * bearing: 45 // Northeast is up
49
+ * ```
50
+ */
51
+ bearing?: number;
52
+ /**
53
+ * The desired pitch in degrees. The pitch is the angle of tilt from the plane of the map.
54
+ * Possible values range from 0 to 85 degrees.
55
+ * 0 degrees is flat (2D view), higher values create a 3D perspective.
56
+ *
57
+ * @example
58
+ * ```typescript
59
+ * pitch: 0 // Flat 2D view
60
+ * pitch: 30 // Slight 3D tilt
61
+ * pitch: 60 // Steep 3D perspective
62
+ * ```
63
+ */
64
+ pitch?: number;
65
+ }
66
+ /**
67
+ * The options to animate the update of the map camera.
68
+ * Controls how smoothly the camera transitions to its new position.
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * const animationOptions: CameraAnimation = {
73
+ * animate: true,
74
+ * duration: 2000 // 2 seconds
75
+ * };
76
+ * ```
77
+ *
78
+ * @group Map
79
+ */
80
+ export interface CameraAnimation {
81
+ /**
82
+ * If false, no animation will occur and the camera will jump instantly to the new position.
83
+ * If omitted, defaults to `true`.
84
+ *
85
+ * @defaultValue `true`
86
+ *
87
+ * @example
88
+ * ```typescript
89
+ * animate: true // Smooth transition
90
+ * animate: false // Instant jump
91
+ * ```
92
+ */
93
+ animate?: boolean;
94
+ /**
95
+ * The animation's duration, measured in milliseconds.
96
+ * Higher values create slower, more gradual transitions.
97
+ *
98
+ * @defaultValue `1000`
99
+ *
100
+ * @example
101
+ * ```typescript
102
+ * duration: 500 // Fast transition (0.5 seconds)
103
+ * duration: 2000 // Slow transition (2 seconds)
104
+ * duration: 1000 // Default transition (1 second)
105
+ * ```
106
+ */
107
+ duration?: number;
108
+ }
109
+ //# sourceMappingURL=mapCamera.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapCamera.d.ts","sourceRoot":"","sources":["../../../../src/domain/models/mapCamera.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mapCamera.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mapCamera.js","sourceRoot":"","sources":["../../../../src/domain/models/mapCamera.ts"],"names":[],"mappings":""}