@xyo-network/sentinel-model 2.84.2 → 2.84.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.
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ SentinelConfigSchema: () => SentinelConfigSchema,
24
+ SentinelReportQuerySchema: () => SentinelReportQuerySchema,
25
+ asSentinelInstance: () => asSentinelInstance,
26
+ asSentinelModule: () => asSentinelModule,
27
+ isSentinelInstance: () => isSentinelInstance,
28
+ isSentinelModule: () => isSentinelModule,
29
+ withSentinelInstance: () => withSentinelInstance,
30
+ withSentinelModule: () => withSentinelModule
31
+ });
32
+ module.exports = __toCommonJS(src_exports);
33
+
34
+ // src/Config.ts
35
+ var SentinelConfigSchema = "network.xyo.sentinel.config";
36
+
37
+ // src/Queries/Report.ts
38
+ var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
39
+
40
+ // src/typeChecks.ts
41
+ var import_module_model = require("@xyo-network/module-model");
42
+ var import_object = require("@xyo-network/object");
43
+ var isSentinelInstance = new import_module_model.IsInstanceFactory().create({ report: "function" }, [import_module_model.isModuleInstance]);
44
+ var isSentinelModule = new import_module_model.IsModuleFactory().create([SentinelReportQuerySchema]);
45
+ var asSentinelModule = import_object.AsObjectFactory.create(isSentinelModule);
46
+ var asSentinelInstance = import_object.AsObjectFactory.create(isSentinelInstance);
47
+ var withSentinelModule = import_module_model.WithFactory.create(isSentinelModule);
48
+ var withSentinelInstance = import_module_model.WithFactory.create(isSentinelInstance);
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ SentinelConfigSchema,
52
+ SentinelReportQuerySchema,
53
+ asSentinelInstance,
54
+ asSentinelModule,
55
+ isSentinelInstance,
56
+ isSentinelModule,
57
+ withSentinelInstance,
58
+ withSentinelModule
59
+ });
60
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Config'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Job'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './ResolvedTask'\nexport * from './Sentinel'\nexport * from './Task'\nexport * from './typeChecks'\n","import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { Task } from './Task'\n\nexport type SentinelConfigSchema = 'network.xyo.sentinel.config'\nexport const SentinelConfigSchema: SentinelConfigSchema = 'network.xyo.sentinel.config'\n\nexport type SentinelConfig<TConfig extends Payload | void = void> = ModuleConfig<\n TConfig,\n {\n synchronous?: boolean\n tasks: Task[]\n },\n TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,uBAA6C;;;ACHnD,IAAM,4BAAuD;;;ACHpE,0BAAkF;AAClF,oBAAgC;AAMzB,IAAM,qBAAqB,IAAI,sCAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,oCAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,oCAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,8BAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,8BAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,gCAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,gCAAY,OAAO,kBAAkB;","names":[]}
@@ -1,36 +1,3 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- SentinelConfigSchema: () => SentinelConfigSchema,
24
- SentinelReportQuerySchema: () => SentinelReportQuerySchema,
25
- asSentinelInstance: () => asSentinelInstance,
26
- asSentinelModule: () => asSentinelModule,
27
- isSentinelInstance: () => isSentinelInstance,
28
- isSentinelModule: () => isSentinelModule,
29
- withSentinelInstance: () => withSentinelInstance,
30
- withSentinelModule: () => withSentinelModule
31
- });
32
- module.exports = __toCommonJS(src_exports);
33
-
34
1
  // src/Config.ts
35
2
  var SentinelConfigSchema = "network.xyo.sentinel.config";
36
3
 
@@ -38,16 +5,15 @@ var SentinelConfigSchema = "network.xyo.sentinel.config";
38
5
  var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
39
6
 
40
7
  // src/typeChecks.ts
