@xyo-network/diviner-abstract 4.1.2 → 4.1.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.d.ts +2 -28
- package/package.json +25 -25
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { AccountInstance } from '@xyo-network/account-model';
|
|
4
|
-
import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
|
|
5
|
-
import { DivinerParams, DivinerModuleEventData, DivinerInstance, AttachableDivinerInstance, DivinerDivineResult } from '@xyo-network/diviner-model';
|
|
6
|
-
import { AbstractModuleInstance } from '@xyo-network/module-abstract';
|
|
7
|
-
import { ModuleQueryResult, ModuleConfig, ModuleQueryHandlerResult } from '@xyo-network/module-model';
|
|
8
|
-
import { Payload, Schema } from '@xyo-network/payload-model';
|
|
9
|
-
|
|
10
|
-
declare abstract class AbstractDiviner<TParams extends DivinerParams = DivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends AbstractModuleInstance<TParams, TEventData> implements AttachableDivinerInstance<TParams, TIn, TOut, TEventData> {
|
|
11
|
-
static readonly configSchemas: Schema[];
|
|
12
|
-
static readonly defaultConfigSchema: Schema;
|
|
13
|
-
static readonly targetSchema: string;
|
|
14
|
-
static readonly uniqueName: string;
|
|
15
|
-
private _eventUnsubscribeFunctions;
|
|
16
|
-
get queries(): string[];
|
|
17
|
-
/** @function divine The main entry point for a diviner. Do not override this function. Implement/override divineHandler for custom functionality */
|
|
18
|
-
divine(payloads?: TIn[], retryConfigIn?: RetryConfigWithComplete): Promise<DivinerDivineResult<TOut>[]>;
|
|
19
|
-
divineQuery(payloads?: TIn[], account?: AccountInstance, _retry?: RetryConfig): Promise<ModuleQueryResult<TOut>>;
|
|
20
|
-
/** @function queryHandler Calls divine for a divine query. Override to support additional queries. */
|
|
21
|
-
protected queryHandler<T extends QueryBoundWitness = QueryBoundWitness, TConfig extends ModuleConfig = ModuleConfig>(query: T, payloads?: Payload[], queryConfig?: TConfig): Promise<ModuleQueryHandlerResult>;
|
|
22
|
-
protected startHandler(): Promise<void>;
|
|
23
|
-
protected stopHandler(): Promise<void>;
|
|
24
|
-
/** @function divineHandler Implement or override to add custom functionality to a diviner */
|
|
25
|
-
protected abstract divineHandler(payloads?: TIn[]): Promisable<TOut[]>;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { AbstractDiviner };
|
|
1
|
+
export * from './AbstractDiviner.ts';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-abstract",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,32 +29,32 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.13.
|
|
33
|
-
"@xylabs/base": "^4.13.
|
|
34
|
-
"@xylabs/delay": "^4.13.
|
|
35
|
-
"@xylabs/forget": "^4.13.
|
|
36
|
-
"@xylabs/promise": "^4.13.
|
|
37
|
-
"@xylabs/retry": "^4.13.
|
|
38
|
-
"@xylabs/telemetry": "^4.13.
|
|
39
|
-
"@xylabs/typeof": "^4.13.
|
|
40
|
-
"@xyo-network/account-model": "^4.1.
|
|
41
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
42
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
43
|
-
"@xyo-network/boundwitness-wrapper": "^4.1.
|
|
44
|
-
"@xyo-network/diviner-model": "^4.1.
|
|
45
|
-
"@xyo-network/module-abstract": "^4.1.
|
|
46
|
-
"@xyo-network/module-model": "^4.1.
|
|
47
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
48
|
-
"@xyo-network/payload-model": "^4.1.
|
|
49
|
-
"@xyo-network/witness-model": "^4.1.
|
|
32
|
+
"@xylabs/assert": "^4.13.16",
|
|
33
|
+
"@xylabs/base": "^4.13.16",
|
|
34
|
+
"@xylabs/delay": "^4.13.16",
|
|
35
|
+
"@xylabs/forget": "^4.13.16",
|
|
36
|
+
"@xylabs/promise": "^4.13.16",
|
|
37
|
+
"@xylabs/retry": "^4.13.16",
|
|
38
|
+
"@xylabs/telemetry": "^4.13.16",
|
|
39
|
+
"@xylabs/typeof": "^4.13.16",
|
|
40
|
+
"@xyo-network/account-model": "^4.1.3",
|
|
41
|
+
"@xyo-network/archivist-model": "^4.1.3",
|
|
42
|
+
"@xyo-network/boundwitness-model": "^4.1.3",
|
|
43
|
+
"@xyo-network/boundwitness-wrapper": "^4.1.3",
|
|
44
|
+
"@xyo-network/diviner-model": "^4.1.3",
|
|
45
|
+
"@xyo-network/module-abstract": "^4.1.3",
|
|
46
|
+
"@xyo-network/module-model": "^4.1.3",
|
|
47
|
+
"@xyo-network/payload-builder": "^4.1.3",
|
|
48
|
+
"@xyo-network/payload-model": "^4.1.3",
|
|
49
|
+
"@xyo-network/witness-model": "^4.1.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@xylabs/events": "^4.13.
|
|
53
|
-
"@xylabs/logger": "^4.13.
|
|
54
|
-
"@xylabs/object": "^4.13.
|
|
55
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
56
|
-
"@xylabs/tsconfig": "^7.0.0-rc.
|
|
57
|
-
"@xyo-network/module-events": "^4.1.
|
|
52
|
+
"@xylabs/events": "^4.13.16",
|
|
53
|
+
"@xylabs/logger": "^4.13.16",
|
|
54
|
+
"@xylabs/object": "^4.13.16",
|
|
55
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
56
|
+
"@xylabs/tsconfig": "^7.0.0-rc.27",
|
|
57
|
+
"@xyo-network/module-events": "^4.1.3",
|
|
58
58
|
"typescript": "^5.8.3"
|
|
59
59
|
},
|
|
60
60
|
"publishConfig": {
|