@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.
- package/dist/browser/index.cjs +61 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +40 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +61 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +40 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +69 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +44 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +19 -19
package/dist/browser/index.cjs
CHANGED
|
@@ -1,2 +1,62 @@
|
|
|
1
|
-
"use strict";
|
|
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":"
|
|
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"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
var
|
|
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":"
|
|
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"]}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,2 +1,62 @@
|
|
|
1
|
-
"use strict";
|
|
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":"
|
|
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"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
var
|
|
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":"
|
|
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"]}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,2 +1,70 @@
|
|
|
1
|
-
"use strict";
|
|
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
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -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":"
|
|
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"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
var
|
|
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
|
package/dist/node/index.js.map
CHANGED
|
@@ -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":"
|
|
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.
|
|
14
|
-
"@xyo-network/archivist-model": "~2.107.
|
|
15
|
-
"@xyo-network/module-model": "~2.107.
|
|
16
|
-
"@xyo-network/module-wrapper": "~2.107.
|
|
17
|
-
"@xyo-network/payload-model": "~2.107.
|
|
18
|
-
"@xyo-network/sentinel-model": "~2.107.
|
|
19
|
-
"@xyo-network/witness-model": "~2.107.
|
|
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.
|
|
25
|
-
"@xylabs/tsconfig": "^3.11.
|
|
26
|
-
"@xyo-network/abstract-witness": "~2.107.
|
|
27
|
-
"@xyo-network/account": "~2.107.
|
|
28
|
-
"@xyo-network/archivist-memory": "~2.107.
|
|
29
|
-
"@xyo-network/boundwitness-model": "~2.107.
|
|
30
|
-
"@xyo-network/module-model": "~2.107.
|
|
31
|
-
"@xyo-network/node-memory": "~2.107.
|
|
32
|
-
"@xyo-network/payload-builder": "~2.107.
|
|
33
|
-
"@xyo-network/sentinel-memory": "~2.107.
|
|
34
|
-
"@xyo-network/witness-adhoc": "~2.107.
|
|
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.
|
|
75
|
+
"version": "2.107.5",
|
|
76
76
|
"type": "module"
|
|
77
77
|
}
|