@xyo-network/sentinel 2.64.7 → 2.64.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/cjs/index.js +1 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/typeChecks.js +12 -0
  4. package/dist/cjs/typeChecks.js.map +1 -0
  5. package/dist/docs.json +5969 -5097
  6. package/dist/esm/index.js +1 -2
  7. package/dist/esm/index.js.map +1 -1
  8. package/dist/esm/typeChecks.js +9 -0
  9. package/dist/esm/typeChecks.js.map +1 -0
  10. package/dist/types/index.d.ts +1 -2
  11. package/dist/types/index.d.ts.map +1 -1
  12. package/dist/types/typeChecks.d.ts +14 -0
  13. package/dist/types/typeChecks.d.ts.map +1 -0
  14. package/package.json +14 -14
  15. package/src/index.ts +1 -2
  16. package/src/typeChecks.ts +12 -0
  17. package/dist/cjs/isSentinelInstance.js +0 -6
  18. package/dist/cjs/isSentinelInstance.js.map +0 -1
  19. package/dist/cjs/isSentinelModule.js +0 -7
  20. package/dist/cjs/isSentinelModule.js.map +0 -1
  21. package/dist/cjs/withSentinelModule.js +0 -9
  22. package/dist/cjs/withSentinelModule.js.map +0 -1
  23. package/dist/esm/isSentinelInstance.js +0 -3
  24. package/dist/esm/isSentinelInstance.js.map +0 -1
  25. package/dist/esm/isSentinelModule.js +0 -4
  26. package/dist/esm/isSentinelModule.js.map +0 -1
  27. package/dist/esm/withSentinelModule.js +0 -6
  28. package/dist/esm/withSentinelModule.js.map +0 -1
  29. package/dist/types/isSentinelInstance.d.ts +0 -2
  30. package/dist/types/isSentinelInstance.d.ts.map +0 -1
  31. package/dist/types/isSentinelModule.d.ts +0 -3
  32. package/dist/types/isSentinelModule.d.ts.map +0 -1
  33. package/dist/types/withSentinelModule.d.ts +0 -3
  34. package/dist/types/withSentinelModule.d.ts.map +0 -1
  35. package/src/isSentinelInstance.ts +0 -5
  36. package/src/isSentinelModule.ts +0 -6
  37. package/src/withSentinelModule.ts +0 -7
package/dist/esm/index.js CHANGED
@@ -1,12 +1,11 @@
1
1
  export * from './AbstractSentinel';
2
2
  export * from './Automation';
3
3
  export * from './Config';
4
- export * from './isSentinelModule';
5
4
  export * from './MemorySentinel';
6
5
  export * from './Queries';
7
6
  export * from './SentinelIntervalAutomationWrapper';
8
7
  export * from './SentinelModel';
9
8
  export * from './SentinelRunner';
10
- export * from './withSentinelModule';
9
+ export * from './typeChecks';
11
10
  export * from './Wrapper';
