@xyo-network/archivist-model 2.93.4 → 2.93.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/browser/attachable/AttachableInstance.d.cts +12 -0
  2. package/dist/browser/attachable/AttachableInstance.d.cts.map +1 -0
  3. package/dist/browser/attachable/AttachableInstance.d.mts +12 -0
  4. package/dist/browser/attachable/AttachableInstance.d.mts.map +1 -0
  5. package/dist/browser/attachable/AttachableInstance.d.ts +12 -0
  6. package/dist/browser/attachable/AttachableInstance.d.ts.map +1 -0
  7. package/dist/browser/attachable/asAttachableInstance.d.cts +56 -0
  8. package/dist/browser/attachable/asAttachableInstance.d.cts.map +1 -0
  9. package/dist/browser/attachable/asAttachableInstance.d.mts +56 -0
  10. package/dist/browser/attachable/asAttachableInstance.d.mts.map +1 -0
  11. package/dist/browser/attachable/asAttachableInstance.d.ts +56 -0
  12. package/dist/browser/attachable/asAttachableInstance.d.ts.map +1 -0
  13. package/dist/browser/attachable/index.d.cts +4 -0
  14. package/dist/browser/attachable/index.d.cts.map +1 -0
  15. package/dist/browser/attachable/index.d.mts +4 -0
  16. package/dist/browser/attachable/index.d.mts.map +1 -0
  17. package/dist/browser/attachable/index.d.ts +4 -0
  18. package/dist/browser/attachable/index.d.ts.map +1 -0
  19. package/dist/browser/attachable/isAttachableInstance.d.cts +5 -0
  20. package/dist/browser/attachable/isAttachableInstance.d.cts.map +1 -0
  21. package/dist/browser/attachable/isAttachableInstance.d.mts +5 -0
  22. package/dist/browser/attachable/isAttachableInstance.d.mts.map +1 -0
  23. package/dist/browser/attachable/isAttachableInstance.d.ts +5 -0
  24. package/dist/browser/attachable/isAttachableInstance.d.ts.map +1 -0
  25. package/dist/browser/index.cjs +44 -12
  26. package/dist/browser/index.cjs.map +1 -1
  27. package/dist/browser/index.d.cts +1 -0
  28. package/dist/browser/index.d.cts.map +1 -1
  29. package/dist/browser/index.d.mts +1 -0
  30. package/dist/browser/index.d.mts.map +1 -1
  31. package/dist/browser/index.d.ts +1 -0
  32. package/dist/browser/index.d.ts.map +1 -1
  33. package/dist/browser/index.js +44 -12
  34. package/dist/browser/index.js.map +1 -1
  35. package/dist/browser/typeChecks.d.cts +10 -0
  36. package/dist/browser/typeChecks.d.cts.map +1 -1
  37. package/dist/browser/typeChecks.d.mts +10 -0
  38. package/dist/browser/typeChecks.d.mts.map +1 -1
  39. package/dist/browser/typeChecks.d.ts +10 -0
  40. package/dist/browser/typeChecks.d.ts.map +1 -1
  41. package/dist/node/attachable/AttachableInstance.d.cts +12 -0
  42. package/dist/node/attachable/AttachableInstance.d.cts.map +1 -0
  43. package/dist/node/attachable/AttachableInstance.d.mts +12 -0
  44. package/dist/node/attachable/AttachableInstance.d.mts.map +1 -0
  45. package/dist/node/attachable/AttachableInstance.d.ts +12 -0
  46. package/dist/node/attachable/AttachableInstance.d.ts.map +1 -0
  47. package/dist/node/attachable/asAttachableInstance.d.cts +56 -0
  48. package/dist/node/attachable/asAttachableInstance.d.cts.map +1 -0
  49. package/dist/node/attachable/asAttachableInstance.d.mts +56 -0
  50. package/dist/node/attachable/asAttachableInstance.d.mts.map +1 -0
  51. package/dist/node/attachable/asAttachableInstance.d.ts +56 -0
  52. package/dist/node/attachable/asAttachableInstance.d.ts.map +1 -0
  53. package/dist/node/attachable/index.d.cts +4 -0
  54. package/dist/node/attachable/index.d.cts.map +1 -0
  55. package/dist/node/attachable/index.d.mts +4 -0
  56. package/dist/node/attachable/index.d.mts.map +1 -0
  57. package/dist/node/attachable/index.d.ts +4 -0
  58. package/dist/node/attachable/index.d.ts.map +1 -0
  59. package/dist/node/attachable/isAttachableInstance.d.cts +5 -0
  60. package/dist/node/attachable/isAttachableInstance.d.cts.map +1 -0
  61. package/dist/node/attachable/isAttachableInstance.d.mts +5 -0
  62. package/dist/node/attachable/isAttachableInstance.d.mts.map +1 -0
  63. package/dist/node/attachable/isAttachableInstance.d.ts +5 -0
  64. package/dist/node/attachable/isAttachableInstance.d.ts.map +1 -0
  65. package/dist/node/index.cjs +47 -12
  66. package/dist/node/index.cjs.map +1 -1
  67. package/dist/node/index.d.cts +1 -0
  68. package/dist/node/index.d.cts.map +1 -1
  69. package/dist/node/index.d.mts +1 -0
  70. package/dist/node/index.d.mts.map +1 -1
  71. package/dist/node/index.d.ts +1 -0
  72. package/dist/node/index.d.ts.map +1 -1
  73. package/dist/node/index.js +43 -12
  74. package/dist/node/index.js.map +1 -1
  75. package/dist/node/typeChecks.d.cts +10 -0
  76. package/dist/node/typeChecks.d.cts.map +1 -1
  77. package/dist/node/typeChecks.d.mts +10 -0
  78. package/dist/node/typeChecks.d.mts.map +1 -1
  79. package/dist/node/typeChecks.d.ts +10 -0
  80. package/dist/node/typeChecks.d.ts.map +1 -1
  81. package/package.json +4 -4
  82. package/src/attachable/AttachableInstance.ts +19 -0
  83. package/src/attachable/asAttachableInstance.ts +5 -0
  84. package/src/attachable/index.ts +3 -0
  85. package/src/attachable/isAttachableInstance.ts +15 -0
  86. package/src/index.ts +1 -0
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableArchivistInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAElE,eAAO,MAAM,4CAA4C,EAAE,eAAoB,CAAA;AAK/E,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,2BAA2B,CAG/E,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { ObjectTypeShape, TypeCheck } from '@xylabs/object';
2
+ import { AttachableArchivistInstance } from './AttachableInstance';
3
+ export declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
4
+ export declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
5
+ //# sourceMappingURL=isAttachableInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isAttachableInstance.d.ts","sourceRoot":"","sources":["../../../src/attachable/isAttachableInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAI5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAElE,eAAO,MAAM,4CAA4C,EAAE,eAAoB,CAAA;AAK/E,eAAO,MAAM,6BAA6B,EAAE,SAAS,CAAC,2BAA2B,CAG/E,CAAA"}
@@ -30,27 +30,30 @@ __export(src_exports, {
30
30
  ArchivistInsertQuerySchema: () => ArchivistInsertQuerySchema,
31
31
  ArchivistNextQuerySchema: () => ArchivistNextQuerySchema,
32
32
  IndexSeparator: () => IndexSeparator,
33
+ IsAttachableArchivistInstanceFactory: () => IsAttachableArchivistInstanceFactory,
33
34
  asArchivistInstance: () => asArchivistInstance,
34
35
  asArchivistModule: () => asArchivistModule,
36
+ asAttachableArchivistInstance: () => asAttachableArchivistInstance,
35
37
  buildStandardIndexName: () => buildStandardIndexName,
36
38
  isArchivistInstance: () => isArchivistInstance,
37
39
  isArchivistModule: () => isArchivistModule,
40
+ isAttachableArchivistInstance: () => isAttachableArchivistInstance,
41
+ requiredAttachableArchivistInstanceFunctions: () => requiredAttachableArchivistInstanceFunctions,
38
42
  withArchivistInstance: () => withArchivistInstance,
39
43
  withArchivistModule: () => withArchivistModule
40
44
  });
