taon 18.0.17 → 18.0.18
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/README.md +6 -3
- package/assets/shared/shared_folder_info.txt +1 -1
- package/browser/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +39 -20
- package/browser/esm2022/lib/base-classes/base.mjs +1 -3
- package/browser/esm2022/lib/create-context.mjs +20 -1
- package/browser/esm2022/lib/decorators/classes/subscriber-decorator.mjs +3 -29
- package/browser/esm2022/lib/endpoint-context.mjs +10 -136
- package/browser/esm2022/lib/entity-process.mjs +3 -3
- package/browser/esm2022/lib/helpers/class-helpers.mjs +2 -2
- package/browser/esm2022/lib/index.mjs +1 -14
- package/browser/esm2022/lib/inject.mjs +4 -38
- package/browser/esm2022/lib/models.mjs +1 -1
- package/browser/esm2022/lib/realtime/realtime-client.mjs +32 -20
- package/browser/esm2022/lib/realtime/realtime-core.mjs +15 -7
- package/browser/esm2022/lib/realtime/realtime-server.mjs +34 -16
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +198 -29
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +206 -10
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +3 -7
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +6 -2
- package/browser/esm2022/lib/realtime/realtime-subs-manager.mjs +10 -8
- package/browser/esm2022/lib/realtime/realtime.models.mjs +1 -1
- package/browser/esm2022/lib/symbols.mjs +45 -38
- package/browser/fesm2022/taon.mjs +557 -559
- package/browser/fesm2022/taon.mjs.map +1 -1
- package/browser/lib/base-classes/base-context.d.ts +4 -0
- package/browser/lib/base-classes/base.d.ts +4 -2
- package/browser/lib/create-context.d.ts +13 -0
- package/browser/lib/decorators/classes/subscriber-decorator.d.ts +2 -2
- package/browser/lib/helpers/class-helpers.d.ts +1 -1
- package/browser/lib/index.d.ts +12 -13
- package/browser/lib/inject.d.ts +1 -8
- package/browser/lib/models.d.ts +17 -9
- package/browser/lib/realtime/realtime-client.d.ts +8 -2
- package/browser/lib/realtime/realtime-core.d.ts +6 -6
- package/browser/lib/realtime/realtime-server.d.ts +9 -4
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -12
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +2 -3
- package/browser/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/browser/lib/realtime/realtime.models.d.ts +1 -0
- package/browser/lib/symbols.d.ts +30 -36
- package/client/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +39 -20
- package/client/esm2022/lib/base-classes/base.mjs +1 -3
- package/client/esm2022/lib/create-context.mjs +20 -1
- package/client/esm2022/lib/decorators/classes/subscriber-decorator.mjs +3 -29
- package/client/esm2022/lib/endpoint-context.mjs +10 -136
- package/client/esm2022/lib/entity-process.mjs +3 -3
- package/client/esm2022/lib/helpers/class-helpers.mjs +2 -2
- package/client/esm2022/lib/index.mjs +1 -14
- package/client/esm2022/lib/inject.mjs +4 -38
- package/client/esm2022/lib/models.mjs +1 -1
- package/client/esm2022/lib/realtime/realtime-client.mjs +32 -20
- package/client/esm2022/lib/realtime/realtime-core.mjs +15 -7
- package/client/esm2022/lib/realtime/realtime-server.mjs +34 -16
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +198 -29
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +206 -10
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +3 -7
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +6 -2
- package/client/esm2022/lib/realtime/realtime-subs-manager.mjs +10 -8
- package/client/esm2022/lib/realtime/realtime.models.mjs +1 -1
- package/client/esm2022/lib/symbols.mjs +45 -38
- package/client/fesm2022/taon.mjs +557 -559
- package/client/fesm2022/taon.mjs.map +1 -1
- package/client/lib/base-classes/base-context.d.ts +4 -0
- package/client/lib/base-classes/base.d.ts +4 -2
- package/client/lib/create-context.d.ts +13 -0
- package/client/lib/decorators/classes/subscriber-decorator.d.ts +2 -2
- package/client/lib/helpers/class-helpers.d.ts +1 -1
- package/client/lib/index.d.ts +12 -13
- package/client/lib/inject.d.ts +1 -8
- package/client/lib/models.d.ts +17 -9
- package/client/lib/realtime/realtime-client.d.ts +8 -2
- package/client/lib/realtime/realtime-core.d.ts +6 -6
- package/client/lib/realtime/realtime-server.d.ts +9 -4
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -12
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/client/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +2 -3
- package/client/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/client/lib/realtime/realtime.models.d.ts +1 -0
- package/client/lib/symbols.d.ts +30 -36
- package/lib/base-classes/base-context.d.ts +4 -0
- package/lib/base-classes/base-subscriber-for-entity.js +38 -19
- package/lib/base-classes/base-subscriber-for-entity.js.map +1 -1
- package/lib/base-classes/base.d.ts +4 -2
- package/lib/base-classes/base.js +0 -2
- package/lib/base-classes/base.js.map +1 -1
- package/lib/create-context.d.ts +13 -0
- package/lib/create-context.js +19 -8
- package/lib/create-context.js.map +1 -1
- package/lib/decorators/classes/subscriber-decorator.d.ts +1 -1
- package/lib/decorators/classes/subscriber-decorator.js +7 -58
- package/lib/decorators/classes/subscriber-decorator.js.map +1 -1
- package/lib/endpoint-context.js +33 -9
- package/lib/endpoint-context.js.map +1 -1
- package/lib/entity-process.js +2 -2
- package/lib/entity-process.js.map +1 -1
- package/lib/formly/formly-repeat-component.js +1 -1
- package/lib/formly/formly-repeat-component.js.map +1 -1
- package/lib/helpers/class-helpers.d.ts +1 -1
- package/lib/helpers/class-helpers.js +2 -2
- package/lib/helpers/class-helpers.js.map +1 -1
- package/lib/index.d.ts +12 -13
- package/lib/index.js +1 -17
- package/lib/index.js.map +1 -1
- package/lib/inject.d.ts +3 -7
- package/lib/inject.js +57 -42
- package/lib/inject.js.map +1 -1
- package/lib/models.d.ts +17 -9
- package/lib/models.js.map +1 -1
- package/lib/realtime/realtime-client.d.ts +8 -2
- package/lib/realtime/realtime-client.js +36 -21
- package/lib/realtime/realtime-client.js.map +1 -1
- package/lib/realtime/realtime-core.d.ts +6 -6
- package/lib/realtime/realtime-core.js +17 -6
- package/lib/realtime/realtime-core.js.map +1 -1
- package/lib/realtime/realtime-server.d.ts +9 -4
- package/lib/realtime/realtime-server.js +98 -76
- package/lib/realtime/realtime-server.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +301 -40
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +358 -14
- package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +3 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +10 -14
- package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -1
- package/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/lib/realtime/realtime-strategy/realtime-strategy.js +9 -2
- package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -1
- package/lib/realtime/realtime-subs-manager.js +10 -8
- package/lib/realtime/realtime-subs-manager.js.map +1 -1
- package/lib/realtime/realtime.models.d.ts +1 -0
- package/lib/symbols.d.ts +30 -36
- package/lib/symbols.js +63 -39
- package/lib/symbols.js.map +1 -1
- package/lib/ui/directives/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +2 -2
- package/lib/ui/taon-admin-mode-configuration/index.js +2 -2
- package/lib/ui/taon-github-fork-me-corner/index.js +2 -2
- package/lib/ui/taon-github-fork-me-ribbon/index.js +2 -2
- package/lib/ui/taon-notifications/taon-notifications.models.js +2 -2
- package/lib/ui/taon-progress-bar/index.js +2 -2
- package/lib/ui/taon-session-passcode/index.js +2 -2
- package/package.json +10 -8
- package/tmp-environment.json +33 -30
- package/websql/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +39 -20
- package/websql/esm2022/lib/base-classes/base.mjs +1 -3
- package/websql/esm2022/lib/create-context.mjs +20 -1
- package/websql/esm2022/lib/decorators/classes/subscriber-decorator.mjs +3 -29
- package/websql/esm2022/lib/endpoint-context.mjs +16 -18
- package/websql/esm2022/lib/entity-process.mjs +3 -3
- package/websql/esm2022/lib/helpers/class-helpers.mjs +2 -2
- package/websql/esm2022/lib/index.mjs +1 -14
- package/websql/esm2022/lib/inject.mjs +4 -38
- package/websql/esm2022/lib/models.mjs +1 -1
- package/websql/esm2022/lib/realtime/realtime-client.mjs +32 -20
- package/websql/esm2022/lib/realtime/realtime-core.mjs +15 -7
- package/websql/esm2022/lib/realtime/realtime-server.mjs +90 -72
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +200 -30
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +206 -10
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +3 -7
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +6 -2
- package/websql/esm2022/lib/realtime/realtime-subs-manager.mjs +10 -8
- package/websql/esm2022/lib/realtime/realtime.models.mjs +1 -1
- package/websql/esm2022/lib/symbols.mjs +45 -38
- package/websql/fesm2022/taon.mjs +669 -687
- package/websql/fesm2022/taon.mjs.map +1 -1
- package/websql/lib/base-classes/base-context.d.ts +4 -0
- package/websql/lib/base-classes/base.d.ts +4 -2
- package/websql/lib/create-context.d.ts +13 -0
- package/websql/lib/decorators/classes/subscriber-decorator.d.ts +2 -2
- package/websql/lib/helpers/class-helpers.d.ts +1 -1
- package/websql/lib/index.d.ts +12 -13
- package/websql/lib/inject.d.ts +1 -8
- package/websql/lib/models.d.ts +17 -9
- package/websql/lib/realtime/realtime-client.d.ts +8 -2
- package/websql/lib/realtime/realtime-core.d.ts +6 -6
- package/websql/lib/realtime/realtime-server.d.ts +9 -4
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +71 -12
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +4 -4
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +2 -3
- package/websql/lib/realtime/realtime-strategy/realtime-strategy.d.ts +4 -5
- package/websql/lib/realtime/realtime.models.d.ts +1 -0
- package/websql/lib/symbols.d.ts +30 -36
- package/browser/esm2022/lib/base-classes/base-subscriber.mjs +0 -27
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +0 -98
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +0 -45
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +0 -40
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +0 -25
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +0 -4
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +0 -5
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +0 -50
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +0 -48
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +0 -35
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +0 -43
- package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +0 -4
- package/browser/lib/base-classes/base-subscriber.d.ts +0 -5
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -17
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -11
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -11
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -14
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -3
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -17
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -18
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -12
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -14
- package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -12
- package/client/esm2022/lib/base-classes/base-subscriber.mjs +0 -27
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +0 -98
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +0 -45
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +0 -40
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +0 -25
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +0 -4
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +0 -5
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +0 -50
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +0 -48
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +0 -35
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +0 -43
- package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +0 -4
- package/client/lib/base-classes/base-subscriber.d.ts +0 -5
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -17
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -11
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -11
- package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -14
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -3
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -17
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -18
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -12
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -14
- package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -12
- package/lib/base-classes/base-subscriber.d.ts +0 -4
- package/lib/base-classes/base-subscriber.js +0 -25
- package/lib/base-classes/base-subscriber.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +0 -5
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +0 -139
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -16
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +0 -68
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -10
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +0 -56
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -10
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +0 -50
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -13
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +0 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -2
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +0 -6
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -16
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +0 -54
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -17
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +0 -52
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +0 -39
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -13
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +0 -46
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +0 -1
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -11
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +0 -3
- package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +0 -1
- package/websql/esm2022/lib/base-classes/base-subscriber.mjs +0 -27
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +0 -98
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +0 -45
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +0 -40
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +0 -25
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +0 -4
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +0 -5
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +0 -50
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +0 -48
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +0 -35
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +0 -43
- package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +0 -4
- package/websql/lib/base-classes/base-subscriber.d.ts +0 -5
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +0 -22
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +0 -17
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +0 -11
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +0 -11
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +0 -14
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +0 -3
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +0 -17
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +0 -18
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +0 -12
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +0 -14
- package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +0 -12
|
@@ -13,5 +13,9 @@ declare const BaseContext: {
|
|
|
13
13
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
14
14
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
15
15
|
initialize: () => Promise<import("../endpoint-context").EndpointContext>;
|
|
16
|
+
readonly realtime: {
|
|
17
|
+
readonly client: import("../realtime/realtime-client").RealtimeClient;
|
|
18
|
+
readonly server: import("../realtime/realtime-server").RealtimeServer;
|
|
19
|
+
};
|
|
16
20
|
};
|
|
17
21
|
export { BaseContext };
|
|
@@ -6,7 +6,6 @@ import * as abstractEntity from './base-abstract-entity';
|
|
|
6
6
|
import * as repository from './base-repository';
|
|
7
7
|
import * as provider from './base-provider';
|
|
8
8
|
import * as baseclass from './base-class';
|
|
9
|
-
import * as baseSubscriber from './base-subscriber';
|
|
10
9
|
import * as baseSubscriberEntity from './base-subscriber-for-entity';
|
|
11
10
|
export declare namespace Base {
|
|
12
11
|
export import Controller = controller.BaseController;
|
|
@@ -16,7 +15,6 @@ export declare namespace Base {
|
|
|
16
15
|
export import Provider = provider.BaseProvider;
|
|
17
16
|
export import Class = baseclass.BaseClass;
|
|
18
17
|
export import Repository = repository.BaseRepository;
|
|
19
|
-
export import Subscriber = baseSubscriber.BaseSubscriber;
|
|
20
18
|
export import SubscriberForEntity = baseSubscriberEntity.BaseSubscriberForEntity;
|
|
21
19
|
const Context: {
|
|
22
20
|
types: {
|
|
@@ -32,5 +30,9 @@ export declare namespace Base {
|
|
|
32
30
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
33
31
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
34
32
|
initialize: () => Promise<import("../endpoint-context").EndpointContext>;
|
|
33
|
+
readonly realtime: {
|
|
34
|
+
readonly client: import("../realtime/realtime-client").RealtimeClient;
|
|
35
|
+
readonly server: import("../realtime/realtime-server").RealtimeServer;
|
|
36
|
+
};
|
|
35
37
|
};
|
|
36
38
|
}
|
|
@@ -11,9 +11,14 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
11
11
|
readonly contexts: CTX;
|
|
12
12
|
readonly contextName: string;
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated
|
|
14
15
|
* - get reference to internal context
|
|
15
16
|
*/
|
|
16
17
|
__ref(): Promise<EndpointContext>;
|
|
18
|
+
/**
|
|
19
|
+
* only for internal use
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
17
22
|
readonly __refSync: EndpointContext;
|
|
18
23
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
19
24
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
@@ -22,4 +27,12 @@ export declare const createContext: <CTX extends Record<string, object>, CTRL ex
|
|
|
22
27
|
* - init database (if enable) + migation scripts
|
|
23
28
|
*/
|
|
24
29
|
initialize: () => Promise<EndpointContext>;
|
|
30
|
+
/**
|
|
31
|
+
* realtime communication with server
|
|
32
|
+
* Udp socket.io (or ipc) based.
|
|
33
|
+
*/
|
|
34
|
+
readonly realtime: {
|
|
35
|
+
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
36
|
+
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
37
|
+
};
|
|
25
38
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Models } from '../../models';
|
|
3
|
+
export declare function TaonSubscriber(options: TaonSubscriberOptions): any;
|
|
3
4
|
export declare class TaonSubscriberOptions<T = any> extends Models.DecoratorAbstractOpt {
|
|
4
5
|
allowedEvents?: (keyof T)[];
|
|
5
|
-
}
|
|
6
|
-
export declare function TaonSubscriber(options: TaonSubscriberOptions): any;
|
|
6
|
+
}
|
|
@@ -8,7 +8,7 @@ export declare namespace ClassHelpers {
|
|
|
8
8
|
const getName: (classFnOrObject: any) => string;
|
|
9
9
|
const getOrginalClass: (classFnOrObject: any) => any;
|
|
10
10
|
const getFullInternalName: (classFnOrObject: any) => string;
|
|
11
|
-
const
|
|
11
|
+
const getUniqueKey: (classFnOrObject: any) => string;
|
|
12
12
|
const isContextClassObject: (obj: any) => boolean;
|
|
13
13
|
const setName: (target: Function, className: string) => void;
|
|
14
14
|
const hasParentClassWithName: (target: Function, className: string, targets?: any[]) => boolean;
|
package/browser/lib/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { NgZone } from '@angular/core';
|
|
|
15
15
|
export { BaseRepository } from './base-classes/base-repository';
|
|
16
16
|
export { BaseController } from './base-classes/base-controller';
|
|
17
17
|
export { BaseProvider } from './base-classes/base-provider';
|
|
18
|
-
export { BaseSubscriber } from './base-classes/base-subscriber';
|
|
19
18
|
export { BaseEntity } from './base-classes/base-entity';
|
|
20
19
|
export { BaseContext } from './base-classes/base-context';
|
|
21
20
|
export { createContext } from './create-context';
|
|
@@ -37,21 +36,9 @@ export declare namespace Taon {
|
|
|
37
36
|
export import Provider = providerDecorator.TaonProvider;
|
|
38
37
|
export import Repository = repositoryDecorator.TaonRepository;
|
|
39
38
|
export import Subscriber = subscriberDecorator.TaonSubscriber;
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated
|
|
42
|
-
*/
|
|
43
39
|
const isBrowser: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated
|
|
46
|
-
*/
|
|
47
40
|
const isNode: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated
|
|
50
|
-
*/
|
|
51
41
|
const isWebSQL: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated
|
|
54
|
-
*/
|
|
55
42
|
const isElectron: boolean;
|
|
56
43
|
const createContext: <CTX extends Record<string, object>, CTRL extends Record<string, new (...args: any[]) => any>, ENTITY extends Record<string, new (...args: any[]) => any>, REPO extends Record<string, new (...args: any[]) => any>, PROVIDER extends Record<string, new (...args: any[]) => any>, SUBSCRIBER extends Record<string, new (...args: any[]) => any>>(configFn: (env: any) => models.Models.ContextOptions<CTX, CTRL, ENTITY, REPO, PROVIDER, SUBSCRIBER>) => {
|
|
57
44
|
types: {
|
|
@@ -67,6 +54,10 @@ export declare namespace Taon {
|
|
|
67
54
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
68
55
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
69
56
|
initialize: () => Promise<endpointContext.EndpointContext>;
|
|
57
|
+
readonly realtime: {
|
|
58
|
+
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
59
|
+
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
60
|
+
};
|
|
70
61
|
};
|
|
71
62
|
const inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
72
63
|
const initNgZone: (ngZone: NgZone) => void;
|
|
@@ -101,6 +92,10 @@ export declare namespace Taon {
|
|
|
101
92
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
102
93
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
103
94
|
initialize: () => Promise<endpointContext.EndpointContext>;
|
|
95
|
+
readonly realtime: {
|
|
96
|
+
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
97
|
+
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
98
|
+
};
|
|
104
99
|
};
|
|
105
100
|
};
|
|
106
101
|
readonly contextName: string;
|
|
@@ -109,5 +104,9 @@ export declare namespace Taon {
|
|
|
109
104
|
getClassInstance<T>(ctor: new (...args: any[]) => T): T;
|
|
110
105
|
getClass<T>(ctor: new (...args: any[]) => T): new (...args: any[]) => T;
|
|
111
106
|
initialize: () => Promise<endpointContext.EndpointContext>;
|
|
107
|
+
readonly realtime: {
|
|
108
|
+
readonly client: import("./realtime/realtime-client").RealtimeClient;
|
|
109
|
+
readonly server: import("./realtime/realtime-server").RealtimeServer;
|
|
110
|
+
};
|
|
112
111
|
}>;
|
|
113
112
|
}
|
package/browser/lib/inject.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
export declare const inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
4
|
-
export declare const injectController: <T>(entity: () => new (...args: any[]) => T) => T;
|
|
5
|
-
export type SubscbtionEvent<T> = {
|
|
6
|
-
name: keyof T;
|
|
7
|
-
data: any;
|
|
8
|
-
};
|
|
9
|
-
export declare const injectSubscriberEvents: <T>(subscriberClassResolveFn: () => new (...args: any[]) => T, eventName: keyof T) => Observable<SubscbtionEvent<T>>;
|
|
2
|
+
export declare const inject: <T>(entity: () => new (...args: any[]) => T) => T;
|
package/browser/lib/models.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { CoreModels } from 'tnp-core/browser';
|
|
|
3
3
|
import { Response as ExpressResponse, Request as ExpressRequest } from 'express';
|
|
4
4
|
import { Models as ModelsNg2Rest } from 'ng2-rest/browser';
|
|
5
5
|
export declare namespace Models {
|
|
6
|
-
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql)';
|
|
6
|
+
type FrameworkMode = 'backend-frontend(tcp+udp)' | 'remote-backend(tcp+udp)' | 'backend-frontend(ipc-electron)' | 'backend-frontend(websql-electron)' | 'backend-frontend(websql)';
|
|
7
7
|
enum ClassType {
|
|
8
8
|
ENTITY = "ENTITY",
|
|
9
9
|
CONTROLLER = "CONTROLLER",
|
|
@@ -47,20 +47,28 @@ export declare namespace Models {
|
|
|
47
47
|
resave?: boolean;
|
|
48
48
|
};
|
|
49
49
|
type ContectionOptionsLogs = {
|
|
50
|
-
http
|
|
51
|
-
realtime
|
|
52
|
-
framework
|
|
53
|
-
db
|
|
50
|
+
http?: boolean;
|
|
51
|
+
realtime?: boolean;
|
|
52
|
+
framework?: boolean;
|
|
53
|
+
db?: boolean;
|
|
54
54
|
};
|
|
55
55
|
interface ContextOptions<CONTEXTS, CONTROLLERS, ENTITIES, REPOSITORIES, PROVIDERS, SUBSCRIBERS> {
|
|
56
56
|
contextName: string;
|
|
57
|
+
/**
|
|
58
|
+
* host/port for initing backend server
|
|
59
|
+
*/
|
|
57
60
|
host?: string;
|
|
58
61
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
* frontend host only needed when we are
|
|
63
|
+
* using withCredentials for axios
|
|
64
|
+
* and session cookie
|
|
65
|
+
* or realtime communication
|
|
66
|
+
*/
|
|
63
67
|
frontendHost?: string;
|
|
68
|
+
/**
|
|
69
|
+
* backend way of communication
|
|
70
|
+
* between taon backends/processes
|
|
71
|
+
*/
|
|
64
72
|
remoteHost?: string;
|
|
65
73
|
useIpcWhenElectron?: boolean;
|
|
66
74
|
contexts?: CONTEXTS;
|
|
@@ -5,7 +5,7 @@ import { RealtimeModels } from './realtime.models';
|
|
|
5
5
|
import type { BaseEntity } from '../base-classes/base-entity';
|
|
6
6
|
export declare class RealtimeClient {
|
|
7
7
|
private core;
|
|
8
|
-
private
|
|
8
|
+
private subsManagers;
|
|
9
9
|
constructor(core: RealtimeCore);
|
|
10
10
|
private init;
|
|
11
11
|
/**
|
|
@@ -28,5 +28,11 @@ export declare class RealtimeClient {
|
|
|
28
28
|
*/
|
|
29
29
|
listenChangesEntityObj<T extends BaseEntity>(entity: T, options?: RealtimeModels.ChangeOption): Observable<unknown>;
|
|
30
30
|
listenChangesCustomEvent(customEvent: string): Observable<unknown>;
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Trigger custom event on backend
|
|
33
|
+
* @param customEvent global event name
|
|
34
|
+
* @param dataToPush
|
|
35
|
+
*/
|
|
36
|
+
triggerCustomEvent(customEvent: string, dataToPush?: any): void;
|
|
37
|
+
private getUniqueIdentifierForConnection;
|
|
32
38
|
}
|
|
@@ -20,21 +20,21 @@ export declare class RealtimeCore {
|
|
|
20
20
|
readonly server: RealtimeServer;
|
|
21
21
|
readonly strategy: RealtimeStrategy;
|
|
22
22
|
/**
|
|
23
|
-
* global FE socket
|
|
23
|
+
* global FE socket - only for established connection
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
conectSocketFE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
|
|
26
26
|
/**
|
|
27
27
|
* socket for namespaces and rooms
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
socketFE: SocketClient<DefaultEventsMap, DefaultEventsMap>;
|
|
30
30
|
/**
|
|
31
|
-
* global BE socket
|
|
31
|
+
* global BE socket - only for established connection
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
connectSocketBE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
34
34
|
/**
|
|
35
35
|
* socket for namespaces and rooms
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
socketBE: Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
38
38
|
constructor(ctx: EndpointContext);
|
|
39
39
|
private resolveStrategy;
|
|
40
40
|
pathFor(namespace?: string): URL;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { RealtimeCore } from './realtime-core';
|
|
3
3
|
import type { BaseEntity } from '../base-classes/base-entity';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
export declare class RealtimeServer {
|
|
5
6
|
private core;
|
|
6
|
-
private jobs;
|
|
7
7
|
constructor(core: RealtimeCore);
|
|
8
8
|
private init;
|
|
9
9
|
private triggerChanges;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
triggerEntityChanges(entityObjOrClass: Function, idToTrigger?: number | string): void;
|
|
11
|
+
triggerEntityPropertyChanges<ENTITY extends BaseEntity>(entityObjOrClass: new (...args: any[]) => ENTITY, property: keyof ENTITY | (keyof ENTITY)[], idToTrigger?: number | string): void;
|
|
12
|
+
triggerEntityTableChanges(entityClassOrInstance: Function | object): void;
|
|
12
13
|
triggerCustomEvent(customEvent: string, dataToPush: any): void;
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Listen to custom events from users
|
|
16
|
+
* @param customEvent global event name
|
|
17
|
+
*/
|
|
18
|
+
listenChangesCustomEvent(customEvent: string): Observable<any>;
|
|
14
19
|
}
|
|
@@ -1,8 +1,73 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import {
|
|
2
|
+
import { ServerOptions } from 'socket.io';
|
|
3
3
|
import { EndpointContext } from '../../endpoint-context';
|
|
4
4
|
import { RealtimeStrategy } from './realtime-strategy';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ipcRenderer } from 'electron';
|
|
6
|
+
import { RealtimeModels } from '../realtime.models';
|
|
7
|
+
export declare class MockServerIpc {
|
|
8
|
+
contextName: string;
|
|
9
|
+
static serverByContextName: Map<string, MockServerIpc>;
|
|
10
|
+
static from(contextName: string): MockServerIpc;
|
|
11
|
+
namespacesByName: Map<string, MockNamespaceIpc>;
|
|
12
|
+
constructor(contextName: string);
|
|
13
|
+
of(namespace: string): MockNamespaceIpc;
|
|
14
|
+
}
|
|
15
|
+
export declare class MockNamespaceIpc {
|
|
16
|
+
/**
|
|
17
|
+
* Namespace name
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
server: MockServerIpc;
|
|
21
|
+
electronClients: Set<Electron.WebContents>;
|
|
22
|
+
roomsByRoomName: {
|
|
23
|
+
[roomName: string]: Set<Electron.WebContents>;
|
|
24
|
+
};
|
|
25
|
+
private namespaceEventHandlers;
|
|
26
|
+
constructor(
|
|
27
|
+
/**
|
|
28
|
+
* Namespace name
|
|
29
|
+
*/
|
|
30
|
+
name: string, server: MockServerIpc);
|
|
31
|
+
on(eventName: string, callback: RealtimeModels.EventHandler): any;
|
|
32
|
+
off(event: string, callback?: RealtimeModels.EventHandler): any;
|
|
33
|
+
emit(eventName: string, ...args: any[]): any;
|
|
34
|
+
to(roomName: string): RoomEmitterIpc;
|
|
35
|
+
in(roomName: string): RoomEmitterIpc;
|
|
36
|
+
join(webContents: Electron.WebContents, roomName: string): void;
|
|
37
|
+
leave(webContents: Electron.WebContents, roomName: string): void;
|
|
38
|
+
path(): string;
|
|
39
|
+
get nsp(): {
|
|
40
|
+
readonly name: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
declare class RoomEmitterIpc {
|
|
44
|
+
private electronClients;
|
|
45
|
+
/**
|
|
46
|
+
* namespace name
|
|
47
|
+
*/
|
|
48
|
+
private name;
|
|
49
|
+
private includeSender;
|
|
50
|
+
private sender;
|
|
51
|
+
constructor(electronClients: Set<Electron.WebContents>,
|
|
52
|
+
/**
|
|
53
|
+
* namespace name
|
|
54
|
+
*/
|
|
55
|
+
name: string, includeSender?: boolean, sender?: MockSocketIpc);
|
|
56
|
+
emit(eventName: string, ...args: any[]): void;
|
|
57
|
+
}
|
|
58
|
+
export declare class MockSocketIpc {
|
|
59
|
+
namespaceName: string;
|
|
60
|
+
ipcRenderer: typeof ipcRenderer;
|
|
61
|
+
private socketEventHandlers;
|
|
62
|
+
get name(): string;
|
|
63
|
+
/**
|
|
64
|
+
* @param namespaceName instead url for ipc
|
|
65
|
+
*/
|
|
66
|
+
constructor(namespaceName: string);
|
|
67
|
+
on(eventName: string, callback: (event: any, ...args: any[]) => void): void;
|
|
68
|
+
off(event: string, callback?: (event: any, ...args: any[]) => void): void;
|
|
69
|
+
emit(event: string, ...args: any[]): void;
|
|
70
|
+
}
|
|
6
71
|
/**
|
|
7
72
|
* Purpose:
|
|
8
73
|
* - backend-browser communication between 2 processes in electron mode
|
|
@@ -10,14 +75,8 @@ import type { io } from 'socket.io-client';
|
|
|
10
75
|
export declare class RealtimeStrategyIpc extends RealtimeStrategy {
|
|
11
76
|
protected ctx: EndpointContext;
|
|
12
77
|
toString(): string;
|
|
13
|
-
establishConnection(): void;
|
|
14
78
|
constructor(ctx: EndpointContext);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
[contextName: string]: typeof io;
|
|
20
|
-
};
|
|
21
|
-
get io(): any;
|
|
22
|
-
get Server(): any;
|
|
23
|
-
}
|
|
79
|
+
ioServer(__: string, opt: ServerOptions): any;
|
|
80
|
+
get ioClient(): any;
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { EndpointContext } from '../../endpoint-context';
|
|
2
|
+
import type { EndpointContext } from '../../endpoint-context';
|
|
3
3
|
import { RealtimeStrategy } from './realtime-strategy';
|
|
4
|
+
import { ServerOptions } from 'socket.io';
|
|
4
5
|
/**
|
|
5
6
|
* Purpose:
|
|
6
7
|
* - browser-browser communication mock (in websql mode)
|
|
@@ -9,7 +10,6 @@ export declare class RealtimeStrategyMock extends RealtimeStrategy {
|
|
|
9
10
|
protected ctx: EndpointContext;
|
|
10
11
|
toString(): string;
|
|
11
12
|
constructor(ctx: EndpointContext);
|
|
12
|
-
|
|
13
|
-
get
|
|
14
|
-
establishConnection(): void;
|
|
13
|
+
ioServer(url: string, opt: ServerOptions): any;
|
|
14
|
+
get ioClient(): any;
|
|
15
15
|
}
|
|
@@ -11,7 +11,6 @@ export declare class RealtimeStrategySocketIO extends RealtimeStrategy {
|
|
|
11
11
|
protected ctx: EndpointContext;
|
|
12
12
|
toString(): string;
|
|
13
13
|
constructor(ctx: EndpointContext);
|
|
14
|
-
|
|
15
|
-
get
|
|
16
|
-
establishConnection(): void;
|
|
14
|
+
ioServer(...args: any[]): any;
|
|
15
|
+
get ioClient(): typeof io;
|
|
17
16
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { EndpointContext } from '../../endpoint-context';
|
|
3
|
-
import type { Server } from 'socket.io';
|
|
3
|
+
import type { Server, ServerOptions } from 'socket.io';
|
|
4
4
|
import type { io } from 'socket.io-client';
|
|
5
|
+
import { DefaultEventsMap } from 'socket.io/dist/typed-events';
|
|
5
6
|
export declare abstract class RealtimeStrategy {
|
|
6
7
|
protected ctx: EndpointContext;
|
|
7
8
|
constructor(ctx: EndpointContext);
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
abstract readonly io: typeof io;
|
|
11
|
-
abstract readonly Server: typeof Server;
|
|
9
|
+
get ioClient(): typeof io;
|
|
10
|
+
ioServer(url: string, opt: ServerOptions): Server<DefaultEventsMap, DefaultEventsMap, DefaultEventsMap, any>;
|
|
12
11
|
abstract toString(): string;
|
|
13
12
|
}
|
package/browser/lib/symbols.d.ts
CHANGED
|
@@ -1,41 +1,34 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
export declare namespace Symbols {
|
|
3
|
-
const ctxInClassOrClassObj: unique symbol;
|
|
4
|
-
const classNameStaticProperty: string;
|
|
5
|
-
const fullClassNameStaticProperty: string;
|
|
6
|
-
const orignalClass: string;
|
|
7
|
-
const orignalClassClonesObj: string;
|
|
8
|
-
const classMethodsNames: string;
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
export const ctxInClassOrClassObj: unique symbol;
|
|
4
|
+
export const classNameStaticProperty: string;
|
|
5
|
+
export const fullClassNameStaticProperty: string;
|
|
6
|
+
export const orignalClass: string;
|
|
7
|
+
export const orignalClassClonesObj: string;
|
|
8
|
+
export const classMethodsNames: string;
|
|
9
|
+
/**
|
|
10
|
+
* for backendSocket.in(ROOM_NAME).emit(EVENT)
|
|
11
|
+
*
|
|
12
|
+
* Room names are uniqe..
|
|
13
|
+
* here I am limiting number of event for clients.
|
|
14
|
+
*/
|
|
15
|
+
class Realtime {
|
|
16
|
+
NAMESPACE(contextName: string): string;
|
|
11
17
|
TABLE_CHANGE(contextName: string, tableName: string): string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
SUBSCRIBE: {
|
|
27
|
-
CUSTOM: (contextName: string) => string;
|
|
28
|
-
ENTITY_UPDATE_EVENTS: (contextName: string) => string;
|
|
29
|
-
ENTITY_PROPERTY_UPDATE_EVENTS: (contextName: string) => string;
|
|
30
|
-
};
|
|
31
|
-
UNSUBSCRIBE: {
|
|
32
|
-
CUSTOM: (contextName: string) => string;
|
|
33
|
-
ENTITY_UPDATE_EVENTS: (contextName: string) => string;
|
|
34
|
-
ENTITY_PROPERTY_UPDATE_EVENTS: (contextName: string) => string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
const metadata: {
|
|
18
|
+
readonly KEYroomSubscribe = "roomSubscribe";
|
|
19
|
+
readonly KEYroomUnsubscribe = "roomUnsubscribe";
|
|
20
|
+
ROOM_NAME_CUSTOM(contextName: string, customEvent: string): string;
|
|
21
|
+
ROOM_SUBSCRIBE_CUSTOM(contextName: string): string;
|
|
22
|
+
ROOM_UNSUBSCRIBE_CUSTOM(contextName: string): string;
|
|
23
|
+
ROOM_NAME_UPDATE_ENTITY(contextName: string, className: string, entityId: number | string): string;
|
|
24
|
+
ROOM_SUBSCRIBE_ENTITY_UPDATE_EVENTS(contextName: string): string;
|
|
25
|
+
ROOM_UNSUBSCRIBE_ENTITY_UPDATE_EVENTS(contextName: string): string;
|
|
26
|
+
ROOM_NAME_UPDATE_ENTITY_PROPERTY(contextName: string, className: string, property: string, entityId: number | string): string;
|
|
27
|
+
ROOM_SUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
|
|
28
|
+
ROOM_UNSUBSCRIBE_ENTITY_PROPERTY_UPDATE_EVENTS(contextName: string): string;
|
|
29
|
+
}
|
|
30
|
+
export const REALTIME: Realtime;
|
|
31
|
+
export const metadata: {
|
|
39
32
|
className: string;
|
|
40
33
|
options: {
|
|
41
34
|
runtimeController: string;
|
|
@@ -47,7 +40,7 @@ export declare namespace Symbols {
|
|
|
47
40
|
subscriber: string;
|
|
48
41
|
};
|
|
49
42
|
};
|
|
50
|
-
const old: {
|
|
43
|
+
export const old: {
|
|
51
44
|
HAS_TABLE_IN_DB: symbol;
|
|
52
45
|
MDC_KEY: string;
|
|
53
46
|
WEBSQL_REST_PROGRESS_FUN: symbol;
|
|
@@ -70,4 +63,5 @@ export declare namespace Symbols {
|
|
|
70
63
|
CLASS_NAME_MATCH: string;
|
|
71
64
|
};
|
|
72
65
|
};
|
|
66
|
+
export {};
|
|
73
67
|
}
|