@xyo-network/sentinel-model 2.106.0 → 2.107.0

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 (85) hide show
  1. package/dist/browser/Automation.d.cts +7 -22
  2. package/dist/browser/Automation.d.cts.map +1 -1
  3. package/dist/browser/Automation.d.mts +7 -22
  4. package/dist/browser/Automation.d.mts.map +1 -1
  5. package/dist/browser/Automation.d.ts +7 -22
  6. package/dist/browser/Automation.d.ts.map +1 -1
  7. package/dist/browser/ResolvedTask.d.cts +0 -1
  8. package/dist/browser/ResolvedTask.d.cts.map +1 -1
  9. package/dist/browser/ResolvedTask.d.mts +0 -1
  10. package/dist/browser/ResolvedTask.d.mts.map +1 -1
  11. package/dist/browser/ResolvedTask.d.ts +0 -1
  12. package/dist/browser/ResolvedTask.d.ts.map +1 -1
  13. package/dist/browser/Task.d.cts +0 -3
  14. package/dist/browser/Task.d.cts.map +1 -1
  15. package/dist/browser/Task.d.mts +0 -3
  16. package/dist/browser/Task.d.mts.map +1 -1
  17. package/dist/browser/Task.d.ts +0 -3
  18. package/dist/browser/Task.d.ts.map +1 -1
  19. package/dist/browser/index.cjs +1 -65
  20. package/dist/browser/index.cjs.map +1 -1
  21. package/dist/browser/index.js +1 -42
  22. package/dist/browser/index.js.map +1 -1
  23. package/dist/browser/typeChecks.d.cts +150 -150
  24. package/dist/browser/typeChecks.d.cts.map +1 -1
  25. package/dist/browser/typeChecks.d.mts +150 -150
  26. package/dist/browser/typeChecks.d.mts.map +1 -1
  27. package/dist/browser/typeChecks.d.ts +150 -150
  28. package/dist/browser/typeChecks.d.ts.map +1 -1
  29. package/dist/neutral/Automation.d.cts +7 -22
  30. package/dist/neutral/Automation.d.cts.map +1 -1
  31. package/dist/neutral/Automation.d.mts +7 -22
  32. package/dist/neutral/Automation.d.mts.map +1 -1
  33. package/dist/neutral/Automation.d.ts +7 -22
  34. package/dist/neutral/Automation.d.ts.map +1 -1
  35. package/dist/neutral/ResolvedTask.d.cts +0 -1
  36. package/dist/neutral/ResolvedTask.d.cts.map +1 -1
  37. package/dist/neutral/ResolvedTask.d.mts +0 -1
  38. package/dist/neutral/ResolvedTask.d.mts.map +1 -1
  39. package/dist/neutral/ResolvedTask.d.ts +0 -1
  40. package/dist/neutral/ResolvedTask.d.ts.map +1 -1
  41. package/dist/neutral/Task.d.cts +0 -3
  42. package/dist/neutral/Task.d.cts.map +1 -1
  43. package/dist/neutral/Task.d.mts +0 -3
  44. package/dist/neutral/Task.d.mts.map +1 -1
  45. package/dist/neutral/Task.d.ts +0 -3
  46. package/dist/neutral/Task.d.ts.map +1 -1
  47. package/dist/neutral/index.cjs +1 -65
  48. package/dist/neutral/index.cjs.map +1 -1
  49. package/dist/neutral/index.js +1 -42
  50. package/dist/neutral/index.js.map +1 -1
  51. package/dist/neutral/typeChecks.d.cts +150 -150
  52. package/dist/neutral/typeChecks.d.cts.map +1 -1
  53. package/dist/neutral/typeChecks.d.mts +150 -150
  54. package/dist/neutral/typeChecks.d.mts.map +1 -1
  55. package/dist/neutral/typeChecks.d.ts +150 -150
  56. package/dist/neutral/typeChecks.d.ts.map +1 -1
  57. package/dist/node/Automation.d.cts +7 -22
  58. package/dist/node/Automation.d.cts.map +1 -1
  59. package/dist/node/Automation.d.mts +7 -22
  60. package/dist/node/Automation.d.mts.map +1 -1
  61. package/dist/node/Automation.d.ts +7 -22
  62. package/dist/node/Automation.d.ts.map +1 -1
  63. package/dist/node/ResolvedTask.d.cts +0 -1
  64. package/dist/node/ResolvedTask.d.cts.map +1 -1
  65. package/dist/node/ResolvedTask.d.mts +0 -1
  66. package/dist/node/ResolvedTask.d.mts.map +1 -1
  67. package/dist/node/ResolvedTask.d.ts +0 -1
  68. package/dist/node/ResolvedTask.d.ts.map +1 -1
  69. package/dist/node/Task.d.cts +0 -3
  70. package/dist/node/Task.d.cts.map +1 -1
  71. package/dist/node/Task.d.mts +0 -3
  72. package/dist/node/Task.d.mts.map +1 -1
  73. package/dist/node/Task.d.ts +0 -3
  74. package/dist/node/Task.d.ts.map +1 -1
  75. package/dist/node/index.cjs +1 -80
  76. package/dist/node/index.cjs.map +1 -1
  77. package/dist/node/index.js +1 -42
  78. package/dist/node/index.js.map +1 -1
  79. package/dist/node/typeChecks.d.cts +150 -150
  80. package/dist/node/typeChecks.d.cts.map +1 -1
  81. package/dist/node/typeChecks.d.mts +150 -150
  82. package/dist/node/typeChecks.d.mts.map +1 -1
  83. package/dist/node/typeChecks.d.ts +150 -150
  84. package/dist/node/typeChecks.d.ts.map +1 -1
  85. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAA;AAC/D,eAAO,MAAM,wBAAwB,EAAE,wBAAmD,CAAA;AAE1F,MAAM,MAAM,gCAAgC,GAAG,iCAAiC,CAAA;AAChF,eAAO,MAAM,gCAAgC,EAAE,gCAAoE,CAAA;AAEnH,MAAM,MAAM,6BAA6B,GAAG,8BAA8B,CAAA;AAC1E,eAAO,MAAM,6BAA6B,EAAE,6BAA8D,CAAA;AAE1G,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,OAAO,IAAI,OAAO,CACpE;IACE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;CAC5B,GAAG,CAAC,CACN,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAAC;IAC5E,+CAA+C;IAC/C,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,oDAAoD;IACpD,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAA;IAErD,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,C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AAE,MAAM,CAAA;IAGZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAGlB,cAAc,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAA;IAGrD,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAGxC,KAAK,EAAE,MAAM,CAAA;IAGb,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;WA3B9B,UAAU,GAAG,OAAO;;UAOvB,MAAM;gBAGA,MAAM;qBAGD,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK;gBAGzC,MAAM;YAEV,gCAAgC;WAGjC,MAAM;UAGP,UAAU;CAGoH,CAAA;AAGtI,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAGF,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -8,44 +8,29 @@ export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchem
