@xyo-network/diviner-temporal-indexing-memory 2.90.23 → 2.91.1
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/browser/IndexCandidateToIndexDiviner/Diviner.d.cts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.mts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.ts.map +1 -1
- package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.cts +18 -8
- package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.cts.map +1 -1
- package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.mts +18 -8
- package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.mts.map +1 -1
- package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.ts +18 -8
- package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.cts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.mts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.ts.map +1 -1
- package/dist/node/StateToIndexCandidateDiviner/Diviner.d.cts +18 -8
- package/dist/node/StateToIndexCandidateDiviner/Diviner.d.cts.map +1 -1
- package/dist/node/StateToIndexCandidateDiviner/Diviner.d.mts +18 -8
- package/dist/node/StateToIndexCandidateDiviner/Diviner.d.mts.map +1 -1
- package/dist/node/StateToIndexCandidateDiviner/Diviner.d.ts +18 -8
- package/dist/node/StateToIndexCandidateDiviner/Diviner.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +34 -33
- package/src/IndexCandidateToIndexDiviner/Diviner.ts +4 -3
- package/src/StateToIndexCandidateDiviner/Diviner.ts +6 -3
package/package.json
CHANGED
|
@@ -10,40 +10,41 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/array": "^
|
|
14
|
-
"@xylabs/assert": "^
|
|
15
|
-
"@xylabs/exists": "^
|
|
16
|
-
"@
|
|
17
|
-
"@xyo-network/archivist-
|
|
18
|
-
"@xyo-network/
|
|
19
|
-
"@xyo-network/
|
|
20
|
-
"@xyo-network/diviner-
|
|
21
|
-
"@xyo-network/diviner-boundwitness-
|
|
22
|
-
"@xyo-network/diviner-
|
|
23
|
-
"@xyo-network/diviner-indexing-
|
|
24
|
-
"@xyo-network/diviner-
|
|
25
|
-
"@xyo-network/diviner-jsonpath-
|
|
26
|
-
"@xyo-network/diviner-model": "~2.
|
|
27
|
-
"@xyo-network/diviner-
|
|
28
|
-
"@xyo-network/diviner-
|
|
29
|
-
"@xyo-network/diviner-
|
|
30
|
-
"@xyo-network/
|
|
31
|
-
"@xyo-network/
|
|
32
|
-
"@xyo-network/payload-
|
|
33
|
-
"@xyo-network/payload-
|
|
34
|
-
"@xyo-network/
|
|
13
|
+
"@xylabs/array": "^3.0.2",
|
|
14
|
+
"@xylabs/assert": "^3.0.2",
|
|
15
|
+
"@xylabs/exists": "^3.0.2",
|
|
16
|
+
"@xylabs/hex": "^3.0.2",
|
|
17
|
+
"@xyo-network/archivist-model": "~2.91.1",
|
|
18
|
+
"@xyo-network/archivist-wrapper": "~2.91.1",
|
|
19
|
+
"@xyo-network/boundwitness-model": "~2.91.1",
|
|
20
|
+
"@xyo-network/diviner-abstract": "~2.91.1",
|
|
21
|
+
"@xyo-network/diviner-boundwitness-abstract": "~2.91.1",
|
|
22
|
+
"@xyo-network/diviner-boundwitness-model": "~2.91.1",
|
|
23
|
+
"@xyo-network/diviner-indexing-memory": "~2.91.1",
|
|
24
|
+
"@xyo-network/diviner-indexing-model": "~2.91.1",
|
|
25
|
+
"@xyo-network/diviner-jsonpath-aggregate-memory": "~2.91.1",
|
|
26
|
+
"@xyo-network/diviner-jsonpath-model": "~2.91.1",
|
|
27
|
+
"@xyo-network/diviner-model": "~2.91.1",
|
|
28
|
+
"@xyo-network/diviner-payload-model": "~2.91.1",
|
|
29
|
+
"@xyo-network/diviner-temporal-indexing-model": "~2.91.1",
|
|
30
|
+
"@xyo-network/diviner-wrapper": "~2.91.1",
|
|
31
|
+
"@xyo-network/module-model": "~2.91.1",
|
|
32
|
+
"@xyo-network/payload-builder": "~2.91.1",
|
|
33
|
+
"@xyo-network/payload-model": "~2.91.1",
|
|
34
|
+
"@xyo-network/payload-utils": "^2.91.1",
|
|
35
|
+
"@xyo-network/witness-timestamp": "~2.91.1"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@xylabs/delay": "^
|
|
38
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
39
|
-
"@xylabs/tsconfig": "^3.
|
|
40
|
-
"@xyo-network/account": "~2.
|
|
41
|
-
"@xyo-network/archivist-memory": "~2.
|
|
42
|
-
"@xyo-network/boundwitness-builder": "~2.
|
|
43
|
-
"@xyo-network/diviner-boundwitness-memory": "~2.
|
|
44
|
-
"@xyo-network/diviner-payload-memory": "~2.
|
|
45
|
-
"@xyo-network/manifest": "~2.
|
|
46
|
-
"@xyo-network/node-memory": "~2.
|
|
38
|
+
"@xylabs/delay": "^3.0.2",
|
|
39
|
+
"@xylabs/ts-scripts-yarn3": "^3.4.1",
|
|
40
|
+
"@xylabs/tsconfig": "^3.4.1",
|
|
41
|
+
"@xyo-network/account": "~2.91.1",
|
|
42
|
+
"@xyo-network/archivist-memory": "~2.91.1",
|
|
43
|
+
"@xyo-network/boundwitness-builder": "~2.91.1",
|
|
44
|
+
"@xyo-network/diviner-boundwitness-memory": "~2.91.1",
|
|
45
|
+
"@xyo-network/diviner-payload-memory": "~2.91.1",
|
|
46
|
+
"@xyo-network/manifest": "~2.91.1",
|
|
47
|
+
"@xyo-network/node-memory": "~2.91.1",
|
|
47
48
|
"typescript": "^5.3.3"
|
|
48
49
|
},
|
|
49
50
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -85,6 +86,6 @@
|
|
|
85
86
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
86
87
|
},
|
|
87
88
|
"sideEffects": false,
|
|
88
|
-
"version": "2.
|
|
89
|
+
"version": "2.91.1",
|
|
89
90
|
"type": "module"
|
|
90
91
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { containsAll } from '@xylabs/array'
|
|
2
2
|
import { assertEx } from '@xylabs/assert'
|
|
3
3
|
import { exists } from '@xylabs/exists'
|
|
4
|
-
import {
|
|
4
|
+
import { Hash } from '@xylabs/hex'
|
|
5
|
+
import { BoundWitness, isBoundWitnessWithMeta } from '@xyo-network/boundwitness-model'
|
|
5
6
|
import { AbstractDiviner } from '@xyo-network/diviner-abstract'
|
|
6
7
|
import { jsonPathToTransformersDictionary } from '@xyo-network/diviner-jsonpath-aggregate-memory'
|
|
7
8
|
import { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model'
|
|
@@ -17,7 +18,7 @@ import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
|
17
18
|
import { isAnyPayload, Payload, PayloadFields } from '@xyo-network/payload-model'
|
|
18
19
|
import { intraBoundwitnessSchemaCombinations } from '@xyo-network/payload-utils'
|
|
19
20
|
|
|
20
|
-
type IndexableHashes = [
|
|
21
|
+
type IndexableHashes = [Hash, ...Hash[]]
|
|
21
22
|
|
|
22
23
|
const moduleName = 'TemporalIndexingDivinerIndexCandidateToIndexDiviner'
|
|
23
24
|
|
|
@@ -83,7 +84,7 @@ export class TemporalIndexingDivinerIndexCandidateToIndexDiviner<
|
|
|
83
84
|
const validIndexableTuples: IndexableHashes[] = []
|
|
84
85
|
|
|
85
86
|
// Iterate over each entry in bwDictionary
|
|
86
|
-
for (const [bwHash, bw] of Object.entries(bwDictionary)) {
|
|
87
|
+
for (const [bwHash, bw] of Object.entries(bwDictionary) as [Hash, BoundWitness][]) {
|
|
87
88
|
// Find the combinations of payloads that satisfy the required schemas
|
|
88
89
|
const combinations = intraBoundwitnessSchemaCombinations(bw, this.indexableSchemas)
|
|
89
90
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
TemporalIndexingDivinerStateToIndexCandidateDivinerParams,
|
|
14
14
|
} from '@xyo-network/diviner-temporal-indexing-model'
|
|
15
15
|
import { DivinerWrapper } from '@xyo-network/diviner-wrapper'
|
|
16
|
-
import { isModuleState, Labels, ModuleState, ModuleStateSchema } from '@xyo-network/module-model'
|
|
16
|
+
import { isModuleState, Labels, ModuleIdentifier, ModuleState, ModuleStateSchema } from '@xyo-network/module-model'
|
|
17
17
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
18
18
|
import { Payload } from '@xyo-network/payload-model'
|
|
19
19
|
import { intraBoundwitnessSchemaCombinations } from '@xyo-network/payload-utils'
|
|
@@ -103,7 +103,10 @@ export class TemporalIndexingDivinerStateToIndexCandidateDiviner<
|
|
|
103
103
|
*/
|
|
104
104
|
protected async getArchivistForStore(): Promise<ArchivistWrapper | undefined> {
|
|
105
105
|
// It should be defined, so we'll error if it's not
|
|
106
|
-
const name:
|
|
106
|
+
const name: ModuleIdentifier = assertEx(
|
|
107
|
+
this.config?.payloadStore?.archivist,
|
|
108
|
+
() => `${moduleName}: Config for payloadStore.archivist not specified`,
|
|
109
|
+
)
|
|
107
110
|
// It might not be resolvable (yet), so we'll return undefined if it's not
|
|
108
111
|
const mod = await this.resolve(name)
|
|
109
112
|
if (!mod) return undefined
|
|
@@ -117,7 +120,7 @@ export class TemporalIndexingDivinerStateToIndexCandidateDiviner<
|
|
|
117
120
|
*/
|
|
118
121
|
protected async getBoundWitnessDivinerForStore() {
|
|
119
122
|
// It should be defined, so we'll error if it's not
|
|
120
|
-
const name:
|
|
123
|
+
const name: ModuleIdentifier = assertEx(
|
|
121
124
|
this.config?.payloadStore?.boundWitnessDiviner,
|
|
122
125
|
() => `${moduleName}: Config for payloadStore.boundWitnessDiviner not specified`,
|
|
123
126
|
)
|