41
45
  module.exports = __toCommonJS(src_exports);
42
46
 
43
- // src/Config.ts
44
- var ArchivistConfigSchema = "network.xyo.archivist.config";
47
+ // src/attachable/asAttachableInstance.ts
48
+ var import_object3 = require("@xylabs/object");
45
49
 
46
- // src/IndexDescription.ts
47
- var IndexSeparator = "-";
48
- var buildStandardIndexName = /* @__PURE__ */ __name((index) => {
49
- const { key, unique } = index;
50
- const prefix = unique ? "UX" : "IX";
51
- const indexKeys = Object.keys(key);
52
- return `${prefix}_${indexKeys.join(IndexSeparator)}`;
53
- }, "buildStandardIndexName");
50
+ // src/attachable/isAttachableInstance.ts
51
+ var import_object2 = require("@xylabs/object");
52
+ var import_module_model2 = require("@xyo-network/module-model");
53
+
54
+ // src/typeChecks.ts
55
+ var import_object = require("@xylabs/object");
56
+ var import_module_model = require("@xyo-network/module-model");
54
57
 
55
58
  // src/Queries/All.ts
56
59
  var ArchivistAllQuerySchema = "network.xyo.query.archivist.all";
@@ -74,8 +77,6 @@ var ArchivistInsertQuerySchema = "network.xyo.query.archivist.insert";
74
77
  var ArchivistNextQuerySchema = "network.xyo.query.archivist.next";
75
78
 
76
79
  // src/typeChecks.ts
