Preparing search index...
The search index is not available
@xyo-network/module-abstract
@xyo-network/module-abstract
ModuleFactory
Class ModuleFactory<TModule>
Type Parameters
TModule
extends
Module
Hierarchy
ModuleFactory
Implements
CreatableModuleFactory
<
TModule
>
Index
Constructors
constructor
Properties
config
Schema
creatable
Module
default
Logger?
default
Params?
Methods
create
factory
with
Params
Constructors
constructor
new
Module
Factory
<
TModule
>
(
creatableModule
,
params
?
)
:
ModuleFactory
<
TModule
>
Type Parameters
TModule
extends
ModuleFields
<
ModuleParams
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
string
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
Omit
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
"network.xyo.module.config"
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
undefined
,
"schema"
>
,
"schema"
>
&
{
schema
:
string
;
}
,
"schema"
>
,
undefined
>
>
&
EventFunctions
<
ModuleEventData
,
TModule
>
Parameters
creatableModule
:
CreatableModule
<
TModule
>
Optional
params
:
TModule
[
"params"
]
Returns
ModuleFactory
<
TModule
>
Properties
config
Schema
config
Schema
:
string
creatable
Module
creatable
Module
:
CreatableModule
<
TModule
>
Optional
default
Logger
default
Logger
?:
Logger
Optional
default
Params
default
Params
?:
TModule
[
"params"
]
Methods
create
create
<
T
>
(
this
,
params
?
)
:
Promise
<
T
>
Type Parameters
T
extends
ModuleFields
<
ModuleParams
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
string
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
Omit
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
"network.xyo.module.config"
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
undefined
,
"schema"
>
,
"schema"
>
&
{
schema
:
string
;
}
,
"schema"
>
,
undefined
>
>
&
EventFunctions
<
ModuleEventData
,
T
>
Parameters
this
:
CreatableModuleFactory
<
T
>
Optional
params
:
TModule
[
"params"
]
Returns
Promise
<
T
>
factory
factory
<
T
>
(
this
,
_params
?
)
:
CreatableModuleFactory
<
T
>
Type Parameters
T
extends
ModuleFields
<
ModuleParams
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
string
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
Omit
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
"network.xyo.module.config"
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
undefined
,
"schema"
>
,
"schema"
>
&
{
schema
:
string
;
}
,
"schema"
>
,
undefined
>
>
&
EventFunctions
<
ModuleEventData
,
T
>
Parameters
this
:
CreatableModule
<
T
>
Optional
_params
:
T
[
"params"
]
Returns
CreatableModuleFactory
<
T
>
Static
with
Params
with
Params
<
T
>
(
creatableModule
,
params
?
)
:
ModuleFactory
<
T
>
Type Parameters
T
extends
ModuleFields
<
ModuleParams
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
string
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
Omit
<
SchemaFields
&
PayloadFields
&
{
archivist
?:
ArchivistModuleConfig
;
name
?:
string
;
paging
?:
Record
<
string
,
{
size
?:
number
;
}
>
;
schema
:
"network.xyo.module.config"
;
security
?:
{
allowAnonymous
?:
boolean
;
allowed
?:
Record
<
string
,
(
string
|
CosigningAddressSet
)
[]
>
;
disallowed
?:
Record
<
string
,
string
[]
>
;
}
;
storeQueries
?:
boolean
;
}
&
Omit
<
undefined
,
"schema"
>
,
"schema"
>
&
{
schema
:
string
;
}
,
"schema"
>
,
undefined
>
>
&
EventFunctions
<
ModuleEventData
,
T
>
Parameters
creatableModule
:
CreatableModule
<
T
>
Optional
params
:
T
[
"params"
]
Returns
ModuleFactory
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
config
Schema
creatable
Module
default
Logger
default
Params
create
factory
with
Params
@xyo-
network/module-
abstract
Abstract
Module
Base
Emitter
Composite
Module
Resolver
Module
Config
Query
Validator
Module
Error
Builder
Module
Factory
Query
Bound
Witness
Builder
Query
Bound
Witness
Validator
Query
Bound
Witness
Wrapper
Simple
Module
Resolver
Supported
Query
Validator
Creatable
Module
Dictionary
Module
Resolved
Event
Args
Query
Validator
Resolver
Event
Emitter
Module
Error
Module
Error
Schema
Queryable
Sorted
Piped
Addresses
String
Module
Error
Schema
duplicate
Modules
is
Query
Supported
By
Module
mixin
Resolver
Event
Emitter
serializable
serializable
Field
Generated using
TypeDoc