8
8
  export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
9
9
  type?: 'interval' | 'event';
10
10
  } & T>;
11
- /** Settings for an Interval Automation */
12
11
  export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
13
- /** Epoch after which any reoccurrence stops */
14
12
  end?: number;
15
- /** Time between triggers [non-repeating if undefined] */
16
13
  frequency?: number;
17
- /** Units for frequency field [hour if undefined] */
18
14
  frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
19
- /** Remaining triggers [infinite if undefined] */
20
15
  remaining?: number;
21
16
  schema: SentinelIntervalAutomationSchema;
22
- /** Epoch of the next trigger */
23
17
  start: number;
24
- /** The type of automation */
25
18
  type: 'interval';
26
19
  }>;
27
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
28
- type?: "interval" | "event" | undefined;
20
+ export declare const isSentinelIntervalAutomation: (x?: unknown | null) => x is import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
21
+ type?: "interval" | "event";
29
22
  } & {
30
- /** Epoch after which any reoccurrence stops */
31
- end?: number | undefined;
32
- /** Time between triggers [non-repeating if undefined] */
33
- frequency?: number | undefined;
34
- /** Units for frequency field [hour if undefined] */
35
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
36
- /** Remaining triggers [infinite if undefined] */
37
- remaining?: number | undefined;
23
+ end?: number;
24
+ frequency?: number;
25
+ frequencyUnits?: "second" | "minute" | "hour" | "day";
26
+ remaining?: number;
38
27
  schema: SentinelIntervalAutomationSchema;
39
- /** Epoch of the next trigger */
40
28
  start: number;
41
- /** The type of automation */
42
- type: 'interval';
29
+ type: "interval";
43
30
  };
44
- /** Settings for an Event Automation */
45
31
  export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
46
32
  schema: SentinelEventAutomationSchema;
47
33
  type: 'event';
48
34
  }>;
49
- /** Settings for an Automation */
50
35
  export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