77
- var import_object = require("@xylabs/object");
78
- var import_module_model = require("@xyo-network/module-model");
79
80
  var isArchivistInstance = new import_module_model.IsInstanceFactory().create({
80
81
  get: "function"
81
82
  }, [
@@ -88,6 +89,36 @@ var asArchivistModule = import_object.AsObjectFactory.create(isArchivistModule);
88
89
  var asArchivistInstance = import_object.AsObjectFactory.create(isArchivistInstance);
89
90
  var withArchivistModule = import_module_model.WithFactory.create(isArchivistModule);
90
91
  var withArchivistInstance = import_module_model.WithFactory.create(isArchivistInstance);
92
+
93
+ // src/attachable/isAttachableInstance.ts
94
+ var requiredAttachableArchivistInstanceFunctions = {};
95
+ var factory = new import_object2.IsObjectFactory();
96
+ var isAttachableArchivistInstance = factory.create(requiredAttachableArchivistInstanceFunctions, [
97
+ isArchivistInstance,
98
+ import_module_model2.isAttachableModuleInstance
99
+ ]);
100
+
101
+ // src/attachable/asAttachableInstance.ts
102
+ var asAttachableArchivistInstance = import_object3.AsObjectFactory.create(isAttachableArchivistInstance);
103
+
104
+ // src/attachable/AttachableInstance.ts
105
+ var import_object4 = require("@xylabs/object");
106
+ var _IsAttachableArchivistInstanceFactory = class _IsAttachableArchivistInstanceFactory extends import_object4.IsObjectFactory {
107
+ };
108
+ __name(_IsAttachableArchivistInstanceFactory, "IsAttachableArchivistInstanceFactory");
109
+ var IsAttachableArchivistInstanceFactory = _IsAttachableArchivistInstanceFactory;
110
+
111
+ // src/Config.ts
112
+ var ArchivistConfigSchema = "network.xyo.archivist.config";
113
+
114
+ // src/IndexDescription.ts
115
+ var IndexSeparator = "-";
116
+ var buildStandardIndexName = /* @__PURE__ */ __name((index) => {
117
+ const { key, unique } = index;
118
+ const prefix = unique ? "UX" : "IX";
119
+ const indexKeys = Object.keys(key);
120
+ return `${prefix}_${indexKeys.join(IndexSeparator)}`;
121
+ }, "buildStandardIndexName");
91
122
  // Annotate the CommonJS export names for ESM import in node:
92
123
  0 && (module.exports = {
93
124
  ArchivistAllQuerySchema,
@@ -99,11 +130,15 @@ var withArchivistInstance = import_module_model.WithFactory.create(isArchivistIn
99
130
  ArchivistInsertQuerySchema,
100
131
  ArchivistNextQuerySchema,
101
132
  IndexSeparator,
133
+ IsAttachableArchivistInstanceFactory,
102
134
  asArchivistInstance,
103
135
  asArchivistModule,
136
+ asAttachableArchivistInstance,
104
137
  buildStandardIndexName,
105
138
  isArchivistInstance,
106
139
  isArchivistModule,
140
+ isAttachableArchivistInstance,
141
+ requiredAttachableArchivistInstanceFunctions,
107
142
  withArchivistInstance,
108
143
  withArchivistModule
109
144
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/IndexDescription.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Archivist'\nexport * from './ArchivistInstance'\nexport * from './Config'\nexport * from './IndexDescription'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../Archivist'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;ACWO,IAAMA,wBAAwB;;;ACoB9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;ACLlE,oBAAgC;AAChC,0BAAkF;AAM3E,IAAMC,sBAAsB,IAAIC,sCAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,oCAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,8BAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,8BAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,gCAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,gCAAYV,OAAOF,mBAAAA;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["export * from './Archivist'\nexport * from './ArchivistInstance'\nexport * from './attachable'\nexport * from './Config'\nexport * from './IndexDescription'\nexport * from './Params'\nexport * from './Queries'\nexport * from './typeChecks'\n","import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks'\nimport { AttachableArchivistInstance } from './AttachableInstance'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../Archivist'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { ArchivistModule, ArchivistModuleEventData } from '../Archivist'\nimport { ArchivistInstance } from '../ArchivistInstance'\nimport { ArchivistParams } from '../Params'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA,IAAAA,iBAAgC;;;ACAhC,IAAAC,iBAA4D;AAC5D,IAAAC,uBAA2C;;;ACD3C,oBAAgC;AAChC,0BAAkF;;;ACE3E,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;APE3D,IAAMC,sBAAsB,IAAIC,sCAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,oCAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,8BAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,8BAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,gCAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,gCAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,+BAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADVM,IAAMC,gCAAgCC,+BAAgBC,OAAOC,6BAAAA;;;AUJpE,IAAAC,iBAA2C;AAkBpC,IAAMC,wCAAN,MAAMA,8CAAkHC,+BAAAA;AAAoB;AAApBA;AAAxH,IAAMD,uCAAN;;;ACPA,IAAME,wBAAwB;;;ACoB9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["import_object","import_object","import_module_model","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance","requiredAttachableArchivistInstanceFunctions","factory","IsObjectFactory","isAttachableArchivistInstance","create","isArchivistInstance","isAttachableModuleInstance","asAttachableArchivistInstance","AsObjectFactory","create","isAttachableArchivistInstance","import_object","IsAttachableArchivistInstanceFactory","IsObjectFactory","ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join"]}
@@ -1,5 +1,6 @@
1
1
  export * from './Archivist';
2
2
  export * from './ArchivistInstance';
3
+ export * from './attachable';
3
4
  export * from './Config';
4
5
  export * from './IndexDescription';
5
6
  export * from './Params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './Archivist';
2
2
  export * from './ArchivistInstance';
3
+ export * from './attachable';
3
4
  export * from './Config';
4
5
  export * from './IndexDescription';
5
6
  export * from './Params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export * from './Archivist';
2
2
  export * from './ArchivistInstance';
3
+ export * from './attachable';
3
4
  export * from './Config';
4
5
  export * from './IndexDescription';
5
6
  export * from './Params';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,17 +1,16 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
3
 
4
- // src/Config.ts
5
- var ArchivistConfigSchema = "network.xyo.archivist.config";
4
+ // src/attachable/asAttachableInstance.ts
5
+ import { AsObjectFactory as AsObjectFactory2 } from "@xylabs/object";
6
6
 
7
- // src/IndexDescription.ts
8
- var IndexSeparator = "-";
9
- var buildStandardIndexName = /* @__PURE__ */ __name((index) => {
10
- const { key, unique } = index;
11
- const prefix = unique ? "UX" : "IX";
12
- const indexKeys = Object.keys(key);
13
- return `${prefix}_${indexKeys.join(IndexSeparator)}`;
14
- }, "buildStandardIndexName");
7
+ // src/attachable/isAttachableInstance.ts
8
+ import { IsObjectFactory } from "@xylabs/object";
9
+ import { isAttachableModuleInstance } from "@xyo-network/module-model";
10
+
11
+ // src/typeChecks.ts
12
+ import { AsObjectFactory } from "@xylabs/object";
13
+ import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
15
14
 
16
15
  // src/Queries/All.ts
17
16
  var ArchivistAllQuerySchema = "network.xyo.query.archivist.all";
@@ -35,8 +34,6 @@ var ArchivistInsertQuerySchema = "network.xyo.query.archivist.insert";
35
34
  var ArchivistNextQuerySchema = "network.xyo.query.archivist.next";
36
35
 
37
36
  // src/typeChecks.ts
38
- import { AsObjectFactory } from "@xylabs/object";
39
- import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
40
37
  var isArchivistInstance = new IsInstanceFactory().create({
41
38
  get: "function"
42
39
  }, [
@@ -49,6 +46,36 @@ var asArchivistModule = AsObjectFactory.create(isArchivistModule);
49
46
  var asArchivistInstance = AsObjectFactory.create(isArchivistInstance);
50
47
  var withArchivistModule = WithFactory.create(isArchivistModule);
51
48
  var withArchivistInstance = WithFactory.create(isArchivistInstance);
49
+
50
+ // src/attachable/isAttachableInstance.ts
51
+ var requiredAttachableArchivistInstanceFunctions = {};
52
+ var factory = new IsObjectFactory();
53
+ var isAttachableArchivistInstance = factory.create(requiredAttachableArchivistInstanceFunctions, [
54
+ isArchivistInstance,
55
+ isAttachableModuleInstance
56
+ ]);
57
+
58
+ // src/attachable/asAttachableInstance.ts
59
+ var asAttachableArchivistInstance = AsObjectFactory2.create(isAttachableArchivistInstance);
60
+
61
+ // src/attachable/AttachableInstance.ts
62
+ import { IsObjectFactory as IsObjectFactory2 } from "@xylabs/object";
63
+ var _IsAttachableArchivistInstanceFactory = class _IsAttachableArchivistInstanceFactory extends IsObjectFactory2 {
64
+ };
65
+ __name(_IsAttachableArchivistInstanceFactory, "IsAttachableArchivistInstanceFactory");
66
+ var IsAttachableArchivistInstanceFactory = _IsAttachableArchivistInstanceFactory;
67
+
68
+ // src/Config.ts
69
+ var ArchivistConfigSchema = "network.xyo.archivist.config";
70
+
71
+ // src/IndexDescription.ts
72
+ var IndexSeparator = "-";
73
+ var buildStandardIndexName = /* @__PURE__ */ __name((index) => {
74
+ const { key, unique } = index;
75
+ const prefix = unique ? "UX" : "IX";
76
+ const indexKeys = Object.keys(key);
77
+ return `${prefix}_${indexKeys.join(IndexSeparator)}`;
78
+ }, "buildStandardIndexName");
52
79
  export {
53
80
  ArchivistAllQuerySchema,
54
81
  ArchivistClearQuerySchema,
@@ -59,11 +86,15 @@ export {
59
86
  ArchivistInsertQuerySchema,
60
87
  ArchivistNextQuerySchema,
61
88
  IndexSeparator,
89
+ IsAttachableArchivistInstanceFactory,
62
90
  asArchivistInstance,
63
91
  asArchivistModule,
92
+ asAttachableArchivistInstance,
64
93
  buildStandardIndexName,
65
94
  isArchivistInstance,
66
95
  isArchivistModule,
96
+ isAttachableArchivistInstance,
97
+ requiredAttachableArchivistInstanceFunctions,
67
98
  withArchivistInstance,
68
99
  withArchivistModule
69
100
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/IndexDescription.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/typeChecks.ts"],"sourcesContent":["import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../Archivist'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n"],"mappings":";;;;AAWO,IAAMA,wBAAwB;;;ACoB9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;;;ACpC/B,IAAMU,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;ACLlE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,IAAMC,sBAAsB,IAAIC,kBAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,gBAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,gBAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,gBAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,YAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,YAAYV,OAAOF,mBAAAA;","names":["ArchivistConfigSchema","IndexSeparator","buildStandardIndexName","index","key","unique","prefix","indexKeys","Object","keys","join","ArchivistAllQuerySchema","ArchivistClearQuerySchema","ArchivistCommitQuerySchema","ArchivistDeleteQuerySchema","ArchivistGetQuerySchema","ArchivistInsertQuerySchema","ArchivistNextQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isArchivistInstance","IsInstanceFactory","create","get","isModuleInstance","isArchivistModule","IsModuleFactory","ArchivistGetQuerySchema","asArchivistModule","AsObjectFactory","asArchivistInstance","withArchivistModule","WithFactory","withArchivistInstance"]}
1
+ {"version":3,"sources":["../../src/attachable/asAttachableInstance.ts","../../src/attachable/isAttachableInstance.ts","../../src/typeChecks.ts","../../src/Queries/All.ts","../../src/Queries/Clear.ts","../../src/Queries/Commit.ts","../../src/Queries/Delete.ts","../../src/Queries/Get.ts","../../src/Queries/Insert.ts","../../src/Queries/Next.ts","../../src/attachable/AttachableInstance.ts","../../src/Config.ts","../../src/IndexDescription.ts"],"sourcesContent":["import { AsObjectFactory } from '@xylabs/object'\n\nimport { isAttachableArchivistInstance } from './isAttachableInstance'\n\nexport const asAttachableArchivistInstance = AsObjectFactory.create(isAttachableArchivistInstance)\n","import { IsObjectFactory, ObjectTypeShape, TypeCheck } from '@xylabs/object'\nimport { isAttachableModuleInstance } from '@xyo-network/module-model'\n\nimport { isArchivistInstance } from '../typeChecks'\nimport { AttachableArchivistInstance } from './AttachableInstance'\n\nexport const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape = {}\n\n//we do not use IsInstanceFactory here to prevent a cycle\nconst factory = new IsObjectFactory<AttachableArchivistInstance>()\n\nexport const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance> = factory.create(requiredAttachableArchivistInstanceFunctions, [\n isArchivistInstance,\n isAttachableModuleInstance,\n])\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { ArchivistModule } from './Archivist'\nimport { ArchivistInstance } from './ArchivistInstance'\nimport { ArchivistGetQuerySchema } from './Queries'\n\nexport const isArchivistInstance = new IsInstanceFactory<ArchivistInstance>().create({ get: 'function' }, [isModuleInstance])\nexport const isArchivistModule = new IsModuleFactory<ArchivistModule>().create([ArchivistGetQuerySchema])\n\nexport const asArchivistModule = AsObjectFactory.create(isArchivistModule)\nexport const asArchivistInstance = AsObjectFactory.create(isArchivistInstance)\nexport const withArchivistModule = WithFactory.create(isArchivistModule)\nexport const withArchivistInstance = WithFactory.create(isArchivistInstance)\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\nexport const ArchivistAllQuerySchema: ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'\n\nexport type ArchivistAllQuery = Query<{\n schema: ArchivistAllQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\nexport const ArchivistClearQuerySchema: ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'\n\nexport type ArchivistClearQuery = Query<{\n schema: ArchivistClearQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\nexport const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'\n\nexport type ArchivistCommitQuery = Query<{\n schema: ArchivistCommitQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\nexport const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'\n\nexport type ArchivistDeleteQuery = Query<{\n hashes: Hash[]\n schema: ArchivistDeleteQuerySchema\n}>\n","import { Hash } from '@xylabs/hex'\nimport { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\nexport const ArchivistGetQuerySchema: ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'\n\nexport type ArchivistGetQuery = Query<{\n hashes: Hash[]\n schema: ArchivistGetQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\nexport const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'\n\nexport type ArchivistInsertQuery = Query<{\n schema: ArchivistInsertQuerySchema\n}>\n","import { Query } from '@xyo-network/payload-model'\n\nimport { ArchivistNextOptions } from '../Archivist'\n\nexport type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\nexport const ArchivistNextQuerySchema: ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'\n\nexport type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>\n","import { IsObjectFactory, TypeCheck } from '@xylabs/object'\nimport { AttachableModuleInstance } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { ArchivistModule, ArchivistModuleEventData } from '../Archivist'\nimport { ArchivistInstance } from '../ArchivistInstance'\nimport { ArchivistParams } from '../Params'\n\nexport interface AttachableArchivistInstance<\n TParams extends ArchivistParams = ArchivistParams,\n TEventData extends ArchivistModuleEventData = ArchivistModuleEventData,\n TPayload extends Payload = Payload,\n> extends ArchivistModule<TParams, TEventData>,\n AttachableModuleInstance<TParams, TEventData>,\n ArchivistInstance<TParams, TEventData, TPayload> {}\n\nexport type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>\n\nexport class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {}\n","import { Address } from '@xylabs/hex'\nimport { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nexport interface ArchivistParents {\n commit?: Address[]\n read?: Address[]\n write?: Address[]\n}\n\nexport const ArchivistConfigSchema = 'network.xyo.archivist.config'\nexport type ArchivistConfigSchema = typeof ArchivistConfigSchema\n\nexport type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n /** @field address of one or more parent archivists to read from */\n parents?: ArchivistParents\n /** @field fail if some parents can not be resolved (true if unspecified) */\n requireAllParents?: boolean\n schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema\n /** @field should child store all reads from parents? */\n storeParentReads?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","/**\n * The index direction (1 for ascending, -1 for descending)\n */\nexport type IndexDirection = -1 | 1\n\n/**\n * Description of index(es) to be created on a store\n */\nexport type IndexDescription = {\n /**\n * The key(s) to index\n */\n key:\n | {\n [key: string]: IndexDirection\n }\n | Map<string, IndexDirection>\n /**\n * Is the indexed value an array\n */\n multiEntry?: boolean\n /**\n * The name of the index\n */\n name?: string\n /**\n * If true, the index must enforce uniqueness on the key\n */\n unique?: boolean\n}\n\nexport const IndexSeparator = '-'\n\n/**\n * Given an index description, this will build the index\n * name in standard form\n * @param index The index description\n * @returns The index name in standard form\n */\nexport const buildStandardIndexName = (index: IndexDescription) => {\n const { key, unique } = index\n const prefix = unique ? 'UX' : 'IX'\n const indexKeys = Object.keys(key)\n return `${prefix}_${indexKeys.join(IndexSeparator)}`\n}\n"],"mappings":";;;;AAAA,SAASA,mBAAAA,wBAAuB;;;ACAhC,SAASC,uBAAmD;AAC5D,SAASC,kCAAkC;;;ACD3C,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;;;ACE3E,IAAMC,0BAAmD;;;ACAzD,IAAMC,4BAAuD;;;ACA7D,IAAMC,6BAAyD;;;ACC/D,IAAMC,6BAAyD;;;ACA/D,IAAMC,0BAAmD;;;ACDzD,IAAMC,6BAAyD;;;ACE/D,IAAMC,2BAAqD;;;APE3D,IAAMC,sBAAsB,IAAIC,kBAAAA,EAAuCC,OAAO;EAAEC,KAAK;AAAW,GAAG;EAACC;CAAiB;AACrH,IAAMC,oBAAoB,IAAIC,gBAAAA,EAAmCJ,OAAO;EAACK;CAAwB;AAEjG,IAAMC,oBAAoBC,gBAAgBP,OAAOG,iBAAAA;AACjD,IAAMK,sBAAsBD,gBAAgBP,OAAOF,mBAAAA;AACnD,IAAMW,sBAAsBC,YAAYV,OAAOG,iBAAAA;AAC/C,IAAMQ,wBAAwBD,YAAYV,OAAOF,mBAAAA;;;ADPjD,IAAMc,+CAAgE,CAAC;AAG9E,IAAMC,UAAU,IAAIC,gBAAAA;AAEb,IAAMC,gCAAwEF,QAAQG,OAAOJ,8CAA8C;EAChJK;EACAC;CACD;;;ADVM,IAAMC,gCAAgCC,iBAAgBC,OAAOC,6BAAAA;;;AUJpE,SAASC,mBAAAA,wBAAkC;AAkBpC,IAAMC,wCAAN,MAAMA,8CAAkHC,iBAAAA;AAAoB;AAApBA;AAAxH,IAAMD,uCAAN;;;ACPA,IAAME,wBAAwB;;;ACoB9B,IAAMC,iBAAiB;AAQvB,IAAMC,yBAAyB,wBAACC,UAAAA;AACrC,QAAM,EAAEC,KAAKC,OAAM,IAAKF;AACxB,QAAMG,SAASD,SAAS,OAAO;AAC/B,QAAME,YAAYC,OAAOC,KAAKL,GAAAA;AAC9B,SAAO,GAAGE,MAAAA,IAAUC,UAAUG,KAAKT,cAAAA,CAAAA;AACrC,GALsC;","names":["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"]}
@@ -14,6 +14,7 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
14
14
  schema: string;
15
15
  };
16
16
  ephemeralQueryAccountEnabled?: boolean | undefined;
17
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
17
18
  }, import("./Archivist").ArchivistModuleEventData, {
18
19
  schema: string;
19
20
  } & import("@xyo-network/payload-model").PayloadFields>>;
@@ -31,6 +32,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
31
32
  schema: string;
32
33
  };
33
34
  ephemeralQueryAccountEnabled?: boolean | undefined;
35
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
34
36
  }, import("./Archivist").ArchivistModuleEventData>>;
35
37
  export declare const asArchivistModule: {
36
38
  <TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
@@ -47,6 +49,7 @@ export declare const asArchivistModule: {
47
49
  schema: string;
48
50
  };
49
51
  ephemeralQueryAccountEnabled?: boolean | undefined;
52
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
50
53
  }, import("./Archivist").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
51
54
  <TType_1 extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
52
55
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -62,6 +65,7 @@ export declare const asArchivistModule: {
62
65
  schema: string;
63
66
  };
64
67
  ephemeralQueryAccountEnabled?: boolean | undefined;
68
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
65
69
  }, import("./Archivist").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
66
70
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
67
71
  addToResolvers?: boolean | undefined;
@@ -76,6 +80,7 @@ export declare const asArchivistModule: {
76
80
  schema: string;
77
81
  };
78
82
  ephemeralQueryAccountEnabled?: boolean | undefined;
83
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
79
84
  }, import("./Archivist").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
80
85
  };
81
86
  export declare const asArchivistInstance: {
@@ -93,6 +98,7 @@ export declare const asArchivistInstance: {
93
98
  schema: string;
94
99
  };
95
100
  ephemeralQueryAccountEnabled?: boolean | undefined;
101
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
96
102
  }, import("./Archivist").ArchivistModuleEventData, {
97
103
  schema: string;
98
104
  } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
@@ -110,6 +116,7 @@ export declare const asArchivistInstance: {
110
116
  schema: string;
111
117
  };
112
118
  ephemeralQueryAccountEnabled?: boolean | undefined;
119
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
113
120
  }, import("./Archivist").ArchivistModuleEventData, {
114
121
  schema: string;
115
122
  } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
@@ -126,6 +133,7 @@ export declare const asArchivistInstance: {
126
133
  schema: string;
127
134
  };
128
135
  ephemeralQueryAccountEnabled?: boolean | undefined;
136
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
129
137
  }, import("./Archivist").ArchivistModuleEventData, {
130
138
  schema: string;
131
139
  } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
@@ -144,6 +152,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
144
152
  schema: string;
145
153
  };
