@xyo-network/archivist-model 2.110.16 → 2.110.17

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 (158) hide show
  1. package/dist/browser/Config.d.cts +1 -1
  2. package/dist/browser/Config.d.mts +1 -1
  3. package/dist/browser/Config.d.ts +1 -1
  4. package/dist/browser/EventData.d.cts +1 -1
  5. package/dist/browser/EventData.d.mts +1 -1
  6. package/dist/browser/EventData.d.ts +1 -1
  7. package/dist/browser/EventModels/index.d.cts +3 -3
  8. package/dist/browser/EventModels/index.d.mts +3 -3
  9. package/dist/browser/EventModels/index.d.ts +3 -3
  10. package/dist/browser/Instance.d.cts +5 -5
  11. package/dist/browser/Instance.d.mts +5 -5
  12. package/dist/browser/Instance.d.ts +5 -5
  13. package/dist/browser/Module.d.cts +2 -2
  14. package/dist/browser/Module.d.mts +2 -2
  15. package/dist/browser/Module.d.ts +2 -2
  16. package/dist/browser/Params.d.cts +1 -1
  17. package/dist/browser/Params.d.mts +1 -1
  18. package/dist/browser/Params.d.ts +1 -1
  19. package/dist/browser/Queries/Next.d.cts +1 -1
  20. package/dist/browser/Queries/Next.d.mts +1 -1
  21. package/dist/browser/Queries/Next.d.ts +1 -1
  22. package/dist/browser/Queries/index.d.cts +14 -14
  23. package/dist/browser/Queries/index.d.mts +14 -14
  24. package/dist/browser/Queries/index.d.ts +14 -14
  25. package/dist/browser/QueryFunctions.d.cts +1 -1
  26. package/dist/browser/QueryFunctions.d.mts +1 -1
  27. package/dist/browser/QueryFunctions.d.ts +1 -1
  28. package/dist/browser/RawQueryFunctions.d.cts +1 -1
  29. package/dist/browser/RawQueryFunctions.d.mts +1 -1
  30. package/dist/browser/RawQueryFunctions.d.ts +1 -1
  31. package/dist/browser/attachable/AttachableInstance.d.cts +4 -4
  32. package/dist/browser/attachable/AttachableInstance.d.mts +4 -4
  33. package/dist/browser/attachable/AttachableInstance.d.ts +4 -4
  34. package/dist/browser/attachable/index.d.cts +3 -3
  35. package/dist/browser/attachable/index.d.mts +3 -3
  36. package/dist/browser/attachable/index.d.ts +3 -3
  37. package/dist/browser/attachable/isAttachableInstance.d.cts +1 -1
  38. package/dist/browser/attachable/isAttachableInstance.d.mts +1 -1
  39. package/dist/browser/attachable/isAttachableInstance.d.ts +1 -1
  40. package/dist/browser/index.cjs.map +1 -1
  41. package/dist/browser/index.d.cts +13 -13
  42. package/dist/browser/index.d.mts +13 -13
  43. package/dist/browser/index.d.ts +13 -13
  44. package/dist/browser/index.js.map +1 -1
  45. package/dist/browser/typeChecks.d.cts +2 -2
  46. package/dist/browser/typeChecks.d.mts +2 -2
  47. package/dist/browser/typeChecks.d.ts +2 -2
  48. package/dist/neutral/Config.d.cts +1 -1
  49. package/dist/neutral/Config.d.mts +1 -1
  50. package/dist/neutral/Config.d.ts +1 -1
  51. package/dist/neutral/EventData.d.cts +1 -1
  52. package/dist/neutral/EventData.d.mts +1 -1
  53. package/dist/neutral/EventData.d.ts +1 -1
  54. package/dist/neutral/EventModels/index.d.cts +3 -3
  55. package/dist/neutral/EventModels/index.d.mts +3 -3
  56. package/dist/neutral/EventModels/index.d.ts +3 -3
  57. package/dist/neutral/Instance.d.cts +5 -5
  58. package/dist/neutral/Instance.d.mts +5 -5
  59. package/dist/neutral/Instance.d.ts +5 -5
  60. package/dist/neutral/Module.d.cts +2 -2
  61. package/dist/neutral/Module.d.mts +2 -2
  62. package/dist/neutral/Module.d.ts +2 -2
  63. package/dist/neutral/Params.d.cts +1 -1
  64. package/dist/neutral/Params.d.mts +1 -1
  65. package/dist/neutral/Params.d.ts +1 -1
  66. package/dist/neutral/Queries/Next.d.cts +1 -1
  67. package/dist/neutral/Queries/Next.d.mts +1 -1
  68. package/dist/neutral/Queries/Next.d.ts +1 -1
  69. package/dist/neutral/Queries/index.d.cts +14 -14
  70. package/dist/neutral/Queries/index.d.mts +14 -14
  71. package/dist/neutral/Queries/index.d.ts +14 -14
  72. package/dist/neutral/QueryFunctions.d.cts +1 -1
  73. package/dist/neutral/QueryFunctions.d.mts +1 -1
  74. package/dist/neutral/QueryFunctions.d.ts +1 -1
  75. package/dist/neutral/RawQueryFunctions.d.cts +1 -1
  76. package/dist/neutral/RawQueryFunctions.d.mts +1 -1
  77. package/dist/neutral/RawQueryFunctions.d.ts +1 -1
  78. package/dist/neutral/attachable/AttachableInstance.d.cts +4 -4
  79. package/dist/neutral/attachable/AttachableInstance.d.mts +4 -4
  80. package/dist/neutral/attachable/AttachableInstance.d.ts +4 -4
  81. package/dist/neutral/attachable/index.d.cts +3 -3
  82. package/dist/neutral/attachable/index.d.mts +3 -3
  83. package/dist/neutral/attachable/index.d.ts +3 -3
  84. package/dist/neutral/attachable/isAttachableInstance.d.cts +1 -1
  85. package/dist/neutral/attachable/isAttachableInstance.d.mts +1 -1
  86. package/dist/neutral/attachable/isAttachableInstance.d.ts +1 -1
  87. package/dist/neutral/index.cjs.map +1 -1
  88. package/dist/neutral/index.d.cts +13 -13
  89. package/dist/neutral/index.d.mts +13 -13
  90. package/dist/neutral/index.d.ts +13 -13
  91. package/dist/neutral/index.js.map +1 -1
  92. package/dist/neutral/typeChecks.d.cts +2 -2
  93. package/dist/neutral/typeChecks.d.mts +2 -2
  94. package/dist/neutral/typeChecks.d.ts +2 -2
  95. package/dist/node/Config.d.cts +1 -1
  96. package/dist/node/Config.d.mts +1 -1
  97. package/dist/node/Config.d.ts +1 -1
  98. package/dist/node/EventData.d.cts +1 -1
  99. package/dist/node/EventData.d.mts +1 -1
  100. package/dist/node/EventData.d.ts +1 -1
  101. package/dist/node/EventModels/index.d.cts +3 -3
  102. package/dist/node/EventModels/index.d.mts +3 -3
  103. package/dist/node/EventModels/index.d.ts +3 -3
  104. package/dist/node/Instance.d.cts +5 -5
  105. package/dist/node/Instance.d.mts +5 -5
  106. package/dist/node/Instance.d.ts +5 -5
  107. package/dist/node/Module.d.cts +2 -2
  108. package/dist/node/Module.d.mts +2 -2
  109. package/dist/node/Module.d.ts +2 -2
  110. package/dist/node/Params.d.cts +1 -1
  111. package/dist/node/Params.d.mts +1 -1
  112. package/dist/node/Params.d.ts +1 -1
  113. package/dist/node/Queries/Next.d.cts +1 -1
  114. package/dist/node/Queries/Next.d.mts +1 -1
  115. package/dist/node/Queries/Next.d.ts +1 -1
  116. package/dist/node/Queries/index.d.cts +14 -14
  117. package/dist/node/Queries/index.d.mts +14 -14
  118. package/dist/node/Queries/index.d.ts +14 -14
  119. package/dist/node/QueryFunctions.d.cts +1 -1
  120. package/dist/node/QueryFunctions.d.mts +1 -1
  121. package/dist/node/QueryFunctions.d.ts +1 -1
  122. package/dist/node/RawQueryFunctions.d.cts +1 -1
  123. package/dist/node/RawQueryFunctions.d.mts +1 -1
  124. package/dist/node/RawQueryFunctions.d.ts +1 -1
  125. package/dist/node/attachable/AttachableInstance.d.cts +4 -4
  126. package/dist/node/attachable/AttachableInstance.d.mts +4 -4
  127. package/dist/node/attachable/AttachableInstance.d.ts +4 -4
  128. package/dist/node/attachable/index.d.cts +3 -3
  129. package/dist/node/attachable/index.d.mts +3 -3
  130. package/dist/node/attachable/index.d.ts +3 -3
  131. package/dist/node/attachable/isAttachableInstance.d.cts +1 -1
  132. package/dist/node/attachable/isAttachableInstance.d.mts +1 -1
  133. package/dist/node/attachable/isAttachableInstance.d.ts +1 -1
  134. package/dist/node/index.cjs.map +1 -1
  135. package/dist/node/index.d.cts +13 -13
  136. package/dist/node/index.d.mts +13 -13
  137. package/dist/node/index.d.ts +13 -13
  138. package/dist/node/index.js.map +1 -1
  139. package/dist/node/typeChecks.d.cts +2 -2
  140. package/dist/node/typeChecks.d.mts +2 -2
  141. package/dist/node/typeChecks.d.ts +2 -2
  142. package/package.json +5 -5
  143. package/src/Config.ts +1 -1
  144. package/src/EventData.ts +1 -1
  145. package/src/EventModels/index.ts +3 -3
  146. package/src/Instance.ts +5 -5
  147. package/src/Module.ts +2 -2
  148. package/src/Params.ts +1 -1
  149. package/src/Queries/Next.ts +1 -1
  150. package/src/Queries/index.ts +14 -14
  151. package/src/QueryFunctions.ts +1 -1
  152. package/src/RawQueryFunctions.ts +1 -1
  153. package/src/attachable/AttachableInstance.ts +4 -4
  154. package/src/attachable/asAttachableInstance.ts +1 -1
  155. package/src/attachable/index.ts +3 -3
  156. package/src/attachable/isAttachableInstance.ts +2 -2
  157. package/src/index.ts +13 -13
  158. package/src/typeChecks.ts +3 -3
