@futdevpro/fsm-dynamo 1.5.50 → 1.5.55

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 (523) hide show
  1. package/lib/_constants/index.d.ts +3 -0
  2. package/lib/_constants/index.d.ts.map +1 -0
  3. package/lib/_constants/index.js +8 -0
  4. package/lib/_constants/index.js.map +1 -0
  5. package/lib/_constants/location/country-codes-ISO-3166.json +3239 -0
  6. package/lib/_constants/location/country-divisions-ISO-3166-all-list.json +19036 -0
  7. package/lib/_constants/location/country-phone-codes.json +1202 -0
  8. package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts +3 -0
  9. package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts.map +1 -0
  10. package/lib/_constants/module-settings/custom-data-module-settings.const.js +11 -0
  11. package/lib/_constants/module-settings/custom-data-module-settings.const.js.map +1 -0
  12. package/lib/_constants/module-settings/index.d.ts +4 -0
  13. package/lib/_constants/module-settings/index.d.ts.map +1 -0
  14. package/lib/_constants/module-settings/index.js +8 -0
  15. package/lib/_constants/module-settings/index.js.map +1 -0
  16. package/lib/_constants/module-settings/test-module-settings.const.d.ts +3 -0
  17. package/lib/_constants/module-settings/test-module-settings.const.d.ts.map +1 -0
  18. package/lib/_constants/module-settings/test-module-settings.const.js +15 -0
  19. package/lib/_constants/module-settings/test-module-settings.const.js.map +1 -0
  20. package/lib/_constants/module-settings/usage-module-settings.const.d.ts +3 -0
  21. package/lib/_constants/module-settings/usage-module-settings.const.d.ts.map +1 -0
  22. package/lib/_constants/module-settings/usage-module-settings.const.js +13 -0
  23. package/lib/_constants/module-settings/usage-module-settings.const.js.map +1 -0
  24. package/lib/_constants/times.const.d.ts +8 -0
  25. package/lib/_constants/times.const.d.ts.map +1 -0
  26. package/lib/_constants/times.const.js +11 -0
  27. package/lib/_constants/times.const.js.map +1 -0
  28. package/lib/_enums/basic-property-type.enum.d.ts +8 -0
  29. package/lib/_enums/basic-property-type.enum.d.ts.map +1 -0
  30. package/lib/_enums/basic-property-type.enum.js +12 -0
  31. package/lib/_enums/basic-property-type.enum.js.map +1 -0
  32. package/lib/_enums/data-model-type.enum.d.ts +6 -0
  33. package/lib/_enums/data-model-type.enum.d.ts.map +1 -0
  34. package/lib/_enums/data-model-type.enum.js +10 -0
  35. package/lib/_enums/data-model-type.enum.js.map +1 -0
  36. package/lib/_enums/index.d.ts +7 -0
  37. package/lib/_enums/index.d.ts.map +1 -0
  38. package/lib/_enums/index.js +11 -0
  39. package/lib/_enums/index.js.map +1 -0
  40. package/lib/_enums/log-style.enum.d.ts +26 -0
  41. package/lib/_enums/log-style.enum.d.ts.map +1 -0
  42. package/lib/_enums/log-style.enum.js +30 -0
  43. package/lib/_enums/log-style.enum.js.map +1 -0
  44. package/lib/_enums/region.enum.d.ts +8 -0
  45. package/lib/_enums/region.enum.d.ts.map +1 -0
  46. package/lib/_enums/region.enum.js +12 -0
  47. package/lib/_enums/region.enum.js.map +1 -0
  48. package/lib/_enums/sub-region.enum.d.ts +20 -0
  49. package/lib/_enums/sub-region.enum.d.ts.map +1 -0
  50. package/lib/_enums/sub-region.enum.js +24 -0
  51. package/lib/_enums/sub-region.enum.js.map +1 -0
  52. package/lib/_enums/subdivision-region-type.enum.d.ts +41 -0
  53. package/lib/_enums/subdivision-region-type.enum.d.ts.map +1 -0
  54. package/lib/_enums/subdivision-region-type.enum.js +46 -0
  55. package/lib/_enums/subdivision-region-type.enum.js.map +1 -0
  56. package/lib/_models/control-models/daily-usage-data.control-model.d.ts +12 -0
  57. package/lib/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -0
  58. package/lib/_models/control-models/daily-usage-data.control-model.js +17 -0
  59. package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -0
  60. package/lib/_models/control-models/data-params.control-model.d.ts +13 -0
  61. package/lib/_models/control-models/data-params.control-model.d.ts.map +1 -0
  62. package/lib/_models/control-models/data-params.control-model.js +20 -0
  63. package/lib/_models/control-models/data-params.control-model.js.map +1 -0
  64. package/lib/_models/control-models/data-property-params.control-model.d.ts +29 -0
  65. package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -0
  66. package/lib/_models/control-models/data-property-params.control-model.js +55 -0
  67. package/lib/_models/control-models/data-property-params.control-model.js.map +1 -0
  68. package/lib/_models/control-models/error.control-model.d.ts +264 -0
  69. package/lib/_models/control-models/error.control-model.d.ts.map +1 -0
  70. package/lib/_models/control-models/error.control-model.js +114 -0
  71. package/lib/_models/control-models/error.control-model.js.map +1 -0
  72. package/lib/_models/control-models/index.d.ts +10 -0
  73. package/lib/_models/control-models/index.d.ts.map +1 -0
  74. package/lib/_models/control-models/index.js +14 -0
  75. package/lib/_models/control-models/index.js.map +1 -0
  76. package/lib/_models/control-models/poll.control-model.d.ts +32 -0
  77. package/lib/_models/control-models/poll.control-model.d.ts.map +1 -0
  78. package/lib/_models/control-models/poll.control-model.js +90 -0
  79. package/lib/_models/control-models/poll.control-model.js.map +1 -0
  80. package/lib/_models/control-models/range-value.control-model.d.ts +8 -0
  81. package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -0
  82. package/lib/_models/control-models/range-value.control-model.js +11 -0
  83. package/lib/_models/control-models/range-value.control-model.js.map +1 -0
  84. package/lib/_models/control-models/usage-action.control-model.d.ts +7 -0
  85. package/lib/_models/control-models/usage-action.control-model.d.ts.map +1 -0
  86. package/lib/_models/control-models/usage-action.control-model.js +13 -0
  87. package/lib/_models/control-models/usage-action.control-model.js.map +1 -0
  88. package/lib/_models/control-models/usage-data.control-model.d.ts +11 -0
  89. package/lib/_models/control-models/usage-data.control-model.d.ts.map +1 -0
  90. package/lib/_models/control-models/usage-data.control-model.js +13 -0
  91. package/lib/_models/control-models/usage-data.control-model.js.map +1 -0
  92. package/lib/_models/data-models/custom-data.data-model.d.ts +10 -0
  93. package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -0
  94. package/lib/_models/data-models/custom-data.data-model.js +21 -0
  95. package/lib/_models/data-models/custom-data.data-model.js.map +1 -0
  96. package/lib/_models/data-models/index.d.ts +4 -0
  97. package/lib/_models/data-models/index.d.ts.map +1 -0
  98. package/lib/_models/data-models/index.js +8 -0
  99. package/lib/_models/data-models/index.js.map +1 -0
  100. package/lib/_models/data-models/metadata.data-model.d.ts +12 -0
  101. package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -0
  102. package/lib/_models/data-models/metadata.data-model.js +15 -0
  103. package/lib/_models/data-models/metadata.data-model.js.map +1 -0
  104. package/lib/_models/data-models/usage-session.data-model.d.ts +19 -0
  105. package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -0
  106. package/lib/_models/data-models/usage-session.data-model.js +37 -0
  107. package/lib/_models/data-models/usage-session.data-model.js.map +1 -0
  108. package/lib/_models/index.d.ts +4 -0
  109. package/lib/_models/index.d.ts.map +1 -0
  110. package/lib/_models/index.js +11 -0
  111. package/lib/_models/index.js.map +1 -0
  112. package/lib/_models/interfaces/index.d.ts +4 -0
  113. package/lib/_models/interfaces/index.d.ts.map +1 -0
  114. package/lib/_models/interfaces/index.js +9 -0
  115. package/lib/_models/interfaces/index.js.map +1 -0
  116. package/lib/_models/interfaces/location/country-division.interface.d.ts +6 -0
  117. package/lib/_models/interfaces/location/country-division.interface.d.ts.map +1 -0
  118. package/lib/_models/interfaces/location/country-division.interface.js +3 -0
  119. package/lib/_models/interfaces/location/country-division.interface.js.map +1 -0
  120. package/lib/_models/interfaces/location/country-iso.interface.d.ts +19 -0
  121. package/lib/_models/interfaces/location/country-iso.interface.d.ts.map +1 -0
  122. package/lib/_models/interfaces/location/country-iso.interface.js +3 -0
  123. package/lib/_models/interfaces/location/country-iso.interface.js.map +1 -0
  124. package/lib/_models/interfaces/location/country-phone-code.interface.d.ts +6 -0
  125. package/lib/_models/interfaces/location/country-phone-code.interface.d.ts.map +1 -0
  126. package/lib/_models/interfaces/location/country-phone-code.interface.js +3 -0
  127. package/lib/_models/interfaces/location/country-phone-code.interface.js.map +1 -0
  128. package/lib/_models/interfaces/location/division-collection.interface.d.ts +9 -0
  129. package/lib/_models/interfaces/location/division-collection.interface.d.ts.map +1 -0
  130. package/lib/_models/interfaces/location/division-collection.interface.js +3 -0
  131. package/lib/_models/interfaces/location/division-collection.interface.js.map +1 -0
  132. package/lib/_models/interfaces/location/division-region-data.interface.d.ts +6 -0
  133. package/lib/_models/interfaces/location/division-region-data.interface.d.ts.map +1 -0
  134. package/lib/_models/interfaces/location/division-region-data.interface.js +3 -0
  135. package/lib/_models/interfaces/location/division-region-data.interface.js.map +1 -0
  136. package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts +26 -0
  137. package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts.map +1 -0
  138. package/lib/_models/interfaces/location/geo-ip-location.interface.js +3 -0
  139. package/lib/_models/interfaces/location/geo-ip-location.interface.js.map +1 -0
  140. package/lib/_models/interfaces/location/index.d.ts +8 -0
  141. package/lib/_models/interfaces/location/index.d.ts.map +1 -0
  142. package/lib/_models/interfaces/location/index.js +12 -0
  143. package/lib/_models/interfaces/location/index.js.map +1 -0
  144. package/lib/_models/interfaces/location/location-coordinates.interface.d.ts +5 -0
  145. package/lib/_models/interfaces/location/location-coordinates.interface.d.ts.map +1 -0
  146. package/lib/_models/interfaces/location/location-coordinates.interface.js +3 -0
  147. package/lib/_models/interfaces/location/location-coordinates.interface.js.map +1 -0
  148. package/lib/_models/interfaces/random-weight.interface.d.ts +5 -0
  149. package/lib/_models/interfaces/random-weight.interface.d.ts.map +1 -0
  150. package/lib/_models/interfaces/random-weight.interface.js +3 -0
  151. package/lib/_models/interfaces/random-weight.interface.js.map +1 -0
  152. package/lib/_models/interfaces/route-settings.interface.d.ts +9 -0
  153. package/lib/_models/interfaces/route-settings.interface.d.ts.map +1 -0
  154. package/lib/_models/interfaces/route-settings.interface.js +3 -0
  155. package/lib/_models/interfaces/route-settings.interface.js.map +1 -0
  156. package/lib/_modules/collections.index.d.ts +2 -0
  157. package/lib/_modules/collections.index.d.ts.map +1 -0
  158. package/lib/_modules/collections.index.js +5 -0
  159. package/lib/_modules/collections.index.js.map +1 -0
  160. package/lib/_modules/constants.index.d.ts +2 -0
  161. package/lib/_modules/constants.index.d.ts.map +1 -0
  162. package/lib/_modules/constants.index.js +5 -0
  163. package/lib/_modules/constants.index.js.map +1 -0
  164. package/lib/_modules/custom-data-module.index.d.ts +3 -0
  165. package/lib/_modules/custom-data-module.index.d.ts.map +1 -0
  166. package/lib/_modules/custom-data-module.index.js +7 -0
  167. package/lib/_modules/custom-data-module.index.js.map +1 -0
  168. package/lib/_modules/data-modules.index.d.ts +6 -0
  169. package/lib/_modules/data-modules.index.d.ts.map +1 -0
  170. package/lib/_modules/data-modules.index.js +10 -0
  171. package/lib/_modules/data-modules.index.js.map +1 -0
  172. package/lib/_modules/enums.index.d.ts +2 -0
  173. package/lib/_modules/enums.index.d.ts.map +1 -0
  174. package/lib/_modules/enums.index.js +5 -0
  175. package/lib/_modules/enums.index.js.map +1 -0
  176. package/lib/_modules/error-module.index.d.ts +2 -0
  177. package/lib/_modules/error-module.index.d.ts.map +1 -0
  178. package/lib/_modules/error-module.index.js +6 -0
  179. package/lib/_modules/error-module.index.js.map +1 -0
  180. package/lib/_modules/models.index.d.ts +2 -0
  181. package/lib/_modules/models.index.d.ts.map +1 -0
  182. package/lib/_modules/models.index.js +5 -0
  183. package/lib/_modules/models.index.js.map +1 -0
  184. package/lib/_modules/shared-service.index.d.ts +8 -0
  185. package/lib/_modules/shared-service.index.d.ts.map +1 -0
  186. package/lib/_modules/shared-service.index.js +12 -0
  187. package/lib/_modules/shared-service.index.js.map +1 -0
  188. package/lib/_modules/test-module.index.d.ts +2 -0
  189. package/lib/_modules/test-module.index.d.ts.map +1 -0
  190. package/lib/_modules/test-module.index.js +6 -0
  191. package/lib/_modules/test-module.index.js.map +1 -0
  192. package/lib/_modules/usage-module.index.d.ts +6 -0
  193. package/lib/_modules/usage-module.index.d.ts.map +1 -0
  194. package/lib/_modules/usage-module.index.js +10 -0
  195. package/lib/_modules/usage-module.index.js.map +1 -0
  196. package/lib/_utils/array.util.d.ts +6 -0
  197. package/lib/_utils/array.util.d.ts.map +1 -0
  198. package/lib/_utils/array.util.js +24 -0
  199. package/lib/_utils/array.util.js.map +1 -0
  200. package/lib/_utils/array.util.spec.d.ts +2 -0
  201. package/lib/_utils/array.util.spec.d.ts.map +1 -0
  202. package/lib/_utils/array.util.spec.js +31 -0
  203. package/lib/_utils/array.util.spec.js.map +1 -0
  204. package/lib/_utils/index.d.ts +12 -0
  205. package/lib/_utils/index.d.ts.map +1 -0
  206. package/lib/_utils/index.js +16 -0
  207. package/lib/_utils/index.js.map +1 -0
  208. package/lib/_utils/location.util.d.ts +7 -0
  209. package/lib/_utils/location.util.d.ts.map +1 -0
  210. package/lib/_utils/location.util.js +40 -0
  211. package/lib/_utils/location.util.js.map +1 -0
  212. package/lib/_utils/log.util.d.ts +34 -0
  213. package/lib/_utils/log.util.d.ts.map +1 -0
  214. package/lib/_utils/log.util.js +105 -0
  215. package/lib/_utils/log.util.js.map +1 -0
  216. package/lib/_utils/random.util.d.ts +9 -0
  217. package/lib/_utils/random.util.d.ts.map +1 -0
  218. package/lib/_utils/random.util.js +60 -0
  219. package/lib/_utils/random.util.js.map +1 -0
  220. package/lib/_utils/regions.util.d.ts +17 -0
  221. package/lib/_utils/regions.util.d.ts.map +1 -0
  222. package/lib/_utils/regions.util.js +68 -0
  223. package/lib/_utils/regions.util.js.map +1 -0
  224. package/lib/_utils/round-list.util.d.ts +9 -0
  225. package/lib/_utils/round-list.util.d.ts.map +1 -0
  226. package/lib/_utils/round-list.util.js +39 -0
  227. package/lib/_utils/round-list.util.js.map +1 -0
  228. package/lib/_utils/shared.static-service.d.ts +74 -0
  229. package/lib/_utils/shared.static-service.d.ts.map +1 -0
  230. package/lib/_utils/shared.static-service.js +151 -0
  231. package/lib/_utils/shared.static-service.js.map +1 -0
  232. package/lib/_utils/time.util.d.ts +14 -0
  233. package/lib/_utils/time.util.d.ts.map +1 -0
  234. package/lib/_utils/time.util.js +41 -0
  235. package/lib/_utils/time.util.js.map +1 -0
  236. package/lib/_utils/trigonometry.util.d.ts +46 -0
  237. package/lib/_utils/trigonometry.util.d.ts.map +1 -0
  238. package/lib/_utils/trigonometry.util.js +62 -0
  239. package/lib/_utils/trigonometry.util.js.map +1 -0
  240. package/lib/_utils/utilities.util.d.ts +33 -0
  241. package/lib/_utils/utilities.util.d.ts.map +1 -0
  242. package/lib/_utils/utilities.util.js +91 -0
  243. package/lib/_utils/utilities.util.js.map +1 -0
  244. package/lib/_utils/vector.util.d.ts +38 -0
  245. package/lib/_utils/vector.util.d.ts.map +1 -0
  246. package/lib/_utils/vector.util.js +107 -0
  247. package/lib/_utils/vector.util.js.map +1 -0
  248. package/lib/index.d.ts +5 -0
  249. package/lib/index.d.ts.map +1 -0
  250. package/lib/index.js +12 -0
  251. package/lib/index.js.map +1 -0
  252. package/lib/tsconfig.tsbuildinfo +3420 -0
  253. package/package.json +16 -17
  254. package/spec/support/jasmine.json +16 -0
  255. package/src/_constants/index.ts +5 -5
  256. package/src/_constants/module-settings/{custom-data-module-settings.ts → custom-data-module-settings.const.ts} +1 -1
  257. package/src/_constants/module-settings/index.ts +8 -0
  258. package/src/_constants/module-settings/{test-module-settings.ts → test-module-settings.const.ts} +1 -1
  259. package/src/_constants/module-settings/{usage-module-settings.ts → usage-module-settings.const.ts} +1 -1
  260. package/src/_enums/index.ts +5 -1
  261. package/src/{_models/control-models/division-region-data.ts → _enums/subdivision-region-type.enum.ts} +0 -5
  262. package/src/_models/control-models/daily-usage-data.control-model.ts +21 -0
  263. package/src/_models/control-models/data-params.control-model.ts +27 -0
  264. package/src/_models/control-models/data-property-params.control-model.ts +84 -0
  265. package/src/_models/control-models/{dynamo-error.ts → error.control-model.ts} +2 -1
  266. package/src/_models/control-models/index.ts +11 -0
  267. package/src/_models/control-models/{dynamo-poll.ts → poll.control-model.ts} +2 -1
  268. package/src/_models/control-models/{dynamo-range-value.ts → range-value.control-model.ts} +2 -1
  269. package/src/_models/control-models/usage-action.control-model.ts +15 -0
  270. package/src/_models/control-models/usage-data.control-model.ts +20 -0
  271. package/src/_models/data-models/custom-data.data-model.ts +27 -0
  272. package/src/_models/data-models/index.ts +5 -0
  273. package/src/_models/data-models/metadata.data-model.ts +25 -0
  274. package/src/_models/data-models/usage-session.data-model.ts +52 -0
  275. package/src/_models/index.ts +9 -21
  276. package/src/_models/interfaces/index.ts +7 -0
  277. package/src/_models/{control-models/country-iso.ts → interfaces/location/country-iso.interface.ts} +5 -3
  278. package/src/_models/interfaces/location/division-region-data.interface.ts +8 -0
  279. package/src/_models/interfaces/location/index.ts +10 -0
  280. package/src/_models/{control-models/dynamo-route-settings.ts → interfaces/route-settings.interface.ts} +2 -0
  281. package/src/_modules/collections.index.ts +2 -0
  282. package/src/_modules/constants.index.ts +2 -0
  283. package/src/_modules/custom-data-module.index.ts +2 -2
  284. package/src/_modules/data-modules.index.ts +4 -4
  285. package/src/_modules/enums.index.ts +2 -0
  286. package/src/_modules/error-module.index.ts +1 -1
  287. package/src/_modules/models.index.ts +2 -0
  288. package/src/_modules/shared-service.index.ts +6 -6
  289. package/src/_modules/test-module.index.ts +1 -1
  290. package/src/_modules/usage-module.index.ts +5 -5
  291. package/src/_utils/array.util.spec.ts +38 -0
  292. package/src/_utils/array.util.ts +19 -0
  293. package/src/_utils/index.ts +15 -0
  294. package/src/{_collections/_tools/dynamo-location.ts → _utils/location.util.ts} +4 -3
  295. package/src/{_collections/_tools/dynamo-log.ts → _utils/log.util.ts} +21 -2
  296. package/src/{_collections/_tools/dynamo-random.ts → _utils/random.util.ts} +2 -1
  297. package/src/{_collections/_tools/dynamo-regions.ts → _utils/regions.util.ts} +15 -10
  298. package/src/{_collections/_tools/dynamo-round-list.ts → _utils/round-list.util.ts} +1 -0
  299. package/src/{_collections/_tools/dynamo-shared.service.ts → _utils/shared.static-service.ts} +2 -1
  300. package/src/{_collections/_tools/dynamo-time.ts → _utils/time.util.ts} +3 -1
  301. package/src/{_collections/_tools/dynamo-trigonometry.ts → _utils/trigonometry.util.ts} +4 -1
  302. package/src/{_collections/_tools/utilities.ts → _utils/utilities.util.ts} +19 -1
  303. package/src/{_collections/_tools/vector.ts → _utils/vector.util.ts} +1 -1
  304. package/src/index.ts +1 -1
  305. package/src/_collections/index.ts +0 -14
  306. package/src/_models/control-models/dynamo-daily-usage-data.ts +0 -35
  307. package/src/_models/control-models/dynamo-data-params.ts +0 -32
  308. package/src/_models/control-models/dynamo-data-property-params.ts +0 -106
  309. package/src/_models/control-models/dynamo-usage-action.ts +0 -19
  310. package/src/_models/control-models/dynamo-usage-data.ts +0 -27
  311. package/src/_models/data-models/dynamo-custom-data.ts +0 -42
  312. package/src/_models/data-models/dynamo-metadata.ts +0 -37
  313. package/src/_models/data-models/dynamo-usage-session.ts +0 -77
  314. /package/src/{_collections/_constants → _constants/location}/country-codes-ISO-3166.json +0 -0
  315. /package/src/{_collections/_constants → _constants/location}/country-divisions-ISO-3166-all-list.json +0 -0
  316. /package/src/{_collections/_constants → _constants/location}/country-divisions-ISO-3166.json +0 -0
  317. /package/src/{_collections/_constants → _constants/location}/country-phone-codes.json +0 -0
  318. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/afghanistan.json +0 -0
  319. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/albania.json +0 -0
  320. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/algeria.json +0 -0
  321. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/andorra.json +0 -0
  322. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/angola.json +0 -0
  323. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/antigua-and-barbuda.json +0 -0
  324. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/argentina.json +0 -0
  325. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/armenia.json +0 -0
  326. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/australia.json +0 -0
  327. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/austria.json +0 -0
  328. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/azerbaijan.json +0 -0
  329. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bahamas.json +0 -0
  330. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bahrain.json +0 -0
  331. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bangladesh.json +0 -0
  332. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/barbados.json +0 -0
  333. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/belarus.json +0 -0
  334. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/belgium.json +0 -0
  335. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/belize.json +0 -0
  336. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/benin.json +0 -0
  337. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bhutan.json +0 -0
  338. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bolivia.json +0 -0
  339. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bosnia-and-herzegovina.json +0 -0
  340. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/botswana.json +0 -0
  341. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/brazil.json +0 -0
  342. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/brunei-darussalam.json +0 -0
  343. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/bulgaria.json +0 -0
  344. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/burkina-faso.json +0 -0
  345. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/burundi.json +0 -0
  346. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/cambodia.json +0 -0
  347. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/cameroon.json +0 -0
  348. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/canada.json +0 -0
  349. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/cape-verde.json +0 -0
  350. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/central-african-republic.json +0 -0
  351. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/chad.json +0 -0
  352. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/chile.json +0 -0
  353. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/china.json +0 -0
  354. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/colombia.json +0 -0
  355. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/comoros.json +0 -0
  356. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/congo-the-democratic-republic-of-the.json +0 -0
  357. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/congo.json +0 -0
  358. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/costa-rica.json +0 -0
  359. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/cote-d-ivoire-republic-of.json +0 -0
  360. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/croatia.json +0 -0
  361. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/cuba.json +0 -0
  362. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/cyprus.json +0 -0
  363. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/czech-republic.json +0 -0
  364. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/denmark.json +0 -0
  365. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/djibouti.json +0 -0
  366. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/dominica.json +0 -0
  367. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/dominican-republic.json +0 -0
  368. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/ecuador.json +0 -0
  369. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/egypt.json +0 -0
  370. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/el-salvador.json +0 -0
  371. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/equatorial-guinea.json +0 -0
  372. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/eritrea.json +0 -0
  373. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/estonia.json +0 -0
  374. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/ethiopia.json +0 -0
  375. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/fiji.json +0 -0
  376. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/finland.json +0 -0
  377. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/france.json +0 -0
  378. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/gabon.json +0 -0
  379. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/gambia.json +0 -0
  380. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/georgia.json +0 -0
  381. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/germany.json +0 -0
  382. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/ghana.json +0 -0
  383. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/greece.json +0 -0
  384. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/greenland.json +0 -0
  385. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/grenada.json +0 -0
  386. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/guatemala.json +0 -0
  387. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/guinea-bissau.json +0 -0
  388. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/guinea.json +0 -0
  389. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/guyana.json +0 -0
  390. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/haiti.json +0 -0
  391. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/honduras.json +0 -0
  392. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/hong-kong.json +0 -0
  393. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/hungary.json +0 -0
  394. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/iceland.json +0 -0
  395. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/india.json +0 -0
  396. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/indonesia.json +0 -0
  397. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/iran-islamic-republic-of.json +0 -0
  398. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/iraq.json +0 -0
  399. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/ireland.json +0 -0
  400. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/israel.json +0 -0
  401. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/italy.json +0 -0
  402. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/jamaica.json +0 -0
  403. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/japan.json +0 -0
  404. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/jordan.json +0 -0
  405. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/kazakhstan.json +0 -0
  406. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/kenya.json +0 -0
  407. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/kiribati.json +0 -0
  408. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/korea-democratic-people-s-republic-of.json +0 -0
  409. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/korea-republic-of.json +0 -0
  410. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/kuwait.json +0 -0
  411. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/kyrgyzstan.json +0 -0
  412. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/lao-people-s-democratic-republic.json +0 -0
  413. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/latvia.json +0 -0
  414. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/lebanon.json +0 -0
  415. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/lesotho.json +0 -0
  416. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/liberia.json +0 -0
  417. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/libyan-arab-jamahiriya.json +0 -0
  418. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/liechtenstein.json +0 -0
  419. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/lithuania.json +0 -0
  420. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/luxembourg.json +0 -0
  421. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/macedonia-the-former-yugoslav-republic-of.json +0 -0
  422. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/madagascar.json +0 -0
  423. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/malawi.json +0 -0
  424. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/malaysia.json +0 -0
  425. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/maldives.json +0 -0
  426. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/mali.json +0 -0
  427. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/malta.json +0 -0
  428. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/marshall-islands.json +0 -0
  429. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/mauritania.json +0 -0
  430. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/mauritius.json +0 -0
  431. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/mexico.json +0 -0
  432. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/micronesia-federated-states-of.json +0 -0
  433. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/moldova-republic-of.json +0 -0
  434. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/monaco.json +0 -0
  435. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/mongolia.json +0 -0
  436. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/montenegro.json +0 -0
  437. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/morocco.json +0 -0
  438. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/mozambique.json +0 -0
  439. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/myanmar.json +0 -0
  440. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/namibia.json +0 -0
  441. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/nauru.json +0 -0
  442. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/nepal.json +0 -0
  443. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/netherlands.json +0 -0
  444. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/new-zealand.json +0 -0
  445. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/nicaragua.json +0 -0
  446. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/niger.json +0 -0
  447. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/nigeria.json +0 -0
  448. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/norway.json +0 -0
  449. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/oman.json +0 -0
  450. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/pakistan.json +0 -0
  451. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/palau.json +0 -0
  452. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/palestinian-territory-occupied.json +0 -0
  453. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/panama.json +0 -0
  454. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/papua-new-guinea.json +0 -0
  455. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/paraguay.json +0 -0
  456. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/peru.json +0 -0
  457. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/philippines.json +0 -0
  458. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/poland.json +0 -0
  459. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/portugal.json +0 -0
  460. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/qatar.json +0 -0
  461. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/romania.json +0 -0
  462. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/russian-federation.json +0 -0
  463. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/rwanda.json +0 -0
  464. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/saint-helena-ascension-and-tristan-da-cunha.json +0 -0
  465. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/saint-kitts-and-nevis.json +0 -0
  466. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/saint-lucia.json +0 -0
  467. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/saint-vincent-and-the-grenadines.json +0 -0
  468. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/samoa.json +0 -0
  469. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/san-marino.json +0 -0
  470. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/sao-tome-and-principe.json +0 -0
  471. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/saudi-arabia.json +0 -0
  472. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/senegal.json +0 -0
  473. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/serbia.json +0 -0
  474. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/seychelles.json +0 -0
  475. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/sierra-leone.json +0 -0
  476. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/singapore.json +0 -0
  477. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/slovakia.json +0 -0
  478. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/slovenia.json +0 -0
  479. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/solomon-islands.json +0 -0
  480. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/somalia.json +0 -0
  481. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/south-africa.json +0 -0
  482. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/south-sudan.json +0 -0
  483. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/spain.json +0 -0
  484. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/sri-lanka.json +0 -0
  485. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/sudan.json +0 -0
  486. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/suriname.json +0 -0
  487. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/swaziland.json +0 -0
  488. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/sweden.json +0 -0
  489. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/switzerland.json +0 -0
  490. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/syrian-arab-republic.json +0 -0
  491. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/taiwan-province-of-china.json +0 -0
  492. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/tajikistan.json +0 -0
  493. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/tanzania-united-republic-of.json +0 -0
  494. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/thailand.json +0 -0
  495. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/timor-leste.json +0 -0
  496. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/togo.json +0 -0
  497. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/tonga.json +0 -0
  498. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/trinidad-and-tobago.json +0 -0
  499. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/tunisia.json +0 -0
  500. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/turkey.json +0 -0
  501. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/turkmenistan.json +0 -0
  502. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/tuvalu.json +0 -0
  503. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/uganda.json +0 -0
  504. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/ukraine.json +0 -0
  505. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/united-arab-emirates.json +0 -0
  506. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/united-kingdom.json +0 -0
  507. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/united-states-minor-outlying-islands.json +0 -0
  508. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/united-states.json +0 -0
  509. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/uruguay.json +0 -0
  510. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/uzbekistan.json +0 -0
  511. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/vanuatu.json +0 -0
  512. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/venezuela.json +0 -0
  513. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/viet-nam.json +0 -0
  514. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/yemen.json +0 -0
  515. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/zambia.json +0 -0
  516. /package/src/{_collections/_constants → _constants/location}/country-subdivisions/zimbabwe.json +0 -0
  517. /package/src/_constants/{times.ts → times.const.ts} +0 -0
  518. /package/src/_models/{control-models/country-division.ts → interfaces/location/country-division.interface.ts} +0 -0
  519. /package/src/_models/{control-models/country-phone-code.ts → interfaces/location/country-phone-code.interface.ts} +0 -0
  520. /package/src/_models/{control-models/division-collection.ts → interfaces/location/division-collection.interface.ts} +0 -0
  521. /package/src/_models/{control-models/geo-ip-location.ts → interfaces/location/geo-ip-location.interface.ts} +0 -0
  522. /package/src/_models/{control-models/location-coordinates.ts → interfaces/location/location-coordinates.interface.ts} +0 -0
  523. /package/src/_models/{control-models/random-weight.ts → interfaces/random-weight.interface.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-modules.index.d.ts","sourceRoot":"","sources":["../../src/_modules/data-modules.index.ts"],"names":[],"mappings":"AAEA,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qDAAqD,CAAC;AACpE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // DATA MODULE
5
+ tslib_1.__exportStar(require("../_models/data-models/metadata.data-model"), exports);
6
+ tslib_1.__exportStar(require("../_models/control-models/data-params.control-model"), exports);
7
+ tslib_1.__exportStar(require("../_models/control-models/data-property-params.control-model"), exports);
8
+ tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
9
+ tslib_1.__exportStar(require("../_enums/data-model-type.enum"), exports);
10
+ //# sourceMappingURL=data-modules.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-modules.index.js","sourceRoot":"","sources":["../../src/_modules/data-modules.index.ts"],"names":[],"mappings":";;;AACA,cAAc;AACd,qFAA2D;AAC3D,8FAAoE;AACpE,uGAA6E;AAC7E,wFAA8D;AAC9D,yEAA+C"}
@@ -0,0 +1,2 @@
1
+ export * from '../_enums';
2
+ //# sourceMappingURL=enums.index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.index.d.ts","sourceRoot":"","sources":["../../src/_modules/enums.index.ts"],"names":[],"mappings":"AACA,cAAc,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("../_enums"), exports);
5
+ //# sourceMappingURL=enums.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.index.js","sourceRoot":"","sources":["../../src/_modules/enums.index.ts"],"names":[],"mappings":";;;AACA,oDAA0B"}
@@ -0,0 +1,2 @@
1
+ export * from '../_models/control-models/error.control-model';
2
+ //# sourceMappingURL=error-module.index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-module.index.d.ts","sourceRoot":"","sources":["../../src/_modules/error-module.index.ts"],"names":[],"mappings":"AAEA,cAAc,+CAA+C,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // ERROR MODULE
5
+ tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
6
+ //# sourceMappingURL=error-module.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-module.index.js","sourceRoot":"","sources":["../../src/_modules/error-module.index.ts"],"names":[],"mappings":";;;AACA,eAAe;AACf,wFAA8D"}
@@ -0,0 +1,2 @@
1
+ export * from '../_models';
2
+ //# sourceMappingURL=models.index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.index.d.ts","sourceRoot":"","sources":["../../src/_modules/models.index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("../_models"), exports);
5
+ //# sourceMappingURL=models.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.index.js","sourceRoot":"","sources":["../../src/_modules/models.index.ts"],"names":[],"mappings":";;;AACA,qDAA2B"}
@@ -0,0 +1,8 @@
1
+ export * from '../_utils/shared.static-service';
2
+ export * from '../_constants/times.const';
3
+ export * from '../_enums/log-style.enum';
4
+ export * from '../_models/control-models/error.control-model';
5
+ export * from '../_models/control-models/poll.control-model';
6
+ export * from '../_models/interfaces/location/location-coordinates.interface';
7
+ export * from '../_models/interfaces/location/geo-ip-location.interface';
8
+ //# sourceMappingURL=shared-service.index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-service.index.d.ts","sourceRoot":"","sources":["../../src/_modules/shared-service.index.ts"],"names":[],"mappings":"AAEA,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,+DAA+D,CAAC;AAC9E,cAAc,0DAA0D,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // SHARED SERVICE MODULE
5
+ tslib_1.__exportStar(require("../_utils/shared.static-service"), exports);
6
+ tslib_1.__exportStar(require("../_constants/times.const"), exports);
7
+ tslib_1.__exportStar(require("../_enums/log-style.enum"), exports);
8
+ tslib_1.__exportStar(require("../_models/control-models/error.control-model"), exports);
9
+ tslib_1.__exportStar(require("../_models/control-models/poll.control-model"), exports);
10
+ tslib_1.__exportStar(require("../_models/interfaces/location/location-coordinates.interface"), exports);
11
+ tslib_1.__exportStar(require("../_models/interfaces/location/geo-ip-location.interface"), exports);
12
+ //# sourceMappingURL=shared-service.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-service.index.js","sourceRoot":"","sources":["../../src/_modules/shared-service.index.ts"],"names":[],"mappings":";;;AACA,wBAAwB;AACxB,0EAAgD;AAChD,oEAA0C;AAC1C,mEAAyC;AACzC,wFAA8D;AAC9D,uFAA6D;AAC7D,wGAA8E;AAC9E,mGAAyE"}
@@ -0,0 +1,2 @@
1
+ export * from '../_constants/module-settings/test-module-settings.const';
2
+ //# sourceMappingURL=test-module.index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-module.index.d.ts","sourceRoot":"","sources":["../../src/_modules/test-module.index.ts"],"names":[],"mappings":"AAEA,cAAc,0DAA0D,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // TEST MODULE
5
+ tslib_1.__exportStar(require("../_constants/module-settings/test-module-settings.const"), exports);
6
+ //# sourceMappingURL=test-module.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-module.index.js","sourceRoot":"","sources":["../../src/_modules/test-module.index.ts"],"names":[],"mappings":";;;AACA,cAAc;AACd,mGAAyE"}
@@ -0,0 +1,6 @@
1
+ export * from '../_models/data-models/usage-session.data-model';
2
+ export * from '../_constants/module-settings/usage-module-settings.const';
3
+ export * from '../_models/control-models/usage-data.control-model';
4
+ export * from '../_models/control-models/daily-usage-data.control-model';
5
+ export * from '../_models/control-models/usage-action.control-model';
6
+ //# sourceMappingURL=usage-module.index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-module.index.d.ts","sourceRoot":"","sources":["../../src/_modules/usage-module.index.ts"],"names":[],"mappings":"AAEA,cAAc,iDAAiD,CAAC;AAChE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oDAAoD,CAAC;AACnE,cAAc,0DAA0D,CAAC;AACzE,cAAc,sDAAsD,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // USAGE MODULE
5
+ tslib_1.__exportStar(require("../_models/data-models/usage-session.data-model"), exports);
6
+ tslib_1.__exportStar(require("../_constants/module-settings/usage-module-settings.const"), exports);
7
+ tslib_1.__exportStar(require("../_models/control-models/usage-data.control-model"), exports);
8
+ tslib_1.__exportStar(require("../_models/control-models/daily-usage-data.control-model"), exports);
9
+ tslib_1.__exportStar(require("../_models/control-models/usage-action.control-model"), exports);
10
+ //# sourceMappingURL=usage-module.index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-module.index.js","sourceRoot":"","sources":["../../src/_modules/usage-module.index.ts"],"names":[],"mappings":";;;AACA,eAAe;AACf,0FAAgE;AAChE,oGAA0E;AAC1E,6FAAmE;AACnE,mGAAyE;AACzE,+FAAqE"}
@@ -0,0 +1,6 @@
1
+ export declare type D_Array = Dynamo_Array;
2
+ export declare class Dynamo_Array {
3
+ static asyncForEach<T>(list: T[], func: (element: T, index: number) => Promise<void>): Promise<void>;
4
+ static asyncMapArray<T, R>(list: T[], mapFunc: (element: T, index: number) => Promise<R>): Promise<R[]>;
5
+ }
6
+ //# sourceMappingURL=array.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.util.d.ts","sourceRoot":"","sources":["../../src/_utils/array.util.ts"],"names":[],"mappings":"AAEA,oBAAY,OAAO,GAAG,YAAY,CAAC;AACnC,qBAAa,YAAY;WAEV,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;WAM7F,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;CAO9G"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Dynamo_Array = void 0;
4
+ const tslib_1 = require("tslib");
5
+ class Dynamo_Array {
6
+ static asyncForEach(list, func) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ for (let i = 0; i < list.length; i++) {
9
+ yield func(list[i], i);
10
+ }
11
+ });
12
+ }
13
+ static asyncMapArray(list, mapFunc) {
14
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
15
+ const resultList = [];
16
+ for (let i = 0; i < list.length; i++) {
17
+ resultList.push(yield mapFunc(list[i], i));
18
+ }
19
+ return resultList;
20
+ });
21
+ }
22
+ }
23
+ exports.Dynamo_Array = Dynamo_Array;
24
+ //# sourceMappingURL=array.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.util.js","sourceRoot":"","sources":["../../src/_utils/array.util.ts"],"names":[],"mappings":";;;;AAGA,MAAa,YAAY;IAEvB,MAAM,CAAO,YAAY,CAAI,IAAS,EAAE,IAAkD;;YACxF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACxB;QACH,CAAC;KAAA;IAED,MAAM,CAAO,aAAa,CAAO,IAAS,EAAE,OAAkD;;YAC5F,MAAM,UAAU,GAAQ,EAAE,CAAC;YAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,UAAU,CAAC,IAAI,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;aAC5C;YACD,OAAO,UAAU,CAAC;QACpB,CAAC;KAAA;CACF;AAfD,oCAeC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=array.util.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array.util.spec.d.ts","sourceRoot":"","sources":["../../src/_utils/array.util.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const array_util_1 = require("./array.util");
5
+ const utilities_util_1 = require("./utilities.util");
6
+ describe('Dynamo_Array', () => {
7
+ describe('asyncForEach', () => {
8
+ it('should call the function for each element in the list', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
9
+ const list = [1, 2, 3];
10
+ const result = [];
11
+ const func = (e, i) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
12
+ yield utilities_util_1.delay(30);
13
+ result.push(e);
14
+ });
15
+ yield array_util_1.Dynamo_Array.asyncForEach(list, func);
16
+ expect(result).toEqual(list);
17
+ }));
18
+ });
19
+ describe('asyncMapArray', () => {
20
+ it('should call the function for each element in the list', () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
21
+ const list = [1, 2, 3];
22
+ const func = (e, i) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
23
+ yield utilities_util_1.delay(30);
24
+ return e * 2;
25
+ });
26
+ const result = yield array_util_1.Dynamo_Array.asyncMapArray(list, func);
27
+ expect(result).toEqual([2, 4, 6]);
28
+ }));
29
+ });
30
+ });
31
+ //# sourceMappingURL=array.util.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"array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C,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ export * from './array.util';
2
+ export * from './location.util';
3
+ export * from './log.util';
4
+ export * from './random.util';
5
+ export * from './regions.util';
6
+ export * from './round-list.util';
7
+ export * from './shared.static-service';
8
+ export * from './time.util';
9
+ export * from './trigonometry.util';
10
+ export * from './utilities.util';
11
+ export * from './vector.util';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_utils/index.ts"],"names":[],"mappings":"AAEA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // TOOLS
5
+ tslib_1.__exportStar(require("./array.util"), exports);
6
+ tslib_1.__exportStar(require("./location.util"), exports);
7
+ tslib_1.__exportStar(require("./log.util"), exports);
8
+ tslib_1.__exportStar(require("./random.util"), exports);
9
+ tslib_1.__exportStar(require("./regions.util"), exports);
10
+ tslib_1.__exportStar(require("./round-list.util"), exports);
11
+ tslib_1.__exportStar(require("./shared.static-service"), exports);
12
+ tslib_1.__exportStar(require("./time.util"), exports);
13
+ tslib_1.__exportStar(require("./trigonometry.util"), exports);
14
+ tslib_1.__exportStar(require("./utilities.util"), exports);
15
+ tslib_1.__exportStar(require("./vector.util"), exports);
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_utils/index.ts"],"names":[],"mappings":";;;AACA,QAAQ;AACR,uDAA6B;AAC7B,0DAAgC;AAChC,qDAA2B;AAC3B,wDAA8B;AAC9B,yDAA+B;AAC/B,4DAAkC;AAClC,kEAAwC;AACxC,sDAA4B;AAC5B,8DAAoC;AACpC,2DAAiC;AACjC,wDAA8B"}
@@ -0,0 +1,7 @@
1
+ import { LocationCoordinates } from '../_models/interfaces/location/location-coordinates.interface';
2
+ export declare type D_Location = Dynamo_Location;
3
+ export declare class Dynamo_Location {
4
+ static getDistanceInKilometres(from: LocationCoordinates, to: LocationCoordinates): number;
5
+ static getLocationDegByKilometers(latiOrLong: 'latitude' | 'longitude', distanceInKm: number, latitude?: number): number;
6
+ }
7
+ //# sourceMappingURL=location.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.util.d.ts","sourceRoot":"","sources":["../../src/_utils/location.util.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+DAA+D,CAAC;AAEpG,oBAAY,UAAU,GAAG,eAAe,CAAC;AACzC,qBAAa,eAAe;IAE1B,MAAM,CAAC,uBAAuB,CAC5B,IAAI,EAAE,mBAAmB,EACzB,EAAE,EAAE,mBAAmB,GACtB,MAAM;IAgBT,MAAM,CAAC,0BAA0B,CAAC,UAAU,EAAE,UAAU,GAAG,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM;CAiBzH"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Dynamo_Location = void 0;
4
+ const error_control_model_1 = require("../_models/control-models/error.control-model");
5
+ const trigonometry_util_1 = require("./trigonometry.util");
6
+ class Dynamo_Location {
7
+ static getDistanceInKilometres(from, to) {
8
+ const R = 6371; // kilometres
9
+ const φ1 = trigonometry_util_1.Dynamo_Trigonometry.angleToRadians(from.latitude);
10
+ const φ2 = trigonometry_util_1.Dynamo_Trigonometry.angleToRadians(to.latitude);
11
+ const Δφ = trigonometry_util_1.Dynamo_Trigonometry.angleToRadians(to.latitude - from.latitude);
12
+ const Δλ = trigonometry_util_1.Dynamo_Trigonometry.angleToRadians(to.longitude - from.longitude);
13
+ const a = Math.sin(Δφ / 2) * Math.sin(Δφ / 2) +
14
+ Math.cos(φ1) * Math.cos(φ2) *
15
+ Math.sin(Δλ / 2) * Math.sin(Δλ / 2);
16
+ const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
17
+ return R * c;
18
+ }
19
+ static getLocationDegByKilometers(latiOrLong, distanceInKm, latitude) {
20
+ if (latiOrLong === 'latitude') {
21
+ return distanceInKm / 110.574;
22
+ }
23
+ else {
24
+ if (latitude) {
25
+ return distanceInKm / (Math.cos(trigonometry_util_1.Dynamo_Trigonometry.angleToRadians(latitude)) * 111.320);
26
+ }
27
+ else {
28
+ throw new error_control_model_1.Dynamo_Error({
29
+ status: 417,
30
+ errorCode: 'FSM-DSS-505',
31
+ addECToUserMsg: true,
32
+ message: `When using getLocationDegByKilometers for longitude, you need to give latitude! (latiOrLong: ${latiOrLong}, distanceInKm: ${distanceInKm}, latitude: ${latitude})`,
33
+ userMessage: `We encountered an uncought BackEnd Error, please contact the responsible development team.`
34
+ });
35
+ }
36
+ }
37
+ }
38
+ }
39
+ exports.Dynamo_Location = Dynamo_Location;
40
+ //# sourceMappingURL=location.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.util.js","sourceRoot":"","sources":["../../src/_utils/location.util.ts"],"names":[],"mappings":";;;AACA,uFAA6E;AAC7E,2DAA0D;AAI1D,MAAa,eAAe;IAE1B,MAAM,CAAC,uBAAuB,CAC5B,IAAyB,EACzB,EAAuB;QAGvB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,aAAa;QAC7B,MAAM,EAAE,GAAG,uCAAmB,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7D,M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,cAAc,EAAE,IAAI;oBACpB,OAAO,EAAE,gGAAgG,UAAU,mBAAmB,YAAY,eAAe,QAAQ,GAAG;oBAC5K,WAAW,EAAE,4FAA4F;iBAC1G,CAAC,CAAC;aACJ;SACF;IACH,CAAC;CACF;AAtCD,0CAsCC"}
@@ -0,0 +1,34 @@
1
+ import { LogStyle } from '../_enums/log-style.enum';
2
+ export declare type Dynamo_L = Dynamo_Log;
3
+ export declare type D_Log = Dynamo_Log;
4
+ export declare type D_L = Dynamo_Log;
5
+ export declare class Dynamo_Log {
6
+ static setStyle(styles: LogStyle[]): void;
7
+ static resetStyle(): void;
8
+ static addStyle(input: string, styles: LogStyle[], dontReset?: boolean): string;
9
+ static success(message: string, ...optionalParams: any[]): void;
10
+ /**
11
+ * @deprecated use Dynamo_Log.success instead
12
+ */
13
+ static logSuccess(message: string, ...optionalParams: any[]): void;
14
+ static error(message: string, ...optionalParams: any[]): void;
15
+ /**
16
+ * @deprecated use Dynamo_Log.error instead
17
+ */
18
+ static logError(message: string, ...optionalParams: any[]): void;
19
+ static warn(message: string, ...optionalParams: any[]): void;
20
+ /**
21
+ * @deprecated use Dynamo_Log.warn instead
22
+ */
23
+ static warning(message: string, ...optionalParams: any[]): void;
24
+ /**
25
+ * @deprecated use Dynamo_Log.warn instead
26
+ */
27
+ static logWarning(message: string, ...optionalParams: any[]): void;
28
+ static highlighted(message: string, ...optionalParams: any[]): void;
29
+ static removeLogStyles(message: string): string;
30
+ static silenceLogs(): void;
31
+ static silenceNonErrorLogs(): void;
32
+ static silenceConsole(): void;
33
+ }
34
+ //# sourceMappingURL=log.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.util.d.ts","sourceRoot":"","sources":["../../src/_utils/log.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,oBAAY,QAAQ,GAAG,UAAU,CAAC;AAClC,oBAAY,KAAK,GAAG,UAAU,CAAC;AAC/B,o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AAI;CAM9B"}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Dynamo_Log = void 0;
4
+ const log_style_enum_1 = require("../_enums/log-style.enum");
5
+ class Dynamo_Log {
6
+ static setStyle(styles) {
7
+ let styleSets = '';
8
+ styles.forEach((style) => {
9
+ styleSets += style;
10
+ });
11
+ console.log(styleSets);
12
+ }
13
+ static resetStyle() {
14
+ console.log(log_style_enum_1.LogStyle.reset);
15
+ }
16
+ static addStyle(input, styles, dontReset) {
17
+ let result = '';
18
+ styles.forEach((style) => {
19
+ result += style;
20
+ });
21
+ result += input;
22
+ if (!dontReset) {
23
+ result += log_style_enum_1.LogStyle.reset;
24
+ }
25
+ return result;
26
+ }
27
+ static success(message, ...optionalParams) {
28
+ if (0 < optionalParams.length) {
29
+ console.log(`${log_style_enum_1.LogStyle.green}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
30
+ }
31
+ else {
32
+ console.log(`${log_style_enum_1.LogStyle.green}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
33
+ }
34
+ }
35
+ /**
36
+ * @deprecated use Dynamo_Log.success instead
37
+ */
38
+ static logSuccess(message, ...optionalParams) {
39
+ this.success(message, ...optionalParams);
40
+ }
41
+ static error(message, ...optionalParams) {
42
+ if (0 < optionalParams.length) {
43
+ console.error(`${log_style_enum_1.LogStyle.red}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
44
+ }
45
+ else {
46
+ console.error(`${log_style_enum_1.LogStyle.red}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
47
+ }
48
+ }
49
+ /**
50
+ * @deprecated use Dynamo_Log.error instead
51
+ */
52
+ static logError(message, ...optionalParams) {
53
+ this.error(message, ...optionalParams);
54
+ }
55
+ static warn(message, ...optionalParams) {
56
+ if (0 < optionalParams.length) {
57
+ console.warn(`${log_style_enum_1.LogStyle.yellow}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
58
+ }
59
+ else {
60
+ console.warn(`${log_style_enum_1.LogStyle.yellow}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
61
+ }
62
+ }
63
+ /**
64
+ * @deprecated use Dynamo_Log.warn instead
65
+ */
66
+ static warning(message, ...optionalParams) {
67
+ this.warn(message, ...optionalParams);
68
+ }
69
+ /**
70
+ * @deprecated use Dynamo_Log.warn instead
71
+ */
72
+ static logWarning(message, ...optionalParams) {
73
+ this.warn(message, ...optionalParams);
74
+ }
75
+ static highlighted(message, ...optionalParams) {
76
+ if (0 < optionalParams.length) {
77
+ console.log(`${log_style_enum_1.LogStyle.white}${log_style_enum_1.LogStyle.bright}${message}`, ...optionalParams, log_style_enum_1.LogStyle.reset);
78
+ }
79
+ else {
80
+ console.log(`${log_style_enum_1.LogStyle.white}${log_style_enum_1.LogStyle.bright}${message}${log_style_enum_1.LogStyle.reset}`);
81
+ }
82
+ }
83
+ static removeLogStyles(message) {
84
+ for (let styleKey of Object(log_style_enum_1.LogStyle)) {
85
+ message = message.replace(new RegExp(log_style_enum_1.LogStyle[styleKey], 'g'), '');
86
+ }
87
+ return message;
88
+ }
89
+ static silenceLogs() {
90
+ console.log = () => { };
91
+ }
92
+ static silenceNonErrorLogs() {
93
+ console.log = () => { };
94
+ console.info = () => { };
95
+ console.warn = () => { };
96
+ }
97
+ static silenceConsole() {
98
+ console.log = () => { };
99
+ console.info = () => { };
100
+ console.warn = () => { };
101
+ console.error = () => { };
102
+ }
103
+ }
104
+ exports.Dynamo_Log = Dynamo_Log;
105
+ //# sourceMappingURL=log.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.util.js","sourceRoot":"","sources":["../../src/_utils/log.util.ts"],"names":[],"mappings":";;;AACA,6DAAoD;AAOpD,MAAa,UAAU;IACrB,MAAM,CAAC,QAA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xB,OAAO,CAAC,IAAI,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;QACxB,OAAO,CAAC,KAAK,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;IAC3B,CAAC;CACF;AAvGD,gCAuGC"}
@@ -0,0 +1,9 @@
1
+ import { RandomWeight } from '../_models/interfaces/random-weight.interface';
2
+ export declare type D_Random = Dynamo_Random;
3
+ export declare class Dynamo_Random {
4
+ static getRandomWeightedInt(min: number, max: number, weights: RandomWeight<number>[]): number;
5
+ static getRandomInt(min: number, max: number): number;
6
+ static getRandomListElement<T>(list: T[]): T;
7
+ static getRandomWeighted<T>(weights: RandomWeight<T>[]): T;
8
+ }
9
+ //# sourceMappingURL=random.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random.util.d.ts","sourceRoot":"","sources":["../../src/_utils/random.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAE7E,oBAAY,QAAQ,GAAG,aAAa,CAAC;AACrC,qBAAa,aAAa;IACxB,MAAM,CAAC,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM;IAyB9F,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IAIrD,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC;IAQ5C,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC;CAsB3D"}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Dynamo_Random = void 0;
4
+ class Dynamo_Random {
5
+ static getRandomWeightedInt(min, max, weights) {
6
+ weights = weights.sort((a, b) => b.chance - a.chance);
7
+ let weightChanceSum = 0;
8
+ weights.forEach(weight => weightChanceSum += weight.chance);
9
+ if (1 < weightChanceSum) {
10
+ weights.forEach(weights => weights.chance = weights.chance / weightChanceSum);
11
+ }
12
+ const randomChance = Math.random();
13
+ let result;
14
+ let chancer = 0;
15
+ for (let i = 0; i < weights.length && result === undefined; i++) {
16
+ chancer += weights[i].chance;
17
+ if (randomChance < chancer) {
18
+ result = weights[i].result;
19
+ }
20
+ }
21
+ if (result !== undefined) {
22
+ return result;
23
+ }
24
+ else {
25
+ return this.getRandomInt(min, max);
26
+ }
27
+ }
28
+ static getRandomInt(min, max) {
29
+ return min + Math.round((max - min) * Math.random());
30
+ }
31
+ static getRandomListElement(list) {
32
+ if (0 < list.length) {
33
+ return list[this.getRandomInt(0, list.length - 1)];
34
+ }
35
+ else {
36
+ return null;
37
+ }
38
+ }
39
+ static getRandomWeighted(weights) {
40
+ if (!(weights === null || weights === void 0 ? void 0 : weights.length)) {
41
+ return null;
42
+ }
43
+ weights = weights.sort((a, b) => b.chance - a.chance);
44
+ let weightChanceSum = 0;
45
+ weights.forEach(weight => weightChanceSum += weight.chance);
46
+ weights.forEach(weights => weights.chance = weights.chance / weightChanceSum);
47
+ const randomChance = Math.random();
48
+ let result;
49
+ let chancer = 0;
50
+ for (let i = 0; i < weights.length && result === undefined; i++) {
51
+ chancer += weights[i].chance;
52
+ if (randomChance < chancer) {
53
+ result = weights[i].result;
54
+ }
55
+ }
56
+ return result;
57
+ }
58
+ }
59
+ exports.Dynamo_Random = Dynamo_Random;
60
+ //# sourceMappingURL=random.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"random.util.js","sourceRoot":"","sources":["../../src/_utils/random.util.ts"],"names":[],"mappings":";;;AAIA,MAAa,aAAa;IACxB,MAAM,CAAC,oBAAoB,CAAC,GAAW,EAAE,GAAW,EAAE,OAA+B;QACnF,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,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AAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;SACpD;aAAM;YACL,OAAO,IAAI,CAAC;SACb;IACH,CAAC;IAED,MAAM,CAAC,iBAAiB,CAAI,OAA0B;QACpD,IAAI,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAA,EAAE;YACpB,OAAO,IAAI,CAAC;SACb;QAED,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,eAAe,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5D,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;QAE9E,MAAM,YAAY,GAAW,IAAI,CAAC,MAAM,EAAE,CAAC;QAC3C,IAAI,MAAS,CAAC;QACd,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC,EAAE,EAAE;YAC/D,OAAO,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;YAC7B,IAAI,YAAY,GAAG,OAAO,EAAE;gBAC1B,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;aAC5B;SACF;QAED,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AA5DD,sCA4DC"}
@@ -0,0 +1,17 @@
1
+ import { Region } from '../_enums/region.enum';
2
+ import { CountryPhoneCode } from '../_models/interfaces/location/country-phone-code.interface';
3
+ import { CountryISO } from '../_models/interfaces/location/country-iso.interface';
4
+ import { CountryDivision } from '../_models/interfaces/location/country-division.interface';
5
+ export declare type D_Regions = Dynamo_Regions;
6
+ export declare class Dynamo_Regions {
7
+ static divisions: CountryDivision[];
8
+ static phoneCodes: CountryPhoneCode[];
9
+ static ISOs: CountryISO[];
10
+ private static getAllDivisions;
11
+ private static getAllPhoneCodes;
12
+ private static getAllCountryISO;
13
+ static isoToCountryIso(iso2: string): CountryISO;
14
+ static isoToRegion(iso2: string): Region;
15
+ static isoToPhoneCode(iso2: string): CountryPhoneCode;
16
+ }
17
+ //# sourceMappingURL=regions.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"regions.util.d.ts","sourceRoot":"","sources":["../../src/_utils/regions.util.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,6DAA6D,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAI5F,oBAAY,SAAS,GAAG,cAAc,CAAC;AACvC,qBAAa,cAAc;IAEzB,MAAM,CAAC,SAAS,EAAE,eAAe,EAAE,CAAoC;IACvE,MAAM,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAqC;IAC1E,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,CAAqC;IAE9D,OAAO,CAAC,MAAM,CAAC,eAAe;IAG9B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAS/B,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAWhD,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAWxC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB;CAUtD"}