@futdevpro/fsm-dynamo 1.10.36 → 1.10.38

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 (150) hide show
  1. package/build/_collections/constants/global-settings.const.d.ts.map +1 -1
  2. package/build/_collections/constants/global-settings.const.js +1 -0
  3. package/build/_collections/constants/global-settings.const.js.map +1 -1
  4. package/build/_collections/utils/array.util.spec.js +34 -34
  5. package/build/_collections/utils/array.util.spec.js.map +1 -1
  6. package/build/_collections/utils/log.util.spec.js +12 -12
  7. package/build/_collections/utils/log.util.spec.js.map +1 -1
  8. package/build/_collections/utils/math/box-bounds.spec.js +11 -11
  9. package/build/_collections/utils/math/box-bounds.spec.js.map +1 -1
  10. package/build/_collections/utils/math/box-bounds.util.spec.js +8 -8
  11. package/build/_collections/utils/math/box-bounds.util.spec.js.map +1 -1
  12. package/build/_collections/utils/math/math.util.spec.js +24 -24
  13. package/build/_collections/utils/math/math.util.spec.js.map +1 -1
  14. package/build/_collections/utils/math/random.util.spec.js +13 -13
  15. package/build/_collections/utils/math/random.util.spec.js.map +1 -1
  16. package/build/_collections/utils/math/trigonometry.util.spec.js +13 -13
  17. package/build/_collections/utils/math/trigonometry.util.spec.js.map +1 -1
  18. package/build/_collections/utils/math/vector2.util.spec.js +14 -14
  19. package/build/_collections/utils/math/vector2.util.spec.js.map +1 -1
  20. package/build/_collections/utils/regex/password-regex.util.spec.js +8 -8
  21. package/build/_collections/utils/regex/password-regex.util.spec.js.map +1 -1
  22. package/build/_collections/utils/regex/regex.util.spec.js +2 -2
  23. package/build/_collections/utils/regex/regex.util.spec.js.map +1 -1
  24. package/build/_collections/utils/regex/username-regex.util.spec.js +3 -3
  25. package/build/_collections/utils/regex/username-regex.util.spec.js.map +1 -1
  26. package/build/_collections/utils/round-list.util.spec.js +20 -20
  27. package/build/_collections/utils/round-list.util.spec.js.map +1 -1
  28. package/build/_collections/utils/shared.util.spec.js +15 -15
  29. package/build/_collections/utils/shared.util.spec.js.map +1 -1
  30. package/build/_collections/utils/string.util.spec.js +9 -9
  31. package/build/_collections/utils/string.util.spec.js.map +1 -1
  32. package/build/_collections/utils/time.util.spec.js +1 -1
  33. package/build/_collections/utils/time.util.spec.js.map +1 -1
  34. package/build/_collections/utils/type-cloning-facility.util.spec.js +5 -5
  35. package/build/_collections/utils/type-cloning-facility.util.spec.js.map +1 -1
  36. package/build/_collections/utils/utilities.util.spec.js +35 -35
  37. package/build/_collections/utils/utilities.util.spec.js.map +1 -1
  38. package/build/_collections/utils/uuid.util.spec.js +6 -6
  39. package/build/_collections/utils/uuid.util.spec.js.map +1 -1
  40. package/build/_models/control-models/data-model-params.control-model.spec.js +6 -6
  41. package/build/_models/control-models/data-model-params.control-model.spec.js.map +1 -1
  42. package/build/_models/control-models/data-property-params.control-model.spec.js +2 -2
  43. package/build/_models/control-models/data-property-params.control-model.spec.js.map +1 -1
  44. package/build/_models/control-models/error.control-model.spec.js +157 -157
  45. package/build/_models/control-models/error.control-model.spec.js.map +1 -1
  46. package/build/_models/control-models/poll.control-model.spec.js +2 -2
  47. package/build/_models/control-models/poll.control-model.spec.js.map +1 -1
  48. package/build/_models/control-models/range-value.control-model.spec.js +27 -27
  49. package/build/_models/control-models/range-value.control-model.spec.js.map +1 -1
  50. package/build/_models/interfaces/environment/global-settings.interface.d.ts +1 -0
  51. package/build/_models/interfaces/environment/global-settings.interface.d.ts.map +1 -1
  52. package/build/_modules/crypto/_collections/crypto.util.d.ts +11 -17
  53. package/build/_modules/crypto/_collections/crypto.util.d.ts.map +1 -1
  54. package/build/_modules/crypto/_collections/crypto.util.js +74 -58
  55. package/build/_modules/crypto/_collections/crypto.util.js.map +1 -1
  56. package/build/_modules/crypto/_collections/crypto.util.spec.js +421 -31
  57. package/build/_modules/crypto/_collections/crypto.util.spec.js.map +1 -1
  58. package/build/_modules/custom-data/_models/cud.data-model.spec.js +7 -7
  59. package/build/_modules/custom-data/_models/cud.data-model.spec.js.map +1 -1
  60. package/build/_modules/location/_collections/loc-regions.util.spec.js +10 -10
  61. package/build/_modules/location/_collections/loc-regions.util.spec.js.map +1 -1
  62. package/build/_modules/location/_collections/loc.util.spec.js +6 -6
  63. package/build/_modules/location/_collections/loc.util.spec.js.map +1 -1
  64. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js +6 -6
  65. package/build/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.js.map +1 -1
  66. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js +6 -6
  67. package/build/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.js.map +1 -1
  68. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js +6 -6
  69. package/build/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.js.map +1 -1
  70. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js +6 -6
  71. package/build/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.js.map +1 -1
  72. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js +8 -8
  73. package/build/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.js.map +1 -1
  74. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js +5 -5
  75. package/build/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.js.map +1 -1
  76. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js +8 -8
  77. package/build/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.js.map +1 -1
  78. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js +4 -4
  79. package/build/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.js.map +1 -1
  80. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js +9 -9
  81. package/build/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.js.map +1 -1
  82. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js +4 -4
  83. package/build/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.js.map +1 -1
  84. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js +7 -7
  85. package/build/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.js.map +1 -1
  86. package/build/_modules/socket/_models/sck-client-params.control-model.spec.js +5 -5
  87. package/build/_modules/socket/_models/sck-client-params.control-model.spec.js.map +1 -1
  88. package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js +5 -5
  89. package/build/_modules/socket/_models/sck-socket-event.control-model.spec.js.map +1 -1
  90. package/build/_modules/socket/_services/sck-client.service-base.spec.js +7 -7
  91. package/build/_modules/socket/_services/sck-client.service-base.spec.js.map +1 -1
  92. package/build/_modules/usage/_models/usg-action.control-model.spec.js +4 -4
  93. package/build/_modules/usage/_models/usg-action.control-model.spec.js.map +1 -1
  94. package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js +3 -3
  95. package/build/_modules/usage/_models/usg-daily-usage-data.control-model.spec.js.map +1 -1
  96. package/build/_modules/usage/_models/usg-data.control-model.spec.js +4 -4
  97. package/build/_modules/usage/_models/usg-data.control-model.spec.js.map +1 -1
  98. package/build/_modules/usage/_models/usg-session.data-model.spec.js +7 -7
  99. package/build/_modules/usage/_models/usg-session.data-model.spec.js.map +1 -1
  100. package/futdevpro-fsm-dynamo-01.10.38.tgz +0 -0
  101. package/package.json +1 -1
  102. package/src/_collections/constants/global-settings.const.ts +2 -0
  103. package/src/_collections/utils/array.util.spec.ts +34 -34
  104. package/src/_collections/utils/log.util.spec.ts +12 -12
  105. package/src/_collections/utils/math/box-bounds.spec.ts +11 -11
  106. package/src/_collections/utils/math/box-bounds.util.spec.ts +8 -8
  107. package/src/_collections/utils/math/math.util.spec.ts +24 -24
  108. package/src/_collections/utils/math/random.util.spec.ts +13 -13
  109. package/src/_collections/utils/math/trigonometry.util.spec.ts +13 -13
  110. package/src/_collections/utils/math/vector2.util.spec.ts +14 -14
  111. package/src/_collections/utils/regex/password-regex.util.spec.ts +8 -8
  112. package/src/_collections/utils/regex/regex.util.spec.ts +2 -2
  113. package/src/_collections/utils/regex/username-regex.util.spec.ts +3 -3
  114. package/src/_collections/utils/round-list.util.spec.ts +20 -20
  115. package/src/_collections/utils/shared.util.spec.ts +15 -15
  116. package/src/_collections/utils/string.util.spec.ts +9 -9
  117. package/src/_collections/utils/time.util.spec.ts +1 -1
  118. package/src/_collections/utils/type-cloning-facility.util.spec.ts +5 -5
  119. package/src/_collections/utils/utilities.util.spec.ts +35 -35
  120. package/src/_collections/utils/uuid.util.spec.ts +6 -6
  121. package/src/_models/control-models/data-model-params.control-model.spec.ts +6 -6
  122. package/src/_models/control-models/data-property-params.control-model.spec.ts +2 -2
  123. package/src/_models/control-models/error.control-model.spec.ts +157 -157
  124. package/src/_models/control-models/poll.control-model.spec.ts +2 -2
  125. package/src/_models/control-models/range-value.control-model.spec.ts +27 -27
  126. package/src/_models/interfaces/environment/global-settings.interface.ts +2 -0
  127. package/src/_modules/crypto/_collections/crypto.util.spec.ts +459 -31
  128. package/src/_modules/crypto/_collections/crypto.util.ts +86 -52
  129. package/src/_modules/custom-data/_models/cud.data-model.spec.ts +7 -7
  130. package/src/_modules/location/_collections/loc-regions.util.spec.ts +10 -10
  131. package/src/_modules/location/_collections/loc.util.spec.ts +6 -6
  132. package/src/_modules/pipe/_collections/utils/pip-country-pipe.util.spec.ts +6 -6
  133. package/src/_modules/pipe/_collections/utils/pip-custom-pipe.util.spec.ts +6 -6
  134. package/src/_modules/pipe/_collections/utils/pip-division-pipe.util.spec.ts +6 -6
  135. package/src/_modules/pipe/_collections/utils/pip-list-pipe.util.spec.ts +6 -6
  136. package/src/_modules/pipe/_collections/utils/pip-multi-pipe-pipe.util.spec.ts +8 -8
  137. package/src/_modules/pipe/_collections/utils/pip-obj-key-pipe.util.spec.ts +5 -5
  138. package/src/_modules/pipe/_collections/utils/pip-range-pipe.util.spec.ts +8 -8
  139. package/src/_modules/pipe/_collections/utils/pip-region-pipe.util.spec.ts +4 -4
  140. package/src/_modules/pipe/_collections/utils/pip-replace-pipe.util.spec.ts +9 -9
  141. package/src/_modules/pipe/_collections/utils/pip-slider-pipe.util.spec.ts +4 -4
  142. package/src/_modules/pipe/_collections/utils/pip-smart-replace-pipe.util.spec.ts +7 -7
  143. package/src/_modules/socket/_models/sck-client-params.control-model.spec.ts +5 -5
  144. package/src/_modules/socket/_models/sck-socket-event.control-model.spec.ts +5 -5
  145. package/src/_modules/socket/_services/sck-client.service-base.spec.ts +7 -7
  146. package/src/_modules/usage/_models/usg-action.control-model.spec.ts +4 -4
  147. package/src/_modules/usage/_models/usg-daily-usage-data.control-model.spec.ts +3 -3
  148. package/src/_modules/usage/_models/usg-data.control-model.spec.ts +4 -4
  149. package/src/_modules/usage/_models/usg-session.data-model.spec.ts +7 -7
  150. package/futdevpro-fsm-dynamo-01.10.36.tgz +0 -0