146
154
  ephemeralQueryAccountEnabled?: boolean | undefined;
155
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
147
156
  }, import("./Archivist").ArchivistModuleEventData>) => R) => R | undefined;
148
157
  export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
149
158
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -159,6 +168,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
159
168
  schema: string;
160
169
  };
161
170
  ephemeralQueryAccountEnabled?: boolean | undefined;
171
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
162
172
  }, import("./Archivist").ArchivistModuleEventData, {
163
173
  schema: string;
164
174
  } & import("@xyo-network/payload-model").PayloadFields>) => R) => R | 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;;;;;;;;;;;;;;;;wDAA6F,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;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
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;;;;;;;;;;;;;;;;;wDAA6F,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;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
@@ -14,6 +14,7 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
14
14
  schema: string;
15
15
  };
16
16
  ephemeralQueryAccountEnabled?: boolean | undefined;
17
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
17
18
  }, import("./Archivist").ArchivistModuleEventData, {
18
19
  schema: string;
19
20
  } & import("@xyo-network/payload-model").PayloadFields>>;
@@ -31,6 +32,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
31
32
  schema: string;
32
33
  };
33
34
  ephemeralQueryAccountEnabled?: boolean | undefined;
35
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
34
36
  }, import("./Archivist").ArchivistModuleEventData>>;
