@adaas/a-utils 0.2.8 → 0.2.9
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-HWSDIXPG.mjs +776 -0
- package/dist/browser/chunk-HWSDIXPG.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-JTQYATZ5.mjs +679 -0
- package/dist/browser/chunk-JTQYATZ5.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-RLXT47QH.mjs +264 -0
- package/dist/browser/chunk-RLXT47QH.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 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Channel/A-Channel.component.ts"],"names":["A_Channel","A_Component","A_ChannelFeatures","A_Scope","A_IdentityHelper","A_Context","A_ChannelRequest","A_ChannelError","A_OperationContext","A_Feature","A_Frame"],"mappings":";;;;;;;;;;;;;;;;;;;AAwDaA,iBAAA,GAAN,wBAAwBC,oBAAA,CAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqCvC,WAAA,GAAc;AACV,IAAA,KAAA,EAAM;AA9BV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAA,IAAA,CAAU,WAAA,GAAuB,KAAA;AAkBjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAA,IAAA,CAAU,MAAA,uBAA+B,GAAA,EAAI;AAAA,EAa7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,IAAI,UAAA,GAAsB;AACtB,IAAA,OAAO,IAAA,CAAK,WAAA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,IAAI,UAAA,GAA4B;AAC5B,IAAA,IAAI,CAAC,KAAK,YAAA,EAAc;AACpB,MAAA,IAAA,CAAK,YAAA,GAAe,KAAK,OAAA,E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EAtJQF,iBAAA,CAuJH,SAAA,EAAA,iBAAA,EAAA,CAAA,CAAA;AA8BA,eAAA,CAAA;AAAA,EAHLS,mBAAU,MAAA,CAAO;AAAA,IACd,MAAMP,oCAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EApLQF,iBAAA,CAqLH,SAAA,EAAA,WAAA,EAAA,CAAA,CAAA;AA6BA,eAAA,CAAA;AAAA,EAHLS,mBAAU,MAAA,CAAO;AAAA,IACd,MAAMP,oCAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EAjNQF,iBAAA,CAkNH,SAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;AA8BA,eAAA,CAAA;AAAA,EAHLS,mBAAU,MAAA,CAAO;AAAA,IACd,MAAMP,oCAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EA/OQF,iBAAA,CAgPH,SAAA,EAAA,SAAA,EAAA,CAAA,CAAA;AA4BA,eAAA,CAAA;AAAA,EAHLS,mBAAU,MAAA,CAAO;AAAA,IACd,MAAMP,oCAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EA3QQF,iBAAA,CA4QH,SAAA,EAAA,QAAA,EAAA,CAAA,CAAA;AA5QGA,iBAAA,GAAN,eAAA,CAAA;AAAA,EALNU,cAAA,CAAQ,UAAU,SAAS,CAAA;AAAA,EAC3BA,eAAQ,SAAA,CAAU;AAAA,IACf,IAAA,EAAM,WAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACYV,iBAAA,CAAA","file":"A-Channel.component.js","sourcesContent":["import { A_Component, A_Context, A_Feature, A_IdentityHelper, A_Scope } from \"@adaas/a-concept\";\nimport { A_ChannelError } from \"./A-Channel.error\";\nimport { A_ChannelFeatures } from \"./A-Channel.constants\";\nimport { A_OperationContext } from \"@adaas/a-utils/a-operation\";\nimport { A_ChannelRequest } from \"./A-ChannelRequest.context\";\nimport { A_Frame } from \"@adaas/a-frame\";\n\n/**\n * A-Channel - A powerful, extensible communication channel component\n * \n * A-Channel provides a structured approach to implementing various communication patterns\n * such as HTTP clients, WebSocket connections, message queues, and other messaging systems.\n * It offers a complete lifecycle management system with extensible hooks for custom behavior.\n * \n * ## Key Features:\n * - 🔄 **Lifecycle Management** - Complete connection and processing lifecycle with hooks\n * - 📡 **Multiple Communication Patterns** - Request/Response and Fire-and-Forget messaging \n * - 🛡️ **Error Handling** - Comprehensive error capture and management\n * - 🎯 **Type Safety** - Full TypeScript support with generic types\n * - 🔧 **Extensible** - Component-based architecture for custom behavior\n * - ⚡ **Concurrent Processing** - Handle multiple requests simultaneously\n * \n * ## Basic Usage:\n * ```typescript\n * const channel = new A_Channel();\n * A_Context.root.register(channel);\n * \n * // Request/Response pattern\n * const response = await channel.request({ action: 'getData', id: 123 });\n * \n * // Fire-and-forget pattern \n * await channel.send({ type: 'notification', message: 'Hello World' });\n * ```\n * \n * ## Custom Implementation:\n * ```typescript\n * class HttpChannel extends A_Channel {}\n * \n * class HttpProcessor extends A_Component {\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * const response = await fetch(context.params.url);\n * (context as any)._result = await response.json();\n * }\n * }\n * ```\n * \n * @see {@link ./README.md} For complete documentation and examples\n */\n@A_Frame.Namespace('A-Utils')\n@A_Frame.Component({\n name: 'A-Channel',\n description: 'Component uses as abstract channel for communication patterns. Can be inherited and extended to implement custom channels.'\n})\nexport class A_Channel extends A_Component {\n\n /**\n * Indicates whether the channel is currently processing requests.\n * This flag is managed automatically during request/send operations.\n * \n * @readonly\n */\n protected _processing: boolean = false;\n\n /**\n * Promise that resolves when the channel initialization is complete.\n * Ensures that onConnect lifecycle hook has been executed before\n * any communication operations.\n * \n * @private\n */\n protected _initialized?: Promise<void>;\n\n /**\n * Internal cache storage for channel-specific data.\n * Can be used by custom implementations for caching responses,\n * connection pools, or other channel-specific state.\n * \n * @protected\n */\n protected _cache: Map<string, any> = new Map();\n\n /**\n * Creates a new A_Channel instance.\n * \n * The channel must be registered with A_Context before use:\n * ```typescript\n * const channel = new A_Channel();\n * A_Context.root.register(channel);\n * ```\n */\n constructor() {\n super();\n }\n\n /**\n * Indicates whether the channel is currently processing requests.\n * \n * @returns {boolean} True if channel is processing, false otherwise\n */\n get processing(): boolean {\n return this._processing;\n }\n\n /**\n * Promise that resolves when the channel is fully initialized.\n * \n * Automatically calls the onConnect lifecycle hook if not already called.\n * This ensures the channel is ready for communication operations.\n * \n * @returns {Promise<void>} Promise that resolves when initialization is complete\n */\n get initialize(): Promise<void> {\n if (!this._initialized) {\n this._initialized = this.connect();\n }\n return this._initialized;\n }\n\n // ==========================================================\n // ================ Lifecycle Extension Points =============\n // ==========================================================\n\n /**\n * Connection lifecycle hook - called during channel initialization.\n * \n * Override this method in custom components to implement connection logic:\n * - Initialize network connections\n * - Load configuration\n * - Validate environment\n * - Set up connection pools\n * \n * @example\n * ```typescript\n * class DatabaseChannel extends A_Channel {}\n * \n * class DatabaseConnector extends A_Component {\n * @A_Feature.Extend({ scope: [DatabaseChannel] })\n * async [A_ChannelFeatures.onConnect]() {\n * await this.initializeDatabase();\n * console.log('Database channel connected');\n * }\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onConnect\n })\n async onConnect(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Disconnection lifecycle hook - called during channel cleanup.\n * \n * Override this method in custom components to implement cleanup logic:\n * - Close network connections\n * - Save state\n * - Release resources\n * - Clear caches\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [DatabaseChannel] })\n * async [A_ChannelFeatures.onDisconnect]() {\n * await this.closeConnections();\n * console.log('Database channel disconnected');\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onDisconnect\n })\n async onDisconnect(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Pre-request processing hook - called before main request processing.\n * \n * Use this hook for:\n * - Request validation\n * - Authentication\n * - Rate limiting\n * - Logging\n * - Request transformation\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onBeforeRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * // Validate required parameters\n * if (!context.params.url) {\n * throw new Error('URL is required');\n * }\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onBeforeRequest\n })\n async onBeforeRequest(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Main request processing hook - core business logic goes here.\n * \n * This is where the main communication logic should be implemented:\n * - Make HTTP requests\n * - Send messages to queues\n * - Execute database queries\n * - Process business logic\n * \n * Set the result in the context: `(context as any)._result = yourResult;`\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * const response = await fetch(context.params.url);\n * (context as any)._result = await response.json();\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onRequest\n })\n async onRequest(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Post-request processing hook - called after successful request processing.\n * \n * Use this hook for:\n * - Response transformation\n * - Logging\n * - Analytics\n * - Caching results\n * - Cleanup\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onAfterRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * console.log(`Request completed in ${Date.now() - context.startTime}ms`);\n * await this.cacheResponse(context.params, context.data);\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onAfterRequest\n })\n async onAfterRequest(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Error handling hook - called when any operation fails.\n * \n * Use this hook for:\n * - Error logging\n * - Error transformation\n * - Alerting\n * - Retry logic\n * - Fallback mechanisms\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onError](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * console.error('Request failed:', context.params, context.failed);\n * await this.logError(context);\n * await this.sendAlert(context);\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onError\n })\n async onError(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Send operation hook - called for fire-and-forget messaging.\n * \n * Use this hook for:\n * - Message broadcasting\n * - Event publishing\n * - Notification sending\n * - Queue operations\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [EventChannel] })\n * async [A_ChannelFeatures.onSend](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * const { eventType, payload } = context.params;\n * await this.publishEvent(eventType, payload);\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onSend\n })\n async onSend(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n // ==========================================================\n // ================= Public API Methods ===================\n // ==========================================================\n\n /**\n * Initializes the channel by calling the onConnect lifecycle hook.\n * \n * This method is called automatically when accessing the `initialize` property.\n * You can also call it manually if needed.\n * \n * @returns {Promise<void>} Promise that resolves when connection is established\n */\n async connect() {\n await this.call(A_ChannelFeatures.onConnect);\n }\n\n /**\n * Disconnects the channel by calling the onDisconnect lifecycle hook.\n * \n * Use this method to properly cleanup resources when the channel is no longer needed.\n * \n * @returns {Promise<void>} Promise that resolves when cleanup is complete\n */\n async disconnect() {\n await this.call(A_ChannelFeatures.onDisconnect);\n }\n\n /**\n * Sends a request and waits for a response (Request/Response pattern).\n * \n * This method follows the complete request lifecycle:\n * 1. Ensures channel is initialized\n * 2. Creates request scope and context\n * 3. Calls onBeforeRequest hook\n * 4. Calls onRequest hook (main processing)\n * 5. Calls onAfterRequest hook\n * 6. Returns the response context\n * \n * If any step fails, the onError hook is called and the error is captured\n * in the returned context.\n * \n * @template _ParamsType The type of request parameters\n * @template _ResultType The type of response data\n * @param params The request parameters\n * @returns {Promise<A_ChannelRequest<_ParamsType, _ResultType>>} Request context with response\n * \n * @example\n * ```typescript\n * // Basic usage\n * const response = await channel.request({ action: 'getData', id: 123 });\n * \n * // Typed usage\n * interface UserRequest { userId: string; }\n * interface UserResponse { name: string; email: string; }\n * \n * const userResponse = await channel.request<UserRequest, UserResponse>({\n * userId: 'user-123'\n * });\n * \n * if (!userResponse.failed) {\n * console.log('User:', userResponse.data.name);\n * }\n * ```\n */\n async request<\n _ParamsType extends Record<string, any> = Record<string, any>,\n _ResultType extends Record<string, any> = Record<string, any>,\n >(params: _ParamsType): Promise<A_ChannelRequest<_ParamsType, _ResultType>> {\n // Ensure channel is initialized before processing\n await this.initialize;\n\n // Set processing flag\n this._processing = true;\n\n // Create isolated scope for this request\n const requestScope = new A_Scope({\n name: `a-channel@scope:request:${A_IdentityHelper.generateTimeId()}`\n })\n .inherit(A_Context.scope(this));\n\n // Create request context\n const context = new A_ChannelRequest<_ParamsType, _ResultType>(params);\n\n try {\n // Set up dependency injection scope\n requestScope.register(context);\n\n // Execute request lifecycle\n await this.call(A_ChannelFeatures.onBeforeRequest, requestScope);\n await this.call(A_ChannelFeatures.onRequest, requestScope);\n await this.call(A_ChannelFeatures.onAfterRequest, requestScope);\n\n this._processing = false;\n\n return context;\n\n } catch (error) {\n this._processing = false;\n\n // Create channel-specific error\n const channelError = new A_ChannelError(error);\n context.fail(channelError);\n requestScope.register(channelError);\n\n // Call error handling hook\n await this.call(A_ChannelFeatures.onError, requestScope);\n\n requestScope.destroy();\n\n throw channelError;\n }\n }\n\n /**\n * Sends a fire-and-forget message (Send pattern).\n * \n * This method is used for one-way communication where no response is expected:\n * - Event broadcasting\n * - Notification sending\n * - Message queuing\n * - Logging operations\n * \n * The method follows this lifecycle:\n * 1. Ensures channel is initialized\n * 2. Creates send scope and context\n * 3. Calls onSend hook\n * 4. Completes without returning data\n * \n * If the operation fails, the onError hook is called but no error is thrown\n * to the caller (fire-and-forget semantics).\n * \n * @template _ParamsType The type of message parameters\n * @param message The message to send\n * @returns {Promise<void>} Promise that resolves when send is complete\n * \n * @example\n * ```typescript\n * // Send notification\n * await channel.send({\n * type: 'user.login',\n * userId: 'user-123',\n * timestamp: new Date().toISOString()\n * });\n * \n * // Send to message queue\n * await channel.send({\n * queue: 'email-queue',\n * payload: {\n * to: 'user@example.com',\n * subject: 'Welcome!',\n * body: 'Welcome to our service!'\n * }\n * });\n * ```\n */\n async send<_ParamsType extends Record<string, any> = Record<string, any>>(\n message: _ParamsType\n ): Promise<void> {\n // Ensure channel is initialized before processing\n await this.initialize;\n\n // Set processing flag\n this._processing = true;\n\n // Create isolated scope for this send operation\n const requestScope = new A_Scope({\n name: `a-channel@scope:send:${A_IdentityHelper.generateTimeId()}`\n })\n .inherit(A_Context.scope(this));\n\n\n // Create request context for the message\n const context = new A_OperationContext('send', message);\n\n try {\n // Set up dependency injection scope\n requestScope.inherit(A_Context.scope(this));\n requestScope.register(context);\n\n // Execute send operation\n await this.call(A_ChannelFeatures.onSend, requestScope);\n\n this._processing = false;\n\n } catch (error) {\n this._processing = false;\n\n // Create channel-specific error\n const channelError = new A_ChannelError(error);\n requestScope.register(channelError);\n context.fail(channelError);\n\n // Call error handling hook\n await this.call(A_ChannelFeatures.onError, requestScope);\n\n requestScope.destroy();\n\n // Note: We don't re-throw the error for fire-and-forget operations\n // The error is handled by the onError hook\n }\n }\n\n /**\n * @deprecated This method is deprecated and will be removed in future versions.\n * Use request() or send() methods instead depending on your communication pattern.\n * \n * For request/response pattern: Use request()\n * For fire-and-forget pattern: Use send()\n * For consumer patterns: Implement custom consumer logic using request() in a loop\n */\n async consume<T extends Record<string, any> = Record<string, any>>(): Promise<A_OperationContext<any, T>> {\n await this.initialize;\n\n this._processing = true;\n\n const requestScope = new A_Scope({ name: `a-channel@scope:consume:${A_IdentityHelper.generateTimeId()}` })\n .inherit(A_Context.scope(this));\n\n\n const context = new A_OperationContext('consume', {} as T);\n\n try {\n requestScope.inherit(A_Context.scope(this));\n requestScope.register(context);\n\n\n await this.call(A_ChannelFeatures.onConsume, requestScope);\n\n this._processing = false;\n\n return context as A_OperationContext<any, T>;\n\n } catch (error) {\n\n this._processing = false;\n\n const channelError = new A_ChannelError(error)\n\n context.fail(channelError);\n\n await this.call(A_ChannelFeatures.onError, requestScope);\n\n return context as A_OperationContext<any, T>;\n }\n }\n\n}"]}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { __decorateClass } from '../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
import { A_Feature, A_Component, A_Scope, A_IdentityHelper, A_Context } from '@adaas/a-concept';
|
|
3
|
+
import { A_ChannelError } from './A-Channel.error';
|
|
4
|
+
import { A_ChannelFeatures } from './A-Channel.constants';
|
|
5
|
+
import { A_OperationContext } from '@adaas/a-utils/a-operation';
|
|
6
|
+
import { A_ChannelRequest } from './A-ChannelRequest.context';
|
|
7
|
+
import { A_Frame } from '@adaas/a-frame';
|
|
8
|
+
|
|
9
|
+
let A_Channel = class extends A_Component {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new A_Channel instance.
|
|
12
|
+
*
|
|
13
|
+
* The channel must be registered with A_Context before use:
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const channel = new A_Channel();
|
|
16
|
+
* A_Context.root.register(channel);
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
/**
|
|
22
|
+
* Indicates whether the channel is currently processing requests.
|
|
23
|
+
* This flag is managed automatically during request/send operations.
|
|
24
|
+
*
|
|
25
|
+
* @readonly
|
|
26
|
+
*/
|
|
27
|
+
this._processing = false;
|
|
28
|
+
/**
|
|
29
|
+
* Internal cache storage for channel-specific data.
|
|
30
|
+
* Can be used by custom implementations for caching responses,
|
|
31
|
+
* connection pools, or other channel-specific state.
|
|
32
|
+
*
|
|
33
|
+
* @protected
|
|
34
|
+
*/
|
|
35
|
+
this._cache = /* @__PURE__ */ new Map();
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether the channel is currently processing requests.
|
|
39
|
+
*
|
|
40
|
+
* @returns {boolean} True if channel is processing, false otherwise
|
|
41
|
+
*/
|
|
42
|
+
get processing() {
|
|
43
|
+
return this._processing;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Promise that resolves when the channel is fully initialized.
|
|
47
|
+
*
|
|
48
|
+
* Automatically calls the onConnect lifecycle hook if not already called.
|
|
49
|
+
* This ensures the channel is ready for communication operations.
|
|
50
|
+
*
|
|
51
|
+
* @returns {Promise<void>} Promise that resolves when initialization is complete
|
|
52
|
+
*/
|
|
53
|
+
get initialize() {
|
|
54
|
+
if (!this._initialized) {
|
|
55
|
+
this._initialized = this.connect();
|
|
56
|
+
}
|
|
57
|
+
return this._initialized;
|
|
58
|
+
}
|
|
59
|
+
async onConnect(...args) {
|
|
60
|
+
}
|
|
61
|
+
async onDisconnect(...args) {
|
|
62
|
+
}
|
|
63
|
+
async onBeforeRequest(...args) {
|
|
64
|
+
}
|
|
65
|
+
async onRequest(...args) {
|
|
66
|
+
}
|
|
67
|
+
async onAfterRequest(...args) {
|
|
68
|
+
}
|
|
69
|
+
async onError(...args) {
|
|
70
|
+
}
|
|
71
|
+
async onSend(...args) {
|
|
72
|
+
}
|
|
73
|
+
// ==========================================================
|
|
74
|
+
// ================= Public API Methods ===================
|
|
75
|
+
// ==========================================================
|
|
76
|
+
/**
|
|
77
|
+
* Initializes the channel by calling the onConnect lifecycle hook.
|
|
78
|
+
*
|
|
79
|
+
* This method is called automatically when accessing the `initialize` property.
|
|
80
|
+
* You can also call it manually if needed.
|
|
81
|
+
*
|
|
82
|
+
* @returns {Promise<void>} Promise that resolves when connection is established
|
|
83
|
+
*/
|
|
84
|
+
async connect() {
|
|
85
|
+
await this.call(A_ChannelFeatures.onConnect);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Disconnects the channel by calling the onDisconnect lifecycle hook.
|
|
89
|
+
*
|
|
90
|
+
* Use this method to properly cleanup resources when the channel is no longer needed.
|
|
91
|
+
*
|
|
92
|
+
* @returns {Promise<void>} Promise that resolves when cleanup is complete
|
|
93
|
+
*/
|
|
94
|
+
async disconnect() {
|
|
95
|
+
await this.call(A_ChannelFeatures.onDisconnect);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Sends a request and waits for a response (Request/Response pattern).
|
|
99
|
+
*
|
|
100
|
+
* This method follows the complete request lifecycle:
|
|
101
|
+
* 1. Ensures channel is initialized
|
|
102
|
+
* 2. Creates request scope and context
|
|
103
|
+
* 3. Calls onBeforeRequest hook
|
|
104
|
+
* 4. Calls onRequest hook (main processing)
|
|
105
|
+
* 5. Calls onAfterRequest hook
|
|
106
|
+
* 6. Returns the response context
|
|
107
|
+
*
|
|
108
|
+
* If any step fails, the onError hook is called and the error is captured
|
|
109
|
+
* in the returned context.
|
|
110
|
+
*
|
|
111
|
+
* @template _ParamsType The type of request parameters
|
|
112
|
+
* @template _ResultType The type of response data
|
|
113
|
+
* @param params The request parameters
|
|
114
|
+
* @returns {Promise<A_ChannelRequest<_ParamsType, _ResultType>>} Request context with response
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* ```typescript
|
|
118
|
+
* // Basic usage
|
|
119
|
+
* const response = await channel.request({ action: 'getData', id: 123 });
|
|
120
|
+
*
|
|
121
|
+
* // Typed usage
|
|
122
|
+
* interface UserRequest { userId: string; }
|
|
123
|
+
* interface UserResponse { name: string; email: string; }
|
|
124
|
+
*
|
|
125
|
+
* const userResponse = await channel.request<UserRequest, UserResponse>({
|
|
126
|
+
* userId: 'user-123'
|
|
127
|
+
* });
|
|
128
|
+
*
|
|
129
|
+
* if (!userResponse.failed) {
|
|
130
|
+
* console.log('User:', userResponse.data.name);
|
|
131
|
+
* }
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
async request(params) {
|
|
135
|
+
await this.initialize;
|
|
136
|
+
this._processing = true;
|
|
137
|
+
const requestScope = new A_Scope({
|
|
138
|
+
name: `a-channel@scope:request:${A_IdentityHelper.generateTimeId()}`
|
|
139
|
+
}).inherit(A_Context.scope(this));
|
|
140
|
+
const context = new A_ChannelRequest(params);
|
|
141
|
+
try {
|
|
142
|
+
requestScope.register(context);
|
|
143
|
+
await this.call(A_ChannelFeatures.onBeforeRequest, requestScope);
|
|
144
|
+
await this.call(A_ChannelFeatures.onRequest, requestScope);
|
|
145
|
+
await this.call(A_ChannelFeatures.onAfterRequest, requestScope);
|
|
146
|
+
this._processing = false;
|
|
147
|
+
return context;
|
|
148
|
+
} catch (error) {
|
|
149
|
+
this._processing = false;
|
|
150
|
+
const channelError = new A_ChannelError(error);
|
|
151
|
+
context.fail(channelError);
|
|
152
|
+
requestScope.register(channelError);
|
|
153
|
+
await this.call(A_ChannelFeatures.onError, requestScope);
|
|
154
|
+
requestScope.destroy();
|
|
155
|
+
throw channelError;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Sends a fire-and-forget message (Send pattern).
|
|
160
|
+
*
|
|
161
|
+
* This method is used for one-way communication where no response is expected:
|
|
162
|
+
* - Event broadcasting
|
|
163
|
+
* - Notification sending
|
|
164
|
+
* - Message queuing
|
|
165
|
+
* - Logging operations
|
|
166
|
+
*
|
|
167
|
+
* The method follows this lifecycle:
|
|
168
|
+
* 1. Ensures channel is initialized
|
|
169
|
+
* 2. Creates send scope and context
|
|
170
|
+
* 3. Calls onSend hook
|
|
171
|
+
* 4. Completes without returning data
|
|
172
|
+
*
|
|
173
|
+
* If the operation fails, the onError hook is called but no error is thrown
|
|
174
|
+
* to the caller (fire-and-forget semantics).
|
|
175
|
+
*
|
|
176
|
+
* @template _ParamsType The type of message parameters
|
|
177
|
+
* @param message The message to send
|
|
178
|
+
* @returns {Promise<void>} Promise that resolves when send is complete
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```typescript
|
|
182
|
+
* // Send notification
|
|
183
|
+
* await channel.send({
|
|
184
|
+
* type: 'user.login',
|
|
185
|
+
* userId: 'user-123',
|
|
186
|
+
* timestamp: new Date().toISOString()
|
|
187
|
+
* });
|
|
188
|
+
*
|
|
189
|
+
* // Send to message queue
|
|
190
|
+
* await channel.send({
|
|
191
|
+
* queue: 'email-queue',
|
|
192
|
+
* payload: {
|
|
193
|
+
* to: 'user@example.com',
|
|
194
|
+
* subject: 'Welcome!',
|
|
195
|
+
* body: 'Welcome to our service!'
|
|
196
|
+
* }
|
|
197
|
+
* });
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
async send(message) {
|
|
201
|
+
await this.initialize;
|
|
202
|
+
this._processing = true;
|
|
203
|
+
const requestScope = new A_Scope({
|
|
204
|
+
name: `a-channel@scope:send:${A_IdentityHelper.generateTimeId()}`
|
|
205
|
+
}).inherit(A_Context.scope(this));
|
|
206
|
+
const context = new A_OperationContext("send", message);
|
|
207
|
+
try {
|
|
208
|
+
requestScope.inherit(A_Context.scope(this));
|
|
209
|
+
requestScope.register(context);
|
|
210
|
+
await this.call(A_ChannelFeatures.onSend, requestScope);
|
|
211
|
+
this._processing = false;
|
|
212
|
+
} catch (error) {
|
|
213
|
+
this._processing = false;
|
|
214
|
+
const channelError = new A_ChannelError(error);
|
|
215
|
+
requestScope.register(channelError);
|
|
216
|
+
context.fail(channelError);
|
|
217
|
+
await this.call(A_ChannelFeatures.onError, requestScope);
|
|
218
|
+
requestScope.destroy();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* @deprecated This method is deprecated and will be removed in future versions.
|
|
223
|
+
* Use request() or send() methods instead depending on your communication pattern.
|
|
224
|
+
*
|
|
225
|
+
* For request/response pattern: Use request()
|
|
226
|
+
* For fire-and-forget pattern: Use send()
|
|
227
|
+
* For consumer patterns: Implement custom consumer logic using request() in a loop
|
|
228
|
+
*/
|
|
229
|
+
async consume() {
|
|
230
|
+
await this.initialize;
|
|
231
|
+
this._processing = true;
|
|
232
|
+
const requestScope = new A_Scope({ name: `a-channel@scope:consume:${A_IdentityHelper.generateTimeId()}` }).inherit(A_Context.scope(this));
|
|
233
|
+
const context = new A_OperationContext("consume", {});
|
|
234
|
+
try {
|
|
235
|
+
requestScope.inherit(A_Context.scope(this));
|
|
236
|
+
requestScope.register(context);
|
|
237
|
+
await this.call(A_ChannelFeatures.onConsume, requestScope);
|
|
238
|
+
this._processing = false;
|
|
239
|
+
return context;
|
|
240
|
+
} catch (error) {
|
|
241
|
+
this._processing = false;
|
|
242
|
+
const channelError = new A_ChannelError(error);
|
|
243
|
+
context.fail(channelError);
|
|
244
|
+
await this.call(A_ChannelFeatures.onError, requestScope);
|
|
245
|
+
return context;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
__decorateClass([
|
|
250
|
+
A_Feature.Extend({
|
|
251
|
+
name: A_ChannelFeatures.onConnect
|
|
252
|
+
})
|
|
253
|
+
], A_Channel.prototype, "onConnect", 1);
|
|
254
|
+
__decorateClass([
|
|
255
|
+
A_Feature.Extend({
|
|
256
|
+
name: A_ChannelFeatures.onDisconnect
|
|
257
|
+
})
|
|
258
|
+
], A_Channel.prototype, "onDisconnect", 1);
|
|
259
|
+
__decorateClass([
|
|
260
|
+
A_Feature.Extend({
|
|
261
|
+
name: A_ChannelFeatures.onBeforeRequest
|
|
262
|
+
})
|
|
263
|
+
], A_Channel.prototype, "onBeforeRequest", 1);
|
|
264
|
+
__decorateClass([
|
|
265
|
+
A_Feature.Extend({
|
|
266
|
+
name: A_ChannelFeatures.onRequest
|
|
267
|
+
})
|
|
268
|
+
], A_Channel.prototype, "onRequest", 1);
|
|
269
|
+
__decorateClass([
|
|
270
|
+
A_Feature.Extend({
|
|
271
|
+
name: A_ChannelFeatures.onAfterRequest
|
|
272
|
+
})
|
|
273
|
+
], A_Channel.prototype, "onAfterRequest", 1);
|
|
274
|
+
__decorateClass([
|
|
275
|
+
A_Feature.Extend({
|
|
276
|
+
name: A_ChannelFeatures.onError
|
|
277
|
+
})
|
|
278
|
+
], A_Channel.prototype, "onError", 1);
|
|
279
|
+
__decorateClass([
|
|
280
|
+
A_Feature.Extend({
|
|
281
|
+
name: A_ChannelFeatures.onSend
|
|
282
|
+
})
|
|
283
|
+
], A_Channel.prototype, "onSend", 1);
|
|
284
|
+
A_Channel = __decorateClass([
|
|
285
|
+
A_Frame.Namespace("A-Utils"),
|
|
286
|
+
A_Frame.Component({
|
|
287
|
+
name: "A-Channel",
|
|
288
|
+
description: "Component uses as abstract channel for communication patterns. Can be inherited and extended to implement custom channels."
|
|
289
|
+
})
|
|
290
|
+
], A_Channel);
|
|
291
|
+
|
|
292
|
+
export { A_Channel };
|
|
293
|
+
//# sourceMappingURL=A-Channel.component.mjs.map
|
|
294
|
+
//# sourceMappingURL=A-Channel.component.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Channel/A-Channel.component.ts"],"names":[],"mappings":";;;;;;;;AAwDO,IAAM,SAAA,GAAN,cAAwB,WAAA,CAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqCvC,WAAA,GAAc;AACV,IAAA,KAAA,EAAM;AA9BV;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAA,IAAA,CAAU,WAAA,GAAuB,KAAA;AAkBjC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAA,IAAA,CAAU,MAAA,uBAA+B,GAAA,EAAI;AAAA,EAa7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,IAAI,UAAA,GAAsB;AACtB,IAAA,OAAO,IAAA,CAAK,WAAA;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,IAAI,UAAA,GAA4B;AAC5B,IAAA,IAAI,CAAC,KA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AAA,CAAA,EAtJQ,SAAA,CAuJH,SAAA,EAAA,iBAAA,EAAA,CAAA,CAAA;AA8BA,eAAA,CAAA;AAAA,EAHL,UAAU,MAAA,CAAO;AAAA,IACd,MAAM,iBAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EApLQ,SAAA,CAqLH,SAAA,EAAA,WAAA,EAAA,CAAA,CAAA;AA6BA,eAAA,CAAA;AAAA,EAHL,UAAU,MAAA,CAAO;AAAA,IACd,MAAM,iBAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EAjNQ,SAAA,CAkNH,SAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;AA8BA,eAAA,CAAA;AAAA,EAHL,UAAU,MAAA,CAAO;AAAA,IACd,MAAM,iBAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EA/OQ,SAAA,CAgPH,SAAA,EAAA,SAAA,EAAA,CAAA,CAAA;AA4BA,eAAA,CAAA;AAAA,EAHL,UAAU,MAAA,CAAO;AAAA,IACd,MAAM,iBAAA,CAAkB;AAAA,GAC3B;AAAA,CAAA,EA3QQ,SAAA,CA4QH,SAAA,EAAA,QAAA,EAAA,CAAA,CAAA;AA5QG,SAAA,GAAN,eAAA,CAAA;AAAA,EALN,OAAA,CAAQ,UAAU,SAAS,CAAA;AAAA,EAC3B,QAAQ,SAAA,CAAU;AAAA,IACf,IAAA,EAAM,WAAA;AAAA,IACN,WAAA,EAAa;AAAA,GAChB;AAAA,CAAA,EACY,SAAA,CAAA","file":"A-Channel.component.mjs","sourcesContent":["import { A_Component, A_Context, A_Feature, A_IdentityHelper, A_Scope } from \"@adaas/a-concept\";\nimport { A_ChannelError } from \"./A-Channel.error\";\nimport { A_ChannelFeatures } from \"./A-Channel.constants\";\nimport { A_OperationContext } from \"@adaas/a-utils/a-operation\";\nimport { A_ChannelRequest } from \"./A-ChannelRequest.context\";\nimport { A_Frame } from \"@adaas/a-frame\";\n\n/**\n * A-Channel - A powerful, extensible communication channel component\n * \n * A-Channel provides a structured approach to implementing various communication patterns\n * such as HTTP clients, WebSocket connections, message queues, and other messaging systems.\n * It offers a complete lifecycle management system with extensible hooks for custom behavior.\n * \n * ## Key Features:\n * - 🔄 **Lifecycle Management** - Complete connection and processing lifecycle with hooks\n * - 📡 **Multiple Communication Patterns** - Request/Response and Fire-and-Forget messaging \n * - 🛡️ **Error Handling** - Comprehensive error capture and management\n * - 🎯 **Type Safety** - Full TypeScript support with generic types\n * - 🔧 **Extensible** - Component-based architecture for custom behavior\n * - ⚡ **Concurrent Processing** - Handle multiple requests simultaneously\n * \n * ## Basic Usage:\n * ```typescript\n * const channel = new A_Channel();\n * A_Context.root.register(channel);\n * \n * // Request/Response pattern\n * const response = await channel.request({ action: 'getData', id: 123 });\n * \n * // Fire-and-forget pattern \n * await channel.send({ type: 'notification', message: 'Hello World' });\n * ```\n * \n * ## Custom Implementation:\n * ```typescript\n * class HttpChannel extends A_Channel {}\n * \n * class HttpProcessor extends A_Component {\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * const response = await fetch(context.params.url);\n * (context as any)._result = await response.json();\n * }\n * }\n * ```\n * \n * @see {@link ./README.md} For complete documentation and examples\n */\n@A_Frame.Namespace('A-Utils')\n@A_Frame.Component({\n name: 'A-Channel',\n description: 'Component uses as abstract channel for communication patterns. Can be inherited and extended to implement custom channels.'\n})\nexport class A_Channel extends A_Component {\n\n /**\n * Indicates whether the channel is currently processing requests.\n * This flag is managed automatically during request/send operations.\n * \n * @readonly\n */\n protected _processing: boolean = false;\n\n /**\n * Promise that resolves when the channel initialization is complete.\n * Ensures that onConnect lifecycle hook has been executed before\n * any communication operations.\n * \n * @private\n */\n protected _initialized?: Promise<void>;\n\n /**\n * Internal cache storage for channel-specific data.\n * Can be used by custom implementations for caching responses,\n * connection pools, or other channel-specific state.\n * \n * @protected\n */\n protected _cache: Map<string, any> = new Map();\n\n /**\n * Creates a new A_Channel instance.\n * \n * The channel must be registered with A_Context before use:\n * ```typescript\n * const channel = new A_Channel();\n * A_Context.root.register(channel);\n * ```\n */\n constructor() {\n super();\n }\n\n /**\n * Indicates whether the channel is currently processing requests.\n * \n * @returns {boolean} True if channel is processing, false otherwise\n */\n get processing(): boolean {\n return this._processing;\n }\n\n /**\n * Promise that resolves when the channel is fully initialized.\n * \n * Automatically calls the onConnect lifecycle hook if not already called.\n * This ensures the channel is ready for communication operations.\n * \n * @returns {Promise<void>} Promise that resolves when initialization is complete\n */\n get initialize(): Promise<void> {\n if (!this._initialized) {\n this._initialized = this.connect();\n }\n return this._initialized;\n }\n\n // ==========================================================\n // ================ Lifecycle Extension Points =============\n // ==========================================================\n\n /**\n * Connection lifecycle hook - called during channel initialization.\n * \n * Override this method in custom components to implement connection logic:\n * - Initialize network connections\n * - Load configuration\n * - Validate environment\n * - Set up connection pools\n * \n * @example\n * ```typescript\n * class DatabaseChannel extends A_Channel {}\n * \n * class DatabaseConnector extends A_Component {\n * @A_Feature.Extend({ scope: [DatabaseChannel] })\n * async [A_ChannelFeatures.onConnect]() {\n * await this.initializeDatabase();\n * console.log('Database channel connected');\n * }\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onConnect\n })\n async onConnect(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Disconnection lifecycle hook - called during channel cleanup.\n * \n * Override this method in custom components to implement cleanup logic:\n * - Close network connections\n * - Save state\n * - Release resources\n * - Clear caches\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [DatabaseChannel] })\n * async [A_ChannelFeatures.onDisconnect]() {\n * await this.closeConnections();\n * console.log('Database channel disconnected');\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onDisconnect\n })\n async onDisconnect(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Pre-request processing hook - called before main request processing.\n * \n * Use this hook for:\n * - Request validation\n * - Authentication\n * - Rate limiting\n * - Logging\n * - Request transformation\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onBeforeRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * // Validate required parameters\n * if (!context.params.url) {\n * throw new Error('URL is required');\n * }\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onBeforeRequest\n })\n async onBeforeRequest(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Main request processing hook - core business logic goes here.\n * \n * This is where the main communication logic should be implemented:\n * - Make HTTP requests\n * - Send messages to queues\n * - Execute database queries\n * - Process business logic\n * \n * Set the result in the context: `(context as any)._result = yourResult;`\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * const response = await fetch(context.params.url);\n * (context as any)._result = await response.json();\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onRequest\n })\n async onRequest(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Post-request processing hook - called after successful request processing.\n * \n * Use this hook for:\n * - Response transformation\n * - Logging\n * - Analytics\n * - Caching results\n * - Cleanup\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onAfterRequest](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * console.log(`Request completed in ${Date.now() - context.startTime}ms`);\n * await this.cacheResponse(context.params, context.data);\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onAfterRequest\n })\n async onAfterRequest(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Error handling hook - called when any operation fails.\n * \n * Use this hook for:\n * - Error logging\n * - Error transformation\n * - Alerting\n * - Retry logic\n * - Fallback mechanisms\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [HttpChannel] })\n * async [A_ChannelFeatures.onError](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * console.error('Request failed:', context.params, context.failed);\n * await this.logError(context);\n * await this.sendAlert(context);\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onError\n })\n async onError(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n /**\n * Send operation hook - called for fire-and-forget messaging.\n * \n * Use this hook for:\n * - Message broadcasting\n * - Event publishing\n * - Notification sending\n * - Queue operations\n * \n * @example\n * ```typescript\n * @A_Feature.Extend({ scope: [EventChannel] })\n * async [A_ChannelFeatures.onSend](\n * @A_Inject(A_ChannelRequest) context: A_ChannelRequest\n * ) {\n * const { eventType, payload } = context.params;\n * await this.publishEvent(eventType, payload);\n * }\n * ```\n */\n @A_Feature.Extend({\n name: A_ChannelFeatures.onSend\n })\n async onSend(...args: any[]) {\n // Default implementation - no operation\n // Override in custom implementations\n }\n\n // ==========================================================\n // ================= Public API Methods ===================\n // ==========================================================\n\n /**\n * Initializes the channel by calling the onConnect lifecycle hook.\n * \n * This method is called automatically when accessing the `initialize` property.\n * You can also call it manually if needed.\n * \n * @returns {Promise<void>} Promise that resolves when connection is established\n */\n async connect() {\n await this.call(A_ChannelFeatures.onConnect);\n }\n\n /**\n * Disconnects the channel by calling the onDisconnect lifecycle hook.\n * \n * Use this method to properly cleanup resources when the channel is no longer needed.\n * \n * @returns {Promise<void>} Promise that resolves when cleanup is complete\n */\n async disconnect() {\n await this.call(A_ChannelFeatures.onDisconnect);\n }\n\n /**\n * Sends a request and waits for a response (Request/Response pattern).\n * \n * This method follows the complete request lifecycle:\n * 1. Ensures channel is initialized\n * 2. Creates request scope and context\n * 3. Calls onBeforeRequest hook\n * 4. Calls onRequest hook (main processing)\n * 5. Calls onAfterRequest hook\n * 6. Returns the response context\n * \n * If any step fails, the onError hook is called and the error is captured\n * in the returned context.\n * \n * @template _ParamsType The type of request parameters\n * @template _ResultType The type of response data\n * @param params The request parameters\n * @returns {Promise<A_ChannelRequest<_ParamsType, _ResultType>>} Request context with response\n * \n * @example\n * ```typescript\n * // Basic usage\n * const response = await channel.request({ action: 'getData', id: 123 });\n * \n * // Typed usage\n * interface UserRequest { userId: string; }\n * interface UserResponse { name: string; email: string; }\n * \n * const userResponse = await channel.request<UserRequest, UserResponse>({\n * userId: 'user-123'\n * });\n * \n * if (!userResponse.failed) {\n * console.log('User:', userResponse.data.name);\n * }\n * ```\n */\n async request<\n _ParamsType extends Record<string, any> = Record<string, any>,\n _ResultType extends Record<string, any> = Record<string, any>,\n >(params: _ParamsType): Promise<A_ChannelRequest<_ParamsType, _ResultType>> {\n // Ensure channel is initialized before processing\n await this.initialize;\n\n // Set processing flag\n this._processing = true;\n\n // Create isolated scope for this request\n const requestScope = new A_Scope({\n name: `a-channel@scope:request:${A_IdentityHelper.generateTimeId()}`\n })\n .inherit(A_Context.scope(this));\n\n // Create request context\n const context = new A_ChannelRequest<_ParamsType, _ResultType>(params);\n\n try {\n // Set up dependency injection scope\n requestScope.register(context);\n\n // Execute request lifecycle\n await this.call(A_ChannelFeatures.onBeforeRequest, requestScope);\n await this.call(A_ChannelFeatures.onRequest, requestScope);\n await this.call(A_ChannelFeatures.onAfterRequest, requestScope);\n\n this._processing = false;\n\n return context;\n\n } catch (error) {\n this._processing = false;\n\n // Create channel-specific error\n const channelError = new A_ChannelError(error);\n context.fail(channelError);\n requestScope.register(channelError);\n\n // Call error handling hook\n await this.call(A_ChannelFeatures.onError, requestScope);\n\n requestScope.destroy();\n\n throw channelError;\n }\n }\n\n /**\n * Sends a fire-and-forget message (Send pattern).\n * \n * This method is used for one-way communication where no response is expected:\n * - Event broadcasting\n * - Notification sending\n * - Message queuing\n * - Logging operations\n * \n * The method follows this lifecycle:\n * 1. Ensures channel is initialized\n * 2. Creates send scope and context\n * 3. Calls onSend hook\n * 4. Completes without returning data\n * \n * If the operation fails, the onError hook is called but no error is thrown\n * to the caller (fire-and-forget semantics).\n * \n * @template _ParamsType The type of message parameters\n * @param message The message to send\n * @returns {Promise<void>} Promise that resolves when send is complete\n * \n * @example\n * ```typescript\n * // Send notification\n * await channel.send({\n * type: 'user.login',\n * userId: 'user-123',\n * timestamp: new Date().toISOString()\n * });\n * \n * // Send to message queue\n * await channel.send({\n * queue: 'email-queue',\n * payload: {\n * to: 'user@example.com',\n * subject: 'Welcome!',\n * body: 'Welcome to our service!'\n * }\n * });\n * ```\n */\n async send<_ParamsType extends Record<string, any> = Record<string, any>>(\n message: _ParamsType\n ): Promise<void> {\n // Ensure channel is initialized before processing\n await this.initialize;\n\n // Set processing flag\n this._processing = true;\n\n // Create isolated scope for this send operation\n const requestScope = new A_Scope({\n name: `a-channel@scope:send:${A_IdentityHelper.generateTimeId()}`\n })\n .inherit(A_Context.scope(this));\n\n\n // Create request context for the message\n const context = new A_OperationContext('send', message);\n\n try {\n // Set up dependency injection scope\n requestScope.inherit(A_Context.scope(this));\n requestScope.register(context);\n\n // Execute send operation\n await this.call(A_ChannelFeatures.onSend, requestScope);\n\n this._processing = false;\n\n } catch (error) {\n this._processing = false;\n\n // Create channel-specific error\n const channelError = new A_ChannelError(error);\n requestScope.register(channelError);\n context.fail(channelError);\n\n // Call error handling hook\n await this.call(A_ChannelFeatures.onError, requestScope);\n\n requestScope.destroy();\n\n // Note: We don't re-throw the error for fire-and-forget operations\n // The error is handled by the onError hook\n }\n }\n\n /**\n * @deprecated This method is deprecated and will be removed in future versions.\n * Use request() or send() methods instead depending on your communication pattern.\n * \n * For request/response pattern: Use request()\n * For fire-and-forget pattern: Use send()\n * For consumer patterns: Implement custom consumer logic using request() in a loop\n */\n async consume<T extends Record<string, any> = Record<string, any>>(): Promise<A_OperationContext<any, T>> {\n await this.initialize;\n\n this._processing = true;\n\n const requestScope = new A_Scope({ name: `a-channel@scope:consume:${A_IdentityHelper.generateTimeId()}` })\n .inherit(A_Context.scope(this));\n\n\n const context = new A_OperationContext('consume', {} as T);\n\n try {\n requestScope.inherit(A_Context.scope(this));\n requestScope.register(context);\n\n\n await this.call(A_ChannelFeatures.onConsume, requestScope);\n\n this._processing = false;\n\n return context as A_OperationContext<any, T>;\n\n } catch (error) {\n\n this._processing = false;\n\n const channelError = new A_ChannelError(error)\n\n context.fail(channelError);\n\n await this.call(A_ChannelFeatures.onError, requestScope);\n\n return context as A_OperationContext<any, T>;\n }\n }\n\n}"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare enum A_ChannelFeatures {
|
|
2
|
+
/**
|
|
3
|
+
* Allows to extend timeout logic and behavior
|
|
4
|
+
*/
|
|
5
|
+
onTimeout = "_A_Channel_onTimeout",
|
|
6
|
+
/**
|
|
7
|
+
* Allows to extend retry logic and behavior
|
|
8
|
+
*/
|
|
9
|
+
onRetry = "_A_Channel_onRetry",
|
|
10
|
+
/**
|
|
11
|
+
* Allows to extend circuit breaker logic and behavior
|
|
12
|
+
*/
|
|
13
|
+
onCircuitBreakerOpen = "_A_Channel_onCircuitBreakerOpen",
|
|
14
|
+
/**
|
|
15
|
+
* Allows to extend cache logic and behavior
|
|
16
|
+
*/
|
|
17
|
+
onCache = "_A_Channel_onCache",
|
|
18
|
+
/**
|
|
19
|
+
* Allows to extend connection logic and behavior
|
|
20
|
+
*/
|
|
21
|
+
onConnect = "_A_Channel_onConnect",
|
|
22
|
+
/**
|
|
23
|
+
* Allows to extend disconnection logic and behavior
|
|
24
|
+
*/
|
|
25
|
+
onDisconnect = "_A_Channel_onDisconnect",
|
|
26
|
+
/**
|
|
27
|
+
* Allows to extend request preparation logic and behavior
|
|
28
|
+
*/
|
|
29
|
+
onBeforeRequest = "_A_Channel_onBeforeRequest",
|
|
30
|
+
/**
|
|
31
|
+
* Allows to extend request sending logic and behavior
|
|
32
|
+
*/
|
|
33
|
+
onRequest = "_A_Channel_onRequest",
|
|
34
|
+
/**
|
|
35
|
+
* Allows to extend request post-processing logic and behavior
|
|
36
|
+
*/
|
|
37
|
+
onAfterRequest = "_A_Channel_onAfterRequest",
|
|
38
|
+
/**
|
|
39
|
+
* Allows to extend error handling logic and behavior
|
|
40
|
+
*
|
|
41
|
+
* [!] The same approach uses for ALL errors within the channel
|
|
42
|
+
*/
|
|
43
|
+
onError = "_A_Channel_onError",
|
|
44
|
+
/**
|
|
45
|
+
* Allows to extend send logic and behavior
|
|
46
|
+
*/
|
|
47
|
+
onSend = "_A_Channel_onSend",
|
|
48
|
+
/**
|
|
49
|
+
* Allows to extend consume logic and behavior
|
|
50
|
+
*/
|
|
51
|
+
onConsume = "_A_Channel_onConsume"
|
|
52
|
+
}
|
|
53
|
+
declare enum A_ChannelRequestStatuses {
|
|
54
|
+
/**
|
|
55
|
+
* Request is pending
|
|
56
|
+
*/
|
|
57
|
+
PENDING = "PENDING",
|
|
58
|
+
/***
|
|
59
|
+
* Request was successful
|
|
60
|
+
*/
|
|
61
|
+
SUCCESS = "SUCCESS",
|
|
62
|
+
/**
|
|
63
|
+
* Request failed
|
|
64
|
+
*/
|
|
65
|
+
FAILED = "FAILED"
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { A_ChannelFeatures, A_ChannelRequestStatuses };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
declare enum A_ChannelFeatures {
|
|
2
|
+
/**
|
|
3
|
+
* Allows to extend timeout logic and behavior
|
|
4
|
+
*/
|
|
5
|
+
onTimeout = "_A_Channel_onTimeout",
|
|
6
|
+
/**
|
|
7
|
+
* Allows to extend retry logic and behavior
|
|
8
|
+
*/
|
|
9
|
+
onRetry = "_A_Channel_onRetry",
|
|
10
|
+
/**
|
|
11
|
+
* Allows to extend circuit breaker logic and behavior
|
|
12
|
+
*/
|
|
13
|
+
onCircuitBreakerOpen = "_A_Channel_onCircuitBreakerOpen",
|
|
14
|
+
/**
|
|
15
|
+
* Allows to extend cache logic and behavior
|
|
16
|
+
*/
|
|
17
|
+
onCache = "_A_Channel_onCache",
|
|
18
|
+
/**
|
|
19
|
+
* Allows to extend connection logic and behavior
|
|
20
|
+
*/
|
|
21
|
+
onConnect = "_A_Channel_onConnect",
|
|
22
|
+
/**
|
|
23
|
+
* Allows to extend disconnection logic and behavior
|
|
24
|
+
*/
|
|
25
|
+
onDisconnect = "_A_Channel_onDisconnect",
|
|
26
|
+
/**
|
|
27
|
+
* Allows to extend request preparation logic and behavior
|
|
28
|
+
*/
|
|
29
|
+
onBeforeRequest = "_A_Channel_onBeforeRequest",
|
|
30
|
+
/**
|
|
31
|
+
* Allows to extend request sending logic and behavior
|
|
32
|
+
*/
|
|
33
|
+
onRequest = "_A_Channel_onRequest",
|
|
34
|
+
/**
|
|
35
|
+
* Allows to extend request post-processing logic and behavior
|
|
36
|
+
*/
|
|
37
|
+
onAfterRequest = "_A_Channel_onAfterRequest",
|
|
38
|
+
/**
|
|
39
|
+
* Allows to extend error handling logic and behavior
|
|
40
|
+
*
|
|
41
|
+
* [!] The same approach uses for ALL errors within the channel
|
|
42
|
+
*/
|
|
43
|
+
onError = "_A_Channel_onError",
|
|
44
|
+
/**
|
|
45
|
+
* Allows to extend send logic and behavior
|
|
46
|
+
*/
|
|
47
|
+
onSend = "_A_Channel_onSend",
|
|
48
|
+
/**
|
|
49
|
+
* Allows to extend consume logic and behavior
|
|
50
|
+
*/
|
|
51
|
+
onConsume = "_A_Channel_onConsume"
|
|
52
|
+
}
|
|
53
|
+
declare enum A_ChannelRequestStatuses {
|
|
54
|
+
/**
|
|
55
|
+
* Request is pending
|
|
56
|
+
*/
|
|
57
|
+
PENDING = "PENDING",
|
|
58
|
+
/***
|
|
59
|
+
* Request was successful
|
|
60
|
+
*/
|
|
61
|
+
SUCCESS = "SUCCESS",
|
|
62
|
+
/**
|
|
63
|
+
* Request failed
|
|
64
|
+
*/
|
|
65
|
+
FAILED = "FAILED"
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { A_ChannelFeatures, A_ChannelRequestStatuses };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var A_ChannelFeatures = /* @__PURE__ */ ((A_ChannelFeatures2) => {
|
|
4
|
+
A_ChannelFeatures2["onTimeout"] = "_A_Channel_onTimeout";
|
|
5
|
+
A_ChannelFeatures2["onRetry"] = "_A_Channel_onRetry";
|
|
6
|
+
A_ChannelFeatures2["onCircuitBreakerOpen"] = "_A_Channel_onCircuitBreakerOpen";
|
|
7
|
+
A_ChannelFeatures2["onCache"] = "_A_Channel_onCache";
|
|
8
|
+
A_ChannelFeatures2["onConnect"] = "_A_Channel_onConnect";
|
|
9
|
+
A_ChannelFeatures2["onDisconnect"] = "_A_Channel_onDisconnect";
|
|
10
|
+
A_ChannelFeatures2["onBeforeRequest"] = "_A_Channel_onBeforeRequest";
|
|
11
|
+
A_ChannelFeatures2["onRequest"] = "_A_Channel_onRequest";
|
|
12
|
+
A_ChannelFeatures2["onAfterRequest"] = "_A_Channel_onAfterRequest";
|
|
13
|
+
A_ChannelFeatures2["onError"] = "_A_Channel_onError";
|
|
14
|
+
A_ChannelFeatures2["onSend"] = "_A_Channel_onSend";
|
|
15
|
+
A_ChannelFeatures2["onConsume"] = "_A_Channel_onConsume";
|
|
16
|
+
return A_ChannelFeatures2;
|
|
17
|
+
})(A_ChannelFeatures || {});
|
|
18
|
+
var A_ChannelRequestStatuses = /* @__PURE__ */ ((A_ChannelRequestStatuses2) => {
|
|
19
|
+
A_ChannelRequestStatuses2["PENDING"] = "PENDING";
|
|
20
|
+
A_ChannelRequestStatuses2["SUCCESS"] = "SUCCESS";
|
|
21
|
+
A_ChannelRequestStatuses2["FAILED"] = "FAILED";
|
|
22
|
+
return A_ChannelRequestStatuses2;
|
|
23
|
+
})(A_ChannelRequestStatuses || {});
|
|
24
|
+
|
|
25
|
+
exports.A_ChannelFeatures = A_ChannelFeatures;
|
|
26
|
+
exports.A_ChannelRequestStatuses = A_ChannelRequestStatuses;
|
|
27
|
+
//# sourceMappingURL=A-Channel.constants.js.map
|
|
28
|
+
//# sourceMappingURL=A-Channel.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Channel/A-Channel.constants.ts"],"names":["A_ChannelFeatures","A_ChannelRequestStatuses"],"mappings":";;AAKO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AAIH,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAIZ,EAAAA,mBAAA,SAAA,CAAA,GAAU,oBAAA;AAIV,EAAAA,mBAAA,sBAAA,CAAA,GAAuB,iCAAA;AAIvB,EAAAA,mBAAA,SAAA,CAAA,GAAU,oBAAA;AAIV,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAIZ,EAAAA,mBAAA,cAAA,CAAA,GAAe,yBAAA;AAIf,EAAAA,mBAAA,iBAAA,CAAA,GAAkB,4BAAA;AAIlB,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAIZ,EAAAA,mBAAA,gBAAA,CAAA,GAAiB,2BAAA;AAMjB,EAAAA,mBAAA,SAAA,CAAA,GAAU,oBAAA;AAIV,EAAAA,mBAAA,QAAA,CAAA,GAAS,mBAAA;AAIT,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAlDJ,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAyDL,IAAK,wBAAA,qBAAAC,yBAAAA,KAAL;AAIH,EAAAA,0BAAA,SAAA,CAAA,GAAU,SAAA;AAIV,EAAAA,0BAAA,SAAA,CAAA,GAAU,SAAA;AAIV,EAAAA,0BAAA,QAAA,CAAA,GAAS,QAAA;AAZD,EAAA,OAAAA,yBAAAA;AAAA,CAAA,EAAA,wBAAA,IAAA,EAAA","file":"A-Channel.constants.js","sourcesContent":["\n\n// ===============================================================\n// ADAAS A-Channel Constants\n// ===============================================================\nexport enum A_ChannelFeatures {\n /**\n * Allows to extend timeout logic and behavior\n */\n onTimeout = '_A_Channel_onTimeout',\n /**\n * Allows to extend retry logic and behavior\n */\n onRetry = '_A_Channel_onRetry',\n /**\n * Allows to extend circuit breaker logic and behavior\n */\n onCircuitBreakerOpen = '_A_Channel_onCircuitBreakerOpen',\n /**\n * Allows to extend cache logic and behavior\n */\n onCache = '_A_Channel_onCache',\n /**\n * Allows to extend connection logic and behavior\n */\n onConnect = '_A_Channel_onConnect',\n /**\n * Allows to extend disconnection logic and behavior\n */\n onDisconnect = '_A_Channel_onDisconnect',\n /**\n * Allows to extend request preparation logic and behavior\n */\n onBeforeRequest = '_A_Channel_onBeforeRequest',\n /**\n * Allows to extend request sending logic and behavior\n */\n onRequest = '_A_Channel_onRequest',\n /**\n * Allows to extend request post-processing logic and behavior\n */\n onAfterRequest = '_A_Channel_onAfterRequest',\n /**\n * Allows to extend error handling logic and behavior\n * \n * [!] The same approach uses for ALL errors within the channel\n */\n onError = '_A_Channel_onError',\n /**\n * Allows to extend send logic and behavior\n */\n onSend = '_A_Channel_onSend',\n /**\n * Allows to extend consume logic and behavior\n */\n onConsume = '_A_Channel_onConsume',\n}\n\n\n// ==============================================================\n// A-Channel Request Constants\n// ===============================================================\nexport enum A_ChannelRequestStatuses {\n /**\n * Request is pending\n */\n PENDING = 'PENDING',\n /***\n * Request was successful\n */\n SUCCESS = 'SUCCESS',\n /**\n * Request failed\n */\n FAILED = 'FAILED',\n}"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import '../../chunk-EQQGB2QZ.mjs';
|
|
2
|
+
|
|
3
|
+
var A_ChannelFeatures = /* @__PURE__ */ ((A_ChannelFeatures2) => {
|
|
4
|
+
A_ChannelFeatures2["onTimeout"] = "_A_Channel_onTimeout";
|
|
5
|
+
A_ChannelFeatures2["onRetry"] = "_A_Channel_onRetry";
|
|
6
|
+
A_ChannelFeatures2["onCircuitBreakerOpen"] = "_A_Channel_onCircuitBreakerOpen";
|
|
7
|
+
A_ChannelFeatures2["onCache"] = "_A_Channel_onCache";
|
|
8
|
+
A_ChannelFeatures2["onConnect"] = "_A_Channel_onConnect";
|
|
9
|
+
A_ChannelFeatures2["onDisconnect"] = "_A_Channel_onDisconnect";
|
|
10
|
+
A_ChannelFeatures2["onBeforeRequest"] = "_A_Channel_onBeforeRequest";
|
|
11
|
+
A_ChannelFeatures2["onRequest"] = "_A_Channel_onRequest";
|
|
12
|
+
A_ChannelFeatures2["onAfterRequest"] = "_A_Channel_onAfterRequest";
|
|
13
|
+
A_ChannelFeatures2["onError"] = "_A_Channel_onError";
|
|
14
|
+
A_ChannelFeatures2["onSend"] = "_A_Channel_onSend";
|
|
15
|
+
A_ChannelFeatures2["onConsume"] = "_A_Channel_onConsume";
|
|
16
|
+
return A_ChannelFeatures2;
|
|
17
|
+
})(A_ChannelFeatures || {});
|
|
18
|
+
var A_ChannelRequestStatuses = /* @__PURE__ */ ((A_ChannelRequestStatuses2) => {
|
|
19
|
+
A_ChannelRequestStatuses2["PENDING"] = "PENDING";
|
|
20
|
+
A_ChannelRequestStatuses2["SUCCESS"] = "SUCCESS";
|
|
21
|
+
A_ChannelRequestStatuses2["FAILED"] = "FAILED";
|
|
22
|
+
return A_ChannelRequestStatuses2;
|
|
23
|
+
})(A_ChannelRequestStatuses || {});
|
|
24
|
+
|
|
25
|
+
export { A_ChannelFeatures, A_ChannelRequestStatuses };
|
|
26
|
+
//# sourceMappingURL=A-Channel.constants.mjs.map
|
|
27
|
+
//# sourceMappingURL=A-Channel.constants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/lib/A-Channel/A-Channel.constants.ts"],"names":["A_ChannelFeatures","A_ChannelRequestStatuses"],"mappings":";;AAKO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AAIH,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAIZ,EAAAA,mBAAA,SAAA,CAAA,GAAU,oBAAA;AAIV,EAAAA,mBAAA,sBAAA,CAAA,GAAuB,iCAAA;AAIvB,EAAAA,mBAAA,SAAA,CAAA,GAAU,oBAAA;AAIV,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAIZ,EAAAA,mBAAA,cAAA,CAAA,GAAe,yBAAA;AAIf,EAAAA,mBAAA,iBAAA,CAAA,GAAkB,4BAAA;AAIlB,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAIZ,EAAAA,mBAAA,gBAAA,CAAA,GAAiB,2BAAA;AAMjB,EAAAA,mBAAA,SAAA,CAAA,GAAU,oBAAA;AAIV,EAAAA,mBAAA,QAAA,CAAA,GAAS,mBAAA;AAIT,EAAAA,mBAAA,WAAA,CAAA,GAAY,sBAAA;AAlDJ,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;AAyDL,IAAK,wBAAA,qBAAAC,yBAAAA,KAAL;AAIH,EAAAA,0BAAA,SAAA,CAAA,GAAU,SAAA;AAIV,EAAAA,0BAAA,SAAA,CAAA,GAAU,SAAA;AAIV,EAAAA,0BAAA,QAAA,CAAA,GAAS,QAAA;AAZD,EAAA,OAAAA,yBAAAA;AAAA,CAAA,EAAA,wBAAA,IAAA,EAAA","file":"A-Channel.constants.mjs","sourcesContent":["\n\n// ===============================================================\n// ADAAS A-Channel Constants\n// ===============================================================\nexport enum A_ChannelFeatures {\n /**\n * Allows to extend timeout logic and behavior\n */\n onTimeout = '_A_Channel_onTimeout',\n /**\n * Allows to extend retry logic and behavior\n */\n onRetry = '_A_Channel_onRetry',\n /**\n * Allows to extend circuit breaker logic and behavior\n */\n onCircuitBreakerOpen = '_A_Channel_onCircuitBreakerOpen',\n /**\n * Allows to extend cache logic and behavior\n */\n onCache = '_A_Channel_onCache',\n /**\n * Allows to extend connection logic and behavior\n */\n onConnect = '_A_Channel_onConnect',\n /**\n * Allows to extend disconnection logic and behavior\n */\n onDisconnect = '_A_Channel_onDisconnect',\n /**\n * Allows to extend request preparation logic and behavior\n */\n onBeforeRequest = '_A_Channel_onBeforeRequest',\n /**\n * Allows to extend request sending logic and behavior\n */\n onRequest = '_A_Channel_onRequest',\n /**\n * Allows to extend request post-processing logic and behavior\n */\n onAfterRequest = '_A_Channel_onAfterRequest',\n /**\n * Allows to extend error handling logic and behavior\n * \n * [!] The same approach uses for ALL errors within the channel\n */\n onError = '_A_Channel_onError',\n /**\n * Allows to extend send logic and behavior\n */\n onSend = '_A_Channel_onSend',\n /**\n * Allows to extend consume logic and behavior\n */\n onConsume = '_A_Channel_onConsume',\n}\n\n\n// ==============================================================\n// A-Channel Request Constants\n// ===============================================================\nexport enum A_ChannelRequestStatuses {\n /**\n * Request is pending\n */\n PENDING = 'PENDING',\n /***\n * Request was successful\n */\n SUCCESS = 'SUCCESS',\n /**\n * Request failed\n */\n FAILED = 'FAILED',\n}"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { A_Error } from '@adaas/a-concept';
|
|
2
|
+
import { A_OperationContext } from '../A-Operation/A-Operation.context.mjs';
|
|
3
|
+
import '../A-Operation/A-Operation.types.mjs';
|
|
4
|
+
import '../A-Execution/A-Execution.context.mjs';
|
|
5
|
+
|
|
6
|
+
declare class A_ChannelError extends A_Error {
|
|
7
|
+
static readonly MethodNotImplemented = "A-Channel Method Not Implemented";
|
|
8
|
+
protected _context?: A_OperationContext;
|
|
9
|
+
/**
|
|
10
|
+
* Channel Error allows to keep track of errors within a channel if something goes wrong
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* @param originalError
|
|
14
|
+
* @param context
|
|
15
|
+
*/
|
|
16
|
+
constructor(originalError: string | A_Error | Error | any, context?: A_OperationContext | string);
|
|
17
|
+
/***
|
|
18
|
+
* Returns Context of the error
|
|
19
|
+
*/
|
|
20
|
+
get context(): A_OperationContext | undefined;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { A_ChannelError };
|