@futdevpro/fsm-dynamo 1.8.4 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/.eslintrc.json +9 -6
  2. package/lib/_constants/error-defaults.const.d.ts +2 -2
  3. package/lib/_constants/error-defaults.const.d.ts.map +1 -1
  4. package/lib/_constants/error-defaults.const.js +2 -2
  5. package/lib/_constants/error-defaults.const.js.map +1 -1
  6. package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts +6 -2
  7. package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts.map +1 -1
  8. package/lib/_constants/module-settings/custom-data-module-settings.const.js +9 -4
  9. package/lib/_constants/module-settings/custom-data-module-settings.const.js.map +1 -1
  10. package/lib/_constants/module-settings/test-module-settings.const.d.ts +8 -2
  11. package/lib/_constants/module-settings/test-module-settings.const.d.ts.map +1 -1
  12. package/lib/_constants/module-settings/test-module-settings.const.js +13 -8
  13. package/lib/_constants/module-settings/test-module-settings.const.js.map +1 -1
  14. package/lib/_constants/module-settings/usage-module-settings.const.d.ts +8 -2
  15. package/lib/_constants/module-settings/usage-module-settings.const.d.ts.map +1 -1
  16. package/lib/_constants/module-settings/usage-module-settings.const.js +13 -6
  17. package/lib/_constants/module-settings/usage-module-settings.const.js.map +1 -1
  18. package/lib/_enums/basic-property-type.enum.d.ts +1 -1
  19. package/lib/_enums/basic-property-type.enum.d.ts.map +1 -1
  20. package/lib/_enums/basic-property-type.enum.js +9 -9
  21. package/lib/_enums/basic-property-type.enum.js.map +1 -1
  22. package/lib/_enums/data-model-type.enum.d.ts +1 -1
  23. package/lib/_enums/data-model-type.enum.d.ts.map +1 -1
  24. package/lib/_enums/data-model-type.enum.js +7 -7
  25. package/lib/_enums/data-model-type.enum.js.map +1 -1
  26. package/lib/_enums/day-of-week.enum.d.ts +4 -4
  27. package/lib/_enums/day-of-week.enum.d.ts.map +1 -1
  28. package/lib/_enums/day-of-week.enum.js +21 -21
  29. package/lib/_enums/day-of-week.enum.js.map +1 -1
  30. package/lib/_enums/error-level.enum.d.ts +1 -1
  31. package/lib/_enums/error-level.enum.d.ts.map +1 -1
  32. package/lib/_enums/error-level.enum.js +13 -13
  33. package/lib/_enums/error-level.enum.js.map +1 -1
  34. package/lib/_enums/log-style.enum.d.ts +1 -1
  35. package/lib/_enums/log-style.enum.d.ts.map +1 -1
  36. package/lib/_enums/log-style.enum.js +27 -27
  37. package/lib/_enums/log-style.enum.js.map +1 -1
  38. package/lib/_enums/month.enum.d.ts +1 -1
  39. package/lib/_enums/month.enum.d.ts.map +1 -1
  40. package/lib/_enums/month.enum.js +16 -16
  41. package/lib/_enums/month.enum.js.map +1 -1
  42. package/lib/_enums/region.enum.d.ts +1 -1
  43. package/lib/_enums/region.enum.d.ts.map +1 -1
  44. package/lib/_enums/region.enum.js +9 -9
  45. package/lib/_enums/region.enum.js.map +1 -1
  46. package/lib/_enums/relative-date.enum.d.ts +1 -1
  47. package/lib/_enums/relative-date.enum.d.ts.map +1 -1
  48. package/lib/_enums/relative-date.enum.js +10 -10
  49. package/lib/_enums/relative-date.enum.js.map +1 -1
  50. package/lib/_enums/sub-region.enum.d.ts +1 -1
  51. package/lib/_enums/sub-region.enum.d.ts.map +1 -1
  52. package/lib/_enums/sub-region.enum.js +21 -21
  53. package/lib/_enums/sub-region.enum.js.map +1 -1
  54. package/lib/_enums/subdivision-region-type.enum.d.ts +1 -1
  55. package/lib/_enums/subdivision-region-type.enum.d.ts.map +1 -1
  56. package/lib/_enums/subdivision-region-type.enum.js +42 -42
  57. package/lib/_enums/subdivision-region-type.enum.js.map +1 -1
  58. package/lib/_models/control-models/daily-usage-data.control-model.d.ts +5 -5
  59. package/lib/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -1
  60. package/lib/_models/control-models/daily-usage-data.control-model.js +3 -3
  61. package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -1
  62. package/lib/_models/control-models/data-model-params.control-model.d.ts +13 -14
  63. package/lib/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
  64. package/lib/_models/control-models/data-model-params.control-model.js +9 -15
  65. package/lib/_models/control-models/data-model-params.control-model.js.map +1 -1
  66. package/lib/_models/control-models/data-property-params.control-model.d.ts +9 -9
  67. package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
  68. package/lib/_models/control-models/data-property-params.control-model.js +10 -10
  69. package/lib/_models/control-models/data-property-params.control-model.js.map +1 -1
  70. package/lib/_models/control-models/error.control-model.d.ts +15 -15
  71. package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
  72. package/lib/_models/control-models/error.control-model.js +18 -18
  73. package/lib/_models/control-models/error.control-model.js.map +1 -1
  74. package/lib/_models/control-models/error.control-model.spec.js +34 -34
  75. package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
  76. package/lib/_models/control-models/poll.control-model.d.ts +2 -2
  77. package/lib/_models/control-models/poll.control-model.d.ts.map +1 -1
  78. package/lib/_models/control-models/poll.control-model.js +8 -8
  79. package/lib/_models/control-models/poll.control-model.js.map +1 -1
  80. package/lib/_models/control-models/range-value.control-model.d.ts +20 -20
  81. package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -1
  82. package/lib/_models/control-models/range-value.control-model.js +15 -15
  83. package/lib/_models/control-models/range-value.control-model.js.map +1 -1
  84. package/lib/_models/control-models/usage-action.control-model.d.ts +3 -3
  85. package/lib/_models/control-models/usage-action.control-model.d.ts.map +1 -1
  86. package/lib/_models/control-models/usage-action.control-model.js +3 -3
  87. package/lib/_models/control-models/usage-action.control-model.js.map +1 -1
  88. package/lib/_models/control-models/usage-data.control-model.d.ts +6 -6
  89. package/lib/_models/control-models/usage-data.control-model.d.ts.map +1 -1
  90. package/lib/_models/control-models/usage-data.control-model.js +3 -3
  91. package/lib/_models/control-models/usage-data.control-model.js.map +1 -1
  92. package/lib/_models/data-models/custom-data.data-model.d.ts +7 -7
  93. package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -1
  94. package/lib/_models/data-models/custom-data.data-model.js +4 -4
  95. package/lib/_models/data-models/custom-data.data-model.js.map +1 -1
  96. package/lib/_models/data-models/metadata.data-model.d.ts +5 -5
  97. package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -1
  98. package/lib/_models/data-models/metadata.data-model.js +3 -3
  99. package/lib/_models/data-models/metadata.data-model.js.map +1 -1
  100. package/lib/_models/data-models/usage-session.data-model.d.ts +10 -10
  101. package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -1
  102. package/lib/_models/data-models/usage-session.data-model.js +4 -4
  103. package/lib/_models/data-models/usage-session.data-model.js.map +1 -1
  104. package/lib/_models/interfaces/error-defaults.interface.d.ts +1 -1
  105. package/lib/_models/interfaces/error-defaults.interface.d.ts.map +1 -1
  106. package/lib/_models/interfaces/location/country-division.interface.d.ts +1 -1
  107. package/lib/_models/interfaces/location/country-division.interface.d.ts.map +1 -1
  108. package/lib/_models/interfaces/location/country-iso.interface.d.ts +7 -7
  109. package/lib/_models/interfaces/location/country-iso.interface.d.ts.map +1 -1
  110. package/lib/_models/interfaces/location/country-phone-code.interface.d.ts +1 -1
  111. package/lib/_models/interfaces/location/country-phone-code.interface.d.ts.map +1 -1
  112. package/lib/_models/interfaces/location/division-collection.interface.d.ts +1 -1
  113. package/lib/_models/interfaces/location/division-collection.interface.d.ts.map +1 -1
  114. package/lib/_models/interfaces/location/division-region-data.interface.d.ts +4 -4
  115. package/lib/_models/interfaces/location/division-region-data.interface.d.ts.map +1 -1
  116. package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts +1 -1
  117. package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts.map +1 -1
  118. package/lib/_models/interfaces/location/location-coordinates.interface.d.ts +1 -1
  119. package/lib/_models/interfaces/location/location-coordinates.interface.d.ts.map +1 -1
  120. package/lib/_models/interfaces/paged.interace.d.ts +1 -1
  121. package/lib/_models/interfaces/paged.interace.d.ts.map +1 -1
  122. package/lib/_models/interfaces/random-weight.interface.d.ts +1 -1
  123. package/lib/_models/interfaces/random-weight.interface.d.ts.map +1 -1
  124. package/lib/_models/interfaces/route-settings.interface.d.ts +4 -4
  125. package/lib/_models/interfaces/route-settings.interface.d.ts.map +1 -1
  126. package/lib/_utils/array.util.d.ts +4 -4
  127. package/lib/_utils/array.util.d.ts.map +1 -1
  128. package/lib/_utils/array.util.js +3 -3
  129. package/lib/_utils/array.util.js.map +1 -1
  130. package/lib/_utils/array.util.spec.js +5 -5
  131. package/lib/_utils/array.util.spec.js.map +1 -1
  132. package/lib/_utils/box-bounds.util.d.ts +12 -12
  133. package/lib/_utils/box-bounds.util.d.ts.map +1 -1
  134. package/lib/_utils/box-bounds.util.js +7 -7
  135. package/lib/_utils/box-bounds.util.js.map +1 -1
  136. package/lib/_utils/index.d.ts +0 -1
  137. package/lib/_utils/index.d.ts.map +1 -1
  138. package/lib/_utils/index.js +0 -1
  139. package/lib/_utils/index.js.map +1 -1
  140. package/lib/_utils/location.util.d.ts +4 -4
  141. package/lib/_utils/location.util.d.ts.map +1 -1
  142. package/lib/_utils/location.util.js +9 -9
  143. package/lib/_utils/location.util.js.map +1 -1
  144. package/lib/_utils/log.util.d.ts +17 -17
  145. package/lib/_utils/log.util.d.ts.map +1 -1
  146. package/lib/_utils/log.util.js +25 -25
  147. package/lib/_utils/log.util.js.map +1 -1
  148. package/lib/_utils/math.util.d.ts +1 -1
  149. package/lib/_utils/math.util.d.ts.map +1 -1
  150. package/lib/_utils/math.util.js +3 -3
  151. package/lib/_utils/math.util.js.map +1 -1
  152. package/lib/_utils/random.util.d.ts +5 -5
  153. package/lib/_utils/random.util.d.ts.map +1 -1
  154. package/lib/_utils/random.util.js +3 -3
  155. package/lib/_utils/random.util.js.map +1 -1
  156. package/lib/_utils/regex/password-regex.util.d.ts +2 -2
  157. package/lib/_utils/regex/password-regex.util.d.ts.map +1 -1
  158. package/lib/_utils/regex/password-regex.util.js +7 -7
  159. package/lib/_utils/regex/password-regex.util.js.map +1 -1
  160. package/lib/_utils/regex/username-regex.util.d.ts +1 -1
  161. package/lib/_utils/regex/username-regex.util.d.ts.map +1 -1
  162. package/lib/_utils/regex/username-regex.util.js +3 -3
  163. package/lib/_utils/regex/username-regex.util.js.map +1 -1
  164. package/lib/_utils/regex.util.d.ts +1 -1
  165. package/lib/_utils/regex.util.d.ts.map +1 -1
  166. package/lib/_utils/regex.util.js +2 -2
  167. package/lib/_utils/regex.util.js.map +1 -1
  168. package/lib/_utils/regions.util.d.ts +12 -12
  169. package/lib/_utils/regions.util.d.ts.map +1 -1
  170. package/lib/_utils/regions.util.js +13 -13
  171. package/lib/_utils/regions.util.js.map +1 -1
  172. package/lib/_utils/round-list.util.d.ts +2 -2
  173. package/lib/_utils/round-list.util.d.ts.map +1 -1
  174. package/lib/_utils/round-list.util.js +3 -3
  175. package/lib/_utils/round-list.util.js.map +1 -1
  176. package/lib/_utils/shared.static-service.d.ts +2 -2
  177. package/lib/_utils/shared.static-service.d.ts.map +1 -1
  178. package/lib/_utils/shared.static-service.js +8 -8
  179. package/lib/_utils/shared.static-service.js.map +1 -1
  180. package/lib/_utils/time.util.d.ts +16 -16
  181. package/lib/_utils/time.util.d.ts.map +1 -1
  182. package/lib/_utils/time.util.js +29 -29
  183. package/lib/_utils/time.util.js.map +1 -1
  184. package/lib/_utils/trigonometry.util.d.ts +4 -4
  185. package/lib/_utils/trigonometry.util.d.ts.map +1 -1
  186. package/lib/_utils/trigonometry.util.js +3 -3
  187. package/lib/_utils/trigonometry.util.js.map +1 -1
  188. package/lib/_utils/type-cloning-facility.util.d.ts +4 -4
  189. package/lib/_utils/type-cloning-facility.util.d.ts.map +1 -1
  190. package/lib/_utils/type-cloning-facility.util.js +3 -3
  191. package/lib/_utils/type-cloning-facility.util.js.map +1 -1
  192. package/lib/_utils/utilities.util.d.ts +25 -25
  193. package/lib/_utils/utilities.util.d.ts.map +1 -1
  194. package/lib/_utils/utilities.util.js +34 -34
  195. package/lib/_utils/utilities.util.js.map +1 -1
  196. package/lib/_utils/vector2.util.d.ts +36 -36
  197. package/lib/_utils/vector2.util.d.ts.map +1 -1
  198. package/lib/_utils/vector2.util.js +37 -37
  199. package/lib/_utils/vector2.util.js.map +1 -1
  200. package/lib/tsconfig.tsbuildinfo +1 -1
  201. package/package.json +157 -160
  202. package/src/_constants/error-defaults.const.ts +2 -2
  203. package/src/_constants/module-settings/custom-data-module-settings.const.ts +9 -4
  204. package/src/_constants/module-settings/test-module-settings.const.ts +13 -8
  205. package/src/_constants/module-settings/usage-module-settings.const.ts +13 -6
  206. package/src/_enums/basic-property-type.enum.ts +1 -1
  207. package/src/_enums/data-model-type.enum.ts +1 -1
  208. package/src/_enums/day-of-week.enum.ts +11 -11
  209. package/src/_enums/error-level.enum.ts +1 -1
  210. package/src/_enums/log-style.enum.ts +1 -1
  211. package/src/_enums/month.enum.ts +1 -1
  212. package/src/_enums/region.enum.ts +1 -1
  213. package/src/_enums/relative-date.enum.ts +1 -1
  214. package/src/_enums/sub-region.enum.ts +1 -1
  215. package/src/_enums/subdivision-region-type.enum.ts +1 -1
  216. package/src/_models/control-models/daily-usage-data.control-model.ts +5 -5
  217. package/src/_models/control-models/data-model-params.control-model.ts +15 -25
  218. package/src/_models/control-models/data-property-params.control-model.ts +15 -15
  219. package/src/_models/control-models/error.control-model.spec.ts +69 -69
  220. package/src/_models/control-models/error.control-model.ts +80 -80
  221. package/src/_models/control-models/poll.control-model.ts +8 -8
  222. package/src/_models/control-models/range-value.control-model.ts +58 -58
  223. package/src/_models/control-models/usage-action.control-model.ts +3 -3
  224. package/src/_models/control-models/usage-data.control-model.ts +6 -6
  225. package/src/_models/data-models/custom-data.data-model.ts +13 -12
  226. package/src/_models/data-models/metadata.data-model.ts +5 -5
  227. package/src/_models/data-models/usage-session.data-model.ts +28 -27
  228. package/src/_models/interfaces/error-defaults.interface.ts +1 -1
  229. package/src/_models/interfaces/location/country-division.interface.ts +1 -1
  230. package/src/_models/interfaces/location/country-iso.interface.ts +7 -7
  231. package/src/_models/interfaces/location/country-phone-code.interface.ts +1 -1
  232. package/src/_models/interfaces/location/division-collection.interface.ts +1 -1
  233. package/src/_models/interfaces/location/division-region-data.interface.ts +4 -4
  234. package/src/_models/interfaces/location/geo-ip-location.interface.ts +1 -1
  235. package/src/_models/interfaces/location/location-coordinates.interface.ts +1 -1
  236. package/src/_models/interfaces/paged.interace.ts +1 -1
  237. package/src/_models/interfaces/random-weight.interface.ts +1 -1
  238. package/src/_models/interfaces/route-settings.interface.ts +4 -4
  239. package/src/_utils/array.util.spec.ts +7 -7
  240. package/src/_utils/array.util.ts +4 -4
  241. package/src/_utils/box-bounds.util.ts +19 -19
  242. package/src/_utils/index.ts +0 -1
  243. package/src/_utils/location.util.ts +13 -13
  244. package/src/_utils/log.util.ts +36 -36
  245. package/src/_utils/math.util.ts +1 -1
  246. package/src/_utils/random.util.ts +9 -5
  247. package/src/_utils/regex/password-regex.util.ts +5 -5
  248. package/src/_utils/regex/username-regex.util.ts +2 -2
  249. package/src/_utils/regex.util.ts +1 -1
  250. package/src/_utils/regions.util.ts +33 -33
  251. package/src/_utils/round-list.util.ts +2 -2
  252. package/src/_utils/shared.static-service.ts +8 -8
  253. package/src/_utils/time.util.ts +40 -40
  254. package/src/_utils/trigonometry.util.ts +4 -4
  255. package/src/_utils/type-cloning-facility.util.ts +4 -4
  256. package/src/_utils/utilities.util.ts +31 -27
  257. package/src/_utils/vector2.util.ts +67 -67
  258. package/tsconfig.json +2 -1
  259. package/lib/_utils/metadata.util.d.ts +0 -2
  260. package/lib/_utils/metadata.util.d.ts.map +0 -1
  261. package/lib/_utils/metadata.util.js +0 -32
  262. package/lib/_utils/metadata.util.js.map +0 -1
  263. package/src/_utils/metadata.util.ts +0 -31