35
37
  export declare const asArchivistModule: {
36
38
  <TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
@@ -47,6 +49,7 @@ export declare const asArchivistModule: {
47
49
  schema: string;
48
50
  };
49
51
  ephemeralQueryAccountEnabled?: boolean | undefined;
52
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
50
53
  }, import("./Archivist").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
51
54
  <TType_1 extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
52
55
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -62,6 +65,7 @@ export declare const asArchivistModule: {
62
65
  schema: string;
63
66
  };
64
67
  ephemeralQueryAccountEnabled?: boolean | undefined;
68
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
65
69
  }, import("./Archivist").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
66
70
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
67
71
  addToResolvers?: boolean | undefined;
@@ -76,6 +80,7 @@ export declare const asArchivistModule: {
76
80
  schema: string;
77
81
  };
78
82
  ephemeralQueryAccountEnabled?: boolean | undefined;
83
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
79
84
  }, import("./Archivist").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
80
85
  };
81
86
  export declare const asArchivistInstance: {
@@ -93,6 +98,7 @@ export declare const asArchivistInstance: {
93
98
  schema: string;
94
99
  };
95
100
  ephemeralQueryAccountEnabled?: boolean | undefined;
101
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
96
102
  }, import("./Archivist").ArchivistModuleEventData, {
97
103
  schema: string;
98
104
  } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