12
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qCAAqC,CAAA;AACnD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qCAAqC,CAAA;AACnD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { AsFactory, IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model';
2
+ import { SentinelReportQuerySchema } from './Queries';
3
+ export const isSentinelInstance = IsInstanceFactory.create({ report: 'function' }, isModuleInstance);
4
+ export const isSentinelModule = IsModuleFactory.create([SentinelReportQuerySchema]);
5
+ export const asSentinelModule = AsFactory.create(isSentinelModule);
6
+ export const asSentinelInstance = AsFactory.create(isSentinelInstance);
7
+ export const withSentinelModule = WithFactory.create(isSentinelModule);
8
+ export const withSentinelInstance = WithFactory.create(isSentinelInstance);
9
+ //# sourceMappingURL=typeChecks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeChecks.js","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAExH,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAGrD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,MAAM,CAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,gBAAgB,CAAC,CAAA;AACtH,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAiB,CAAC,yBAAyB,CAAC,CAAC,CAAA;AAEnG,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;AAClE,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AACtE,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA"}
@@ -1,12 +1,11 @@
1
1
  export * from './AbstractSentinel';
2
2
  export * from './Automation';
3
3
  export * from './Config';
4
- export * from './isSentinelModule';
5
4
  export * from './MemorySentinel';
6
5
  export * from './Queries';
7
6
  export * from './SentinelIntervalAutomationWrapper';
8
7
  export * from './SentinelModel';
9
8
  export * from './SentinelRunner';
10
- export * from './withSentinelModule';
9
+ export * from './typeChecks';
11
10
  export * from './Wrapper';
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qCAAqC,CAAA;AACnD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qCAAqC,CAAA;AACnD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { SentinelModule } from './SentinelModel';
2
+ export declare const isSentinelInstance: import("@xyo-network/module-model").InstanceTypeCheck<import("./SentinelModel").Sentinel>;
3
+ export declare const isSentinelModule: import("@xyo-network/module-model").ModuleTypeCheck<SentinelModule>;
4
+ export declare const asSentinelModule: {
5
+ (module: any): SentinelModule | undefined;
6
+ (module: any, assert: string | (() => string)): SentinelModule;
7
+ };
8
+ export declare const asSentinelInstance: {
9
+ (module: any): import("./SentinelModel").Sentinel | undefined;
10
+ (module: any, assert: string | (() => string)): import("./SentinelModel").Sentinel;
11
+ };
12
+ export declare const withSentinelModule: <R>(module: any, closure: (module: SentinelModule) => R) => R | undefined;
13
+ export declare const withSentinelInstance: <R>(module: any, closure: (module: import("./SentinelModel").Sentinel) => R) => R | undefined;
14
+ //# sourceMappingURL=typeChecks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typeChecks.d.ts","sourceRoot":"","sources":["../../src/typeChecks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAoB,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAElE,eAAO,MAAM,kBAAkB,2FAAuF,CAAA;AACtH,eAAO,MAAM,gBAAgB,qEAAsE,CAAA;AAEnG,eAAO,MAAM,gBAAgB;;;CAAqC,CAAA;AAClE,eAAO,MAAM,kBAAkB;;;CAAuC,CAAA;AACtE,eAAO,MAAM,kBAAkB,2EAAuC,CAAA;AACtE,eAAO,MAAM,oBAAoB,+FAAyC,CAAA"}
package/package.json CHANGED
@@ -12,19 +12,19 @@
12
12
  "dependencies": {
13
13
  "@xylabs/assert": "^2.9.3",
14
14
  "@xylabs/promise": "^2.9.3",
15
- "@xyo-network/account": "^2.64.7",
16
- "@xyo-network/account-model": "^2.64.7",
17
- "@xyo-network/archivist": "^2.64.7",
18
- "@xyo-network/archivist-wrapper": "^2.64.7",
19
- "@xyo-network/boundwitness-model": "^2.64.7",
20
- "@xyo-network/core": "^2.64.7",
21
- "@xyo-network/error": "^2.64.7",
22
- "@xyo-network/module": "^2.64.7",
23
- "@xyo-network/module-model": "^2.64.7",
24
- "@xyo-network/payload-model": "^2.64.7",
25
- "@xyo-network/payload-wrapper": "^2.64.7",
26
- "@xyo-network/promise": "^2.64.7",
27
- "@xyo-network/witness": "^2.64.7",
15
+ "@xyo-network/account": "^2.64.8",
16
+ "@xyo-network/account-model": "^2.64.8",
17
+ "@xyo-network/archivist": "^2.64.8",
18
+ "@xyo-network/archivist-wrapper": "^2.64.8",
19
+ "@xyo-network/boundwitness-model": "^2.64.8",
20
+ "@xyo-network/core": "^2.64.8",
21
+ "@xyo-network/error": "^2.64.8",
22
+ "@xyo-network/module": "^2.64.8",
23
+ "@xyo-network/module-model": "^2.64.8",
24
+ "@xyo-network/payload-model": "^2.64.8",
25
+ "@xyo-network/payload-wrapper": "^2.64.8",
26
+ "@xyo-network/promise": "^2.64.8",
27
+ "@xyo-network/witness": "^2.64.8",
28
28
  "lodash": "^4.17.21"
29
29
  },
30
30
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -66,5 +66,5 @@
66
66
  },
67
67
  "sideEffects": false,
68
68
  "types": "dist/types/index.d.ts",
69
- "version": "2.64.7"
69
+ "version": "2.64.8"
70
70
  }
package/src/index.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  export * from './AbstractSentinel'
2
2
  export * from './Automation'
3
3
  export * from './Config'
4
- export * from './isSentinelModule'
5
4
  export * from './MemorySentinel'
6
5
  export * from './Queries'
7
6
  export * from './SentinelIntervalAutomationWrapper'
8
7
  export * from './SentinelModel'
9
8
  export * from './SentinelRunner'
10
- export * from './withSentinelModule'
9
+ export * from './typeChecks'
11
10
  export * from './Wrapper'