package/package.json CHANGED
@@ -1,160 +1,157 @@
1
- {
2
- "name": "@futdevpro/fsm-dynamo",
3
- "version": "01.08.04",
4
- "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
5
- "scripts": {
6
- "prep": "npm i rimraf nodemon -g",
7
- "start": "npm run prep && nodemon",
8
-
9
- "deploy": "npm run clean && npm run build-all",
10
- "build": "npm run build-base && jasmine && npm publish",
11
- "build-tgz": "npm run build-base && jasmine && npm pack && move ./*.tgz ../npm-tgz-collection/dynamo-fsm",
12
- "build-all": "npm run build-tgz && npm run build",
13
-
14
- "build-base": "npm i && rimraf ./lib && npx tsc",
15
- "clean-build": "npm run clean && npm run build-base",
16
- "clean": "npm run prep && rimraf ./lib && rimraf package-lock.json && rimraf ./node_modules",
17
-
18
- "test": "npm run build-base && jasmine",
19
- "clean-test": "npm run clean-build && jasmine"
20
- },
21
- "main": "./lib/index.js",
22
- "module": "./lib/index.js",
23
- "types": "./lib/index.d.ts",
24
- "typings": "./lib/index.d.ts",
25
- "exports": {
26
- ".": {
27
- "types": "./lib/index.d.ts",
28
- "typings": "./lib/index.d.ts",
29
- "module": "./lib/index.js",
30
- "default": "./lib/index.js"
31
- },
32
- "./constants": {
33
- "default": "./lib/_constants/index.js",
34
- "module": "./lib/_constants/index.js",
35
- "types": "./lib/_constants/index.d.ts",
36
- "typings": "./lib/_constants/index.d.ts"
37
- },
38
- "./enums": {
39
- "default": "./lib/_enums/index.js",
40
- "module": "./lib/_enums/index.js",
41
- "types": "./lib/_enums/index.d.ts",
42
- "typings": "./lib/_enums/index.d.ts"
43
- },
44
- "./models": {
45
- "default": "./lib/_models/index.js",
46
- "module": "./lib/_models/index.js",
47
- "types": "./lib/_models/index.d.ts",
48
- "typings": "./lib/_models/index.d.ts"
49
- },
50
- "./utils": {
51
- "default": "./lib/_utils/index.js",
52
- "module": "./lib/_utils/index.js",
53
- "types": "./lib/_utils/index.d.ts",
54
- "typings": "./lib/_utils/index.d.ts"
55
- },
56
- "./data-module": {
57
- "default": "./lib/_modules/data-module.index.js",
58
- "module": "./lib/_modules/data-module.index.js",
59
- "types": "./lib/_modules/data-module.index.d.ts",
60
- "typings": "./lib/_modules/data-module.index.d.ts"
61
- },
62
- "./test-module": {
63
- "default": "./lib/_modules/test-module.index.js",
64
- "module": "./lib/_modules/test-module.index.js",
65
- "types": "./lib/_modules/test-module.index.d.ts",
66
- "typings": "./lib/_modules/test-module.index.d.ts"
67
- },
68
- "./custom-data-module": {
69
- "default": "./lib/_modules/custom-data-module.index.js",
70
- "module": "./lib/_modules/custom-data-module.index.js",
71
- "types": "./lib/_modules/custom-data-module.index.d.ts",
72
- "typings": "./lib/_modules/custom-data-module.index.d.ts"
73
- },
74
- "./usage-module": {
75
- "default": "./lib/_modules/usage-module.index.js",
76
- "module": "./lib/_modules/usage-module.index.js",
77
- "types": "./lib/_modules/usage-module.index.d.ts",
78
- "typings": "./lib/_modules/usage-module.index.d.ts"
79
- },
80
- "./error-module": {
81
- "default": "./lib/_modules/error-module.index.js",
82
- "module": "./lib/_modules/error-module.index.js",
83
- "types": "./lib/_modules/error-module.index.d.ts",
84
- "typings": "./lib/_modules/error-module.index.d.ts"
85
- },
86
- "./shared-service": {
87
- "default": "./lib/_modules/shared-service.index.js",
88
- "module": "./lib/_modules/shared-service.index.js",
89
- "types": "./lib/_modules/shared-service.index.d.ts",
90
- "typings": "./lib/_modules/shared-service.index.d.ts"
91
- },
92
- "./location": {
93
- "default": "./lib/_modules/location.index.js",
94
- "module": "./lib/_modules/location.index.js",
95
- "types": "./lib/_modules/location.index.d.ts",
96
- "typings": "./lib/_modules/location.index.d.ts"
97
- }
98
- },
99
- "typesVersions": {
100
- "*": {
101
- "constants": [
102
- "lib/_constants/index.d.ts"
103
- ],
104
- "enums": [
105
- "lib/_enums/index.d.ts"
106
- ],
107
- "models": [
108
- "lib/_models/index.d.ts"
109
- ],
110
- "utils": [
111
- "lib/_utils/index.d.ts"
112
- ],
113
- "data-module": [
114
- "lib/_modules/data-module.index.d.ts"
115
- ],
116
- "test-module": [
117
- "lib/_modules/test-module.index.d.ts"
118
- ],
119
- "custom-data-module": [
120
- "lib/_modules/custom-data-module.index.d.ts"
121
- ],
122
- "usage-module": [
123
- "lib/_modules/usage-module.index.d.ts"
124
- ],
125
- "error-module": [
126
- "lib/_modules/error-module.index.d.ts"
127
- ],
128
- "shared-service": [
129
- "lib/_modules/shared-service.index.d.ts"
130
- ],
131
- "location": [
132
- "lib/_modules/location.index.d.ts"
133
- ]
134
- }
135
- },
136
- "keywords": [],
137
- "author": "Future Development Program Ltd.",
138
- "license": "ISC",
139
- "homepage": "https:/futdevpro.hu/projects/dynamo",
140
- "peerDependencies": {
141
- "rxjs": "^7.8.0"
142
- },
143
- "dependencies": {
144
- "@types/node": "^20.5.7",
145
- "ts-node": "^10.9.1",
146
- "tslib": "^2.6.2",
147
- "typescript": "^5.1.3"
148
- },
149
- "devDependencies": {
150
- "@types/jasmine": "^4.3.5",
151
- "@typescript-eslint/eslint-plugin": "^6.7.4",
152
- "@typescript-eslint/parser": "^6.7.4",
153
- "eslint": "^8.51.0",
154
- "eslint-plugin-unused-imports": "^3.0.0",
155
- "eslint-plugin-max-params-no-constructor": "^0.0.4",
156
- "jasmine": "^5.1.0",
157
- "nodemon": "^3.0.1",
158
- "rimraf": "^5.0.1"
159
- }
160
- }
1
+ {
2
+ "name": "@futdevpro/fsm-dynamo",
3
+ "version": "01.09.01",
4
+ "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
5
+ "main": "./lib/index.js",
6
+ "module": "./lib/index.js",
7
+ "types": "./lib/index.d.ts",
8
+ "typings": "./lib/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./lib/index.d.ts",
12
+ "typings": "./lib/index.d.ts",
13
+ "module": "./lib/index.js",
14
+ "default": "./lib/index.js"
15
+ },
16
+ "./constants": {
17
+ "default": "./lib/_constants/index.js",
18
+ "module": "./lib/_constants/index.js",
19
+ "types": "./lib/_constants/index.d.ts",
20
+ "typings": "./lib/_constants/index.d.ts"
21
+ },
22
+ "./enums": {
23
+ "default": "./lib/_enums/index.js",
24
+ "module": "./lib/_enums/index.js",
25
+ "types": "./lib/_enums/index.d.ts",
26
+ "typings": "./lib/_enums/index.d.ts"
27
+ },
28
+ "./models": {
29
+ "default": "./lib/_models/index.js",
30
+ "module": "./lib/_models/index.js",
31
+ "types": "./lib/_models/index.d.ts",
32
+ "typings": "./lib/_models/index.d.ts"
33
+ },
34
+ "./utils": {
35
+ "default": "./lib/_utils/index.js",
36
+ "module": "./lib/_utils/index.js",
37
+ "types": "./lib/_utils/index.d.ts",
38
+ "typings": "./lib/_utils/index.d.ts"
39
+ },
40
+ "./data-module": {
41
+ "default": "./lib/_modules/data-module.index.js",
42
+ "module": "./lib/_modules/data-module.index.js",
43
+ "types": "./lib/_modules/data-module.index.d.ts",
44
+ "typings": "./lib/_modules/data-module.index.d.ts"
45
+ },
46
+ "./test-module": {
47
+ "default": "./lib/_modules/test-module.index.js",
48
+ "module": "./lib/_modules/test-module.index.js",
49
+ "types": "./lib/_modules/test-module.index.d.ts",
50
+ "typings": "./lib/_modules/test-module.index.d.ts"
51
+ },
52
+ "./custom-data-module": {
53
+ "default": "./lib/_modules/custom-data-module.index.js",
54
+ "module": "./lib/_modules/custom-data-module.index.js",
55
+ "types": "./lib/_modules/custom-data-module.index.d.ts",
56
+ "typings": "./lib/_modules/custom-data-module.index.d.ts"
57
+ },
58
+ "./usage-module": {
59
+ "default": "./lib/_modules/usage-module.index.js",
60
+ "module": "./lib/_modules/usage-module.index.js",
61
+ "types": "./lib/_modules/usage-module.index.d.ts",
62
+ "typings": "./lib/_modules/usage-module.index.d.ts"
63
+ },
64
+ "./error-module": {
65
+ "default": "./lib/_modules/error-module.index.js",
66
+ "module": "./lib/_modules/error-module.index.js",
67
+ "types": "./lib/_modules/error-module.index.d.ts",
68
+ "typings": "./lib/_modules/error-module.index.d.ts"
69
+ },
70
+ "./shared-service": {
71
+ "default": "./lib/_modules/shared-service.index.js",
72
+ "module": "./lib/_modules/shared-service.index.js",
73
+ "types": "./lib/_modules/shared-service.index.d.ts",
74
+ "typings": "./lib/_modules/shared-service.index.d.ts"
75
+ },
76
+ "./location": {
77
+ "default": "./lib/_modules/location.index.js",
78
+ "module": "./lib/_modules/location.index.js",
79
+ "types": "./lib/_modules/location.index.d.ts",
80
+ "typings": "./lib/_modules/location.index.d.ts"
81
+ }
82
+ },
83
+ "typesVersions": {
84
+ "*": {
85
+ "constants": [
86
+ "lib/_constants/index.d.ts"
87
+ ],
88
+ "enums": [
89
+ "lib/_enums/index.d.ts"
90
+ ],
91
+ "models": [
92
+ "lib/_models/index.d.ts"
93
+ ],
94
+ "utils": [
95
+ "lib/_utils/index.d.ts"
96
+ ],
97
+ "data-module": [
98
+ "lib/_modules/data-module.index.d.ts"
99
+ ],
100
+ "test-module": [
101
+ "lib/_modules/test-module.index.d.ts"
102
+ ],
103
+ "custom-data-module": [
104
+ "lib/_modules/custom-data-module.index.d.ts"
105
+ ],
106
+ "usage-module": [
107
+ "lib/_modules/usage-module.index.d.ts"
108
+ ],
109
+ "error-module": [
110
+ "lib/_modules/error-module.index.d.ts"
111
+ ],
112
+ "shared-service": [
113
+ "lib/_modules/shared-service.index.d.ts"
114
+ ],
115
+ "location": [
116
+ "lib/_modules/location.index.d.ts"
117
+ ]
118
+ }
119
+ },
120
+ "keywords": [],
121
+ "author": "Future Development Program Ltd.",
122
+ "license": "ISC",
123
+ "homepage": "https:/futdevpro.hu/projects/dynamo",
124
+ "peerDependencies": {
125
+ "rxjs": "^7.8.0"
126
+ },
127
+ "dependencies": {
128
+ "@types/node": "^20.5.7",
129
+ "ts-node": "^10.9.1",
130
+ "tslib": "^2.6.2",
131
+ "typescript": "^5.1.3"
132
+ },
133
+ "devDependencies": {
134
+ "@types/jasmine": "^4.3.5",
135
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
136
+ "@typescript-eslint/parser": "^6.7.4",
137
+ "eslint": "^8.51.0",
138
+ "eslint-plugin-unused-imports": "^3.0.0",
139
+ "eslint-plugin-max-params-no-constructor": "^0.0.4",
140
+ "jasmine": "^5.1.0",
141
+ "nodemon": "^3.0.1",
142
+ "rimraf": "^5.0.1"
143
+ },
144
+ "scripts": {
145
+ "prep": "npm i pnpm -g && npm i rimraf nodemon -g",
146
+ "start": "npm run prep && nodemon",
147
+ "deploy": "pnpm run clean && pnpm run build-all",
148
+ "build": "pnpm run build-base && jasmine && pnpm publish",
149
+ "build-tgz": "pnpm run build-base && jasmine && pnpm pack && move ./*.tgz ../npm-tgz-collection/dynamo-fsm",
150
+ "build-all": "pnpm run build-tgz && pnpm run build",
151
+ "build-base": "pnpm i && rimraf ./lib && npx tsc",
152
+ "clean-build": "pnpm run clean && pnpm run build-base",
153
+ "clean": "pnpm run prep && rimraf ./lib && rimraf package-lock.json && rimraf ./node_modules",
154
+ "test": "pnpm run build-base && jasmine",
155
+ "clean-test": "pnpm run clean-build && jasmine"
156
+ }
157
+ }
@@ -1,6 +1,6 @@
1
- import { Dynamo_Error_Defaults } from '../_models';
1
+ import { DynamoFM_Error_Defaults } from '../_models';
2
2
 
