@xyo-network/sentinel-wrapper 2.107.3 → 2.107.5

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.
@@ -1,2 +1,62 @@
1
- "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(r,e)=>a(r,"name",{value:e,configurable:!0});var y=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!l.call(r,n)&&n!==t&&a(r,n,{get:()=>e[n],enumerable:!(o=d(e,n))||o.enumerable});return r};var m=r=>h(a({},"__esModule",{value:!0}),r);var w={};y(w,{SentinelWrapper:()=>u});module.exports=m(w);var i=require("@xyo-network/module-wrapper"),s=require("@xyo-network/sentinel-model");(0,i.constructableModuleWrapper)();var u=class extends i.ModuleWrapper{static{c(this,"SentinelWrapper")}static instanceIdentityCheck=s.isSentinelInstance;static moduleIdentityCheck=s.isSentinelModule;static requiredQueries=[s.SentinelReportQuerySchema,...super.requiredQueries];archivists(){throw new Error("Not supported")}async report(e){let t={schema:s.SentinelReportQuerySchema};return await this.sendQuery(t,e)}async reportQuery(e,t){let o={schema:s.SentinelReportQuerySchema};return await this.sendQueryRaw(o,e,t)}witnesses(){throw new Error("Not supported")}};
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ SentinelWrapper: () => SentinelWrapper
25
+ });
26
+ module.exports = __toCommonJS(src_exports);
27
+
28
+ // src/Wrapper.ts
29
+ var import_module_wrapper = require("@xyo-network/module-wrapper");
30
+ var import_sentinel_model = require("@xyo-network/sentinel-model");
31
+ (0, import_module_wrapper.constructableModuleWrapper)();
32
+ var SentinelWrapper = class extends import_module_wrapper.ModuleWrapper {
33
+ static {
34
+ __name(this, "SentinelWrapper");
35
+ }
36
+ static instanceIdentityCheck = import_sentinel_model.isSentinelInstance;
37
+ static moduleIdentityCheck = import_sentinel_model.isSentinelModule;
38
+ static requiredQueries = [
39
+ import_sentinel_model.SentinelReportQuerySchema,
40
+ ...super.requiredQueries
41
+ ];
42
+ archivists() {
43
+ throw new Error("Not supported");
44
+ }
45
+ async report(payloads) {
46
+ const queryPayload = {
47
+ schema: import_sentinel_model.SentinelReportQuerySchema
48
+ };
49
+ const result = await this.sendQuery(queryPayload, payloads);
50
+ return result;
51
+ }
52
+ async reportQuery(payloads, account) {
53
+ const queryPayload = {
54
+ schema: import_sentinel_model.SentinelReportQuerySchema
55
+ };
56
+ return await this.sendQueryRaw(queryPayload, payloads, account);
57
+ }
58
+ witnesses() {
59
+ throw new Error("Not supported");
60
+ }
61
+ };
2
62
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAAI,EAA0D,uCAE1DC,EAOO,0CAGPC,8BAAAA,EACO,IAAMC,EAAN,cACGC,eAAAA,CAdV,MAcUA,CAAAA,EAAAA,wBAGR,OAAgBC,sBAAwBC,qBACxC,OAAgBC,oBAAsBC,mBACtC,OAAgBC,gBAAkB,CAACC,+BAA8B,MAAMD,iBAEvEE,YAA2C,CACzC,MAAM,IAAIC,MAAM,eAAA,CAClB,CAEA,MAAMC,OAAOC,EAA0C,CACrD,IAAMC,EAAoC,CAAEC,OAAQN,2BAA0B,EAE9E,OADe,MAAM,KAAKO,UAAUF,EAAcD,CAAAA,CAEpD,CAEA,MAAMI,YAAYJ,EAAsBK,EAAuD,CAC7F,IAAMJ,EAAoC,CAAEC,OAAQN,2BAA0B,EAC9E,OAAO,MAAM,KAAKU,aAAaL,EAAcD,EAAUK,CAAAA,CACzD,CAEAE,WAAwC,CACtC,MAAM,IAAIT,MAAM,eAAA,CAClB,CACF","names":["src_exports","__export","SentinelWrapper","__toCommonJS","import_module_wrapper","import_sentinel_model","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACGA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,kBAAN,cACGC,oCAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYL,UAAsBM,SAAuD;AAC7F,UAAML,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,UAAUM,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
@@ -1,2 +1,41 @@
1
- var i=Object.defineProperty;var n=(s,e)=>i(s,"name",{value:e,configurable:!0});import{constructableModuleWrapper as u,ModuleWrapper as c}from"@xyo-network/module-wrapper";import{isSentinelInstance as d,isSentinelModule as p,SentinelReportQuerySchema as t}from"@xyo-network/sentinel-model";u();var a=class extends c{static{n(this,"SentinelWrapper")}static instanceIdentityCheck=d;static moduleIdentityCheck=p;static requiredQueries=[t,...super.requiredQueries];archivists(){throw new Error("Not supported")}async report(e){let r={schema:t};return await this.sendQuery(r,e)}async reportQuery(e,r){let o={schema:t};return await this.sendQueryRaw(o,e,r)}witnesses(){throw new Error("Not supported")}};export{a as SentinelWrapper};
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Wrapper.ts
5
+ import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
6
+ import { isSentinelInstance, isSentinelModule, SentinelReportQuerySchema } from "@xyo-network/sentinel-model";
7
+ constructableModuleWrapper();
8
+ var SentinelWrapper = class extends ModuleWrapper {
9
+ static {
10
+ __name(this, "SentinelWrapper");
11
+ }
12
+ static instanceIdentityCheck = isSentinelInstance;
13
+ static moduleIdentityCheck = isSentinelModule;
14
+ static requiredQueries = [
15
+ SentinelReportQuerySchema,
16
+ ...super.requiredQueries
17
+ ];
18
+ archivists() {
19
+ throw new Error("Not supported");
20
+ }
21
+ async report(payloads) {
22
+ const queryPayload = {
23
+ schema: SentinelReportQuerySchema
24
+ };
25
+ const result = await this.sendQuery(queryPayload, payloads);
26
+ return result;
27
+ }
28
+ async reportQuery(payloads, account) {
29
+ const queryPayload = {
30
+ schema: SentinelReportQuerySchema
31
+ };
32
+ return await this.sendQueryRaw(queryPayload, payloads, account);
33
+ }
34
+ witnesses() {
35
+ throw new Error("Not supported");
36
+ }
37
+ };
38
+ export {
39
+ SentinelWrapper
40
+ };
2
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"+EAGA,OAASA,8BAAAA,EAA4BC,iBAAAA,MAAqB,8BAE1D,OACEC,sBAAAA,EACAC,oBAAAA,EAIAC,6BAAAA,MACK,8BAGPC,EAAAA,EACO,IAAMC,EAAN,cACGC,CAAAA,CAdV,MAcUA,CAAAA,EAAAA,wBAGR,OAAgBC,sBAAwBC,EACxC,OAAgBC,oBAAsBC,EACtC,OAAgBC,gBAAkB,CAACC,KAA8B,MAAMD,iBAEvEE,YAA2C,CACzC,MAAM,IAAIC,MAAM,eAAA,CAClB,CAEA,MAAMC,OAAOC,EAA0C,CACrD,IAAMC,EAAoC,CAAEC,OAAQN,CAA0B,EAE9E,OADe,MAAM,KAAKO,UAAUF,EAAcD,CAAAA,CAEpD,CAEA,MAAMI,YAAYJ,EAAsBK,EAAuD,CAC7F,IAAMJ,EAAoC,CAAEC,OAAQN,CAA0B,EAC9E,OAAO,MAAM,KAAKU,aAAaL,EAAcD,EAAUK,CAAAA,CACzD,CAEAE,WAAwC,CACtC,MAAM,IAAIT,MAAM,eAAA,CAClB,CACF","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
1
+ {"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;AAGA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYL,UAAsBM,SAAuD;AAC7F,UAAML,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,UAAUM,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
@@ -1,2 +1,62 @@
1
- "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var c=(r,e)=>a(r,"name",{value:e,configurable:!0});var y=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!l.call(r,n)&&n!==t&&a(r,n,{get:()=>e[n],enumerable:!(o=d(e,n))||o.enumerable});return r};var m=r=>h(a({},"__esModule",{value:!0}),r);var w={};y(w,{SentinelWrapper:()=>u});module.exports=m(w);var i=require("@xyo-network/module-wrapper"),s=require("@xyo-network/sentinel-model");(0,i.constructableModuleWrapper)();var u=class extends i.ModuleWrapper{static{c(this,"SentinelWrapper")}static instanceIdentityCheck=s.isSentinelInstance;static moduleIdentityCheck=s.isSentinelModule;static requiredQueries=[s.SentinelReportQuerySchema,...super.requiredQueries];archivists(){throw new Error("Not supported")}async report(e){let t={schema:s.SentinelReportQuerySchema};return await this.sendQuery(t,e)}async reportQuery(e,t){let o={schema:s.SentinelReportQuerySchema};return await this.sendQueryRaw(o,e,t)}witnesses(){throw new Error("Not supported")}};
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ SentinelWrapper: () => SentinelWrapper
25
+ });
26
+ module.exports = __toCommonJS(src_exports);
27
+
28
+ // src/Wrapper.ts
29
+ var import_module_wrapper = require("@xyo-network/module-wrapper");
30
+ var import_sentinel_model = require("@xyo-network/sentinel-model");
31
+ (0, import_module_wrapper.constructableModuleWrapper)();
32
+ var SentinelWrapper = class extends import_module_wrapper.ModuleWrapper {
33
+ static {
34
+ __name(this, "SentinelWrapper");
35
+ }
36
+ static instanceIdentityCheck = import_sentinel_model.isSentinelInstance;
37
+ static moduleIdentityCheck = import_sentinel_model.isSentinelModule;
38
+ static requiredQueries = [
39
+ import_sentinel_model.SentinelReportQuerySchema,
40
+ ...super.requiredQueries
41
+ ];
42
+ archivists() {
43
+ throw new Error("Not supported");
44
+ }
45
+ async report(payloads) {
46
+ const queryPayload = {
47
+ schema: import_sentinel_model.SentinelReportQuerySchema
48
+ };
49
+ const result = await this.sendQuery(queryPayload, payloads);
50
+ return result;
51
+ }
52
+ async reportQuery(payloads, account) {
53
+ const queryPayload = {
54
+ schema: import_sentinel_model.SentinelReportQuerySchema
55
+ };
56
+ return await this.sendQueryRaw(queryPayload, payloads, account);
57
+ }
58
+ witnesses() {
59
+ throw new Error("Not supported");
60
+ }
61
+ };
2
62
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"4dAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAAI,EAA0D,uCAE1DC,EAOO,0CAGPC,8BAAAA,EACO,IAAMC,EAAN,cACGC,eAAAA,CAdV,MAcUA,CAAAA,EAAAA,wBAGR,OAAgBC,sBAAwBC,qBACxC,OAAgBC,oBAAsBC,mBACtC,OAAgBC,gBAAkB,CAACC,+BAA8B,MAAMD,iBAEvEE,YAA2C,CACzC,MAAM,IAAIC,MAAM,eAAA,CAClB,CAEA,MAAMC,OAAOC,EAA0C,CACrD,IAAMC,EAAoC,CAAEC,OAAQN,2BAA0B,EAE9E,OADe,MAAM,KAAKO,UAAUF,EAAcD,CAAAA,CAEpD,CAEA,MAAMI,YAAYJ,EAAsBK,EAAuD,CAC7F,IAAMJ,EAAoC,CAAEC,OAAQN,2BAA0B,EAC9E,OAAO,MAAM,KAAKU,aAAaL,EAAcD,EAAUK,CAAAA,CACzD,CAEAE,WAAwC,CACtC,MAAM,IAAIT,MAAM,eAAA,CAClB,CACF","names":["src_exports","__export","SentinelWrapper","__toCommonJS","import_module_wrapper","import_sentinel_model","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACGA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,kBAAN,cACGC,oCAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYL,UAAsBM,SAAuD;AAC7F,UAAML,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,UAAUM,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
@@ -1,2 +1,41 @@
1
- var i=Object.defineProperty;var n=(s,e)=>i(s,"name",{value:e,configurable:!0});import{constructableModuleWrapper as u,ModuleWrapper as c}from"@xyo-network/module-wrapper";import{isSentinelInstance as d,isSentinelModule as p,SentinelReportQuerySchema as t}from"@xyo-network/sentinel-model";u();var a=class extends c{static{n(this,"SentinelWrapper")}static instanceIdentityCheck=d;static moduleIdentityCheck=p;static requiredQueries=[t,...super.requiredQueries];archivists(){throw new Error("Not supported")}async report(e){let r={schema:t};return await this.sendQuery(r,e)}async reportQuery(e,r){let o={schema:t};return await this.sendQueryRaw(o,e,r)}witnesses(){throw new Error("Not supported")}};export{a as SentinelWrapper};
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ // src/Wrapper.ts
5
+ import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
6
+ import { isSentinelInstance, isSentinelModule, SentinelReportQuerySchema } from "@xyo-network/sentinel-model";
7
+ constructableModuleWrapper();
8
+ var SentinelWrapper = class extends ModuleWrapper {
9
+ static {
10
+ __name(this, "SentinelWrapper");
11
+ }
12
+ static instanceIdentityCheck = isSentinelInstance;
13
+ static moduleIdentityCheck = isSentinelModule;
14
+ static requiredQueries = [
15
+ SentinelReportQuerySchema,
16
+ ...super.requiredQueries
17
+ ];
18
+ archivists() {
19
+ throw new Error("Not supported");
20
+ }
21
+ async report(payloads) {
22
+ const queryPayload = {
23
+ schema: SentinelReportQuerySchema
24
+ };
25
+ const result = await this.sendQuery(queryPayload, payloads);
26
+ return result;
27
+ }
28
+ async reportQuery(payloads, account) {
29
+ const queryPayload = {
30
+ schema: SentinelReportQuerySchema
31
+ };
32
+ return await this.sendQueryRaw(queryPayload, payloads, account);
33
+ }
34
+ witnesses() {
35
+ throw new Error("Not supported");
36
+ }
37
+ };
38
+ export {
39
+ SentinelWrapper
40
+ };
2
41
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"+EAGA,OAASA,8BAAAA,EAA4BC,iBAAAA,MAAqB,8BAE1D,OACEC,sBAAAA,EACAC,oBAAAA,EAIAC,6BAAAA,MACK,8BAGPC,EAAAA,EACO,IAAMC,EAAN,cACGC,CAAAA,CAdV,MAcUA,CAAAA,EAAAA,wBAGR,OAAgBC,sBAAwBC,EACxC,OAAgBC,oBAAsBC,EACtC,OAAgBC,gBAAkB,CAACC,KAA8B,MAAMD,iBAEvEE,YAA2C,CACzC,MAAM,IAAIC,MAAM,eAAA,CAClB,CAEA,MAAMC,OAAOC,EAA0C,CACrD,IAAMC,EAAoC,CAAEC,OAAQN,CAA0B,EAE9E,OADe,MAAM,KAAKO,UAAUF,EAAcD,CAAAA,CAEpD,CAEA,MAAMI,YAAYJ,EAAsBK,EAAuD,CAC7F,IAAMJ,EAAoC,CAAEC,OAAQN,CAA0B,EAC9E,OAAO,MAAM,KAAKU,aAAaL,EAAcD,EAAUK,CAAAA,CACzD,CAEAE,WAAwC,CACtC,MAAM,IAAIT,MAAM,eAAA,CAClB,CACF","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
1
+ {"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;AAGA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAdV,OAcUA;;;EAGR,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,UAAMO,SAAS,MAAM,KAAKC,UAAUH,cAAcD,QAAAA;AAClD,WAAOG;EACT;EAEA,MAAME,YAAYL,UAAsBM,SAAuD;AAC7F,UAAML,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKW,aAAaN,cAAcD,UAAUM,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIV,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
@@ -1,2 +1,70 @@
1
- "use strict";var a=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var q=Reflect.get;var f=(e,t,s)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var y=(e,t)=>a(e,"name",{value:t,configurable:!0});var x=(e,t)=>{for(var s in t)a(e,s,{get:t[s],enumerable:!0})},I=(e,t,s,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of w(t))!Q.call(e,c)&&c!==s&&a(e,c,{get:()=>t[c],enumerable:!(u=m(t,c))||u.enumerable});return e};var M=e=>I(a({},"__esModule",{value:!0}),e);var i=(e,t,s)=>f(e,typeof t!="symbol"?t+"":t,s);var h=(e,t,s)=>q(l(e),s,t);var k={};x(k,{SentinelWrapper:()=>n});module.exports=M(k);var d=require("@xyo-network/module-wrapper"),o=require("@xyo-network/sentinel-model");(0,d.constructableModuleWrapper)();var r=class r extends d.ModuleWrapper{archivists(){throw new Error("Not supported")}async report(t){let s={schema:o.SentinelReportQuerySchema};return await this.sendQuery(s,t)}async reportQuery(t,s){let u={schema:o.SentinelReportQuerySchema};return await this.sendQueryRaw(u,t,s)}witnesses(){throw new Error("Not supported")}};y(r,"SentinelWrapper"),i(r,"instanceIdentityCheck",o.isSentinelInstance),i(r,"moduleIdentityCheck",o.isSentinelModule),i(r,"requiredQueries",[o.SentinelReportQuerySchema,...h(r,r,"requiredQueries")]);var n=r;0&&(module.exports={SentinelWrapper});
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __reflectGet = Reflect.get;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
24
+ var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
25
+
26
+ // src/index.ts
27
+ var src_exports = {};
28
+ __export(src_exports, {
29
+ SentinelWrapper: () => SentinelWrapper
30
+ });
31
+ module.exports = __toCommonJS(src_exports);
32
+
33
+ // src/Wrapper.ts
34
+ var import_module_wrapper = require("@xyo-network/module-wrapper");
35
+ var import_sentinel_model = require("@xyo-network/sentinel-model");
36
+ (0, import_module_wrapper.constructableModuleWrapper)();
37
+ var _SentinelWrapper = class _SentinelWrapper extends import_module_wrapper.ModuleWrapper {
38
+ archivists() {
39
+ throw new Error("Not supported");
40
+ }
41
+ async report(payloads) {
42
+ const queryPayload = {
43
+ schema: import_sentinel_model.SentinelReportQuerySchema
44
+ };
45
+ const result = await this.sendQuery(queryPayload, payloads);
46
+ return result;
47
+ }
48
+ async reportQuery(payloads, account) {
49
+ const queryPayload = {
50
+ schema: import_sentinel_model.SentinelReportQuerySchema
51
+ };
52
+ return await this.sendQueryRaw(queryPayload, payloads, account);
53
+ }
54
+ witnesses() {
55
+ throw new Error("Not supported");
56
+ }
57
+ };
58
+ __name(_SentinelWrapper, "SentinelWrapper");
59
+ __publicField(_SentinelWrapper, "instanceIdentityCheck", import_sentinel_model.isSentinelInstance);
60
+ __publicField(_SentinelWrapper, "moduleIdentityCheck", import_sentinel_model.isSentinelModule);
61
+ __publicField(_SentinelWrapper, "requiredQueries", [
62
+ import_sentinel_model.SentinelReportQuerySchema,
63
+ ...__superGet(_SentinelWrapper, _SentinelWrapper, "requiredQueries")
64
+ ]);
65
+ var SentinelWrapper = _SentinelWrapper;
66
+ // Annotate the CommonJS export names for ESM import in node:
67
+ 0 && (module.exports = {
68
+ SentinelWrapper
69
+ });
2
70
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"yqBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GCGA,IAAAI,EAA0D,uCAE1DC,EAOO,0CAGPC,8BAAAA,EACO,IAAMC,EAAN,MAAMA,UACHC,eAAAA,CAORC,YAA2C,CACzC,MAAM,IAAIC,MAAM,eAAA,CAClB,CAEA,MAAMC,OAAOC,EAA0C,CACrD,IAAMC,EAAoC,CAAEC,OAAQC,2BAA0B,EAE9E,OADe,MAAM,KAAKC,UAAUH,EAAcD,CAAAA,CAEpD,CAEA,MAAMK,YAAYL,EAAsBM,EAAuD,CAC7F,IAAML,EAAoC,CAAEC,OAAQC,2BAA0B,EAC9E,OAAO,MAAM,KAAKI,aAAaN,EAAcD,EAAUM,CAAAA,CACzD,CAEAE,WAAwC,CACtC,MAAM,IAAIV,MAAM,eAAA,CAClB,CACF,EAzBUF,EAAAA,EAAAA,mBAGRa,EAJWd,EAIKe,wBAAwBC,sBACxCF,EALWd,EAKKiB,sBAAsBC,oBACtCJ,EANWd,EAMKmB,kBAAkB,CAACX,+BAA8BY,EAAAC,IAAMF,qBANlE,IAAMnB,EAANqB","names":["src_exports","__export","SentinelWrapper","__toCommonJS","import_module_wrapper","import_sentinel_model","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","sendQuery","reportQuery","account","sendQueryRaw","witnesses","__publicField","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","__superGet","_SentinelWrapper"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Wrapper.ts"],"sourcesContent":["export * from './Wrapper'\n","import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACGA,4BAA0D;AAE1D,4BAOO;IAGPA,kDAAAA;AACO,IAAMC,mBAAN,MAAMA,yBACHC,oCAAAA;EAORC,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,UAAMC,SAAS,MAAM,KAAKC,UAAUJ,cAAcD,QAAAA;AAClD,WAAOI;EACT;EAEA,MAAME,YAAYN,UAAsBO,SAAuD;AAC7F,UAAMN,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKK,aAAaP,cAAcD,UAAUO,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;AAzBUF;AAGR,cAJWD,kBAIKe,yBAAwBC;AACxC,cALWhB,kBAKKiB,uBAAsBC;AACtC,cANWlB,kBAMKmB,mBAAkB;EAACX;KAA8B,+CAAMW;;AANlE,IAAMnB,kBAAN;","names":["constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
@@ -1,2 +1,45 @@
1
- var a=Object.defineProperty;var y=Object.getPrototypeOf;var h=Reflect.get;var m=(s,t,e)=>t in s?a(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t)=>a(s,"name",{value:t,configurable:!0});var o=(s,t,e)=>m(s,typeof t!="symbol"?t+"":t,e);var d=(s,t,e)=>h(y(s),e,t);import{constructableModuleWrapper as w,ModuleWrapper as l}from"@xyo-network/module-wrapper";import{isSentinelInstance as Q,isSentinelModule as q,SentinelReportQuerySchema as u}from"@xyo-network/sentinel-model";w();var r=class r extends l{archivists(){throw new Error("Not supported")}async report(t){let e={schema:u};return await this.sendQuery(e,t)}async reportQuery(t,e){let c={schema:u};return await this.sendQueryRaw(c,t,e)}witnesses(){throw new Error("Not supported")}};i(r,"SentinelWrapper"),o(r,"instanceIdentityCheck",Q),o(r,"moduleIdentityCheck",q),o(r,"requiredQueries",[u,...d(r,r,"requiredQueries")]);var n=r;export{n as SentinelWrapper};
1
+ var __defProp = Object.defineProperty;
2
+ var __getProtoOf = Object.getPrototypeOf;
3
+ var __reflectGet = Reflect.get;
4
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
7
+ var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
8
+
9
+ // src/Wrapper.ts
10
+ import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
11
+ import { isSentinelInstance, isSentinelModule, SentinelReportQuerySchema } from "@xyo-network/sentinel-model";
12
+ constructableModuleWrapper();
13
+ var _SentinelWrapper = class _SentinelWrapper extends ModuleWrapper {
14
+ archivists() {
15
+ throw new Error("Not supported");
16
+ }
17
+ async report(payloads) {
18
+ const queryPayload = {
19
+ schema: SentinelReportQuerySchema
20
+ };
21
+ const result = await this.sendQuery(queryPayload, payloads);
22
+ return result;
23
+ }
24
+ async reportQuery(payloads, account) {
25
+ const queryPayload = {
26
+ schema: SentinelReportQuerySchema
27
+ };
28
+ return await this.sendQueryRaw(queryPayload, payloads, account);
29
+ }
30
+ witnesses() {
31
+ throw new Error("Not supported");
32
+ }
33
+ };
34
+ __name(_SentinelWrapper, "SentinelWrapper");
35
+ __publicField(_SentinelWrapper, "instanceIdentityCheck", isSentinelInstance);
36
+ __publicField(_SentinelWrapper, "moduleIdentityCheck", isSentinelModule);
37
+ __publicField(_SentinelWrapper, "requiredQueries", [
38
+ SentinelReportQuerySchema,
39
+ ...__superGet(_SentinelWrapper, _SentinelWrapper, "requiredQueries")
40
+ ]);
41
+ var SentinelWrapper = _SentinelWrapper;
42
+ export {
43
+ SentinelWrapper
44
+ };
2
45
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"gSAGA,OAASA,8BAAAA,EAA4BC,iBAAAA,MAAqB,8BAE1D,OACEC,sBAAAA,EACAC,oBAAAA,EAIAC,6BAAAA,MACK,8BAGPC,EAAAA,EACO,IAAMC,EAAN,MAAMA,UACHC,CAAAA,CAORC,YAA2C,CACzC,MAAM,IAAIC,MAAM,eAAA,CAClB,CAEA,MAAMC,OAAOC,EAA0C,CACrD,IAAMC,EAAoC,CAAEC,OAAQC,CAA0B,EAE9E,OADe,MAAM,KAAKC,UAAUH,EAAcD,CAAAA,CAEpD,CAEA,MAAMK,YAAYL,EAAsBM,EAAuD,CAC7F,IAAML,EAAoC,CAAEC,OAAQC,CAA0B,EAC9E,OAAO,MAAM,KAAKI,aAAaN,EAAcD,EAAUM,CAAAA,CACzD,CAEAE,WAAwC,CACtC,MAAM,IAAIV,MAAM,eAAA,CAClB,CACF,EAzBUF,EAAAA,EAAAA,mBAGRa,EAJWd,EAIKe,wBAAwBC,GACxCF,EALWd,EAKKiB,sBAAsBC,GACtCJ,EANWd,EAMKmB,kBAAkB,CAACX,KAA8BY,EAAAC,IAAMF,qBANlE,IAAMnB,EAANqB","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","sendQuery","reportQuery","account","sendQueryRaw","witnesses","__publicField","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","__superGet","_SentinelWrapper"]}
1
+ {"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import { AccountInstance } from '@xyo-network/account-model'\nimport { ArchivistInstance } from '@xyo-network/archivist-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload } from '@xyo-network/payload-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']>\n{\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n const result = await this.sendQuery(queryPayload, payloads)\n return result\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";;;;;;;;;AAGA,SAASA,4BAA4BC,qBAAqB;AAE1D,SACEC,oBACAC,kBAIAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,mBAAN,MAAMA,yBACHC,cAAAA;EAORC,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,UAAMC,SAAS,MAAM,KAAKC,UAAUJ,cAAcD,QAAAA;AAClD,WAAOI;EACT;EAEA,MAAME,YAAYN,UAAsBO,SAAuD;AAC7F,UAAMN,eAAoC;MAAEC,QAAQC;IAA0B;AAC9E,WAAO,MAAM,KAAKK,aAAaP,cAAcD,UAAUO,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIX,MAAM,eAAA;EAClB;AACF;AAzBUF;AAGR,cAJWD,kBAIKe,yBAAwBC;AACxC,cALWhB,kBAKKiB,uBAAsBC;AACtC,cANWlB,kBAMKmB,mBAAkB;EAACX;KAA8B,+CAAMW;;AANlE,IAAMnB,kBAAN;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","archivists","Error","report","payloads","queryPayload","schema","SentinelReportQuerySchema","result","sendQuery","reportQuery","account","sendQueryRaw","witnesses","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries"]}
package/package.json CHANGED
@@ -10,28 +10,28 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xyo-network/account-model": "~2.107.3",
14
- "@xyo-network/archivist-model": "~2.107.3",
15
- "@xyo-network/module-model": "~2.107.3",
16
- "@xyo-network/module-wrapper": "~2.107.3",
17
- "@xyo-network/payload-model": "~2.107.3",
18
- "@xyo-network/sentinel-model": "~2.107.3",
19
- "@xyo-network/witness-model": "~2.107.3"
13
+ "@xyo-network/account-model": "~2.107.5",
14
+ "@xyo-network/archivist-model": "~2.107.5",
15
+ "@xyo-network/module-model": "~2.107.5",
16
+ "@xyo-network/module-wrapper": "~2.107.5",
17
+ "@xyo-network/payload-model": "~2.107.5",
18
+ "@xyo-network/sentinel-model": "~2.107.5",
19
+ "@xyo-network/witness-model": "~2.107.5"
20
20
  },
