Preparing search index...
The search index is not available
@xyo-network/module
@xyo-network/module
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
Module
Base
Emitter
Composite
Module
Resolver
Events
Module
Config
Query
Validator
Module
Error
Builder
Module
Factory
Module
Wrapper
Query
Bound
Witness
Builder
Query
Bound
Witness
Validator
Query
Bound
Witness
Wrapper
Simple
Module
Resolver
Supported
Query
Validator
Address
Module
Filter
Creatable
Module
Creatable
Module
Dictionary
Event
Functions
Individual
Archivist
Config
Module
Description
Module
Event
Data
Module
Repository
Module
Resolved
Event
Args
Module
Resolver
Module
Subscribe
Filter
Name
Module
Filter
Query
Fields
Query
Module
Filter
Query
Validator
Resolver
Event
Emitter
Wrapper
Error
Account
Module
Params
Address
Previous
Hash
Payload
Address
Previous
Hash
Schema
Address
String
All
Module
Filter
Any
Config
Schema
Any
Module
Config
Any
Module
Filter
Archivist
Module
Config
Basic
Module
Params
Constructable
Module
Wrapper
Cosigning
Address
Set
Creatable
Module
Factory
Debug
Logger
Debug
Options
Event
Any
Listener
Event
Args
Event
Data
Event
Listener
Event
Listener
Info
Event
Name
Event
Unsubscribe
Function
Events
Params
Meta
Event
Data
Module
Module
Account
Query
Module
Account
Query
Schema
Module
Config
Module
Config
Base
Module
Config
Schema
Module
Discover
Query
Module
Discover
Query
Schema
Module
Error
Module
Error
Schema
Module
Event
Args
Module
Fields
Module
Filter
Module
Params
Module
Queried
Event
Args
Module
Query
Module
Query
Base
Module
Query
Result
Module
Subscribe
Query
Module
Subscribe
Query
Schema
Name
Or
Address
Optional
Config
Schema
Query
Query
Bound
Witness
Query
Bound
Witness
Schema
Queryable
Schema
String
Sorted
Piped
Addresses
String
Wallet
Module
Params
Address
Previous
Hash
Schema
Module
Account
Query
Schema
Module
Config
Schema
Module
Discover
Query
Schema
Module
Error
Schema
Module
Subscribe
Query
Schema
Query
Bound
Witness
Schema
constructable
Module
Wrapper
creatable
Module
duplicate
Modules
is
Query
Bound
Witness
is
Query
Supported
By
Module
mixin
Resolver
Event
Emitter
serializable
serializable
Field
Generated using
TypeDoc