3
- export const Dynamo_error_defaults: Dynamo_Error_Defaults = {
3
+ export const DynamoFM_error_defaults: DynamoFM_Error_Defaults = {
4
4
  errorCode: 'NO-ERROR-CODE',
5
5
  message: 'NO-ERROR-MESSAGE',
6
6
  userMessage: 'MISSING-ERROR-USER-MESSAGE',
@@ -1,10 +1,15 @@
1
1
 
2
- import { Dynamo_Route_Settings } from '../../_models/interfaces/route-settings.interface';
2
+ import { DynamoFM_Route_Settings } from '../../_models/interfaces/route-settings.interface';
3
3
 
4
- export const Dynamo_customDataModule_settings: Dynamo_Route_Settings = {
4
+ export enum DynamoFM_CustomRoute {
5
+ getCustomData = 'getCustomData',
6
+ modifyCustomData = 'modifyCustomData',
7
+ }
8
+
9
+ export const DynamoFM_customDataModule_settings: DynamoFM_Route_Settings<DynamoFM_CustomRoute> = {
5
10
  mainRoute: '/custom',
6
11
  endPoints: {
7
- getCustomData: '/get/:customId',
8
- modifyCustomData: '/post',
12
+ [DynamoFM_CustomRoute.getCustomData]: '/get/:customId',
13
+ [DynamoFM_CustomRoute.modifyCustomData]: '/post',
9
14
  }
10
15
  };
@@ -1,14 +1,19 @@
1
1
 
2
- import { Dynamo_Route_Settings } from '../../_models/interfaces/route-settings.interface';
2
+ import { DynamoFM_Route_Settings } from '../../_models/interfaces/route-settings.interface';
3
3
 
4
- export const Dynamo_testModule_settings: Dynamo_Route_Settings = {
4
+ export enum DynamoFM_TestRoute {
5
+ testGet = 'testGet',
6
+ testPost = 'testPost',
7
+ testDelete = 'testDelete',
8
+ getServerStatus = 'getServerStatus',
9
+ }
10
+
11
+ export const DynamoFM_testModule_settings: DynamoFM_Route_Settings<DynamoFM_TestRoute> = {
5
12
  mainRoute: '/test',
6
13
  endPoints: {
7
- testGet: '/test-get',
8
- testPost: '/test-post',
9
- testPut: '/test-put',
10
- testPatch: '/test-patch',
11
- testDelete: '/test-delete',
12
- getServerStatus: '/server-status',
14
+ [DynamoFM_TestRoute.testGet]: '/test-get',
15
+ [DynamoFM_TestRoute.testPost]: '/test-post',
16
+ [DynamoFM_TestRoute.testDelete]: '/test-delete',
17
+ [DynamoFM_TestRoute.getServerStatus]: '/server-status',
13
18
  }
14
19
  };
@@ -1,12 +1,19 @@
1
1
 
2
- import { Dynamo_Route_Settings } from '../../_models/interfaces/route-settings.interface';
2
+ import { DynamoFM_Route_Settings } from '../../_models/interfaces/route-settings.interface';
3
3
 
4
- export const Dynamo_usageModule_settings: Dynamo_Route_Settings = {
4
+ export enum DynamoFM_UsageRoute {
5
+ newSession = 'newSession',
6
+ closeSession = 'closeSession',
7
+ updateUsage = 'updateUsage',
8
+ getUsageData = 'getUsageData',
9
+ }
10
+
11
+ export const DynamoFM_usageModule_settings: DynamoFM_Route_Settings<DynamoFM_UsageRoute> = {
5
12
  mainRoute: '/usage',
6
13
  endPoints: {
7
- newSession: '/new-session',
8
- closeSession: '/close-session/:sessionId',
9
- updateUsage: '/update/:sessionId',
10
- getUsageData: '/get/:range',
14
+ [DynamoFM_UsageRoute.newSession]: '/new-session',
15
+ [DynamoFM_UsageRoute.closeSession]: '/close-session/:sessionId',
16
+ [DynamoFM_UsageRoute.updateUsage]: '/update/:sessionId',
17
+ [DynamoFM_UsageRoute.getUsageData]: '/get/:range',
11
18
  }
12
19
  };
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- export enum Dynamo_BasicPropertyType {
3
+ export enum DynamoFM_BasicPropertyType {
4
4
  string = 'string',
5
5
  number = 'number',
6
6
  boolean = 'boolean',
@@ -6,7 +6,7 @@
6
6
  * control: used only in runtime and needs a constructor
7
7
  * interface: used only in runtime and doesnt need constructor
8
8
  */
9
- export enum Dynamo_DataModelType {
9
+ export enum DynamoFM_DataModelType {
10
10
  data = 'data-model',
11
11
  control = 'control-model',
12
12
  interface = 'interface-model',
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
 
4
- export enum Dynamo_DayOfWeek {
4
+ export enum DynamoFM_DayOfWeek {
5
5
  monday = 'monday',
6
6
  tuesday = 'tuesday',
7
7
  wednesday = 'wednesday',
@@ -11,18 +11,18 @@ export enum Dynamo_DayOfWeek {
11
11
  sunday = 'sunday',
12
12
  }
13
13
 
14
- export const Dynamo_allDaysOfWeek = Object.values(Dynamo_DayOfWeek);
14
+ export const DynamoFM_allDaysOfWeek = Object.values(DynamoFM_DayOfWeek);
15
15
 
16
16
  /** stupid style */
17
- export const Dynamo_allDaysOfWeekAmericanStyle = [
18
- Dynamo_DayOfWeek.sunday,
19
- Dynamo_DayOfWeek.monday,
20
- Dynamo_DayOfWeek.tuesday,
21
- Dynamo_DayOfWeek.wednesday,
22
- Dynamo_DayOfWeek.thursday,
23
- Dynamo_DayOfWeek.friday,
24
- Dynamo_DayOfWeek.saturday,
17
+ export const DynamoFM_allDaysOfWeekAmericanStyle = [
18
+ DynamoFM_DayOfWeek.sunday,
19
+ DynamoFM_DayOfWeek.monday,
20
+ DynamoFM_DayOfWeek.tuesday,
21
+ DynamoFM_DayOfWeek.wednesday,
22
+ DynamoFM_DayOfWeek.thursday,
23
+ DynamoFM_DayOfWeek.friday,
24
+ DynamoFM_DayOfWeek.saturday,
25
25
  ];
26
- export const Dynamo_allDaysOfWeekStupid = Dynamo_allDaysOfWeekAmericanStyle;
26
+ export const DynamoFM_allDaysOfWeekStupid = DynamoFM_allDaysOfWeekAmericanStyle;
27
27
 
28
28
 
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
 
4
- export enum Dynamo_ErrorLevel {
4
+ export enum DynamoFM_ErrorLevel {
5
5
  user = 'user',
6
6
  debug = 'debug',
7
7
  info = 'info',
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- export enum Dynamo_LogStyle {
3
+ export enum DynamoFM_LogStyle {
4
4
  reset = '\x1b[0m',
5
5
 
6
6
  bright = '\x1b[1m',
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- export enum Dynamo_Month {
3
+ export enum DynamoFM_Month {
4
4
  january = 'january',
5
5
  february = 'february',
6
6
  march = 'march',
@@ -1,5 +1,5 @@
1
1
 
2
- export enum Dynamo_Region {
2
+ export enum DynamoFM_Region {
3
3
  europe = 'Europe',
4
4
  asia = 'Asia',
5
5
  africa = 'Africa',
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- export enum Dynamo_RelativeDate {
3
+ export enum DynamoFM_RelativeDate {
4
4
  lastDay = 'lastDay',
5
5
  lastWeek = 'lastWeek',
6
6
  lastMonth = 'lastMonth',
@@ -1,5 +1,5 @@
1
1
 
2
- export enum Dynamo_SubRegion {
2
+ export enum DynamoFM_SubRegion {
3
3
  northernEurope = 'Northern Europe',
4
4
  southernEurope = 'Southern Europe',
5
5
  westernEurope = 'Western Europe',
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- export enum Dynamo_SubdivisionRegionType {
3
+ export enum DynamoFM_SubdivisionRegionType {
4
4
  parish,
5
5
  emirate,
6
6
  province,
@@ -1,18 +1,18 @@
1
1
 
2
- import { Dynamo_UsageSession } from '../data-models/usage-session.data-model';
2
+ import { DynamoFM_UsageSession } from '../data-models/usage-session.data-model';
3
3
 
4
- export type D_DailyUsageData = Dynamo_DailyUsageData;
5
- export class Dynamo_DailyUsageData {
4
+ export type DFM_DailyUsageData = DynamoFM_DailyUsageData;
5
+ export class DynamoFM_DailyUsageData {
6
6
  date?: string;
7
7
  totalVisitTime?: number = 0;
8
8
  averageVisitTime?: number = 0;
9
9
  visitorsHun?: number = 0;
10
10
  visitorsElse?: number = 0;
11
11
 
12
- visitations?: Dynamo_UsageSession[] = [];
12
+ visitations?: DynamoFM_UsageSession[] = [];
13
13
 
14
14
  constructor(
15
- set?: Dynamo_DailyUsageData
15
+ set?: DynamoFM_DailyUsageData
16
16
  ) {
17
17
  if (set) {
18
18
  Object.assign(this, set);
@@ -1,40 +1,30 @@
1
1
 
2
- import { Dynamo_DataModelType } from '../../_enums';
3
- import { Dynamo_Metadata } from '../data-models';
4
- import { Dynamo_DataProperty_Params } from './data-property-params.control-model';
2
+ import { DynamoFM_Metadata } from '../data-models/metadata.data-model';
3
+ import { DynamoFM_DataModelType } from '../../_enums/data-model-type.enum';
4
+ import { DynamoFM_DataProperty_Params } from './data-property-params.control-model';
5
5
 
6
- export type D_Data_S = Dynamo_DataModel_Settings;
7
- export type D_Data_Settings = Dynamo_DataModel_Settings;
8
- export class Dynamo_DataModel_Settings extends Dynamo_Metadata {
6
+ export type DFM_Data_S = DynamoFM_DataModel_Settings;
7
+ export type DFM_Data_Settings = DynamoFM_DataModel_Settings;
8
+ export class DynamoFM_DataModel_Settings extends DynamoFM_Metadata {
9
9
  dataName: string;
10
- modelType?: Dynamo_DataModelType;
10
+ modelType?: DynamoFM_DataModelType;
11
11
  dbName?: string;
12
- properties?: Dynamo_DataProperty_Params[];
13
-
14
- constructor(
15
- set: Dynamo_DataModel_Settings
16
- ) {
17
- super(set);
18
-
19
- if (set) {
20
- Object.assign(this, set);
21
- }
22
- }
12
+ properties?: DynamoFM_DataProperty_Params[];
23
13
  }
24
14
 
25
- export type D_Data_P = Dynamo_DataModel_Params;
26
- export type D_Data_Params = Dynamo_DataModel_Params;
27
- export class Dynamo_DataModel_Params extends Dynamo_DataModel_Settings {
15
+ export type DFM_Data_P = DynamoFM_DataModel_Params;
16
+ export type DFM_Data_Params = DynamoFM_DataModel_Params;
17
+ export class DynamoFM_DataModel_Params extends DynamoFM_DataModel_Settings {
28
18
 
29
- properties?: Dynamo_DataProperty_Params[] = [];
19
+ override properties?: DynamoFM_DataProperty_Params[] = [];
30
20
 
31
21
  constructor(
32
- set: Dynamo_DataModel_Settings
22
+ set: DynamoFM_DataModel_Settings
33
23
  ) {
34
24
  super(set);
35
25
 
36
- if (!set?.modelType || set?.modelType == Dynamo_DataModelType.data) {
37
- set.modelType = Dynamo_DataModelType.data;
26
+ if (!set?.modelType || set?.modelType == DynamoFM_DataModelType.data) {
27
+ set.modelType = DynamoFM_DataModelType.data;
38
28
  set.dbName = set.dataName.charAt(0).toUpperCase() + set.dataName.slice(1);
39
29
  }
40
30