@@ -1,4 +1,4 @@
1
- export * from './asAttachableInstance.js';
2
- export * from './AttachableInstance.js';
3
- export * from './isAttachableInstance.js';
1
+ export * from './asAttachableInstance.ts';
2
+ export * from './AttachableInstance.ts';
3
+ export * from './isAttachableInstance.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
- import { AttachableArchivistInstance } from './AttachableInstance.js';
2
+ import { AttachableArchivistInstance } from './AttachableInstance.ts';
3
3
  export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
4
  export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
5
  //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
- import { AttachableArchivistInstance } from './AttachableInstance.js';
2
+ import { AttachableArchivistInstance } from './AttachableInstance.ts';
3
3
  export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
4
  export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
5
  //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
- import { AttachableArchivistInstance } from './AttachableInstance.js';
2
+ import { AttachableArchivistInstance } from './AttachableInstance.ts';
3
3
  export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
4
  export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
5
  //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["export * from './attachable/index.js'\nexport * from './Config.js'\nexport * from './EventData.js'\nexport * from './IndexDescription.js'\nexport * from './Instance.js'\nexport * from './Labels.js'\nexport * from './Module.js'\nexport * from './NextOptions.js'\nexport * from './Params.js'\nexport * from './Queries/index.js'\nexport * from './QueryFunctions.js'\nexport * from './RawQueryFunctions.js'\nexport * from './typeChecks.js'\n","import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.js'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.js'\nimport { AttachableArchivistInstance } from './AttachableInstance.js'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistInstance } from './Instance.js'\nimport { ArchivistModule } from './Module.js'\nimport { ArchivistGetQuerySchema } from './Queries/index.js'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../NextOptions.js'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { ArchivistModuleEventData } from '../EventData.js'\nimport { ArchivistInstance } from '../Instance.js'\nimport { ArchivistModule } from '../Module.js'\nimport { ArchivistParams } from '../Params.js'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexDescription } from './IndexDescription.js'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAA,iBAAgC;;;ACAhC,IAAAC,iBAA4D;AAC5D,IAAAC,uBAA2C;;;ACD3C,oBAAgC;AAChC,0BAAkF;;;ACE3E,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;APE3D,IAAMC,sBAAsB,IAAIC,sCAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,oCAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,8BAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,8BAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,gCAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,gCAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,+BAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADVM,IAAMC,gCAAgCC,+BAAgBC,OAAOC,6BAAAA;;;AUJpE,IAAAC,iBAA2C;AAmBpC,IAAMC,uCAAN,cAAwHC,+BAAAA;EAnB/H,OAmB+HA;;;AAAoB;;;ACD5I,IAAMC,wBAAwB;;;ACa9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["import_object","import_object","import_module_model","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","import_object","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["export * from './attachable/index.ts'\nexport * from './Config.ts'\nexport * from './EventData.ts'\nexport * from './IndexDescription.ts'\nexport * from './Instance.ts'\nexport * from './Labels.ts'\nexport * from './Module.ts'\nexport * from './NextOptions.ts'\nexport * from './Params.ts'\nexport * from './Queries/index.ts'\nexport * from './QueryFunctions.ts'\nexport * from './RawQueryFunctions.ts'\nexport * from './typeChecks.ts'\n","import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.ts'\nimport { AttachableArchivistInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistInstance } from './Instance.ts'\nimport { ArchivistModule } from './Module.ts'\nimport { ArchivistGetQuerySchema } from './Queries/index.ts'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../NextOptions.ts'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { ArchivistModuleEventData } from '../EventData.ts'\nimport { ArchivistInstance } from '../Instance.ts'\nimport { ArchivistModule } from '../Module.ts'\nimport { ArchivistParams } from '../Params.ts'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexDescription } from './IndexDescription.ts'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAA,iBAAgC;;;ACAhC,IAAAC,iBAA4D;AAC5D,IAAAC,uBAA2C;;;ACD3C,oBAAgC;AAChC,0BAAkF;;;ACE3E,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;APE3D,IAAMC,sBAAsB,IAAIC,sCAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,oCAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,8BAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,8BAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,gCAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,gCAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,+BAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADVM,IAAMC,gCAAgCC,+BAAgBC,OAAOC,6BAAAA;;;AUJpE,IAAAC,iBAA2C;AAmBpC,IAAMC,uCAAN,cAAwHC,+BAAAA;EAnB/H,OAmB+HA;;;AAAoB;;;ACD5I,IAAMC,wBAAwB;;;ACa9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["import_object","import_object","import_module_model","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","import_object","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
