@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.
Files changed (142) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +13 -0
  3. package/dist/browser/Config.d.cts +27 -0
  4. package/dist/browser/Config.d.cts.map +1 -0
  5. package/dist/browser/Config.d.mts +27 -0
  6. package/dist/browser/Config.d.mts.map +1 -0
  7. package/dist/browser/Config.d.ts +27 -0
  8. package/dist/browser/Config.d.ts.map +1 -0
  9. package/dist/browser/Params.d.cts +6 -0
  10. package/dist/browser/Params.d.cts.map +1 -0
  11. package/dist/browser/Params.d.mts +6 -0
  12. package/dist/browser/Params.d.mts.map +1 -0
  13. package/dist/browser/Params.d.ts +6 -0
  14. package/dist/browser/Params.d.ts.map +1 -0
  15. package/dist/browser/Result/Payload.d.cts +15 -0
  16. package/dist/browser/Result/Payload.d.cts.map +1 -0
  17. package/dist/browser/Result/Payload.d.mts +15 -0
  18. package/dist/browser/Result/Payload.d.mts.map +1 -0
  19. package/dist/browser/Result/Payload.d.ts +15 -0
  20. package/dist/browser/Result/Payload.d.ts.map +1 -0
  21. package/dist/browser/Result/Schema.d.cts +3 -0
  22. package/dist/browser/Result/Schema.d.cts.map +1 -0
  23. package/dist/browser/Result/Schema.d.mts +3 -0
  24. package/dist/browser/Result/Schema.d.mts.map +1 -0
  25. package/dist/browser/Result/Schema.d.ts +3 -0
  26. package/dist/browser/Result/Schema.d.ts.map +1 -0
  27. package/dist/browser/Result/index.d.cts +3 -0
  28. package/dist/browser/Result/index.d.cts.map +1 -0
  29. package/dist/browser/Result/index.d.mts +3 -0
  30. package/dist/browser/Result/index.d.mts.map +1 -0
  31. package/dist/browser/Result/index.d.ts +3 -0
  32. package/dist/browser/Result/index.d.ts.map +1 -0
  33. package/dist/browser/ResultIndex/Payload.d.cts +15 -0
  34. package/dist/browser/ResultIndex/Payload.d.cts.map +1 -0
  35. package/dist/browser/ResultIndex/Payload.d.mts +15 -0
  36. package/dist/browser/ResultIndex/Payload.d.mts.map +1 -0
  37. package/dist/browser/ResultIndex/Payload.d.ts +15 -0
  38. package/dist/browser/ResultIndex/Payload.d.ts.map +1 -0
  39. package/dist/browser/ResultIndex/Schema.d.cts +3 -0
  40. package/dist/browser/ResultIndex/Schema.d.cts.map +1 -0
  41. package/dist/browser/ResultIndex/Schema.d.mts +3 -0
  42. package/dist/browser/ResultIndex/Schema.d.mts.map +1 -0
  43. package/dist/browser/ResultIndex/Schema.d.ts +3 -0
  44. package/dist/browser/ResultIndex/Schema.d.ts.map +1 -0
  45. package/dist/browser/ResultIndex/index.d.cts +3 -0
  46. package/dist/browser/ResultIndex/index.d.cts.map +1 -0
  47. package/dist/browser/ResultIndex/index.d.mts +3 -0
  48. package/dist/browser/ResultIndex/index.d.mts.map +1 -0
  49. package/dist/browser/ResultIndex/index.d.ts +3 -0
  50. package/dist/browser/ResultIndex/index.d.ts.map +1 -0
  51. package/dist/browser/Schema.d.cts +3 -0
  52. package/dist/browser/Schema.d.cts.map +1 -0
  53. package/dist/browser/Schema.d.mts +3 -0
  54. package/dist/browser/Schema.d.mts.map +1 -0
  55. package/dist/browser/Schema.d.ts +3 -0
  56. package/dist/browser/Schema.d.ts.map +1 -0
  57. package/dist/browser/index.cjs +58 -0
  58. package/dist/browser/index.cjs.map +1 -0
  59. package/dist/browser/index.d.cts +6 -0
  60. package/dist/browser/index.d.cts.map +1 -0
  61. package/dist/browser/index.d.mts +6 -0
  62. package/dist/browser/index.d.mts.map +1 -0
  63. package/dist/browser/index.d.ts +6 -0
  64. package/dist/browser/index.d.ts.map +1 -0
  65. package/dist/browser/index.js +35 -0
  66. package/dist/browser/index.js.map +1 -0
  67. package/dist/node/Config.d.cts +27 -0
  68. package/dist/node/Config.d.cts.map +1 -0
  69. package/dist/node/Config.d.mts +27 -0
  70. package/dist/node/Config.d.mts.map +1 -0
  71. package/dist/node/Config.d.ts +27 -0
  72. package/dist/node/Config.d.ts.map +1 -0
  73. package/dist/node/Params.d.cts +6 -0
  74. package/dist/node/Params.d.cts.map +1 -0
  75. package/dist/node/Params.d.mts +6 -0
  76. package/dist/node/Params.d.mts.map +1 -0
  77. package/dist/node/Params.d.ts +6 -0
  78. package/dist/node/Params.d.ts.map +1 -0
  79. package/dist/node/Result/Payload.d.cts +15 -0
  80. package/dist/node/Result/Payload.d.cts.map +1 -0
  81. package/dist/node/Result/Payload.d.mts +15 -0
  82. package/dist/node/Result/Payload.d.mts.map +1 -0
  83. package/dist/node/Result/Payload.d.ts +15 -0
  84. package/dist/node/Result/Payload.d.ts.map +1 -0
  85. package/dist/node/Result/Schema.d.cts +3 -0
  86. package/dist/node/Result/Schema.d.cts.map +1 -0
  87. package/dist/node/Result/Schema.d.mts +3 -0
  88. package/dist/node/Result/Schema.d.mts.map +1 -0
  89. package/dist/node/Result/Schema.d.ts +3 -0
  90. package/dist/node/Result/Schema.d.ts.map +1 -0
  91. package/dist/node/Result/index.d.cts +3 -0
  92. package/dist/node/Result/index.d.cts.map +1 -0
  93. package/dist/node/Result/index.d.mts +3 -0
  94. package/dist/node/Result/index.d.mts.map +1 -0
  95. package/dist/node/Result/index.d.ts +3 -0
  96. package/dist/node/Result/index.d.ts.map +1 -0
  97. package/dist/node/ResultIndex/Payload.d.cts +15 -0
  98. package/dist/node/ResultIndex/Payload.d.cts.map +1 -0
  99. package/dist/node/ResultIndex/Payload.d.mts +15 -0
  100. package/dist/node/ResultIndex/Payload.d.mts.map +1 -0
  101. package/dist/node/ResultIndex/Payload.d.ts +15 -0
  102. package/dist/node/ResultIndex/Payload.d.ts.map +1 -0
  103. package/dist/node/ResultIndex/Schema.d.cts +3 -0
  104. package/dist/node/ResultIndex/Schema.d.cts.map +1 -0
  105. package/dist/node/ResultIndex/Schema.d.mts +3 -0
  106. package/dist/node/ResultIndex/Schema.d.mts.map +1 -0
  107. package/dist/node/ResultIndex/Schema.d.ts +3 -0
  108. package/dist/node/ResultIndex/Schema.d.ts.map +1 -0
  109. package/dist/node/ResultIndex/index.d.cts +3 -0
  110. package/dist/node/ResultIndex/index.d.cts.map +1 -0
  111. package/dist/node/ResultIndex/index.d.mts +3 -0
  112. package/dist/node/ResultIndex/index.d.mts.map +1 -0
  113. package/dist/node/ResultIndex/index.d.ts +3 -0
  114. package/dist/node/ResultIndex/index.d.ts.map +1 -0
  115. package/dist/node/Schema.d.cts +3 -0
  116. package/dist/node/Schema.d.cts.map +1 -0
  117. package/dist/node/Schema.d.mts +3 -0
  118. package/dist/node/Schema.d.mts.map +1 -0
  119. package/dist/node/Schema.d.ts +3 -0
  120. package/dist/node/Schema.d.ts.map +1 -0
  121. package/dist/node/index.d.cts +6 -0
  122. package/dist/node/index.d.cts.map +1 -0
  123. package/dist/node/index.d.mts +6 -0
  124. package/dist/node/index.d.mts.map +1 -0
  125. package/dist/node/index.d.ts +6 -0
  126. package/dist/node/index.d.ts.map +1 -0
  127. package/dist/node/index.js +67 -0
  128. package/dist/node/index.js.map +1 -0
  129. package/dist/node/index.mjs +35 -0
  130. package/dist/node/index.mjs.map +1 -0
  131. package/package.json +65 -0
  132. package/src/Config.ts +31 -0
  133. package/src/Params.ts +8 -0
  134. package/src/Result/Payload.ts +12 -0
  135. package/src/Result/Schema.ts +4 -0
  136. package/src/Result/index.ts +2 -0
  137. package/src/ResultIndex/Payload.ts +14 -0
  138. package/src/ResultIndex/Schema.ts +4 -0
  139. package/src/ResultIndex/index.ts +2 -0
  140. package/src/Schema.ts +4 -0
  141. package/src/index.ts +5 -0
  142. 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,6 @@
