@xyo-network/archivist-model 2.93.5 → 2.93.6

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 (74) hide show
  1. package/dist/browser/attachable/AttachableInstance.d.cts +12 -0
  2. package/dist/browser/attachable/AttachableInstance.d.cts.map +1 -0
  3. package/dist/browser/attachable/AttachableInstance.d.mts +12 -0
  4. package/dist/browser/attachable/AttachableInstance.d.mts.map +1 -0
  5. package/dist/browser/attachable/AttachableInstance.d.ts +12 -0
  6. package/dist/browser/attachable/AttachableInstance.d.ts.map +1 -0
  7. package/dist/browser/attachable/asAttachableInstance.d.cts +56 -0
  8. package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -0
  9. package/dist/browser/attachable/asAttachableInstance.d.mts +56 -0
  10. package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -0
  11. package/dist/browser/attachable/asAttachableInstance.d.ts +56 -0
  12. package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -0
  13. package/dist/browser/attachable/index.d.cts +4 -0
  14. package/dist/browser/attachable/index.d.cts.map +1 -0
  15. package/dist/browser/attachable/index.d.mts +4 -0
  16. package/dist/browser/attachable/index.d.mts.map +1 -0
  17. package/dist/browser/attachable/index.d.ts +4 -0
  18. package/dist/browser/attachable/index.d.ts.map +1 -0
  19. package/dist/browser/attachable/isAttachableInstance.d.cts +5 -0
  20. package/dist/browser/attachable/isAttachableInstance.d.cts.map +1 -0
  21. package/dist/browser/attachable/isAttachableInstance.d.mts +5 -0
  22. package/dist/browser/attachable/isAttachableInstance.d.mts.map +1 -0
  23. package/dist/browser/attachable/isAttachableInstance.d.ts +5 -0
  24. package/dist/browser/attachable/isAttachableInstance.d.ts.map +1 -0
  25. package/dist/browser/index.cjs +44 -12
  26. package/dist/browser/index.cjs.map +1 -1
  27. package/dist/browser/index.d.cts +1 -0
  28. package/dist/browser/index.d.cts.map +1 -1
  29. package/dist/browser/index.d.mts +1 -0
  30. package/dist/browser/index.d.mts.map +1 -1
  31. package/dist/browser/index.d.ts +1 -0
  32. package/dist/browser/index.d.ts.map +1 -1
  33. package/dist/browser/index.js +44 -12
  34. package/dist/browser/index.js.map +1 -1
  35. package/dist/node/attachable/AttachableInstance.d.cts +12 -0
  36. package/dist/node/attachable/AttachableInstance.d.cts.map +1 -0
  37. package/dist/node/attachable/AttachableInstance.d.mts +12 -0
  38. package/dist/node/attachable/AttachableInstance.d.mts.map +1 -0
  39. package/dist/node/attachable/AttachableInstance.d.ts +12 -0
  40. package/dist/node/attachable/AttachableInstance.d.ts.map +1 -0
  41. package/dist/node/attachable/asAttachableInstance.d.cts +56 -0
  42. package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -0
  43. package/dist/node/attachable/asAttachableInstance.d.mts +56 -0
  44. package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -0
  45. package/dist/node/attachable/asAttachableInstance.d.ts +56 -0
  46. package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -0
  47. package/dist/node/attachable/index.d.cts +4 -0
  48. package/dist/node/attachable/index.d.cts.map +1 -0
  49. package/dist/node/attachable/index.d.mts +4 -0
  50. package/dist/node/attachable/index.d.mts.map +1 -0
  51. package/dist/node/attachable/index.d.ts +4 -0
  52. package/dist/node/attachable/index.d.ts.map +1 -0
  53. package/dist/node/attachable/isAttachableInstance.d.cts +5 -0
  54. package/dist/node/attachable/isAttachableInstance.d.cts.map +1 -0
  55. package/dist/node/attachable/isAttachableInstance.d.mts +5 -0
  56. package/dist/node/attachable/isAttachableInstance.d.mts.map +1 -0
  57. package/dist/node/attachable/isAttachableInstance.d.ts +5 -0
  58. package/dist/node/attachable/isAttachableInstance.d.ts.map +1 -0
  59. package/dist/node/index.cjs +47 -12
  60. package/dist/node/index.cjs.map +1 -1
  61. package/dist/node/index.d.cts +1 -0
  62. package/dist/node/index.d.cts.map +1 -1
  63. package/dist/node/index.d.mts +1 -0
  64. package/dist/node/index.d.mts.map +1 -1
  65. package/dist/node/index.d.ts +1 -0
  66. package/dist/node/index.d.ts.map +1 -1
  67. package/dist/node/index.js +43 -12
  68. package/dist/node/index.js.map +1 -1
  69. package/package.json +4 -4
  70. package/src/attachable/AttachableInstance.ts +19 -0
  71. package/src/attachable/asAttachableInstance.ts +5 -0
  72. package/src/attachable/index.ts +3 -0
  73. package/src/attachable/isAttachableInstance.ts +15 -0
  74. package/src/index.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/IndexDescription.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/typeChecks.ts"],"sourcesContent":["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\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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","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 '../Archivist'\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 { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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"],"mappings":";;;;AAWO,IAAMA,wBAAwB;;;ACoB9B,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;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;ACLlE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,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;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
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'\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'\nimport { AttachableArchivistInstance } from './AttachableInstance'\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 { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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 '../Archivist'\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 { ArchivistModule, ArchivistModuleEventData } from '../Archivist'\nimport { ArchivistInstance } from '../ArchivistInstance'\nimport { ArchivistParams } from '../Params'\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\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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;AAkBpC,IAAMC,uCAAN,cAAwHC,iBAAAA;EAlB/H,OAkB+HA;;;AAAoB;;;ACP5I,IAAMC,wBAAwB;;;ACoB9B,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"]}
@@ -0,0 +1,12 @@
1
+ import { IsObjectFactory, TypeCheck } from '@xylabs/object';
2
+ import { AttachableModuleInstance } from '@xyo-network/module-model';
3
+ import { Payload } from '@xyo-network/payload-model';
4
+ import { ArchivistModule, ArchivistModuleEventData } from '../Archivist';
5
+ import { ArchivistInstance } from '../ArchivistInstance';
6
+ import { ArchivistParams } from '../Params';
7
+ export interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> {
8
+ }
9
+ export type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>;
10
+ export declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {
11
+ }
12
+ //# sourceMappingURL=AttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,WAAW,2BAA2B,CAC1C,OAAO,SAAS,eAAe,GAAG,eAAe,EACjD,UAAU,SAAS,wBAAwB,GAAG,wBAAwB,EACtE,QAAQ,SAAS,OAAO,GAAG,OAAO,CAClC,SAAQ,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC,EAC1C,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;CAAG;AAEvD,MAAM,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAEpI,qBAAa,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
@@ -0,0 +1,12 @@
1
+ import { IsObjectFactory, TypeCheck } from '@xylabs/object';
2
+ import { AttachableModuleInstance } from '@xyo-network/module-model';
3
+ import { Payload } from '@xyo-network/payload-model';
4
+ import { ArchivistModule, ArchivistModuleEventData } from '../Archivist';
5
+ import { ArchivistInstance } from '../ArchivistInstance';
6
+ import { ArchivistParams } from '../Params';
7
+ export interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> {
8
+ }
9
+ export type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>;
10
+ export declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {
11
+ }
12
+ //# sourceMappingURL=AttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,WAAW,2BAA2B,CAC1C,OAAO,SAAS,eAAe,GAAG,eAAe,EACjD,UAAU,SAAS,wBAAwB,GAAG,wBAAwB,EACtE,QAAQ,SAAS,OAAO,GAAG,OAAO,CAClC,SAAQ,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC,EAC1C,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;CAAG;AAEvD,MAAM,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAEpI,qBAAa,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
@@ -0,0 +1,12 @@
1
+ import { IsObjectFactory, TypeCheck } from '@xylabs/object';
2
+ import { AttachableModuleInstance } from '@xyo-network/module-model';
3
+ import { Payload } from '@xyo-network/payload-model';
4
+ import { ArchivistModule, ArchivistModuleEventData } from '../Archivist';
5
+ import { ArchivistInstance } from '../ArchivistInstance';
6
+ import { ArchivistParams } from '../Params';
7
+ export interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> {
8
+ }
9
+ export type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>;
10
+ export declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {
11
+ }
12
+ //# sourceMappingURL=AttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/AttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAA;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAE3C,MAAM,WAAW,2BAA2B,CAC1C,OAAO,SAAS,eAAe,GAAG,eAAe,EACjD,UAAU,SAAS,wBAAwB,GAAG,wBAAwB,EACtE,QAAQ,SAAS,OAAO,GAAG,OAAO,CAClC,SAAQ,eAAe,CAAC,OAAO,EAAE,UAAU,CAAC,EAC1C,wBAAwB,CAAC,OAAO,EAAE,UAAU,CAAC,EAC7C,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,CAAC;CAAG;AAEvD,MAAM,MAAM,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,IAAI,SAAS,CAAC,CAAC,CAAC,CAAA;AAEpI,qBAAa,oCAAoC,CAAC,CAAC,SAAS,2BAA2B,GAAG,2BAA2B,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;CAAG"}
@@ -0,0 +1,56 @@
1
+ export declare const asAttachableArchivistInstance: {
2
+ <TType extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ addToResolvers?: boolean | undefined;
5
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
6
+ parents?: import("..").ArchivistParents | undefined;
7
+ requireAllParents?: boolean | undefined;
8
+ schema: "network.xyo.archivist.config";
9
+ storeParentReads?: boolean | undefined;
10
+ }, "schema"> & {
11
+ schema: "network.xyo.archivist.config";
12
+ }, "schema"> & {
13
+ schema: string;
14
+ };
15
+ ephemeralQueryAccountEnabled?: boolean | undefined;
16
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
17
+ }, import("..").ArchivistModuleEventData, {
18
+ schema: string;
19
+ } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
20
+ <TType_1 extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
21
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
22
+ addToResolvers?: boolean | undefined;
23
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
24
+ parents?: import("..").ArchivistParents | undefined;
25
+ requireAllParents?: boolean | undefined;
26
+ schema: "network.xyo.archivist.config";
27
+ storeParentReads?: boolean | undefined;
28
+ }, "schema"> & {
29
+ schema: "network.xyo.archivist.config";
30
+ }, "schema"> & {
31
+ schema: string;
32
+ };
33
+ ephemeralQueryAccountEnabled?: boolean | undefined;
34
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
35
+ }, import("..").ArchivistModuleEventData, {
36
+ schema: string;
37
+ } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
38
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
39
+ addToResolvers?: boolean | undefined;
40
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
41
+ parents?: import("..").ArchivistParents | undefined;
42
+ requireAllParents?: boolean | undefined;
43
+ schema: "network.xyo.archivist.config";
44
+ storeParentReads?: boolean | undefined;
45
+ }, "schema"> & {
46
+ schema: "network.xyo.archivist.config";
47
+ }, "schema"> & {
48
+ schema: string;
49
+ };
50
+ ephemeralQueryAccountEnabled?: boolean | undefined;
51
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
52
+ }, import("..").ArchivistModuleEventData, {
53
+ schema: string;
54
+ } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
55
+ };
56
+ //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAA"}
@@ -0,0 +1,56 @@
1
+ export declare const asAttachableArchivistInstance: {
2
+ <TType extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ addToResolvers?: boolean | undefined;
5
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
6
+ parents?: import("..").ArchivistParents | undefined;
7
+ requireAllParents?: boolean | undefined;
8
+ schema: "network.xyo.archivist.config";
9
+ storeParentReads?: boolean | undefined;
10
+ }, "schema"> & {
11
+ schema: "network.xyo.archivist.config";
12
+ }, "schema"> & {
13
+ schema: string;
14
+ };
15
+ ephemeralQueryAccountEnabled?: boolean | undefined;
16
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
17
+ }, import("..").ArchivistModuleEventData, {
18
+ schema: string;
19
+ } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
20
+ <TType_1 extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
21
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
22
+ addToResolvers?: boolean | undefined;
23
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
24
+ parents?: import("..").ArchivistParents | undefined;
25
+ requireAllParents?: boolean | undefined;
26
+ schema: "network.xyo.archivist.config";
27
+ storeParentReads?: boolean | undefined;
28
+ }, "schema"> & {
29
+ schema: "network.xyo.archivist.config";
30
+ }, "schema"> & {
31
+ schema: string;
32
+ };
33
+ ephemeralQueryAccountEnabled?: boolean | undefined;
34
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
35
+ }, import("..").ArchivistModuleEventData, {
36
+ schema: string;
37
+ } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
38
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
39
+ addToResolvers?: boolean | undefined;
40
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
41
+ parents?: import("..").ArchivistParents | undefined;
42
+ requireAllParents?: boolean | undefined;
43
+ schema: "network.xyo.archivist.config";
44
+ storeParentReads?: boolean | undefined;
45
+ }, "schema"> & {
46
+ schema: "network.xyo.archivist.config";
47
+ }, "schema"> & {
48
+ schema: string;
49
+ };
50
+ ephemeralQueryAccountEnabled?: boolean | undefined;
51
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
52
+ }, import("..").ArchivistModuleEventData, {
53
+ schema: string;
54
+ } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
55
+ };
56
+ //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAA"}
@@ -0,0 +1,56 @@
1
+ export declare const asAttachableArchivistInstance: {
2
+ <TType extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
3
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
4
+ addToResolvers?: boolean | undefined;
5
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
6
+ parents?: import("..").ArchivistParents | undefined;
7
+ requireAllParents?: boolean | undefined;
8
+ schema: "network.xyo.archivist.config";
9
+ storeParentReads?: boolean | undefined;
10
+ }, "schema"> & {
11
+ schema: "network.xyo.archivist.config";
12
+ }, "schema"> & {
13
+ schema: string;
14
+ };
15
+ ephemeralQueryAccountEnabled?: boolean | undefined;
16
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
17
+ }, import("..").ArchivistModuleEventData, {
18
+ schema: string;
19
+ } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
20
+ <TType_1 extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
21
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
22
+ addToResolvers?: boolean | undefined;
23
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
24
+ parents?: import("..").ArchivistParents | undefined;
25
+ requireAllParents?: boolean | undefined;
26
+ schema: "network.xyo.archivist.config";
27
+ storeParentReads?: boolean | undefined;
28
+ }, "schema"> & {
29
+ schema: "network.xyo.archivist.config";
30
+ }, "schema"> & {
31
+ schema: string;
32
+ };
33
+ ephemeralQueryAccountEnabled?: boolean | undefined;
34
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
35
+ }, import("..").ArchivistModuleEventData, {
36
+ schema: string;
37
+ } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
38
+ account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
39
+ addToResolvers?: boolean | undefined;
40
+ config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & Omit<import("@xyo-network/module-model").ArchivingModuleConfig & import("@xyo-network/module-model").ModuleConfigFields & {
41
+ parents?: import("..").ArchivistParents | undefined;
42
+ requireAllParents?: boolean | undefined;
43
+ schema: "network.xyo.archivist.config";
44
+ storeParentReads?: boolean | undefined;
45
+ }, "schema"> & {
46
+ schema: "network.xyo.archivist.config";
47
+ }, "schema"> & {
48
+ schema: string;
49
+ };
50
+ ephemeralQueryAccountEnabled?: boolean | undefined;
51
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
52
+ }, import("..").ArchivistModuleEventData, {
53
+ schema: string;
54
+ } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
55
+ };
56
+ //# sourceMappingURL=asAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwD,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './asAttachableInstance';
2
+ export * from './AttachableInstance';
3
+ export * from './isAttachableInstance';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './asAttachableInstance';
2
+ export * from './AttachableInstance';
3
+ export * from './isAttachableInstance';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from './asAttachableInstance';
2
+ export * from './AttachableInstance';
3
+ export * from './isAttachableInstance';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/attachable/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableArchivistInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAElE,eAAO,MAAM,4CAA4C,EAAE,eAAoB,CAAA;AAK/E,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,2BAA2B,CAG/E,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableArchivistInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAElE,eAAO,MAAM,4CAA4C,EAAE,eAAoB,CAAA;AAK/E,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,2BAA2B,CAG/E,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableArchivistInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAElE,eAAO,MAAM,4CAA4C,EAAE,eAAoB,CAAA;AAK/E,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,2BAA2B,CAG/E,CAAA"}
@@ -30,27 +30,30 @@ __export(src_exports, {
30
30
  ArchivistInsertQuerySchema: () => ArchivistInsertQuerySchema,
31
31
  ArchivistNextQuerySchema: () => ArchivistNextQuerySchema,
32
32
  IndexSeparator: () => IndexSeparator,
33
+ IsAttachableArchivistInstanceFactory: () => IsAttachableArchivistInstanceFactory,
33
34
  asArchivistInstance: () => asArchivistInstance,
34
35
  asArchivistModule: () => asArchivistModule,
36
+ asAttachableArchivistInstance: () => asAttachableArchivistInstance,
35
37
  buildStandardIndexName: () => buildStandardIndexName,
36
38
  isArchivistInstance: () => isArchivistInstance,
37
39
  isArchivistModule: () => isArchivistModule,
40
+ isAttachableArchivistInstance: () => isAttachableArchivistInstance,
41
+ requiredAttachableArchivistInstanceFunctions: () => requiredAttachableArchivistInstanceFunctions,
38
42
  withArchivistInstance: () => withArchivistInstance,
39
43
  withArchivistModule: () => withArchivistModule
40
44
  });
