@adaas/a-utils 0.2.8 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.conf/tsconfig.base.json +91 -0
- package/.conf/tsconfig.browser.json +26 -0
- package/.conf/tsconfig.node.json +30 -0
- package/dist/browser/A-Logger.component-Be-LMV3I.d.mts +467 -0
- package/dist/browser/A-StateMachineTransition.context-BINjcsgq.d.mts +221 -0
- package/dist/browser/a-channel.d.mts +456 -0
- package/dist/browser/a-channel.mjs +367 -0
- package/dist/browser/a-channel.mjs.map +1 -0
- package/dist/browser/a-command.d.mts +555 -0
- package/dist/browser/a-command.mjs +567 -0
- package/dist/browser/a-command.mjs.map +1 -0
- package/dist/browser/a-config.d.mts +60 -0
- package/dist/browser/a-config.mjs +6 -0
- package/dist/browser/a-config.mjs.map +1 -0
- package/dist/browser/a-execution.d.mts +17 -0
- package/dist/browser/a-execution.mjs +4 -0
- package/dist/browser/a-execution.mjs.map +1 -0
- package/dist/browser/a-logger.d.mts +107 -0
- package/dist/browser/a-logger.mjs +7 -0
- package/dist/browser/a-logger.mjs.map +1 -0
- package/dist/browser/a-manifest.d.mts +111 -0
- package/dist/browser/a-manifest.mjs +176 -0
- package/dist/browser/a-manifest.mjs.map +1 -0
- package/dist/browser/a-memory.d.mts +163 -0
- package/dist/browser/a-memory.mjs +375 -0
- package/dist/browser/a-memory.mjs.map +1 -0
- package/dist/browser/a-operation.d.mts +52 -0
- package/dist/browser/a-operation.mjs +5 -0
- package/dist/browser/a-operation.mjs.map +1 -0
- package/dist/browser/a-polyfill.d.mts +275 -0
- package/dist/browser/a-polyfill.mjs +4 -0
- package/dist/browser/a-polyfill.mjs.map +1 -0
- package/dist/browser/a-route.d.mts +25 -0
- package/dist/browser/a-route.mjs +98 -0
- package/dist/browser/a-route.mjs.map +1 -0
- package/dist/browser/a-schedule.d.mts +111 -0
- package/dist/browser/a-schedule.mjs +97 -0
- package/dist/browser/a-schedule.mjs.map +1 -0
- package/dist/browser/a-service.d.mts +40 -0
- package/dist/browser/a-service.mjs +197 -0
- package/dist/browser/a-service.mjs.map +1 -0
- package/dist/browser/a-signal.d.mts +402 -0
- package/dist/browser/a-signal.mjs +588 -0
- package/dist/browser/a-signal.mjs.map +1 -0
- package/dist/browser/a-state-machine.d.mts +11 -0
- package/dist/browser/a-state-machine.mjs +6 -0
- package/dist/browser/a-state-machine.mjs.map +1 -0
- package/dist/browser/chunk-72ANHWNG.mjs +48 -0
- package/dist/browser/chunk-72ANHWNG.mjs.map +1 -0
- package/dist/browser/chunk-ECSGFDRQ.mjs +264 -0
- package/dist/browser/chunk-ECSGFDRQ.mjs.map +1 -0
- package/dist/browser/chunk-EQQGB2QZ.mjs +15 -0
- package/dist/browser/chunk-EQQGB2QZ.mjs.map +1 -0
- package/dist/browser/chunk-J6CLHXFQ.mjs +679 -0
- package/dist/browser/chunk-J6CLHXFQ.mjs.map +1 -0
- package/dist/browser/chunk-NLPSQYIQ.mjs +149 -0
- package/dist/browser/chunk-NLPSQYIQ.mjs.map +1 -0
- package/dist/browser/chunk-TK5UEYMZ.mjs +776 -0
- package/dist/browser/chunk-TK5UEYMZ.mjs.map +1 -0
- package/dist/browser/chunk-TQ5UON22.mjs +56 -0
- package/dist/browser/chunk-TQ5UON22.mjs.map +1 -0
- package/dist/node/A-Command.entity-24rvXQLC.d.mts +409 -0
- package/dist/node/A-Command.entity-ISgSk8wB.d.ts +409 -0
- package/dist/node/A-Manifest.context-D2uynD9t.d.mts +66 -0
- package/dist/node/A-Manifest.context-rZnvR17w.d.ts +66 -0
- package/dist/node/A-Signal.types-P5VKMKMs.d.mts +114 -0
- package/dist/node/A-Signal.types-P5VKMKMs.d.ts +114 -0
- package/dist/node/chunk-EQQGB2QZ.mjs +15 -0
- package/dist/node/chunk-EQQGB2QZ.mjs.map +1 -0
- package/dist/node/constants/errors.constants.d.mts +2 -0
- package/dist/node/constants/errors.constants.d.ts +2 -0
- package/dist/node/constants/errors.constants.js +4 -0
- package/dist/node/constants/errors.constants.js.map +1 -0
- package/dist/node/constants/errors.constants.mjs +3 -0
- package/dist/node/constants/errors.constants.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.component.d.mts +365 -0
- package/dist/node/lib/A-Channel/A-Channel.component.d.ts +365 -0
- package/dist/node/lib/A-Channel/A-Channel.component.js +303 -0
- package/dist/node/lib/A-Channel/A-Channel.component.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.component.mjs +294 -0
- package/dist/node/lib/A-Channel/A-Channel.component.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.d.mts +68 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.d.ts +68 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.js +28 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.mjs +27 -0
- package/dist/node/lib/A-Channel/A-Channel.constants.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.error.d.mts +23 -0
- package/dist/node/lib/A-Channel/A-Channel.error.d.ts +23 -0
- package/dist/node/lib/A-Channel/A-Channel.error.js +36 -0
- package/dist/node/lib/A-Channel/A-Channel.error.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.error.mjs +35 -0
- package/dist/node/lib/A-Channel/A-Channel.error.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.types.d.mts +2 -0
- package/dist/node/lib/A-Channel/A-Channel.types.d.ts +2 -0
- package/dist/node/lib/A-Channel/A-Channel.types.js +4 -0
- package/dist/node/lib/A-Channel/A-Channel.types.js.map +1 -0
- package/dist/node/lib/A-Channel/A-Channel.types.mjs +3 -0
- package/dist/node/lib/A-Channel/A-Channel.types.mjs.map +1 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.d.mts +17 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.d.ts +17 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.js +41 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.js.map +1 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.mjs +34 -0
- package/dist/node/lib/A-Channel/A-ChannelRequest.context.mjs.map +1 -0
- package/dist/node/lib/A-Channel/index.d.mts +8 -0
- package/dist/node/lib/A-Channel/index.d.ts +8 -0
- package/dist/node/lib/A-Channel/index.js +36 -0
- package/dist/node/lib/A-Channel/index.js.map +1 -0
- package/dist/node/lib/A-Channel/index.mjs +8 -0
- package/dist/node/lib/A-Channel/index.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.constants.d.mts +139 -0
- package/dist/node/lib/A-Command/A-Command.constants.d.ts +139 -0
- package/dist/node/lib/A-Command/A-Command.constants.js +45 -0
- package/dist/node/lib/A-Command/A-Command.constants.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.constants.mjs +42 -0
- package/dist/node/lib/A-Command/A-Command.constants.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.entity.d.mts +16 -0
- package/dist/node/lib/A-Command/A-Command.entity.d.ts +16 -0
- package/dist/node/lib/A-Command/A-Command.entity.js +530 -0
- package/dist/node/lib/A-Command/A-Command.entity.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.entity.mjs +520 -0
- package/dist/node/lib/A-Command/A-Command.entity.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.error.d.mts +13 -0
- package/dist/node/lib/A-Command/A-Command.error.d.ts +13 -0
- package/dist/node/lib/A-Command/A-Command.error.js +17 -0
- package/dist/node/lib/A-Command/A-Command.error.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.error.mjs +16 -0
- package/dist/node/lib/A-Command/A-Command.error.mjs.map +1 -0
- package/dist/node/lib/A-Command/A-Command.types.d.mts +16 -0
- package/dist/node/lib/A-Command/A-Command.types.d.ts +16 -0
- package/dist/node/lib/A-Command/A-Command.types.js +4 -0
- package/dist/node/lib/A-Command/A-Command.types.js.map +1 -0
- package/dist/node/lib/A-Command/A-Command.types.mjs +3 -0
- package/dist/node/lib/A-Command/A-Command.types.mjs.map +1 -0
- package/dist/node/lib/A-Command/index.d.mts +17 -0
- package/dist/node/lib/A-Command/index.d.ts +17 -0
- package/dist/node/lib/A-Command/index.js +31 -0
- package/dist/node/lib/A-Command/index.js.map +1 -0
- package/dist/node/lib/A-Command/index.mjs +7 -0
- package/dist/node/lib/A-Command/index.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.constants.d.mts +5 -0
- package/dist/node/lib/A-Config/A-Config.constants.d.ts +5 -0
- package/dist/node/lib/A-Config/A-Config.constants.js +9 -0
- package/dist/node/lib/A-Config/A-Config.constants.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.constants.mjs +8 -0
- package/dist/node/lib/A-Config/A-Config.constants.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.container.d.mts +33 -0
- package/dist/node/lib/A-Config/A-Config.container.d.ts +33 -0
- package/dist/node/lib/A-Config/A-Config.container.js +78 -0
- package/dist/node/lib/A-Config/A-Config.container.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.container.mjs +68 -0
- package/dist/node/lib/A-Config/A-Config.container.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.context.d.mts +42 -0
- package/dist/node/lib/A-Config/A-Config.context.d.ts +42 -0
- package/dist/node/lib/A-Config/A-Config.context.js +65 -0
- package/dist/node/lib/A-Config/A-Config.context.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.context.mjs +58 -0
- package/dist/node/lib/A-Config/A-Config.context.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.error.d.mts +7 -0
- package/dist/node/lib/A-Config/A-Config.error.d.ts +7 -0
- package/dist/node/lib/A-Config/A-Config.error.js +11 -0
- package/dist/node/lib/A-Config/A-Config.error.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.error.mjs +10 -0
- package/dist/node/lib/A-Config/A-Config.error.mjs.map +1 -0
- package/dist/node/lib/A-Config/A-Config.types.d.mts +22 -0
- package/dist/node/lib/A-Config/A-Config.types.d.ts +22 -0
- package/dist/node/lib/A-Config/A-Config.types.js +9 -0
- package/dist/node/lib/A-Config/A-Config.types.js.map +1 -0
- package/dist/node/lib/A-Config/A-Config.types.mjs +9 -0
- package/dist/node/lib/A-Config/A-Config.types.mjs.map +1 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.d.mts +50 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.d.ts +50 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.js +81 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.js.map +1 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.mjs +71 -0
- package/dist/node/lib/A-Config/components/ConfigReader.component.mjs.map +1 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.d.mts +40 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.d.ts +40 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.js +69 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.js.map +1 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.mjs +59 -0
- package/dist/node/lib/A-Config/components/ENVConfigReader.component.mjs.map +1 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.d.mts +40 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.d.ts +40 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.js +50 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.js.map +1 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.mjs +43 -0
- package/dist/node/lib/A-Config/components/FileConfigReader.component.mjs.map +1 -0
- package/dist/node/lib/A-Config/index.d.mts +31 -0
- package/dist/node/lib/A-Config/index.d.ts +31 -0
- package/dist/node/lib/A-Config/index.js +51 -0
- package/dist/node/lib/A-Config/index.js.map +1 -0
- package/dist/node/lib/A-Config/index.mjs +11 -0
- package/dist/node/lib/A-Config/index.mjs.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.context.d.mts +17 -0
- package/dist/node/lib/A-Execution/A-Execution.context.d.ts +17 -0
- package/dist/node/lib/A-Execution/A-Execution.context.js +63 -0
- package/dist/node/lib/A-Execution/A-Execution.context.js.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.context.mjs +56 -0
- package/dist/node/lib/A-Execution/A-Execution.context.mjs.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.types.d.mts +2 -0
- package/dist/node/lib/A-Execution/A-Execution.types.d.ts +2 -0
- package/dist/node/lib/A-Execution/A-Execution.types.js +4 -0
- package/dist/node/lib/A-Execution/A-Execution.types.js.map +1 -0
- package/dist/node/lib/A-Execution/A-Execution.types.mjs +3 -0
- package/dist/node/lib/A-Execution/A-Execution.types.mjs.map +1 -0
- package/dist/node/lib/A-Execution/index.d.mts +2 -0
- package/dist/node/lib/A-Execution/index.d.ts +2 -0
- package/dist/node/lib/A-Execution/index.js +12 -0
- package/dist/node/lib/A-Execution/index.js.map +1 -0
- package/dist/node/lib/A-Execution/index.mjs +4 -0
- package/dist/node/lib/A-Execution/index.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.component.d.mts +377 -0
- package/dist/node/lib/A-Logger/A-Logger.component.d.ts +377 -0
- package/dist/node/lib/A-Logger/A-Logger.component.js +623 -0
- package/dist/node/lib/A-Logger/A-Logger.component.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.component.mjs +615 -0
- package/dist/node/lib/A-Logger/A-Logger.component.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.d.mts +103 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.d.ts +103 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.js +141 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.mjs +133 -0
- package/dist/node/lib/A-Logger/A-Logger.constants.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.env.d.mts +30 -0
- package/dist/node/lib/A-Logger/A-Logger.env.d.ts +30 -0
- package/dist/node/lib/A-Logger/A-Logger.env.js +39 -0
- package/dist/node/lib/A-Logger/A-Logger.env.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.env.mjs +38 -0
- package/dist/node/lib/A-Logger/A-Logger.env.mjs.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.types.d.mts +8 -0
- package/dist/node/lib/A-Logger/A-Logger.types.d.ts +8 -0
- package/dist/node/lib/A-Logger/A-Logger.types.js +4 -0
- package/dist/node/lib/A-Logger/A-Logger.types.js.map +1 -0
- package/dist/node/lib/A-Logger/A-Logger.types.mjs +3 -0
- package/dist/node/lib/A-Logger/A-Logger.types.mjs.map +1 -0
- package/dist/node/lib/A-Logger/index.d.mts +9 -0
- package/dist/node/lib/A-Logger/index.d.ts +9 -0
- package/dist/node/lib/A-Logger/index.js +35 -0
- package/dist/node/lib/A-Logger/index.js.map +1 -0
- package/dist/node/lib/A-Logger/index.mjs +6 -0
- package/dist/node/lib/A-Logger/index.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.d.mts +3 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.d.ts +3 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.js +164 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.js.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.mjs +157 -0
- package/dist/node/lib/A-Manifest/A-Manifest.context.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.d.mts +7 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.d.ts +7 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.js +11 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.js.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.mjs +10 -0
- package/dist/node/lib/A-Manifest/A-Manifest.error.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.d.mts +45 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.d.ts +45 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.js +4 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.js.map +1 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.mjs +3 -0
- package/dist/node/lib/A-Manifest/A-Manifest.types.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.d.mts +3 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.d.ts +3 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.js +22 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.js.map +1 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.mjs +22 -0
- package/dist/node/lib/A-Manifest/classes/A-ManifestChecker.class.mjs.map +1 -0
- package/dist/node/lib/A-Manifest/index.d.mts +4 -0
- package/dist/node/lib/A-Manifest/index.d.ts +4 -0
- package/dist/node/lib/A-Manifest/index.js +29 -0
- package/dist/node/lib/A-Manifest/index.js.map +1 -0
- package/dist/node/lib/A-Manifest/index.mjs +7 -0
- package/dist/node/lib/A-Manifest/index.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.component.d.mts +86 -0
- package/dist/node/lib/A-Memory/A-Memory.component.d.ts +86 -0
- package/dist/node/lib/A-Memory/A-Memory.component.js +335 -0
- package/dist/node/lib/A-Memory/A-Memory.component.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.component.mjs +325 -0
- package/dist/node/lib/A-Memory/A-Memory.component.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.d.mts +44 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.d.ts +44 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.js +19 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.mjs +19 -0
- package/dist/node/lib/A-Memory/A-Memory.constants.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.context.d.mts +12 -0
- package/dist/node/lib/A-Memory/A-Memory.context.d.ts +12 -0
- package/dist/node/lib/A-Memory/A-Memory.context.js +43 -0
- package/dist/node/lib/A-Memory/A-Memory.context.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.context.mjs +36 -0
- package/dist/node/lib/A-Memory/A-Memory.context.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.error.d.mts +14 -0
- package/dist/node/lib/A-Memory/A-Memory.error.d.ts +14 -0
- package/dist/node/lib/A-Memory/A-Memory.error.js +18 -0
- package/dist/node/lib/A-Memory/A-Memory.error.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.error.mjs +17 -0
- package/dist/node/lib/A-Memory/A-Memory.error.mjs.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.types.d.mts +24 -0
- package/dist/node/lib/A-Memory/A-Memory.types.d.ts +24 -0
- package/dist/node/lib/A-Memory/A-Memory.types.js +4 -0
- package/dist/node/lib/A-Memory/A-Memory.types.js.map +1 -0
- package/dist/node/lib/A-Memory/A-Memory.types.mjs +3 -0
- package/dist/node/lib/A-Memory/A-Memory.types.mjs.map +1 -0
- package/dist/node/lib/A-Memory/index.d.mts +9 -0
- package/dist/node/lib/A-Memory/index.d.ts +9 -0
- package/dist/node/lib/A-Memory/index.js +36 -0
- package/dist/node/lib/A-Memory/index.js.map +1 -0
- package/dist/node/lib/A-Memory/index.mjs +8 -0
- package/dist/node/lib/A-Memory/index.mjs.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.context.d.mts +16 -0
- package/dist/node/lib/A-Operation/A-Operation.context.d.ts +16 -0
- package/dist/node/lib/A-Operation/A-Operation.context.js +55 -0
- package/dist/node/lib/A-Operation/A-Operation.context.js.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.context.mjs +48 -0
- package/dist/node/lib/A-Operation/A-Operation.context.mjs.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.types.d.mts +40 -0
- package/dist/node/lib/A-Operation/A-Operation.types.d.ts +40 -0
- package/dist/node/lib/A-Operation/A-Operation.types.js +4 -0
- package/dist/node/lib/A-Operation/A-Operation.types.js.map +1 -0
- package/dist/node/lib/A-Operation/A-Operation.types.mjs +3 -0
- package/dist/node/lib/A-Operation/A-Operation.types.mjs.map +1 -0
- package/dist/node/lib/A-Operation/index.d.mts +4 -0
- package/dist/node/lib/A-Operation/index.d.ts +4 -0
- package/dist/node/lib/A-Operation/index.js +19 -0
- package/dist/node/lib/A-Operation/index.js.map +1 -0
- package/dist/node/lib/A-Operation/index.mjs +5 -0
- package/dist/node/lib/A-Operation/index.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.d.mts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.d.ts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.js +163 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.js.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.mjs +153 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-browser.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.d.mts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.d.ts +108 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.js +160 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.js.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.mjs +150 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.component.env-node.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.d.mts +59 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.d.ts +59 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.js +4 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.js.map +1 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.mjs +3 -0
- package/dist/node/lib/A-Polyfill/A-Polyfill.types.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Buffer-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.d.mts +23 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.d.ts +23 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.js +31 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.mjs +31 -0
- package/dist/node/lib/A-Polyfill/base/A-Crypto-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-FS-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Http-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Https-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Path-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Process-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.d.mts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.d.ts +22 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.js +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.mjs +30 -0
- package/dist/node/lib/A-Polyfill/base/A-Url-Polyfill.base.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/base/index.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/base/index.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/base/index.js +47 -0
- package/dist/node/lib/A-Polyfill/base/index.js.map +1 -0
- package/dist/node/lib/A-Polyfill/base/index.mjs +11 -0
- package/dist/node/lib/A-Polyfill/base/index.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.js +46 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.mjs +45 -0
- package/dist/node/lib/A-Polyfill/browser/A-Buffer-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.js +36 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.mjs +35 -0
- package/dist/node/lib/A-Polyfill/browser/A-Crypto-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.js +29 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.mjs +28 -0
- package/dist/node/lib/A-Polyfill/browser/A-FS-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.d.mts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.d.ts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.js +58 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.mjs +57 -0
- package/dist/node/lib/A-Polyfill/browser/A-Http-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.d.mts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.d.ts +18 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.js +58 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.mjs +57 -0
- package/dist/node/lib/A-Polyfill/browser/A-Https-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.js +64 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.mjs +63 -0
- package/dist/node/lib/A-Polyfill/browser/A-Path-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.js +33 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.mjs +32 -0
- package/dist/node/lib/A-Polyfill/browser/A-Process-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.js +50 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.mjs +49 -0
- package/dist/node/lib/A-Polyfill/browser/A-Url-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/index.d.mts +23 -0
- package/dist/node/lib/A-Polyfill/browser/index.d.ts +23 -0
- package/dist/node/lib/A-Polyfill/browser/index.js +56 -0
- package/dist/node/lib/A-Polyfill/browser/index.js.map +1 -0
- package/dist/node/lib/A-Polyfill/browser/index.mjs +9 -0
- package/dist/node/lib/A-Polyfill/browser/index.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/index.browser.d.mts +26 -0
- package/dist/node/lib/A-Polyfill/index.browser.d.ts +26 -0
- package/dist/node/lib/A-Polyfill/index.browser.js +33 -0
- package/dist/node/lib/A-Polyfill/index.browser.js.map +1 -0
- package/dist/node/lib/A-Polyfill/index.browser.mjs +7 -0
- package/dist/node/lib/A-Polyfill/index.browser.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/index.node.d.mts +26 -0
- package/dist/node/lib/A-Polyfill/index.node.d.ts +26 -0
- package/dist/node/lib/A-Polyfill/index.node.js +33 -0
- package/dist/node/lib/A-Polyfill/index.node.js.map +1 -0
- package/dist/node/lib/A-Polyfill/index.node.mjs +7 -0
- package/dist/node/lib/A-Polyfill/index.node.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.js +27 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.mjs +22 -0
- package/dist/node/lib/A-Polyfill/node/A-Buffer-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.js +39 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.mjs +34 -0
- package/dist/node/lib/A-Polyfill/node/A-Crypto-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.js +21 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.mjs +16 -0
- package/dist/node/lib/A-Polyfill/node/A-FS-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.js +25 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.mjs +20 -0
- package/dist/node/lib/A-Polyfill/node/A-Http-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.js +25 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.mjs +20 -0
- package/dist/node/lib/A-Polyfill/node/A-Https-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.js +34 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.mjs +29 -0
- package/dist/node/lib/A-Polyfill/node/A-Path-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.js +25 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.mjs +24 -0
- package/dist/node/lib/A-Polyfill/node/A-Process-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.d.mts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.d.ts +17 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.js +27 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.mjs +22 -0
- package/dist/node/lib/A-Polyfill/node/A-Url-Polyfill.mjs.map +1 -0
- package/dist/node/lib/A-Polyfill/node/index.d.mts +23 -0
- package/dist/node/lib/A-Polyfill/node/index.d.ts +23 -0
- package/dist/node/lib/A-Polyfill/node/index.js +56 -0
- package/dist/node/lib/A-Polyfill/node/index.js.map +1 -0
- package/dist/node/lib/A-Polyfill/node/index.mjs +9 -0
- package/dist/node/lib/A-Polyfill/node/index.mjs.map +1 -0
- package/dist/node/lib/A-Route/A-Route.entity.d.mts +25 -0
- package/dist/node/lib/A-Route/A-Route.entity.d.ts +25 -0
- package/dist/node/lib/A-Route/A-Route.entity.js +105 -0
- package/dist/node/lib/A-Route/A-Route.entity.js.map +1 -0
- package/dist/node/lib/A-Route/A-Route.entity.mjs +98 -0
- package/dist/node/lib/A-Route/A-Route.entity.mjs.map +1 -0
- package/dist/node/lib/A-Route/A-Route.types.d.mts +2 -0
- package/dist/node/lib/A-Route/A-Route.types.d.ts +2 -0
- package/dist/node/lib/A-Route/A-Route.types.js +4 -0
- package/dist/node/lib/A-Route/A-Route.types.js.map +1 -0
- package/dist/node/lib/A-Route/A-Route.types.mjs +3 -0
- package/dist/node/lib/A-Route/A-Route.types.mjs.map +1 -0
- package/dist/node/lib/A-Route/index.d.mts +2 -0
- package/dist/node/lib/A-Route/index.d.ts +2 -0
- package/dist/node/lib/A-Route/index.js +12 -0
- package/dist/node/lib/A-Route/index.js.map +1 -0
- package/dist/node/lib/A-Route/index.mjs +4 -0
- package/dist/node/lib/A-Route/index.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.d.mts +14 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.d.ts +14 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.js +24 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.mjs +24 -0
- package/dist/node/lib/A-Schedule/A-Deferred.class.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.d.mts +60 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.d.ts +60 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.js +46 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.mjs +39 -0
- package/dist/node/lib/A-Schedule/A-Schedule.component.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.d.mts +12 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.d.ts +12 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.js +4 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.mjs +3 -0
- package/dist/node/lib/A-Schedule/A-Schedule.types.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.d.mts +32 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.d.ts +32 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.js +49 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.js.map +1 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.mjs +48 -0
- package/dist/node/lib/A-Schedule/A-ScheduleObject.class.mjs.map +1 -0
- package/dist/node/lib/A-Schedule/index.d.mts +5 -0
- package/dist/node/lib/A-Schedule/index.d.ts +5 -0
- package/dist/node/lib/A-Schedule/index.js +29 -0
- package/dist/node/lib/A-Schedule/index.js.map +1 -0
- package/dist/node/lib/A-Schedule/index.mjs +7 -0
- package/dist/node/lib/A-Schedule/index.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.constants.d.mts +14 -0
- package/dist/node/lib/A-Service/A-Service.constants.d.ts +14 -0
- package/dist/node/lib/A-Service/A-Service.constants.js +19 -0
- package/dist/node/lib/A-Service/A-Service.constants.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.constants.mjs +19 -0
- package/dist/node/lib/A-Service/A-Service.constants.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.container.d.mts +50 -0
- package/dist/node/lib/A-Service/A-Service.container.d.ts +50 -0
- package/dist/node/lib/A-Service/A-Service.container.js +188 -0
- package/dist/node/lib/A-Service/A-Service.container.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.container.mjs +178 -0
- package/dist/node/lib/A-Service/A-Service.container.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.error.d.mts +9 -0
- package/dist/node/lib/A-Service/A-Service.error.d.ts +9 -0
- package/dist/node/lib/A-Service/A-Service.error.js +13 -0
- package/dist/node/lib/A-Service/A-Service.error.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.error.mjs +12 -0
- package/dist/node/lib/A-Service/A-Service.error.mjs.map +1 -0
- package/dist/node/lib/A-Service/A-Service.types.d.mts +27 -0
- package/dist/node/lib/A-Service/A-Service.types.d.ts +27 -0
- package/dist/node/lib/A-Service/A-Service.types.js +16 -0
- package/dist/node/lib/A-Service/A-Service.types.js.map +1 -0
- package/dist/node/lib/A-Service/A-Service.types.mjs +16 -0
- package/dist/node/lib/A-Service/A-Service.types.mjs.map +1 -0
- package/dist/node/lib/A-Service/index.d.mts +28 -0
- package/dist/node/lib/A-Service/index.d.ts +28 -0
- package/dist/node/lib/A-Service/index.js +19 -0
- package/dist/node/lib/A-Service/index.js.map +1 -0
- package/dist/node/lib/A-Service/index.mjs +5 -0
- package/dist/node/lib/A-Service/index.mjs.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.d.mts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.d.ts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.js +4 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.js.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.mjs +3 -0
- package/dist/node/lib/A-Signal/A-Signal.constants.mjs.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.error.d.mts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.error.d.ts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.error.js +4 -0
- package/dist/node/lib/A-Signal/A-Signal.error.js.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.error.mjs +3 -0
- package/dist/node/lib/A-Signal/A-Signal.error.mjs.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.types.d.mts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.types.d.ts +2 -0
- package/dist/node/lib/A-Signal/A-Signal.types.js +4 -0
- package/dist/node/lib/A-Signal/A-Signal.types.js.map +1 -0
- package/dist/node/lib/A-Signal/A-Signal.types.mjs +3 -0
- package/dist/node/lib/A-Signal/A-Signal.types.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.d.mts +44 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.d.ts +44 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.js +132 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.mjs +122 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.component.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.d.mts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.d.ts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.js +12 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.mjs +12 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.constants.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.d.mts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.d.ts +7 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.js +11 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.mjs +10 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.error.mjs.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.d.mts +2 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.d.ts +2 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.js +4 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.js.map +1 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.mjs +3 -0
- package/dist/node/lib/A-Signal/components/A-SignalBus.types.mjs.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.d.mts +36 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.d.ts +36 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.js +68 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.js.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.mjs +61 -0
- package/dist/node/lib/A-Signal/context/A-SignalConfig.context.mjs.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.d.mts +111 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.d.ts +111 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.js +114 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.js.map +1 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.mjs +107 -0
- package/dist/node/lib/A-Signal/context/A-SignalState.context.mjs.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.d.mts +2 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.d.ts +2 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.js +120 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.js.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.mjs +113 -0
- package/dist/node/lib/A-Signal/entities/A-Signal.entity.mjs.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.d.mts +113 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.d.ts +113 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.js +217 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.js.map +1 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.mjs +210 -0
- package/dist/node/lib/A-Signal/entities/A-SignalVector.entity.mjs.map +1 -0
- package/dist/node/lib/A-Signal/index.d.mts +15 -0
- package/dist/node/lib/A-Signal/index.d.ts +15 -0
- package/dist/node/lib/A-Signal/index.js +51 -0
- package/dist/node/lib/A-Signal/index.js.map +1 -0
- package/dist/node/lib/A-Signal/index.mjs +11 -0
- package/dist/node/lib/A-Signal/index.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.d.mts +180 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.d.ts +180 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.js +119 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.mjs +110 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.component.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.d.mts +20 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.d.ts +20 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.js +13 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.mjs +13 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.constants.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.d.mts +8 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.d.ts +8 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.js +12 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.mjs +11 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.error.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.d.mts +14 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.d.ts +14 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.js +4 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.mjs +3 -0
- package/dist/node/lib/A-StateMachine/A-StateMachine.types.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.d.mts +19 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.d.ts +19 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.js +43 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.js.map +1 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.mjs +36 -0
- package/dist/node/lib/A-StateMachine/A-StateMachineTransition.context.mjs.map +1 -0
- package/dist/node/lib/A-StateMachine/index.d.mts +9 -0
- package/dist/node/lib/A-StateMachine/index.d.ts +9 -0
- package/dist/node/lib/A-StateMachine/index.js +36 -0
- package/dist/node/lib/A-StateMachine/index.js.map +1 -0
- package/dist/node/lib/A-StateMachine/index.mjs +8 -0
- package/dist/node/lib/A-StateMachine/index.mjs.map +1 -0
- package/examples/A-Logger-examples.ts +1 -2
- package/jest.config.ts +20 -7
- package/package.json +232 -15
- package/src/lib/A-Channel/A-Channel.component.ts +1 -1
- package/src/lib/A-Channel/A-Channel.error.ts +1 -1
- package/src/lib/A-Channel/A-Channel.types.ts +0 -3
- package/src/lib/A-Channel/A-ChannelRequest.context.ts +1 -1
- package/src/lib/A-Channel/index.ts +6 -0
- package/src/lib/A-Command/A-Command.entity.ts +3 -5
- package/src/lib/A-Command/index.ts +5 -0
- package/src/lib/A-Config/A-Config.container.ts +3 -4
- package/src/lib/A-Config/A-Config.context.ts +1 -1
- package/src/lib/A-Config/components/ConfigReader.component.ts +10 -21
- package/src/lib/A-Config/components/ENVConfigReader.component.ts +13 -12
- package/src/lib/A-Config/index.ts +9 -0
- package/src/lib/A-Execution/index.ts +3 -0
- package/src/lib/A-Logger/A-Logger.component.ts +3 -1
- package/src/lib/A-Logger/index.ts +5 -0
- package/src/lib/A-Manifest/index.ts +5 -0
- package/src/lib/A-Memory/A-Memory.component.ts +1 -1
- package/src/lib/A-Memory/A-Memory.types.ts +1 -1
- package/src/lib/A-Memory/index.ts +6 -0
- package/src/lib/A-Operation/A-Operation.context.ts +1 -1
- package/src/lib/A-Operation/index.ts +3 -0
- package/src/lib/A-Polyfill/{A-Polyfill.component.ts → A-Polyfill.component.env-browser.ts} +26 -27
- package/src/lib/A-Polyfill/A-Polyfill.component.env-node.ts +184 -0
- package/src/lib/A-Polyfill/base/A-Buffer-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Crypto-Polyfill.base.ts +36 -0
- package/src/lib/A-Polyfill/base/A-FS-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Http-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Https-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Path-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Process-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/A-Url-Polyfill.base.ts +34 -0
- package/src/lib/A-Polyfill/base/index.ts +9 -0
- package/src/lib/A-Polyfill/browser/A-Buffer-Polyfill.ts +42 -0
- package/src/lib/A-Polyfill/browser/A-Crypto-Polyfill.ts +32 -0
- package/src/lib/A-Polyfill/browser/A-FS-Polyfill.ts +25 -0
- package/src/lib/A-Polyfill/{classes/A-Http-Polyfill.class.ts → browser/A-Http-Polyfill.ts} +6 -46
- package/src/lib/A-Polyfill/{classes/A-Https-Polyfill.class.ts → browser/A-Https-Polyfill.ts} +6 -46
- package/src/lib/A-Polyfill/{classes/A-Path-Polyfill.class.ts → browser/A-Path-Polyfill.ts} +6 -42
- package/src/lib/A-Polyfill/browser/A-Process-Polyfill.ts +29 -0
- package/src/lib/A-Polyfill/browser/A-Url-Polyfill.ts +46 -0
- package/src/lib/A-Polyfill/browser/index.ts +8 -0
- package/src/lib/A-Polyfill/index.browser.ts +5 -0
- package/src/lib/A-Polyfill/index.node.ts +5 -0
- package/src/lib/A-Polyfill/node/A-Buffer-Polyfill.ts +19 -0
- package/src/lib/A-Polyfill/node/A-Crypto-Polyfill.ts +31 -0
- package/src/lib/A-Polyfill/node/A-FS-Polyfill.ts +14 -0
- package/src/lib/A-Polyfill/node/A-Http-Polyfill.ts +17 -0
- package/src/lib/A-Polyfill/node/A-Https-Polyfill.ts +18 -0
- package/src/lib/A-Polyfill/node/A-Path-Polyfill.ts +27 -0
- package/src/lib/A-Polyfill/node/A-Process-Polyfill.ts +21 -0
- package/src/lib/A-Polyfill/node/A-Url-Polyfill.ts +19 -0
- package/src/lib/A-Polyfill/node/index.ts +8 -0
- package/src/lib/A-Route/index.ts +3 -0
- package/src/lib/A-Schedule/index.ts +5 -0
- package/src/lib/A-Service/A-Service.container.ts +2 -4
- package/src/lib/A-Service/index.ts +4 -0
- package/src/lib/A-Signal/components/A-SignalBus.component.ts +2 -2
- package/src/lib/A-Signal/index.ts +11 -0
- package/src/lib/A-StateMachine/A-StateMachine.types.ts +1 -1
- package/src/lib/A-StateMachine/A-StateMachineTransition.context.ts +1 -1
- package/src/lib/A-StateMachine/index.ts +6 -0
- package/tests/A-Channel.test.ts +3 -5
- package/tests/A-Command.test.ts +4 -9
- package/tests/A-Config.test.ts +8 -7
- package/tests/A-Logger.test.ts +1 -3
- package/tests/A-Manifest.test.ts +1 -1
- package/tests/A-Memory.test.ts +1 -3
- package/tests/A-Polyfill.test.ts +2 -2
- package/tests/A-Route.test.ts +1 -3
- package/tests/A-Schedule.test.ts +1 -1
- package/tests/A-Signal.test.ts +1 -5
- package/tests/A-StateMachine.test.ts +2 -5
- package/tests/main.test.ts +30 -0
- package/tsconfig.json +39 -57
- package/tsup.config.ts +94 -28
- package/dist/index.cjs +0 -35
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.mts +0 -2976
- package/dist/index.d.ts +0 -2976
- package/dist/index.mjs +0 -35
- package/dist/index.mjs.map +0 -1
- package/src/index.ts +0 -124
- package/src/lib/A-Polyfill/classes/A-Buffer-Polyfill.class.ts +0 -85
- package/src/lib/A-Polyfill/classes/A-Crypto-Polyfill.class.ts +0 -87
- package/src/lib/A-Polyfill/classes/A-FS-Polyfill.class.ts +0 -61
- package/src/lib/A-Polyfill/classes/A-Process-Polyfill.class.ts +0 -73
- package/src/lib/A-Polyfill/classes/A-Url-Polyfill.class.ts +0 -88
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { A_Command_Status, A_CommandEvent, A_CommandTransitions, A_CommandFeatures } from './lib/A-Command/A-Command.constants.js';
|
|
2
|
+
import { A_TYPES__Error_Serialized, A_TYPES__Entity_Serialized, A_Entity, A_Scope, A_Error } from '@adaas/a-concept';
|
|
3
|
+
import { A_StateMachine } from './lib/A-StateMachine/A-StateMachine.component.js';
|
|
4
|
+
import { A_StateMachineTransition } from './lib/A-StateMachine/A-StateMachineTransition.context.js';
|
|
5
|
+
import { A_ExecutionContext } from './lib/A-Execution/A-Execution.context.js';
|
|
6
|
+
import { A_StateMachineFeatures } from './lib/A-StateMachine/A-StateMachine.constants.js';
|
|
7
|
+
import { A_Logger } from './lib/A-Logger/A-Logger.component.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Command Constructor Type
|
|
11
|
+
*
|
|
12
|
+
* Generic constructor type for creating command instances.
|
|
13
|
+
* Used for dependency injection and factory patterns.
|
|
14
|
+
*
|
|
15
|
+
* @template T - The command class type extending A_Command
|
|
16
|
+
*/
|
|
17
|
+
type A_TYPES__Command_Constructor<T = A_Command> = new (...args: any[]) => T;
|
|
18
|
+
/**
|
|
19
|
+
* Command Initialization Parameters
|
|
20
|
+
*
|
|
21
|
+
* Base type for command parameters. Commands should extend this with
|
|
22
|
+
* specific parameter types for their use case.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* interface UserCommandParams extends A_TYPES__Command_Init {
|
|
27
|
+
* userId: string;
|
|
28
|
+
* action: 'create' | 'update' | 'delete';
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
type A_TYPES__Command_Init = Record<string, any>;
|
|
33
|
+
/**
|
|
34
|
+
* Command Serialized Format
|
|
35
|
+
*
|
|
36
|
+
* Complete serialized representation of a command including all state,
|
|
37
|
+
* timing information, results, and errors. Used for persistence,
|
|
38
|
+
* transmission between services, and state restoration.
|
|
39
|
+
*
|
|
40
|
+
* @template ParamsType - Type of command parameters
|
|
41
|
+
* @template ResultType - Type of command execution result
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* const serialized: A_TYPES__Command_Serialized<
|
|
46
|
+
* { userId: string },
|
|
47
|
+
* { success: boolean }
|
|
48
|
+
* > = command.toJSON();
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
type A_TYPES__Command_Serialized<ParamsType extends Record<string, any> = Record<string, any>, ResultType extends Record<string, any> = Record<string, any>> = {
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier for the command type (derived from class name)
|
|
54
|
+
*/
|
|
55
|
+
code: string;
|
|
56
|
+
/**
|
|
57
|
+
* Current execution status of the command
|
|
58
|
+
*/
|
|
59
|
+
status: A_Command_Status;
|
|
60
|
+
/**
|
|
61
|
+
* Parameters used to initialize the command
|
|
62
|
+
*/
|
|
63
|
+
params: ParamsType;
|
|
64
|
+
/**
|
|
65
|
+
* ISO timestamp when the command was created
|
|
66
|
+
*/
|
|
67
|
+
createdAt: string;
|
|
68
|
+
/**
|
|
69
|
+
* ISO timestamp when command execution started (if started)
|
|
70
|
+
*/
|
|
71
|
+
startedAt?: string;
|
|
72
|
+
/**
|
|
73
|
+
* ISO timestamp when command execution ended (if completed/failed)
|
|
74
|
+
*/
|
|
75
|
+
endedAt?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Total execution duration in milliseconds (if completed/failed)
|
|
78
|
+
*/
|
|
79
|
+
duration?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Time between creation and execution start in milliseconds
|
|
82
|
+
*/
|
|
83
|
+
idleTime?: number;
|
|
84
|
+
/**
|
|
85
|
+
* Result data produced by successful command execution
|
|
86
|
+
*/
|
|
87
|
+
result?: ResultType;
|
|
88
|
+
/**
|
|
89
|
+
* Array of serialized errors that occurred during execution
|
|
90
|
+
*/
|
|
91
|
+
error?: A_TYPES__Error_Serialized;
|
|
92
|
+
} & A_TYPES__Entity_Serialized;
|
|
93
|
+
/**
|
|
94
|
+
* Command Event Listener Function
|
|
95
|
+
*
|
|
96
|
+
* Type definition for event listener functions that can be registered
|
|
97
|
+
* to respond to command lifecycle events.
|
|
98
|
+
*
|
|
99
|
+
* @template InvokeType - Type of command initialization parameters
|
|
100
|
+
* @template ResultType - Type of command execution result
|
|
101
|
+
* @template LifecycleEvents - Union type of custom lifecycle event names
|
|
102
|
+
*
|
|
103
|
+
* @param command - The command instance that triggered the event
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```typescript
|
|
107
|
+
* const listener: A_TYPES__Command_Listener<UserParams, UserResult> = (command) => {
|
|
108
|
+
* console.log(`Command ${command?.code} triggered event`);
|
|
109
|
+
* };
|
|
110
|
+
*
|
|
111
|
+
* command.on('onExecute', listener);
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
type A_TYPES__Command_Listener<InvokeType extends A_TYPES__Command_Init = A_TYPES__Command_Init, ResultType extends Record<string, any> = Record<string, any>, LifecycleEvents extends string = keyof typeof A_CommandEvent> = (command?: A_Command<InvokeType, ResultType, LifecycleEvents>) => void;
|
|
115
|
+
type A_Command_ExecutionContext<InvokeType extends A_TYPES__Command_Init = A_TYPES__Command_Init, ResultType extends Record<string, any> = Record<string, any>> = {
|
|
116
|
+
result: ResultType;
|
|
117
|
+
params: InvokeType;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* A_Command - Advanced Command Pattern Implementation
|
|
122
|
+
*
|
|
123
|
+
* A comprehensive command pattern implementation that encapsulates business logic
|
|
124
|
+
* as executable commands with full lifecycle management, event handling, and
|
|
125
|
+
* state persistence capabilities.
|
|
126
|
+
*
|
|
127
|
+
* ## Key Features
|
|
128
|
+
* - **Structured Lifecycle**: Automatic progression through init → compile → execute → complete/fail
|
|
129
|
+
* - **Event-Driven**: Subscribe to lifecycle events and emit custom events
|
|
130
|
+
* - **State Persistence**: Full serialization/deserialization for cross-service communication
|
|
131
|
+
* - **Type Safety**: Generic types for parameters, results, and custom events
|
|
132
|
+
* - **Dependency Injection**: Integrated with A-Concept's DI system
|
|
133
|
+
* - **Error Management**: Comprehensive error capture and handling
|
|
134
|
+
* - **Execution Tracking**: Built-in timing and performance metrics
|
|
135
|
+
*
|
|
136
|
+
* ## Lifecycle Phases
|
|
137
|
+
* 1. **CREATED** - Command instantiated but not initialized
|
|
138
|
+
* 2. **INITIALIZED** - Execution scope and dependencies set up
|
|
139
|
+
* 3. **COMPILED** - Ready for execution with all resources prepared
|
|
140
|
+
* 4. **EXECUTING** - Currently running business logic
|
|
141
|
+
* 5. **COMPLETED** - Successfully finished execution
|
|
142
|
+
* 6. **FAILED** - Execution failed with errors captured
|
|
143
|
+
*
|
|
144
|
+
* @template InvokeType - Type definition for command parameters
|
|
145
|
+
* @template ResultType - Type definition for command execution result
|
|
146
|
+
* @template LifecycleEvents - Union type of custom lifecycle event names
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```typescript
|
|
150
|
+
* // Define parameter and result types
|
|
151
|
+
* interface UserCreateParams {
|
|
152
|
+
* name: string;
|
|
153
|
+
* email: string;
|
|
154
|
+
* role: 'admin' | 'user';
|
|
155
|
+
* }
|
|
156
|
+
*
|
|
157
|
+
* interface UserCreateResult {
|
|
158
|
+
* userId: string;
|
|
159
|
+
* success: boolean;
|
|
160
|
+
* }
|
|
161
|
+
*
|
|
162
|
+
* // Create custom command
|
|
163
|
+
* class CreateUserCommand extends A_Command<UserCreateParams, UserCreateResult> {}
|
|
164
|
+
*
|
|
165
|
+
* // Execute command
|
|
166
|
+
* const command = new CreateUserCommand({
|
|
167
|
+
* name: 'John Doe',
|
|
168
|
+
* email: 'john@example.com',
|
|
169
|
+
* role: 'user'
|
|
170
|
+
* });
|
|
171
|
+
*
|
|
172
|
+
* scope.register(command);
|
|
173
|
+
* await command.execute();
|
|
174
|
+
*
|
|
175
|
+
* console.log('Result:', command.result);
|
|
176
|
+
* console.log('Status:', command.status);
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
declare class A_Command<InvokeType extends A_TYPES__Command_Init = A_TYPES__Command_Init, ResultType extends Record<string, any> = Record<string, any>, LifecycleEvents extends string | keyof typeof A_CommandEvent = keyof typeof A_CommandEvent> extends A_Entity<InvokeType, A_TYPES__Command_Serialized<InvokeType, ResultType>> {
|
|
180
|
+
/**
|
|
181
|
+
* Static command identifier derived from the class name
|
|
182
|
+
* Used for command registration and serialization
|
|
183
|
+
*/
|
|
184
|
+
static get code(): string;
|
|
185
|
+
/** The origin of the command, used to know has it been created from serialization or invoked */
|
|
186
|
+
protected _origin: 'invoked' | 'serialized';
|
|
187
|
+
/** Command execution scope for dependency injection and feature resolution */
|
|
188
|
+
protected _executionScope: A_Scope;
|
|
189
|
+
/** Result data produced by successful command execution */
|
|
190
|
+
protected _result?: ResultType;
|
|
191
|
+
/** Set of errors that occurred during command execution */
|
|
192
|
+
protected _error: A_Error;
|
|
193
|
+
/** Command initialization parameters */
|
|
194
|
+
protected _params: InvokeType;
|
|
195
|
+
/** Current lifecycle status of the command */
|
|
196
|
+
protected _status: A_Command_Status;
|
|
197
|
+
/** Map of event listeners organized by event name */
|
|
198
|
+
protected _listeners: Map<LifecycleEvents | keyof typeof A_CommandEvent, Set<A_TYPES__Command_Listener<InvokeType, ResultType, LifecycleEvents>>>;
|
|
199
|
+
/** Timestamp when command execution started */
|
|
200
|
+
protected _startTime?: Date;
|
|
201
|
+
/** Timestamp when command execution ended */
|
|
202
|
+
protected _endTime?: Date;
|
|
203
|
+
/** Timestamp when command was created */
|
|
204
|
+
protected _createdAt: Date;
|
|
205
|
+
/**
|
|
206
|
+
* Total execution duration in milliseconds
|
|
207
|
+
*
|
|
208
|
+
* - If completed/failed: Returns total time from start to end
|
|
209
|
+
* - If currently executing: Returns elapsed time since start
|
|
210
|
+
* - If not started: Returns undefined
|
|
211
|
+
*/
|
|
212
|
+
get duration(): number | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Idle time before execution started in milliseconds
|
|
215
|
+
*
|
|
216
|
+
* Time between command creation and execution start.
|
|
217
|
+
* Useful for monitoring command queue performance.
|
|
218
|
+
*/
|
|
219
|
+
get idleTime(): number | undefined;
|
|
220
|
+
/**
|
|
221
|
+
* Command execution scope for dependency injection
|
|
222
|
+
*
|
|
223
|
+
* Provides access to components, services, and shared resources
|
|
224
|
+
* during command execution. Inherits from the scope where the
|
|
225
|
+
* command was registered.
|
|
226
|
+
*/
|
|
227
|
+
get scope(): A_Scope;
|
|
228
|
+
/**
|
|
229
|
+
* Execution context associated with the command
|
|
230
|
+
*/
|
|
231
|
+
get context(): A_ExecutionContext<A_Command_ExecutionContext<InvokeType, ResultType>>;
|
|
232
|
+
/**
|
|
233
|
+
* Unique command type identifier
|
|
234
|
+
*
|
|
235
|
+
* Derived from the class name and used for:
|
|
236
|
+
* - Command registration and resolution
|
|
237
|
+
* - Serialization and deserialization
|
|
238
|
+
* - Logging and debugging
|
|
239
|
+
*
|
|
240
|
+
* @example 'create-user-command', 'process-order-command'
|
|
241
|
+
*/
|
|
242
|
+
get code(): string;
|
|
243
|
+
/**
|
|
244
|
+
* Current lifecycle status of the command
|
|
245
|
+
*
|
|
246
|
+
* Indicates the current phase in the command execution lifecycle.
|
|
247
|
+
* Used to track progress and determine available operations.
|
|
248
|
+
*/
|
|
249
|
+
get status(): A_Command_Status;
|
|
250
|
+
/**
|
|
251
|
+
* Timestamp when the command was created
|
|
252
|
+
*
|
|
253
|
+
* Marks the initial instantiation time, useful for tracking
|
|
254
|
+
* command age and queue performance metrics.
|
|
255
|
+
*/
|
|
256
|
+
get createdAt(): Date;
|
|
257
|
+
/**
|
|
258
|
+
* Timestamp when command execution started
|
|
259
|
+
*
|
|
260
|
+
* Undefined until execution begins. Used for calculating
|
|
261
|
+
* execution duration and idle time.
|
|
262
|
+
*/
|
|
263
|
+
get startedAt(): Date | undefined;
|
|
264
|
+
/**
|
|
265
|
+
* Timestamp when command execution ended
|
|
266
|
+
*
|
|
267
|
+
* Set when command reaches COMPLETED or FAILED status.
|
|
268
|
+
* Used for calculating total execution duration.
|
|
269
|
+
*/
|
|
270
|
+
get endedAt(): Date | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Result data produced by command execution
|
|
273
|
+
*
|
|
274
|
+
* Contains the output data from successful command execution.
|
|
275
|
+
* Undefined until command completes successfully.
|
|
276
|
+
*/
|
|
277
|
+
get result(): ResultType | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* Array of errors that occurred during execution
|
|
280
|
+
*
|
|
281
|
+
* Automatically wraps native errors in A_Error instances
|
|
282
|
+
* for consistent error handling. Empty array if no errors occurred.
|
|
283
|
+
*/
|
|
284
|
+
get error(): A_Error | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* Command initialization parameters
|
|
287
|
+
*
|
|
288
|
+
* Contains the input data used to create and configure the command.
|
|
289
|
+
* These parameters are immutable during command execution.
|
|
290
|
+
return new A_Error(err);
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Command initialization parameters
|
|
297
|
+
*
|
|
298
|
+
* Contains the input data used to create and configure the command.
|
|
299
|
+
* These parameters are immutable during command execution.
|
|
300
|
+
*/
|
|
301
|
+
get params(): InvokeType;
|
|
302
|
+
/**
|
|
303
|
+
* Indicates if the command has been processed (completed or failed)
|
|
304
|
+
*
|
|
305
|
+
* Returns true if the command has completed or failed, false otherwise.
|
|
306
|
+
*/
|
|
307
|
+
get isProcessed(): boolean;
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* A-Command represents an executable command with a specific code and parameters.
|
|
311
|
+
* It can be executed within a given scope and stores execution results and errors.
|
|
312
|
+
*
|
|
313
|
+
*
|
|
314
|
+
* A-Command should be context independent and execution logic should be based on attached components
|
|
315
|
+
*
|
|
316
|
+
* @param code
|
|
317
|
+
* @param params
|
|
318
|
+
*/
|
|
319
|
+
constructor(
|
|
320
|
+
/**
|
|
321
|
+
* Command invocation parameters
|
|
322
|
+
*/
|
|
323
|
+
params: InvokeType | A_TYPES__Command_Serialized<InvokeType, ResultType> | string);
|
|
324
|
+
protected [A_StateMachineFeatures.onBeforeTransition](transition: A_StateMachineTransition, logger?: A_Logger, ...args: any[]): Promise<void>;
|
|
325
|
+
protected [A_CommandTransitions.CREATED_TO_INITIALIZED](transition: A_StateMachineTransition, ...args: any[]): Promise<void>;
|
|
326
|
+
protected [A_CommandTransitions.INITIALIZED_TO_EXECUTING](transition: A_StateMachineTransition, ...args: any[]): Promise<void>;
|
|
327
|
+
protected [A_CommandTransitions.EXECUTING_TO_COMPLETED](transition: A_StateMachineTransition, ...args: any[]): Promise<void>;
|
|
328
|
+
protected [A_CommandTransitions.EXECUTING_TO_FAILED](transition: A_StateMachineTransition, error: A_Error, ...args: any[]): Promise<void>;
|
|
329
|
+
protected [A_CommandFeatures.onInit](stateMachine: A_StateMachine, ...args: any[]): Promise<void>;
|
|
330
|
+
protected [A_CommandFeatures.onBeforeExecute](stateMachine: A_StateMachine, ...args: any[]): Promise<void>;
|
|
331
|
+
protected [A_CommandFeatures.onExecute](...args: any[]): Promise<void>;
|
|
332
|
+
protected [A_CommandFeatures.onAfterExecute](...args: any[]): Promise<void>;
|
|
333
|
+
protected [A_CommandFeatures.onComplete](stateMachine: A_StateMachine, ...args: any[]): Promise<void>;
|
|
334
|
+
protected [A_CommandFeatures.onFail](stateMachine: A_StateMachine, operation: A_ExecutionContext<A_Command_ExecutionContext<InvokeType, ResultType>>, ...args: any[]): Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* Initializes the command before execution.
|
|
337
|
+
*/
|
|
338
|
+
init(): Promise<void>;
|
|
339
|
+
/**
|
|
340
|
+
* Executes the command logic.
|
|
341
|
+
*/
|
|
342
|
+
execute(): Promise<any>;
|
|
343
|
+
/**
|
|
344
|
+
* Marks the command as completed
|
|
345
|
+
*
|
|
346
|
+
*
|
|
347
|
+
* Calling This method will set the command status to COMPLETED, record the end time,
|
|
348
|
+
* store the result, emit the onComplete event, and destroy the execution scope.
|
|
349
|
+
*
|
|
350
|
+
* [!] After Calling this method, the command is considered fully processed And further processing will be INTERRUPTED.
|
|
351
|
+
* [!] If the command is already processed (COMPLETED or FAILED), this method does nothing.
|
|
352
|
+
* [!] This method can be called with optional result data to store with the command.
|
|
353
|
+
*
|
|
354
|
+
* @param result - Optional result data to store with the command
|
|
355
|
+
*/
|
|
356
|
+
complete(result?: ResultType): Promise<void>;
|
|
357
|
+
/**
|
|
358
|
+
* Marks the command as failed
|
|
359
|
+
*/
|
|
360
|
+
fail(error?: A_Error): Promise<void>;
|
|
361
|
+
/**
|
|
362
|
+
* Registers an event listener for a specific event
|
|
363
|
+
*
|
|
364
|
+
* @param event
|
|
365
|
+
* @param listener
|
|
366
|
+
*/
|
|
367
|
+
on(event: LifecycleEvents | A_CommandEvent, listener: A_TYPES__Command_Listener<InvokeType, ResultType, LifecycleEvents>): void;
|
|
368
|
+
/**
|
|
369
|
+
* Removes an event listener for a specific event
|
|
370
|
+
*
|
|
371
|
+
* @param event
|
|
372
|
+
* @param listener
|
|
373
|
+
*/
|
|
374
|
+
off(event: LifecycleEvents | A_CommandEvent, listener: A_TYPES__Command_Listener<InvokeType, ResultType, LifecycleEvents>): void;
|
|
375
|
+
/**
|
|
376
|
+
* Emits an event to all registered listeners
|
|
377
|
+
*
|
|
378
|
+
* @param event
|
|
379
|
+
*/
|
|
380
|
+
emit(event: LifecycleEvents | keyof typeof A_CommandEvent): void;
|
|
381
|
+
/**
|
|
382
|
+
* Allows to create a Command instance from new data
|
|
383
|
+
*
|
|
384
|
+
* @param newEntity
|
|
385
|
+
*/
|
|
386
|
+
fromNew(newEntity: InvokeType): void;
|
|
387
|
+
/**
|
|
388
|
+
* Allows to convert serialized data to Command instance
|
|
389
|
+
*
|
|
390
|
+
* [!] By default it omits params as they are not stored in the serialized data
|
|
391
|
+
*
|
|
392
|
+
* @param serialized
|
|
393
|
+
*/
|
|
394
|
+
fromJSON(serialized: A_TYPES__Command_Serialized<InvokeType, ResultType>): void;
|
|
395
|
+
/**
|
|
396
|
+
* Converts the Command instance to a plain object
|
|
397
|
+
*
|
|
398
|
+
* @returns
|
|
399
|
+
*/
|
|
400
|
+
toJSON(): A_TYPES__Command_Serialized<InvokeType, ResultType>;
|
|
401
|
+
/**
|
|
402
|
+
* Ensures that the command's execution scope inherits from the context scope
|
|
403
|
+
*
|
|
404
|
+
* Throws an error if the command is not bound to any context scope
|
|
405
|
+
*/
|
|
406
|
+
protected checkScopeInheritance(): void;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export { A_Command as A, type A_Command_ExecutionContext as a, type A_TYPES__Command_Constructor as b, type A_TYPES__Command_Init as c, type A_TYPES__Command_Listener as d, type A_TYPES__Command_Serialized as e };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { A_TYPES__Component_Constructor, A_Fragment, A_Component } from '@adaas/a-concept';
|
|
2
|
+
import { A_UTILS_TYPES__Manifest_AllowedComponents, A_UTILS_TYPES__Manifest_Init, A_UTILS_TYPES__ManifestQuery } from './lib/A-Manifest/A-Manifest.types.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Fluent API for checking manifest permissions
|
|
6
|
+
*/
|
|
7
|
+
declare class A_ManifestChecker {
|
|
8
|
+
private manifest;
|
|
9
|
+
private component;
|
|
10
|
+
private method;
|
|
11
|
+
private checkExclusion;
|
|
12
|
+
constructor(manifest: A_Manifest, component: A_TYPES__Component_Constructor, method: string, checkExclusion?: boolean);
|
|
13
|
+
for(target: A_UTILS_TYPES__Manifest_AllowedComponents): boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class A_Manifest extends A_Fragment {
|
|
17
|
+
private rules;
|
|
18
|
+
/**
|
|
19
|
+
* A-Manifest is a configuration set that allows to include or exclude component application for the particular methods.
|
|
20
|
+
*
|
|
21
|
+
* For example, if A-Scope provides polymorphic A-Component that applies for All A-Entities in it but you have another component that should be used for only One particular Entity, you can use A-Manifest to specify this behavior.
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* By default if Component is provided in the scope - it applies for all entities in it. However, if you want to exclude some entities or include only some entities for the particular component - you can use A-Manifest to define this behavior.
|
|
25
|
+
*
|
|
26
|
+
* @param config - Array of component configurations
|
|
27
|
+
*/
|
|
28
|
+
constructor(config?: A_UTILS_TYPES__Manifest_Init);
|
|
29
|
+
/**
|
|
30
|
+
* Should convert received configuration into internal Regexp applicable for internal storage
|
|
31
|
+
*/
|
|
32
|
+
protected prepare(config: A_UTILS_TYPES__Manifest_Init): void;
|
|
33
|
+
/**
|
|
34
|
+
* Process a single configuration item and convert it to internal rules
|
|
35
|
+
*/
|
|
36
|
+
private processConfigItem;
|
|
37
|
+
/**
|
|
38
|
+
* Convert a constructor to a regex pattern
|
|
39
|
+
*/
|
|
40
|
+
private constructorToRegex;
|
|
41
|
+
/**
|
|
42
|
+
* Convert a method name or regex to a regex pattern
|
|
43
|
+
*/
|
|
44
|
+
private methodToRegex;
|
|
45
|
+
/**
|
|
46
|
+
* Convert allowed components array or regex to a single regex
|
|
47
|
+
*/
|
|
48
|
+
private allowedComponentsToRegex;
|
|
49
|
+
/**
|
|
50
|
+
* Escape special regex characters in a string
|
|
51
|
+
*/
|
|
52
|
+
private escapeRegex;
|
|
53
|
+
protected configItemToRegexp(item: A_TYPES__Component_Constructor): RegExp;
|
|
54
|
+
protected ID(component: A_TYPES__Component_Constructor, method: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Check if a component and method combination is allowed for a target
|
|
57
|
+
*/
|
|
58
|
+
isAllowed<T extends A_Component>(ctor: T | A_TYPES__Component_Constructor<T>, method: string): A_ManifestChecker;
|
|
59
|
+
/**
|
|
60
|
+
* Internal method to check if access is allowed
|
|
61
|
+
*/
|
|
62
|
+
internal_checkAccess(query: A_UTILS_TYPES__ManifestQuery): boolean;
|
|
63
|
+
isExcluded<T extends A_Component>(ctor: T | A_TYPES__Component_Constructor<T>, method: string): A_ManifestChecker;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { A_Manifest as A, A_ManifestChecker as a };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { A_TYPES__Component_Constructor, A_Fragment, A_Component } from '@adaas/a-concept';
|
|
2
|
+
import { A_UTILS_TYPES__Manifest_AllowedComponents, A_UTILS_TYPES__Manifest_Init, A_UTILS_TYPES__ManifestQuery } from './lib/A-Manifest/A-Manifest.types.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Fluent API for checking manifest permissions
|
|
6
|
+
*/
|
|
7
|
+
declare class A_ManifestChecker {
|
|
8
|
+
private manifest;
|
|
9
|
+
private component;
|
|
10
|
+
private method;
|
|
11
|
+
private checkExclusion;
|
|
12
|
+
constructor(manifest: A_Manifest, component: A_TYPES__Component_Constructor, method: string, checkExclusion?: boolean);
|
|
13
|
+
for(target: A_UTILS_TYPES__Manifest_AllowedComponents): boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class A_Manifest extends A_Fragment {
|
|
17
|
+
private rules;
|
|
18
|
+
/**
|
|
19
|
+
* A-Manifest is a configuration set that allows to include or exclude component application for the particular methods.
|
|
20
|
+
*
|
|
21
|
+
* For example, if A-Scope provides polymorphic A-Component that applies for All A-Entities in it but you have another component that should be used for only One particular Entity, you can use A-Manifest to specify this behavior.
|
|
22
|
+
*
|
|
23
|
+
*
|
|
24
|
+
* By default if Component is provided in the scope - it applies for all entities in it. However, if you want to exclude some entities or include only some entities for the particular component - you can use A-Manifest to define this behavior.
|
|
25
|
+
*
|
|
26
|
+
* @param config - Array of component configurations
|
|
27
|
+
*/
|
|
28
|
+
constructor(config?: A_UTILS_TYPES__Manifest_Init);
|
|
29
|
+
/**
|
|
30
|
+
* Should convert received configuration into internal Regexp applicable for internal storage
|
|
31
|
+
*/
|
|
32
|
+
protected prepare(config: A_UTILS_TYPES__Manifest_Init): void;
|
|
33
|
+
/**
|
|
34
|
+
* Process a single configuration item and convert it to internal rules
|
|
35
|
+
*/
|
|
36
|
+
private processConfigItem;
|
|
37
|
+
/**
|
|
38
|
+
* Convert a constructor to a regex pattern
|
|
39
|
+
*/
|
|
40
|
+
private constructorToRegex;
|
|
41
|
+
/**
|
|
42
|
+
* Convert a method name or regex to a regex pattern
|
|
43
|
+
*/
|
|
44
|
+
private methodToRegex;
|
|
45
|
+
/**
|
|
46
|
+
* Convert allowed components array or regex to a single regex
|
|
47
|
+
*/
|
|
48
|
+
private allowedComponentsToRegex;
|
|
49
|
+
/**
|
|
50
|
+
* Escape special regex characters in a string
|
|
51
|
+
*/
|
|
52
|
+
private escapeRegex;
|
|
53
|
+
protected configItemToRegexp(item: A_TYPES__Component_Constructor): RegExp;
|
|
54
|
+
protected ID(component: A_TYPES__Component_Constructor, method: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Check if a component and method combination is allowed for a target
|
|
57
|
+
*/
|
|
58
|
+
isAllowed<T extends A_Component>(ctor: T | A_TYPES__Component_Constructor<T>, method: string): A_ManifestChecker;
|
|
59
|
+
/**
|
|
60
|
+
* Internal method to check if access is allowed
|
|
61
|
+
*/
|
|
62
|
+
internal_checkAccess(query: A_UTILS_TYPES__ManifestQuery): boolean;
|
|
63
|
+
isExcluded<T extends A_Component>(ctor: T | A_TYPES__Component_Constructor<T>, method: string): A_ManifestChecker;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { A_Manifest as A, A_ManifestChecker as a };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { A_Entity, A_TYPES__Entity_Serialized, A_TYPES__Entity_Constructor } from '@adaas/a-concept';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A Signal Entity is an individual signal instance that carries data.
|
|
5
|
+
* Signals is a event types that uses for vectors of signals to be used for further processing.
|
|
6
|
+
*
|
|
7
|
+
* Comparing to standard events, signals should be used in case when the event impacts some "state"
|
|
8
|
+
* and the state should be used instead of the event itself.
|
|
9
|
+
*
|
|
10
|
+
* For example, a signal can represent the current status of a user (online/offline/away),
|
|
11
|
+
* while an event would represent a single action (user logged in/logged out).
|
|
12
|
+
*
|
|
13
|
+
* Signals are typically used in scenarios where the current state is more important than individual events,
|
|
14
|
+
* such as monitoring systems, real-time dashboards, or stateful applications.
|
|
15
|
+
*/
|
|
16
|
+
declare class A_Signal<_TSignalDataType extends Record<string, any> = Record<string, any>> extends A_Entity<A_Signal_Init<_TSignalDataType>, A_Signal_Serialized<_TSignalDataType>> {
|
|
17
|
+
/**
|
|
18
|
+
* Allows to define default data for the signal.
|
|
19
|
+
*
|
|
20
|
+
* If no data is provided during initialization, the default data will be used.
|
|
21
|
+
*
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
static default(): Promise<A_Signal | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* The actual data carried by the signal.
|
|
27
|
+
*/
|
|
28
|
+
data: _TSignalDataType;
|
|
29
|
+
/**
|
|
30
|
+
* Generates signal hash uses for comparison
|
|
31
|
+
*
|
|
32
|
+
* @param str
|
|
33
|
+
*/
|
|
34
|
+
protected createHash(str?: string): string;
|
|
35
|
+
protected createHash(str?: undefined): string;
|
|
36
|
+
protected createHash(str?: Record<string, any>): string;
|
|
37
|
+
protected createHash(str?: Array<any>): string;
|
|
38
|
+
protected createHash(str?: number): string;
|
|
39
|
+
protected createHash(str?: boolean): string;
|
|
40
|
+
protected createHash(str?: null): string;
|
|
41
|
+
protected createHash(map?: Map<any, any>): string;
|
|
42
|
+
protected createHash(set?: Set<any>): string;
|
|
43
|
+
/**
|
|
44
|
+
* This method compares the current signal with another signal instance by deduplication ID
|
|
45
|
+
* this id can be configured during initialization with the "id" property.
|
|
46
|
+
*
|
|
47
|
+
* example:
|
|
48
|
+
* * const signalA = new A_Signal({ id: ['user-status', 'user123'], data: { status: 'online' } });
|
|
49
|
+
* * const signalB = new A_Signal({ id: ['user-status', 'user123'], data: { status: 'offline' } });
|
|
50
|
+
*
|
|
51
|
+
* signalA.compare(signalB) // true because both signals have the same deduplication ID
|
|
52
|
+
*
|
|
53
|
+
* @param other
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
compare(other: A_Signal<_TSignalDataType>): boolean;
|
|
57
|
+
fromJSON(serializedEntity: A_Signal_Serialized<_TSignalDataType>): void;
|
|
58
|
+
fromNew(newEntity: A_Signal_Init<_TSignalDataType>): void;
|
|
59
|
+
toJSON(): A_Signal_Serialized<_TSignalDataType>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type A_SignalConfig_Init<TSignals extends Array<A_Signal> = Array<A_Signal>> = {
|
|
63
|
+
/**
|
|
64
|
+
* An array defining the structure of the signal vector.
|
|
65
|
+
*
|
|
66
|
+
* Each entry corresponds to a signal component constructor.
|
|
67
|
+
*/
|
|
68
|
+
structure?: A_Signal_TSignalsConstructors<TSignals>;
|
|
69
|
+
/**
|
|
70
|
+
* A string representation of the structure for easier DI resolution.
|
|
71
|
+
* Each signal's constructor name is used to form this string.
|
|
72
|
+
* e.g. "['A_RouterWatcher', 'A_ScopeWatcher', 'A_LoggerWatcher']"
|
|
73
|
+
* OR "A_RouterWatcher,A_ScopeWatcher,A_LoggerWatcher"
|
|
74
|
+
*/
|
|
75
|
+
stringStructure?: string;
|
|
76
|
+
propagateSignals?: boolean;
|
|
77
|
+
};
|
|
78
|
+
type A_Signal_TSignalsConstructors<T extends Array<A_Signal> = Array<A_Signal>> = T extends Array<infer U> ? U extends A_Signal ? A_TYPES__Entity_Constructor<U>[] : never : never;
|
|
79
|
+
type A_SignalTValue<T extends A_Signal> = T extends A_Signal<infer U> ? U : never;
|
|
80
|
+
type A_SignalTValueArray<T extends Array<A_Signal>> = {
|
|
81
|
+
[K in keyof T]: T[K] extends A_Signal<infer U> ? U : never;
|
|
82
|
+
};
|
|
83
|
+
type A_SignalVector_Init<_TSignals extends Array<A_Signal> = Array<A_Signal>> = {
|
|
84
|
+
structure: A_Signal_TSignalsConstructors<_TSignals>;
|
|
85
|
+
values: _TSignals;
|
|
86
|
+
};
|
|
87
|
+
type A_SignalVector_Serialized = A_TYPES__Entity_Serialized & {
|
|
88
|
+
structure: string[];
|
|
89
|
+
values: Array<Record<string, any>>;
|
|
90
|
+
} & A_TYPES__Entity_Serialized;
|
|
91
|
+
type A_Signal_Init<T extends Record<string, any> = Record<string, any>> = {
|
|
92
|
+
/**
|
|
93
|
+
* Possible signal id
|
|
94
|
+
*
|
|
95
|
+
* [!] used for identification only, all properties will be participating in the hash calculation for deduplication
|
|
96
|
+
*/
|
|
97
|
+
id?: Array<any>;
|
|
98
|
+
/**
|
|
99
|
+
* The signal name
|
|
100
|
+
*/
|
|
101
|
+
name?: string;
|
|
102
|
+
/**
|
|
103
|
+
* The signal data
|
|
104
|
+
*/
|
|
105
|
+
data: T;
|
|
106
|
+
};
|
|
107
|
+
type A_Signal_Serialized<T extends Record<string, any> = Record<string, any>> = {
|
|
108
|
+
/**
|
|
109
|
+
* The signal data
|
|
110
|
+
*/
|
|
111
|
+
data: T;
|
|
112
|
+
} & A_TYPES__Entity_Serialized;
|
|
113
|
+
|
|
114
|
+
export { A_Signal as A, type A_SignalConfig_Init as a, type A_SignalTValue as b, type A_SignalTValueArray as c, type A_SignalVector_Init as d, type A_SignalVector_Serialized as e, type A_Signal_Init as f, type A_Signal_Serialized as g, type A_Signal_TSignalsConstructors as h };
|