@xyo-network/diviner-temporal-indexing-model 2.80.0-rc.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/LICENSE +165 -0
- package/README.md +13 -0
- package/dist/browser/Config.d.cts +27 -0
- package/dist/browser/Config.d.cts.map +1 -0
- package/dist/browser/Config.d.mts +27 -0
- package/dist/browser/Config.d.mts.map +1 -0
- package/dist/browser/Config.d.ts +27 -0
- package/dist/browser/Config.d.ts.map +1 -0
- package/dist/browser/Params.d.cts +6 -0
- package/dist/browser/Params.d.cts.map +1 -0
- package/dist/browser/Params.d.mts +6 -0
- package/dist/browser/Params.d.mts.map +1 -0
- package/dist/browser/Params.d.ts +6 -0
- package/dist/browser/Params.d.ts.map +1 -0
- package/dist/browser/Result/Payload.d.cts +15 -0
- package/dist/browser/Result/Payload.d.cts.map +1 -0
- package/dist/browser/Result/Payload.d.mts +15 -0
- package/dist/browser/Result/Payload.d.mts.map +1 -0
- package/dist/browser/Result/Payload.d.ts +15 -0
- package/dist/browser/Result/Payload.d.ts.map +1 -0
- package/dist/browser/Result/Schema.d.cts +3 -0
- package/dist/browser/Result/Schema.d.cts.map +1 -0
- package/dist/browser/Result/Schema.d.mts +3 -0
- package/dist/browser/Result/Schema.d.mts.map +1 -0
- package/dist/browser/Result/Schema.d.ts +3 -0
- package/dist/browser/Result/Schema.d.ts.map +1 -0
- package/dist/browser/Result/index.d.cts +3 -0
- package/dist/browser/Result/index.d.cts.map +1 -0
- package/dist/browser/Result/index.d.mts +3 -0
- package/dist/browser/Result/index.d.mts.map +1 -0
- package/dist/browser/Result/index.d.ts +3 -0
- package/dist/browser/Result/index.d.ts.map +1 -0
- package/dist/browser/ResultIndex/Payload.d.cts +15 -0
- package/dist/browser/ResultIndex/Payload.d.cts.map +1 -0
- package/dist/browser/ResultIndex/Payload.d.mts +15 -0
- package/dist/browser/ResultIndex/Payload.d.mts.map +1 -0
- package/dist/browser/ResultIndex/Payload.d.ts +15 -0
- package/dist/browser/ResultIndex/Payload.d.ts.map +1 -0
- package/dist/browser/ResultIndex/Schema.d.cts +3 -0
- package/dist/browser/ResultIndex/Schema.d.cts.map +1 -0
- package/dist/browser/ResultIndex/Schema.d.mts +3 -0
- package/dist/browser/ResultIndex/Schema.d.mts.map +1 -0
- package/dist/browser/ResultIndex/Schema.d.ts +3 -0
- package/dist/browser/ResultIndex/Schema.d.ts.map +1 -0
- package/dist/browser/ResultIndex/index.d.cts +3 -0
- package/dist/browser/ResultIndex/index.d.cts.map +1 -0
- package/dist/browser/ResultIndex/index.d.mts +3 -0
- package/dist/browser/ResultIndex/index.d.mts.map +1 -0
- package/dist/browser/ResultIndex/index.d.ts +3 -0
- package/dist/browser/ResultIndex/index.d.ts.map +1 -0
- package/dist/browser/Schema.d.cts +3 -0
- package/dist/browser/Schema.d.cts.map +1 -0
- package/dist/browser/Schema.d.mts +3 -0
- package/dist/browser/Schema.d.mts.map +1 -0
- package/dist/browser/Schema.d.ts +3 -0
- package/dist/browser/Schema.d.ts.map +1 -0
- package/dist/browser/index.cjs +58 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +6 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/browser/index.d.mts +6 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts +6 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +35 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/Config.d.cts +27 -0
- package/dist/node/Config.d.cts.map +1 -0
- package/dist/node/Config.d.mts +27 -0
- package/dist/node/Config.d.mts.map +1 -0
- package/dist/node/Config.d.ts +27 -0
- package/dist/node/Config.d.ts.map +1 -0
- package/dist/node/Params.d.cts +6 -0
- package/dist/node/Params.d.cts.map +1 -0
- package/dist/node/Params.d.mts +6 -0
- package/dist/node/Params.d.mts.map +1 -0
- package/dist/node/Params.d.ts +6 -0
- package/dist/node/Params.d.ts.map +1 -0
- package/dist/node/Result/Payload.d.cts +15 -0
- package/dist/node/Result/Payload.d.cts.map +1 -0
- package/dist/node/Result/Payload.d.mts +15 -0
- package/dist/node/Result/Payload.d.mts.map +1 -0
- package/dist/node/Result/Payload.d.ts +15 -0
- package/dist/node/Result/Payload.d.ts.map +1 -0
- package/dist/node/Result/Schema.d.cts +3 -0
- package/dist/node/Result/Schema.d.cts.map +1 -0
- package/dist/node/Result/Schema.d.mts +3 -0
- package/dist/node/Result/Schema.d.mts.map +1 -0
- package/dist/node/Result/Schema.d.ts +3 -0
- package/dist/node/Result/Schema.d.ts.map +1 -0
- package/dist/node/Result/index.d.cts +3 -0
- package/dist/node/Result/index.d.cts.map +1 -0
- package/dist/node/Result/index.d.mts +3 -0
- package/dist/node/Result/index.d.mts.map +1 -0
- package/dist/node/Result/index.d.ts +3 -0
- package/dist/node/Result/index.d.ts.map +1 -0
- package/dist/node/ResultIndex/Payload.d.cts +15 -0
- package/dist/node/ResultIndex/Payload.d.cts.map +1 -0
- package/dist/node/ResultIndex/Payload.d.mts +15 -0
- package/dist/node/ResultIndex/Payload.d.mts.map +1 -0
- package/dist/node/ResultIndex/Payload.d.ts +15 -0
- package/dist/node/ResultIndex/Payload.d.ts.map +1 -0
- package/dist/node/ResultIndex/Schema.d.cts +3 -0
- package/dist/node/ResultIndex/Schema.d.cts.map +1 -0
- package/dist/node/ResultIndex/Schema.d.mts +3 -0
- package/dist/node/ResultIndex/Schema.d.mts.map +1 -0
- package/dist/node/ResultIndex/Schema.d.ts +3 -0
- package/dist/node/ResultIndex/Schema.d.ts.map +1 -0
- package/dist/node/ResultIndex/index.d.cts +3 -0
- package/dist/node/ResultIndex/index.d.cts.map +1 -0
- package/dist/node/ResultIndex/index.d.mts +3 -0
- package/dist/node/ResultIndex/index.d.mts.map +1 -0
- package/dist/node/ResultIndex/index.d.ts +3 -0
- package/dist/node/ResultIndex/index.d.ts.map +1 -0
- package/dist/node/Schema.d.cts +3 -0
- package/dist/node/Schema.d.cts.map +1 -0
- package/dist/node/Schema.d.mts +3 -0
- package/dist/node/Schema.d.mts.map +1 -0
- package/dist/node/Schema.d.ts +3 -0
- package/dist/node/Schema.d.ts.map +1 -0
- package/dist/node/index.d.cts +6 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.d.mts +6 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +6 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +67 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +35 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +65 -0
- package/src/Config.ts +31 -0
- package/src/Params.ts +8 -0
- package/src/Result/Payload.ts +12 -0
- package/src/Result/Schema.ts +4 -0
- package/src/Result/index.ts +2 -0
- package/src/ResultIndex/Payload.ts +14 -0
- package/src/ResultIndex/Schema.ts +4 -0
- package/src/ResultIndex/index.ts +2 -0
- package/src/Schema.ts +4 -0
- package/src/index.ts +5 -0
- package/typedoc.json +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts"],"sourcesContent":["export * from './Config'\nexport * from './Params'\nexport * from './Result'\nexport * from './ResultIndex'\nexport * from './Schema'\n","import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import { SearchableStorage } from '@xyo-network/diviner-indexing-model'\nimport { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerSchema } from './Schema'\n\nexport const TemporalIndexingDivinerConfigSchema = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n// TODO: Extend indexing diviner config and just remove fields that are not needed?\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for the Diviner config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: string[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n","import { TemporalIndexingDivinerSchema } from '../Schema'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: string[]\n timestamp: string\n },\n TemporalIndexingDivinerResultIndexSchema\n>\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oCAAsC;AAE/B,IAAM,gCAAgC,GAAG,mDAAqB;;;ACG9D,IAAM,sCAAsC,GAAG,6BAA6B;;;ACLnF,2BAA+C;;;ACExC,IAAM,sCAAsC,GAAG,6BAA6B;;;ADS5E,IAAM,sCAAkC,4CAAqD,mCAAmC;;;AEXvI,IAAAA,wBAA+C;;;ACExC,IAAM,2CAA2C,GAAG,mCAAmC;;;ADSvF,IAAM,2CAAuC;AAAA,EAClD;AACF;","names":["import_payload_model"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/Schema.ts
|
|
2
|
+
import { IndexingDivinerSchema } from "@xyo-network/diviner-indexing-model";
|
|
3
|
+
var TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal`;
|
|
4
|
+
|
|
5
|
+
// src/Config.ts
|
|
6
|
+
var TemporalIndexingDivinerConfigSchema = `${TemporalIndexingDivinerSchema}.config`;
|
|
7
|
+
|
|
8
|
+
// src/Result/Payload.ts
|
|
9
|
+
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
10
|
+
|
|
11
|
+
// src/Result/Schema.ts
|
|
12
|
+
var TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result`;
|
|
13
|
+
|
|
14
|
+
// src/Result/Payload.ts
|
|
15
|
+
var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
|
|
16
|
+
|
|
17
|
+
// src/ResultIndex/Payload.ts
|
|
18
|
+
import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
|
|
19
|
+
|
|
20
|
+
// src/ResultIndex/Schema.ts
|
|
21
|
+
var TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index`;
|
|
22
|
+
|
|
23
|
+
// src/ResultIndex/Payload.ts
|
|
24
|
+
var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
25
|
+
TemporalIndexingDivinerResultIndexSchema
|
|
26
|
+
);
|
|
27
|
+
export {
|
|
28
|
+
TemporalIndexingDivinerConfigSchema,
|
|
29
|
+
TemporalIndexingDivinerResultIndexSchema,
|
|
30
|
+
TemporalIndexingDivinerResultSchema,
|
|
31
|
+
TemporalIndexingDivinerSchema,
|
|
32
|
+
isTemporalIndexingDivinerResult,
|
|
33
|
+
isTemporalIndexingDivinerResultIndex
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import { SearchableStorage } from '@xyo-network/diviner-indexing-model'\nimport { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerSchema } from './Schema'\n\nexport const TemporalIndexingDivinerConfigSchema = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n// TODO: Extend indexing diviner config and just remove fields that are not needed?\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for the Diviner config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: string[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n","import { TemporalIndexingDivinerSchema } from '../Schema'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: string[]\n timestamp: string\n },\n TemporalIndexingDivinerResultIndexSchema\n>\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n"],"mappings":";AAAA,SAAS,6BAA6B;AAE/B,IAAM,gCAAgC,GAAG,qBAAqB;;;ACG9D,IAAM,sCAAsC,GAAG,6BAA6B;;;ACLnF,SAAS,6BAAsC;;;ACExC,IAAM,sCAAsC,GAAG,6BAA6B;;;ADS5E,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEXvI,SAAS,yBAAAA,8BAAsC;;;ACExC,IAAM,2CAA2C,GAAG,mCAAmC;;;ADSvF,IAAM,uCAAuCC;AAAA,EAClD;AACF;","names":["isPayloadOfSchemaType","isPayloadOfSchemaType"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SearchableStorage } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
export declare const TemporalIndexingDivinerConfigSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
4
|
+
export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema;
|
|
5
|
+
export type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
6
|
+
/**
|
|
7
|
+
* Where the diviner should store it's index
|
|
8
|
+
*/
|
|
9
|
+
indexStore?: SearchableStorage;
|
|
10
|
+
/**
|
|
11
|
+
* The maximum number of payloads to index at a time
|
|
12
|
+
*/
|
|
13
|
+
payloadDivinerLimit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* How often to poll for new payloads to index
|
|
16
|
+
*/
|
|
17
|
+
pollFrequency?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The schema for the Diviner config
|
|
20
|
+
*/
|
|
21
|
+
schema: TemporalIndexingDivinerConfigSchema;
|
|
22
|
+
/**
|
|
23
|
+
* Where the diviner should persist its internal state
|
|
24
|
+
*/
|
|
25
|
+
stateStore?: SearchableStorage;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAI1D,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAG5F,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAA;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SearchableStorage } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
export declare const TemporalIndexingDivinerConfigSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
4
|
+
export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema;
|
|
5
|
+
export type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
6
|
+
/**
|
|
7
|
+
* Where the diviner should store it's index
|
|
8
|
+
*/
|
|
9
|
+
indexStore?: SearchableStorage;
|
|
10
|
+
/**
|
|
11
|
+
* The maximum number of payloads to index at a time
|
|
12
|
+
*/
|
|
13
|
+
payloadDivinerLimit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* How often to poll for new payloads to index
|
|
16
|
+
*/
|
|
17
|
+
pollFrequency?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The schema for the Diviner config
|
|
20
|
+
*/
|
|
21
|
+
schema: TemporalIndexingDivinerConfigSchema;
|
|
22
|
+
/**
|
|
23
|
+
* Where the diviner should persist its internal state
|
|
24
|
+
*/
|
|
25
|
+
stateStore?: SearchableStorage;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAI1D,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAG5F,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAA;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SearchableStorage } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
export declare const TemporalIndexingDivinerConfigSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
4
|
+
export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema;
|
|
5
|
+
export type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
6
|
+
/**
|
|
7
|
+
* Where the diviner should store it's index
|
|
8
|
+
*/
|
|
9
|
+
indexStore?: SearchableStorage;
|
|
10
|
+
/**
|
|
11
|
+
* The maximum number of payloads to index at a time
|
|
12
|
+
*/
|
|
13
|
+
payloadDivinerLimit?: number;
|
|
14
|
+
/**
|
|
15
|
+
* How often to poll for new payloads to index
|
|
16
|
+
*/
|
|
17
|
+
pollFrequency?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The schema for the Diviner config
|
|
20
|
+
*/
|
|
21
|
+
schema: TemporalIndexingDivinerConfigSchema;
|
|
22
|
+
/**
|
|
23
|
+
* Where the diviner should persist its internal state
|
|
24
|
+
*/
|
|
25
|
+
stateStore?: SearchableStorage;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAI1D,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAG5F,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAA;IAC3C;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IndexingDivinerParams } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
+
import { TemporalIndexingDivinerConfig } from './Config';
|
|
5
|
+
export type TemporalIndexingDivinerParams = IndexingDivinerParams & DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>;
|
|
6
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAGxD,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IndexingDivinerParams } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
+
import { TemporalIndexingDivinerConfig } from './Config';
|
|
5
|
+
export type TemporalIndexingDivinerParams = IndexingDivinerParams & DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>;
|
|
6
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAGxD,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IndexingDivinerParams } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { DivinerParams } from '@xyo-network/diviner-model';
|
|
3
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
4
|
+
import { TemporalIndexingDivinerConfig } from './Config';
|
|
5
|
+
export type TemporalIndexingDivinerParams = IndexingDivinerParams & DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>;
|
|
6
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAGxD,MAAM,MAAM,6BAA6B,GAAG,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultSchema } from './Schema';
|
|
3
|
+
export type TemporalIndexingDivinerResult = Payload<{
|
|
4
|
+
sources: string[];
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}, TemporalIndexingDivinerResultSchema>;
|
|
7
|
+
export declare const isTemporalIndexingDivinerResult: (x?: {
|
|
8
|
+
schema: string;
|
|
9
|
+
} | null | undefined) => x is import("@xyo-network/payload-model").SchemaFields & {
|
|
10
|
+
sources: string[];
|
|
11
|
+
timestamp: string;
|
|
12
|
+
} & {
|
|
13
|
+
schema: "network.xyo.diviner.indexing.temporal.result";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAA;AAE9D,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B;;;aAL/B,MAAM,EAAE;eACN,MAAM;;;CAImH,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultSchema } from './Schema';
|
|
3
|
+
export type TemporalIndexingDivinerResult = Payload<{
|
|
4
|
+
sources: string[];
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}, TemporalIndexingDivinerResultSchema>;
|
|
7
|
+
export declare const isTemporalIndexingDivinerResult: (x?: {
|
|
8
|
+
schema: string;
|
|
9
|
+
} | null | undefined) => x is import("@xyo-network/payload-model").SchemaFields & {
|
|
10
|
+
sources: string[];
|
|
11
|
+
timestamp: string;
|
|
12
|
+
} & {
|
|
13
|
+
schema: "network.xyo.diviner.indexing.temporal.result";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAA;AAE9D,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B;;;aAL/B,MAAM,EAAE;eACN,MAAM;;;CAImH,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultSchema } from './Schema';
|
|
3
|
+
export type TemporalIndexingDivinerResult = Payload<{
|
|
4
|
+
sources: string[];
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}, TemporalIndexingDivinerResultSchema>;
|
|
7
|
+
export declare const isTemporalIndexingDivinerResult: (x?: {
|
|
8
|
+
schema: string;
|
|
9
|
+
} | null | undefined) => x is import("@xyo-network/payload-model").SchemaFields & {
|
|
10
|
+
sources: string[];
|
|
11
|
+
timestamp: string;
|
|
12
|
+
} & {
|
|
13
|
+
schema: "network.xyo.diviner.indexing.temporal.result";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,EAAE,mCAAmC,EAAE,MAAM,UAAU,CAAA;AAE9D,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B;;;aAL/B,MAAM,EAAE;eACN,MAAM;;;CAImH,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Result/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Result/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Result/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Result/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Result/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Result/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultIndexSchema } from './Schema';
|
|
3
|
+
export type TemporalIndexingDivinerResultIndex = Payload<{
|
|
4
|
+
sources: string[];
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}, TemporalIndexingDivinerResultIndexSchema>;
|
|
7
|
+
export declare const isTemporalIndexingDivinerResultIndex: (x?: {
|
|
8
|
+
schema: string;
|
|
9
|
+
} | null | undefined) => x is import("@xyo-network/payload-model").SchemaFields & {
|
|
10
|
+
sources: string[];
|
|
11
|
+
timestamp: string;
|
|
12
|
+
} & {
|
|
13
|
+
schema: "network.xyo.diviner.indexing.temporal.result.index";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,EAAE,wCAAwC,EAAE,MAAM,UAAU,CAAA;AAEnE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CACtD;IACE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AACD,eAAO,MAAM,oCAAoC;;;aALpC,MAAM,EAAE;eACN,MAAM;;;CAMpB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultIndexSchema } from './Schema';
|
|
3
|
+
export type TemporalIndexingDivinerResultIndex = Payload<{
|
|
4
|
+
sources: string[];
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}, TemporalIndexingDivinerResultIndexSchema>;
|
|
7
|
+
export declare const isTemporalIndexingDivinerResultIndex: (x?: {
|
|
8
|
+
schema: string;
|
|
9
|
+
} | null | undefined) => x is import("@xyo-network/payload-model").SchemaFields & {
|
|
10
|
+
sources: string[];
|
|
11
|
+
timestamp: string;
|
|
12
|
+
} & {
|
|
13
|
+
schema: "network.xyo.diviner.indexing.temporal.result.index";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,EAAE,wCAAwC,EAAE,MAAM,UAAU,CAAA;AAEnE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CACtD;IACE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AACD,eAAO,MAAM,oCAAoC;;;aALpC,MAAM,EAAE;eACN,MAAM;;;CAMpB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultIndexSchema } from './Schema';
|
|
3
|
+
export type TemporalIndexingDivinerResultIndex = Payload<{
|
|
4
|
+
sources: string[];
|
|
5
|
+
timestamp: string;
|
|
6
|
+
}, TemporalIndexingDivinerResultIndexSchema>;
|
|
7
|
+
export declare const isTemporalIndexingDivinerResultIndex: (x?: {
|
|
8
|
+
schema: string;
|
|
9
|
+
} | null | undefined) => x is import("@xyo-network/payload-model").SchemaFields & {
|
|
10
|
+
sources: string[];
|
|
11
|
+
timestamp: string;
|
|
12
|
+
} & {
|
|
13
|
+
schema: "network.xyo.diviner.indexing.temporal.result.index";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,OAAO,EAAE,wCAAwC,EAAE,MAAM,UAAU,CAAA;AAEnE,MAAM,MAAM,kCAAkC,GAAG,OAAO,CACtD;IACE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AACD,eAAO,MAAM,oCAAoC;;;aALpC,MAAM,EAAE;eACN,MAAM;;;CAMpB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wCAAwC,sDAA0D,CAAA;AAC/G,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wCAAwC,sDAA0D,CAAA;AAC/G,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wCAAwC,sDAA0D,CAAA;AAC/G,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,yCAA+C,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,yCAA+C,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,yCAA+C,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
TemporalIndexingDivinerConfigSchema: () => TemporalIndexingDivinerConfigSchema,
|
|
24
|
+
TemporalIndexingDivinerResultIndexSchema: () => TemporalIndexingDivinerResultIndexSchema,
|
|
25
|
+
TemporalIndexingDivinerResultSchema: () => TemporalIndexingDivinerResultSchema,
|
|
26
|
+
TemporalIndexingDivinerSchema: () => TemporalIndexingDivinerSchema,
|
|
27
|
+
isTemporalIndexingDivinerResult: () => isTemporalIndexingDivinerResult,
|
|
28
|
+
isTemporalIndexingDivinerResultIndex: () => isTemporalIndexingDivinerResultIndex
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(src_exports);
|
|
31
|
+
|
|
32
|
+
// src/Schema.ts
|
|
33
|
+
var import_diviner_indexing_model = require("@xyo-network/diviner-indexing-model");
|
|
34
|
+
var TemporalIndexingDivinerSchema = `${import_diviner_indexing_model.IndexingDivinerSchema}.temporal`;
|
|
35
|
+
|
|
36
|
+
// src/Config.ts
|
|
37
|
+
var TemporalIndexingDivinerConfigSchema = `${TemporalIndexingDivinerSchema}.config`;
|
|
38
|
+
|
|
39
|
+
// src/Result/Payload.ts
|
|
40
|
+
var import_payload_model = require("@xyo-network/payload-model");
|
|
41
|
+
|
|
42
|
+
// src/Result/Schema.ts
|
|
43
|
+
var TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result`;
|
|
44
|
+
|
|
45
|
+
// src/Result/Payload.ts
|
|
46
|
+
var isTemporalIndexingDivinerResult = (0, import_payload_model.isPayloadOfSchemaType)(TemporalIndexingDivinerResultSchema);
|
|
47
|
+
|
|
48
|
+
// src/ResultIndex/Payload.ts
|
|
49
|
+
var import_payload_model2 = require("@xyo-network/payload-model");
|
|
50
|
+
|
|
51
|
+
// src/ResultIndex/Schema.ts
|
|
52
|
+
var TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index`;
|
|
53
|
+
|
|
54
|
+
// src/ResultIndex/Payload.ts
|
|
55
|
+
var isTemporalIndexingDivinerResultIndex = (0, import_payload_model2.isPayloadOfSchemaType)(
|
|
56
|
+
TemporalIndexingDivinerResultIndexSchema
|
|
57
|
+
);
|
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
+
0 && (module.exports = {
|
|
60
|
+
TemporalIndexingDivinerConfigSchema,
|
|
61
|
+
TemporalIndexingDivinerResultIndexSchema,
|
|
62
|
+
TemporalIndexingDivinerResultSchema,
|
|
63
|
+
TemporalIndexingDivinerSchema,
|
|
64
|
+
isTemporalIndexingDivinerResult,
|
|
65
|
+
isTemporalIndexingDivinerResultIndex
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts"],"sourcesContent":["export * from './Config'\nexport * from './Params'\nexport * from './Result'\nexport * from './ResultIndex'\nexport * from './Schema'\n","import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import { SearchableStorage } from '@xyo-network/diviner-indexing-model'\nimport { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerSchema } from './Schema'\n\nexport const TemporalIndexingDivinerConfigSchema = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n// TODO: Extend indexing diviner config and just remove fields that are not needed?\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for the Diviner config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: string[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n","import { TemporalIndexingDivinerSchema } from '../Schema'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: string[]\n timestamp: string\n },\n TemporalIndexingDivinerResultIndexSchema\n>\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,oCAAsC;AAE/B,IAAM,gCAAgC,GAAG,mDAAqB;;;ACG9D,IAAM,sCAAsC,GAAG,6BAA6B;;;ACLnF,2BAA+C;;;ACExC,IAAM,sCAAsC,GAAG,6BAA6B;;;ADS5E,IAAM,sCAAkC,4CAAqD,mCAAmC;;;AEXvI,IAAAA,wBAA+C;;;ACExC,IAAM,2CAA2C,GAAG,mCAAmC;;;ADSvF,IAAM,2CAAuC;AAAA,EAClD;AACF;","names":["import_payload_model"]}
|