@@ -110,6 +116,7 @@ export declare const asArchivistInstance: {
110
116
  schema: string;
111
117
  };
112
118
  ephemeralQueryAccountEnabled?: boolean | undefined;
119
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
113
120
  }, import("./Archivist").ArchivistModuleEventData, {
114
121
  schema: string;
115
122
  } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
@@ -126,6 +133,7 @@ export declare const asArchivistInstance: {
126
133
  schema: string;
127
134
  };
128
135
  ephemeralQueryAccountEnabled?: boolean | undefined;
136
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
129
137
  }, import("./Archivist").ArchivistModuleEventData, {
130
138
  schema: string;
131
139
  } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
@@ -144,6 +152,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
144
152
  schema: string;
145
153
  };
146
154
  ephemeralQueryAccountEnabled?: boolean | undefined;
155
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
147
156
  }, import("./Archivist").ArchivistModuleEventData>) => R) => R | undefined;
148
157
  export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
149
158
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -159,6 +168,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
159
168
  schema: string;
160
169
  };
161
170
  ephemeralQueryAccountEnabled?: boolean | undefined;
171
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
162
172
  }, import("./Archivist").ArchivistModuleEventData, {
163
173
  schema: string;
164
174
  } & import("@xyo-network/payload-model").PayloadFields>) => R) => R | 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;;;;;;;;;;;;;;;;wDAA6F,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;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
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;;;;;;;;;;;;;;;;;wDAA6F,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;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
@@ -14,6 +14,7 @@ export declare const isArchivistInstance: import("@xylabs/object").TypeCheck<Arc
14
14
  schema: string;