21
21
  "description": "Primary SDK for using XYO Protocol 2.0",
22
22
  "devDependencies": {
23
23
  "@xylabs/delay": "^3.5.1",
24
- "@xylabs/ts-scripts-yarn3": "^3.11.9",
25
- "@xylabs/tsconfig": "^3.11.9",
26
- "@xyo-network/abstract-witness": "~2.107.3",
27
- "@xyo-network/account": "~2.107.3",
28
- "@xyo-network/archivist-memory": "~2.107.3",
29
- "@xyo-network/boundwitness-model": "~2.107.3",
30
- "@xyo-network/module-model": "~2.107.3",
31
- "@xyo-network/node-memory": "~2.107.3",
32
- "@xyo-network/payload-builder": "~2.107.3",
33
- "@xyo-network/sentinel-memory": "~2.107.3",
34
- "@xyo-network/witness-adhoc": "~2.107.3",
24
+ "@xylabs/ts-scripts-yarn3": "^3.11.10",
25
+ "@xylabs/tsconfig": "^3.11.10",
26
+ "@xyo-network/abstract-witness": "~2.107.5",
27
+ "@xyo-network/account": "~2.107.5",
28
+ "@xyo-network/archivist-memory": "~2.107.5",
29
+ "@xyo-network/boundwitness-model": "~2.107.5",
30
+ "@xyo-network/module-model": "~2.107.5",
31
+ "@xyo-network/node-memory": "~2.107.5",
32
+ "@xyo-network/payload-builder": "~2.107.5",
33
+ "@xyo-network/sentinel-memory": "~2.107.5",
34
+ "@xyo-network/witness-adhoc": "~2.107.5",
35
35
  "typescript": "^5.5.2"
36
36
  },
37
37
  "types": "dist/node/index.d.ts",
@@ -72,6 +72,6 @@
72
72
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
73
73
  },
74
74
  "sideEffects": false,
75
- "version": "2.107.3",
75
+ "version": "2.107.5",
76
76
  "type": "module"
77
77
  }