51
36
  //# sourceMappingURL=Automation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAE3E,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAA;AAC/D,eAAO,MAAM,wBAAwB,EAAE,wBAAmD,CAAA;AAE1F,MAAM,MAAM,gCAAgC,GAAG,iCAAiC,CAAA;AAChF,eAAO,MAAM,gCA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AG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -4,7 +4,6 @@ import { ModuleInstance } from '@xyo-network/module-model';
4
4
  import { WitnessInstance } from '@xyo-network/witness-model';
5
5
  import { ArchivistTask, DivinerTask, ModuleTask, WitnessTask } from './Task';
6
6
  export type ResolvedModuleTask<TTask extends ModuleTask = ModuleTask, TInstance extends ModuleInstance = ModuleInstance> = Omit<TTask, 'module'> & {
7
- /** @field the modules that performs the task */
8
7
  module: TInstance;
9
8
  };
10
9
  export type ResolvedArchivistTask = ResolvedModuleTask<ArchivistTask, ArchivistInstance>;
@@ -1 +1 @@
1
- {"version":3,"file":"ResolvedTask.d.ts","sourceRoot":"","sources":["../../src/ResolvedTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAE5E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,SAAS,SAAS,cAAc,GAAG,cAAc,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;IACjJ,gDAAgD;IAChD,MAAM,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACxF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAClF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAElF,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,CAAA"}
1
+ {"version":3,"file":"ResolvedTask.d.ts","sourceRoot":"","sources":["../../src/ResolvedTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAE5E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,SAAS,SAAS,cAAc,GAAG,cAAc,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;IAEjJ,MAAM,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACxF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAClF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAElF,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,CAAA"}
@@ -4,7 +4,6 @@ import { ModuleInstance } from '@xyo-network/module-model';
4
4
  import { WitnessInstance } from '@xyo-network/witness-model';
5
5
  import { ArchivistTask, DivinerTask, ModuleTask, WitnessTask } from './Task';
6
6
  export type ResolvedModuleTask<TTask extends ModuleTask = ModuleTask, TInstance extends ModuleInstance = ModuleInstance> = Omit<TTask, 'module'> & {
7
- /** @field the modules that performs the task */
8
7
  module: TInstance;
9
8
  };
10
9
  export type ResolvedArchivistTask = ResolvedModuleTask<ArchivistTask, ArchivistInstance>;
@@ -1 +1 @@
1
- {"version":3,"file":"ResolvedTask.d.ts","sourceRoot":"","sources":["../../src/ResolvedTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAE5E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,SAAS,SAAS,cAAc,GAAG,cAAc,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;IACjJ,gDAAgD;IAChD,MAAM,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACxF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAClF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAElF,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,CAAA"}
1
+ {"version":3,"file":"ResolvedTask.d.ts","sourceRoot":"","sources":["../../src/ResolvedTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAE5E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,EAAE,SAAS,SAAS,cAAc,GAAG,cAAc,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;IAEjJ,MAAM,EAAE,SAAS,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACxF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAClF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAElF,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,CAAA"}
@@ -4,7 +4,6 @@ import { ModuleInstance } from '@xyo-network/module-model';
4
4
  import { WitnessInstance } from '@xyo-network/witness-model';
5
5
  import { ArchivistTask, DivinerTask, ModuleTask, WitnessTask } from './Task';
6
6
  export type ResolvedModuleTask<TTask extends ModuleTask = ModuleTask, TInstance extends ModuleInstance = ModuleInstance> = Omit<TTask, 'module'> & {
7
- /** @field the modules that performs the task */
8
7
  module: TInstance;
9
8
  };
10
9
  export type ResolvedArchivistTask = ResolvedModuleTask<ArchivistTask, ArchivistInstance>;
@@ -1 +1 @@
1
- {"version":3,"file":"ResolvedTask.d.ts","sourceRoot":"","sources":["../../src/ResolvedTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1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AED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,aAAa,EAAE,iBAAiB,CAAC,CAAA;AACxF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAClF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,WAAW,EAAE,eAAe,CAAC,CAAA;AAElF,MAAM,MAAM,YAAY,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,kBAAkB,CAAA"}
@@ -1,10 +1,7 @@
1
1
  import { ModuleIdentifier } from '@xyo-network/module-model';
2
2
  export interface ModuleTask<TEndpoints extends string = string> {
3
- /** @field the name of the endPoint that is being called. If not specified, the default endPoint is used */
4
3
  endPoint?: TEndpoints;
5
- /** @field determines what inputs are sent to each module - if string, that is the output from other module (name/address) */
6
4
  input?: boolean | ModuleIdentifier | ModuleIdentifier[];
7
- /** @field the modules that performs the task */
8
5
  module: ModuleIdentifier;
9
6
  required?: boolean;
10
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/Task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,UAAU,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM;IAC5D,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,6HAA6H;IAC7H,KAAK,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;IACvD,gDAAgD;IAChD,MAAM,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAChG,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAA"}
1
+ {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/Task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,UAAU,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM;IAE5D,QAAQ,CAAC,EAAE,UAAU,CAAA;IAErB,KAAK,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;IAEvD,MAAM,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAChG,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAA"}
@@ -1,10 +1,7 @@
1
1
  import { ModuleIdentifier } from '@xyo-network/module-model';
2
2
  export interface ModuleTask<TEndpoints extends string = string> {
3
- /** @field the name of the endPoint that is being called. If not specified, the default endPoint is used */
4
3
  endPoint?: TEndpoints;
5
- /** @field determines what inputs are sent to each module - if string, that is the output from other module (name/address) */
6
4
  input?: boolean | ModuleIdentifier | ModuleIdentifier[];
7
- /** @field the modules that performs the task */
8
5
  module: ModuleIdentifier;
9
6
  required?: boolean;
10
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/Task.ts"],"names":[],"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AAC9C,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAA"}
@@ -1,10 +1,7 @@
1
1
  import { ModuleIdentifier } from '@xyo-network/module-model';
2
2
  export interface ModuleTask<TEndpoints extends string = string> {
3
- /** @field the name of the endPoint that is being called. If not specified, the default endPoint is used */
4
3
  endPoint?: TEndpoints;
5
- /** @field determines what inputs are sent to each module - if string, that is the output from other module (name/address) */
6
4
  input?: boolean | ModuleIdentifier | ModuleIdentifier[];
7
- /** @field the modules that performs the task */
8
5
  module: ModuleIdentifier;
9
6
  required?: boolean;
10
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/Task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,UAAU,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM;IAC5D,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,UAAU,CAAA;IACrB,6HAA6H;IAC7H,KAAK,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;IACvD,gDAAgD;IAChD,MAAM,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAChG,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAA"}
1
+ {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../src/Task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D,MAAM,WAAW,UAAU,CAAC,UAAU,SAAS,MAAM,GAAG,MAAM;IAE5D,QAAQ,CAAC,EAAE,UAAU,CAAA;IAErB,KAAK,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;IAEvD,MAAM,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAA;AAChG,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,aAAa,GAAG,UAAU,CAAA"}
@@ -1,81 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- SentinelAutomationSchema: () => SentinelAutomationSchema,
24
- SentinelConfigSchema: () => SentinelConfigSchema,
25
- SentinelEventAutomationSchema: () => SentinelEventAutomationSchema,
26
- SentinelIntervalAutomationSchema: () => SentinelIntervalAutomationSchema,
27
- SentinelReportQuerySchema: () => SentinelReportQuerySchema,
28
- asSentinelInstance: () => asSentinelInstance,
29
- asSentinelModule: () => asSentinelModule,
30
- isSentinelInstance: () => isSentinelInstance,
31
- isSentinelIntervalAutomation: () => isSentinelIntervalAutomation,
32
- isSentinelModule: () => isSentinelModule,
33
- withSentinelInstance: () => withSentinelInstance,
34
- withSentinelModule: () => withSentinelModule
35
- });
36
- module.exports = __toCommonJS(src_exports);
37
-
38
- // src/Automation.ts
39
- var import_payload_model = require("@xyo-network/payload-model");
40
- var SentinelAutomationSchema = "network.xyo.automation";
41
- var SentinelIntervalAutomationSchema = "network.xyo.automation.interval";
42
- var SentinelEventAutomationSchema = "network.xyo.automation.event";
43
- var isSentinelIntervalAutomation = (0, import_payload_model.isPayloadOfSchemaType)(SentinelIntervalAutomationSchema);
44
-
45
- // src/Config.ts
46
- var SentinelConfigSchema = "network.xyo.sentinel.config";
47
-
48
- // src/Queries/Report.ts
49
- var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
50
-
51
- // src/typeChecks.ts
52
- var import_object = require("@xylabs/object");
53
- var import_module_model = require("@xyo-network/module-model");
54
- var isSentinelInstance = new import_module_model.IsInstanceFactory().create({
55
- report: "function"
56
- }, [
57
- import_module_model.isModuleInstance
58
- ]);
59
- var isSentinelModule = new import_module_model.IsModuleFactory().create([
60
- SentinelReportQuerySchema
61
- ]);
62
- var asSentinelModule = import_object.AsObjectFactory.create(isSentinelModule);
63
- var asSentinelInstance = import_object.AsObjectFactory.create(isSentinelInstance);
64
- var withSentinelModule = import_module_model.WithFactory.create(isSentinelModule);
65
- var withSentinelInstance = import_module_model.WithFactory.create(isSentinelInstance);
66
- // Annotate the CommonJS export names for ESM import in node:
67
- 0 && (module.exports = {
68
- SentinelAutomationSchema,
69
- SentinelConfigSchema,
70
- SentinelEventAutomationSchema,
71
- SentinelIntervalAutomationSchema,
72
- SentinelReportQuerySchema,
73
- asSentinelInstance,
74
- asSentinelModule,
75
- isSentinelInstance,
76
- isSentinelIntervalAutomation,
77
- isSentinelModule,
78
- withSentinelInstance,
79
- withSentinelModule
80
- });
1
+ "use strict";var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var y=(o,e)=>{for(var r in e)a(o,r,{get:e[r],enumerable:!0})},h=(o,e,r,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of S(e))!u.call(o,n)&&n!==r&&a(o,n,{get:()=>e[n],enumerable:!(x=f(e,n))||x.enumerable});return o};var w=o=>h(a({},"__esModule",{value:!0}),o);var O={};y(O,{SentinelAutomationSchema:()=>I,SentinelConfigSchema:()=>v,SentinelEventAutomationSchema:()=>d,SentinelIntervalAutomationSchema:()=>l,SentinelReportQuerySchema:()=>i,asSentinelInstance:()=>M,asSentinelModule:()=>A,isSentinelInstance:()=>m,isSentinelIntervalAutomation:()=>k,isSentinelModule:()=>p,withSentinelInstance:()=>g,withSentinelModule:()=>F});module.exports=w(O);var s=require("@xyo-network/payload-model"),I="network.xyo.automation",l="network.xyo.automation.interval",d="network.xyo.automation.event",k=(0,s.isPayloadOfSchemaType)(l);var v="network.xyo.sentinel.config";var i="network.xyo.query.sentinel.report";var c=require("@xylabs/object"),t=require("@xyo-network/module-model");var m=new t.IsInstanceFactory().create({report:"function"},[t.isModuleInstance]),p=new t.IsModuleFactory().create([i]),A=c.AsObjectFactory.create(p),M=c.AsObjectFactory.create(m),F=t.WithFactory.create(p),g=t.WithFactory.create(m);0&&(module.exports={SentinelAutomationSchema,SentinelConfigSchema,SentinelEventAutomationSchema,SentinelIntervalAutomationSchema,SentinelReportQuerySchema,asSentinelInstance,asSentinelModule,isSentinelInstance,isSentinelIntervalAutomation,isSentinelModule,withSentinelInstance,withSentinelModule});
81
2
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Automation'\nexport * from './Config'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Job'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './ResolvedTask'\nexport * from './Sentinel'\nexport * from './Task'\nexport * from './typeChecks'\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport type SentinelAutomationSchema = 'network.xyo.automation'\nexport const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'\n\nexport type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\nexport const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\n\nexport type SentinelEventAutomationSchema = 'network.xyo.automation.event'\nexport const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Event Automation */\nexport type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{\n schema: SentinelEventAutomationSchema\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema\n>\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SentinelAutomationPayload } from './Automation'\nimport { Task } from './Task'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;ACAA,2BAA+C;AAGxC,IAAMA,2BAAqD;AAG3D,IAAMC,mCAAqE;AAG3E,IAAMC,gCAA+D;AA+BrE,IAAMC,mCAA+BC,4CAAyDH,gCAAAA;;;ACjC9F,IAAMI,uBAAuB;;;ACJ7B,IAAMC,4BAAuD;;;ACHpE,oBAAgC;AAChC,0BAAkF;AAM3E,IAAMC,qBAAqB,IAAIC,sCAAAA,EAAsCC,OAAO;EAAEC,QAAQ;AAAW,GAAG;EAACC;CAAiB;AACtH,IAAMC,mBAAmB,IAAIC,oCAAAA,EAAkCJ,OAAO;EAACK;CAA0B;AAEjG,IAAMC,mBAAmBC,8BAAgBP,OAAOG,gBAAAA;AAChD,IAAMK,qBAAqBD,8BAAgBP,OAAOF,kBAAAA;AAClD,IAAMW,qBAAqBC,gCAAYV,OAAOG,gBAAAA;AAC9C,IAAMQ,uBAAuBD,gCAAYV,OAAOF,kBAAAA;","names":["SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","isPayloadOfSchemaType","SentinelConfigSchema","SentinelReportQuerySchema","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["export * from './Automation'\nexport * from './Config'\nexport * from './EventData'\nexport * from './EventsModels'\nexport * from './Instance'\nexport * from './Job'\nexport * from './Module'\nexport * from './Params'\nexport * from './Queries'\nexport * from './ResolvedTask'\nexport * from './Sentinel'\nexport * from './Task'\nexport * from './typeChecks'\n","import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport type SentinelAutomationSchema = 'network.xyo.automation'\nexport const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'\n\nexport type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\nexport const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\n\nexport type SentinelEventAutomationSchema = 'network.xyo.automation.event'\nexport const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Event Automation */\nexport type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{\n schema: SentinelEventAutomationSchema\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema\n>\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SentinelAutomationPayload } from './Automation'\nimport { Task } from './Task'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,8BAAAE,EAAA,yBAAAC,EAAA,kCAAAC,EAAA,qCAAAC,EAAA,8BAAAC,EAAA,uBAAAC,EAAA,qBAAAC,EAAA,uBAAAC,EAAA,iCAAAC,EAAA,qBAAAC,EAAA,yBAAAC,EAAA,uBAAAC,IAAA,eAAAC,EAAAd,GCAA,IAAAe,EAA+C,sCAGlCC,EAAqD,yBAGrDC,EAAqE,kCAGrEC,EAA+D,+BA+B/DC,KAA+BC,yBAAyDH,CAAAA,ECjC9F,IAAMI,EAAuB,8BCJ7B,IAAMC,EAAuD,oCCHpE,IAAAC,EAAgC,0BAChCC,EAAkF,qCAM3E,IAAMC,EAAqB,IAAIC,oBAAAA,EAAsCC,OAAO,CAAEC,OAAQ,UAAW,EAAG,CAACC,mBAAiB,EAChHC,EAAmB,IAAIC,kBAAAA,EAAkCJ,OAAO,CAACK,EAA0B,EAE3FC,EAAmBC,kBAAgBP,OAAOG,CAAAA,EAC1CK,EAAqBD,kBAAgBP,OAAOF,CAAAA,EAC5CW,EAAqBC,cAAYV,OAAOG,CAAAA,EACxCQ,EAAuBD,cAAYV,OAAOF,CAAAA","names":["src_exports","__export","SentinelAutomationSchema","SentinelConfigSchema","SentinelEventAutomationSchema","SentinelIntervalAutomationSchema","SentinelReportQuerySchema","asSentinelInstance","asSentinelModule","isSentinelInstance","isSentinelIntervalAutomation","isSentinelModule","withSentinelInstance","withSentinelModule","__toCommonJS","import_payload_model","SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","isPayloadOfSchemaType","SentinelConfigSchema","SentinelReportQuerySchema","import_object","import_module_model","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}
@@ -1,43 +1,2 @@
1
- // src/Automation.ts
2
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
3
- var SentinelAutomationSchema = "network.xyo.automation";
4
- var SentinelIntervalAutomationSchema = "network.xyo.automation.interval";
5
- var SentinelEventAutomationSchema = "network.xyo.automation.event";
6
- var isSentinelIntervalAutomation = isPayloadOfSchemaType(SentinelIntervalAutomationSchema);
7
-
8
- // src/Config.ts
9
- var SentinelConfigSchema = "network.xyo.sentinel.config";
10
-
11
- // src/Queries/Report.ts
12
- var SentinelReportQuerySchema = "network.xyo.query.sentinel.report";
13
-
14
- // src/typeChecks.ts
15
- import { AsObjectFactory } from "@xylabs/object";
16
- import { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from "@xyo-network/module-model";
17
- var isSentinelInstance = new IsInstanceFactory().create({
18
- report: "function"
19
- }, [
20
- isModuleInstance
21
- ]);
22
- var isSentinelModule = new IsModuleFactory().create([
23
- SentinelReportQuerySchema
24
- ]);
25
- var asSentinelModule = AsObjectFactory.create(isSentinelModule);
26
- var asSentinelInstance = AsObjectFactory.create(isSentinelInstance);
27
- var withSentinelModule = WithFactory.create(isSentinelModule);
28
- var withSentinelInstance = WithFactory.create(isSentinelInstance);
29
- export {
30
- SentinelAutomationSchema,
31
- SentinelConfigSchema,
32
- SentinelEventAutomationSchema,
33
- SentinelIntervalAutomationSchema,
34
- SentinelReportQuerySchema,
35
- asSentinelInstance,
36
- asSentinelModule,
37
- isSentinelInstance,
38
- isSentinelIntervalAutomation,
39
- isSentinelModule,
40
- withSentinelInstance,
41
- withSentinelModule
42
- };
1
+ import{isPayloadOfSchemaType as a}from"@xyo-network/payload-model";var s="network.xyo.automation",i="network.xyo.automation.interval",l="network.xyo.automation.event",f=a(i);var u="network.xyo.sentinel.config";var e="network.xyo.query.sentinel.report";import{AsObjectFactory as t}from"@xylabs/object";import{IsInstanceFactory as c,IsModuleFactory as m,isModuleInstance as p,WithFactory as o}from"@xyo-network/module-model";var n=new c().create({report:"function"},[p]),r=new m().create([e]),k=t.create(r),v=t.create(n),A=o.create(r),M=o.create(n);export{s as SentinelAutomationSchema,u as SentinelConfigSchema,l as SentinelEventAutomationSchema,i as SentinelIntervalAutomationSchema,e as SentinelReportQuerySchema,v as asSentinelInstance,k as asSentinelModule,n as isSentinelInstance,f as isSentinelIntervalAutomation,r as isSentinelModule,M as withSentinelInstance,A as withSentinelModule};
43
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport type SentinelAutomationSchema = 'network.xyo.automation'\nexport const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'\n\nexport type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\nexport const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\n\nexport type SentinelEventAutomationSchema = 'network.xyo.automation.event'\nexport const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Event Automation */\nexport type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{\n schema: SentinelEventAutomationSchema\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema\n>\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SentinelAutomationPayload } from './Automation'\nimport { Task } from './Task'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":";AAAA,SAASA,6BAAsC;AAGxC,IAAMC,2BAAqD;AAG3D,IAAMC,mCAAqE;AAG3E,IAAMC,gCAA+D;AA+BrE,IAAMC,+BAA+BJ,sBAAyDE,gCAAAA;;;ACjC9F,IAAMG,uBAAuB;;;ACJ7B,IAAMC,4BAAuD;;;ACHpE,SAASC,uBAAuB;AAChC,SAASC,mBAAmBC,iBAAiBC,kBAAkBC,mBAAmB;AAM3E,IAAMC,qBAAqB,IAAIC,kBAAAA,EAAsCC,OAAO;EAAEC,QAAQ;AAAW,GAAG;EAACC;CAAiB;AACtH,IAAMC,mBAAmB,IAAIC,gBAAAA,EAAkCJ,OAAO;EAACK;CAA0B;AAEjG,IAAMC,mBAAmBC,gBAAgBP,OAAOG,gBAAAA;AAChD,IAAMK,qBAAqBD,gBAAgBP,OAAOF,kBAAAA;AAClD,IAAMW,qBAAqBC,YAAYV,OAAOG,gBAAAA;AAC9C,IAAMQ,uBAAuBD,YAAYV,OAAOF,kBAAAA;","names":["isPayloadOfSchemaType","SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","SentinelConfigSchema","SentinelReportQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}
1
+ {"version":3,"sources":["../../src/Automation.ts","../../src/Config.ts","../../src/Queries/Report.ts","../../src/typeChecks.ts"],"sourcesContent":["import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'\n\nexport type SentinelAutomationSchema = 'network.xyo.automation'\nexport const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'\n\nexport type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\nexport const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'\n\nexport type SentinelEventAutomationSchema = 'network.xyo.automation.event'\nexport const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'\n\nexport type SentinelBaseAutomationPayload<T extends Payload> = Payload<\n {\n type?: 'interval' | 'event'\n } & T\n>\n\n/** Settings for an Interval Automation */\nexport type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{\n /** Epoch after which any reoccurrence stops */\n end?: number\n\n /** Time between triggers [non-repeating if undefined] */\n frequency?: number\n\n /** Units for frequency field [hour if undefined] */\n frequencyUnits?: 'second' | 'minute' | 'hour' | 'day'\n\n /** Remaining triggers [infinite if undefined] */\n remaining?: number\n\n schema: SentinelIntervalAutomationSchema\n\n /** Epoch of the next trigger */\n start: number\n\n /** The type of automation */\n type: 'interval'\n}>\n\nexport const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)\n\n/** Settings for an Event Automation */\nexport type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{\n schema: SentinelEventAutomationSchema\n type: 'event'\n}>\n\n/** Settings for an Automation */\nexport type SentinelAutomationPayload = Payload<\n SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,\n SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema\n>\n","import { WithAdditional } from '@xylabs/object'\nimport { ModuleConfig } from '@xyo-network/module-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { SentinelAutomationPayload } from './Automation'\nimport { Task } from './Task'\n\nexport const SentinelConfigSchema = 'network.xyo.sentinel.config' as const\nexport type SentinelConfigSchema = typeof SentinelConfigSchema\n\nexport type SentinelConfig<TConfig extends Payload | void = void, TSchema extends string | void = void> = ModuleConfig<\n WithAdditional<\n {\n automations?: SentinelAutomationPayload[]\n schema: TConfig extends Payload ? TConfig['schema'] : SentinelConfigSchema\n synchronous?: boolean\n tasks: Task[]\n throwErrors?: boolean\n },\n TConfig\n >,\n TSchema\n>\n","import { Query } from '@xyo-network/payload-model'\n\nexport type SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\nexport const SentinelReportQuerySchema: SentinelReportQuerySchema = 'network.xyo.query.sentinel.report'\n\nexport type SentinelReportQuery = Query<{\n schema: SentinelReportQuerySchema\n}>\n","import { AsObjectFactory } from '@xylabs/object'\nimport { IsInstanceFactory, IsModuleFactory, isModuleInstance, WithFactory } from '@xyo-network/module-model'\n\nimport { SentinelInstance } from './Instance'\nimport { SentinelModule } from './Module'\nimport { SentinelReportQuerySchema } from './Queries'\n\nexport const isSentinelInstance = new IsInstanceFactory<SentinelInstance>().create({ report: 'function' }, [isModuleInstance])\nexport const isSentinelModule = new IsModuleFactory<SentinelModule>().create([SentinelReportQuerySchema])\n\nexport const asSentinelModule = AsObjectFactory.create(isSentinelModule)\nexport const asSentinelInstance = AsObjectFactory.create(isSentinelInstance)\nexport const withSentinelModule = WithFactory.create(isSentinelModule)\nexport const withSentinelInstance = WithFactory.create(isSentinelInstance)\n"],"mappings":"AAAA,OAASA,yBAAAA,MAAsC,6BAGxC,IAAMC,EAAqD,yBAGrDC,EAAqE,kCAGrEC,EAA+D,+BA+B/DC,EAA+BJ,EAAyDE,CAAAA,ECjC9F,IAAMG,EAAuB,8BCJ7B,IAAMC,EAAuD,oCCHpE,OAASC,mBAAAA,MAAuB,iBAChC,OAASC,qBAAAA,EAAmBC,mBAAAA,EAAiBC,oBAAAA,EAAkBC,eAAAA,MAAmB,4BAM3E,IAAMC,EAAqB,IAAIC,EAAAA,EAAsCC,OAAO,CAAEC,OAAQ,UAAW,EAAG,CAACC,EAAiB,EAChHC,EAAmB,IAAIC,EAAAA,EAAkCJ,OAAO,CAACK,EAA0B,EAE3FC,EAAmBC,EAAgBP,OAAOG,CAAAA,EAC1CK,EAAqBD,EAAgBP,OAAOF,CAAAA,EAC5CW,EAAqBC,EAAYV,OAAOG,CAAAA,EACxCQ,EAAuBD,EAAYV,OAAOF,CAAAA","names":["isPayloadOfSchemaType","SentinelAutomationSchema","SentinelIntervalAutomationSchema","SentinelEventAutomationSchema","isSentinelIntervalAutomation","SentinelConfigSchema","SentinelReportQuerySchema","AsObjectFactory","IsInstanceFactory","IsModuleFactory","isModuleInstance","WithFactory","isSentinelInstance","IsInstanceFactory","create","report","isModuleInstance","isSentinelModule","IsModuleFactory","SentinelReportQuerySchema","asSentinelModule","AsObjectFactory","asSentinelInstance","withSentinelModule","WithFactory","withSentinelInstance"]}