@xyo-network/sentinel-model 3.0.1 → 3.0.3
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/neutral/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/Automation.ts +2 -1
- package/src/Config.ts +5 -5
- package/src/EventData.ts +2 -2
- package/src/EventsModels/JobEnd.ts +4 -4
- package/src/EventsModels/JobStart.ts +3 -3
- package/src/EventsModels/ReportEnd.ts +4 -4
- package/src/EventsModels/ReportStart.ts +3 -3
- package/src/EventsModels/TaskEnd.ts +4 -4
- package/src/EventsModels/TaskStart.ts +4 -4
- package/src/Instance.ts +5 -5
- package/src/Job.ts +1 -1
- package/src/Module.ts +3 -3
- package/src/Params.ts +3 -3
- package/src/Queries/Report.ts +1 -1
- package/src/Queries/index.ts +2 -2
- package/src/ResolvedTask.ts +5 -5
- package/src/Sentinel.ts +4 -4
- package/src/Task.ts +1 -1
- package/src/typeChecks.ts +2 -2
- package/xy.config.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nexport type SentinelAutomationSchema = 'network.xyo.automation'\nexport const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'\n\nexport type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\nexport const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\n\nexport type SentinelEventAutomationSchema = 'network.xyo.automation.event'\nexport const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Event Automation */\nexport type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{\n schema: SentinelEventAutomationSchema\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema\n>\n","import type { WithAdditional } from '@xylabs/object'\nimport type { ModuleConfig } from '@xyo-network/module-model'\nimport type { Payload } from '@xyo-network/payload-model'\n\nimport type { SentinelAutomationPayload } from './Automation.ts'\nimport type { Task } from './Task.ts'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","import type { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport type { SentinelInstance } from './Instance.ts'\nimport type { SentinelModule } from './Module.ts'\nimport { SentinelReportQuerySchema } from './Queries/index.ts'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";AACA,SAASA,6BAA6B;AAG/B,IAAMC,2BAAqD;AAG3D,IAAMC,mCAAqE;AAG3E,IAAMC,gCAA+D;AA+BrE,IAAMC,+BAA+BJ,sBAAyDE,gCAAAA;;;AClC9F,IAAMG,uBAAuB;;;ACJ7B,IAAMC,4BAAuD;;;ACHpE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,IAAMC,qBAAqB,IAAIC,kBAAAA,EAAsCC,OAAO;EAAEC,QAAQ;AAAW,GAAG;EAACC;CAAiB;AACtH,IAAMC,mBAAmB,IAAIC,gBAAAA,EAAkCJ,OAAO;EAACK;CAA0B;AAEjG,IAAMC,mBAAmBC,gBAAgBP,OAAOG,gBAAAA;AAChD,IAAMK,qBAAqBD,gBAAgBP,OAAOF,kBAAAA;AAClD,IAAMW,qBAAqBC,YAAYV,OAAOG,gBAAAA;AAC9C,IAAMQ,uBAAuBD,YAAYV,OAAOF,kBAAAA;","names":["isPayloadOfSchemaType","SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","SentinelConfigSchema","SentinelReportQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}
|
package/package.json
CHANGED
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
},
|
|
8
8
|
"bugs": {
|
|
9
9
|
"email": "support@xyo.network",
|
|
10
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
10
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/hex": "^4.0.
|
|
14
|
-
"@xylabs/object": "^4.0.
|
|
15
|
-
"@xylabs/promise": "^4.0.
|
|
16
|
-
"@xyo-network/account-model": "^3.0.
|
|
17
|
-
"@xyo-network/archivist-model": "^3.0.
|
|
18
|
-
"@xyo-network/boundwitness-model": "^3.0.
|
|
19
|
-
"@xyo-network/diviner-model": "^3.0.
|
|
20
|
-
"@xyo-network/module-events": "^3.0.
|
|
21
|
-
"@xyo-network/module-model": "^3.0.
|
|
22
|
-
"@xyo-network/payload-model": "^3.0.
|
|
23
|
-
"@xyo-network/witness-model": "^3.0.
|
|
13
|
+
"@xylabs/hex": "^4.0.2",
|
|
14
|
+
"@xylabs/object": "^4.0.2",
|
|
15
|
+
"@xylabs/promise": "^4.0.2",
|
|
16
|
+
"@xyo-network/account-model": "^3.0.3",
|
|
17
|
+
"@xyo-network/archivist-model": "^3.0.3",
|
|
18
|
+
"@xyo-network/boundwitness-model": "^3.0.3",
|
|
19
|
+
"@xyo-network/diviner-model": "^3.0.3",
|
|
20
|
+
"@xyo-network/module-events": "^3.0.3",
|
|
21
|
+
"@xyo-network/module-model": "^3.0.3",
|
|
22
|
+
"@xyo-network/payload-model": "^3.0.3",
|
|
23
|
+
"@xyo-network/witness-model": "^3.0.3"
|
|
24
24
|
},
|
|
25
25
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.
|
|
28
|
-
"@xylabs/tsconfig": "^4.0.0-rc.
|
|
27
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
|
|
28
|
+
"@xylabs/tsconfig": "^4.0.0-rc.20",
|
|
29
29
|
"typescript": "^5.5.4"
|
|
30
30
|
},
|
|
31
31
|
"types": "dist/neutral/index.d.ts",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"repository": {
|
|
46
46
|
"type": "git",
|
|
47
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
47
|
+
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
48
48
|
},
|
|
49
49
|
"sideEffects": false,
|
|
50
|
-
"version": "3.0.
|
|
50
|
+
"version": "3.0.3",
|
|
51
51
|
"type": "module"
|
|
52
52
|
}
|
package/src/Automation.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
2
|
+
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
2
3
|
|
|
3
4
|
export type SentinelAutomationSchema = 'network.xyo.automation'
|
|
4
5
|
export const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'
|
package/src/Config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { WithAdditional } from '@xylabs/object'
|
|
2
|
-
import { ModuleConfig } from '@xyo-network/module-model'
|
|
3
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { WithAdditional } from '@xylabs/object'
|
|
2
|
+
import type { ModuleConfig } from '@xyo-network/module-model'
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
|
-
import { SentinelAutomationPayload } from './Automation.ts'
|
|
6
|
-
import { Task } from './Task.ts'
|
|
5
|
+
import type { SentinelAutomationPayload } from './Automation.ts'
|
|
6
|
+
import type { Task } from './Task.ts'
|
|
7
7
|
|
|
8
8
|
export const SentinelConfigSchema = 'network.xyo.sentinel.config' as const
|
|
9
9
|
export type SentinelConfigSchema = typeof SentinelConfigSchema
|
package/src/EventData.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Address } from '@xylabs/hex'
|
|
2
|
-
import { EventData } from '@xyo-network/module-events'
|
|
3
|
-
import { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { EventData } from '@xyo-network/module-events'
|
|
3
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
export type JobEndEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
7
7
|
T,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventData } from '@xyo-network/module-events'
|
|
2
|
-
import { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
3
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { EventData } from '@xyo-network/module-events'
|
|
2
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
5
|
export type JobStartEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
6
6
|
T,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
-
import { EventData } from '@xyo-network/module-events'
|
|
3
|
-
import { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { BoundWitness } from '@xyo-network/boundwitness-model'
|
|
2
|
+
import type { EventData } from '@xyo-network/module-events'
|
|
3
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
export type ReportEndEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
7
7
|
T,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventData } from '@xyo-network/module-events'
|
|
2
|
-
import { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
3
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { EventData } from '@xyo-network/module-events'
|
|
2
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
5
|
export type ReportStartEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
6
6
|
T,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Address } from '@xylabs/hex'
|
|
2
|
-
import { EventData } from '@xyo-network/module-events'
|
|
3
|
-
import { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { EventData } from '@xyo-network/module-events'
|
|
3
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
export type TaskEndEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
7
7
|
T,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Address } from '@xylabs/hex'
|
|
2
|
-
import { EventData } from '@xyo-network/module-events'
|
|
3
|
-
import { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Address } from '@xylabs/hex'
|
|
2
|
+
import type { EventData } from '@xyo-network/module-events'
|
|
3
|
+
import type { Module, ModuleEventArgs } from '@xyo-network/module-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
export type TaskStartEventArgs<T extends Module = Module> = ModuleEventArgs<
|
|
7
7
|
T,
|
package/src/Instance.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ModuleInstance } from '@xyo-network/module-model'
|
|
1
|
+
import type { ModuleInstance } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { SentinelModuleEventData } from './EventData.ts'
|
|
4
|
-
import { CustomSentinelModule, SentinelModule } from './Module.ts'
|
|
5
|
-
import { SentinelParams } from './Params.ts'
|
|
6
|
-
import { Sentinel } from './Sentinel.ts'
|
|
3
|
+
import type { SentinelModuleEventData } from './EventData.ts'
|
|
4
|
+
import type { CustomSentinelModule, SentinelModule } from './Module.ts'
|
|
5
|
+
import type { SentinelParams } from './Params.ts'
|
|
6
|
+
import type { Sentinel } from './Sentinel.ts'
|
|
7
7
|
|
|
8
8
|
export interface SentinelInstance<
|
|
9
9
|
TParams extends SentinelParams = SentinelParams,
|
package/src/Job.ts
CHANGED
package/src/Module.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Module } from '@xyo-network/module-model'
|
|
1
|
+
import type { Module } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
|
-
import { SentinelModuleEventData } from './EventData.ts'
|
|
4
|
-
import { SentinelParams } from './Params.ts'
|
|
3
|
+
import type { SentinelModuleEventData } from './EventData.ts'
|
|
4
|
+
import type { SentinelParams } from './Params.ts'
|
|
5
5
|
|
|
6
6
|
export interface SentinelModule<TParams extends SentinelParams = SentinelParams, TEventData extends SentinelModuleEventData = SentinelModuleEventData>
|
|
7
7
|
extends Module<TParams, TEventData> {}
|
package/src/Params.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EmptyObject } from '@xylabs/object'
|
|
2
|
-
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
|
|
1
|
+
import type { EmptyObject } from '@xylabs/object'
|
|
2
|
+
import type { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { SentinelConfig } from './Config.ts'
|
|
4
|
+
import type { SentinelConfig } from './Config.ts'
|
|
5
5
|
|
|
6
6
|
export type SentinelParams<
|
|
7
7
|
TConfig extends AnyConfigSchema<SentinelConfig> = AnyConfigSchema<SentinelConfig>,
|
package/src/Queries/Report.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Query } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Query } from '@xyo-network/payload-model'
|
|
2
2
|
|
|
3
3
|
export type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'
|
|
4
4
|
export const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'
|
package/src/Queries/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './Report.ts'
|
|
2
2
|
|
|
3
|
-
import { ModuleQueries } from '@xyo-network/module-model'
|
|
3
|
+
import type { ModuleQueries } from '@xyo-network/module-model'
|
|
4
4
|
|
|
5
|
-
import { SentinelReportQuery } from './Report.ts'
|
|
5
|
+
import type { SentinelReportQuery } from './Report.ts'
|
|
6
6
|
|
|
7
7
|
export type SentinelQueries = SentinelReportQuery
|
|
8
8
|
export type SentinelModuleQueries = ModuleQueries | SentinelQueries
|
package/src/ResolvedTask.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
|
-
import { DivinerInstance } from '@xyo-network/diviner-model'
|
|
3
|
-
import { ModuleInstance } from '@xyo-network/module-model'
|
|
4
|
-
import { WitnessInstance } from '@xyo-network/witness-model'
|
|
1
|
+
import type { ArchivistInstance } from '@xyo-network/archivist-model'
|
|
2
|
+
import type { DivinerInstance } from '@xyo-network/diviner-model'
|
|
3
|
+
import type { ModuleInstance } from '@xyo-network/module-model'
|
|
4
|
+
import type { WitnessInstance } from '@xyo-network/witness-model'
|
|
5
5
|
|
|
6
|
-
import { ArchivistTask, DivinerTask, ModuleTask, WitnessTask } from './Task.ts'
|
|
6
|
+
import type { ArchivistTask, DivinerTask, ModuleTask, WitnessTask } from './Task.ts'
|
|
7
7
|
|
|
8
8
|
export type ResolvedModuleTask<TTask extends ModuleTask = ModuleTask, TInstance extends ModuleInstance = ModuleInstance> = Omit<TTask, 'mod'> & {
|
|
9
9
|
/** @field the modules that performs the task */
|
package/src/Sentinel.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Promisable } from '@xylabs/promise'
|
|
2
|
-
import { AccountInstance } from '@xyo-network/account-model'
|
|
3
|
-
import { ModuleQueryResult } from '@xyo-network/module-model'
|
|
4
|
-
import { Payload } from '@xyo-network/payload-model'
|
|
1
|
+
import type { Promisable } from '@xylabs/promise'
|
|
2
|
+
import type { AccountInstance } from '@xyo-network/account-model'
|
|
3
|
+
import type { ModuleQueryResult } from '@xyo-network/module-model'
|
|
4
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
5
5
|
|
|
6
6
|
export interface Sentinel<TIn extends Payload = Payload, TOut extends Payload = Payload> {
|
|
7
7
|
report: (payloads?: TIn[]) => Promisable<TOut[]>
|
package/src/Task.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModuleIdentifier } from '@xyo-network/module-model'
|
|
1
|
+
import type { ModuleIdentifier } from '@xyo-network/module-model'
|
|
2
2
|
|
|
3
3
|
export interface ModuleTask<TEndpoints extends string = string> {
|
|
4
4
|
/** @field the name of the endPoint that is being called. If not specified, the default endPoint is used */
|
package/src/typeChecks.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AsObjectFactory } from '@xylabs/object'
|
|
2
2
|
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
|
|
3
3
|
|
|
4
|
-
import { SentinelInstance } from './Instance.ts'
|
|
5
|
-
import { SentinelModule } from './Module.ts'
|
|
4
|
+
import type { SentinelInstance } from './Instance.ts'
|
|
5
|
+
import type { SentinelModule } from './Module.ts'
|
|
6
6
|
import { SentinelReportQuerySchema } from './Queries/index.ts'
|
|
7
7
|
|
|
8
8
|
export const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])
|
package/xy.config.ts
CHANGED