@@ -1,14 +1,14 @@
1
- export * from './attachable/index.js';
2
- export * from './Config.js';
3
- export * from './EventData.js';
4
- export * from './IndexDescription.js';
5
- export * from './Instance.js';
6
- export * from './Labels.js';
7
- export * from './Module.js';
8
- export * from './NextOptions.js';
9
- export * from './Params.js';
10
- export * from './Queries/index.js';
11
- export * from './QueryFunctions.js';
12
- export * from './RawQueryFunctions.js';
13
- export * from './typeChecks.js';
1
+ export * from './attachable/index.ts';
2
+ export * from './Config.ts';
3
+ export * from './EventData.ts';
4
+ export * from './IndexDescription.ts';
5
+ export * from './Instance.ts';
6
+ export * from './Labels.ts';
7
+ export * from './Module.ts';
8
+ export * from './NextOptions.ts';
9
+ export * from './Params.ts';
10
+ export * from './Queries/index.ts';
11
+ export * from './QueryFunctions.ts';
12
+ export * from './RawQueryFunctions.ts';
13
+ export * from './typeChecks.ts';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,14 @@
1
- export * from './attachable/index.js';
2
- export * from './Config.js';
3
- export * from './EventData.js';
4
- export * from './IndexDescription.js';
5
- export * from './Instance.js';
6
- export * from './Labels.js';
7
- export * from './Module.js';
8
- export * from './NextOptions.js';
9
- export * from './Params.js';
10
- export * from './Queries/index.js';
11
- export * from './QueryFunctions.js';
12
- export * from './RawQueryFunctions.js';
13
- export * from './typeChecks.js';
1
+ export * from './attachable/index.ts';
2
+ export * from './Config.ts';
3
+ export * from './EventData.ts';
4
+ export * from './IndexDescription.ts';
5
+ export * from './Instance.ts';
6
+ export * from './Labels.ts';
7
+ export * from './Module.ts';
8
+ export * from './NextOptions.ts';
9
+ export * from './Params.ts';
10
+ export * from './Queries/index.ts';
11
+ export * from './QueryFunctions.ts';
12
+ export * from './RawQueryFunctions.ts';
13
+ export * from './typeChecks.ts';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,14 @@
1
- export * from './attachable/index.js';
2
- export * from './Config.js';
3
- export * from './EventData.js';
4
- export * from './IndexDescription.js';
5
- export * from './Instance.js';
6
- export * from './Labels.js';
7
- export * from './Module.js';
8
- export * from './NextOptions.js';
9
- export * from './Params.js';
10
- export * from './Queries/index.js';
11
- export * from './QueryFunctions.js';
12
- export * from './RawQueryFunctions.js';
13
- export * from './typeChecks.js';
1
+ export * from './attachable/index.ts';
2
+ export * from './Config.ts';
3
+ export * from './EventData.ts';
4
+ export * from './IndexDescription.ts';
5
+ export * from './Instance.ts';
6
+ export * from './Labels.ts';
7
+ export * from './Module.ts';
8
+ export * from './NextOptions.ts';
9
+ export * from './Params.ts';
10
+ export * from './Queries/index.ts';
11
+ export * from './QueryFunctions.ts';
12
+ export * from './RawQueryFunctions.ts';
13
+ export * from './typeChecks.ts';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.js'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.js'\nimport { AttachableArchivistInstance } from './AttachableInstance.js'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistInstance } from './Instance.js'\nimport { ArchivistModule } from './Module.js'\nimport { ArchivistGetQuerySchema } from './Queries/index.js'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../NextOptions.js'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { ArchivistModuleEventData } from '../EventData.js'\nimport { ArchivistInstance } from '../Instance.js'\nimport { ArchivistModule } from '../Module.js'\nimport { ArchivistParams } from '../Params.js'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexDescription } from './IndexDescription.js'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACAhC,SAASC,uBAAmD;AAC5D,SAASC,kCAAkC;;;ACD3C,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;;;ACE3E,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;APE3D,IAAMC,sBAAsB,IAAIC,kBAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,gBAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,gBAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,gBAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,YAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,YAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADVM,IAAMC,gCAAgCC,iBAAgBC,OAAOC,6BAAAA;;;AUJpE,SAASC,mBAAAA,wBAAkC;AAmBpC,IAAMC,uCAAN,cAAwHC,iBAAAA;EAnB/H,OAmB+HA;;;AAAoB;;;ACD5I,IAAMC,wBAAwB;;;ACa9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","IsObjectFactory","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
1
+ {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance.ts'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks.ts'\nimport { AttachableArchivistInstance } from './AttachableInstance.ts'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistInstance } from './Instance.ts'\nimport { ArchivistModule } from './Module.ts'\nimport { ArchivistGetQuerySchema } from './Queries/index.ts'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../NextOptions.ts'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { ArchivistModuleEventData } from '../EventData.ts'\nimport { ArchivistInstance } from '../Instance.ts'\nimport { ArchivistModule } from '../Module.ts'\nimport { ArchivistParams } from '../Params.ts'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexDescription } from './IndexDescription.ts'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport interface ArchivistStorage {\n /** The indexes to create on the object store */\n indexes?: IndexDescription[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config' as const\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field storage configuration */\n storage?: ArchivistStorage\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACAhC,SAASC,uBAAmD;AAC5D,SAASC,kCAAkC;;;ACD3C,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;;;ACE3E,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;APE3D,IAAMC,sBAAsB,IAAIC,kBAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,gBAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,gBAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,gBAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,YAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,YAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADVM,IAAMC,gCAAgCC,iBAAgBC,OAAOC,6BAAAA;;;AUJpE,SAASC,mBAAAA,wBAAkC;AAmBpC,IAAMC,uCAAN,cAAwHC,iBAAAA;EAnB/H,OAmB+HA;;;AAAoB;;;ACD5I,IAAMC,wBAAwB;;;ACa9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["AsObjectFactory","IsObjectFactory","isAttachableModuleInstance","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","IsObjectFactory","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
@@ -1,5 +1,5 @@
1
- import { ArchivistInstance } from './Instance.js';
2
- import { ArchivistModule } from './Module.js';
1
+ import { ArchivistInstance } from './Instance.ts';
2
+ import { ArchivistModule } from './Module.ts';
3
3
  export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
4
4
  account?: import("@xyo-network/account-model").AccountInstance | "random";
5
5
  addToResolvers?: boolean;
@@ -1,5 +1,5 @@
1
- import { ArchivistInstance } from './Instance.js';
2
- import { ArchivistModule } from './Module.js';
1
+ import { ArchivistInstance } from './Instance.ts';
2
+ import { ArchivistModule } from './Module.ts';
3
3
  export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
4
4
  account?: import("@xyo-network/account-model").AccountInstance | "random";
5
5
  addToResolvers?: boolean;
@@ -1,5 +1,5 @@
1
- import { ArchivistInstance } from './Instance.js';
2
- import { ArchivistModule } from './Module.js';
1
+ import { ArchivistInstance } from './Instance.ts';
2
+ import { ArchivistModule } from './Module.ts';
3
3
  export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
4
4
  account?: import("@xyo-network/account-model").AccountInstance | "random";
5
5
  addToResolvers?: boolean;
@@ -2,7 +2,7 @@ import { Address } from '@xylabs/hex';
2
2
  import { EmptyObject, WithAdditional } from '@xylabs/object';
3
3
  import { ModuleConfig } from '@xyo-network/module-model';
4
4
  import { Payload } from '@xyo-network/payload-model';
5
- import { IndexDescription } from './IndexDescription.js';
5
+ import { IndexDescription } from './IndexDescription.ts';
6
6
  export interface ArchivistParents {
7
7
  commit?: Address[];
8
8
  read?: Address[];
@@ -2,7 +2,7 @@ import { Address } from '@xylabs/hex';
2
2
  import { EmptyObject, WithAdditional } from '@xylabs/object';
3
3
  import { ModuleConfig } from '@xyo-network/module-model';
4
4
  import { Payload } from '@xyo-network/payload-model';
5
- import { IndexDescription } from './IndexDescription.js';
5
+ import { IndexDescription } from './IndexDescription.ts';
6
6
  export interface ArchivistParents {
7
7
  commit?: Address[];
8
8
  read?: Address[];
@@ -2,7 +2,7 @@ import { Address } from '@xylabs/hex';
2
2
  import { EmptyObject, WithAdditional } from '@xylabs/object';
3
3
  import { ModuleConfig } from '@xyo-network/module-model';
4
4
  import { Payload } from '@xyo-network/payload-model';
5
- import { IndexDescription } from './IndexDescription.js';
5
+ import { IndexDescription } from './IndexDescription.ts';
6
6
  export interface ArchivistParents {
7
7
  commit?: Address[];
8
8
  read?: Address[];
@@ -1,5 +1,5 @@
1
1
  import { ModuleEventData } from '@xyo-network/module-model';
2
- import { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.js';
2
+ import { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.ts';
3
3
  export interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData {
4
4
  }
5
5
  //# sourceMappingURL=EventData.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ModuleEventData } from '@xyo-network/module-model';
2
- import { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.js';
2
+ import { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.ts';
3
3
  export interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData {
4
4
  }
5
5
  //# sourceMappingURL=EventData.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { ModuleEventData } from '@xyo-network/module-model';
2
- import { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.js';
2
+ import { ClearedEventData, DeletedEventData, InsertedEventData } from './EventModels/index.ts';
3
3
  export interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData {
4
4
  }
5
5
  //# sourceMappingURL=EventData.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './Cleared.js';
2
- export * from './Deleted.js';
3
- export * from './Inserted.js';
1
+ export * from './Cleared.ts';
2
+ export * from './Deleted.ts';
3
+ export * from './Inserted.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './Cleared.js';
2
- export * from './Deleted.js';
3
- export * from './Inserted.js';
1
+ export * from './Cleared.ts';
2
+ export * from './Deleted.ts';
3
+ export * from './Inserted.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './Cleared.js';
2
- export * from './Deleted.js';
3
- export * from './Inserted.js';
1
+ export * from './Cleared.ts';
2
+ export * from './Deleted.ts';
3
+ export * from './Inserted.ts';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { ModuleInstance } from '@xyo-network/module-model';
2
2
  import { Payload, WithMeta } from '@xyo-network/payload-model';
3
- import { ArchivistModuleEventData } from './EventData.js';
4
- import { ArchivistModule } from './Module.js';
5
- import { ArchivistParams } from './Params.js';
6
- import { ArchivistQueryFunctions } from './QueryFunctions.js';
7
- import { ArchivistRawQueryFunctions } from './RawQueryFunctions.js';
3
+ import { ArchivistModuleEventData } from './EventData.ts';
4
+ import { ArchivistModule } from './Module.ts';
5
+ import { ArchivistParams } from './Params.ts';
6
+ import { ArchivistQueryFunctions } from './QueryFunctions.ts';
7
+ import { ArchivistRawQueryFunctions } from './RawQueryFunctions.ts';
8
8
  export interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, ArchivistQueryFunctions<TPayload, WithMeta<TPayload>>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions {
9
9
  }
10
10
  //# sourceMappingURL=Instance.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { ModuleInstance } from '@xyo-network/module-model';
2
2
  import { Payload, WithMeta } from '@xyo-network/payload-model';
3
- import { ArchivistModuleEventData } from './EventData.js';
4
- import { ArchivistModule } from './Module.js';
5
- import { ArchivistParams } from './Params.js';
6
- import { ArchivistQueryFunctions } from './QueryFunctions.js';
7
- import { ArchivistRawQueryFunctions } from './RawQueryFunctions.js';
3
+ import { ArchivistModuleEventData } from './EventData.ts';
4
+ import { ArchivistModule } from './Module.ts';
5
+ import { ArchivistParams } from './Params.ts';
6
+ import { ArchivistQueryFunctions } from './QueryFunctions.ts';
7
+ import { ArchivistRawQueryFunctions } from './RawQueryFunctions.ts';
8
8
  export interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, ArchivistQueryFunctions<TPayload, WithMeta<TPayload>>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions {
9
9
  }
10
10
  //# sourceMappingURL=Instance.d.ts.map
@@ -1,10 +1,10 @@
1
1
  import { ModuleInstance } from '@xyo-network/module-model';
2
2
  import { Payload, WithMeta } from '@xyo-network/payload-model';
3
- import { ArchivistModuleEventData } from './EventData.js';
4
- import { ArchivistModule } from './Module.js';
5
- import { ArchivistParams } from './Params.js';
6
- import { ArchivistQueryFunctions } from './QueryFunctions.js';
7
- import { ArchivistRawQueryFunctions } from './RawQueryFunctions.js';
3
+ import { ArchivistModuleEventData } from './EventData.ts';
4
+ import { ArchivistModule } from './Module.ts';
5
+ import { ArchivistParams } from './Params.ts';
6
+ import { ArchivistQueryFunctions } from './QueryFunctions.ts';
7
+ import { ArchivistRawQueryFunctions } from './RawQueryFunctions.ts';
8
8
  export interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, ArchivistQueryFunctions<TPayload, WithMeta<TPayload>>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions {
9
9
  }
10
10
  //# sourceMappingURL=Instance.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { AnyConfigSchema, Module, ModuleParams } from '@xyo-network/module-model';
2
- import { ArchivistConfig } from './Config.js';
3
- import { ArchivistModuleEventData } from './EventData.js';
2
+ import { ArchivistConfig } from './Config.ts';
3
+ import { ArchivistModuleEventData } from './EventData.ts';
4
4
  export interface ArchivistModule<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> {
5
5
  }
6
6
  //# sourceMappingURL=Module.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { AnyConfigSchema, Module, ModuleParams } from '@xyo-network/module-model';
2
- import { ArchivistConfig } from './Config.js';
3
- import { ArchivistModuleEventData } from './EventData.js';
2
+ import { ArchivistConfig } from './Config.ts';
3
+ import { ArchivistModuleEventData } from './EventData.ts';
4
4
  export interface ArchivistModule<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> {
5
5
  }
6
6
  //# sourceMappingURL=Module.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import { AnyConfigSchema, Module, ModuleParams } from '@xyo-network/module-model';
2
- import { ArchivistConfig } from './Config.js';
3
- import { ArchivistModuleEventData } from './EventData.js';
2
+ import { ArchivistConfig } from './Config.ts';
3
+ import { ArchivistModuleEventData } from './EventData.ts';
4
4
  export interface ArchivistModule<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> {
5
5
  }
6
6
  //# sourceMappingURL=Module.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { EmptyObject } from '@xylabs/object';
2
2
  import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
3
- import { ArchivistConfig } from './Config.js';
3
+ import { ArchivistConfig } from './Config.ts';
4
4
  export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
5
5
  //# sourceMappingURL=Params.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { EmptyObject } from '@xylabs/object';
2
2
  import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
3
- import { ArchivistConfig } from './Config.js';
3
+ import { ArchivistConfig } from './Config.ts';
4
4
  export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
5
5
  //# sourceMappingURL=Params.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { EmptyObject } from '@xylabs/object';
2
2
  import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
3
- import { ArchivistConfig } from './Config.js';
3
+ import { ArchivistConfig } from './Config.ts';
4
4
  export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
5
5
  //# sourceMappingURL=Params.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import { Query } from '@xyo-network/payload-model';
2
- import { ArchivistNextOptions } from '../NextOptions.js';
2
+ import { ArchivistNextOptions } from '../NextOptions.ts';
3
3
  export type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next';
4
4
  export declare const ArchivistNextQuerySchema: ArchivistNextQuerySchema;
5
5
  export type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>;
@@ -1,5 +1,5 @@
1
1
  import { Query } from '@xyo-network/payload-model';
2
- import { ArchivistNextOptions } from '../NextOptions.js';
2
+ import { ArchivistNextOptions } from '../NextOptions.ts';
3
3
  export type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next';
4
4
  export declare const ArchivistNextQuerySchema: ArchivistNextQuerySchema;
5
5
  export type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>;
@@ -1,5 +1,5 @@
1
1
  import { Query } from '@xyo-network/payload-model';
2
- import { ArchivistNextOptions } from '../NextOptions.js';
2
+ import { ArchivistNextOptions } from '../NextOptions.ts';
3
3
  export type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next';
4
4
  export declare const ArchivistNextQuerySchema: ArchivistNextQuerySchema;
5
5
  export type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>;
@@ -1,18 +1,18 @@
1
- export * from './All.js';
2
- export * from './Clear.js';
3
- export * from './Commit.js';
4
- export * from './Delete.js';
5
- export * from './Get.js';
6
- export * from './Insert.js';
7
- export * from './Next.js';
1
+ export * from './All.ts';
2
+ export * from './Clear.ts';
3
+ export * from './Commit.ts';
4
+ export * from './Delete.ts';
5
+ export * from './Get.ts';
6
+ export * from './Insert.ts';
7
+ export * from './Next.ts';
8
8
  import { ModuleQueries } from '@xyo-network/module-model';
9
- import { ArchivistAllQuery } from './All.js';
10
- import { ArchivistClearQuery } from './Clear.js';
11
- import { ArchivistCommitQuery } from './Commit.js';
12
- import { ArchivistDeleteQuery } from './Delete.js';
13
- import { ArchivistGetQuery } from './Get.js';
14
- import { ArchivistInsertQuery } from './Insert.js';
15
- import { ArchivistNextQuery } from './Next.js';
9
+ import { ArchivistAllQuery } from './All.ts';
10
+ import { ArchivistClearQuery } from './Clear.ts';
11
+ import { ArchivistCommitQuery } from './Commit.ts';
12
+ import { ArchivistDeleteQuery } from './Delete.ts';
13
+ import { ArchivistGetQuery } from './Get.ts';
14
+ import { ArchivistInsertQuery } from './Insert.ts';
15
+ import { ArchivistNextQuery } from './Next.ts';
16
16
  export type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery;
17
17
  export type ArchivistModuleQueries = ModuleQueries | ArchivistQueries;
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,18 @@
1
- export * from './All.js';
2
- export * from './Clear.js';
3
- export * from './Commit.js';
4
- export * from './Delete.js';
5
- export * from './Get.js';
6
- export * from './Insert.js';
7
- export * from './Next.js';
1
+ export * from './All.ts';
2
+ export * from './Clear.ts';
3
+ export * from './Commit.ts';
4
+ export * from './Delete.ts';
5
+ export * from './Get.ts';
6
+ export * from './Insert.ts';
7
+ export * from './Next.ts';
8
8
  import { ModuleQueries } from '@xyo-network/module-model';
9
- import { ArchivistAllQuery } from './All.js';
10
- import { ArchivistClearQuery } from './Clear.js';
11
- import { ArchivistCommitQuery } from './Commit.js';
12
- import { ArchivistDeleteQuery } from './Delete.js';
13
- import { ArchivistGetQuery } from './Get.js';
14
- import { ArchivistInsertQuery } from './Insert.js';
15
- import { ArchivistNextQuery } from './Next.js';
9
+ import { ArchivistAllQuery } from './All.ts';
10
+ import { ArchivistClearQuery } from './Clear.ts';
11
+ import { ArchivistCommitQuery } from './Commit.ts';
12
+ import { ArchivistDeleteQuery } from './Delete.ts';
13
+ import { ArchivistGetQuery } from './Get.ts';
14
+ import { ArchivistInsertQuery } from './Insert.ts';
15
+ import { ArchivistNextQuery } from './Next.ts';
16
16
  export type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery;
17
17
  export type ArchivistModuleQueries = ModuleQueries | ArchivistQueries;
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,18 @@
1
- export * from './All.js';
2
- export * from './Clear.js';
3
- export * from './Commit.js';
4
- export * from './Delete.js';
5
- export * from './Get.js';
6
- export * from './Insert.js';
7
- export * from './Next.js';
1
+ export * from './All.ts';
2
+ export * from './Clear.ts';
3
+ export * from './Commit.ts';
4
+ export * from './Delete.ts';
5
+ export * from './Get.ts';
6
+ export * from './Insert.ts';
7
+ export * from './Next.ts';
8
8
  import { ModuleQueries } from '@xyo-network/module-model';
9
- import { ArchivistAllQuery } from './All.js';
10
- import { ArchivistClearQuery } from './Clear.js';
11
- import { ArchivistCommitQuery } from './Commit.js';
12
- import { ArchivistDeleteQuery } from './Delete.js';
13
- import { ArchivistGetQuery } from './Get.js';
14
- import { ArchivistInsertQuery } from './Insert.js';
15
- import { ArchivistNextQuery } from './Next.js';
9
+ import { ArchivistAllQuery } from './All.ts';
10
+ import { ArchivistClearQuery } from './Clear.ts';
11
+ import { ArchivistCommitQuery } from './Commit.ts';
12
+ import { ArchivistDeleteQuery } from './Delete.ts';
13
+ import { ArchivistGetQuery } from './Get.ts';
14
+ import { ArchivistInsertQuery } from './Insert.ts';
15
+ import { ArchivistNextQuery } from './Next.ts';
16
16
  export type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery;
17
17
  export type ArchivistModuleQueries = ModuleQueries | ArchivistQueries;
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,7 @@ import { Hash } from '@xylabs/hex';
2
2
  import { Promisable, PromisableArray } from '@xylabs/promise';
3
3
  import { ModuleQueryFunctions } from '@xyo-network/module-model';
4
4
  import { Payload, WithMeta } from '@xyo-network/payload-model';
5
- import { NextOptions } from './NextOptions.js';
5
+ import { NextOptions } from './NextOptions.ts';
6
6
  export interface ReadArchivist<TReadResponse, TId = string> {
7
7
  all(): PromisableArray<TReadResponse>;
8
8
  get(ids: TId[]): PromisableArray<TReadResponse>;