@futdevpro/fsm-dynamo 1.10.38 → 1.10.40
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/.github/workflows/main.yml +11 -51
- package/build/_collections/constants/error-defaults.const.d.ts +8 -0
- package/build/_collections/constants/error-defaults.const.d.ts.map +1 -1
- package/build/_collections/constants/error-defaults.const.js +8 -0
- package/build/_collections/constants/error-defaults.const.js.map +1 -1
- package/build/_collections/constants/global-settings.const.d.ts +8 -0
- package/build/_collections/constants/global-settings.const.d.ts.map +1 -1
- package/build/_collections/constants/global-settings.const.js +8 -0
- package/build/_collections/constants/global-settings.const.js.map +1 -1
- package/build/_collections/constants/numbers.const.d.ts +32 -0
- package/build/_collections/constants/numbers.const.d.ts.map +1 -1
- package/build/_collections/constants/numbers.const.js +32 -0
- package/build/_collections/constants/numbers.const.js.map +1 -1
- package/build/_collections/constants/times.const.d.ts +31 -0
- package/build/_collections/constants/times.const.d.ts.map +1 -1
- package/build/_collections/constants/times.const.js +31 -0
- package/build/_collections/constants/times.const.js.map +1 -1
- package/build/_collections/utils/array.util.d.ts +136 -7
- package/build/_collections/utils/array.util.d.ts.map +1 -1
- package/build/_collections/utils/array.util.js +132 -2
- package/build/_collections/utils/array.util.js.map +1 -1
- package/build/_collections/utils/array.util.spec.js.map +1 -1
- package/build/_collections/utils/log.util.d.ts +123 -0
- package/build/_collections/utils/log.util.d.ts.map +1 -1
- package/build/_collections/utils/log.util.js +123 -0
- package/build/_collections/utils/log.util.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.spec.js +2 -5
- package/build/_collections/utils/math/box-bounds.spec.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.d.ts +52 -6
- package/build/_collections/utils/math/box-bounds.util.d.ts.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.js +57 -5
- package/build/_collections/utils/math/box-bounds.util.js.map +1 -1
- package/build/_collections/utils/math/box-bounds.util.spec.js +1 -1
- package/build/_collections/utils/math/box-bounds.util.spec.js.map +1 -1
- package/build/_collections/utils/math/math.util.d.ts +30 -0
- package/build/_collections/utils/math/math.util.d.ts.map +1 -1
- package/build/_collections/utils/math/math.util.js +30 -0
- package/build/_collections/utils/math/math.util.js.map +1 -1
- package/build/_collections/utils/math/random.util.d.ts +19 -2
- package/build/_collections/utils/math/random.util.d.ts.map +1 -1
- package/build/_collections/utils/math/random.util.js +22 -0
- package/build/_collections/utils/math/random.util.js.map +1 -1
- package/build/_collections/utils/math/random.util.spec.js.map +1 -1
- package/build/_collections/utils/math/vector2.util.d.ts +142 -20
- package/build/_collections/utils/math/vector2.util.d.ts.map +1 -1
- package/build/_collections/utils/math/vector2.util.js +126 -0
- package/build/_collections/utils/math/vector2.util.js.map +1 -1
- package/build/_collections/utils/round-list.util.d.ts +36 -1
- package/build/_collections/utils/round-list.util.d.ts.map +1 -1
- package/build/_collections/utils/round-list.util.js +35 -0
- package/build/_collections/utils/round-list.util.js.map +1 -1
- package/build/_collections/utils/shared.util.js.map +1 -1
- package/build/_collections/utils/stack.util.js +5 -5
- package/build/_collections/utils/stack.util.js.map +1 -1
- package/build/_collections/utils/string.util.d.ts +8 -1
- package/build/_collections/utils/string.util.d.ts.map +1 -1
- package/build/_collections/utils/string.util.js +8 -1
- package/build/_collections/utils/string.util.js.map +1 -1
- package/build/_collections/utils/time.util.d.ts +29 -0
- package/build/_collections/utils/time.util.d.ts.map +1 -1
- package/build/_collections/utils/time.util.js +29 -0
- package/build/_collections/utils/time.util.js.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.d.ts +29 -3
- package/build/_collections/utils/type-cloning-facility.util.d.ts.map +1 -1
- package/build/_collections/utils/type-cloning-facility.util.js +53 -3
- package/build/_collections/utils/type-cloning-facility.util.js.map +1 -1
- package/build/_collections/utils/utilities.util.d.ts +49 -2
- package/build/_collections/utils/utilities.util.d.ts.map +1 -1
- package/build/_collections/utils/utilities.util.js +53 -1
- package/build/_collections/utils/utilities.util.js.map +1 -1
- package/build/_collections/utils/utilities.util.spec.js.map +1 -1
- package/build/_collections/utils/uuid.util.d.ts +5 -0
- package/build/_collections/utils/uuid.util.d.ts.map +1 -1
- package/build/_collections/utils/uuid.util.js +5 -0
- package/build/_collections/utils/uuid.util.js.map +1 -1
- package/build/_enums/basic-property-type.enum.d.ts +8 -0
- package/build/_enums/basic-property-type.enum.d.ts.map +1 -1
- package/build/_enums/basic-property-type.enum.js +8 -0
- package/build/_enums/basic-property-type.enum.js.map +1 -1
- package/build/_enums/data-model-type.enum.d.ts +8 -4
- package/build/_enums/data-model-type.enum.d.ts.map +1 -1
- package/build/_enums/data-model-type.enum.js +8 -4
- package/build/_enums/data-model-type.enum.js.map +1 -1
- package/build/_enums/environment-flag.enum.d.ts +18 -0
- package/build/_enums/environment-flag.enum.d.ts.map +1 -1
- package/build/_enums/environment-flag.enum.js +18 -0
- package/build/_enums/environment-flag.enum.js.map +1 -1
- package/build/_enums/error-level.enum.d.ts +10 -0
- package/build/_enums/error-level.enum.d.ts.map +1 -1
- package/build/_enums/error-level.enum.js +10 -0
- package/build/_enums/error-level.enum.js.map +1 -1
- package/build/_enums/http-call-type.enum.d.ts +6 -2
- package/build/_enums/http-call-type.enum.d.ts.map +1 -1
- package/build/_enums/http-call-type.enum.js +6 -2
- package/build/_enums/http-call-type.enum.js.map +1 -1
- package/build/_enums/http-response-type.enum.d.ts +8 -0
- package/build/_enums/http-response-type.enum.d.ts.map +1 -1
- package/build/_enums/http-response-type.enum.js +8 -0
- package/build/_enums/http-response-type.enum.js.map +1 -1
- package/build/_enums/log-style.enum.d.ts +8 -0
- package/build/_enums/log-style.enum.d.ts.map +1 -1
- package/build/_enums/log-style.enum.js +8 -0
- package/build/_enums/log-style.enum.js.map +1 -1
- package/build/_enums/time/day-of-week.enum.d.ts +13 -1
- package/build/_enums/time/day-of-week.enum.d.ts.map +1 -1
- package/build/_enums/time/day-of-week.enum.js +13 -1
- package/build/_enums/time/day-of-week.enum.js.map +1 -1
- package/build/_enums/time/month.enum.d.ts +8 -0
- package/build/_enums/time/month.enum.d.ts.map +1 -1
- package/build/_enums/time/month.enum.js +8 -0
- package/build/_enums/time/month.enum.js.map +1 -1
- package/build/_enums/time/relative-date.enum.d.ts +10 -0
- package/build/_enums/time/relative-date.enum.d.ts.map +1 -1
- package/build/_enums/time/relative-date.enum.js +10 -0
- package/build/_enums/time/relative-date.enum.js.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.d.ts +4 -4
- package/build/_models/control-models/data-model-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-model-params.control-model.js.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.d.ts.map +1 -1
- package/build/_models/control-models/data-property-params.control-model.js.map +1 -1
- package/build/_models/control-models/error.control-model.spec.js.map +1 -1
- package/build/_models/interfaces/box-bounds.interface.d.ts +8 -0
- package/build/_models/interfaces/box-bounds.interface.d.ts.map +1 -0
- package/build/_models/interfaces/box-bounds.interface.js +3 -0
- package/build/_models/interfaces/box-bounds.interface.js.map +1 -0
- package/build/_models/interfaces/route-settings.interface.d.ts +6 -1
- package/build/_models/interfaces/route-settings.interface.d.ts.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.d.ts.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.js.map +1 -1
- package/build/_modules/crypto/_collections/crypto.util.spec.js +45 -0
- package/build/_modules/crypto/_collections/crypto.util.spec.js.map +1 -1
- package/build/_modules/custom-data/_collections/cud-module-settings.const.d.ts +6 -0
- package/build/_modules/custom-data/_collections/cud-module-settings.const.d.ts.map +1 -1
- package/build/_modules/custom-data/_collections/cud-module-settings.const.js +6 -0
- package/build/_modules/custom-data/_collections/cud-module-settings.const.js.map +1 -1
- package/build/_modules/custom-data/_models/cud.data-model.d.ts +3 -0
- package/build/_modules/custom-data/_models/cud.data-model.d.ts.map +1 -1
- package/build/_modules/custom-data/_models/cud.data-model.js +3 -0
- package/build/_modules/custom-data/_models/cud.data-model.js.map +1 -1
- package/build/_modules/location/_collections/loc-country-divisions.const.d.ts +1 -0
- package/build/_modules/location/_collections/loc-country-divisions.const.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc-country-divisions.const.js +1 -0
- package/build/_modules/location/_collections/loc-country-divisions.const.js.map +1 -1
- package/build/_modules/location/_collections/loc-regions.util.d.ts +4 -0
- package/build/_modules/location/_collections/loc-regions.util.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc-regions.util.js +4 -0
- package/build/_modules/location/_collections/loc-regions.util.js.map +1 -1
- package/build/_modules/location/_collections/loc.util.d.ts +9 -0
- package/build/_modules/location/_collections/loc.util.d.ts.map +1 -1
- package/build/_modules/location/_collections/loc.util.js +9 -0
- package/build/_modules/location/_collections/loc.util.js.map +1 -1
- package/build/_modules/location/_enums/loc-region.enum.d.ts +3 -0
- package/build/_modules/location/_enums/loc-region.enum.d.ts.map +1 -1
- package/build/_modules/location/_enums/loc-region.enum.js +3 -0
- package/build/_modules/location/_enums/loc-region.enum.js.map +1 -1
- package/build/_modules/location/_enums/loc-sub-region.enum.d.ts +3 -0
- package/build/_modules/location/_enums/loc-sub-region.enum.d.ts.map +1 -1
- package/build/_modules/location/_enums/loc-sub-region.enum.js +3 -0
- package/build/_modules/location/_enums/loc-sub-region.enum.js.map +1 -1
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.d.ts +37 -34
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.d.ts.map +1 -1
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.js +3 -0
- package/build/_modules/location/_enums/loc-subdivision-region-type.enum.js.map +1 -1
- package/build/_modules/location/_models/loc-coordinates.interface.d.ts +1 -0
- package/build/_modules/location/_models/loc-coordinates.interface.d.ts.map +1 -1
- package/build/_modules/open-ai/_enums/open-ai-model.enum.d.ts +10 -7
- package/build/_modules/open-ai/_enums/open-ai-model.enum.d.ts.map +1 -1
- package/build/_modules/open-ai/_enums/open-ai-model.enum.js +3 -0
- package/build/_modules/open-ai/_enums/open-ai-model.enum.js.map +1 -1
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.d.ts +3 -0
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.d.ts.map +1 -1
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.js +3 -0
- package/build/_modules/pipe/_enums/pip-range-pipe-setting.enum.js.map +1 -1
- package/build/_modules/pipe/_enums/pip.enum.d.ts +14 -0
- package/build/_modules/pipe/_enums/pip.enum.d.ts.map +1 -1
- package/build/_modules/pipe/_enums/pip.enum.js +11 -0
- package/build/_modules/pipe/_enums/pip.enum.js.map +1 -1
- package/build/_modules/socket/_enums/sck-event-key.enum.d.ts +3 -0
- package/build/_modules/socket/_enums/sck-event-key.enum.d.ts.map +1 -1
- package/build/_modules/socket/_enums/sck-event-key.enum.js +3 -0
- package/build/_modules/socket/_enums/sck-event-key.enum.js.map +1 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.d.ts +12 -0
- package/build/_modules/socket/_models/sck-client-params.control-model.d.ts.map +1 -1
- package/build/_modules/socket/_models/sck-client-params.control-model.js +12 -0
- package/build/_modules/socket/_models/sck-client-params.control-model.js.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.d.ts +12 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.d.ts.map +1 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js +12 -1
- package/build/_modules/socket/_models/sck-socket-event.control-model.js.map +1 -1
- package/build/_modules/socket/_services/sck-client.service-base.d.ts +4 -0
- package/build/_modules/socket/_services/sck-client.service-base.d.ts.map +1 -1
- package/build/_modules/socket/_services/sck-client.service-base.js +4 -0
- package/build/_modules/socket/_services/sck-client.service-base.js.map +1 -1
- package/build/_modules/test/_collections/tst-module-settings.const.d.ts +9 -0
- package/build/_modules/test/_collections/tst-module-settings.const.d.ts.map +1 -1
- package/build/_modules/test/_collections/tst-module-settings.const.js +9 -0
- package/build/_modules/test/_collections/tst-module-settings.const.js.map +1 -1
- package/build/_modules/usage/_models/usg-action.control-model.d.ts +13 -0
- package/build/_modules/usage/_models/usg-action.control-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-action.control-model.js +13 -0
- package/build/_modules/usage/_models/usg-action.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.d.ts +14 -0
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.js +14 -0
- package/build/_modules/usage/_models/usg-daily-usage-data.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-data.control-model.d.ts +16 -0
- package/build/_modules/usage/_models/usg-data.control-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-data.control-model.js +16 -0
- package/build/_modules/usage/_models/usg-data.control-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.d.ts +17 -0
- package/build/_modules/usage/_models/usg-session.data-model.d.ts.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.js +17 -0
- package/build/_modules/usage/_models/usg-session.data-model.js.map +1 -1
- package/build/_modules/usage/_models/usg-session.data-model.spec.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/futdevpro-fsm-dynamo-01.10.40.tgz +0 -0
- package/package.json +9 -5
- package/src/_collections/constants/error-defaults.const.ts +8 -0
- package/src/_collections/constants/global-settings.const.ts +10 -2
- package/src/_collections/constants/numbers.const.ts +32 -0
- package/src/_collections/constants/times.const.ts +37 -0
- package/src/_collections/utils/array.util.spec.ts +36 -38
- package/src/_collections/utils/array.util.ts +146 -12
- package/src/_collections/utils/log.util.ts +126 -2
- package/src/_collections/utils/math/box-bounds.spec.ts +8 -13
- package/src/_collections/utils/math/box-bounds.util.spec.ts +3 -3
- package/src/_collections/utils/math/box-bounds.util.ts +65 -12
- package/src/_collections/utils/math/math.util.ts +30 -6
- package/src/_collections/utils/math/random.util.spec.ts +7 -7
- package/src/_collections/utils/math/random.util.ts +27 -4
- package/src/_collections/utils/math/vector2.util.ts +148 -21
- package/src/_collections/utils/round-list.util.ts +36 -3
- package/src/_collections/utils/shared.util.ts +17 -17
- package/src/_collections/utils/stack.util.ts +8 -8
- package/src/_collections/utils/string.util.ts +8 -1
- package/src/_collections/utils/time.util.ts +37 -2
- package/src/_collections/utils/type-cloning-facility.util.ts +57 -8
- package/src/_collections/utils/utilities.util.spec.ts +2 -2
- package/src/_collections/utils/utilities.util.ts +61 -8
- package/src/_collections/utils/uuid.util.ts +5 -0
- package/src/_enums/basic-property-type.enum.ts +8 -0
- package/src/_enums/data-model-type.enum.ts +11 -6
- package/src/_enums/environment-flag.enum.ts +18 -0
- package/src/_enums/error-level.enum.ts +10 -0
- package/src/_enums/http-call-type.enum.ts +6 -2
- package/src/_enums/http-response-type.enum.ts +8 -0
- package/src/_enums/log-style.enum.ts +8 -0
- package/src/_enums/time/day-of-week.enum.ts +13 -1
- package/src/_enums/time/month.enum.ts +8 -0
- package/src/_enums/time/relative-date.enum.ts +10 -0
- package/src/_models/control-models/data-model-params.control-model.ts +6 -6
- package/src/_models/control-models/data-property-params.control-model.ts +1 -1
- package/src/_models/control-models/error.control-model.spec.ts +2 -2
- package/src/_models/interfaces/box-bounds.interface.ts +8 -0
- package/src/_models/interfaces/route-settings.interface.ts +6 -1
- package/src/_modules/crypto/_collections/crypto.util.spec.ts +49 -0
- package/src/_modules/crypto/_collections/crypto.util.ts +4 -2
- package/src/_modules/custom-data/_collections/cud-module-settings.const.ts +6 -0
- package/src/_modules/custom-data/_models/cud.data-model.ts +3 -0
- package/src/_modules/location/_collections/loc-country-divisions.const.ts +2 -1
- package/src/_modules/location/_collections/loc-regions.util.ts +4 -0
- package/src/_modules/location/_collections/loc.util.ts +13 -5
- package/src/_modules/location/_enums/loc-region.enum.ts +3 -0
- package/src/_modules/location/_enums/loc-sub-region.enum.ts +3 -0
- package/src/_modules/location/_enums/loc-subdivision-region-type.enum.ts +37 -34
- package/src/_modules/location/_models/loc-coordinates.interface.ts +1 -0
- package/src/_modules/open-ai/_enums/open-ai-model.enum.ts +11 -8
- package/src/_modules/pipe/_enums/pip-range-pipe-setting.enum.ts +3 -0
- package/src/_modules/pipe/_enums/pip.enum.ts +17 -3
- package/src/_modules/socket/_enums/sck-event-key.enum.ts +3 -0
- package/src/_modules/socket/_models/sck-client-params.control-model.ts +12 -0
- package/src/_modules/socket/_models/sck-socket-event.control-model.ts +12 -1
- package/src/_modules/socket/_services/sck-client.service-base.ts +4 -0
- package/src/_modules/test/_collections/tst-module-settings.const.ts +9 -0
- package/src/_modules/usage/_models/usg-action.control-model.ts +13 -0
- package/src/_modules/usage/_models/usg-daily-usage-data.control-model.ts +14 -0
- package/src/_modules/usage/_models/usg-data.control-model.ts +16 -0
- package/src/_modules/usage/_models/usg-session.data-model.spec.ts +2 -1
- package/src/_modules/usage/_models/usg-session.data-model.ts +17 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +1 -0
- package/futdevpro-fsm-dynamo-01.10.38.tgz +0 -0
|
@@ -21,8 +21,12 @@ jobs:
|
|
|
21
21
|
notification0:
|
|
22
22
|
name: Discord start Notification
|
|
23
23
|
runs-on: ubuntu-latest
|
|
24
|
+
outputs:
|
|
25
|
+
start: ${{ steps.mark_start.outputs.started }}
|
|
24
26
|
steps:
|
|
25
27
|
- uses: actions/checkout@master
|
|
28
|
+
- id: mark_start
|
|
29
|
+
run: echo "started=$(date +%s)" >> "$GITHUB_OUTPUT"
|
|
26
30
|
- name: send custom message with args
|
|
27
31
|
uses: appleboy/discord-action@master
|
|
28
32
|
with:
|
|
@@ -209,6 +213,12 @@ jobs:
|
|
|
209
213
|
echo "THIS_VERSION=$RAW_THIS_VERSION" >> $GITHUB_ENV
|
|
210
214
|
|
|
211
215
|
- uses: actions/checkout@master
|
|
216
|
+
- id: duration
|
|
217
|
+
run: |
|
|
218
|
+
START_TIME=${{ needs.notification0.outputs.start }}
|
|
219
|
+
END_TIME=$(date +%s)
|
|
220
|
+
DIFF=$((END_TIME - START_TIME))
|
|
221
|
+
echo "human=$(printf '%dm %ds' $((DIFF/60)) $((DIFF%60)))" >> "$GITHUB_OUTPUT"
|
|
212
222
|
- name: send custom message with args
|
|
213
223
|
uses: appleboy/discord-action@master
|
|
214
224
|
with:
|
|
@@ -224,58 +234,8 @@ jobs:
|
|
|
224
234
|
- ${{ needs.deploy.result == 'failure' && ':cross_mark:' || needs.deploy.result == 'success' && ':white_check_mark:' || needs.deploy.result == 'skipped' && ':zzz:' || ':question:' }}
|
|
225
235
|
Deploy: ${{ needs.deploy.result }} (${{ env.THIS_VERSION }})
|
|
226
236
|
${{ needs.deploy.result == 'success' && ':rocket:' || '' }}\n\
|
|
237
|
+
:stopwatch: Duration: ${{ steps.duration.outputs.human }}\n\
|
|
227
238
|
:brick: (${{ github.run_number }}) [:link:](
|
|
228
239
|
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
|
|
229
240
|
|
|
230
241
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
# - name: Set Package Name
|
|
253
|
-
# run: |
|
|
254
|
-
# echo "PACKAGE_NAME=$(node -p -e "require('./package.json').name")" >> $GITHUB_ENV
|
|
255
|
-
|
|
256
|
-
# - name: Set Versions
|
|
257
|
-
# run: |
|
|
258
|
-
# RAW_THIS_VERSION=$(node -p -e "require('./package.json').version")
|
|
259
|
-
# # replace ALL: 'v0' with '', '01' with '1', '.0' with '.'
|
|
260
|
-
# RAW_THIS_VERSION=$(echo $RAW_THIS_VERSION | sed 's:v0::g' | sed 's:01:1:g' | sed -e 's:\.0:\.:g')
|
|
261
|
-
# echo "THIS_VERSION=$RAW_THIS_VERSION" >> $GITHUB_ENV
|
|
262
|
-
# echo "LATEST_VERSION=$(npm view ${{ env.PACKAGE_NAME }} version)" >> $GITHUB_ENV
|
|
263
|
-
|
|
264
|
-
# - name: Set isPublished
|
|
265
|
-
# run: |
|
|
266
|
-
# ALL_VERSIONS=$(npm view ${{ env.PACKAGE_NAME }} versions)
|
|
267
|
-
# if echo "$ALL_VERSIONS" | grep -q "${{ env.THIS_VERSION }}"; then
|
|
268
|
-
# echo "VERSION_PUBLISHED=true" >> $GITHUB_ENV
|
|
269
|
-
# else
|
|
270
|
-
# echo "VERSION_PUBLISHED=false" >> $GITHUB_ENV
|
|
271
|
-
# fi
|
|
272
|
-
|
|
273
|
-
# - name: Unpublish Version
|
|
274
|
-
# run: |
|
|
275
|
-
# if [ "${{ env.VERSION_PUBLISHED }}" == "true" ]; then
|
|
276
|
-
# npm unpublish ${{ env.PACKAGE_NAME }}@${{ env.THIS_VERSION }}
|
|
277
|
-
# else
|
|
278
|
-
# echo "Version not published"
|
|
279
|
-
# fi
|
|
280
|
-
|
|
281
|
-
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { DyFM_Error_Defaults } from '../../_models/interfaces/error-defaults.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Default values used when creating an error object.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* console.log(DyFM_error_defaults.message);
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
2
10
|
export declare const DyFM_error_defaults: DyFM_Error_Defaults;
|
|
3
11
|
//# sourceMappingURL=error-defaults.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-defaults.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/error-defaults.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAExF,eAAO,MAAM,mBAAmB,EAAE,mBAOjC,CAAC"}
|
|
1
|
+
{"version":3,"file":"error-defaults.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/error-defaults.const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AAExF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,mBAOjC,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_error_defaults = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Default values used when creating an error object.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* console.log(DyFM_error_defaults.message);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
4
12
|
exports.DyFM_error_defaults = {
|
|
5
13
|
errorCode: 'NO-ERROR-CODE',
|
|
6
14
|
message: 'NO-ERROR-MESSAGE',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-defaults.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/error-defaults.const.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"error-defaults.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/error-defaults.const.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACU,QAAA,mBAAmB,GAAwB;IACtD,SAAS,EAAE,eAAe;IAC1B,OAAO,EAAE,kBAAkB;IAC3B,WAAW,EAAE,4BAA4B;IACzC,MAAM,EAAE,gBAAgB;IACxB,aAAa,EAAE,wBAAwB;IACvC,YAAY,EAAE,uBAAuB;CACtC,CAAC"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { DyFM_Global_Settings } from '../../_models/interfaces/environment/global-settings.interface';
|
|
2
|
+
/**
|
|
3
|
+
* Default global settings for the application.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* console.log(DyFM_global_settings.baseUrl);
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
2
10
|
export declare const DyFM_global_settings: DyFM_Global_Settings;
|
|
3
11
|
//# sourceMappingURL=global-settings.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-settings.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/global-settings.const.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACrB,MAAM,gEAAgE,CAAC;AAIxE,eAAO,MAAM,oBAAoB,EAAE,oBAMlC,CAAC"}
|
|
1
|
+
{"version":3,"file":"global-settings.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/global-settings.const.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oBAAoB,EACrB,MAAM,gEAAgE,CAAC;AAIxE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,EAAE,oBAMlC,CAAC"}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DyFM_global_settings = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Default global settings for the application.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* console.log(DyFM_global_settings.baseUrl);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
4
12
|
exports.DyFM_global_settings = {
|
|
5
13
|
systemShortCodeName: 'DyFM_UNKNOWN_SYSTEM',
|
|
6
14
|
baseUrl: '/api',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-settings.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/global-settings.const.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"global-settings.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/global-settings.const.ts"],"names":[],"mappings":";;;AAQA;;;;;;;GAOG;AACU,QAAA,oBAAoB,GAAyB;IACxD,mBAAmB,EAAE,qBAAqB;IAE1C,OAAO,EAAE,MAAM;IAEf,YAAY,EAAE,EAAE;CACjB,CAAC"}
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Multiplier representing one thousand.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* const kilobytes = 32 * kilo; // 32000
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
1
9
|
export declare const kilo = 1000;
|
|
10
|
+
/**
|
|
11
|
+
* Multiplier representing one million.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const population = 5 * million;
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
2
18
|
export declare const million: number;
|
|
19
|
+
/**
|
|
20
|
+
* Multiplier representing one billion.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const views = 2 * billion;
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
3
27
|
export declare const billion: number;
|
|
28
|
+
/**
|
|
29
|
+
* Multiplier representing one trillion.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const nationalDebt = 30 * trillion;
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
4
36
|
export declare const trillion: number;
|
|
5
37
|
//# sourceMappingURL=numbers.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/numbers.const.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,IAAI,OAAO,CAAC;AACzB,eAAO,MAAM,OAAO,QAAc,CAAC;AACnC,eAAO,MAAM,OAAO,QAAiB,CAAC;AACtC,eAAO,MAAM,QAAQ,QAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"numbers.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/numbers.const.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,OAAO,CAAC;AACzB;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,QAAc,CAAC;AACnC;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,QAAiB,CAAC;AACtC;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,QAAiB,CAAC"}
|
|
@@ -1,8 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.trillion = exports.billion = exports.million = exports.kilo = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Multiplier representing one thousand.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const kilobytes = 32 * kilo; // 32000
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
4
12
|
exports.kilo = 1000;
|
|
13
|
+
/**
|
|
14
|
+
* Multiplier representing one million.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const population = 5 * million;
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
5
21
|
exports.million = exports.kilo * exports.kilo;
|
|
22
|
+
/**
|
|
23
|
+
* Multiplier representing one billion.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const views = 2 * billion;
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
6
30
|
exports.billion = exports.million * exports.kilo;
|
|
31
|
+
/**
|
|
32
|
+
* Multiplier representing one trillion.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const nationalDebt = 30 * trillion;
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
7
39
|
exports.trillion = exports.billion * exports.kilo;
|
|
8
40
|
//# sourceMappingURL=numbers.const.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/numbers.const.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"numbers.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/numbers.const.ts"],"names":[],"mappings":";;;AACA;;;;;;;GAOG;AACU,QAAA,IAAI,GAAG,IAAI,CAAC;AACzB;;;;;;;GAOG;AACU,QAAA,OAAO,GAAG,YAAI,GAAG,YAAI,CAAC;AACnC;;;;;;;GAOG;AACU,QAAA,OAAO,GAAG,eAAO,GAAG,YAAI,CAAC;AACtC;;;;;;;GAOG;AACU,QAAA,QAAQ,GAAG,eAAO,GAAG,YAAI,CAAC"}
|
|
@@ -1,8 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Milliseconds in one second.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```ts
|
|
6
|
+
* setTimeout(cb, 5 * second);
|
|
7
|
+
* ```
|
|
8
|
+
*/
|
|
1
9
|
export declare const second = 1000;
|
|
10
|
+
/**
|
|
11
|
+
* Milliseconds in one minute.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const timeout = 2 * minute;
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
2
18
|
export declare const minute: number;
|
|
19
|
+
/**
|
|
20
|
+
* Milliseconds in one hour.
|
|
21
|
+
*/
|
|
3
22
|
export declare const hour: number;
|
|
23
|
+
/**
|
|
24
|
+
* Milliseconds in one day.
|
|
25
|
+
*/
|
|
4
26
|
export declare const day: number;
|
|
27
|
+
/**
|
|
28
|
+
* Milliseconds in one week.
|
|
29
|
+
*/
|
|
5
30
|
export declare const week: number;
|
|
31
|
+
/**
|
|
32
|
+
* Average milliseconds in one month.
|
|
33
|
+
*/
|
|
6
34
|
export declare const month: number;
|
|
35
|
+
/**
|
|
36
|
+
* Average milliseconds in one year.
|
|
37
|
+
*/
|
|
7
38
|
export declare const year: number;
|
|
8
39
|
//# sourceMappingURL=times.const.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"times.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/times.const.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"times.const.d.ts","sourceRoot":"","sources":["../../../src/_collections/constants/times.const.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,OAAO,CAAC;AAE3B;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,QAAc,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,IAAI,QAAc,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,GAAG,QAAY,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,IAAI,QAAU,CAAC;AAE5B;;GAEG;AACH,eAAO,MAAM,KAAK,QAAmB,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,IAAI,QAAmB,CAAC"}
|
|
@@ -1,11 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.year = exports.month = exports.week = exports.day = exports.hour = exports.minute = exports.second = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Milliseconds in one second.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* setTimeout(cb, 5 * second);
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
4
12
|
exports.second = 1000;
|
|
13
|
+
/**
|
|
14
|
+
* Milliseconds in one minute.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const timeout = 2 * minute;
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
5
21
|
exports.minute = exports.second * 60;
|
|
22
|
+
/**
|
|
23
|
+
* Milliseconds in one hour.
|
|
24
|
+
*/
|
|
6
25
|
exports.hour = exports.minute * 60;
|
|
26
|
+
/**
|
|
27
|
+
* Milliseconds in one day.
|
|
28
|
+
*/
|
|
7
29
|
exports.day = exports.hour * 24;
|
|
30
|
+
/**
|
|
31
|
+
* Milliseconds in one week.
|
|
32
|
+
*/
|
|
8
33
|
exports.week = exports.day * 7;
|
|
34
|
+
/**
|
|
35
|
+
* Average milliseconds in one month.
|
|
36
|
+
*/
|
|
9
37
|
exports.month = exports.day * 30.4368499;
|
|
38
|
+
/**
|
|
39
|
+
* Average milliseconds in one year.
|
|
40
|
+
*/
|
|
10
41
|
exports.year = exports.day * 365.242199;
|
|
11
42
|
//# sourceMappingURL=times.const.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"times.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/times.const.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"times.const.js","sourceRoot":"","sources":["../../../src/_collections/constants/times.const.ts"],"names":[],"mappings":";;;AACA;;;;;;;GAOG;AACU,QAAA,MAAM,GAAG,IAAI,CAAC;AAE3B;;;;;;;GAOG;AACU,QAAA,MAAM,GAAG,cAAM,GAAG,EAAE,CAAC;AAElC;;GAEG;AACU,QAAA,IAAI,GAAG,cAAM,GAAG,EAAE,CAAC;AAEhC;;GAEG;AACU,QAAA,GAAG,GAAG,YAAI,GAAG,EAAE,CAAC;AAE7B;;GAEG;AACU,QAAA,IAAI,GAAG,WAAG,GAAG,CAAC,CAAC;AAE5B;;GAEG;AACU,QAAA,KAAK,GAAG,WAAG,GAAG,UAAU,CAAC;AAEtC;;GAEG;AACU,QAAA,IAAI,GAAG,WAAG,GAAG,UAAU,CAAC"}
|
|
@@ -1,27 +1,156 @@
|
|
|
1
1
|
import { DyFM_Paged } from '../../_models/interfaces/paged.interface';
|
|
2
2
|
export type DyFM_List = DyFM_Array;
|
|
3
3
|
export declare class DyFM_Array {
|
|
4
|
+
/**
|
|
5
|
+
* Asynchronously iterates over an array and applies a function to each element.
|
|
6
|
+
* @param list - The array to iterate over.
|
|
7
|
+
* @param func - The function to apply to each element.
|
|
8
|
+
* @returns A promise that resolves when all elements have been processed.
|
|
9
|
+
*/
|
|
4
10
|
static asyncForEach<T>(list: T[], func: (element: T, index?: number, array?: T[]) => Promise<void>): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Asynchronously iterates over an array and applies a function to each element, returning a single result.
|
|
13
|
+
* @param startData - The initial data to pass to the function.
|
|
14
|
+
* @param list - The array to iterate over.
|
|
15
|
+
* @param func - The function to apply to each element.
|
|
16
|
+
* @returns A promise that resolves to the final result.
|
|
17
|
+
*/
|
|
5
18
|
static asyncForEachReturnToOne<T, K>(startData: K, list: T[], func: (element: T, dataCurrent: K, index?: number, array?: T[]) => Promise<K>): Promise<K>;
|
|
19
|
+
/**
|
|
20
|
+
* Asynchronously iterates over an array and applies a function to each element, returning an array of results.
|
|
21
|
+
* @param list - The array to iterate over.
|
|
22
|
+
* @param func - The function to apply to each element.
|
|
23
|
+
* @returns A promise that resolves to an array of results.
|
|
24
|
+
*/
|
|
6
25
|
static asyncForEachReturnToAll<T, K>(list: T[], func: (element: T, index?: number, array?: T[]) => Promise<K>): Promise<K[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Asynchronously iterates over an array and applies a function to each element, returning an array of results.
|
|
28
|
+
* @param list - The array to iterate over.
|
|
29
|
+
* @param func - The function to apply to each element.
|
|
30
|
+
* @returns A promise that resolves to an array of results.
|
|
31
|
+
*/
|
|
7
32
|
static asyncForEachAllAtOnce<T, R>(list: T[], func: (element: T, index?: number, array?: T[]) => Promise<R>): Promise<R[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Asynchronously filters an array based on a function.
|
|
35
|
+
* @param list - The array to filter.
|
|
36
|
+
* @param filterFunc - The function to apply to each element.
|
|
37
|
+
* @returns A promise that resolves to an array of results.
|
|
38
|
+
*/
|
|
8
39
|
static asyncFilter<T>(list: T[], filterFunc: (element: T, index?: number, array?: T[]) => Promise<boolean>): Promise<T[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Asynchronously maps an array based on a function.
|
|
42
|
+
* @param list - The array to map.
|
|
43
|
+
* @param mapFunc - The function to apply to each element.
|
|
44
|
+
* @returns A promise that resolves to an array of results.
|
|
45
|
+
*/
|
|
9
46
|
static asyncMap<T, R>(list: T[], mapFunc: (element: T, index?: number, array?: T[]) => Promise<R>): Promise<R[]>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
47
|
+
/**
|
|
48
|
+
* Returns the last element of an array.
|
|
49
|
+
* @param array - The array to get the last element from.
|
|
50
|
+
* @returns The last element of the array, or null if the array is empty.
|
|
51
|
+
*/
|
|
52
|
+
static last<T>(array: T[]): T | null;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the last character of a string.
|
|
55
|
+
* @param string - The string to get the last character from.
|
|
56
|
+
* @returns The last character of the string, or null if the string is empty.
|
|
57
|
+
*/
|
|
58
|
+
static lastCharacter(string: string): string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the first element of an array.
|
|
61
|
+
* @param array - The array to get the first element from.
|
|
62
|
+
* @returns The first element of the array, or null if the array is empty.
|
|
63
|
+
*/
|
|
64
|
+
static first<T>(array: T[]): T | null;
|
|
65
|
+
/**
|
|
66
|
+
* Removes an element from an array.
|
|
67
|
+
* @param array - The array to remove the element from.
|
|
68
|
+
* @param element - The element to remove from the array.
|
|
69
|
+
* @returns The array with the element removed.
|
|
70
|
+
*/
|
|
13
71
|
static remove<T>(array: T[], element: T): T[];
|
|
72
|
+
/**
|
|
73
|
+
* Finds an element in an array and removes it.
|
|
74
|
+
* @param array - The array to find and remove the element from.
|
|
75
|
+
* @param func - The function to apply to each element.
|
|
76
|
+
* @returns The array with the element removed.
|
|
77
|
+
*/
|
|
14
78
|
static findNRemove<T>(array: T[], func: (element: T, index?: number, array?: T[]) => boolean): T[];
|
|
79
|
+
/**
|
|
80
|
+
* Shuffles an array.
|
|
81
|
+
* @param array - The array to shuffle.
|
|
82
|
+
* @returns The shuffled array.
|
|
83
|
+
*/
|
|
15
84
|
static shuffle<T>(array: T[]): T[];
|
|
85
|
+
/**
|
|
86
|
+
* Pages an array.
|
|
87
|
+
* @param array - The array to page.
|
|
88
|
+
* @param pageIndex - The index of the page to return.
|
|
89
|
+
* @param pageSize - The size of the page.
|
|
90
|
+
* @returns The page of the array.
|
|
91
|
+
*/
|
|
16
92
|
static page<T>(array: T[], pageIndex: number, pageSize: number): T[];
|
|
93
|
+
/**
|
|
94
|
+
* Pages an array.
|
|
95
|
+
* @param array - The array to page.
|
|
96
|
+
* @param pageIndex - The index of the page to return.
|
|
97
|
+
* @param pageSize - The size of the page.
|
|
98
|
+
* @returns The page of the array.
|
|
99
|
+
*/
|
|
17
100
|
static paged<T>(array: T[], pageIndex: number, pageSize: number): DyFM_Paged<T>;
|
|
101
|
+
/**
|
|
102
|
+
* Swaps two elements in an array.
|
|
103
|
+
* @param array - The array to swap the elements in.
|
|
104
|
+
* @param indexA - The index of the first element to swap.
|
|
105
|
+
* @param indexB - The index of the second element to swap.
|
|
106
|
+
* @returns The array with the elements swapped.
|
|
107
|
+
*/
|
|
18
108
|
static swap<T>(array: T[], indexA: number, indexB: number): T[];
|
|
109
|
+
/**
|
|
110
|
+
* Checks if a string list has multiplications.
|
|
111
|
+
* @param stringList - The string list to check.
|
|
112
|
+
* @returns True if the string list has multiplications, false otherwise.
|
|
113
|
+
*/
|
|
19
114
|
static stringListHasMultiplications(stringList: string[]): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Filters a string list to remove multiplications.
|
|
117
|
+
* @param stringList - The string list to filter.
|
|
118
|
+
* @returns The filtered string list.
|
|
119
|
+
*/
|
|
20
120
|
static filterStringMultiplications(stringList: string[]): string[];
|
|
121
|
+
/**
|
|
122
|
+
* Gathers multiplications from a string list.
|
|
123
|
+
* @param stringList - The string list to gather multiplications from.
|
|
124
|
+
* @returns The gathered multiplications.
|
|
125
|
+
*/
|
|
21
126
|
static gatherStringMultiplications(stringList: string[]): string[][];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
127
|
+
/**
|
|
128
|
+
* Checks if a data list has multiplications.
|
|
129
|
+
* @param dataList - The data list to check.
|
|
130
|
+
* @param byKey - The key to check for multiplications.
|
|
131
|
+
* @returns True if the data list has multiplications, false otherwise.
|
|
132
|
+
*/
|
|
133
|
+
static haveMultiplications<T extends object>(dataList: T[], byKey?: keyof T): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Filters a data list to remove multiplications.
|
|
136
|
+
* @param dataList - The data list to filter.
|
|
137
|
+
* @param byKey - The key to filter for multiplications.
|
|
138
|
+
* @returns The filtered data list.
|
|
139
|
+
*/
|
|
140
|
+
static filterMultiplications<T extends object>(dataList: T[], byKey?: keyof T): T[];
|
|
141
|
+
/**
|
|
142
|
+
* Gathers multiplications from a data list.
|
|
143
|
+
* @param dataList - The data list to gather multiplications from.
|
|
144
|
+
* @param byKey - The key to gather multiplications from.
|
|
145
|
+
* @returns The gathered multiplications.
|
|
146
|
+
*/
|
|
147
|
+
static gatherMultiplications<T extends object>(dataList: T[], byKey?: keyof T): T[][];
|
|
148
|
+
/**
|
|
149
|
+
* Finds an element in an array from the end.
|
|
150
|
+
* @param array - The array to find the element in.
|
|
151
|
+
* @param func - The function to apply to each element.
|
|
152
|
+
* @returns The element found, or null if no element is found.
|
|
153
|
+
*/
|
|
154
|
+
static findFromEnd<T>(array: T[], func: (element: T, index?: number, array?: T[]) => boolean): T | null;
|
|
26
155
|
}
|
|
27
156
|
//# sourceMappingURL=array.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/utils/array.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAItE,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC;AAEnC,qBAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"array.util.d.ts","sourceRoot":"","sources":["../../../src/_collections/utils/array.util.ts"],"names":[],"mappings":"AACA,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