@prestizni-software/server-dem 0.7.4 → 0.7.5
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/AutoUpdateClientManagerClass.d.ts +141 -0
- package/AutoUpdateClientManagerClass.js +656 -0
- package/AutoUpdateClientManagerClass.js.map +1 -0
- package/AutoUpdateManagerClass.d.ts +102 -0
- package/AutoUpdateManagerClass.js +117 -0
- package/AutoUpdateManagerClass.js.map +1 -0
- package/AutoUpdateServerManagerClass.d.ts +208 -0
- package/AutoUpdateServerManagerClass.js +913 -0
- package/AutoUpdateServerManagerClass.js.map +1 -0
- package/AutoUpdatedClientObjectClass.d.ts +215 -0
- package/AutoUpdatedClientObjectClass.js +911 -0
- package/AutoUpdatedClientObjectClass.js.map +1 -0
- package/AutoUpdatedServerObjectClass.d.ts +134 -0
- package/AutoUpdatedServerObjectClass.js +346 -0
- package/AutoUpdatedServerObjectClass.js.map +1 -0
- package/ClientTypes.d.ts +15 -0
- package/ClientTypes.js +52 -0
- package/ClientTypes.js.map +1 -0
- package/CommonTypes.d.ts +259 -0
- package/CommonTypes.js +233 -0
- package/CommonTypes.js.map +1 -0
- package/CommonTypes_server.d.ts +1 -0
- package/CommonTypes_server.js +2 -0
- package/CommonTypes_server.js.map +1 -0
- package/{dist/DEMErrors.js.map → DEMErrors.js.map} +1 -1
- package/ServerTypes.d.ts +16 -0
- package/ServerTypes.js +60 -0
- package/ServerTypes.js.map +1 -0
- package/client.d.ts +6 -0
- package/client.js +7 -0
- package/client.js.map +1 -0
- package/coverage/lcov-report/block-navigation.js +71 -0
- package/coverage/lcov-report/block-navigation.js.map +1 -0
- package/coverage/lcov-report/prettify.js +478 -0
- package/coverage/lcov-report/prettify.js.map +1 -0
- package/coverage/lcov-report/sorter.js +177 -0
- package/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/AutoUpdateClientManagerClass.d.ts +20 -0
- package/dist/AutoUpdateClientManagerClass.js +283 -0
- package/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/AutoUpdateManagerClass.d.ts +17 -96
- package/dist/AutoUpdateManagerClass.js +15 -73
- package/dist/AutoUpdateManagerClass.js.map +1 -1
- package/dist/AutoUpdateServerManagerClass.d.ts +18 -207
- package/dist/AutoUpdateServerManagerClass.js +198 -680
- package/dist/AutoUpdateServerManagerClass.js.map +1 -1
- package/dist/AutoUpdatedClientObjectClass.d.ts +63 -206
- package/dist/AutoUpdatedClientObjectClass.js +660 -707
- package/dist/AutoUpdatedClientObjectClass.js.map +1 -1
- package/dist/AutoUpdatedServerObjectClass.d.ts +13 -126
- package/dist/AutoUpdatedServerObjectClass.js +92 -315
- package/dist/AutoUpdatedServerObjectClass.js.map +1 -1
- package/dist/ClientTypes.d.ts +13 -0
- package/dist/ClientTypes.js +70 -0
- package/dist/ClientTypes.js.map +1 -0
- package/dist/CommonTypes.d.ts +3 -266
- package/dist/CommonTypes.js +4 -234
- package/dist/CommonTypes.js.map +1 -1
- package/dist/CommonTypes_server.d.ts +1 -1
- package/dist/CommonTypes_server.js +2 -1
- package/dist/CommonTypes_server.js.map +1 -1
- package/dist/ServerTypes.d.ts +13 -0
- package/dist/ServerTypes.js +78 -0
- package/dist/ServerTypes.js.map +1 -0
- package/dist/TestTypes.d.ts +1 -0
- package/dist/TestTypes.js +7 -0
- package/dist/TestTypes.js.map +1 -0
- package/dist/client.d.ts +1 -0
- package/dist/client.js +12 -0
- package/dist/client.js.map +1 -0
- package/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/AutoUpdateClientManagerClass.d.ts +19 -0
- package/dist/dist/AutoUpdateClientManagerClass.js +284 -0
- package/dist/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdateManagerClass.d.ts +23 -0
- package/dist/dist/AutoUpdateManagerClass.js +60 -0
- package/dist/dist/AutoUpdateManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdateServerManagerClass.d.ts +50 -0
- package/dist/dist/AutoUpdateServerManagerClass.js +413 -0
- package/dist/dist/AutoUpdateServerManagerClass.js.map +1 -0
- package/dist/dist/AutoUpdatedClientObjectClass.d.ts +72 -0
- package/dist/dist/AutoUpdatedClientObjectClass.js +865 -0
- package/dist/dist/AutoUpdatedClientObjectClass.js.map +1 -0
- package/dist/dist/AutoUpdatedServerObjectClass.d.ts +15 -0
- package/dist/dist/AutoUpdatedServerObjectClass.js +124 -0
- package/dist/dist/AutoUpdatedServerObjectClass.js.map +1 -0
- package/dist/dist/ClientTypes.d.ts +13 -0
- package/dist/dist/ClientTypes.js +71 -0
- package/dist/dist/ClientTypes.js.map +1 -0
- package/dist/dist/CommonTypes.d.ts +3 -0
- package/dist/dist/CommonTypes.js +20 -0
- package/dist/dist/CommonTypes.js.map +1 -0
- package/dist/dist/CommonTypes_server.d.ts +1 -0
- package/dist/dist/CommonTypes_server.js +4 -0
- package/dist/dist/CommonTypes_server.js.map +1 -0
- package/dist/dist/ServerTypes.d.ts +13 -0
- package/dist/dist/ServerTypes.js +79 -0
- package/dist/dist/ServerTypes.js.map +1 -0
- package/dist/dist/TestTypes.d.ts +1 -0
- package/dist/dist/TestTypes.js +8 -0
- package/dist/dist/TestTypes.js.map +1 -0
- package/dist/dist/client.d.ts +1 -0
- package/dist/dist/client.js +13 -0
- package/dist/dist/client.js.map +1 -0
- package/dist/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.d.ts +19 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.js +285 -0
- package/dist/dist/dist/AutoUpdateClientManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdateManagerClass.d.ts +23 -0
- package/dist/dist/dist/AutoUpdateManagerClass.js +61 -0
- package/dist/dist/dist/AutoUpdateManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.d.ts +158 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.js +414 -0
- package/dist/dist/dist/AutoUpdateServerManagerClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.d.ts +72 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.js +866 -0
- package/dist/dist/dist/AutoUpdatedClientObjectClass.js.map +1 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.d.ts +15 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.js +125 -0
- package/dist/dist/dist/AutoUpdatedServerObjectClass.js.map +1 -0
- package/dist/dist/dist/ClientTypes.d.ts +13 -0
- package/dist/dist/dist/ClientTypes.js +72 -0
- package/dist/dist/dist/ClientTypes.js.map +1 -0
- package/dist/dist/dist/CommonTypes.d.ts +3 -0
- package/dist/dist/dist/CommonTypes.js +21 -0
- package/dist/dist/dist/CommonTypes.js.map +1 -0
- package/dist/dist/dist/CommonTypes_server.d.ts +1 -0
- package/dist/dist/dist/CommonTypes_server.js +5 -0
- package/dist/dist/dist/CommonTypes_server.js.map +1 -0
- package/dist/dist/dist/ServerTypes.d.ts +13 -0
- package/dist/dist/dist/ServerTypes.js +80 -0
- package/dist/dist/dist/ServerTypes.js.map +1 -0
- package/dist/dist/dist/TestTypes.d.ts +1 -0
- package/dist/dist/dist/TestTypes.js +9 -0
- package/dist/dist/dist/TestTypes.js.map +1 -0
- package/dist/dist/dist/client.d.ts +1 -0
- package/dist/dist/dist/client.js +14 -0
- package/dist/dist/dist/client.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.d.ts +1 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.js +71 -0
- package/dist/dist/dist/coverage/lcov-report/block-navigation.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.d.ts +0 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.js +736 -0
- package/dist/dist/dist/coverage/lcov-report/prettify.js.map +1 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.d.ts +1 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.js +177 -0
- package/dist/dist/dist/coverage/lcov-report/sorter.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.js +27 -0
- package/dist/dist/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.js +95 -0
- package/dist/dist/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.js +81 -0
- package/dist/dist/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/dist/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/dist/dist/expo-test/app/_layout.js +22 -0
- package/dist/dist/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/dist/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/dist/dist/expo-test/app/modal.js +28 -0
- package/dist/dist/dist/expo-test/app/modal.js.map +1 -0
- package/dist/dist/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/dist/dist/expo-test/components/external-link.js +18 -0
- package/dist/dist/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.js +15 -0
- package/dist/dist/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/dist/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/dist/dist/expo-test/components/hello-wave.js +19 -0
- package/dist/dist/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.js +53 -0
- package/dist/dist/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/dist/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/dist/dist/expo-test/components/themed-text.js +43 -0
- package/dist/dist/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/dist/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/dist/dist/expo-test/components/themed-view.js +10 -0
- package/dist/dist/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.js +34 -0
- package/dist/dist/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.js +14 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.js +25 -0
- package/dist/dist/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/dist/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/dist/dist/expo-test/constants/theme.js +53 -0
- package/dist/dist/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/dist/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/dist/dist/expo-test/eslint.config.js +11 -0
- package/dist/dist/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.js +5 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.js +20 -0
- package/dist/dist/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.js +20 -0
- package/dist/dist/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/dist/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/dist/dist/jest.config.d.ts +21 -0
- package/dist/dist/dist/jest.config.js +20 -0
- package/dist/dist/dist/jest.config.js.map +1 -0
- package/dist/dist/dist/server.d.ts +1 -0
- package/dist/dist/dist/server.js +16 -0
- package/dist/dist/dist/server.js.map +1 -0
- package/dist/dist/dist/socket_test.d.ts +1 -0
- package/dist/dist/dist/socket_test.js +24 -0
- package/dist/dist/dist/socket_test.js.map +1 -0
- package/dist/dist/dist/test.d.ts +1 -0
- package/dist/dist/dist/test.js +7 -0
- package/dist/dist/dist/test.js.map +1 -0
- package/dist/dist/dist/test_client.d.ts +1 -0
- package/dist/dist/dist/test_client.js +26 -0
- package/dist/dist/dist/test_client.js.map +1 -0
- package/dist/dist/dist/test_lib.d.ts +2 -0
- package/dist/dist/dist/test_lib.js +85 -0
- package/dist/dist/dist/test_lib.js.map +1 -0
- package/dist/dist/dist/test_server.d.ts +1 -0
- package/dist/dist/dist/test_server.js +54 -0
- package/dist/dist/dist/test_server.js.map +1 -0
- package/dist/dist/dist/tests/dem.test.d.ts +1 -0
- package/dist/dist/dist/tests/dem.test.js +341 -0
- package/dist/dist/dist/tests/dem.test.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.js +26 -0
- package/dist/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/explore.js +94 -0
- package/dist/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/dist/expo-test/app/(tabs)/index.js +80 -0
- package/dist/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/dist/expo-test/app/_layout.js +21 -0
- package/dist/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/dist/expo-test/app/modal.js +27 -0
- package/dist/dist/expo-test/app/modal.js.map +1 -0
- package/dist/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/dist/expo-test/components/external-link.js +17 -0
- package/dist/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/dist/expo-test/components/haptic-tab.js +14 -0
- package/dist/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/dist/expo-test/components/hello-wave.js +18 -0
- package/dist/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.js +52 -0
- package/dist/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/dist/expo-test/components/themed-text.js +42 -0
- package/dist/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/dist/expo-test/components/themed-view.js +9 -0
- package/dist/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/dist/expo-test/components/ui/collapsible.js +33 -0
- package/dist/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.js +13 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.js +24 -0
- package/dist/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/dist/expo-test/constants/theme.js +52 -0
- package/dist/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/dist/expo-test/eslint.config.js +11 -0
- package/dist/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.js +4 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.js +19 -0
- package/dist/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/dist/expo-test/hooks/use-theme-color.js +19 -0
- package/dist/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/dist/jest.config.d.ts +21 -0
- package/dist/dist/jest.config.js +19 -0
- package/dist/dist/jest.config.js.map +1 -0
- package/dist/dist/server.d.ts +1 -0
- package/dist/dist/server.js +15 -0
- package/dist/dist/server.js.map +1 -0
- package/dist/dist/socket_test.d.ts +1 -0
- package/dist/dist/socket_test.js +23 -0
- package/dist/dist/socket_test.js.map +1 -0
- package/dist/dist/test.d.ts +1 -0
- package/dist/dist/test.js +6 -0
- package/dist/dist/test.js.map +1 -0
- package/dist/dist/test_client.d.ts +1 -0
- package/dist/dist/test_client.js +25 -0
- package/dist/dist/test_client.js.map +1 -0
- package/dist/dist/test_lib.d.ts +2 -0
- package/dist/dist/test_lib.js +84 -0
- package/dist/dist/test_lib.js.map +1 -0
- package/dist/dist/test_server.d.ts +1 -0
- package/dist/dist/test_server.js +53 -0
- package/dist/dist/test_server.js.map +1 -0
- package/dist/dist/tests/dem.test.d.ts +1 -0
- package/dist/dist/tests/dem.test.js +340 -0
- package/dist/dist/tests/dem.test.js.map +1 -0
- package/dist/expo-test/app/(tabs)/_layout.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/_layout.js +25 -0
- package/dist/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/dist/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/explore.js +93 -0
- package/dist/expo-test/app/(tabs)/explore.js.map +1 -0
- package/dist/expo-test/app/(tabs)/index.d.ts +1 -0
- package/dist/expo-test/app/(tabs)/index.js +79 -0
- package/dist/expo-test/app/(tabs)/index.js.map +1 -0
- package/dist/expo-test/app/_layout.d.ts +4 -0
- package/dist/expo-test/app/_layout.js +20 -0
- package/dist/expo-test/app/_layout.js.map +1 -0
- package/dist/expo-test/app/modal.d.ts +1 -0
- package/dist/expo-test/app/modal.js +26 -0
- package/dist/expo-test/app/modal.js.map +1 -0
- package/dist/expo-test/components/external-link.d.ts +4 -0
- package/dist/expo-test/components/external-link.js +16 -0
- package/dist/expo-test/components/external-link.js.map +1 -0
- package/dist/expo-test/components/haptic-tab.d.ts +1 -0
- package/dist/expo-test/components/haptic-tab.js +13 -0
- package/dist/expo-test/components/haptic-tab.js.map +1 -0
- package/dist/expo-test/components/hello-wave.d.ts +1 -0
- package/dist/expo-test/components/hello-wave.js +17 -0
- package/dist/expo-test/components/hello-wave.js.map +1 -0
- package/dist/expo-test/components/parallax-scroll-view.d.ts +5 -0
- package/dist/expo-test/components/parallax-scroll-view.js +51 -0
- package/dist/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/dist/expo-test/components/themed-text.d.ts +7 -0
- package/dist/expo-test/components/themed-text.js +41 -0
- package/dist/expo-test/components/themed-text.js.map +1 -0
- package/dist/expo-test/components/themed-view.d.ts +6 -0
- package/dist/expo-test/components/themed-view.js +8 -0
- package/dist/expo-test/components/themed-view.js.map +1 -0
- package/dist/expo-test/components/ui/collapsible.d.ts +4 -0
- package/dist/expo-test/components/ui/collapsible.js +32 -0
- package/dist/expo-test/components/ui/collapsible.js.map +1 -0
- package/dist/expo-test/components/ui/icon-symbol.d.ts +11 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.d.ts +7 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.js +12 -0
- package/dist/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/dist/expo-test/components/ui/icon-symbol.js +23 -0
- package/dist/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/dist/expo-test/constants/theme.d.ts +26 -0
- package/dist/expo-test/constants/theme.js +51 -0
- package/dist/expo-test/constants/theme.js.map +1 -0
- package/dist/expo-test/eslint.config.d.ts +2 -0
- package/dist/expo-test/eslint.config.js +11 -0
- package/dist/expo-test/eslint.config.js.map +1 -0
- package/dist/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/dist/expo-test/hooks/use-color-scheme.js +3 -0
- package/dist/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/dist/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/dist/expo-test/hooks/use-color-scheme.web.js +18 -0
- package/dist/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/dist/expo-test/hooks/use-theme-color.d.ts +1 -0
- package/dist/expo-test/hooks/use-theme-color.js +18 -0
- package/dist/expo-test/hooks/use-theme-color.js.map +1 -0
- package/dist/expo-test/scripts/reset-project.d.ts +2 -0
- package/dist/expo-test/scripts/reset-project.js +98 -0
- package/dist/expo-test/scripts/reset-project.js.map +1 -0
- package/dist/jest.config.d.ts +21 -0
- package/dist/jest.config.js +18 -0
- package/dist/jest.config.js.map +1 -0
- package/dist/server.d.ts +1 -8
- package/dist/server.js +13 -8
- package/dist/server.js.map +1 -1
- package/dist/socket_test.d.ts +1 -0
- package/dist/socket_test.js +22 -0
- package/dist/socket_test.js.map +1 -0
- package/dist/test.d.ts +1 -0
- package/dist/test.js +5 -0
- package/dist/test.js.map +1 -0
- package/dist/test_client.d.ts +1 -0
- package/dist/test_client.js +24 -0
- package/dist/test_client.js.map +1 -0
- package/dist/test_lib.d.ts +12 -0
- package/dist/test_lib.js +83 -0
- package/dist/test_lib.js.map +1 -0
- package/dist/test_server.d.ts +1 -0
- package/dist/test_server.js +52 -0
- package/dist/test_server.js.map +1 -0
- package/dist/tests/dem.test.d.ts +1 -0
- package/dist/tests/dem.test.js +339 -0
- package/dist/tests/dem.test.js.map +1 -0
- package/expo-test/app/(tabs)/_layout.d.ts +2 -0
- package/expo-test/app/(tabs)/_layout.js +24 -0
- package/expo-test/app/(tabs)/_layout.js.map +1 -0
- package/expo-test/app/(tabs)/explore.d.ts +1 -0
- package/expo-test/app/(tabs)/explore.js +92 -0
- package/expo-test/app/(tabs)/explore.js.map +1 -0
- package/expo-test/app/(tabs)/index.d.ts +1 -0
- package/expo-test/app/(tabs)/index.js +78 -0
- package/expo-test/app/(tabs)/index.js.map +1 -0
- package/expo-test/app/_layout.d.ts +5 -0
- package/expo-test/app/_layout.js +19 -0
- package/expo-test/app/_layout.js.map +1 -0
- package/expo-test/app/modal.d.ts +1 -0
- package/expo-test/app/modal.js +25 -0
- package/expo-test/app/modal.js.map +1 -0
- package/expo-test/components/external-link.d.ts +7 -0
- package/expo-test/components/external-link.js +15 -0
- package/expo-test/components/external-link.js.map +1 -0
- package/expo-test/components/haptic-tab.d.ts +2 -0
- package/expo-test/components/haptic-tab.js +12 -0
- package/expo-test/components/haptic-tab.js.map +1 -0
- package/expo-test/components/hello-wave.d.ts +1 -0
- package/expo-test/components/hello-wave.js +16 -0
- package/expo-test/components/hello-wave.js.map +1 -0
- package/expo-test/components/parallax-scroll-view.d.ts +10 -0
- package/expo-test/components/parallax-scroll-view.js +50 -0
- package/expo-test/components/parallax-scroll-view.js.map +1 -0
- package/expo-test/components/themed-text.d.ts +7 -0
- package/expo-test/components/themed-text.js +40 -0
- package/expo-test/components/themed-text.js.map +1 -0
- package/expo-test/components/themed-view.d.ts +6 -0
- package/expo-test/components/themed-view.js +7 -0
- package/expo-test/components/themed-view.js.map +1 -0
- package/expo-test/components/ui/collapsible.d.ts +4 -0
- package/expo-test/components/ui/collapsible.js +31 -0
- package/expo-test/components/ui/collapsible.js.map +1 -0
- package/expo-test/components/ui/icon-symbol.d.ts +25 -0
- package/expo-test/components/ui/icon-symbol.ios.d.ts +9 -0
- package/expo-test/components/ui/icon-symbol.ios.js +11 -0
- package/expo-test/components/ui/icon-symbol.ios.js.map +1 -0
- package/expo-test/components/ui/icon-symbol.js +22 -0
- package/expo-test/components/ui/icon-symbol.js.map +1 -0
- package/expo-test/constants/theme.d.ts +32 -0
- package/expo-test/constants/theme.js +50 -0
- package/expo-test/constants/theme.js.map +1 -0
- package/expo-test/eslint.config.d.ts +2 -0
- package/expo-test/eslint.config.js +11 -0
- package/expo-test/eslint.config.js.map +1 -0
- package/expo-test/hooks/use-color-scheme.d.ts +1 -0
- package/expo-test/hooks/use-color-scheme.js +2 -0
- package/expo-test/hooks/use-color-scheme.js.map +1 -0
- package/expo-test/hooks/use-color-scheme.web.d.ts +4 -0
- package/expo-test/hooks/use-color-scheme.web.js +17 -0
- package/expo-test/hooks/use-color-scheme.web.js.map +1 -0
- package/expo-test/hooks/use-theme-color.d.ts +9 -0
- package/expo-test/hooks/use-theme-color.js +17 -0
- package/expo-test/hooks/use-theme-color.js.map +1 -0
- package/expo-test/scripts/reset-project.d.ts +2 -0
- package/expo-test/scripts/reset-project.js +98 -0
- package/expo-test/scripts/reset-project.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +5 -0
- package/index.js.map +1 -0
- package/jest.config.d.ts +3 -0
- package/jest.config.js +17 -0
- package/jest.config.js.map +1 -0
- package/package.json +23 -42
- package/server.d.ts +8 -0
- package/server.js +9 -0
- package/server.js.map +1 -0
- package/sync/ServerChangeTracker.js.map +1 -0
- package/version.d.ts +21 -0
- package/version.js +22 -0
- package/version.js.map +1 -0
- package/README.md +0 -18
- package/dist/sync/ServerChangeTracker.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- /package/{dist/DEMErrors.d.ts → DEMErrors.d.ts} +0 -0
- /package/{dist/DEMErrors.js → DEMErrors.js} +0 -0
- /package/{dist/sync → sync}/ClientStateReconciler.d.ts +0 -0
- /package/{dist/sync → sync}/ClientStateReconciler.js +0 -0
- /package/{dist/sync → sync}/ClientStateReconciler.js.map +0 -0
- /package/{dist/sync → sync}/ServerChangeTracker.d.ts +0 -0
- /package/{dist/sync → sync}/ServerChangeTracker.js +0 -0
- /package/{dist/sync → sync}/index.d.ts +0 -0
- /package/{dist/sync → sync}/index.js +0 -0
- /package/{dist/sync → sync}/index.js.map +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/IClientStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/IndexedDbStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/storage/LocalStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/LocalStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/LocalStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/storage/MemoryStorageAdapter.d.ts +0 -0
- /package/{dist/sync → sync}/storage/MemoryStorageAdapter.js +0 -0
- /package/{dist/sync → sync}/storage/MemoryStorageAdapter.js.map +0 -0
- /package/{dist/sync → sync}/types.d.ts +0 -0
- /package/{dist/sync → sync}/types.js +0 -0
- /package/{dist/sync → sync}/types.js.map +0 -0
|
@@ -1,346 +1,123 @@
|
|
|
1
|
-
import { AutoUpdatedClientObject, getMetadataRecursive,
|
|
2
|
-
import
|
|
1
|
+
import { AutoUpdatedClientObject, getMetadataRecursive, } from "./AutoUpdatedClientObjectClass.js";
|
|
2
|
+
import "reflect-metadata";
|
|
3
3
|
import { ObjectId } from "mongodb";
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export async function createAutoUpdatedClass(classParam, className, socket, data, loggers, parentManager, emitter) {
|
|
5
|
+
const instance = new AutoUpdatedServerObject(socket, data, loggers, Reflect.getMetadata("props", classParam.prototype), className, classParam, parentManager, emitter);
|
|
6
|
+
await instance.loadFromDB();
|
|
7
|
+
await instance.isPreLoadedAsync();
|
|
8
|
+
return instance;
|
|
9
|
+
}
|
|
10
|
+
// ---------------------- Class ----------------------
|
|
11
|
+
class AutoUpdatedServerObject extends AutoUpdatedClientObject {
|
|
12
|
+
isServer = true;
|
|
6
13
|
entry;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
!socket &&
|
|
24
|
-
!data &&
|
|
25
|
-
!loggers &&
|
|
26
|
-
!className &&
|
|
27
|
-
!parentManager &&
|
|
28
|
-
!emitter) {
|
|
29
|
-
return;
|
|
14
|
+
constructor(socket, data, loggers, properties, className, classProp, parentManager, emitter) {
|
|
15
|
+
super(socket, data, loggers, properties, className, classProp, parentManager, {
|
|
16
|
+
update: (x) => { },
|
|
17
|
+
delete: (x) => { },
|
|
18
|
+
new: (x) => { },
|
|
19
|
+
}, emitter, true);
|
|
20
|
+
for (const prop of properties) {
|
|
21
|
+
if (typeof prop !== "string")
|
|
22
|
+
continue;
|
|
23
|
+
const isRef = getMetadataRecursive("isRef", classProp.prototype, prop);
|
|
24
|
+
if (isRef && this.data[prop]) {
|
|
25
|
+
this.data[prop] = Array.isArray(this.data[prop])
|
|
26
|
+
? this.data[prop]
|
|
27
|
+
.map((item) => item ? new ObjectId(item) : null)
|
|
28
|
+
.filter(Boolean)
|
|
29
|
+
: new ObjectId(this.data[prop]);
|
|
30
30
|
}
|
|
31
|
-
else
|
|
32
|
-
throw new DEMError(DEMErrorCode.MISSING_ARGUMENT, "Missing arguments for AutoUpdatedServerObject: " + className);
|
|
33
31
|
}
|
|
34
|
-
super(classParam, socket, data, loggers, className, parentManager, {
|
|
35
|
-
update: (_x, _key) => { },
|
|
36
|
-
delete: (_x) => { },
|
|
37
|
-
new: (_x) => { },
|
|
38
|
-
progress: (_x) => { },
|
|
39
|
-
}, emitter, true);
|
|
40
|
-
this.isServer = true;
|
|
41
|
-
this.entry = null;
|
|
42
32
|
this.parentManager = parentManager;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
if (item && !(item instanceof ObjectId)) {
|
|
59
|
-
const idStr = item._id ? item._id.toString() : item.toString();
|
|
60
|
-
if (idStr !== {}.toString() && ObjectId.isValid(idStr)) {
|
|
61
|
-
val[i] = new ObjectId(idStr);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else if (!(val instanceof ObjectId)) {
|
|
67
|
-
const idStr = val._id ? val._id.toString() : val.toString();
|
|
68
|
-
if (idStr !== {}.toString() && ObjectId.isValid(idStr)) {
|
|
69
|
-
dataRec[prop] = new ObjectId(idStr);
|
|
70
|
-
}
|
|
33
|
+
this.entry = null;
|
|
34
|
+
}
|
|
35
|
+
async loadFromDB() {
|
|
36
|
+
try {
|
|
37
|
+
this.entry = await this.parentManager.managers[this.className].model.findOne({
|
|
38
|
+
_id: this.data._id,
|
|
39
|
+
});
|
|
40
|
+
if (!this.entry) {
|
|
41
|
+
this.entry = await this.parentManager.managers[this.className].model.create(this.data);
|
|
42
|
+
for (const prop of this.properties) {
|
|
43
|
+
const pointer = getMetadataRecursive("refsTo", this.classProp.prototype, prop.toString());
|
|
44
|
+
if (!pointer || !this.data[prop])
|
|
45
|
+
continue;
|
|
46
|
+
this.data["_id"] = this.entry._id;
|
|
47
|
+
await this.createdWithParent(pointer.split(":"), this.data[prop].toString());
|
|
71
48
|
}
|
|
72
49
|
}
|
|
50
|
+
this.data = this.entry.toObject();
|
|
73
51
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
* @returns Promise resolving when database write finishes.
|
|
79
|
-
*/
|
|
80
|
-
async save() {
|
|
81
|
-
this.saveLock = (this.saveLock ?? Promise.resolve())
|
|
82
|
-
.catch(() => { })
|
|
83
|
-
.then(async () => {
|
|
84
|
-
if (this.entry && this.entry !== this) {
|
|
85
|
-
await this.entry.save();
|
|
86
|
-
}
|
|
87
|
-
else if (this.entry && typeof this.entry.$__save === "function") {
|
|
88
|
-
await this.entry.$__save();
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
await this.saveLock;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Loads entity document data directly from MongoDB by ID.
|
|
95
|
-
*
|
|
96
|
-
* @returns Promise resolving when data is populated.
|
|
97
|
-
* @throws {DEMError} Throws DEMErrorCode.MISSING_ID or DOCUMENT_NOT_FOUND.
|
|
98
|
-
*/
|
|
99
|
-
async loadFromDB() {
|
|
100
|
-
if (this.loadPromise)
|
|
101
|
-
return this.loadPromise;
|
|
102
|
-
this.loadPromise = (async () => {
|
|
103
|
-
const _id = this.data._id;
|
|
104
|
-
if (!_id)
|
|
105
|
-
throw new DEMError(DEMErrorCode.MISSING_ID, "No id.");
|
|
106
|
-
// Use the model from the parent manager
|
|
107
|
-
this.entry = await this.parentManager.model.findById(_id);
|
|
108
|
-
if (!this.entry)
|
|
109
|
-
throw new DEMError(DEMErrorCode.DOCUMENT_NOT_FOUND, `Object not found in DB: ${this.className} with ID ${_id}`);
|
|
110
|
-
const docObj = typeof this.entry.toObject === "function" ? this.entry.toObject() : this.entry;
|
|
111
|
-
this.data = this.handleDataCleanup(docObj);
|
|
112
|
-
this.isLoading = false;
|
|
113
|
-
this.generateSettersAndGetters();
|
|
114
|
-
this.emitter.emit(EVENT_INTERNAL_PRE_LOADED + this.EmitterID);
|
|
115
|
-
})();
|
|
116
|
-
return this.loadPromise;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Ingests existing MongoDB Mongoose document into instance state.
|
|
120
|
-
*
|
|
121
|
-
* @param document - Mongoose Typegoose document.
|
|
122
|
-
*/
|
|
123
|
-
loadFromDocument(document) {
|
|
124
|
-
this.entry = document;
|
|
125
|
-
const docObj = typeof document.toObject === "function" ? document.toObject() : document;
|
|
126
|
-
this.data = this.handleDataCleanup(docObj);
|
|
127
|
-
this.isLoading = false;
|
|
128
|
-
this.generateSettersAndGetters();
|
|
129
|
-
this.emitter.emit(EVENT_INTERNAL_PRE_LOADED + this.EmitterID);
|
|
130
|
-
}
|
|
131
|
-
_cachedExtractedData = null;
|
|
132
|
-
/**
|
|
133
|
-
* Cleans raw object data and invalidates the cached extracted data representation.
|
|
134
|
-
*
|
|
135
|
-
* @param data - Raw entity data object.
|
|
136
|
-
* @returns Cleaned entity data object.
|
|
137
|
-
*/
|
|
138
|
-
handleDataCleanup(data) {
|
|
139
|
-
this._cachedExtractedData = null;
|
|
140
|
-
return super.handleDataCleanup(data);
|
|
141
|
-
}
|
|
142
|
-
/**
|
|
143
|
-
* Serialized data payload with resolved reference identifiers, cached for performance.
|
|
144
|
-
*
|
|
145
|
-
* @returns Extracted data representation of the entity.
|
|
146
|
-
*/
|
|
147
|
-
get extractedData() {
|
|
148
|
-
if (this._cachedExtractedData)
|
|
149
|
-
return this._cachedExtractedData;
|
|
150
|
-
const extracted = processIsRefProperties(this.data, this, null, [], {}, this.loggers).newData;
|
|
151
|
-
this._cachedExtractedData = extracted;
|
|
152
|
-
return extracted;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Sets a property value on the entity with deadlock-safe queueing during onUpdate hooks.
|
|
156
|
-
*
|
|
157
|
-
* @param key - Property key to modify.
|
|
158
|
-
* @param val - Value to set.
|
|
159
|
-
* @returns Promise resolving to operation outcome.
|
|
160
|
-
*/
|
|
161
|
-
async setValue(key, val) {
|
|
162
|
-
if (this._isUpdating &&
|
|
163
|
-
typeof this.setValueQueueInternal === "function") {
|
|
164
|
-
return this.setValueQueueInternal(key, val, false, false, true);
|
|
52
|
+
catch (error) {
|
|
53
|
+
this.loggers.error("Error loading object from database: " + error.message);
|
|
54
|
+
this.loggers.error(error.stack);
|
|
55
|
+
throw error;
|
|
165
56
|
}
|
|
166
|
-
return await super.setValue(key, val);
|
|
167
57
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
*
|
|
171
|
-
* @param key - Property key.
|
|
172
|
-
* @param val - Value to set.
|
|
173
|
-
* @param silent - Whether socket broadcast is skipped.
|
|
174
|
-
* @param noGet - Whether local update bypasses get.
|
|
175
|
-
* @param noUpdate - Whether onUpdate hook is skipped.
|
|
176
|
-
* @param isParentUpdate - Whether mutation originated from parent.
|
|
177
|
-
* @returns Promise resolving to update outcome.
|
|
178
|
-
*/
|
|
179
|
-
async setValue__(key, val, silent = false, noGet = false, noUpdate = false, isParentUpdate = false) {
|
|
180
|
-
if (this._isUpdating &&
|
|
181
|
-
typeof this.setValueQueueInternal === "function") {
|
|
182
|
-
return this.setValueQueueInternal(key, val, silent, noGet, noUpdate, isParentUpdate);
|
|
183
|
-
}
|
|
184
|
-
return await super.setValue__(key, val, silent, noGet, noUpdate, isParentUpdate);
|
|
58
|
+
async setValue_(key, val) {
|
|
59
|
+
return await this.setValue__(key, val);
|
|
185
60
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
* @param value - Value to set.
|
|
191
|
-
* @param silent - Whether socket broadcast is bypassed.
|
|
192
|
-
* @param noUpdate - Whether onUpdate hook is bypassed.
|
|
193
|
-
* @returns Promise resolving to setter outcome.
|
|
194
|
-
*/
|
|
195
|
-
async setValueInternal(key, value, silent = false, noUpdate = false) {
|
|
196
|
-
if (key === "__proto__" ||
|
|
197
|
-
key === "constructor" ||
|
|
198
|
-
key === "prototype") {
|
|
199
|
-
return { success: false, msg: `Invalid property key: ${key}` };
|
|
200
|
-
}
|
|
61
|
+
handleNewObject(_data) {
|
|
62
|
+
throw new Error("Cannot create new objects like this.");
|
|
63
|
+
}
|
|
64
|
+
async setValueInternal(key, value, _silent = false) {
|
|
201
65
|
try {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
this.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
this.entry[key] !== undefined ||
|
|
211
|
-
Boolean(this.entry.schema?.path?.(key));
|
|
212
|
-
if (isPersisted) {
|
|
213
|
-
this.saveLock = (this.saveLock ?? Promise.resolve())
|
|
214
|
-
.catch(() => { })
|
|
215
|
-
.then(async () => {
|
|
216
|
-
if (typeof this.parentManager.model?.updateOne === "function") {
|
|
217
|
-
await this.parentManager.model.updateOne({ _id }, { $set: { [key]: value } });
|
|
218
|
-
}
|
|
219
|
-
else if (this.entry && typeof this.entry.save === "function") {
|
|
220
|
-
await this.entry.save();
|
|
221
|
-
}
|
|
222
|
-
if (this.entry) {
|
|
223
|
-
this.entry[key] = value;
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
await this.saveLock;
|
|
227
|
-
}
|
|
228
|
-
this.data[key] = value;
|
|
229
|
-
this._cachedExtractedData = null;
|
|
230
|
-
if (this.parentManager) {
|
|
231
|
-
this.parentManager.startupPayloadCache = null;
|
|
232
|
-
}
|
|
233
|
-
if (!silent) {
|
|
234
|
-
if (this.parentManager && this.parentManager.changeTracker) {
|
|
235
|
-
this.parentManager.changeTracker.recordChange("update", _id.toString(), { [key]: value });
|
|
236
|
-
}
|
|
237
|
-
const update = this.makeUpdate(key, value);
|
|
238
|
-
const event = EVENT_UPDATE + this.className + _id.toString();
|
|
239
|
-
this.socket.emit(event, update);
|
|
240
|
-
if (this.parentManager &&
|
|
241
|
-
typeof this.parentManager.checkPermissionBoundaries ===
|
|
242
|
-
"function") {
|
|
243
|
-
await this.parentManager.checkPermissionBoundaries(this);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return { success: true, msg: "Success" };
|
|
66
|
+
await this.parentManager.managers[this.className].model.updateOne({ _id: this.data._id }, { $set: { [key]: value } });
|
|
67
|
+
const update = this.makeUpdate(key, value);
|
|
68
|
+
const event = "update" + this.className + this.data._id;
|
|
69
|
+
this.socket.emit(event, update);
|
|
70
|
+
return {
|
|
71
|
+
success: true,
|
|
72
|
+
msg: "Updated",
|
|
73
|
+
};
|
|
247
74
|
}
|
|
248
75
|
catch (error) {
|
|
249
|
-
this.loggers.error
|
|
250
|
-
|
|
76
|
+
this.loggers.error("Error saving object: " + error.message);
|
|
77
|
+
this.loggers.error(error.stack);
|
|
78
|
+
return {
|
|
79
|
+
success: false,
|
|
80
|
+
msg: "Error saving object: " + error.message,
|
|
81
|
+
};
|
|
251
82
|
}
|
|
252
83
|
}
|
|
253
|
-
/**
|
|
254
|
-
* Deletes entity from MongoDB and emits delete socket events.
|
|
255
|
-
*
|
|
256
|
-
* @param once - Internal flag for single-pass deletion.
|
|
257
|
-
* @returns Promise resolving to deletion outcome.
|
|
258
|
-
*/
|
|
259
84
|
async destroy(once = false) {
|
|
260
|
-
const _id = this.data._id;
|
|
261
|
-
if (!_id)
|
|
262
|
-
return { success: false, message: "Missing _id" };
|
|
263
85
|
if (!once) {
|
|
264
|
-
return await this.parentManager.deleteObject(_id);
|
|
86
|
+
return await this.parentManager.deleteObject(this.data._id);
|
|
265
87
|
}
|
|
266
|
-
// Wait for any pending saves to complete before deleting
|
|
267
|
-
await (this.saveLock ?? Promise.resolve()).catch(() => { });
|
|
268
88
|
try {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
await this.entry.deleteOne();
|
|
273
|
-
}
|
|
274
|
-
this.loggers.debug?.("Deleted object from server " + this.className);
|
|
89
|
+
const res = await this.entry.deleteOne({ _id: this.data._id });
|
|
90
|
+
this.loggers.debug("Deleted object from server " + this.className);
|
|
91
|
+
this.loggers.debug(res.deletedCount + " deleted.");
|
|
275
92
|
}
|
|
276
93
|
catch (error) {
|
|
277
|
-
this.loggers.error
|
|
94
|
+
this.loggers.error("Error deleting object from database - " +
|
|
95
|
+
this.className +
|
|
96
|
+
" - " +
|
|
97
|
+
this.data._id);
|
|
98
|
+
this.loggers.error(error.message);
|
|
99
|
+
this.loggers.error(error.stack);
|
|
278
100
|
return {
|
|
279
101
|
success: false,
|
|
280
|
-
message: "Deletion
|
|
102
|
+
message: "Deletion uncussessful: " + error.message,
|
|
281
103
|
};
|
|
282
104
|
}
|
|
283
|
-
this.socket.emit(
|
|
284
|
-
|
|
285
|
-
|
|
105
|
+
this.socket.emit("delete" + this.className, this.data._id);
|
|
106
|
+
this.socket.removeAllListeners("update" + this.className + this.data._id);
|
|
107
|
+
this.socket.removeAllListeners("delete" + this.className);
|
|
108
|
+
this.wipeSelf();
|
|
109
|
+
return {
|
|
110
|
+
success: true,
|
|
111
|
+
message: "Deleted",
|
|
112
|
+
};
|
|
286
113
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
*
|
|
290
|
-
* @param noUpdate - Whether hook execution is skipped.
|
|
291
|
-
* @param key - Modified property key.
|
|
292
|
-
*/
|
|
293
|
-
async onUpdate(noUpdate = false, key) {
|
|
294
|
-
if (noUpdate || this._isUpdating)
|
|
114
|
+
async onUpdate(noUpdate = false) {
|
|
115
|
+
if (noUpdate)
|
|
295
116
|
return;
|
|
296
|
-
this.
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
await this.parentManager.options.onUpdate(this, async (key, val) => {
|
|
300
|
-
// Bypass writeQueue chaining to prevent recursive deadlock while in onUpdate
|
|
301
|
-
return this.setValueQueueInternal(key, val, false, false, true);
|
|
302
|
-
}, key);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
finally {
|
|
306
|
-
this._isUpdating = false;
|
|
307
|
-
if (this.parentManager &&
|
|
308
|
-
typeof this.parentManager.checkPermissionBoundaries ===
|
|
309
|
-
"function") {
|
|
310
|
-
await this.parentManager.checkPermissionBoundaries(this);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Executes configured onDeletion hook prior to database removal.
|
|
316
|
-
*/
|
|
317
|
-
async onDeletion() {
|
|
318
|
-
if (this.parentManager.options?.onDeletion) {
|
|
319
|
-
await this.parentManager.options.onDeletion(this);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Instantiates and loads an AutoUpdatedServerObject instance.
|
|
325
|
-
*
|
|
326
|
-
* @param classParam - Constructor of the server entity class.
|
|
327
|
-
* @param className - Managed entity class name.
|
|
328
|
-
* @param socket - Socket server or transport instance.
|
|
329
|
-
* @param data - Entity identifier or initial data object.
|
|
330
|
-
* @param loggers - Logging interfaces.
|
|
331
|
-
* @param parentManager - Host server manager.
|
|
332
|
-
* @param emitter - Shared event emitter.
|
|
333
|
-
* @param document - Optional pre-loaded Mongoose document.
|
|
334
|
-
* @returns Promise resolving to the initialized server entity.
|
|
335
|
-
*/
|
|
336
|
-
export async function createAutoUpdatedClass(classParam, className, socket, data, loggers, parentManager, emitter, document) {
|
|
337
|
-
const obj = new classParam(classParam, socket, data, loggers, className, parentManager, emitter);
|
|
338
|
-
if (document) {
|
|
339
|
-
obj.loadFromDocument(document);
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
await obj.loadFromDB();
|
|
117
|
+
await this.parentManager.options?.onUpdate?.(this, (a, b) => {
|
|
118
|
+
return this.setValue__(a, b, false, true, true);
|
|
119
|
+
});
|
|
343
120
|
}
|
|
344
|
-
return obj;
|
|
345
121
|
}
|
|
122
|
+
//# sourceMappingURL=AutoUpdatedServerObjectClass.js.map
|
|
346
123
|
//# sourceMappingURL=AutoUpdatedServerObjectClass.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoUpdatedServerObjectClass.js","sourceRoot":"","sources":["../AutoUpdatedServerObjectClass.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,EAIL,YAAY,EACZ,YAAY,EAIZ,yBAAyB,EAGzB,QAAQ,EACR,YAAY,GACb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC,MAAM,OAAgB,uBAGpB,SAAQ,uBAA0B;IAGN,QAAQ,CAAU;IACpC,KAAK,CAAyB;IAEhC,QAAQ,GAAiB,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3C,WAAW,GAAyB,IAAI,CAAC;IACzC,WAAW,GAAY,KAAK,CAAC;IAwBrC,YACE,UAA2B,EAC3B,MAAgB,EAChB,IAAgB,EAChB,OAAqB,EACrB,SAAkB,EACl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I,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AACD,wDAAwD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
12
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13
|
+
return Reflect.metadata(k, v);
|
|
14
|
+
};
|
|
15
|
+
import { classProp, classRef, populatedRef } from "./CommonTypes.js";
|
|
16
|
+
import { Status } from "./TestTypes.js";
|
|
17
|
+
export class Test {
|
|
18
|
+
_id;
|
|
19
|
+
active;
|
|
20
|
+
status;
|
|
21
|
+
description;
|
|
22
|
+
ref;
|
|
23
|
+
refarr;
|
|
24
|
+
obj;
|
|
25
|
+
parent;
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
classProp,
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Test.prototype, "_id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
classProp,
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], Test.prototype, "active", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
classProp,
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], Test.prototype, "status", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
classProp,
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], Test.prototype, "description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
classProp,
|
|
45
|
+
classRef(),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], Test.prototype, "ref", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
classProp,
|
|
50
|
+
classRef(),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], Test.prototype, "refarr", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
classProp,
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], Test.prototype, "obj", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
classProp,
|
|
59
|
+
populatedRef("Test:refarr"),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], Test.prototype, "parent", void 0);
|
|
62
|
+
export class Test2 {
|
|
63
|
+
_id;
|
|
64
|
+
}
|
|
65
|
+
__decorate([
|
|
66
|
+
classProp,
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Test2.prototype, "_id", void 0);
|
|
69
|
+
//# sourceMappingURL=ClientTypes.js.map
|
|
70
|
+
//# sourceMappingURL=ClientTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientTypes.js","sourceRoot":"","sources":["../ClientTypes.js"],"names":[],"mappings":"AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAA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