-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error system updated and tests fixed
- Loading branch information
Showing
49 changed files
with
477 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ | |
"bbox", | ||
"bignumber", | ||
"boundwitness", | ||
"boundwitnesses", | ||
"bowser", | ||
"chlor", | ||
"codeql", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
packages/modules/packages/diviner/packages/model/src/Diviner.ts
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
packages/modules/packages/diviner/packages/model/src/DivinerQueryFunctions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { Payload } from '@xyo-network/payload-model' | ||
import { Promisable } from '@xyo-network/promise' | ||
|
||
export interface DivinerQueryFunctions { | ||
divine: (payloads?: Payload[]) => Promisable<Payload[]> | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/modules/packages/diviner/packages/model/src/EventData.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Module, ModuleEventData } from '@xyo-network/module-model' | ||
|
||
import { DivineEndEventData, DivineStartEventData } from './Events' | ||
|
||
export interface DivinerModuleEventData<T extends Module = Module> extends DivineEndEventData<T>, DivineStartEventData<T>, ModuleEventData<T> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/modules/packages/diviner/packages/model/src/Events/DivineStart.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { EventData } from '@xyo-network/module' | ||
import { Module, ModuleEventArgs } from '@xyo-network/module-model' | ||
import { Payload } from '@xyo-network/payload-model' | ||
|
||
export type DivineStartEventArgs<T extends Module = Module> = ModuleEventArgs< | ||
T, | ||
{ | ||
inPayloads?: Payload[] | ||
} | ||
> | ||
|
||
export interface DivineStartEventData<T extends Module = Module> extends EventData { | ||
divineStart: DivineStartEventArgs<T> | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/modules/packages/diviner/packages/model/src/Events/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './DivineEnd' | ||
export * from './DivineStart' |
16 changes: 16 additions & 0 deletions
16
packages/modules/packages/diviner/packages/model/src/Instance.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ModuleInstance } from '@xyo-network/module-model' | ||
|
||
import { DivinerQueryFunctions } from './DivinerQueryFunctions' | ||
import { DivinerModuleEventData } from './EventData' | ||
import { CustomDivinerModule, DivinerModule } from './Module' | ||
import { DivinerParams } from './Params' | ||
|
||
export type DivinerInstance<TParams extends DivinerParams = DivinerParams> = DivinerModule<TParams> & DivinerQueryFunctions & ModuleInstance | ||
|
||
export type CustomDivinerInstance< | ||
TParams extends DivinerParams = DivinerParams, | ||
TEvents extends DivinerModuleEventData<DivinerInstance<TParams>> = DivinerModuleEventData<DivinerInstance<TParams>>, | ||
> = CustomDivinerModule<TParams, TEvents> & DivinerQueryFunctions & ModuleInstance | ||
|
||
/** @deprecated use DivinerInstance instead */ | ||
export type Diviner = DivinerInstance |
11 changes: 11 additions & 0 deletions
11
packages/modules/packages/diviner/packages/model/src/Module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Module } from '@xyo-network/module-model' | ||
|
||
import { DivinerModuleEventData } from './EventData' | ||
import { DivinerParams } from './Params' | ||
|
||
export type DivinerModule<TParams extends DivinerParams = DivinerParams> = Module<TParams, DivinerModuleEventData<DivinerModule>> | ||
|
||
export type CustomDivinerModule< | ||
TParams extends DivinerParams = DivinerParams, | ||
TEvents extends DivinerModuleEventData<DivinerModule<TParams>> = DivinerModuleEventData<DivinerModule<TParams>>, | ||
> = Module<TParams, TEvents> |
9 changes: 9 additions & 0 deletions
9
packages/modules/packages/diviner/packages/model/src/Params.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { AnyObject } from '@xyo-network/core' | ||
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model' | ||
|
||
import { DivinerConfig } from './Config' | ||
|
||
export type DivinerParams< | ||
TConfig extends AnyConfigSchema<DivinerConfig> = AnyConfigSchema<DivinerConfig>, | ||
TAdditional extends AnyObject | undefined = undefined, | ||
> = ModuleParams<TConfig, TAdditional> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
export * from './Config' | ||
export * from './Diviner' | ||
export * from './DivinerQueryFunctions' | ||
export * from './EventData' | ||
export * from './Events' | ||
export * from './Instance' | ||
export * from './Module' | ||
export * from './Params' | ||
export * from './Queries' | ||
export * from './typeChecks' |
3 changes: 2 additions & 1 deletion
3
packages/modules/packages/diviner/packages/model/src/typeChecks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.