41
45
  module.exports = __toCommonJS(src_exports);
42
46
 
43
- // src/Config.ts
44
- var ArchivistConfigSchema = "network.xyo.archivist.config";
47
+ // src/attachable/asAttachableInstance.ts
48
+ var import_object3 = require("@xylabs/object");
45
49
 
46
- // src/IndexDescription.ts
47
- var IndexSeparator = "-";
48
- var buildStandardIndexName = /* @__PURE__ */ __name((index) => {
49
- const { key, unique } = index;
50
- const prefix = unique ? "UX" : "IX";
51
- const indexKeys = Object.keys(key);
52
- return `${prefix}_${indexKeys.join(IndexSeparator)}`;
53
- }, "buildStandardIndexName");
50
+ // src/attachable/isAttachableInstance.ts
51
+ var import_object2 = require("@xylabs/object");
52
+ var import_module_model2 = require("@xyo-network/module-model");
53
+
54
+ // src/typeChecks.ts
55
+ var import_object = require("@xylabs/object");
56
+ var import_module_model = require("@xyo-network/module-model");
54
57
 
55
58
  // src/Queries/All.ts
56
59
  var ArchivistAllQuerySchema = "network.xyo.query.archivist.all";
@@ -74,8 +77,6 @@ var ArchivistInsertQuerySchema = "network.xyo.query.archivist.insert";
74
77
  var ArchivistNextQuerySchema = "network.xyo.query.archivist.next";