41
- var import_module_model = require("@xyo-network/module-model");
42
- var import_object = require("@xyo-network/object");
43
- var isSentinelInstance = new import_module_model.IsInstanceFactory().create({ report: "function" }, [import_module_model.isModuleInstance]);
44
- var isSentinelModule = new import_module_model.IsModuleFactory().create([SentinelReportQuerySchema]);
45
- var asSentinelModule = import_object.AsObjectFactory.create(isSentinelModule);
46
- var asSentinelInstance = import_object.AsObjectFactory.create(isSentinelInstance);
47
- var withSentinelModule = import_module_model.WithFactory.create(isSentinelModule);
48
- var withSentinelInstance = import_module_model.WithFactory.create(isSentinelInstance);
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
8
+ import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
9
+ import { AsObjectFactory } from "@xyo-network/object";
10
+ var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
11
+ var isSentinelModule = new IsModuleFactory().create([SentinelReportQuerySchema]);
12
+ var asSentinelModule = AsObjectFactory.create(isSentinelModule);
13
+ var asSentinelInstance = AsObjectFactory.create(isSentinelInstance);
14
+ var withSentinelModule = WithFactory.create(isSentinelModule);
15
+ var withSentinelInstance = WithFactory.create(isSentinelInstance);
16
+ export {
51
17
  SentinelConfigSchema,
52
18
  SentinelReportQuerySchema,
53
19
  asSentinelInstance,
@@ -56,5 +22,5 @@ var withSentinelInstance = import_module_model.WithFactory.create(isSentinelInst
56
22
  isSentinelModule,
57
23
  withSentinelInstance,
58
24
  withSentinelModule
59
- });
25
+ };
60
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Config'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Job'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './ResolvedTask'\nexport * from './Sentinel'\nexport * from './Task'\nexport * from './typeChecks'\n","import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { Task } from './Task'\n\nexport type SentinelConfigSchema = 'network.xyo.sentinel.config'\nexport const SentinelConfigSchema: SentinelConfigSchema = 'network.xyo.sentinel.config'\n\nexport type SentinelConfig<TConfig extends Payload | void = void> = ModuleConfig<\n TConfig,\n {\n synchronous?: boolean\n tasks: Task[]\n },\n TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,uBAA6C;;;ACHnD,IAAM,4BAAuD;;;ACHpE,0BAAkF;AAClF,oBAAgC;AAMzB,IAAM,qBAAqB,IAAI,sCAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,oCAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,oCAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,8BAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,8BAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,gCAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,gCAAY,OAAO,kBAAkB;","names":[]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { Task } from './Task'\n\nexport type SentinelConfigSchema = 'network.xyo.sentinel.config'\nexport const SentinelConfigSchema: SentinelConfigSchema = 'network.xyo.sentinel.config'\n\nexport type SentinelConfig<TConfig extends Payload | void = void> = ModuleConfig<\n TConfig,\n {\n synchronous?: boolean\n tasks: Task[]\n },\n TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";AAMO,IAAM,uBAA6C;;;ACHnD,IAAM,4BAAuD;;;ACHpE,SAAS,mBAAmB,iBAAiB,kBAAkB,mBAAmB;AAClF,SAAS,uBAAuB;AAMzB,IAAM,qBAAqB,IAAI,kBAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,gBAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,gBAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,gBAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,YAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,YAAY,OAAO,kBAAkB;","names":[]}
package/package.json CHANGED
@@ -11,22 +11,21 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/promise": "^2.13.20",
14
- "@xyo-network/archivist-model": "~2.84.2",
15
- "@xyo-network/boundwitness-model": "~2.84.2",
16
- "@xyo-network/diviner-model": "~2.84.2",
17
- "@xyo-network/module-events": "~2.84.2",
18
- "@xyo-network/module-model": "~2.84.2",
19
- "@xyo-network/object": "~2.84.2",
20
- "@xyo-network/payload-model": "~2.84.2",
21
- "@xyo-network/witness-model": "~2.84.2"
14
+ "@xyo-network/archivist-model": "~2.84.3",
15
+ "@xyo-network/boundwitness-model": "~2.84.3",
16
+ "@xyo-network/diviner-model": "~2.84.3",
17
+ "@xyo-network/module-events": "~2.84.3",
18
+ "@xyo-network/module-model": "~2.84.3",
19
+ "@xyo-network/object": "~2.84.3",
20
+ "@xyo-network/payload-model": "~2.84.3",
21
+ "@xyo-network/witness-model": "~2.84.3"
22
22
  },
23
23
  "description": "Primary SDK for using XYO Protocol 2.0",