1
+ export * from './Config';
2
+ export * from './Params';
3
+ export * from './Result';
4
+ export * from './ResultIndex';
5
+ export * from './Schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ export * from './Config';
2
+ export * from './Params';
3
+ export * from './Result';
4
+ export * from './ResultIndex';
5
+ export * from './Schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ export * from './Config';
2
+ export * from './Params';
3
+ export * from './Result';
4
+ export * from './ResultIndex';
5
+ export * from './Schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerResultSchema: "network.xyo.diviner.indexing.temporal.result";
2
+ export type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerResultSchema: "network.xyo.diviner.indexing.temporal.result";
2
+ export type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerResultSchema: "network.xyo.diviner.indexing.temporal.result";
2
+ export type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export * from './Payload';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from './Payload';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from './Payload';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerResultIndexSchema: "network.xyo.diviner.indexing.temporal.result.index";
2
+ export type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerResultIndexSchema: "network.xyo.diviner.indexing.temporal.result.index";
2
+ export type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerResultIndexSchema: "network.xyo.diviner.indexing.temporal.result.index";
2
+ export type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export * from './Payload';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from './Payload';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export * from './Payload';
2
+ export * from './Schema';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerSchema: "network.xyo.diviner.indexing.temporal";
2
+ export type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerSchema: "network.xyo.diviner.indexing.temporal";
2
+ export type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,3 @@
1
+ export declare const TemporalIndexingDivinerSchema: "network.xyo.diviner.indexing.temporal";
2
+ export type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -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,6 @@
1
+ export * from './Config';
2
+ export * from './Params';
3
+ export * from './Result';
4
+ export * from './ResultIndex';
5
+ export * from './Schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ export * from './Config';
2
+ export * from './Params';
3
+ export * from './Result';
4
+ export * from './ResultIndex';
5
+ export * from './Schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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,6 @@
1
+ export * from './Config';
2
+ export * from './Params';
3
+ export * from './Result';
4
+ export * from './ResultIndex';
5
+ export * from './Schema';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -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"]}