@xyo-network/archivist-model 2.107.5 → 2.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Config.d.cts +5 -0
- package/dist/browser/Config.d.cts.map +1 -1
- package/dist/browser/Config.d.mts +5 -0
- package/dist/browser/Config.d.mts.map +1 -1
- package/dist/browser/Config.d.ts +5 -0
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.cts +6 -3
- package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.mts +6 -3
- package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/browser/attachable/asAttachableInstance.d.ts +6 -3
- package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +18 -8
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +18 -8
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +18 -8
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/neutral/Config.d.cts +5 -0
- package/dist/neutral/Config.d.cts.map +1 -1
- package/dist/neutral/Config.d.mts +5 -0
- package/dist/neutral/Config.d.mts.map +1 -1
- package/dist/neutral/Config.d.ts +5 -0
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.cts +6 -3
- package/dist/neutral/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.mts +6 -3
- package/dist/neutral/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +6 -3
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/neutral/typeChecks.d.cts +18 -8
- package/dist/neutral/typeChecks.d.cts.map +1 -1
- package/dist/neutral/typeChecks.d.mts +18 -8
- package/dist/neutral/typeChecks.d.mts.map +1 -1
- package/dist/neutral/typeChecks.d.ts +18 -8
- package/dist/neutral/typeChecks.d.ts.map +1 -1
- package/dist/node/Config.d.cts +5 -0
- package/dist/node/Config.d.cts.map +1 -1
- package/dist/node/Config.d.mts +5 -0
- package/dist/node/Config.d.mts.map +1 -1
- package/dist/node/Config.d.ts +5 -0
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.cts +6 -3
- package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.mts +6 -3
- package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -1
- package/dist/node/attachable/asAttachableInstance.d.ts +6 -3
- package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +18 -8
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +18 -8
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +18 -8
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +11 -11
- package/src/Config.ts +9 -0
|
@@ -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'\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 { ArchivistInstance } from './Instance'\nimport { ArchivistModule } from './Module'\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 '../NextOptions'\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'\nimport { ArchivistInstance } from '../Instance'\nimport { ArchivistModule } from '../Module'\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' 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 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;;;ACR5I,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"]}
|
|
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 { ArchivistInstance } from './Instance'\nimport { ArchivistModule } from './Module'\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 '../NextOptions'\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'\nimport { ArchivistInstance } from '../Instance'\nimport { ArchivistModule } from '../Module'\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\nimport { IndexDescription } from './IndexDescription'\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"]}
|
|
@@ -9,6 +9,7 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
|
|
|
9
9
|
parents?: import("./Config").ArchivistParents;
|
|
10
10
|
requireAllParents?: boolean;
|
|
11
11
|
schema: "network.xyo.archivist.config";
|
|
12
|
+
storage?: import("./Config").ArchivistStorage;
|
|
12
13
|
storeParentReads?: boolean;
|
|
13
14
|
}, "schema"> & {
|
|
14
15
|
schema: "network.xyo.archivist.config";
|
|
@@ -29,6 +30,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
29
30
|
parents?: import("./Config").ArchivistParents;
|
|
30
31
|
requireAllParents?: boolean;
|
|
31
32
|
schema: "network.xyo.archivist.config";
|
|
33
|
+
storage?: import("./Config").ArchivistStorage;
|
|
32
34
|
storeParentReads?: boolean;
|
|
33
35
|
}, "schema"> & {
|
|
34
36
|
schema: "network.xyo.archivist.config";
|
|
@@ -48,6 +50,7 @@ export declare const asArchivistModule: {
|
|
|
48
50
|
parents?: import("./Config").ArchivistParents;
|
|
49
51
|
requireAllParents?: boolean;
|
|
50
52
|
schema: "network.xyo.archivist.config";
|
|
53
|
+
storage?: import("./Config").ArchivistStorage;
|
|
51
54
|
storeParentReads?: boolean;
|
|
52
55
|
}, "schema"> & {
|
|
53
56
|
schema: "network.xyo.archivist.config";
|
|
@@ -56,8 +59,8 @@ export declare const asArchivistModule: {
|
|
|
56
59
|
};
|
|
57
60
|
ephemeralQueryAccountEnabled?: boolean;
|
|
58
61
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
59
|
-
}, import("./EventData").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
60
|
-
<
|
|
62
|
+
}, import("./EventData").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
63
|
+
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
61
64
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
62
65
|
addToResolvers?: boolean;
|
|
63
66
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -66,6 +69,7 @@ export declare const asArchivistModule: {
|
|
|
66
69
|
parents?: import("./Config").ArchivistParents;
|
|
67
70
|
requireAllParents?: boolean;
|
|
68
71
|
schema: "network.xyo.archivist.config";
|
|
72
|
+
storage?: import("./Config").ArchivistStorage;
|
|
69
73
|
storeParentReads?: boolean;
|
|
70
74
|
}, "schema"> & {
|
|
71
75
|
schema: "network.xyo.archivist.config";
|
|
@@ -83,6 +87,7 @@ export declare const asArchivistModule: {
|
|
|
83
87
|
parents?: import("./Config").ArchivistParents;
|
|
84
88
|
requireAllParents?: boolean;
|
|
85
89
|
schema: "network.xyo.archivist.config";
|
|
90
|
+
storage?: import("./Config").ArchivistStorage;
|
|
86
91
|
storeParentReads?: boolean;
|
|
87
92
|
}, "schema"> & {
|
|
88
93
|
schema: "network.xyo.archivist.config";
|
|
@@ -91,7 +96,7 @@ export declare const asArchivistModule: {
|
|
|
91
96
|
};
|
|
92
97
|
ephemeralQueryAccountEnabled?: boolean;
|
|
93
98
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
|
-
}, import("./EventData").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
99
|
+
}, import("./EventData").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
95
100
|
};
|
|
96
101
|
export declare const asArchivistInstance: {
|
|
97
102
|
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -103,6 +108,7 @@ export declare const asArchivistInstance: {
|
|
|
103
108
|
parents?: import("./Config").ArchivistParents;
|
|
104
109
|
requireAllParents?: boolean;
|
|
105
110
|
schema: "network.xyo.archivist.config";
|
|
111
|
+
storage?: import("./Config").ArchivistStorage;
|
|
106
112
|
storeParentReads?: boolean;
|
|
107
113
|
}, "schema"> & {
|
|
108
114
|
schema: "network.xyo.archivist.config";
|
|
@@ -113,8 +119,8 @@ export declare const asArchivistInstance: {
|
|
|
113
119
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
114
120
|
}, import("./EventData").ArchivistModuleEventData, {
|
|
115
121
|
schema: string;
|
|
116
|
-
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
117
|
-
<
|
|
122
|
+
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
123
|
+
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
118
124
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
119
125
|
addToResolvers?: boolean;
|
|
120
126
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -123,6 +129,7 @@ export declare const asArchivistInstance: {
|
|
|
123
129
|
parents?: import("./Config").ArchivistParents;
|
|
124
130
|
requireAllParents?: boolean;
|
|
125
131
|
schema: "network.xyo.archivist.config";
|
|
132
|
+
storage?: import("./Config").ArchivistStorage;
|
|
126
133
|
storeParentReads?: boolean;
|
|
127
134
|
}, "schema"> & {
|
|
128
135
|
schema: "network.xyo.archivist.config";
|
|
@@ -142,6 +149,7 @@ export declare const asArchivistInstance: {
|
|
|
142
149
|
parents?: import("./Config").ArchivistParents;
|
|
143
150
|
requireAllParents?: boolean;
|
|
144
151
|
schema: "network.xyo.archivist.config";
|
|
152
|
+
storage?: import("./Config").ArchivistStorage;
|
|
145
153
|
storeParentReads?: boolean;
|
|
146
154
|
}, "schema"> & {
|
|
147
155
|
schema: "network.xyo.archivist.config";
|
|
@@ -152,9 +160,9 @@ export declare const asArchivistInstance: {
|
|
|
152
160
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
153
161
|
}, import("./EventData").ArchivistModuleEventData, {
|
|
154
162
|
schema: string;
|
|
155
|
-
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
163
|
+
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
156
164
|
};
|
|
157
|
-
export declare const withArchivistModule: <R>(
|
|
165
|
+
export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
158
166
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
159
167
|
addToResolvers?: boolean;
|
|
160
168
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -163,6 +171,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
163
171
|
parents?: import("./Config").ArchivistParents;
|
|
164
172
|
requireAllParents?: boolean;
|
|
165
173
|
schema: "network.xyo.archivist.config";
|
|
174
|
+
storage?: import("./Config").ArchivistStorage;
|
|
166
175
|
storeParentReads?: boolean;
|
|
167
176
|
}, "schema"> & {
|
|
168
177
|
schema: "network.xyo.archivist.config";
|
|
@@ -172,7 +181,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
172
181
|
ephemeralQueryAccountEnabled?: boolean;
|
|
173
182
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
174
183
|
}, import("./EventData").ArchivistModuleEventData>) => R) => R | undefined;
|
|
175
|
-
export declare const withArchivistInstance: <R>(
|
|
184
|
+
export declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
176
185
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
177
186
|
addToResolvers?: boolean;
|
|
178
187
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -181,6 +190,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
181
190
|
parents?: import("./Config").ArchivistParents;
|
|
182
191
|
requireAllParents?: boolean;
|
|
183
192
|
schema: "network.xyo.archivist.config";
|
|
193
|
+
storage?: import("./Config").ArchivistStorage;
|
|
184
194
|
storeParentReads?: boolean;
|
|
185
195
|
}, "schema"> & {
|
|
186
196
|
schema: "network.xyo.archivist.config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;wDAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;mDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;sEANE,iBAC3B,iCAAiC,gBAEpC;;;;;;;;;;;;;;;;;;;sEAA+E,iBAAiB;;;;;;;;;;;;;;;;;;yEACjC,gBAAiB;CAER,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;2EAPA,iBAC3B,iCAAiC,gBAEpC;;;;;;;;;;;;;;;;;;;;;2EAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;8EACjC,gBAAiB;CAGJ,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;0EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
|
|
@@ -9,6 +9,7 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
|
|
|
9
9
|
parents?: import("./Config").ArchivistParents;
|
|
10
10
|
requireAllParents?: boolean;
|
|
11
11
|
schema: "network.xyo.archivist.config";
|
|
12
|
+
storage?: import("./Config").ArchivistStorage;
|
|
12
13
|
storeParentReads?: boolean;
|
|
13
14
|
}, "schema"> & {
|
|
14
15
|
schema: "network.xyo.archivist.config";
|
|
@@ -29,6 +30,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
29
30
|
parents?: import("./Config").ArchivistParents;
|
|
30
31
|
requireAllParents?: boolean;
|
|
31
32
|
schema: "network.xyo.archivist.config";
|
|
33
|
+
storage?: import("./Config").ArchivistStorage;
|
|
32
34
|
storeParentReads?: boolean;
|
|
33
35
|
}, "schema"> & {
|
|
34
36
|
schema: "network.xyo.archivist.config";
|
|
@@ -48,6 +50,7 @@ export declare const asArchivistModule: {
|
|
|
48
50
|
parents?: import("./Config").ArchivistParents;
|
|
49
51
|
requireAllParents?: boolean;
|
|
50
52
|
schema: "network.xyo.archivist.config";
|
|
53
|
+
storage?: import("./Config").ArchivistStorage;
|
|
51
54
|
storeParentReads?: boolean;
|
|
52
55
|
}, "schema"> & {
|
|
53
56
|
schema: "network.xyo.archivist.config";
|
|
@@ -56,8 +59,8 @@ export declare const asArchivistModule: {
|
|
|
56
59
|
};
|
|
57
60
|
ephemeralQueryAccountEnabled?: boolean;
|
|
58
61
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
59
|
-
}, import("./EventData").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
60
|
-
<
|
|
62
|
+
}, import("./EventData").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
63
|
+
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
61
64
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
62
65
|
addToResolvers?: boolean;
|
|
63
66
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -66,6 +69,7 @@ export declare const asArchivistModule: {
|
|
|
66
69
|
parents?: import("./Config").ArchivistParents;
|
|
67
70
|
requireAllParents?: boolean;
|
|
68
71
|
schema: "network.xyo.archivist.config";
|
|
72
|
+
storage?: import("./Config").ArchivistStorage;
|
|
69
73
|
storeParentReads?: boolean;
|
|
70
74
|
}, "schema"> & {
|
|
71
75
|
schema: "network.xyo.archivist.config";
|
|
@@ -83,6 +87,7 @@ export declare const asArchivistModule: {
|
|
|
83
87
|
parents?: import("./Config").ArchivistParents;
|
|
84
88
|
requireAllParents?: boolean;
|
|
85
89
|
schema: "network.xyo.archivist.config";
|
|
90
|
+
storage?: import("./Config").ArchivistStorage;
|
|
86
91
|
storeParentReads?: boolean;
|
|
87
92
|
}, "schema"> & {
|
|
88
93
|
schema: "network.xyo.archivist.config";
|
|
@@ -91,7 +96,7 @@ export declare const asArchivistModule: {
|
|
|
91
96
|
};
|
|
92
97
|
ephemeralQueryAccountEnabled?: boolean;
|
|
93
98
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
|
-
}, import("./EventData").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
99
|
+
}, import("./EventData").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
95
100
|
};
|
|
96
101
|
export declare const asArchivistInstance: {
|
|
97
102
|
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -103,6 +108,7 @@ export declare const asArchivistInstance: {
|
|
|
103
108
|
parents?: import("./Config").ArchivistParents;
|
|
104
109
|
requireAllParents?: boolean;
|
|
105
110
|
schema: "network.xyo.archivist.config";
|
|
111
|
+
storage?: import("./Config").ArchivistStorage;
|
|
106
112
|
storeParentReads?: boolean;
|
|
107
113
|
}, "schema"> & {
|
|
108
114
|
schema: "network.xyo.archivist.config";
|
|
@@ -113,8 +119,8 @@ export declare const asArchivistInstance: {
|
|
|
113
119
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
114
120
|
}, import("./EventData").ArchivistModuleEventData, {
|
|
115
121
|
schema: string;
|
|
116
|
-
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
117
|
-
<
|
|
122
|
+
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
123
|
+
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
118
124
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
119
125
|
addToResolvers?: boolean;
|
|
120
126
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -123,6 +129,7 @@ export declare const asArchivistInstance: {
|
|
|
123
129
|
parents?: import("./Config").ArchivistParents;
|
|
124
130
|
requireAllParents?: boolean;
|
|
125
131
|
schema: "network.xyo.archivist.config";
|
|
132
|
+
storage?: import("./Config").ArchivistStorage;
|
|
126
133
|
storeParentReads?: boolean;
|
|
127
134
|
}, "schema"> & {
|
|
128
135
|
schema: "network.xyo.archivist.config";
|
|
@@ -142,6 +149,7 @@ export declare const asArchivistInstance: {
|
|
|
142
149
|
parents?: import("./Config").ArchivistParents;
|
|
143
150
|
requireAllParents?: boolean;
|
|
144
151
|
schema: "network.xyo.archivist.config";
|
|
152
|
+
storage?: import("./Config").ArchivistStorage;
|
|
145
153
|
storeParentReads?: boolean;
|
|
146
154
|
}, "schema"> & {
|
|
147
155
|
schema: "network.xyo.archivist.config";
|
|
@@ -152,9 +160,9 @@ export declare const asArchivistInstance: {
|
|
|
152
160
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
153
161
|
}, import("./EventData").ArchivistModuleEventData, {
|
|
154
162
|
schema: string;
|
|
155
|
-
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
163
|
+
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
156
164
|
};
|
|
157
|
-
export declare const withArchivistModule: <R>(
|
|
165
|
+
export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
158
166
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
159
167
|
addToResolvers?: boolean;
|
|
160
168
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -163,6 +171,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
163
171
|
parents?: import("./Config").ArchivistParents;
|
|
164
172
|
requireAllParents?: boolean;
|
|
165
173
|
schema: "network.xyo.archivist.config";
|
|
174
|
+
storage?: import("./Config").ArchivistStorage;
|
|
166
175
|
storeParentReads?: boolean;
|
|
167
176
|
}, "schema"> & {
|
|
168
177
|
schema: "network.xyo.archivist.config";
|
|
@@ -172,7 +181,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
172
181
|
ephemeralQueryAccountEnabled?: boolean;
|
|
173
182
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
174
183
|
}, import("./EventData").ArchivistModuleEventData>) => R) => R | undefined;
|
|
175
|
-
export declare const withArchivistInstance: <R>(
|
|
184
|
+
export declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
176
185
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
177
186
|
addToResolvers?: boolean;
|
|
178
187
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -181,6 +190,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
181
190
|
parents?: import("./Config").ArchivistParents;
|
|
182
191
|
requireAllParents?: boolean;
|
|
183
192
|
schema: "network.xyo.archivist.config";
|
|
193
|
+
storage?: import("./Config").ArchivistStorage;
|
|
184
194
|
storeParentReads?: boolean;
|
|
185
195
|
}, "schema"> & {
|
|
186
196
|
schema: "network.xyo.archivist.config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;wDAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;mDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;sEANE,iBAC3B,iCAAiC,gBAEpC;;;;;;;;;;;;;;;;;;;sEAA+E,iBAAiB;;;;;;;;;;;;;;;;;;yEACjC,gBAAiB;CAER,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;2EAPA,iBAC3B,iCAAiC,gBAEpC;;;;;;;;;;;;;;;;;;;;;2EAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;8EACjC,gBAAiB;CAGJ,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;0EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
|
|
@@ -9,6 +9,7 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
|
|
|
9
9
|
parents?: import("./Config").ArchivistParents;
|
|
10
10
|
requireAllParents?: boolean;
|
|
11
11
|
schema: "network.xyo.archivist.config";
|
|
12
|
+
storage?: import("./Config").ArchivistStorage;
|
|
12
13
|
storeParentReads?: boolean;
|
|
13
14
|
}, "schema"> & {
|
|
14
15
|
schema: "network.xyo.archivist.config";
|
|
@@ -29,6 +30,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
29
30
|
parents?: import("./Config").ArchivistParents;
|
|
30
31
|
requireAllParents?: boolean;
|
|
31
32
|
schema: "network.xyo.archivist.config";
|
|
33
|
+
storage?: import("./Config").ArchivistStorage;
|
|
32
34
|
storeParentReads?: boolean;
|
|
33
35
|
}, "schema"> & {
|
|
34
36
|
schema: "network.xyo.archivist.config";
|
|
@@ -48,6 +50,7 @@ export declare const asArchivistModule: {
|
|
|
48
50
|
parents?: import("./Config").ArchivistParents;
|
|
49
51
|
requireAllParents?: boolean;
|
|
50
52
|
schema: "network.xyo.archivist.config";
|
|
53
|
+
storage?: import("./Config").ArchivistStorage;
|
|
51
54
|
storeParentReads?: boolean;
|
|
52
55
|
}, "schema"> & {
|
|
53
56
|
schema: "network.xyo.archivist.config";
|
|
@@ -56,8 +59,8 @@ export declare const asArchivistModule: {
|
|
|
56
59
|
};
|
|
57
60
|
ephemeralQueryAccountEnabled?: boolean;
|
|
58
61
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
59
|
-
}, import("./EventData").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
60
|
-
<
|
|
62
|
+
}, import("./EventData").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
63
|
+
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
61
64
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
62
65
|
addToResolvers?: boolean;
|
|
63
66
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -66,6 +69,7 @@ export declare const asArchivistModule: {
|
|
|
66
69
|
parents?: import("./Config").ArchivistParents;
|
|
67
70
|
requireAllParents?: boolean;
|
|
68
71
|
schema: "network.xyo.archivist.config";
|
|
72
|
+
storage?: import("./Config").ArchivistStorage;
|
|
69
73
|
storeParentReads?: boolean;
|
|
70
74
|
}, "schema"> & {
|
|
71
75
|
schema: "network.xyo.archivist.config";
|
|
@@ -83,6 +87,7 @@ export declare const asArchivistModule: {
|
|
|
83
87
|
parents?: import("./Config").ArchivistParents;
|
|
84
88
|
requireAllParents?: boolean;
|
|
85
89
|
schema: "network.xyo.archivist.config";
|
|
90
|
+
storage?: import("./Config").ArchivistStorage;
|
|
86
91
|
storeParentReads?: boolean;
|
|
87
92
|
}, "schema"> & {
|
|
88
93
|
schema: "network.xyo.archivist.config";
|
|
@@ -91,7 +96,7 @@ export declare const asArchivistModule: {
|
|
|
91
96
|
};
|
|
92
97
|
ephemeralQueryAccountEnabled?: boolean;
|
|
93
98
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
94
|
-
}, import("./EventData").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
99
|
+
}, import("./EventData").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
95
100
|
};
|
|
96
101
|
export declare const asArchivistInstance: {
|
|
97
102
|
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
@@ -103,6 +108,7 @@ export declare const asArchivistInstance: {
|
|
|
103
108
|
parents?: import("./Config").ArchivistParents;
|
|
104
109
|
requireAllParents?: boolean;
|
|
105
110
|
schema: "network.xyo.archivist.config";
|
|
111
|
+
storage?: import("./Config").ArchivistStorage;
|
|
106
112
|
storeParentReads?: boolean;
|
|
107
113
|
}, "schema"> & {
|
|
108
114
|
schema: "network.xyo.archivist.config";
|
|
@@ -113,8 +119,8 @@ export declare const asArchivistInstance: {
|
|
|
113
119
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
114
120
|
}, import("./EventData").ArchivistModuleEventData, {
|
|
115
121
|
schema: string;
|
|
116
|
-
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
117
|
-
<
|
|
122
|
+
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
123
|
+
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
118
124
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
119
125
|
addToResolvers?: boolean;
|
|
120
126
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -123,6 +129,7 @@ export declare const asArchivistInstance: {
|
|
|
123
129
|
parents?: import("./Config").ArchivistParents;
|
|
124
130
|
requireAllParents?: boolean;
|
|
125
131
|
schema: "network.xyo.archivist.config";
|
|
132
|
+
storage?: import("./Config").ArchivistStorage;
|
|
126
133
|
storeParentReads?: boolean;
|
|
127
134
|
}, "schema"> & {
|
|
128
135
|
schema: "network.xyo.archivist.config";
|
|
@@ -142,6 +149,7 @@ export declare const asArchivistInstance: {
|
|
|
142
149
|
parents?: import("./Config").ArchivistParents;
|
|
143
150
|
requireAllParents?: boolean;
|
|
144
151
|
schema: "network.xyo.archivist.config";
|
|
152
|
+
storage?: import("./Config").ArchivistStorage;
|
|
145
153
|
storeParentReads?: boolean;
|
|
146
154
|
}, "schema"> & {
|
|
147
155
|
schema: "network.xyo.archivist.config";
|
|
@@ -152,9 +160,9 @@ export declare const asArchivistInstance: {
|
|
|
152
160
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
153
161
|
}, import("./EventData").ArchivistModuleEventData, {
|
|
154
162
|
schema: string;
|
|
155
|
-
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
163
|
+
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
156
164
|
};
|
|
157
|
-
export declare const withArchivistModule: <R>(
|
|
165
|
+
export declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
158
166
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
159
167
|
addToResolvers?: boolean;
|
|
160
168
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -163,6 +171,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
163
171
|
parents?: import("./Config").ArchivistParents;
|
|
164
172
|
requireAllParents?: boolean;
|
|
165
173
|
schema: "network.xyo.archivist.config";
|
|
174
|
+
storage?: import("./Config").ArchivistStorage;
|
|
166
175
|
storeParentReads?: boolean;
|
|
167
176
|
}, "schema"> & {
|
|
168
177
|
schema: "network.xyo.archivist.config";
|
|
@@ -172,7 +181,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
172
181
|
ephemeralQueryAccountEnabled?: boolean;
|
|
173
182
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
174
183
|
}, import("./EventData").ArchivistModuleEventData>) => R) => R | undefined;
|
|
175
|
-
export declare const withArchivistInstance: <R>(
|
|
184
|
+
export declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
176
185
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
177
186
|
addToResolvers?: boolean;
|
|
178
187
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -181,6 +190,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
181
190
|
parents?: import("./Config").ArchivistParents;
|
|
182
191
|
requireAllParents?: boolean;
|
|
183
192
|
schema: "network.xyo.archivist.config";
|
|
193
|
+
storage?: import("./Config").ArchivistStorage;
|
|
184
194
|
storeParentReads?: boolean;
|
|
185
195
|
}, "schema"> & {
|
|
186
196
|
schema: "network.xyo.archivist.config";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAG1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;wDAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;mDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;sEANE,iBAC3B,iCAAiC,gBAEpC;;;;;;;;;;;;;;;;;;;sEAA+E,iBAAiB;;;;;;;;;;;;;;;;;;yEACjC,gBAAiB;CAER,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;2EAPA,iBAC3B,iCAAiC,gBAEpC;;;;;;;;;;;;;;;;;;;;;2EAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;8EACjC,gBAAiB;CAGJ,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;0EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
|
package/dist/node/Config.d.cts
CHANGED
|
@@ -2,17 +2,22 @@ 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';
|
|
5
6
|
export interface ArchivistParents {
|
|
6
7
|
commit?: Address[];
|
|
7
8
|
read?: Address[];
|
|
8
9
|
write?: Address[];
|
|
9
10
|
}
|
|
11
|
+
export interface ArchivistStorage {
|
|
12
|
+
indexes?: IndexDescription[];
|
|
13
|
+
}
|
|
10
14
|
export declare const ArchivistConfigSchema: "network.xyo.archivist.config";
|
|
11
15
|
export type ArchivistConfigSchema = typeof ArchivistConfigSchema;
|
|
12
16
|
export type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
13
17
|
parents?: ArchivistParents;
|
|
14
18
|
requireAllParents?: boolean;
|
|
15
19
|
schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema;
|
|
20
|
+
storage?: ArchivistStorage;
|
|
16
21
|
storeParentReads?: boolean;
|
|
17
22
|
}, TConfig>, TSchema>;
|
|
18
23
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB;AAED,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IAEE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAE3E,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAE/B,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B;AAED,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IAEE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAE3E,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
package/dist/node/Config.d.mts
CHANGED
|
@@ -2,17 +2,22 @@ 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';
|
|
5
6
|
export interface ArchivistParents {
|
|
6
7
|
commit?: Address[];
|
|
7
8
|
read?: Address[];
|
|
8
9
|
write?: Address[];
|
|
9
10
|
}
|
|
11
|
+
export interface ArchivistStorage {
|
|
12
|
+
indexes?: IndexDescription[];
|
|
13
|
+
}
|
|
10
14
|
export declare const ArchivistConfigSchema: "network.xyo.archivist.config";
|
|
11
15
|
export type ArchivistConfigSchema = typeof ArchivistConfigSchema;
|
|
12
16
|
export type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
13
17
|
parents?: ArchivistParents;
|
|
14
18
|
requireAllParents?: boolean;
|
|
15
19
|
schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema;
|
|
20
|
+
storage?: ArchivistStorage;
|
|
16
21
|
storeParentReads?: boolean;
|
|
17
22
|
}, TConfig>, TSchema>;
|
|
18
23
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB;AAED,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IAEE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAE3E,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAE/B,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B;AAED,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IAEE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAE3E,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
package/dist/node/Config.d.ts
CHANGED
|
@@ -2,17 +2,22 @@ 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';
|
|
5
6
|
export interface ArchivistParents {
|
|
6
7
|
commit?: Address[];
|
|
7
8
|
read?: Address[];
|
|
8
9
|
write?: Address[];
|
|
9
10
|
}
|
|
11
|
+
export interface ArchivistStorage {
|
|
12
|
+
indexes?: IndexDescription[];
|
|
13
|
+
}
|
|
10
14
|
export declare const ArchivistConfigSchema: "network.xyo.archivist.config";
|
|
11
15
|
export type ArchivistConfigSchema = typeof ArchivistConfigSchema;
|
|
12
16
|
export type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
13
17
|
parents?: ArchivistParents;
|
|
14
18
|
requireAllParents?: boolean;
|
|
15
19
|
schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema;
|
|
20
|
+
storage?: ArchivistStorage;
|
|
16
21
|
storeParentReads?: boolean;
|
|
17
22
|
}, TConfig>, TSchema>;
|
|
18
23
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB;AAED,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IAEE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAE3E,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,OAAO,EAAE,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAE/B,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAA;CAC7B;AAED,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA;AAEhE,MAAM,MAAM,eAAe,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,YAAY,CACnI,cAAc,CACZ;IAEE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAE3E,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAE1B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
@@ -8,6 +8,7 @@ export declare const asAttachableArchivistInstance: {
|
|
|
8
8
|
parents?: import("..").ArchivistParents;
|
|
9
9
|
requireAllParents?: boolean;
|
|
10
10
|
schema: "network.xyo.archivist.config";
|
|
11
|
+
storage?: import("..").ArchivistStorage;
|
|
11
12
|
storeParentReads?: boolean;
|
|
12
13
|
}, "schema"> & {
|
|
13
14
|
schema: "network.xyo.archivist.config";
|
|
@@ -18,8 +19,8 @@ export declare const asAttachableArchivistInstance: {
|
|
|
18
19
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
19
20
|
}, import("..").ArchivistModuleEventData, {
|
|
20
21
|
schema: string;
|
|
21
|
-
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig
|
|
22
|
-
<
|
|
22
|
+
} & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise, config?: import("@xylabs/object").TypeCheckConfig): TType | undefined;
|
|
23
|
+
<TType extends import("./AttachableInstance").AttachableArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
23
24
|
account?: import("@xyo-network/account-model").AccountInstance | "random";
|
|
24
25
|
addToResolvers?: boolean;
|
|
25
26
|
additionalSigners?: import("@xyo-network/account-model").AccountInstance[];
|
|
@@ -28,6 +29,7 @@ export declare const asAttachableArchivistInstance: {
|
|
|
28
29
|
parents?: import("..").ArchivistParents;
|
|
29
30
|
requireAllParents?: boolean;
|
|
30
31
|
schema: "network.xyo.archivist.config";
|
|
32
|
+
storage?: import("..").ArchivistStorage;
|
|
31
33
|
storeParentReads?: boolean;
|
|
32
34
|
}, "schema"> & {
|
|
33
35
|
schema: "network.xyo.archivist.config";
|
|
@@ -47,6 +49,7 @@ export declare const asAttachableArchivistInstance: {
|
|
|
47
49
|
parents?: import("..").ArchivistParents;
|
|
48
50
|
requireAllParents?: boolean;
|
|
49
51
|
schema: "network.xyo.archivist.config";
|
|
52
|
+
storage?: import("..").ArchivistStorage;
|
|
50
53
|
storeParentReads?: boolean;
|
|
51
54
|
}, "schema"> & {
|
|
52
55
|
schema: "network.xyo.archivist.config";
|
|
@@ -57,6 +60,6 @@ export declare const asAttachableArchivistInstance: {
|
|
|
57
60
|
moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[];
|
|
58
61
|
}, import("..").ArchivistModuleEventData, {
|
|
59
62
|
schema: string;
|
|
60
|
-
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig
|
|
63
|
+
} & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig): TType;
|
|
61
64
|
};
|
|
62
65
|
//# sourceMappingURL=asAttachableInstance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"asAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/asAttachableInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;2EACzB,iBAAiB,iCAAiC,gBAAiB;;;;;;;;;;;;;;;;;;;;;2EAA+E,iBAAiB;;;;;;;;;;;;;;;;;;;;8EAA6F,gBAAiB;CADhM,CAAA"}
|