15
15
  };
16
16
  ephemeralQueryAccountEnabled?: boolean | undefined;
17
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
17
18
  }, import("./Archivist").ArchivistModuleEventData, {
18
19
  schema: string;
19
20
  } & import("@xyo-network/payload-model").PayloadFields>>;
@@ -31,6 +32,7 @@ export declare const isArchivistModule: import("@xyo-network/module-model").Modu
31
32
  schema: string;
32
33
  };
33
34
  ephemeralQueryAccountEnabled?: boolean | undefined;
35
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
34
36
  }, import("./Archivist").ArchivistModuleEventData>>;
35
37
  export declare const asArchivistModule: {
36
38
  <TType extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
@@ -47,6 +49,7 @@ export declare const asArchivistModule: {
47
49
  schema: string;
48
50
  };
49
51
  ephemeralQueryAccountEnabled?: boolean | undefined;
52
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
50
53
  }, import("./Archivist").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
51
54
  <TType_1 extends ArchivistModule<import("@xylabs/object").BaseParamsFields & {
52
55
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -62,6 +65,7 @@ export declare const asArchivistModule: {
62
65
  schema: string;
63
66
  };
64
67
  ephemeralQueryAccountEnabled?: boolean | undefined;
68
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
65
69
  }, import("./Archivist").ArchivistModuleEventData>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistModule<import("@xylabs/object").BaseParamsFields & {
66
70
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
67
71
  addToResolvers?: boolean | undefined;
@@ -76,6 +80,7 @@ export declare const asArchivistModule: {
76
80
  schema: string;
77
81
  };
78
82
  ephemeralQueryAccountEnabled?: boolean | undefined;
83
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
79
84
  }, import("./Archivist").ArchivistModuleEventData>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
