@xyo-network/sentinel 2.64.6 → 2.64.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ import { IsInstanceFactory } from '@xyo-network/module';
2
+ export const isSentinelInstance = IsInstanceFactory.create({ report: 'function' });
3
+ //# sourceMappingURL=isSentinelInstance.js.map
@@ -0,0 +1 @@
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,3 +1,4 @@
1
- import { isModule, IsModuleFactory } from '@xyo-network/module';
2
- export const isSentinelModule = IsModuleFactory.create(isModule, ['report']);
1
+ import { IsModuleFactory } from '@xyo-network/module';
2
+ import { SentinelReportQuerySchema } from './Queries';
3
+ export const isSentinelModule = IsModuleFactory.create([SentinelReportQuerySchema]);
3
4
  //# sourceMappingURL=isSentinelModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isSentinelModule.js","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAI/D,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,MAAM,CAAiB,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA"}
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,4 +1,6 @@
1
- import { WithModuleFactory } from '@xyo-network/module-model';
1
+ import { WithFactory } from '@xyo-network/module-model';
2
+ import { isSentinelInstance } from './isSentinelInstance';
2
3
  import { isSentinelModule } from './isSentinelModule';
3
- export const withSentinelModule = WithModuleFactory.create(isSentinelModule);
4
+ export const withSentinelInstance = WithFactory.create(isSentinelInstance);
5
+ export const withSentinelModule = WithFactory.create(isSentinelModule);
4
6
  //# sourceMappingURL=withSentinelModule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withSentinelModule.js","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAA"}
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"}
@@ -7,6 +7,7 @@ import { SentinelConfig } from './Config';
7
7
  export interface Sentinel {
8
8
  report: (payloads?: Payload[]) => Promisable<Payload[]>;
9
9
  }
10
+ export type SentinelInstance = Sentinel;
10
11
  export type SentinelReportEndEventArgs = ModuleEventArgs<SentinelModule, {
11
12
  boundWitness?: BoundWitness;
12
13
  errors?: Error[];
@@ -1 +1 @@
1
- {"version":3,"file":"SentinelModel.d.ts","sourceRoot":"","sources":["../../src/SentinelModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACxH,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;CACxD;AAED,MAAM,MAAM,0BAA0B,GAAG,eAAe,CACtD,cAAc,EACd;IACE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;IACtB,WAAW,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,0BAA2B,SAAQ,SAAS;IAC3D,SAAS,EAAE,0BAA0B,CAAA;CACtC;AAED,MAAM,MAAM,4BAA4B,GAAG,eAAe,CACxD,cAAc,EACd;IACE,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,WAAW,EAAE,4BAA4B,CAAA;CAC1C;AAED,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B,EAAE,4BAA4B,EAAE,eAAe;CAAG;AAE7H,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS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A0B,CAAA;CACtC;AAED,MAAM,MAAM,4BAA4B,GAAG,eAAe,CACxD,cAAc,EACd;IACE,UAAU,CAAC,EAAE,OAAO,EAAE,CAAA;CACvB,CACF,CAAA;AAED,MAAM,WAAW,4BAA6B,SAAQ,SAAS;IAC7D,WAAW,EAAE,4BAA4B,CAAA;CAC1C;AAED,MAAM,WAAW,uBAAwB,SAAQ,0BAA0B,EAAE,4BAA4B,EAAE,eAAe;CAAG;AAE7H,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,eAAe,CAAC,cAAc,CAAC,GAAG,eAAe,CAAC,cAAc,CAAC,EACjF,iBAAiB,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IACzD,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA;AAE5C,MAAM,MAAM,cAAc,CACxB,OAAO,SAAS,cAAc,GAAG,cAAc,EAC/C,UAAU,SAAS,uBAAuB,GAAG,uBAAuB,IAClE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const isSentinelInstance: import("@xyo-network/module").InstanceTypeCheck<import("./SentinelModel").Sentinel>;
2
+ //# sourceMappingURL=isSentinelInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSentinelInstance.d.ts","sourceRoot":"","sources":["../../src/isSentinelInstance.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,qFAAqE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"isSentinelModule.d.ts","sourceRoot":"","sources":["../../src/isSentinelModule.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,gBAAgB,+DAA+D,CAAA"}
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,2 +1,3 @@
1
- export declare const withSentinelModule: <R extends void = void>(module: any, closure: (module: any) => R) => R | undefined;
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;
2
3
  //# sourceMappingURL=withSentinelModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withSentinelModule.d.ts","sourceRoot":"","sources":["../../src/withSentinelModule.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,oFAA6C,CAAA"}
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"}
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.6",
16
- "@xyo-network/account-model": "^2.64.6",
17
- "@xyo-network/archivist": "^2.64.6",
18
- "@xyo-network/archivist-wrapper": "^2.64.6",
19
- "@xyo-network/boundwitness-model": "^2.64.6",
20
- "@xyo-network/core": "^2.64.6",
21
- "@xyo-network/error": "^2.64.6",
22
- "@xyo-network/module": "^2.64.6",
23
- "@xyo-network/module-model": "^2.64.6",
24
- "@xyo-network/payload-model": "^2.64.6",
25
- "@xyo-network/payload-wrapper": "^2.64.6",
26
- "@xyo-network/promise": "^2.64.6",
27
- "@xyo-network/witness": "^2.64.6",
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",
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.6"
69
+ "version": "2.64.7"
70
70
  }
@@ -10,6 +10,8 @@ export interface Sentinel {
10
10
  report: (payloads?: Payload[]) => Promisable<Payload[]>
11
11
  }
12
12
 
13
+ export type SentinelInstance = Sentinel
14
+
13
15
  export type SentinelReportEndEventArgs = ModuleEventArgs<
14
16
  SentinelModule,
15
17
  {
@@ -0,0 +1,5 @@
1
+ import { IsInstanceFactory } from '@xyo-network/module'
2
+
3
+ import { SentinelInstance } from './SentinelModel'
4
+
5
+ export const isSentinelInstance = IsInstanceFactory.create<SentinelInstance>({ report: 'function' })
@@ -1,5 +1,6 @@
1
- import { isModule, IsModuleFactory } from '@xyo-network/module'
1
+ import { IsModuleFactory } from '@xyo-network/module'
2
2
 
3
+ import { SentinelReportQuerySchema } from './Queries'
3
4
  import { SentinelModule } from './SentinelModel'
4
5
 
5
- export const isSentinelModule = IsModuleFactory.create<SentinelModule>(isModule, ['report'])
6
+ export const isSentinelModule = IsModuleFactory.create<SentinelModule>([SentinelReportQuerySchema])
@@ -1,5 +1,7 @@
1
- import { WithModuleFactory } from '@xyo-network/module-model'
1
+ import { WithFactory } from '@xyo-network/module-model'
2
2
 
3
+ import { isSentinelInstance } from './isSentinelInstance'
3
4
  import { isSentinelModule } from './isSentinelModule'
4
5
 
5
- export const withSentinelModule = WithModuleFactory.create(isSentinelModule)
6
+ export const withSentinelInstance = WithFactory.create(isSentinelInstance)
7
+ export const withSentinelModule = WithFactory.create(isSentinelModule)