@xyo-network/archivist-model 2.88.2 → 2.88.3
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 +1 -1
- package/dist/browser/Config.d.cts.map +1 -1
- package/dist/browser/Config.d.mts +1 -1
- package/dist/browser/Config.d.mts.map +1 -1
- package/dist/browser/Config.d.ts +1 -1
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/Params.d.cts +1 -1
- package/dist/browser/Params.d.cts.map +1 -1
- package/dist/browser/Params.d.mts +1 -1
- package/dist/browser/Params.d.mts.map +1 -1
- package/dist/browser/Params.d.ts +1 -1
- package/dist/browser/Params.d.ts.map +1 -1
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/typeChecks.d.cts +28 -12
- package/dist/browser/typeChecks.d.cts.map +1 -1
- package/dist/browser/typeChecks.d.mts +28 -12
- package/dist/browser/typeChecks.d.mts.map +1 -1
- package/dist/browser/typeChecks.d.ts +28 -12
- package/dist/browser/typeChecks.d.ts.map +1 -1
- package/dist/node/Config.d.cts +1 -1
- package/dist/node/Config.d.cts.map +1 -1
- package/dist/node/Config.d.mts +1 -1
- package/dist/node/Config.d.mts.map +1 -1
- package/dist/node/Config.d.ts +1 -1
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/Params.d.cts +1 -1
- package/dist/node/Params.d.cts.map +1 -1
- package/dist/node/Params.d.mts +1 -1
- package/dist/node/Params.d.mts.map +1 -1
- package/dist/node/Params.d.ts +1 -1
- package/dist/node/Params.d.ts.map +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -1
- package/dist/node/index.js.map +1 -1
- package/dist/node/typeChecks.d.cts +28 -12
- package/dist/node/typeChecks.d.cts.map +1 -1
- package/dist/node/typeChecks.d.mts +28 -12
- package/dist/node/typeChecks.d.mts.map +1 -1
- package/dist/node/typeChecks.d.ts +28 -12
- package/dist/node/typeChecks.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/Config.ts +1 -1
- package/src/Params.ts +1 -1
- package/src/typeChecks.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
3
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
3
|
-
import { EmptyObject, WithAdditional } from '@xyo-network/object';
|
|
4
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
5
5
|
export interface ArchivistParents {
|
|
6
6
|
commit?: Address[];
|
|
@@ -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,
|
|
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,iCAAiC,CAAA;AACnE,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;IACE,mEAAmE;IACnE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAC3E,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
3
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
3
|
-
import { EmptyObject, WithAdditional } from '@xyo-network/object';
|
|
4
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
5
5
|
export interface ArchivistParents {
|
|
6
6
|
commit?: Address[];
|
|
@@ -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,
|
|
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,iCAAiC,CAAA;AACnE,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;IACE,mEAAmE;IACnE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAC3E,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
package/dist/browser/Config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address } from '@xylabs/hex';
|
|
2
|
+
import { EmptyObject, WithAdditional } from '@xylabs/object';
|
|
2
3
|
import { ModuleConfig } from '@xyo-network/module-model';
|
|
3
|
-
import { EmptyObject, WithAdditional } from '@xyo-network/object';
|
|
4
4
|
import { Payload } from '@xyo-network/payload-model';
|
|
5
5
|
export interface ArchivistParents {
|
|
6
6
|
commit?: Address[];
|
|
@@ -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,
|
|
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,iCAAiC,CAAA;AACnE,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;IACE,mEAAmE;IACnE,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,MAAM,EAAE,OAAO,SAAS,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,qBAAqB,CAAA;IAC3E,wDAAwD;IACxD,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject } from '@xylabs/object';
|
|
1
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import { EmptyObject } from '@xyo-network/object';
|
|
3
3
|
import { ArchivistConfig } from './Config';
|
|
4
4
|
export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,MAAM,eAAe,CACzB,OAAO,SAAS,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC,eAAe,CAAC,EACnF,iBAAiB,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,IAC3D,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject } from '@xylabs/object';
|
|
1
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import { EmptyObject } from '@xyo-network/object';
|
|
3
3
|
import { ArchivistConfig } from './Config';
|
|
4
4
|
export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,MAAM,eAAe,CACzB,OAAO,SAAS,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC,eAAe,CAAC,EACnF,iBAAiB,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,IAC3D,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
package/dist/browser/Params.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { EmptyObject } from '@xylabs/object';
|
|
1
2
|
import { AnyConfigSchema, ModuleParams } from '@xyo-network/module-model';
|
|
2
|
-
import { EmptyObject } from '@xyo-network/object';
|
|
3
3
|
import { ArchivistConfig } from './Config';
|
|
4
4
|
export type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
|
|
5
5
|
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAEzE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,MAAM,MAAM,eAAe,CACzB,OAAO,SAAS,eAAe,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC,eAAe,CAAC,EACnF,iBAAiB,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,IAC3D,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA"}
|
package/dist/browser/index.cjs
CHANGED
|
@@ -70,8 +70,8 @@ var ArchivistGetQuerySchema = "network.xyo.query.archivist.get";
|
|
|
70
70
|
var ArchivistInsertQuerySchema = "network.xyo.query.archivist.insert";
|
|
71
71
|
|
|
72
72
|
// src/typeChecks.ts
|
|
73
|
+
var import_object = require("@xylabs/object");
|
|
73
74
|
var import_module_model = require("@xyo-network/module-model");
|
|
74
|
-
var import_object = require("@xyo-network/object");
|
|
75
75
|
var isArchivistInstance = new import_module_model.IsInstanceFactory().create({
|
|
76
76
|
get: "function"
|
|
77
77
|
}, [
|
|
@@ -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/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 {
|
|
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/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 { 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: string[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { 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: string[]\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 { 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;;;ACA/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACAzD,IAAMC,6BAAyD;;;ACHtE,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","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -32,8 +32,8 @@ var ArchivistGetQuerySchema = "network.xyo.query.archivist.get";
|
|
|
32
32
|
var ArchivistInsertQuerySchema = "network.xyo.query.archivist.insert";
|
|
33
33
|
|
|
34
34
|
// src/typeChecks.ts
|
|
35
|
+
import { AsObjectFactory } from "@xylabs/object";
|
|
35
36
|
import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
|
|
36
|
-
import { AsObjectFactory } from "@xyo-network/object";
|
|
37
37
|
var isArchivistInstance = new IsInstanceFactory().create({
|
|
38
38
|
get: "function"
|
|
39
39
|
}, [
|
|
@@ -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/typeChecks.ts"],"sourcesContent":["import { Address } from '@xylabs/hex'\nimport {
|
|
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/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 { 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: string[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { 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: string[]\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 { 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;;;ACA/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACAzD,IAAMC,6BAAyD;;;ACHtE,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","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArchivistModule } from './Archivist';
|
|
2
2
|
import { ArchivistInstance } from './ArchivistInstance';
|
|
3
|
-
export declare const isArchivistInstance: import("@
|
|
3
|
+
export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
5
5
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
6
6
|
readonly archivist?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const isArchivistInstance: import("@xyo-network/object").TypeChec
|
|
|
9
9
|
readonly paging?: Record<string, {
|
|
10
10
|
size?: number | undefined;
|
|
11
11
|
}> | undefined;
|
|
12
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
12
13
|
schema: "network.xyo.archivist.config";
|
|
13
14
|
readonly security?: {
|
|
14
15
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const isArchivistInstance: import("@xyo-network/object").TypeChec
|
|
|
25
26
|
readonly paging?: Record<string, {
|
|
26
27
|
size?: number | undefined;
|
|
27
28
|
}> | undefined;
|
|
29
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
28
30
|
schema: "network.xyo.archivist.config";
|
|
29
31
|
readonly security?: {
|
|
30
32
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -44,7 +46,7 @@ export declare const isArchivistInstance: import("@xyo-network/object").TypeChec
|
|
|
44
46
|
};
|
|
45
47
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
46
48
|
}, import("./Archivist").ArchivistModuleEventData>>;
|
|
47
|
-
export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModule<import("@
|
|
49
|
+
export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
48
50
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
49
51
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
50
52
|
readonly archivist?: string | undefined;
|
|
@@ -53,6 +55,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
53
55
|
readonly paging?: Record<string, {
|
|
54
56
|
size?: number | undefined;
|
|
55
57
|
}> | undefined;
|
|
58
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
56
59
|
schema: "network.xyo.archivist.config";
|
|
57
60
|
readonly security?: {
|
|
58
61
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -69,6 +72,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
69
72
|
readonly paging?: Record<string, {
|
|
70
73
|
size?: number | undefined;
|
|
71
74
|
}> | undefined;
|
|
75
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
72
76
|
schema: "network.xyo.archivist.config";
|
|
73
77
|
readonly security?: {
|
|
74
78
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -89,7 +93,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
89
93
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
90
94
|
}, import("./Archivist").ArchivistModuleEventData>>;
|
|
91
95
|
export declare const asArchivistModule: {
|
|
92
|
-
<TType extends ArchivistModule<import("@
|
|
96
|
+
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
93
97
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
94
98
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
95
99
|
readonly archivist?: string | undefined;
|
|
@@ -98,6 +102,7 @@ export declare const asArchivistModule: {
|
|
|
98
102
|
readonly paging?: Record<string, {
|
|
99
103
|
size?: number | undefined;
|
|
100
104
|
}> | undefined;
|
|
105
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
101
106
|
schema: "network.xyo.archivist.config";
|
|
102
107
|
readonly security?: {
|
|
103
108
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -114,6 +119,7 @@ export declare const asArchivistModule: {
|
|
|
114
119
|
readonly paging?: Record<string, {
|
|
115
120
|
size?: number | undefined;
|
|
116
121
|
}> | undefined;
|
|
122
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
117
123
|
schema: "network.xyo.archivist.config";
|
|
118
124
|
readonly security?: {
|
|
119
125
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -132,8 +138,8 @@ export declare const asArchivistModule: {
|
|
|
132
138
|
schema: string;
|
|
133
139
|
};
|
|
134
140
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
135
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@
|
|
136
|
-
<TType_1 extends ArchivistModule<import("@
|
|
141
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
142
|
+
<TType_1 extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
137
143
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
138
144
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
139
145
|
readonly archivist?: string | undefined;
|
|
@@ -142,6 +148,7 @@ export declare const asArchivistModule: {
|
|
|
142
148
|
readonly paging?: Record<string, {
|
|
143
149
|
size?: number | undefined;
|
|
144
150
|
}> | undefined;
|
|
151
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
145
152
|
schema: "network.xyo.archivist.config";
|
|
146
153
|
readonly security?: {
|
|
147
154
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -158,6 +165,7 @@ export declare const asArchivistModule: {
|
|
|
158
165
|
readonly paging?: Record<string, {
|
|
159
166
|
size?: number | undefined;
|
|
160
167
|
}> | undefined;
|
|
168
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
161
169
|
schema: "network.xyo.archivist.config";
|
|
162
170
|
readonly security?: {
|
|
163
171
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -176,10 +184,10 @@ export declare const asArchivistModule: {
|
|
|
176
184
|
schema: string;
|
|
177
185
|
};
|
|
178
186
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
179
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
187
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
180
188
|
};
|
|
181
189
|
export declare const asArchivistInstance: {
|
|
182
|
-
<TType extends ArchivistInstance<import("@
|
|
190
|
+
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
183
191
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
184
192
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
185
193
|
readonly archivist?: string | undefined;
|
|
@@ -188,6 +196,7 @@ export declare const asArchivistInstance: {
|
|
|
188
196
|
readonly paging?: Record<string, {
|
|
189
197
|
size?: number | undefined;
|
|
190
198
|
}> | undefined;
|
|
199
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
191
200
|
schema: "network.xyo.archivist.config";
|
|
192
201
|
readonly security?: {
|
|
193
202
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -204,6 +213,7 @@ export declare const asArchivistInstance: {
|
|
|
204
213
|
readonly paging?: Record<string, {
|
|
205
214
|
size?: number | undefined;
|
|
206
215
|
}> | undefined;
|
|
216
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
207
217
|
schema: "network.xyo.archivist.config";
|
|
208
218
|
readonly security?: {
|
|
209
219
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -222,8 +232,8 @@ export declare const asArchivistInstance: {
|
|
|
222
232
|
schema: string;
|
|
223
233
|
};
|
|
224
234
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
225
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@
|
|
226
|
-
<TType_1 extends ArchivistInstance<import("@
|
|
235
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
236
|
+
<TType_1 extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
227
237
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
228
238
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
229
239
|
readonly archivist?: string | undefined;
|
|
@@ -232,6 +242,7 @@ export declare const asArchivistInstance: {
|
|
|
232
242
|
readonly paging?: Record<string, {
|
|
233
243
|
size?: number | undefined;
|
|
234
244
|
}> | undefined;
|
|
245
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
235
246
|
schema: "network.xyo.archivist.config";
|
|
236
247
|
readonly security?: {
|
|
237
248
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -248,6 +259,7 @@ export declare const asArchivistInstance: {
|
|
|
248
259
|
readonly paging?: Record<string, {
|
|
249
260
|
size?: number | undefined;
|
|
250
261
|
}> | undefined;
|
|
262
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
251
263
|
schema: "network.xyo.archivist.config";
|
|
252
264
|
readonly security?: {
|
|
253
265
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -266,9 +278,9 @@ export declare const asArchivistInstance: {
|
|
|
266
278
|
schema: string;
|
|
267
279
|
};
|
|
268
280
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
269
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
281
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
270
282
|
};
|
|
271
|
-
export declare const withArchivistModule: <R>(module: any, closure: (module: ArchivistModule<import("@
|
|
283
|
+
export declare const withArchivistModule: <R>(module: any, closure: (module: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
272
284
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
273
285
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
274
286
|
readonly archivist?: string | undefined;
|
|
@@ -277,6 +289,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
277
289
|
readonly paging?: Record<string, {
|
|
278
290
|
size?: number | undefined;
|
|
279
291
|
}> | undefined;
|
|
292
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
280
293
|
schema: "network.xyo.archivist.config";
|
|
281
294
|
readonly security?: {
|
|
282
295
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -293,6 +306,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
293
306
|
readonly paging?: Record<string, {
|
|
294
307
|
size?: number | undefined;
|
|
295
308
|
}> | undefined;
|
|
309
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
296
310
|
schema: "network.xyo.archivist.config";
|
|
297
311
|
readonly security?: {
|
|
298
312
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -312,7 +326,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
312
326
|
};
|
|
313
327
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
314
328
|
}, import("./Archivist").ArchivistModuleEventData>) => R) => R | undefined;
|
|
315
|
-
export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@
|
|
329
|
+
export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
316
330
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
317
331
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
318
332
|
readonly archivist?: string | undefined;
|
|
@@ -321,6 +335,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
321
335
|
readonly paging?: Record<string, {
|
|
322
336
|
size?: number | undefined;
|
|
323
337
|
}> | undefined;
|
|
338
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
324
339
|
schema: "network.xyo.archivist.config";
|
|
325
340
|
readonly security?: {
|
|
326
341
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -337,6 +352,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
337
352
|
readonly paging?: Record<string, {
|
|
338
353
|
size?: number | undefined;
|
|
339
354
|
}> | undefined;
|
|
355
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
340
356
|
schema: "network.xyo.archivist.config";
|
|
341
357
|
readonly security?: {
|
|
342
358
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGvD,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGvD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAA6F,CAAA;AAC7H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAA2E,CAAA;AAEzG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AAC1E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA8C,CAAA;AAC9E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAAwC,CAAA;AACxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAA0C,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArchivistModule } from './Archivist';
|
|
2
2
|
import { ArchivistInstance } from './ArchivistInstance';
|
|
3
|
-
export declare const isArchivistInstance: import("@
|
|
3
|
+
export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
4
4
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
5
5
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
6
6
|
readonly archivist?: string | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const isArchivistInstance: import("@xyo-network/object").TypeChec
|
|
|
9
9
|
readonly paging?: Record<string, {
|
|
10
10
|
size?: number | undefined;
|
|
11
11
|
}> | undefined;
|
|
12
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
12
13
|
schema: "network.xyo.archivist.config";
|
|
13
14
|
readonly security?: {
|
|
14
15
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const isArchivistInstance: import("@xyo-network/object").TypeChec
|
|
|
25
26
|
readonly paging?: Record<string, {
|
|
26
27
|
size?: number | undefined;
|
|
27
28
|
}> | undefined;
|
|
29
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
28
30
|
schema: "network.xyo.archivist.config";
|
|
29
31
|
readonly security?: {
|
|
30
32
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -44,7 +46,7 @@ export declare const isArchivistInstance: import("@xyo-network/object").TypeChec
|
|
|
44
46
|
};
|
|
45
47
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
46
48
|
}, import("./Archivist").ArchivistModuleEventData>>;
|
|
47
|
-
export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModule<import("@
|
|
49
|
+
export declare const isArchivistModule: import("@xyo-network/module-model").ModuleTypeCheck<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
48
50
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
49
51
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
50
52
|
readonly archivist?: string | undefined;
|
|
@@ -53,6 +55,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
53
55
|
readonly paging?: Record<string, {
|
|
54
56
|
size?: number | undefined;
|
|
55
57
|
}> | undefined;
|
|
58
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
56
59
|
schema: "network.xyo.archivist.config";
|
|
57
60
|
readonly security?: {
|
|
58
61
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -69,6 +72,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
69
72
|
readonly paging?: Record<string, {
|
|
70
73
|
size?: number | undefined;
|
|
71
74
|
}> | undefined;
|
|
75
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
72
76
|
schema: "network.xyo.archivist.config";
|
|
73
77
|
readonly security?: {
|
|
74
78
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -89,7 +93,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
|
|
|
89
93
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
90
94
|
}, import("./Archivist").ArchivistModuleEventData>>;
|
|
91
95
|
export declare const asArchivistModule: {
|
|
92
|
-
<TType extends ArchivistModule<import("@
|
|
96
|
+
<TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
93
97
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
94
98
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
95
99
|
readonly archivist?: string | undefined;
|
|
@@ -98,6 +102,7 @@ export declare const asArchivistModule: {
|
|
|
98
102
|
readonly paging?: Record<string, {
|
|
99
103
|
size?: number | undefined;
|
|
100
104
|
}> | undefined;
|
|
105
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
101
106
|
schema: "network.xyo.archivist.config";
|
|
102
107
|
readonly security?: {
|
|
103
108
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -114,6 +119,7 @@ export declare const asArchivistModule: {
|
|
|
114
119
|
readonly paging?: Record<string, {
|
|
115
120
|
size?: number | undefined;
|
|
116
121
|
}> | undefined;
|
|
122
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
117
123
|
schema: "network.xyo.archivist.config";
|
|
118
124
|
readonly security?: {
|
|
119
125
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -132,8 +138,8 @@ export declare const asArchivistModule: {
|
|
|
132
138
|
schema: string;
|
|
133
139
|
};
|
|
134
140
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
135
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@
|
|
136
|
-
<TType_1 extends ArchivistModule<import("@
|
|
141
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
142
|
+
<TType_1 extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
137
143
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
138
144
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
139
145
|
readonly archivist?: string | undefined;
|
|
@@ -142,6 +148,7 @@ export declare const asArchivistModule: {
|
|
|
142
148
|
readonly paging?: Record<string, {
|
|
143
149
|
size?: number | undefined;
|
|
144
150
|
}> | undefined;
|
|
151
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
145
152
|
schema: "network.xyo.archivist.config";
|
|
146
153
|
readonly security?: {
|
|
147
154
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -158,6 +165,7 @@ export declare const asArchivistModule: {
|
|
|
158
165
|
readonly paging?: Record<string, {
|
|
159
166
|
size?: number | undefined;
|
|
160
167
|
}> | undefined;
|
|
168
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
161
169
|
schema: "network.xyo.archivist.config";
|
|
162
170
|
readonly security?: {
|
|
163
171
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -176,10 +184,10 @@ export declare const asArchivistModule: {
|
|
|
176
184
|
schema: string;
|
|
177
185
|
};
|
|
178
186
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
179
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
187
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
180
188
|
};
|
|
181
189
|
export declare const asArchivistInstance: {
|
|
182
|
-
<TType extends ArchivistInstance<import("@
|
|
190
|
+
<TType extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
183
191
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
184
192
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
185
193
|
readonly archivist?: string | undefined;
|
|
@@ -188,6 +196,7 @@ export declare const asArchivistInstance: {
|
|
|
188
196
|
readonly paging?: Record<string, {
|
|
189
197
|
size?: number | undefined;
|
|
190
198
|
}> | undefined;
|
|
199
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
191
200
|
schema: "network.xyo.archivist.config";
|
|
192
201
|
readonly security?: {
|
|
193
202
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -204,6 +213,7 @@ export declare const asArchivistInstance: {
|
|
|
204
213
|
readonly paging?: Record<string, {
|
|
205
214
|
size?: number | undefined;
|
|
206
215
|
}> | undefined;
|
|
216
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
207
217
|
schema: "network.xyo.archivist.config";
|
|
208
218
|
readonly security?: {
|
|
209
219
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -222,8 +232,8 @@ export declare const asArchivistInstance: {
|
|
|
222
232
|
schema: string;
|
|
223
233
|
};
|
|
224
234
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
225
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@
|
|
226
|
-
<TType_1 extends ArchivistInstance<import("@
|
|
235
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
|
|
236
|
+
<TType_1 extends ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
227
237
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
228
238
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
229
239
|
readonly archivist?: string | undefined;
|
|
@@ -232,6 +242,7 @@ export declare const asArchivistInstance: {
|
|
|
232
242
|
readonly paging?: Record<string, {
|
|
233
243
|
size?: number | undefined;
|
|
234
244
|
}> | undefined;
|
|
245
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
235
246
|
schema: "network.xyo.archivist.config";
|
|
236
247
|
readonly security?: {
|
|
237
248
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -248,6 +259,7 @@ export declare const asArchivistInstance: {
|
|
|
248
259
|
readonly paging?: Record<string, {
|
|
249
260
|
size?: number | undefined;
|
|
250
261
|
}> | undefined;
|
|
262
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
251
263
|
schema: "network.xyo.archivist.config";
|
|
252
264
|
readonly security?: {
|
|
253
265
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -266,9 +278,9 @@ export declare const asArchivistInstance: {
|
|
|
266
278
|
schema: string;
|
|
267
279
|
};
|
|
268
280
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
269
|
-
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@
|
|
281
|
+
}, import("./Archivist").ArchivistModuleEventData>>(value: unknown, assert: string | (() => string), config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
|
|
270
282
|
};
|
|
271
|
-
export declare const withArchivistModule: <R>(module: any, closure: (module: ArchivistModule<import("@
|
|
283
|
+
export declare const withArchivistModule: <R>(module: any, closure: (module: ArchivistModule<import("@xylabs/object").BaseParamsFields & {
|
|
272
284
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
273
285
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
274
286
|
readonly archivist?: string | undefined;
|
|
@@ -277,6 +289,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
277
289
|
readonly paging?: Record<string, {
|
|
278
290
|
size?: number | undefined;
|
|
279
291
|
}> | undefined;
|
|
292
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
280
293
|
schema: "network.xyo.archivist.config";
|
|
281
294
|
readonly security?: {
|
|
282
295
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -293,6 +306,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
293
306
|
readonly paging?: Record<string, {
|
|
294
307
|
size?: number | undefined;
|
|
295
308
|
}> | undefined;
|
|
309
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
296
310
|
schema: "network.xyo.archivist.config";
|
|
297
311
|
readonly security?: {
|
|
298
312
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -312,7 +326,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
|
|
|
312
326
|
};
|
|
313
327
|
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
314
328
|
}, import("./Archivist").ArchivistModuleEventData>) => R) => R | undefined;
|
|
315
|
-
export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@
|
|
329
|
+
export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
|
|
316
330
|
account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
|
|
317
331
|
config: import("@xyo-network/payload-model").SchemaFields & object & Omit<{
|
|
318
332
|
readonly archivist?: string | undefined;
|
|
@@ -321,6 +335,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
321
335
|
readonly paging?: Record<string, {
|
|
322
336
|
size?: number | undefined;
|
|
323
337
|
}> | undefined;
|
|
338
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
324
339
|
schema: "network.xyo.archivist.config";
|
|
325
340
|
readonly security?: {
|
|
326
341
|
readonly allowAnonymous?: boolean | undefined;
|
|
@@ -337,6 +352,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
|
|
|
337
352
|
readonly paging?: Record<string, {
|
|
338
353
|
size?: number | undefined;
|
|
339
354
|
}> | undefined;
|
|
355
|
+
readonly retry?: import("@xylabs/retry").RetryConfig | undefined;
|
|
340
356
|
schema: "network.xyo.archivist.config";
|
|
341
357
|
readonly security?: {
|
|
342
358
|
readonly allowAnonymous?: boolean | undefined;
|