75
78
 
76
79
  // src/typeChecks.ts
77
- var import_object = require("@xylabs/object");
78
- var import_module_model = require("@xyo-network/module-model");
79
80
  var isArchivistInstance = new import_module_model.IsInstanceFactory().create({
80
81
  get: "function"
81
82
  }, [
@@ -88,6 +89,36 @@ var asArchivistModule = import_object.AsObjectFactory.create(isArchivistModule);
88
89
  var asArchivistInstance = import_object.AsObjectFactory.create(isArchivistInstance);
89
90
  var withArchivistModule = import_module_model.WithFactory.create(isArchivistModule);
90
91
  var withArchivistInstance = import_module_model.WithFactory.create(isArchivistInstance);
92
+
93
+ // src/attachable/isAttachableInstance.ts
94
+ var requiredAttachableArchivistInstanceFunctions = {};
95
+ var factory = new import_object2.IsObjectFactory();
96
+ var isAttachableArchivistInstance = factory.create(requiredAttachableArchivistInstanceFunctions, [
97
+ isArchivistInstance,
98
+ import_module_model2.isAttachableModuleInstance
99
+ ]);
100
+
101
+ // src/attachable/asAttachableInstance.ts
102
+ var asAttachableArchivistInstance = import_object3.AsObjectFactory.create(isAttachableArchivistInstance);
103
+
104
+ // src/attachable/AttachableInstance.ts
105
+ var import_object4 = require("@xylabs/object");
106
+ var _IsAttachableArchivistInstanceFactory = class _IsAttachableArchivistInstanceFactory extends import_object4.IsObjectFactory {
107
+ };
108
+ __name(_IsAttachableArchivistInstanceFactory, "IsAttachableArchivistInstanceFactory");
109
+ var IsAttachableArchivistInstanceFactory = _IsAttachableArchivistInstanceFactory;
110
+
111
+ // src/Config.ts
112
+ var ArchivistConfigSchema = "network.xyo.archivist.config";
113
+
114
+ // src/IndexDescription.ts
115
+ var IndexSeparator = "-";
116
+ var buildStandardIndexName = /* @__PURE__ */ __name((index) => {
117
+ const { key, unique } = index;
118
+ const prefix = unique ? "UX" : "IX";
119
+ const indexKeys = Object.keys(key);
120
+ return `${prefix}_${indexKeys.join(IndexSeparator)}`;
121
+ }, "buildStandardIndexName");
91
122
  // Annotate the CommonJS export names for ESM import in node:
92
123
  0 && (module.exports = {
93
124
  ArchivistAllQuerySchema,
@@ -99,11 +130,15 @@ var withArchivistInstance = import_module_model.WithFactory.create(isArchivistIn
99
130
  ArchivistInsertQuerySchema,
100
131
  ArchivistNextQuerySchema,
101
132
  IndexSeparator,
133
+ IsAttachableArchivistInstanceFactory,
102
134
  asArchivistInstance,
103
135
  asArchivistModule,
136
+ asAttachableArchivistInstance,
104
137
  buildStandardIndexName,
105
138
  isArchivistInstance,
106
139
  isArchivistModule,
140
+ isAttachableArchivistInstance,
141
+ requiredAttachableArchivistInstanceFunctions,
107
142
  withArchivistInstance,
108
143
  withArchivistModule
109
144
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/IndexDescription.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/typeChecks.ts"],"sourcesContent":["export * from './Archivist'\nexport * from './ArchivistInstance'\nexport * from './Config'\nexport * from './IndexDescription'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\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\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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","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 '../Archivist'\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 { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;ACWO,IAAMA,wBAAwB;;;ACoB9B,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;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;ACLlE,oBAAgC;AAChC,0BAAkF;AAM3E,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;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
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 './Archivist'\nexport * from './ArchivistInstance'\nexport * from './attachable'\nexport * from './Config'\nexport * from './IndexDescription'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance'\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'\nimport { AttachableArchivistInstance } from './AttachableInstance'\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 { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\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 '../Archivist'\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 { ArchivistModule, ArchivistModuleEventData } from '../Archivist'\nimport { ArchivistInstance } from '../ArchivistInstance'\nimport { ArchivistParams } from '../Params'\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\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\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 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;AAkBpC,IAAMC,wCAAN,MAAMA,8CAAkHC,+BAAAA;AAAoB;AAApBA;AAAxH,IAAMD,uCAAN;;;ACPA,IAAME,wBAAwB;;;ACoB9B,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,5 +1,6 @@
1
1
  export * from './Archivist';
2
2
  export * from './ArchivistInstance';
3
+ export * from './attachable';
3
4
  export * from './Config';
4
5
  export * from './IndexDescription';
5
6
  export * from './Params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './Archivist';
2
2
  export * from './ArchivistInstance';
3
+ export * from './attachable';
3
4
  export * from './Config';
4
5
  export * from './IndexDescription';
5
6
  export * from './Params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './Archivist';
2
2
  export * from './ArchivistInstance';
3
+ export * from './attachable';
3
4
  export * from './Config';
4
5
  export * from './IndexDescription';
5
6
  export * from './Params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}