24
24
  "devDependencies": {
25
- "@xylabs/ts-scripts-yarn3": "^3.2.10",
26
- "@xylabs/tsconfig": "^3.2.10",
25
+ "@xylabs/ts-scripts-yarn3": "^3.2.19",
26
+ "@xylabs/tsconfig": "^3.2.19",
27
27
  "typescript": "^5.3.3"
28
28
  },
29
- "docs": "dist/docs.json",
30
29
  "types": "dist/node/index.d.ts",
31
30
  "exports": {
32
31
  ".": {
@@ -42,19 +41,19 @@
42
41
  },
43
42
  "node": {
44
43
  "require": {
45
- "types": "./dist/node/index.d.ts",
46
- "default": "./dist/node/index.js"
44
+ "types": "./dist/node/index.d.cts",
45
+ "default": "./dist/node/index.cjs"
47
46
  },
48
47
  "import": {
49
48
  "types": "./dist/node/index.d.mts",
50
- "default": "./dist/node/index.mjs"
49
+ "default": "./dist/node/index.js"
51
50
  }
52
51
  }
53
52
  },
54
53
  "./package.json": "./package.json"
55
54
  },
56
- "main": "dist/node/index.js",
57
- "module": "dist/node/index.mjs",
55
+ "main": "dist/node/index.cjs",
56
+ "module": "dist/node/index.js",
58
57
  "homepage": "https://xyo.network",
59
58
  "license": "LGPL-3.0-only",
60
59
  "publishConfig": {
@@ -65,5 +64,6 @@
65
64
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
66
65
  },
67
66
  "sideEffects": false,
68
- "version": "2.84.2"
67
+ "version": "2.84.3",
68
+ "type": "module"
69
69
  }
@@ -1,26 +0,0 @@
1
- // src/Config.ts
2
- var SentinelConfigSchema = "network.xyo.sentinel.config";
3
-
4
- // src/Queries/Report.ts
5
- var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
6
-
7
- // src/typeChecks.ts
8
- import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
9
- import { AsObjectFactory } from "@xyo-network/object";
10
- var isSentinelInstance = new IsInstanceFactory().create({ report: "function" }, [isModuleInstance]);
11
- var isSentinelModule = new IsModuleFactory().create([SentinelReportQuerySchema]);
12
- var asSentinelModule = AsObjectFactory.create(isSentinelModule);
13
- var asSentinelInstance = AsObjectFactory.create(isSentinelInstance);
14
- var withSentinelModule = WithFactory.create(isSentinelModule);
15
- var withSentinelInstance = WithFactory.create(isSentinelInstance);
16
- export {
17
- SentinelConfigSchema,
18
- SentinelReportQuerySchema,
19
- asSentinelInstance,
20
- asSentinelModule,
21
- isSentinelInstance,
22
- isSentinelModule,
23
- withSentinelInstance,
24
- withSentinelModule
25
- };
26
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { Task } from './Task'\n\nexport type SentinelConfigSchema = 'network.xyo.sentinel.config'\nexport const SentinelConfigSchema: SentinelConfigSchema = 'network.xyo.sentinel.config'\n\nexport type SentinelConfig<TConfig extends Payload | void = void> = ModuleConfig<\n TConfig,\n {\n synchronous?: boolean\n tasks: Task[]\n },\n TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\nimport { AsObjectFactory } from '@xyo-network/object'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";AAMO,IAAM,uBAA6C;;;ACHnD,IAAM,4BAAuD;;;ACHpE,SAAS,mBAAmB,iBAAiB,kBAAkB,mBAAmB;AAClF,SAAS,uBAAuB;AAMzB,IAAM,qBAAqB,IAAI,kBAAoC,EAAE,OAAO,EAAE,QAAQ,WAAW,GAAG,CAAC,gBAAgB,CAAC;AACtH,IAAM,mBAAmB,IAAI,gBAAgC,EAAE,OAAO,CAAC,yBAAyB,CAAC;AAEjG,IAAM,mBAAmB,gBAAgB,OAAO,gBAAgB;AAChE,IAAM,qBAAqB,gBAAgB,OAAO,kBAAkB;AACpE,IAAM,qBAAqB,YAAY,OAAO,gBAAgB;AAC9D,IAAM,uBAAuB,YAAY,OAAO,kBAAkB;","names":[]}