@@ -2,7 +2,7 @@
2
2
  import { DyFM_Error } from './error.control-model';
3
3
  import { DyFM_Poll } from './poll.control-model';
4
4
 
5
- describe('DyFM_Poll', () => {
5
+ describe('| DyFM_Poll', () => {
6
6
  let pollInstance: DyFM_Poll<number>;
7
7
  let pollDo: jasmine.Spy<(...args: any[]) => Promise<number>>;
8
8
  let pollWhile: jasmine.Spy<(res: number) => boolean>;
@@ -28,7 +28,7 @@ describe('DyFM_Poll', () => {
28
28
  expect(pollDo).toHaveBeenCalled();
29
29
  });
30
30
 
31
- it('should stop polling when stop is called', () => {
31
+ it('| should stop polling when stop is called', () => {
32
32
  pollInstance.stop();
33
33
  expect(pollInstance.running).toBeFalse();
34
34
  });
@@ -1,27 +1,27 @@
1
1
 
2
2
  import { DyFM_RangeValue } from './range-value.control-model';
3
3
 
4
- describe('DyFM_RangeValue', () => {
5
- it('should create an instance with the same from and to values when a single number is provided', () => {
4
+ describe('| DyFM_RangeValue', () => {
5
+ it('| should create an instance with the same from and to values when a single number is provided', () => {
6
6
  const range = new DyFM_RangeValue(5);
7
7
  expect(range.from).toBe(5);
8
8
  expect(range.to).toBe(5);
9
9
  });
10
10
 
11
- it('should create an instance with different from and to values when two numbers are provided', () => {
11
+ it('| should create an instance with different from and to values when two numbers are provided', () => {
12
12
  const range = new DyFM_RangeValue(5, 10);
13
13
  expect(range.from).toBe(5);
14
14
  expect(range.to).toBe(10);
15
15
  });
16
16
 
17
- it('should copy from and to values from another DyFM_RangeValue instance', () => {
17
+ it('| should copy from and to values from another DyFM_RangeValue instance', () => {
18
18
  const original = new DyFM_RangeValue(5, 10);
19
19
  const copy = new DyFM_RangeValue(original);
20
20
  expect(copy.from).toBe(5);
21
21
  expect(copy.to).toBe(10);
22
22
  });
23
23
 
24
- it('should update from and to values using newValues method', () => {
24
+ it('| should update from and to values using newValues method', () => {
25
25
  const range = new DyFM_RangeValue(5, 10);
26
26
  const newRange = new DyFM_RangeValue(15, 20);
27
27
  range.newValues(newRange);
@@ -29,7 +29,7 @@ describe('DyFM_RangeValue', () => {
29
29
  expect(range.to).toBe(20);
30
30
  });
31
31
 
32
- it('should add a range to the current range', () => {
32
+ it('| should add a range to the current range', () => {
33
33
  const range = new DyFM_RangeValue(5, 10);
34
34
  const addRange = new DyFM_RangeValue(2, 3);
35
35
  range.addRange(addRange);
@@ -37,7 +37,7 @@ describe('DyFM_RangeValue', () => {
37
37
  expect(range.to).toBe(13);
38
38
  });
39
39
 
40
- it('should subtract a range from the current range', () => {
40
+ it('| should subtract a range from the current range', () => {
41
41
  const range = new DyFM_RangeValue(5, 10);
42
42
  const subtractRange = new DyFM_RangeValue(2, 3);
43
43
  range.subtractRange(subtractRange);
@@ -45,7 +45,7 @@ describe('DyFM_RangeValue', () => {
45
45
  expect(range.to).toBe(7);
46
46
  });
47
47
 
48
- it('should multiply the current range by another range', () => {
48
+ it('| should multiply the current range by another range', () => {
49
49
  const range = new DyFM_RangeValue(5, 10);
50
50
  const multiplyRange = new DyFM_RangeValue(2, 3);
51
51
  range.multiplyRange(multiplyRange);
@@ -53,7 +53,7 @@ describe('DyFM_RangeValue', () => {
53
53
  expect(range.to).toBe(30);
54
54
  });
55
55
 
56
- it('should divide the current range by another range', () => {
56
+ it('| should divide the current range by another range', () => {
57
57
  const range = new DyFM_RangeValue(10, 20);
58
58
  const divideRange = new DyFM_RangeValue(2, 4);
59
59
  range.divideRange(divideRange);
@@ -61,71 +61,71 @@ describe('DyFM_RangeValue', () => {
61
61
  expect(range.to).toBe(5);
62
62
  });
63
63
 
64
- it('should add a number to both from and to values', () => {
64
+ it('| should add a number to both from and to values', () => {
65
65
  const range = new DyFM_RangeValue(5, 10);
66
66
  range.add(5);
67
67
  expect(range.from).toBe(10);
68
68
  expect(range.to).toBe(15);
69
69
  });
70
70
 
71
- it('should subtract a number from both from and to values', () => {
71
+ it('| should subtract a number from both from and to values', () => {
72
72
  const range = new DyFM_RangeValue(5, 10);
73
73
  range.subtract(3);
74
74
  expect(range.from).toBe(2);
75
75
  expect(range.to).toBe(7);
76
76
  });
77
77
 
78
- it('should multiply both from and to values by a number', () => {
78
+ it('| should multiply both from and to values by a number', () => {
79
79
  const range = new DyFM_RangeValue(5, 10);
80
80
  range.multiply(2);
81
81
  expect(range.from).toBe(10);
82
82
  expect(range.to).toBe(20);
83
83
  });
84
84
 
85
- it('should divide both from and to values by a number', () => {
85
+ it('| should divide both from and to values by a number', () => {
86
86
  const range = new DyFM_RangeValue(10, 20);
87
87
  range.divide(2);
88
88
  expect(range.from).toBe(5);
89
89
  expect(range.to).toBe(10);
90
90
  });
91
91
 
92
- it('should clone the range', () => {
92
+ it('| should clone the range', () => {
93
93
  const range = new DyFM_RangeValue(5, 10);
94
94
  const clone = range.clone();
95
95
  expect(clone.from).toBe(5);
96
96
  expect(clone.to).toBe(10);
97
97
  });
98
98
 
99
- it('should apply a transformation to both from and to values', () => {
99
+ it('| should apply a transformation to both from and to values', () => {
100
100
  const range = new DyFM_RangeValue(5, 10);
101
101
  const transformed = range.applyTransform(value => value * 2);
102
102
  expect(transformed.from).toBe(10);
103
103
  expect(transformed.to).toBe(20);
104
104
  });
105
105
 
106
- it('should stringify the range with spaces', () => {
106
+ it('| should stringify the range with spaces', () => {
107
107
  const range = new DyFM_RangeValue(5, 10);
108
108
  expect(range.stringify()).toBe('5 - 10');
109
109
  });
110
110
 
111
- it('should stringify the range without spaces', () => {
111
+ it('| should stringify the range without spaces', () => {
112
112
  const range = new DyFM_RangeValue(5, 10);
113
113
  expect(range.stringify(false)).toBe('5-10');
114
114
  });
115
115
 
116
- it('should auto-stringify when from and to are equal', () => {
116
+ it('| should auto-stringify when from and to are equal', () => {
117
117
  const range = new DyFM_RangeValue(5, 5);
118
118
  expect(range.stringify()).toBe('5');
119
119
  });
120
120
 
121
- it('should retype a range value', () => {
121
+ it('| should retype a range value', () => {
122
122
  const range = new DyFM_RangeValue(5, 10);
123
123
  const retyped = DyFM_RangeValue.reType(range);
124
124
  expect(retyped.from).toBe(5);
125
125
  expect(retyped.to).toBe(10);
126
126
  });
127
127
 
128
- it('should add two ranges statically', () => {
128
+ it('| should add two ranges statically', () => {
129
129
  const a = new DyFM_RangeValue(5, 10);
130
130
  const b = new DyFM_RangeValue(2, 3);
131
131
  const result = DyFM_RangeValue.addRange(a, b);
@@ -133,7 +133,7 @@ describe('DyFM_RangeValue', () => {
133
133
  expect(result.to).toBe(13);
134
134
  });
135
135
 
136
- it('should subtract two ranges statically', () => {
136
+ it('| should subtract two ranges statically', () => {
137
137
  const a = new DyFM_RangeValue(5, 10);
138
138
  const b = new DyFM_RangeValue(2, 3);
139
139
  const result = DyFM_RangeValue.subtractRange(a, b);
@@ -141,7 +141,7 @@ describe('DyFM_RangeValue', () => {
141
141
  expect(result.to).toBe(7);
142
142
  });
143
143
 
144
- it('should multiply two ranges statically', () => {
144
+ it('| should multiply two ranges statically', () => {
145
145
  const a = new DyFM_RangeValue(5, 10);
146
146
  const b = new DyFM_RangeValue(2, 3);
147
147
  const result = DyFM_RangeValue.multiplyRange(a, b);
@@ -149,7 +149,7 @@ describe('DyFM_RangeValue', () => {
149
149
  expect(result.to).toBe(30);
150
150
  });
151
151
 
152
- it('should divide two ranges statically', () => {
152
+ it('| should divide two ranges statically', () => {
153
153
  const a = new DyFM_RangeValue(10, 20);
154
154
  const b = new DyFM_RangeValue(2, 4);
155
155
  const result = DyFM_RangeValue.divideRange(a, b);
@@ -157,28 +157,28 @@ describe('DyFM_RangeValue', () => {
157
157
  expect(result.to).toBe(5);
158
158
  });
159
159
 
160
- it('should add a number to a range statically', () => {
160
+ it('| should add a number to a range statically', () => {
161
161
  const a = new DyFM_RangeValue(5, 10);
162
162
  const result = DyFM_RangeValue.add(a, 5);
163
163
  expect(result.from).toBe(10);
164
164
  expect(result.to).toBe(15);
165
165
  });
166
166
 
167
- it('should subtract a number from a range statically', () => {
167
+ it('| should subtract a number from a range statically', () => {
168
168
  const a = new DyFM_RangeValue(5, 10);
169
169
  const result = DyFM_RangeValue.subtract(a, 3);
170
170
  expect(result.from).toBe(2);
171
171
  expect(result.to).toBe(7);
172
172
  });
173
173
 
174
- it('should multiply a range by a number statically', () => {
174
+ it('| should multiply a range by a number statically', () => {
175
175
  const a = new DyFM_RangeValue(5, 10);
176
176
  const result = DyFM_RangeValue.multiply(a, 2);
177
177
  expect(result.from).toBe(10);
178
178
  expect(result.to).toBe(20);
179
179
  });
180
180
 
181
- it('should divide a range by a number statically', () => {
181
+ it('| should divide a range by a number statically', () => {
182
182
  const a = new DyFM_RangeValue(10, 20);
183
183
  const result = DyFM_RangeValue.divide(a, 2);
184
184
  expect(result.from).toBe(5);
@@ -9,6 +9,8 @@ import { DyFM_GlobalLog_Settings } from './global-log-settings.interface';
9
9
  *
10
10
  */
11
11
  export interface DyFM_Global_Settings {
12
+ systemShortCodeName: string;
13
+
12
14
  /**
13
15
  * this will be used as the main baseUrl for the application,
14
16
  * this is not required, but we suggest to use at least a '/api' as base route