@xyo-network/module-model 2.75.0 → 2.75.2
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/dist/browser/Config.d.cts +60 -0
- package/dist/browser/Config.d.cts.map +1 -0
- package/dist/browser/Config.js +1 -2
- package/dist/browser/Config.js.map +1 -1
- package/dist/browser/CreatableModule/CreatableModule.d.cts +23 -0
- package/dist/browser/CreatableModule/CreatableModule.d.cts.map +1 -0
- package/dist/browser/CreatableModule/CreatableModule.js +0 -1
- package/dist/browser/CreatableModule/CreatableModule.js.map +1 -1
- package/dist/browser/CreatableModule/CreatableModuleDictionary.d.cts +5 -0
- package/dist/browser/CreatableModule/CreatableModuleDictionary.d.cts.map +1 -0
- package/dist/browser/CreatableModule/CreatableModuleRegistry.d.cts +9 -0
- package/dist/browser/CreatableModule/CreatableModuleRegistry.d.cts.map +1 -0
- package/dist/browser/CreatableModule/CreatableModuleRegistry.js +2 -3
- package/dist/browser/CreatableModule/CreatableModuleRegistry.js.map +1 -1
- package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.cts +6 -0
- package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.d.cts.map +1 -0
- package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.js +1 -2
- package/dist/browser/CreatableModule/LabeledCreatableModuleFactory.js.map +1 -1
- package/dist/browser/CreatableModule/ModuleFactory.d.cts +25 -0
- package/dist/browser/CreatableModule/ModuleFactory.d.cts.map +1 -0
- package/dist/browser/CreatableModule/ModuleFactory.js +3 -4
- package/dist/browser/CreatableModule/ModuleFactory.js.map +1 -1
- package/dist/browser/CreatableModule/ModuleFactoryLocator.d.cts +41 -0
- package/dist/browser/CreatableModule/ModuleFactoryLocator.d.cts.map +1 -0
- package/dist/browser/CreatableModule/ModuleFactoryLocator.js +4 -19
- package/dist/browser/CreatableModule/ModuleFactoryLocator.js.map +1 -1
- package/dist/browser/CreatableModule/index.d.cts +7 -0
- package/dist/browser/CreatableModule/index.d.cts.map +1 -0
- package/dist/browser/CreatableModule/index.js +6 -169
- package/dist/browser/CreatableModule/index.js.map +1 -1
- package/dist/browser/EventsModels/ModuleBusy.d.cts +9 -0
- package/dist/browser/EventsModels/ModuleBusy.d.cts.map +1 -0
- package/dist/browser/EventsModels/ModuleError.d.cts +9 -0
- package/dist/browser/EventsModels/ModuleError.d.cts.map +1 -0
- package/dist/browser/EventsModels/ModuleEventArgs.d.cts +7 -0
- package/dist/browser/EventsModels/ModuleEventArgs.d.cts.map +1 -0
- package/dist/browser/EventsModels/ModuleEventData.d.cts +6 -0
- package/dist/browser/EventsModels/ModuleEventData.d.cts.map +1 -0
- package/dist/browser/EventsModels/ModuleQueried.d.cts +14 -0
- package/dist/browser/EventsModels/ModuleQueried.d.cts.map +1 -0
- package/dist/browser/EventsModels/index.d.cts +6 -0
- package/dist/browser/EventsModels/index.d.cts.map +1 -0
- package/dist/browser/EventsModels/index.js +5 -0
- package/dist/browser/EventsModels/index.js.map +1 -1
- package/dist/browser/Labels/Labels.d.cts +26 -0
- package/dist/browser/Labels/Labels.d.cts.map +1 -0
- package/dist/browser/Labels/Labels.js +1 -2
- package/dist/browser/Labels/Labels.js.map +1 -1
- package/dist/browser/Labels/index.d.cts +2 -0
- package/dist/browser/Labels/index.d.cts.map +1 -0
- package/dist/browser/Labels/index.js +1 -11
- package/dist/browser/Labels/index.js.map +1 -1
- package/dist/browser/ModuleDescription.d.cts +7 -0
- package/dist/browser/ModuleDescription.d.cts.map +1 -0
- package/dist/browser/ModuleParams.d.cts +11 -0
- package/dist/browser/ModuleParams.d.cts.map +1 -0
- package/dist/browser/ModuleQueryHandlerResult.d.cts +3 -0
- package/dist/browser/ModuleQueryHandlerResult.d.cts.map +1 -0
- package/dist/browser/ModuleQueryResult.d.cts +4 -0
- package/dist/browser/ModuleQueryResult.d.cts.map +1 -0
- package/dist/browser/Queries/Describe/Payload.d.cts +6 -0
- package/dist/browser/Queries/Describe/Payload.d.cts.map +1 -0
- package/dist/browser/Queries/Describe/Payload.js +1 -2
- package/dist/browser/Queries/Describe/Payload.js.map +1 -1
- package/dist/browser/Queries/Describe/Query.d.cts +7 -0
- package/dist/browser/Queries/Describe/Query.d.cts.map +1 -0
- package/dist/browser/Queries/Describe/Query.js +1 -2
- package/dist/browser/Queries/Describe/Query.js.map +1 -1
- package/dist/browser/Queries/Describe/index.d.cts +3 -0
- package/dist/browser/Queries/Describe/index.d.cts.map +1 -0
- package/dist/browser/Queries/Describe/index.js +2 -9
- package/dist/browser/Queries/Describe/index.js.map +1 -1
- package/dist/browser/Queries/Discover.d.cts +7 -0
- package/dist/browser/Queries/Discover.d.cts.map +1 -0
- package/dist/browser/Queries/Discover.js +1 -2
- package/dist/browser/Queries/Discover.js.map +1 -1
- package/dist/browser/Queries/Manifest.d.cts +7 -0
- package/dist/browser/Queries/Manifest.d.cts.map +1 -0
- package/dist/browser/Queries/Manifest.js +1 -2
- package/dist/browser/Queries/Manifest.js.map +1 -1
- package/dist/browser/Queries/ModuleAddress/Payload.d.cts +9 -0
- package/dist/browser/Queries/ModuleAddress/Payload.d.cts.map +1 -0
- package/dist/browser/Queries/ModuleAddress/Payload.js +1 -2
- package/dist/browser/Queries/ModuleAddress/Payload.js.map +1 -1
- package/dist/browser/Queries/ModuleAddress/Query.d.cts +7 -0
- package/dist/browser/Queries/ModuleAddress/Query.d.cts.map +1 -0
- package/dist/browser/Queries/ModuleAddress/Query.js +1 -2
- package/dist/browser/Queries/ModuleAddress/Query.js.map +1 -1
- package/dist/browser/Queries/ModuleAddress/index.d.cts +3 -0
- package/dist/browser/Queries/ModuleAddress/index.d.cts.map +1 -0
- package/dist/browser/Queries/ModuleAddress/index.js +2 -10
- package/dist/browser/Queries/ModuleAddress/index.js.map +1 -1
- package/dist/browser/Queries/Subscribe.d.cts +17 -0
- package/dist/browser/Queries/Subscribe.d.cts.map +1 -0
- package/dist/browser/Queries/Subscribe.js +1 -2
- package/dist/browser/Queries/Subscribe.js.map +1 -1
- package/dist/browser/Queries/index.d.cts +14 -0
- package/dist/browser/Queries/index.d.cts.map +1 -0
- package/dist/browser/Queries/index.js +5 -30
- package/dist/browser/Queries/index.js.map +1 -1
- package/dist/browser/index.d.cts +14 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.js +13 -332
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/instance/ModuleInstance.d.cts +41 -0
- package/dist/browser/instance/ModuleInstance.d.cts.map +1 -0
- package/dist/browser/instance/ModuleInstance.js +2 -3
- package/dist/browser/instance/ModuleInstance.js.map +1 -1
- package/dist/browser/instance/ModuleRepository.d.cts +9 -0
- package/dist/browser/instance/ModuleRepository.d.cts.map +1 -0
- package/dist/browser/instance/asModuleInstance.d.cts +5 -0
- package/dist/browser/instance/asModuleInstance.d.cts.map +1 -0
- package/dist/browser/instance/asModuleInstance.js +2 -63
- package/dist/browser/instance/asModuleInstance.js.map +1 -1
- package/dist/browser/instance/index.d.cts +5 -0
- package/dist/browser/instance/index.d.cts.map +1 -0
- package/dist/browser/instance/index.js +4 -75
- package/dist/browser/instance/index.js.map +1 -1
- package/dist/browser/instance/isModuleInstance.d.cts +5 -0
- package/dist/browser/instance/isModuleInstance.d.cts.map +1 -0
- package/dist/browser/instance/isModuleInstance.js +4 -52
- package/dist/browser/instance/isModuleInstance.js.map +1 -1
- package/dist/browser/lib/duplicateModules.d.cts +12 -0
- package/dist/browser/lib/duplicateModules.d.cts.map +1 -0
- package/dist/browser/lib/duplicateModules.js +1 -2
- package/dist/browser/lib/duplicateModules.js.map +1 -1
- package/dist/browser/lib/index.d.cts +3 -0
- package/dist/browser/lib/index.d.cts.map +1 -0
- package/dist/browser/lib/index.js +2 -32
- package/dist/browser/lib/index.js.map +1 -1
- package/dist/browser/lib/serializable.d.cts +3 -0
- package/dist/browser/lib/serializable.d.cts.map +1 -0
- package/dist/browser/lib/serializable.js +4 -5
- package/dist/browser/lib/serializable.js.map +1 -1
- package/dist/browser/module/IsModuleFactory.d.cts +7 -0
- package/dist/browser/module/IsModuleFactory.d.cts.map +1 -0
- package/dist/browser/module/IsModuleFactory.js +4 -22
- package/dist/browser/module/IsModuleFactory.js.map +1 -1
- package/dist/browser/module/Module.d.cts +6 -0
- package/dist/browser/module/Module.d.cts.map +1 -0
- package/dist/browser/module/ModuleFields.d.cts +18 -0
- package/dist/browser/module/ModuleFields.d.cts.map +1 -0
- package/dist/browser/module/ModuleQueryFunctions.d.cts +12 -0
- package/dist/browser/module/ModuleQueryFunctions.d.cts.map +1 -0
- package/dist/browser/module/asModule.d.cts +5 -0
- package/dist/browser/module/asModule.d.cts.map +1 -0
- package/dist/browser/module/asModule.js +2 -50
- package/dist/browser/module/asModule.js.map +1 -1
- package/dist/browser/module/asModuleObject.d.cts +5 -0
- package/dist/browser/module/asModuleObject.d.cts.map +1 -0
- package/dist/browser/module/asModuleObject.js +2 -17
- package/dist/browser/module/asModuleObject.js.map +1 -1
- package/dist/browser/module/index.d.cts +9 -0
- package/dist/browser/module/index.d.cts.map +1 -0
- package/dist/browser/module/index.js +8 -60
- package/dist/browser/module/index.js.map +1 -1
- package/dist/browser/module/isModule.d.cts +5 -0
- package/dist/browser/module/isModule.d.cts.map +1 -0
- package/dist/browser/module/isModule.js +6 -38
- package/dist/browser/module/isModule.js.map +1 -1
- package/dist/browser/module/isModuleObject.d.cts +5 -0
- package/dist/browser/module/isModuleObject.d.cts.map +1 -0
- package/dist/browser/module/isModuleObject.js +3 -4
- package/dist/browser/module/isModuleObject.js.map +1 -1
- package/dist/browser/withModule.d.cts +7 -0
- package/dist/browser/withModule.d.cts.map +1 -0
- package/dist/browser/withModule.js +5 -63
- package/dist/browser/withModule.js.map +1 -1
- package/dist/docs.json +52596 -0
- package/dist/node/Config.d.cts +60 -0
- package/dist/node/Config.d.cts.map +1 -0
- package/dist/node/Config.js +3 -1
- package/dist/node/Config.js.map +1 -1
- package/dist/node/Config.mjs +2 -1
- package/dist/node/Config.mjs.map +1 -1
- package/dist/node/CreatableModule/CreatableModule.d.cts +23 -0
- package/dist/node/CreatableModule/CreatableModule.d.cts.map +1 -0
- package/dist/node/CreatableModule/CreatableModule.js +2 -0
- package/dist/node/CreatableModule/CreatableModule.js.map +1 -1
- package/dist/node/CreatableModule/CreatableModule.mjs +1 -0
- package/dist/node/CreatableModule/CreatableModule.mjs.map +1 -1
- package/dist/node/CreatableModule/CreatableModuleDictionary.d.cts +5 -0
- package/dist/node/CreatableModule/CreatableModuleDictionary.d.cts.map +1 -0
- package/dist/node/CreatableModule/CreatableModuleDictionary.js +2 -0
- package/dist/node/CreatableModule/CreatableModuleDictionary.js.map +1 -1
- package/dist/node/CreatableModule/CreatableModuleRegistry.d.cts +9 -0
- package/dist/node/CreatableModule/CreatableModuleRegistry.d.cts.map +1 -0
- package/dist/node/CreatableModule/CreatableModuleRegistry.js +4 -2
- package/dist/node/CreatableModule/CreatableModuleRegistry.js.map +1 -1
- package/dist/node/CreatableModule/CreatableModuleRegistry.mjs +3 -2
- package/dist/node/CreatableModule/CreatableModuleRegistry.mjs.map +1 -1
- package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.cts +6 -0
- package/dist/node/CreatableModule/LabeledCreatableModuleFactory.d.cts.map +1 -0
- package/dist/node/CreatableModule/LabeledCreatableModuleFactory.js +3 -1
- package/dist/node/CreatableModule/LabeledCreatableModuleFactory.js.map +1 -1
- package/dist/node/CreatableModule/LabeledCreatableModuleFactory.mjs +2 -1
- package/dist/node/CreatableModule/LabeledCreatableModuleFactory.mjs.map +1 -1
- package/dist/node/CreatableModule/ModuleFactory.d.cts +25 -0
- package/dist/node/CreatableModule/ModuleFactory.d.cts.map +1 -0
- package/dist/node/CreatableModule/ModuleFactory.js +7 -4
- package/dist/node/CreatableModule/ModuleFactory.js.map +1 -1
- package/dist/node/CreatableModule/ModuleFactory.mjs +6 -4
- package/dist/node/CreatableModule/ModuleFactory.mjs.map +1 -1
- package/dist/node/CreatableModule/ModuleFactoryLocator.d.cts +41 -0
- package/dist/node/CreatableModule/ModuleFactoryLocator.d.cts.map +1 -0
- package/dist/node/CreatableModule/ModuleFactoryLocator.js +23 -6
- package/dist/node/CreatableModule/ModuleFactoryLocator.js.map +1 -1
- package/dist/node/CreatableModule/ModuleFactoryLocator.mjs +22 -6
- package/dist/node/CreatableModule/ModuleFactoryLocator.mjs.map +1 -1
- package/dist/node/CreatableModule/index.d.cts +7 -0
- package/dist/node/CreatableModule/index.d.cts.map +1 -0
- package/dist/node/CreatableModule/index.js +184 -13
- package/dist/node/CreatableModule/index.js.map +1 -1
- package/dist/node/CreatableModule/index.mjs +171 -6
- package/dist/node/CreatableModule/index.mjs.map +1 -1
- package/dist/node/EventsModels/ModuleBusy.d.cts +9 -0
- package/dist/node/EventsModels/ModuleBusy.d.cts.map +1 -0
- package/dist/node/EventsModels/ModuleBusy.js +2 -0
- package/dist/node/EventsModels/ModuleBusy.js.map +1 -1
- package/dist/node/EventsModels/ModuleError.d.cts +9 -0
- package/dist/node/EventsModels/ModuleError.d.cts.map +1 -0
- package/dist/node/EventsModels/ModuleError.js +2 -0
- package/dist/node/EventsModels/ModuleError.js.map +1 -1
- package/dist/node/EventsModels/ModuleEventArgs.d.cts +7 -0
- package/dist/node/EventsModels/ModuleEventArgs.d.cts.map +1 -0
- package/dist/node/EventsModels/ModuleEventArgs.js +2 -0
- package/dist/node/EventsModels/ModuleEventArgs.js.map +1 -1
- package/dist/node/EventsModels/ModuleEventData.d.cts +6 -0
- package/dist/node/EventsModels/ModuleEventData.d.cts.map +1 -0
- package/dist/node/EventsModels/ModuleEventData.js +2 -0
- package/dist/node/EventsModels/ModuleEventData.js.map +1 -1
- package/dist/node/EventsModels/ModuleQueried.d.cts +14 -0
- package/dist/node/EventsModels/ModuleQueried.d.cts.map +1 -0
- package/dist/node/EventsModels/ModuleQueried.js +2 -0
- package/dist/node/EventsModels/ModuleQueried.js.map +1 -1
- package/dist/node/EventsModels/index.d.cts +6 -0
- package/dist/node/EventsModels/index.d.cts.map +1 -0
- package/dist/node/EventsModels/index.js +2 -14
- package/dist/node/EventsModels/index.js.map +1 -1
- package/dist/node/EventsModels/index.mjs +0 -5
- package/dist/node/EventsModels/index.mjs.map +1 -1
- package/dist/node/Labels/Labels.d.cts +26 -0
- package/dist/node/Labels/Labels.d.cts.map +1 -0
- package/dist/node/Labels/Labels.js +4 -2
- package/dist/node/Labels/Labels.js.map +1 -1
- package/dist/node/Labels/Labels.mjs +3 -2
- package/dist/node/Labels/Labels.mjs.map +1 -1
- package/dist/node/Labels/index.d.cts +2 -0
- package/dist/node/Labels/index.d.cts.map +1 -0
- package/dist/node/Labels/index.js +19 -3
- package/dist/node/Labels/index.js.map +1 -1
- package/dist/node/Labels/index.mjs +11 -1
- package/dist/node/Labels/index.mjs.map +1 -1
- package/dist/node/ModuleDescription.d.cts +7 -0
- package/dist/node/ModuleDescription.d.cts.map +1 -0
- package/dist/node/ModuleDescription.js +2 -0
- package/dist/node/ModuleDescription.js.map +1 -1
- package/dist/node/ModuleParams.d.cts +11 -0
- package/dist/node/ModuleParams.d.cts.map +1 -0
- package/dist/node/ModuleParams.js +2 -0
- package/dist/node/ModuleParams.js.map +1 -1
- package/dist/node/ModuleQueryHandlerResult.d.cts +3 -0
- package/dist/node/ModuleQueryHandlerResult.d.cts.map +1 -0
- package/dist/node/ModuleQueryHandlerResult.js +2 -0
- package/dist/node/ModuleQueryHandlerResult.js.map +1 -1
- package/dist/node/ModuleQueryResult.d.cts +4 -0
- package/dist/node/ModuleQueryResult.d.cts.map +1 -0
- package/dist/node/ModuleQueryResult.js +2 -0
- package/dist/node/ModuleQueryResult.js.map +1 -1
- package/dist/node/Queries/Describe/Payload.d.cts +6 -0
- package/dist/node/Queries/Describe/Payload.d.cts.map +1 -0
- package/dist/node/Queries/Describe/Payload.js +3 -1
- package/dist/node/Queries/Describe/Payload.js.map +1 -1
- package/dist/node/Queries/Describe/Payload.mjs +2 -1
- package/dist/node/Queries/Describe/Payload.mjs.map +1 -1
- package/dist/node/Queries/Describe/Query.d.cts +7 -0
- package/dist/node/Queries/Describe/Query.d.cts.map +1 -0
- package/dist/node/Queries/Describe/Query.js +3 -1
- package/dist/node/Queries/Describe/Query.js.map +1 -1
- package/dist/node/Queries/Describe/Query.mjs +2 -1
- package/dist/node/Queries/Describe/Query.mjs.map +1 -1
- package/dist/node/Queries/Describe/index.d.cts +3 -0
- package/dist/node/Queries/Describe/index.d.cts.map +1 -0
- package/dist/node/Queries/Describe/index.js +18 -5
- package/dist/node/Queries/Describe/index.js.map +1 -1
- package/dist/node/Queries/Describe/index.mjs +9 -2
- package/dist/node/Queries/Describe/index.mjs.map +1 -1
- package/dist/node/Queries/Discover.d.cts +7 -0
- package/dist/node/Queries/Discover.d.cts.map +1 -0
- package/dist/node/Queries/Discover.js +3 -1
- package/dist/node/Queries/Discover.js.map +1 -1
- package/dist/node/Queries/Discover.mjs +2 -1
- package/dist/node/Queries/Discover.mjs.map +1 -1
- package/dist/node/Queries/Manifest.d.cts +7 -0
- package/dist/node/Queries/Manifest.d.cts.map +1 -0
- package/dist/node/Queries/Manifest.js +3 -1
- package/dist/node/Queries/Manifest.js.map +1 -1
- package/dist/node/Queries/Manifest.mjs +2 -1
- package/dist/node/Queries/Manifest.mjs.map +1 -1
- package/dist/node/Queries/ModuleAddress/Payload.d.cts +9 -0
- package/dist/node/Queries/ModuleAddress/Payload.d.cts.map +1 -0
- package/dist/node/Queries/ModuleAddress/Payload.js +3 -1
- package/dist/node/Queries/ModuleAddress/Payload.js.map +1 -1
- package/dist/node/Queries/ModuleAddress/Payload.mjs +2 -1
- package/dist/node/Queries/ModuleAddress/Payload.mjs.map +1 -1
- package/dist/node/Queries/ModuleAddress/Query.d.cts +7 -0
- package/dist/node/Queries/ModuleAddress/Query.d.cts.map +1 -0
- package/dist/node/Queries/ModuleAddress/Query.js +3 -1
- package/dist/node/Queries/ModuleAddress/Query.js.map +1 -1
- package/dist/node/Queries/ModuleAddress/Query.mjs +2 -1
- package/dist/node/Queries/ModuleAddress/Query.mjs.map +1 -1
- package/dist/node/Queries/ModuleAddress/index.d.cts +3 -0
- package/dist/node/Queries/ModuleAddress/index.d.cts.map +1 -0
- package/dist/node/Queries/ModuleAddress/index.js +19 -5
- package/dist/node/Queries/ModuleAddress/index.js.map +1 -1
- package/dist/node/Queries/ModuleAddress/index.mjs +10 -2
- package/dist/node/Queries/ModuleAddress/index.mjs.map +1 -1
- package/dist/node/Queries/Subscribe.d.cts +17 -0
- package/dist/node/Queries/Subscribe.d.cts.map +1 -0
- package/dist/node/Queries/Subscribe.js +3 -1
- package/dist/node/Queries/Subscribe.js.map +1 -1
- package/dist/node/Queries/Subscribe.mjs +2 -1
- package/dist/node/Queries/Subscribe.mjs.map +1 -1
- package/dist/node/Queries/index.d.cts +14 -0
- package/dist/node/Queries/index.d.cts.map +1 -0
- package/dist/node/Queries/index.js +44 -11
- package/dist/node/Queries/index.js.map +1 -1
- package/dist/node/Queries/index.mjs +30 -5
- package/dist/node/Queries/index.mjs.map +1 -1
- package/dist/node/index.d.cts +14 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +373 -27
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +334 -13
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/instance/ModuleInstance.d.cts +41 -0
- package/dist/node/instance/ModuleInstance.d.cts.map +1 -0
- package/dist/node/instance/ModuleInstance.js +4 -2
- package/dist/node/instance/ModuleInstance.js.map +1 -1
- package/dist/node/instance/ModuleInstance.mjs +3 -2
- package/dist/node/instance/ModuleInstance.mjs.map +1 -1
- package/dist/node/instance/ModuleRepository.d.cts +9 -0
- package/dist/node/instance/ModuleRepository.d.cts.map +1 -0
- package/dist/node/instance/ModuleRepository.js +2 -0
- package/dist/node/instance/ModuleRepository.js.map +1 -1
- package/dist/node/instance/asModuleInstance.d.cts +5 -0
- package/dist/node/instance/asModuleInstance.d.cts.map +1 -0
- package/dist/node/instance/asModuleInstance.js +64 -2
- package/dist/node/instance/asModuleInstance.js.map +1 -1
- package/dist/node/instance/asModuleInstance.mjs +63 -2
- package/dist/node/instance/asModuleInstance.mjs.map +1 -1
- package/dist/node/instance/index.d.cts +5 -0
- package/dist/node/instance/index.d.cts.map +1 -0
- package/dist/node/instance/index.js +86 -9
- package/dist/node/instance/index.js.map +1 -1
- package/dist/node/instance/index.mjs +75 -4
- package/dist/node/instance/index.mjs.map +1 -1
- package/dist/node/instance/isModuleInstance.d.cts +5 -0
- package/dist/node/instance/isModuleInstance.d.cts.map +1 -0
- package/dist/node/instance/isModuleInstance.js +53 -4
- package/dist/node/instance/isModuleInstance.js.map +1 -1
- package/dist/node/instance/isModuleInstance.mjs +52 -4
- package/dist/node/instance/isModuleInstance.mjs.map +1 -1
- package/dist/node/lib/duplicateModules.d.cts +12 -0
- package/dist/node/lib/duplicateModules.d.cts.map +1 -0
- package/dist/node/lib/duplicateModules.js +3 -1
- package/dist/node/lib/duplicateModules.js.map +1 -1
- package/dist/node/lib/duplicateModules.mjs +2 -1
- package/dist/node/lib/duplicateModules.mjs.map +1 -1
- package/dist/node/lib/index.d.cts +3 -0
- package/dist/node/lib/index.d.cts.map +1 -0
- package/dist/node/lib/index.js +42 -5
- package/dist/node/lib/index.js.map +1 -1
- package/dist/node/lib/index.mjs +32 -2
- package/dist/node/lib/index.mjs.map +1 -1
- package/dist/node/lib/serializable.d.cts +3 -0
- package/dist/node/lib/serializable.d.cts.map +1 -0
- package/dist/node/lib/serializable.js +6 -4
- package/dist/node/lib/serializable.js.map +1 -1
- package/dist/node/lib/serializable.mjs +5 -4
- package/dist/node/lib/serializable.mjs.map +1 -1
- package/dist/node/module/IsModuleFactory.d.cts +7 -0
- package/dist/node/module/IsModuleFactory.d.cts.map +1 -0
- package/dist/node/module/IsModuleFactory.js +28 -7
- package/dist/node/module/IsModuleFactory.js.map +1 -1
- package/dist/node/module/IsModuleFactory.mjs +24 -6
- package/dist/node/module/IsModuleFactory.mjs.map +1 -1
- package/dist/node/module/Module.d.cts +6 -0
- package/dist/node/module/Module.d.cts.map +1 -0
- package/dist/node/module/Module.js +2 -0
- package/dist/node/module/Module.js.map +1 -1
- package/dist/node/module/ModuleFields.d.cts +18 -0
- package/dist/node/module/ModuleFields.d.cts.map +1 -0
- package/dist/node/module/ModuleFields.js +2 -0
- package/dist/node/module/ModuleFields.js.map +1 -1
- package/dist/node/module/ModuleQueryFunctions.d.cts +12 -0
- package/dist/node/module/ModuleQueryFunctions.d.cts.map +1 -0
- package/dist/node/module/ModuleQueryFunctions.js +2 -0
- package/dist/node/module/ModuleQueryFunctions.js.map +1 -1
- package/dist/node/module/asModule.d.cts +5 -0
- package/dist/node/module/asModule.d.cts.map +1 -0
- package/dist/node/module/asModule.js +51 -2
- package/dist/node/module/asModule.js.map +1 -1
- package/dist/node/module/asModule.mjs +50 -2
- package/dist/node/module/asModule.mjs.map +1 -1
- package/dist/node/module/asModuleObject.d.cts +5 -0
- package/dist/node/module/asModuleObject.d.cts.map +1 -0
- package/dist/node/module/asModuleObject.js +18 -2
- package/dist/node/module/asModuleObject.js.map +1 -1
- package/dist/node/module/asModuleObject.mjs +17 -2
- package/dist/node/module/asModuleObject.mjs.map +1 -1
- package/dist/node/module/index.d.cts +9 -0
- package/dist/node/module/index.d.cts.map +1 -0
- package/dist/node/module/index.js +74 -17
- package/dist/node/module/index.js.map +1 -1
- package/dist/node/module/index.mjs +60 -8
- package/dist/node/module/index.mjs.map +1 -1
- package/dist/node/module/isModule.d.cts +5 -0
- package/dist/node/module/isModule.d.cts.map +1 -0
- package/dist/node/module/isModule.js +42 -7
- package/dist/node/module/isModule.js.map +1 -1
- package/dist/node/module/isModule.mjs +38 -6
- package/dist/node/module/isModule.mjs.map +1 -1
- package/dist/node/module/isModuleObject.d.cts +5 -0
- package/dist/node/module/isModuleObject.d.cts.map +1 -0
- package/dist/node/module/isModuleObject.js +5 -3
- package/dist/node/module/isModuleObject.js.map +1 -1
- package/dist/node/module/isModuleObject.mjs +4 -3
- package/dist/node/module/isModuleObject.mjs.map +1 -1
- package/dist/node/withModule.d.cts +7 -0
- package/dist/node/withModule.d.cts.map +1 -0
- package/dist/node/withModule.js +66 -5
- package/dist/node/withModule.js.map +1 -1
- package/dist/node/withModule.mjs +63 -5
- package/dist/node/withModule.mjs.map +1 -1
- package/package.json +18 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/CreatableModule/CreatableModule.ts","../../../src/CreatableModule/CreatableModuleRegistry.ts","../../../src/CreatableModule/LabeledCreatableModuleFactory.ts","../../../src/CreatableModule/ModuleFactory.ts","../../../src/CreatableModule/ModuleFactoryLocator.ts","../../../src/Labels/Labels.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { Logger } from '@xyo-network/logger'\n\nimport { ModuleInstance } from '../instance'\n\nexport type CreatableModuleFactory<T extends ModuleInstance = ModuleInstance> = Omit<Omit<CreatableModule<T>, 'new'>, 'create'> & {\n create<T extends ModuleInstance>(this: CreatableModuleFactory<T>, params?: T['params']): Promise<T>\n}\n\nexport interface CreatableModule<T extends ModuleInstance = ModuleInstance> {\n configSchema: string\n configSchemas: string[]\n defaultLogger?: Logger\n new (privateConstructorKey: string, params: T['params'], account: AccountInstance): T\n _noOverride(functionName: string): void\n create<T extends ModuleInstance>(this: CreatableModule<T>, params?: T['params']): Promise<T>\n factory<T extends ModuleInstance>(this: CreatableModule<T>, params?: T['params']): CreatableModuleFactory<T>\n}\n\n/**\n * Class annotation to be used to decorate Modules which support\n * an asynchronous creation pattern\n * @returns The decorated Module requiring it implement the members\n * of the CreatableModule as statics properties/methods\n */\nexport function creatableModule<TModule extends ModuleInstance = ModuleInstance>() {\n return <U extends CreatableModule<TModule>>(constructor: U) => {\n constructor\n }\n}\n","import { CreatableModuleFactory } from './CreatableModule'\nimport { CreatableModuleDictionary } from './CreatableModuleDictionary'\nimport { LabeledCreatableModuleFactory } from './LabeledCreatableModuleFactory'\n\nexport interface CreatableModuleRegistry {\n [key: string]: (CreatableModuleFactory | LabeledCreatableModuleFactory)[] | undefined\n}\n\nexport const toCreatableModuleRegistry = (dict: CreatableModuleDictionary | CreatableModuleRegistry): CreatableModuleRegistry => {\n return Object.entries(dict).reduce((registry, [schema, factory]) => {\n registry[schema] = Array.isArray(factory) ? factory : [factory]\n return registry\n }, {} as CreatableModuleRegistry)\n}\n\nexport const assignCreatableModuleRegistry = (\n target: CreatableModuleRegistry = {},\n ...sources: CreatableModuleRegistry[]\n): CreatableModuleRegistry => {\n sources.map((source) =>\n Object.entries(source).map(([schema, factories]) => {\n if (factories) {\n const existingFactories = target[schema]\n target[schema] = existingFactories ? (target[schema] = [...existingFactories, ...factories]) : factories\n }\n }),\n )\n return target\n}\n","import { ModuleInstance } from '../instance'\nimport { WithOptionalLabels } from '../Labels'\nimport { CreatableModuleFactory } from './CreatableModule'\n\nexport type LabeledCreatableModuleFactory<T extends ModuleInstance = ModuleInstance> = CreatableModuleFactory<T> & WithOptionalLabels\n\nexport const hasLabels = (factory: CreatableModuleFactory | LabeledCreatableModuleFactory): factory is LabeledCreatableModuleFactory => {\n return (factory as LabeledCreatableModuleFactory).labels !== undefined\n}\n","import { assertEx } from '@xylabs/assert'\nimport { merge } from '@xylabs/lodash'\nimport { Logger } from '@xyo-network/logger'\n\nimport { ModuleInstance } from '../instance'\nimport { Labels, WithOptionalLabels } from '../Labels'\nimport { CreatableModule, CreatableModuleFactory } from './CreatableModule'\n\nexport class ModuleFactory<TModule extends ModuleInstance> implements CreatableModuleFactory<TModule> {\n configSchemas: CreatableModuleFactory<TModule>['configSchemas']\n\n creatableModule: CreatableModule<TModule>\n\n defaultLogger?: Logger | undefined\n\n defaultParams?: Omit<TModule['params'], 'config'> & { config?: TModule['params']['config'] }\n\n labels?: Labels\n\n constructor(\n creatableModule: CreatableModule<TModule>,\n params?: Omit<TModule['params'], 'config'> & { config?: TModule['params']['config'] },\n labels: Labels = {},\n ) {\n this.creatableModule = creatableModule\n this.defaultParams = params\n this.configSchemas = creatableModule.configSchemas\n this.labels = Object.assign({}, (creatableModule as WithOptionalLabels).labels ?? {}, labels ?? {})\n }\n\n get configSchema(): string {\n return this.configSchemas[0]\n }\n\n static withParams<T extends ModuleInstance>(\n creatableModule: CreatableModule<T>,\n params?: Omit<T['params'], 'config'> & { config?: T['params']['config'] },\n labels: Labels = {},\n ) {\n return new ModuleFactory(creatableModule, params, labels)\n }\n\n _getRootFunction(funcName: string) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let anyThis = this as any\n while (anyThis.__proto__[funcName]) {\n anyThis = anyThis.__proto__\n }\n return anyThis[funcName]\n }\n\n _noOverride(functionName: string) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const thisFunc = (this as any)[functionName]\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const rootFunc = this._getRootFunction(functionName)\n assertEx(thisFunc === rootFunc, `Override not allowed for [${functionName}] - override ${functionName}Handler instead`)\n }\n\n create<T extends ModuleInstance>(this: CreatableModuleFactory<T>, params?: TModule['params'] | undefined): Promise<T> {\n const factory = this as ModuleFactory<T>\n const schema = factory.creatableModule.configSchema\n const mergedParams: TModule['params'] = merge({}, factory.defaultParams, params, {\n config: merge({}, factory.defaultParams?.config, params?.config, { schema }),\n })\n return factory.creatableModule.create<T>(mergedParams)\n }\n\n factory<T extends ModuleInstance>(this: CreatableModule<T>, _params?: T['params'] | undefined): CreatableModuleFactory<T> {\n throw new Error('Method not implemented.')\n }\n}\n","import { assertEx } from '@xylabs/assert'\n\nimport { ModuleInstance } from '../instance'\nimport { hasAllLabels, Labels } from '../Labels'\nimport { CreatableModuleFactory } from './CreatableModule'\nimport { CreatableModuleRegistry } from './CreatableModuleRegistry'\nimport { hasLabels, LabeledCreatableModuleFactory } from './LabeledCreatableModuleFactory'\n\n/**\n * A class which encapsulates the Service Locator Pattern for Module Factories\n */\nexport class ModuleFactoryLocator {\n constructor(protected readonly _registry: CreatableModuleRegistry = {}) {}\n\n /**\n * The current registry for the module factory\n */\n get registry(): Readonly<CreatableModuleRegistry> {\n return this._registry\n }\n\n /**\n * Locates a module factory that matches the supplied schema and labels\n * @param schema The config schema for the module\n * @param labels The labels for the module factory\n * @returns A module factory that matches the supplied schema and labels or throws if one is not found\n */\n locate(schema: string, labels?: Labels): CreatableModuleFactory | LabeledCreatableModuleFactory {\n return assertEx(this.tryLocate(schema, labels), () => {\n const configString = `config schema [${schema}]`\n const labelsString = labels ? ` & labels [${JSON.stringify(labels)}]` : ''\n return `No module factory for the supplied ${configString}${labelsString} registered`\n })\n }\n\n /**\n * Registers a single module factory (with optional tags) with the locator\n * @param additional Additional module factories to register\n */\n register<TModule extends ModuleInstance>(mod: CreatableModuleFactory<TModule>, labels?: Labels): this {\n mod.configSchemas.map((schema) => {\n const existingFactories = this._registry[schema]\n const factory: LabeledCreatableModuleFactory<TModule> = {\n // Destructure instance properties\n ...mod,\n // Copy static methods\n create: mod.create.bind(mod) as LabeledCreatableModuleFactory<TModule>['create'],\n // Merge module & supplied labels\n labels: Object.assign({}, (mod as LabeledCreatableModuleFactory).labels ?? {}, labels ?? {}),\n }\n this._registry[schema] = existingFactories ? [...existingFactories, factory] : [factory]\n })\n return this\n }\n\n /**\n * Registers multiple module factories with the locator\n * @param additional Additional module factories to register\n */\n registerMany(additional: CreatableModuleRegistry): this {\n Object.entries(additional).map(([schema, factories]) => {\n if (factories) {\n const existingFactories = this._registry[schema]\n this._registry[schema] = existingFactories ? [...existingFactories, ...factories] : factories\n }\n })\n return this\n }\n\n /**\n * Tries to locate a module factory that matches the supplied schema and labels\n * @param schema The config schema for the module\n * @param labels The labels for the module factory\n * @returns A module factory that matches the supplied schema and labels or undefined\n */\n tryLocate(schema: string, labels?: Labels): CreatableModuleFactory | LabeledCreatableModuleFactory | undefined {\n // If labels were provided\n return labels\n ? // Find the first factory that has labels and has all the labels provided\n this._registry[schema]?.filter(hasLabels).find((factory) => hasAllLabels(factory?.labels, labels))\n : // Otherwise, return the first factory\n this._registry[schema]?.[0]\n }\n}\n","/**\n * Object used to represent labels identifying a resource.\n */\nexport interface Labels {\n [key: string]: string | undefined\n}\n\n/**\n * Interface for objects that have labels.\n */\nexport interface WithLabels<T extends Labels = Labels> {\n labels: T\n}\n\n/**\n * Interface for objects that have labels.\n */\nexport interface WithOptionalLabels<T extends Labels = Labels> {\n labels?: T\n}\n\n/**\n * Returns true if the source object has all the labels from the required set\n * @param source Source object to check against\n * @param required Set of labels to check for in source\n * @returns True of the source object has all the labels from the required set\n */\nexport const hasAllLabels = (source?: Labels, required?: Labels): boolean => {\n if (!required) return true\n return Object.entries(required).every(([key, value]) => {\n // eslint-disable-next-line no-prototype-builtins\n return source?.hasOwnProperty(key as keyof typeof source) && source?.[key as keyof typeof source] === value\n })\n}\n"],"mappings":";AAyBO,SAAS,kBAAmE;AACjF,SAAO,CAAqC,gBAAmB;AAC7D;AAAA,EACF;AACF;;;ACrBO,IAAM,4BAA4B,CAAC,SAAuF;AAC/H,SAAO,OAAO,QAAQ,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ,OAAO,MAAM;AAClE,aAAS,MAAM,IAAI,MAAM,QAAQ,OAAO,IAAI,UAAU,CAAC,OAAO;AAC9D,WAAO;AAAA,EACT,GAAG,CAAC,CAA4B;AAClC;AAEO,IAAM,gCAAgC,CAC3C,SAAkC,CAAC,MAChC,YACyB;AAC5B,UAAQ;AAAA,IAAI,CAAC,WACX,OAAO,QAAQ,MAAM,EAAE,IAAI,CAAC,CAAC,QAAQ,SAAS,MAAM;AAClD,UAAI,WAAW;AACb,cAAM,oBAAoB,OAAO,MAAM;AACvC,eAAO,MAAM,IAAI,oBAAqB,OAAO,MAAM,IAAI,CAAC,GAAG,mBAAmB,GAAG,SAAS,IAAK;AAAA,MACjG;AAAA,IACF,CAAC;AAAA,EACH;AACA,SAAO;AACT;;;ACtBO,IAAM,YAAY,CAAC,YAA8G;AACtI,SAAQ,QAA0C,WAAW;AAC/D;;;ACRA,SAAS,gBAAgB;AACzB,SAAS,aAAa;AAOf,IAAM,gBAAN,MAAM,eAAyF;AAAA,EACpG;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA,YACEA,kBACA,QACA,SAAiB,CAAC,GAClB;AACA,SAAK,kBAAkBA;AACvB,SAAK,gBAAgB;AACrB,SAAK,gBAAgBA,iBAAgB;AACrC,SAAK,SAAS,OAAO,OAAO,CAAC,GAAIA,iBAAuC,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC;AAAA,EACpG;AAAA,EAEA,IAAI,eAAuB;AACzB,WAAO,KAAK,cAAc,CAAC;AAAA,EAC7B;AAAA,EAEA,OAAO,WACLA,kBACA,QACA,SAAiB,CAAC,GAClB;AACA,WAAO,IAAI,eAAcA,kBAAiB,QAAQ,MAAM;AAAA,EAC1D;AAAA,EAEA,iBAAiB,UAAkB;AAEjC,QAAI,UAAU;AACd,WAAO,QAAQ,UAAU,QAAQ,GAAG;AAClC,gBAAU,QAAQ;AAAA,IACpB;AACA,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,YAAY,cAAsB;AAEhC,UAAM,WAAY,KAAa,YAAY;AAE3C,UAAM,WAAW,KAAK,iBAAiB,YAAY;AACnD,aAAS,aAAa,UAAU,6BAA6B,YAAY,gBAAgB,YAAY,iBAAiB;AAAA,EACxH;AAAA,EAEA,OAAkE,QAAoD;AACpH,UAAM,UAAU;AAChB,UAAM,SAAS,QAAQ,gBAAgB;AACvC,UAAM,eAAkC,MAAM,CAAC,GAAG,QAAQ,eAAe,QAAQ;AAAA,MAC/E,QAAQ,MAAM,CAAC,GAAG,QAAQ,eAAe,QAAQ,QAAQ,QAAQ,EAAE,OAAO,CAAC;AAAA,IAC7E,CAAC;AACD,WAAO,QAAQ,gBAAgB,OAAU,YAAY;AAAA,EACvD;AAAA,EAEA,QAA4D,SAA8D;AACxH,UAAM,IAAI,MAAM,yBAAyB;AAAA,EAC3C;AACF;;;ACvEA,SAAS,YAAAC,iBAAgB;;;AC2BlB,IAAM,eAAe,CAAC,QAAiB,aAA+B;AAC3E,MAAI,CAAC;AAAU,WAAO;AACtB,SAAO,OAAO,QAAQ,QAAQ,EAAE,MAAM,CAAC,CAAC,KAAK,KAAK,MAAM;AAEtD,WAAO,QAAQ,eAAe,GAA0B,KAAK,SAAS,GAA0B,MAAM;AAAA,EACxG,CAAC;AACH;;;ADtBO,IAAM,uBAAN,MAA2B;AAAA,EAChC,YAA+B,YAAqC,CAAC,GAAG;AAAzC;AAAA,EAA0C;AAAA;AAAA;AAAA;AAAA,EAKzE,IAAI,WAA8C;AAChD,WAAO,KAAK;AAAA,EACd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,OAAO,QAAgB,QAAyE;AAC9F,WAAOC,UAAS,KAAK,UAAU,QAAQ,MAAM,GAAG,MAAM;AACpD,YAAM,eAAe,kBAAkB,MAAM;AAC7C,YAAM,eAAe,SAAS,cAAc,KAAK,UAAU,MAAM,CAAC,MAAM;AACxE,aAAO,sCAAsC,YAAY,GAAG,YAAY;AAAA,IAC1E,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAyC,KAAsC,QAAuB;AACpG,QAAI,cAAc,IAAI,CAAC,WAAW;AAChC,YAAM,oBAAoB,KAAK,UAAU,MAAM;AAC/C,YAAM,UAAkD;AAAA;AAAA,QAEtD,GAAG;AAAA;AAAA,QAEH,QAAQ,IAAI,OAAO,KAAK,GAAG;AAAA;AAAA,QAE3B,QAAQ,OAAO,OAAO,CAAC,GAAI,IAAsC,UAAU,CAAC,GAAG,UAAU,CAAC,CAAC;AAAA,MAC7F;AACA,WAAK,UAAU,MAAM,IAAI,oBAAoB,CAAC,GAAG,mBAAmB,OAAO,IAAI,CAAC,OAAO;AAAA,IACzF,CAAC;AACD,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAa,YAA2C;AACtD,WAAO,QAAQ,UAAU,EAAE,IAAI,CAAC,CAAC,QAAQ,SAAS,MAAM;AACtD,UAAI,WAAW;AACb,cAAM,oBAAoB,KAAK,UAAU,MAAM;AAC/C,aAAK,UAAU,MAAM,IAAI,oBAAoB,CAAC,GAAG,mBAAmB,GAAG,SAAS,IAAI;AAAA,MACtF;AAAA,IACF,CAAC;AACD,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,UAAU,QAAgB,QAAqF;AAE7G,WAAO;AAAA;AAAA,MAEH,KAAK,UAAU,MAAM,GAAG,OAAO,SAAS,EAAE,KAAK,CAAC,YAAY,aAAa,SAAS,QAAQ,MAAM,CAAC;AAAA;AAAA;AAAA,MAEjG,KAAK,UAAU,MAAM,IAAI,CAAC;AAAA;AAAA,EAChC;AACF;","names":["creatableModule","assertEx","assertEx"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/CreatableModule/index.ts"],"sourcesContent":["export * from './CreatableModule'\nexport * from './CreatableModuleDictionary'\nexport * from './CreatableModuleRegistry'\nexport * from './LabeledCreatableModuleFactory'\nexport * from './ModuleFactory'\nexport * from './ModuleFactoryLocator'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventData } from '@xyo-network/module-events';
|
|
2
|
+
import { ModuleEventArgs } from './ModuleEventArgs';
|
|
3
|
+
export type ModuleBusyEventArgs<TModule extends object = object> = ModuleEventArgs<TModule, {
|
|
4
|
+
busy: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
export interface ModuleBusyEventData<TModule extends object = object> extends EventData {
|
|
7
|
+
moduleBusy: ModuleBusyEventArgs<TModule>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ModuleBusy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleBusy.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleBusy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CAChF,OAAO,EACP;IACE,IAAI,EAAE,OAAO,CAAA;CACd,CACF,CAAA;AAED,MAAM,WAAW,mBAAmB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IACrF,UAAU,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAA;CACzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventData } from '@xyo-network/module-events';
|
|
2
|
+
import { ModuleEventArgs } from './ModuleEventArgs';
|
|
3
|
+
export type ModuleErrorEventArgs<TModule extends object = object> = ModuleEventArgs<TModule, {
|
|
4
|
+
error: Error;
|
|
5
|
+
}>;
|
|
6
|
+
export interface ModuleErrorEventData<TModule extends object = object> extends EventData {
|
|
7
|
+
moduleError: ModuleErrorEventArgs<TModule>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=ModuleError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleError.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,MAAM,oBAAoB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACjF,OAAO,EACP;IACE,KAAK,EAAE,KAAK,CAAA;CACb,CACF,CAAA;AAED,MAAM,WAAW,oBAAoB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IACtF,WAAW,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAA;CAC3C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EventArgs } from '@xyo-network/module-events';
|
|
2
|
+
export type ModuleEventArgs<TModule extends object = object, TArgs extends EventArgs | undefined = undefined> = TArgs extends EventArgs ? {
|
|
3
|
+
module: TModule;
|
|
4
|
+
} & TArgs : {
|
|
5
|
+
module: TModule;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ModuleEventArgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleEventArgs.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleEventArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAEtD,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,EAAE,KAAK,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IAAI,KAAK,SAAS,SAAS,GACnI;IACE,MAAM,EAAE,OAAO,CAAA;CAChB,GAAG,KAAK,GACT;IACE,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ModuleBusyEventData } from './ModuleBusy';
|
|
2
|
+
import { ModuleErrorEventData } from './ModuleError';
|
|
3
|
+
import { ModuleQueriedEventData } from './ModuleQueried';
|
|
4
|
+
export interface ModuleEventData<TModule extends object = object> extends ModuleQueriedEventData<TModule>, ModuleBusyEventData<TModule>, ModuleErrorEventData<TModule> {
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=ModuleEventData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleEventData.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleEventData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AAExD,MAAM,WAAW,eAAe,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAC9D,SAAQ,sBAAsB,CAAC,OAAO,CAAC,EACrC,mBAAmB,CAAC,OAAO,CAAC,EAC5B,oBAAoB,CAAC,OAAO,CAAC;CAAG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QueryBoundWitness } from '@xyo-network/boundwitness-builder';
|
|
2
|
+
import { EventData } from '@xyo-network/module-events';
|
|
3
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
4
|
+
import { ModuleQueryResult } from '../ModuleQueryResult';
|
|
5
|
+
import { ModuleEventArgs } from './ModuleEventArgs';
|
|
6
|
+
export type ModuleQueriedEventArgs<TModule extends object = object> = ModuleEventArgs<TModule, {
|
|
7
|
+
payloads?: Payload[];
|
|
8
|
+
query: QueryBoundWitness;
|
|
9
|
+
result: ModuleQueryResult;
|
|
10
|
+
}>;
|
|
11
|
+
export interface ModuleQueriedEventData<TModule extends object = object> extends EventData {
|
|
12
|
+
moduleQueried: ModuleQueriedEventArgs<TModule>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=ModuleQueried.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleQueried.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/ModuleQueried.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,MAAM,MAAM,sBAAsB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,IAAI,eAAe,CACnF,OAAO,EACP;IACE,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,KAAK,EAAE,iBAAiB,CAAA;IACxB,MAAM,EAAE,iBAAiB,CAAA;CAC1B,CACF,CAAA;AAED,MAAM,WAAW,sBAAsB,CAAC,OAAO,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,SAAS;IACxF,aAAa,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/EventsModels/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/EventsModels/index.ts"],"sourcesContent":["export * from './ModuleBusy'\nexport * from './ModuleError'\nexport * from './ModuleEventArgs'\nexport * from './ModuleEventData'\nexport * from './ModuleQueried'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object used to represent labels identifying a resource.
|
|
3
|
+
*/
|
|
4
|
+
export interface Labels {
|
|
5
|
+
[key: string]: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Interface for objects that have labels.
|
|
9
|
+
*/
|
|
10
|
+
export interface WithLabels<T extends Labels = Labels> {
|
|
11
|
+
labels: T;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Interface for objects that have labels.
|
|
15
|
+
*/
|
|
16
|
+
export interface WithOptionalLabels<T extends Labels = Labels> {
|
|
17
|
+
labels?: T;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns true if the source object has all the labels from the required set
|
|
21
|
+
* @param source Source object to check against
|
|
22
|
+
* @param required Set of labels to check for in source
|
|
23
|
+
* @returns True of the source object has all the labels from the required set
|
|
24
|
+
*/
|
|
25
|
+
export declare const hasAllLabels: (source?: Labels, required?: Labels) => boolean;
|
|
26
|
+
//# sourceMappingURL=Labels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../../src/Labels/Labels.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IACnD,MAAM,EAAE,CAAC,CAAA;CACV;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC3D,MAAM,CAAC,EAAE,CAAC,CAAA;CACX;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,YAAa,MAAM,aAAa,MAAM,KAAG,OAMjE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Labels/Labels.ts"],"sourcesContent":["/**\n * Object used to represent labels identifying a resource.\n */\nexport interface Labels {\n [key: string]: string | undefined\n}\n\n/**\n * Interface for objects that have labels.\n */\nexport interface WithLabels<T extends Labels = Labels> {\n labels: T\n}\n\n/**\n * Interface for objects that have labels.\n */\nexport interface WithOptionalLabels<T extends Labels = Labels> {\n labels?: T\n}\n\n/**\n * Returns true if the source object has all the labels from the required set\n * @param source Source object to check against\n * @param required Set of labels to check for in source\n * @returns True of the source object has all the labels from the required set\n */\nexport const hasAllLabels = (source?: Labels, required?: Labels): boolean => {\n if (!required) return true\n return Object.entries(required).every(([key, value]) => {\n // eslint-disable-next-line no-prototype-builtins\n return source?.hasOwnProperty(key as keyof typeof source) && source?.[key as keyof typeof source] === value\n })\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Labels/Labels.ts"],"sourcesContent":["/**\n * Object used to represent labels identifying a resource.\n */\nexport interface Labels {\n [key: string]: string | undefined\n}\n\n/**\n * Interface for objects that have labels.\n */\nexport interface WithLabels<T extends Labels = Labels> {\n labels: T\n}\n\n/**\n * Interface for objects that have labels.\n */\nexport interface WithOptionalLabels<T extends Labels = Labels> {\n labels?: T\n}\n\n/**\n * Returns true if the source object has all the labels from the required set\n * @param source Source object to check against\n * @param required Set of labels to check for in source\n * @returns True of the source object has all the labels from the required set\n */\nexport const hasAllLabels = (source?: Labels, required?: Labels): boolean => {\n if (!required) return true\n return Object.entries(required).every(([key, value]) => {\n // eslint-disable-next-line no-prototype-builtins\n return source?.hasOwnProperty(key as keyof typeof source) && source?.[key as keyof typeof source] === value\n })\n}\n"],"mappings":"AA2BO,MAAM,eAAe,CAAC,QAAiB,aAA+B;AAC3E,MAAI,CAAC;AAAU,WAAO;AACtB,SAAO,OAAO,QAAQ,QAAQ,EAAE,MAAM,CAAC,CAAC,KAAK,KAAK,MAAM;AAEtD,WAAO,QAAQ,eAAe,GAA0B,KAAK,SAAS,GAA0B,MAAM;AAAA,EACxG,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Labels/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var hasAllLabels = (source, required) => {
|
|
3
|
-
if (!required)
|
|
4
|
-
return true;
|
|
5
|
-
return Object.entries(required).every(([key, value]) => {
|
|
6
|
-
return source?.hasOwnProperty(key) && source?.[key] === value;
|
|
7
|
-
});
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
hasAllLabels
|
|
11
|
-
};
|
|
1
|
+
export * from "./Labels";
|
|
12
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Labels/
|
|
1
|
+
{"version":3,"sources":["../../../src/Labels/index.ts"],"sourcesContent":["export * from './Labels'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleDescription.d.ts","sourceRoot":"","sources":["../../src/ModuleDescription.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
+
import { AnyObject, BaseParams, WithAdditional } from '@xyo-network/core';
|
|
3
|
+
import { WalletInstance } from '@xyo-network/wallet-model';
|
|
4
|
+
import { AnyConfigSchema, ModuleConfig } from './Config';
|
|
5
|
+
export type ModuleParams<TConfig extends AnyConfigSchema<ModuleConfig> | void = void, TAdditionalParams extends AnyObject | void = void> = WithAdditional<BaseParams<{
|
|
6
|
+
account?: AccountInstance | 'random';
|
|
7
|
+
config: TConfig extends AnyConfigSchema<ModuleConfig> ? TConfig : AnyConfigSchema<ModuleConfig>;
|
|
8
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
9
|
+
wallet?: WalletInstance;
|
|
10
|
+
}>, TAdditionalParams>;
|
|
11
|
+
//# sourceMappingURL=ModuleParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleParams.d.ts","sourceRoot":"","sources":["../../src/ModuleParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAExD,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,eAAe,CAAC,YAAY,CAAC,GAAG,IAAI,GAAG,IAAI,EAC3D,iBAAiB,SAAS,SAAS,GAAG,IAAI,GAAG,IAAI,IAC/C,cAAc,CAChB,UAAU,CAAC;IACT,OAAO,CAAC,EAAE,eAAe,GAAG,QAAQ,CAAA;IACpC,MAAM,EAAE,OAAO,SAAS,eAAe,CAAC,YAAY,CAAC,GAAG,OAAO,GAAG,eAAe,CAAC,YAAY,CAAC,CAAA;IAC/F,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB,CAAC,EACF,iBAAiB,CAClB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleQueryHandlerResult.d.ts","sourceRoot":"","sources":["../../src/ModuleQueryHandlerResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,MAAM,wBAAwB,GAAG,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleQueryResult.d.ts","sourceRoot":"","sources":["../../src/ModuleQueryResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { ModuleDescription } from '../../ModuleDescription';
|
|
3
|
+
export declare const ModuleDescriptionSchema = "network.xyo.module.description";
|
|
4
|
+
export type ModuleDescriptionSchema = typeof ModuleDescriptionSchema;
|
|
5
|
+
export type ModuleDescriptionPayload = Payload<ModuleDescription, ModuleDescriptionSchema>;
|
|
6
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Queries/Describe/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAE3D,eAAO,MAAM,uBAAuB,mCAAmC,CAAA;AACvE,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAA;AAEpE,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Queries/Describe/Payload.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\n\nimport { ModuleDescription } from '../../ModuleDescription'\n\nexport const ModuleDescriptionSchema = 'network.xyo.module.description'\nexport type ModuleDescriptionSchema = typeof ModuleDescriptionSchema\n\nexport type ModuleDescriptionPayload = Payload<ModuleDescription, ModuleDescriptionSchema>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/Queries/Describe/Payload.ts"],"sourcesContent":["import { Payload } from '@xyo-network/payload-model'\n\nimport { ModuleDescription } from '../../ModuleDescription'\n\nexport const ModuleDescriptionSchema = 'network.xyo.module.description'\nexport type ModuleDescriptionSchema = typeof ModuleDescriptionSchema\n\nexport type ModuleDescriptionPayload = Payload<ModuleDescription, ModuleDescriptionSchema>\n"],"mappings":"AAIO,MAAM,0BAA0B;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export type ModuleDescribeQuerySchema = 'network.xyo.query.module.describe';
|
|
3
|
+
export declare const ModuleDescribeQuerySchema: ModuleDescribeQuerySchema;
|
|
4
|
+
export type ModuleDescribeQuery = Query<{
|
|
5
|
+
schema: ModuleDescribeQuerySchema;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../src/Queries/Describe/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,yBAAyB,GAAG,mCAAmC,CAAA;AAC3E,eAAO,MAAM,yBAAyB,EAAE,yBAA+D,CAAA;AAEvG,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Queries/Describe/Query.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleDescribeQuerySchema = 'network.xyo.query.module.describe'\nexport const ModuleDescribeQuerySchema: ModuleDescribeQuerySchema = 'network.xyo.query.module.describe'\n\nexport type ModuleDescribeQuery = Query<{\n schema: ModuleDescribeQuerySchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/Queries/Describe/Query.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleDescribeQuerySchema = 'network.xyo.query.module.describe'\nexport const ModuleDescribeQuerySchema: ModuleDescribeQuerySchema = 'network.xyo.query.module.describe'\n\nexport type ModuleDescribeQuery = Query<{\n schema: ModuleDescribeQuerySchema\n}>\n"],"mappings":"AAGO,MAAM,4BAAuD;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Queries/Describe/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// src/Queries/Describe/Query.ts
|
|
5
|
-
var ModuleDescribeQuerySchema = "network.xyo.query.module.describe";
|
|
6
|
-
export {
|
|
7
|
-
ModuleDescribeQuerySchema,
|
|
8
|
-
ModuleDescriptionSchema
|
|
9
|
-
};
|
|
1
|
+
export * from "./Payload";
|
|
2
|
+
export * from "./Query";
|
|
10
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Queries/Describe/
|
|
1
|
+
{"version":3,"sources":["../../../../src/Queries/Describe/index.ts"],"sourcesContent":["export * from './Payload'\nexport * from './Query'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export type ModuleDiscoverQuerySchema = 'network.xyo.query.module.discover';
|
|
3
|
+
export declare const ModuleDiscoverQuerySchema: ModuleDiscoverQuerySchema;
|
|
4
|
+
export type ModuleDiscoverQuery = Query<{
|
|
5
|
+
schema: ModuleDiscoverQuerySchema;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Discover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Discover.d.ts","sourceRoot":"","sources":["../../../src/Queries/Discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,yBAAyB,GAAG,mCAAmC,CAAA;AAC3E,eAAO,MAAM,yBAAyB,EAAE,yBAA+D,CAAA;AAEvG,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Queries/Discover.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleDiscoverQuerySchema = 'network.xyo.query.module.discover'\nexport const ModuleDiscoverQuerySchema: ModuleDiscoverQuerySchema = 'network.xyo.query.module.discover'\n\nexport type ModuleDiscoverQuery = Query<{\n schema: ModuleDiscoverQuerySchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Queries/Discover.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleDiscoverQuerySchema = 'network.xyo.query.module.discover'\nexport const ModuleDiscoverQuerySchema: ModuleDiscoverQuerySchema = 'network.xyo.query.module.discover'\n\nexport type ModuleDiscoverQuery = Query<{\n schema: ModuleDiscoverQuerySchema\n}>\n"],"mappings":"AAGO,MAAM,4BAAuD;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export type ModuleManifestQuerySchema = 'network.xyo.query.module.manifest';
|
|
3
|
+
export declare const ModuleManifestQuerySchema: ModuleManifestQuerySchema;
|
|
4
|
+
export type ModuleManifestQuery = Query<{
|
|
5
|
+
schema: ModuleManifestQuerySchema;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Manifest.d.ts","sourceRoot":"","sources":["../../../src/Queries/Manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,yBAAyB,GAAG,mCAAmC,CAAA;AAC3E,eAAO,MAAM,yBAAyB,EAAE,yBAA+D,CAAA;AAEvG,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC;IACtC,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Queries/Manifest.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleManifestQuerySchema = 'network.xyo.query.module.manifest'\nexport const ModuleManifestQuerySchema: ModuleManifestQuerySchema = 'network.xyo.query.module.manifest'\n\nexport type ModuleManifestQuery = Query<{\n schema: ModuleManifestQuerySchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Queries/Manifest.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleManifestQuerySchema = 'network.xyo.query.module.manifest'\nexport const ModuleManifestQuerySchema: ModuleManifestQuerySchema = 'network.xyo.query.module.manifest'\n\nexport type ModuleManifestQuery = Query<{\n schema: ModuleManifestQuerySchema\n}>\n"],"mappings":"AAGO,MAAM,4BAAuD;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
export declare const AddressPreviousHashSchema: string;
|
|
3
|
+
export type AddressPreviousHashSchema = typeof AddressPreviousHashSchema;
|
|
4
|
+
export type AddressPreviousHashPayload = Payload<{
|
|
5
|
+
address: string;
|
|
6
|
+
previousHash?: string;
|
|
7
|
+
schema: AddressPreviousHashSchema;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../../src/Queries/ModuleAddress/Payload.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,yBAAyB,QAAmC,CAAA;AACzE,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAA;AAExE,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;IAC/C,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,yBAAyB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// src/Queries/ModuleAddress/Payload.ts
|
|
2
1
|
import { AddressSchema } from "@xyo-network/address-payload-plugin";
|
|
3
|
-
|
|
2
|
+
const AddressPreviousHashSchema = `${AddressSchema}.hash.previous`;
|
|
4
3
|
export {
|
|
5
4
|
AddressPreviousHashSchema
|
|
6
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Queries/ModuleAddress/Payload.ts"],"sourcesContent":["import { AddressSchema } from '@xyo-network/address-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const AddressPreviousHashSchema = `${AddressSchema}.hash.previous`\nexport type AddressPreviousHashSchema = typeof AddressPreviousHashSchema\n\nexport type AddressPreviousHashPayload = Payload<{\n address: string\n previousHash?: string\n schema: AddressPreviousHashSchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/Queries/ModuleAddress/Payload.ts"],"sourcesContent":["import { AddressSchema } from '@xyo-network/address-payload-plugin'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport const AddressPreviousHashSchema = `${AddressSchema}.hash.previous`\nexport type AddressPreviousHashSchema = typeof AddressPreviousHashSchema\n\nexport type AddressPreviousHashPayload = Payload<{\n address: string\n previousHash?: string\n schema: AddressPreviousHashSchema\n}>\n"],"mappings":"AAAA,SAAS,qBAAqB;AAGvB,MAAM,4BAA4B,GAAG,aAAa;","names":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export type ModuleAddressQuerySchema = 'network.xyo.query.module.address';
|
|
3
|
+
export declare const ModuleAddressQuerySchema: ModuleAddressQuerySchema;
|
|
4
|
+
export type ModuleAddressQuery = Query<{
|
|
5
|
+
schema: ModuleAddressQuerySchema;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../src/Queries/ModuleAddress/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,wBAAwB,GAAG,kCAAkC,CAAA;AACzE,eAAO,MAAM,wBAAwB,EAAE,wBAA6D,CAAA;AAEpG,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC;IACrC,MAAM,EAAE,wBAAwB,CAAA;CACjC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Queries/ModuleAddress/Query.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleAddressQuerySchema = 'network.xyo.query.module.address'\nexport const ModuleAddressQuerySchema: ModuleAddressQuerySchema = 'network.xyo.query.module.address'\n\nexport type ModuleAddressQuery = Query<{\n schema: ModuleAddressQuerySchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/Queries/ModuleAddress/Query.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleAddressQuerySchema = 'network.xyo.query.module.address'\nexport const ModuleAddressQuerySchema: ModuleAddressQuerySchema = 'network.xyo.query.module.address'\n\nexport type ModuleAddressQuery = Query<{\n schema: ModuleAddressQuerySchema\n}>\n"],"mappings":"AAGO,MAAM,2BAAqD;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Queries/ModuleAddress/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var AddressPreviousHashSchema = `${AddressSchema}.hash.previous`;
|
|
4
|
-
|
|
5
|
-
// src/Queries/ModuleAddress/Query.ts
|
|
6
|
-
var ModuleAddressQuerySchema = "network.xyo.query.module.address";
|
|
7
|
-
export {
|
|
8
|
-
AddressPreviousHashSchema,
|
|
9
|
-
ModuleAddressQuerySchema
|
|
10
|
-
};
|
|
1
|
+
export * from "./Payload";
|
|
2
|
+
export * from "./Query";
|
|
11
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/Queries/ModuleAddress/
|
|
1
|
+
{"version":3,"sources":["../../../../src/Queries/ModuleAddress/index.ts"],"sourcesContent":["export * from './Payload'\nexport * from './Query'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Query } from '@xyo-network/payload-model';
|
|
2
|
+
export type ModuleSubscribeQuerySchema = 'network.xyo.query.module.subscribe';
|
|
3
|
+
export declare const ModuleSubscribeQuerySchema: ModuleSubscribeQuerySchema;
|
|
4
|
+
export interface ModuleSubscribeFilter {
|
|
5
|
+
/** @field if specified, at least one of the schemas must be present in the boundwtness to generate a notification */
|
|
6
|
+
schema?: string[];
|
|
7
|
+
}
|
|
8
|
+
export type ModuleSubscribeQuery = Query<{
|
|
9
|
+
/** @field The address that will receive notifications */
|
|
10
|
+
address: string;
|
|
11
|
+
/** @field A subscribe with a null for filter is an unsubscribe */
|
|
12
|
+
filter?: ModuleSubscribeFilter | null;
|
|
13
|
+
/** @field The maximum events queued per send [may increase frequency] */
|
|
14
|
+
maxQueue?: number;
|
|
15
|
+
schema: ModuleSubscribeQuerySchema;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=Subscribe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscribe.d.ts","sourceRoot":"","sources":["../../../src/Queries/Subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,MAAM,MAAM,0BAA0B,GAAG,oCAAoC,CAAA;AAC7E,eAAO,MAAM,0BAA0B,EAAE,0BAAiE,CAAA;AAE1G,MAAM,WAAW,qBAAqB;IACpC,qHAAqH;IACrH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAGD,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC;IACvC,yDAAyD;IACzD,OAAO,EAAE,MAAM,CAAA;IACf,kEAAkE;IAClE,MAAM,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAA;IACrC,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,0BAA0B,CAAA;CACnC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/Queries/Subscribe.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleSubscribeQuerySchema = 'network.xyo.query.module.subscribe'\nexport const ModuleSubscribeQuerySchema: ModuleSubscribeQuerySchema = 'network.xyo.query.module.subscribe'\n\nexport interface ModuleSubscribeFilter {\n /** @field if specified, at least one of the schemas must be present in the boundwtness to generate a notification */\n schema?: string[]\n}\n\n//requests notification when a boundwitness is added to the modules chain that meets the filter criteria\nexport type ModuleSubscribeQuery = Query<{\n /** @field The address that will receive notifications */\n address: string\n /** @field A subscribe with a null for filter is an unsubscribe */\n filter?: ModuleSubscribeFilter | null\n /** @field The maximum events queued per send [may increase frequency] */\n maxQueue?: number\n schema: ModuleSubscribeQuerySchema\n}>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/Queries/Subscribe.ts"],"sourcesContent":["import { Query } from '@xyo-network/payload-model'\n\nexport type ModuleSubscribeQuerySchema = 'network.xyo.query.module.subscribe'\nexport const ModuleSubscribeQuerySchema: ModuleSubscribeQuerySchema = 'network.xyo.query.module.subscribe'\n\nexport interface ModuleSubscribeFilter {\n /** @field if specified, at least one of the schemas must be present in the boundwtness to generate a notification */\n schema?: string[]\n}\n\n//requests notification when a boundwitness is added to the modules chain that meets the filter criteria\nexport type ModuleSubscribeQuery = Query<{\n /** @field The address that will receive notifications */\n address: string\n /** @field A subscribe with a null for filter is an unsubscribe */\n filter?: ModuleSubscribeFilter | null\n /** @field The maximum events queued per send [may increase frequency] */\n maxQueue?: number\n schema: ModuleSubscribeQuerySchema\n}>\n"],"mappings":"AAGO,MAAM,6BAAyD;","names":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Query } from '@xyo-network/payload-model';
|
|
2
|
+
import { ModuleDescribeQuery } from './Describe';
|
|
3
|
+
import { ModuleDiscoverQuery } from './Discover';
|
|
4
|
+
import { ModuleManifestQuery } from './Manifest';
|
|
5
|
+
import { ModuleAddressQuery } from './ModuleAddress';
|
|
6
|
+
import { ModuleSubscribeQuery } from './Subscribe';
|
|
7
|
+
export * from './Describe';
|
|
8
|
+
export * from './Discover';
|
|
9
|
+
export * from './Manifest';
|
|
10
|
+
export * from './ModuleAddress';
|
|
11
|
+
export * from './Subscribe';
|
|
12
|
+
export type ModuleQueryBase = ModuleDiscoverQuery | ModuleAddressQuery | ModuleSubscribeQuery | ModuleDescribeQuery | ModuleManifestQuery;
|
|
13
|
+
export type ModuleQuery<T extends Query | void = void> = T extends Query ? ModuleQueryBase | T : ModuleQueryBase;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Queries/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAElD,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAE3B,MAAM,MAAM,eAAe,GAAG,mBAAmB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,mBAAmB,CAAA;AAEzI,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI,IAAI,CAAC,SAAS,KAAK,GAAG,eAAe,GAAG,CAAC,GAAG,eAAe,CAAA"}
|