80
85
  };
81
86
  export declare const asArchivistInstance: {
@@ -93,6 +98,7 @@ export declare const asArchivistInstance: {
93
98
  schema: string;
94
99
  };
95
100
  ephemeralQueryAccountEnabled?: boolean | undefined;
101
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
96
102
  }, import("./Archivist").ArchivistModuleEventData, {
97
103
  schema: string;
98
104
  } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType | undefined;
@@ -110,6 +116,7 @@ export declare const asArchivistInstance: {
110
116
  schema: string;
111
117
  };
112
118
  ephemeralQueryAccountEnabled?: boolean | undefined;
119
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
113
120
  }, import("./Archivist").ArchivistModuleEventData, {
114
121
  schema: string;
115
122
  } & import("@xyo-network/payload-model").PayloadFields>>(value: import("@xylabs/promise").AnyNonPromise<T_1>, assert: import("@xylabs/object").StringOrAlertFunction<ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
@@ -126,6 +133,7 @@ export declare const asArchivistInstance: {
126
133
  schema: string;
127
134
  };
128
135
  ephemeralQueryAccountEnabled?: boolean | undefined;
136
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
129
137
  }, import("./Archivist").ArchivistModuleEventData, {
130
138
  schema: string;
131
139
  } & import("@xyo-network/payload-model").PayloadFields>>, config?: import("@xylabs/object").TypeCheckConfig | undefined): TType_1;
@@ -144,6 +152,7 @@ export declare const withArchivistModule: <R>(module: any, closure: (module: Arc
144
152
  schema: string;
145
153
  };
146
154
  ephemeralQueryAccountEnabled?: boolean | undefined;
155
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
147
156
  }, import("./Archivist").ArchivistModuleEventData>) => R) => R | undefined;
148
157
  export declare const withArchivistInstance: <R>(module: any, closure: (module: ArchivistInstance<import("@xylabs/object").BaseParamsFields & {
149
158
  account?: import("@xyo-network/account-model").AccountInstance | "random" | undefined;
@@ -159,6 +168,7 @@ export declare const withArchivistInstance: <R>(module: any, closure: (module: A
159
168
  schema: string;
160
169
  };
161
170
  ephemeralQueryAccountEnabled?: boolean | undefined;
171
+ moduleIdentifierTransformers?: import("@xyo-network/module-model").ModuleIdentifierTransformer[] | undefined;
162
172
  }, import("./Archivist").ArchivistModuleEventData, {
163
173
  schema: string;
164
174
  } & import("@xyo-network/payload-model").PayloadFields>) => R) => R | 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;;;;;;;;;;;;;;;;wDAA6F,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;;;;;;;;;;;;;;;;+EAA0C,CAAA"}
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;;;;;;;;;;;;;;;;;wDAA6F,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;;;;;;;;;;;;;;;;;+EAA0C,CAAA"}