@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.
- package/.eslintrc.json +9 -6
- package/lib/_constants/error-defaults.const.d.ts +2 -2
- package/lib/_constants/error-defaults.const.d.ts.map +1 -1
- package/lib/_constants/error-defaults.const.js +2 -2
- package/lib/_constants/error-defaults.const.js.map +1 -1
- package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts +6 -2
- package/lib/_constants/module-settings/custom-data-module-settings.const.d.ts.map +1 -1
- package/lib/_constants/module-settings/custom-data-module-settings.const.js +9 -4
- package/lib/_constants/module-settings/custom-data-module-settings.const.js.map +1 -1
- package/lib/_constants/module-settings/test-module-settings.const.d.ts +8 -2
- package/lib/_constants/module-settings/test-module-settings.const.d.ts.map +1 -1
- package/lib/_constants/module-settings/test-module-settings.const.js +13 -8
- package/lib/_constants/module-settings/test-module-settings.const.js.map +1 -1
- package/lib/_constants/module-settings/usage-module-settings.const.d.ts +8 -2
- package/lib/_constants/module-settings/usage-module-settings.const.d.ts.map +1 -1
- package/lib/_constants/module-settings/usage-module-settings.const.js +13 -6
- package/lib/_constants/module-settings/usage-module-settings.const.js.map +1 -1
- package/lib/_enums/basic-property-type.enum.d.ts +1 -1
- package/lib/_enums/basic-property-type.enum.d.ts.map +1 -1
- package/lib/_enums/basic-property-type.enum.js +9 -9
- package/lib/_enums/basic-property-type.enum.js.map +1 -1
- package/lib/_enums/data-model-type.enum.d.ts +1 -1
- package/lib/_enums/data-model-type.enum.d.ts.map +1 -1
- package/lib/_enums/data-model-type.enum.js +7 -7
- package/lib/_enums/data-model-type.enum.js.map +1 -1
- package/lib/_enums/day-of-week.enum.d.ts +4 -4
- package/lib/_enums/day-of-week.enum.d.ts.map +1 -1
- package/lib/_enums/day-of-week.enum.js +21 -21
- package/lib/_enums/day-of-week.enum.js.map +1 -1
- package/lib/_enums/error-level.enum.d.ts +1 -1
- package/lib/_enums/error-level.enum.d.ts.map +1 -1
- package/lib/_enums/error-level.enum.js +13 -13
- package/lib/_enums/error-level.enum.js.map +1 -1
- package/lib/_enums/log-style.enum.d.ts +1 -1
- package/lib/_enums/log-style.enum.d.ts.map +1 -1
- package/lib/_enums/log-style.enum.js +27 -27
- package/lib/_enums/log-style.enum.js.map +1 -1
- package/lib/_enums/month.enum.d.ts +1 -1
- package/lib/_enums/month.enum.d.ts.map +1 -1
- package/lib/_enums/month.enum.js +16 -16
- package/lib/_enums/month.enum.js.map +1 -1
- package/lib/_enums/region.enum.d.ts +1 -1
- package/lib/_enums/region.enum.d.ts.map +1 -1
- package/lib/_enums/region.enum.js +9 -9
- package/lib/_enums/region.enum.js.map +1 -1
- package/lib/_enums/relative-date.enum.d.ts +1 -1
- package/lib/_enums/relative-date.enum.d.ts.map +1 -1
- package/lib/_enums/relative-date.enum.js +10 -10
- package/lib/_enums/relative-date.enum.js.map +1 -1
- package/lib/_enums/sub-region.enum.d.ts +1 -1
- package/lib/_enums/sub-region.enum.d.ts.map +1 -1
- package/lib/_enums/sub-region.enum.js +21 -21
- package/lib/_enums/sub-region.enum.js.map +1 -1
- package/lib/_enums/subdivision-region-type.enum.d.ts +1 -1
- package/lib/_enums/subdivision-region-type.enum.d.ts.map +1 -1
- package/lib/_enums/subdivision-region-type.enum.js +42 -42
- package/lib/_enums/subdivision-region-type.enum.js.map +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts +5 -5
- package/lib/_models/control-models/daily-usage-data.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/daily-usage-data.control-model.js +3 -3
- package/lib/_models/control-models/daily-usage-data.control-model.js.map +1 -1
- package/lib/_models/control-models/data-model-params.control-model.d.ts +13 -14
- package/lib/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-model-params.control-model.js +9 -15
- package/lib/_models/control-models/data-model-params.control-model.js.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.d.ts +9 -9
- package/lib/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/data-property-params.control-model.js +10 -10
- package/lib/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.d.ts +15 -15
- package/lib/_models/control-models/error.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/error.control-model.js +18 -18
- package/lib/_models/control-models/error.control-model.js.map +1 -1
- package/lib/_models/control-models/error.control-model.spec.js +34 -34
- package/lib/_models/control-models/error.control-model.spec.js.map +1 -1
- package/lib/_models/control-models/poll.control-model.d.ts +2 -2
- package/lib/_models/control-models/poll.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/poll.control-model.js +8 -8
- package/lib/_models/control-models/poll.control-model.js.map +1 -1
- package/lib/_models/control-models/range-value.control-model.d.ts +20 -20
- package/lib/_models/control-models/range-value.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/range-value.control-model.js +15 -15
- package/lib/_models/control-models/range-value.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.d.ts +3 -3
- package/lib/_models/control-models/usage-action.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/usage-action.control-model.js +3 -3
- package/lib/_models/control-models/usage-action.control-model.js.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.d.ts +6 -6
- package/lib/_models/control-models/usage-data.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/usage-data.control-model.js +3 -3
- package/lib/_models/control-models/usage-data.control-model.js.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.d.ts +7 -7
- package/lib/_models/data-models/custom-data.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/custom-data.data-model.js +4 -4
- package/lib/_models/data-models/custom-data.data-model.js.map +1 -1
- package/lib/_models/data-models/metadata.data-model.d.ts +5 -5
- package/lib/_models/data-models/metadata.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/metadata.data-model.js +3 -3
- package/lib/_models/data-models/metadata.data-model.js.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.d.ts +10 -10
- package/lib/_models/data-models/usage-session.data-model.d.ts.map +1 -1
- package/lib/_models/data-models/usage-session.data-model.js +4 -4
- package/lib/_models/data-models/usage-session.data-model.js.map +1 -1
- package/lib/_models/interfaces/error-defaults.interface.d.ts +1 -1
- package/lib/_models/interfaces/error-defaults.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/country-division.interface.d.ts +1 -1
- package/lib/_models/interfaces/location/country-division.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/country-iso.interface.d.ts +7 -7
- package/lib/_models/interfaces/location/country-iso.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/country-phone-code.interface.d.ts +1 -1
- package/lib/_models/interfaces/location/country-phone-code.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/division-collection.interface.d.ts +1 -1
- package/lib/_models/interfaces/location/division-collection.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/division-region-data.interface.d.ts +4 -4
- package/lib/_models/interfaces/location/division-region-data.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts +1 -1
- package/lib/_models/interfaces/location/geo-ip-location.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/location/location-coordinates.interface.d.ts +1 -1
- package/lib/_models/interfaces/location/location-coordinates.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/paged.interace.d.ts +1 -1
- package/lib/_models/interfaces/paged.interace.d.ts.map +1 -1
- package/lib/_models/interfaces/random-weight.interface.d.ts +1 -1
- package/lib/_models/interfaces/random-weight.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/route-settings.interface.d.ts +4 -4
- package/lib/_models/interfaces/route-settings.interface.d.ts.map +1 -1
- package/lib/_utils/array.util.d.ts +4 -4
- package/lib/_utils/array.util.d.ts.map +1 -1
- package/lib/_utils/array.util.js +3 -3
- package/lib/_utils/array.util.js.map +1 -1
- package/lib/_utils/array.util.spec.js +5 -5
- package/lib/_utils/array.util.spec.js.map +1 -1
- package/lib/_utils/box-bounds.util.d.ts +12 -12
- package/lib/_utils/box-bounds.util.d.ts.map +1 -1
- package/lib/_utils/box-bounds.util.js +7 -7
- package/lib/_utils/box-bounds.util.js.map +1 -1
- package/lib/_utils/index.d.ts +0 -1
- package/lib/_utils/index.d.ts.map +1 -1
- package/lib/_utils/index.js +0 -1
- package/lib/_utils/index.js.map +1 -1
- package/lib/_utils/location.util.d.ts +4 -4
- package/lib/_utils/location.util.d.ts.map +1 -1
- package/lib/_utils/location.util.js +9 -9
- package/lib/_utils/location.util.js.map +1 -1
- package/lib/_utils/log.util.d.ts +17 -17
- package/lib/_utils/log.util.d.ts.map +1 -1
- package/lib/_utils/log.util.js +25 -25
- package/lib/_utils/log.util.js.map +1 -1
- package/lib/_utils/math.util.d.ts +1 -1
- package/lib/_utils/math.util.d.ts.map +1 -1
- package/lib/_utils/math.util.js +3 -3
- package/lib/_utils/math.util.js.map +1 -1
- package/lib/_utils/random.util.d.ts +5 -5
- package/lib/_utils/random.util.d.ts.map +1 -1
- package/lib/_utils/random.util.js +3 -3
- package/lib/_utils/random.util.js.map +1 -1
- package/lib/_utils/regex/password-regex.util.d.ts +2 -2
- package/lib/_utils/regex/password-regex.util.d.ts.map +1 -1
- package/lib/_utils/regex/password-regex.util.js +7 -7
- package/lib/_utils/regex/password-regex.util.js.map +1 -1
- package/lib/_utils/regex/username-regex.util.d.ts +1 -1
- package/lib/_utils/regex/username-regex.util.d.ts.map +1 -1
- package/lib/_utils/regex/username-regex.util.js +3 -3
- package/lib/_utils/regex/username-regex.util.js.map +1 -1
- package/lib/_utils/regex.util.d.ts +1 -1
- package/lib/_utils/regex.util.d.ts.map +1 -1
- package/lib/_utils/regex.util.js +2 -2
- package/lib/_utils/regex.util.js.map +1 -1
- package/lib/_utils/regions.util.d.ts +12 -12
- package/lib/_utils/regions.util.d.ts.map +1 -1
- package/lib/_utils/regions.util.js +13 -13
- package/lib/_utils/regions.util.js.map +1 -1
- package/lib/_utils/round-list.util.d.ts +2 -2
- package/lib/_utils/round-list.util.d.ts.map +1 -1
- package/lib/_utils/round-list.util.js +3 -3
- package/lib/_utils/round-list.util.js.map +1 -1
- package/lib/_utils/shared.static-service.d.ts +2 -2
- package/lib/_utils/shared.static-service.d.ts.map +1 -1
- package/lib/_utils/shared.static-service.js +8 -8
- package/lib/_utils/shared.static-service.js.map +1 -1
- package/lib/_utils/time.util.d.ts +16 -16
- package/lib/_utils/time.util.d.ts.map +1 -1
- package/lib/_utils/time.util.js +29 -29
- package/lib/_utils/time.util.js.map +1 -1
- package/lib/_utils/trigonometry.util.d.ts +4 -4
- package/lib/_utils/trigonometry.util.d.ts.map +1 -1
- package/lib/_utils/trigonometry.util.js +3 -3
- package/lib/_utils/trigonometry.util.js.map +1 -1
- package/lib/_utils/type-cloning-facility.util.d.ts +4 -4
- package/lib/_utils/type-cloning-facility.util.d.ts.map +1 -1
- package/lib/_utils/type-cloning-facility.util.js +3 -3
- package/lib/_utils/type-cloning-facility.util.js.map +1 -1
- package/lib/_utils/utilities.util.d.ts +25 -25
- package/lib/_utils/utilities.util.d.ts.map +1 -1
- package/lib/_utils/utilities.util.js +34 -34
- package/lib/_utils/utilities.util.js.map +1 -1
- package/lib/_utils/vector2.util.d.ts +36 -36
- package/lib/_utils/vector2.util.d.ts.map +1 -1
- package/lib/_utils/vector2.util.js +37 -37
- package/lib/_utils/vector2.util.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +157 -160
- package/src/_constants/error-defaults.const.ts +2 -2
- package/src/_constants/module-settings/custom-data-module-settings.const.ts +9 -4
- package/src/_constants/module-settings/test-module-settings.const.ts +13 -8
- package/src/_constants/module-settings/usage-module-settings.const.ts +13 -6
- package/src/_enums/basic-property-type.enum.ts +1 -1
- package/src/_enums/data-model-type.enum.ts +1 -1
- package/src/_enums/day-of-week.enum.ts +11 -11
- package/src/_enums/error-level.enum.ts +1 -1
- package/src/_enums/log-style.enum.ts +1 -1
- package/src/_enums/month.enum.ts +1 -1
- package/src/_enums/region.enum.ts +1 -1
- package/src/_enums/relative-date.enum.ts +1 -1
- package/src/_enums/sub-region.enum.ts +1 -1
- package/src/_enums/subdivision-region-type.enum.ts +1 -1
- package/src/_models/control-models/daily-usage-data.control-model.ts +5 -5
- package/src/_models/control-models/data-model-params.control-model.ts +15 -25
- package/src/_models/control-models/data-property-params.control-model.ts +15 -15
- package/src/_models/control-models/error.control-model.spec.ts +69 -69
- package/src/_models/control-models/error.control-model.ts +80 -80
- package/src/_models/control-models/poll.control-model.ts +8 -8
- package/src/_models/control-models/range-value.control-model.ts +58 -58
- package/src/_models/control-models/usage-action.control-model.ts +3 -3
- package/src/_models/control-models/usage-data.control-model.ts +6 -6
- package/src/_models/data-models/custom-data.data-model.ts +13 -12
- package/src/_models/data-models/metadata.data-model.ts +5 -5
- package/src/_models/data-models/usage-session.data-model.ts +28 -27
- package/src/_models/interfaces/error-defaults.interface.ts +1 -1
- package/src/_models/interfaces/location/country-division.interface.ts +1 -1
- package/src/_models/interfaces/location/country-iso.interface.ts +7 -7
- package/src/_models/interfaces/location/country-phone-code.interface.ts +1 -1
- package/src/_models/interfaces/location/division-collection.interface.ts +1 -1
- package/src/_models/interfaces/location/division-region-data.interface.ts +4 -4
- package/src/_models/interfaces/location/geo-ip-location.interface.ts +1 -1
- package/src/_models/interfaces/location/location-coordinates.interface.ts +1 -1
- package/src/_models/interfaces/paged.interace.ts +1 -1
- package/src/_models/interfaces/random-weight.interface.ts +1 -1
- package/src/_models/interfaces/route-settings.interface.ts +4 -4
- package/src/_utils/array.util.spec.ts +7 -7
- package/src/_utils/array.util.ts +4 -4
- package/src/_utils/box-bounds.util.ts +19 -19
- package/src/_utils/index.ts +0 -1
- package/src/_utils/location.util.ts +13 -13
- package/src/_utils/log.util.ts +36 -36
- package/src/_utils/math.util.ts +1 -1
- package/src/_utils/random.util.ts +9 -5
- package/src/_utils/regex/password-regex.util.ts +5 -5
- package/src/_utils/regex/username-regex.util.ts +2 -2
- package/src/_utils/regex.util.ts +1 -1
- package/src/_utils/regions.util.ts +33 -33
- package/src/_utils/round-list.util.ts +2 -2
- package/src/_utils/shared.static-service.ts +8 -8
- package/src/_utils/time.util.ts +40 -40
- package/src/_utils/trigonometry.util.ts +4 -4
- package/src/_utils/type-cloning-facility.util.ts +4 -4
- package/src/_utils/utilities.util.ts +31 -27
- package/src/_utils/vector2.util.ts +67 -67
- package/tsconfig.json +2 -1
- package/lib/_utils/metadata.util.d.ts +0 -2
- package/lib/_utils/metadata.util.d.ts.map +0 -1
- package/lib/_utils/metadata.util.js +0 -32
- package/lib/_utils/metadata.util.js.map +0 -1
- 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.
|
|
4
|
-
"description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
"
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
|
|
157
|
-
|
|
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 {
|
|
1
|
+
import { DynamoFM_Error_Defaults } from '../_models';
|
|
2
2
|
|
|
3
|
-
export const
|
|
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 {
|
|
2
|
+
import { DynamoFM_Route_Settings } from '../../_models/interfaces/route-settings.interface';
|
|
3
3
|
|
|
4
|
-
export
|
|
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 {
|
|
2
|
+
import { DynamoFM_Route_Settings } from '../../_models/interfaces/route-settings.interface';
|
|
3
3
|
|
|
4
|
-
export
|
|
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
|
-
|
|
10
|
-
|
|
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 {
|
|
2
|
+
import { DynamoFM_Route_Settings } from '../../_models/interfaces/route-settings.interface';
|
|
3
3
|
|
|
4
|
-
export
|
|
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
|
};
|
|
@@ -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
|
|
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
|
|
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
|
|
14
|
+
export const DynamoFM_allDaysOfWeek = Object.values(DynamoFM_DayOfWeek);
|
|
15
15
|
|
|
16
16
|
/** stupid style */
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
26
|
+
export const DynamoFM_allDaysOfWeekStupid = DynamoFM_allDaysOfWeekAmericanStyle;
|
|
27
27
|
|
|
28
28
|
|
package/src/_enums/month.enum.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { DynamoFM_UsageSession } from '../data-models/usage-session.data-model';
|
|
3
3
|
|
|
4
|
-
export type
|
|
5
|
-
export class
|
|
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?:
|
|
12
|
+
visitations?: DynamoFM_UsageSession[] = [];
|
|
13
13
|
|
|
14
14
|
constructor(
|
|
15
|
-
set?:
|
|
15
|
+
set?: DynamoFM_DailyUsageData
|
|
16
16
|
) {
|
|
17
17
|
if (set) {
|
|
18
18
|
Object.assign(this, set);
|
|
@@ -1,40 +1,30 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
7
|
-
export type
|
|
8
|
-
export class
|
|
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?:
|
|
10
|
+
modelType?: DynamoFM_DataModelType;
|
|
11
11
|
dbName?: string;
|
|
12
|
-
properties?:
|
|
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
|
|
26
|
-
export type
|
|
27
|
-
export class
|
|
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?:
|
|
19
|
+
override properties?: DynamoFM_DataProperty_Params[] = [];
|
|
30
20
|
|
|
31
21
|
constructor(
|
|
32
|
-
set:
|
|
22
|
+
set: DynamoFM_DataModel_Settings
|
|
33
23
|
) {
|
|
34
24
|
super(set);
|
|
35
25
|
|
|
36
|
-
if (!set?.modelType || set?.modelType ==
|
|
37
|
-
set.modelType =
|
|
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
|
|