@@ -0,0 +1,12 @@
1
+ import { AsFactory, IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'
2
+
3
+ import { SentinelReportQuerySchema } from './Queries'
4
+ import { SentinelInstance, SentinelModule } from './SentinelModel'
5
+
6
+ export const isSentinelInstance = IsInstanceFactory.create<SentinelInstance>({ report: 'function' }, isModuleInstance)
7
+ export const isSentinelModule = IsModuleFactory.create<SentinelModule>([SentinelReportQuerySchema])
8
+
9
+ export const asSentinelModule = AsFactory.create(isSentinelModule)
10
+ export const asSentinelInstance = AsFactory.create(isSentinelInstance)
11
+ export const withSentinelModule = WithFactory.create(isSentinelModule)
12
+ export const withSentinelInstance = WithFactory.create(isSentinelInstance)
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSentinelInstance = void 0;
4
- const module_1 = require("@xyo-network/module");
5
- exports.isSentinelInstance = module_1.IsInstanceFactory.create({ report: 'function' });
6
- //# sourceMappingURL=isSentinelInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSentinelInstance.js","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":";;;AAAA,gDAAuD;AAI1C,QAAA,kBAAkB,GAAG,0BAAiB,CAAC,MAAM,CAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSentinelModule = void 0;
4
- const module_1 = require("@xyo-network/module");
5
- const Queries_1 = require("./Queries");
6
- exports.isSentinelModule = module_1.IsModuleFactory.create([Queries_1.SentinelReportQuerySchema]);
7
- //# sourceMappingURL=isSentinelModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSentinelModule.js","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":";;;AAAA,gDAAqD;AAErD,uCAAqD;AAGxC,QAAA,gBAAgB,GAAG,wBAAe,CAAC,MAAM,CAAiB,CAAC,mCAAyB,CAAC,CAAC,CAAA"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.withSentinelModule = exports.withSentinelInstance = void 0;
4
- const module_model_1 = require("@xyo-network/module-model");
5
- const isSentinelInstance_1 = require("./isSentinelInstance");
6
- const isSentinelModule_1 = require("./isSentinelModule");
7
- exports.withSentinelInstance = module_model_1.WithFactory.create(isSentinelInstance_1.isSentinelInstance);
8
- exports.withSentinelModule = module_model_1.WithFactory.create(isSentinelModule_1.isSentinelModule);
9
- //# sourceMappingURL=withSentinelModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withSentinelModule.js","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":";;;AAAA,4DAAuD;AAEvD,6DAAyD;AACzD,yDAAqD;AAExC,QAAA,oBAAoB,GAAG,0BAAW,CAAC,MAAM,CAAC,uCAAkB,CAAC,CAAA;AAC7D,QAAA,kBAAkB,GAAG,0BAAW,CAAC,MAAM,CAAC,mCAAgB,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { IsInstanceFactory } from '@xyo-network/module';
2
- export const isSentinelInstance = IsInstanceFactory.create({ report: 'function' });
3
- //# sourceMappingURL=isSentinelInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSentinelInstance.js","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,MAAM,CAAmB,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import { IsModuleFactory } from '@xyo-network/module';
2
- import { SentinelReportQuerySchema } from './Queries';
3
- export const isSentinelModule = IsModuleFactory.create([SentinelReportQuerySchema]);
4
- //# sourceMappingURL=isSentinelModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSentinelModule.js","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAA;AAGrD,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAiB,CAAC,yBAAyB,CAAC,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import { WithFactory } from '@xyo-network/module-model';
2
- import { isSentinelInstance } from './isSentinelInstance';
3
- import { isSentinelModule } from './isSentinelModule';
4
- export const withSentinelInstance = WithFactory.create(isSentinelInstance);
5
- export const withSentinelModule = WithFactory.create(isSentinelModule);
6
- //# sourceMappingURL=withSentinelModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withSentinelModule.js","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;AAC1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const isSentinelInstance: import("@xyo-network/module").InstanceTypeCheck<import("./SentinelModel").Sentinel>;
2
- //# sourceMappingURL=isSentinelInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSentinelInstance.d.ts","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,qFAAqE,CAAA"}
@@ -1,3 +0,0 @@
1
- import { SentinelModule } from './SentinelModel';
2
- export declare const isSentinelModule: import("@xyo-network/module").ModuleTypeCheck<SentinelModule>;
3
- //# sourceMappingURL=isSentinelModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isSentinelModule.d.ts","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,gBAAgB,+DAAsE,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const withSentinelInstance: <R extends void = void>(module: any, closure: (module: import("./SentinelModel").Sentinel) => R) => R | undefined;
2
- export declare const withSentinelModule: <R extends void = void>(module: any, closure: (module: import("./SentinelModel").SentinelModule) => R) => R | undefined;
3
- //# sourceMappingURL=withSentinelModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"withSentinelModule.d.ts","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,mHAAyC,CAAA;AAC1E,eAAO,MAAM,kBAAkB,yHAAuC,CAAA"}
@@ -1,5 +0,0 @@
1
- import { IsInstanceFactory } from '@xyo-network/module'
2
-
3
- import { SentinelInstance } from './SentinelModel'
4
-
5
- export const isSentinelInstance = IsInstanceFactory.create<SentinelInstance>({ report: 'function' })
@@ -1,6 +0,0 @@
1
- import { IsModuleFactory } from '@xyo-network/module'
2
-
3
- import { SentinelReportQuerySchema } from './Queries'
4
- import { SentinelModule } from './SentinelModel'
5
-
6
- export const isSentinelModule = IsModuleFactory.create<SentinelModule>([SentinelReportQuerySchema])
@@ -1,7 +0,0 @@
1
- import { WithFactory } from '@xyo-network/module-model'
2
-
3
- import { isSentinelInstance } from './isSentinelInstance'
4
- import { isSentinelModule } from './isSentinelModule'
5
-
6
- export const withSentinelInstance = WithFactory.create(isSentinelInstance)
7
- export const withSentinelModule = WithFactory.create(isSentinelModule)