@xyo-network/sentinel 2.84.7 → 2.84.9

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 (74) hide show
  1. package/dist/browser/MemorySentinel.d.cts +3 -0
  2. package/dist/browser/MemorySentinel.d.cts.map +1 -1
  3. package/dist/browser/MemorySentinel.d.mts +3 -0
  4. package/dist/browser/MemorySentinel.d.mts.map +1 -1
  5. package/dist/browser/MemorySentinel.d.ts +3 -0
  6. package/dist/browser/MemorySentinel.d.ts.map +1 -1
  7. package/dist/browser/SentinelIntervalAutomationWrapper.d.cts +11 -1
  8. package/dist/browser/SentinelIntervalAutomationWrapper.d.cts.map +1 -1
  9. package/dist/browser/SentinelIntervalAutomationWrapper.d.mts +11 -1
  10. package/dist/browser/SentinelIntervalAutomationWrapper.d.mts.map +1 -1
  11. package/dist/browser/SentinelIntervalAutomationWrapper.d.ts +11 -1
  12. package/dist/browser/SentinelIntervalAutomationWrapper.d.ts.map +1 -1
  13. package/dist/browser/SentinelRunner.d.cts +1 -2
  14. package/dist/browser/SentinelRunner.d.cts.map +1 -1
  15. package/dist/browser/SentinelRunner.d.mts +1 -2
  16. package/dist/browser/SentinelRunner.d.mts.map +1 -1
  17. package/dist/browser/SentinelRunner.d.ts +1 -2
  18. package/dist/browser/SentinelRunner.d.ts.map +1 -1
  19. package/dist/browser/index.cjs +132 -98
  20. package/dist/browser/index.cjs.map +1 -1
  21. package/dist/browser/index.d.cts +0 -1
  22. package/dist/browser/index.d.cts.map +1 -1
  23. package/dist/browser/index.d.mts +0 -1
  24. package/dist/browser/index.d.mts.map +1 -1
  25. package/dist/browser/index.d.ts +0 -1
  26. package/dist/browser/index.d.ts.map +1 -1
  27. package/dist/browser/index.js +126 -90
  28. package/dist/browser/index.js.map +1 -1
  29. package/dist/node/MemorySentinel.d.cts +3 -0
  30. package/dist/node/MemorySentinel.d.cts.map +1 -1
  31. package/dist/node/MemorySentinel.d.mts +3 -0
  32. package/dist/node/MemorySentinel.d.mts.map +1 -1
  33. package/dist/node/MemorySentinel.d.ts +3 -0
  34. package/dist/node/MemorySentinel.d.ts.map +1 -1
  35. package/dist/node/SentinelIntervalAutomationWrapper.d.cts +11 -1
  36. package/dist/node/SentinelIntervalAutomationWrapper.d.cts.map +1 -1
  37. package/dist/node/SentinelIntervalAutomationWrapper.d.mts +11 -1
  38. package/dist/node/SentinelIntervalAutomationWrapper.d.mts.map +1 -1
  39. package/dist/node/SentinelIntervalAutomationWrapper.d.ts +11 -1
  40. package/dist/node/SentinelIntervalAutomationWrapper.d.ts.map +1 -1
  41. package/dist/node/SentinelRunner.d.cts +1 -2
  42. package/dist/node/SentinelRunner.d.cts.map +1 -1
  43. package/dist/node/SentinelRunner.d.mts +1 -2
  44. package/dist/node/SentinelRunner.d.mts.map +1 -1
  45. package/dist/node/SentinelRunner.d.ts +1 -2
  46. package/dist/node/SentinelRunner.d.ts.map +1 -1
  47. package/dist/node/index.cjs +134 -102
  48. package/dist/node/index.cjs.map +1 -1
  49. package/dist/node/index.d.cts +0 -1
  50. package/dist/node/index.d.cts.map +1 -1
  51. package/dist/node/index.d.mts +0 -1
  52. package/dist/node/index.d.mts.map +1 -1
  53. package/dist/node/index.d.ts +0 -1
  54. package/dist/node/index.d.ts.map +1 -1
  55. package/dist/node/index.js +128 -90
  56. package/dist/node/index.js.map +1 -1
  57. package/package.json +19 -19
  58. package/src/MemorySentinel.ts +23 -0
  59. package/src/SentinelIntervalAutomationWrapper.ts +31 -12
  60. package/src/SentinelRunner.ts +22 -14
  61. package/src/index.ts +0 -1
  62. package/dist/browser/Automation.d.cts +0 -71
  63. package/dist/browser/Automation.d.cts.map +0 -1
  64. package/dist/browser/Automation.d.mts +0 -71
  65. package/dist/browser/Automation.d.mts.map +0 -1
  66. package/dist/browser/Automation.d.ts +0 -71
  67. package/dist/browser/Automation.d.ts.map +0 -1
  68. package/dist/node/Automation.d.cts +0 -71
  69. package/dist/node/Automation.d.cts.map +0 -1
  70. package/dist/node/Automation.d.mts +0 -71
  71. package/dist/node/Automation.d.mts.map +0 -1
  72. package/dist/node/Automation.d.ts +0 -71
  73. package/dist/node/Automation.d.ts.map +0 -1
  74. package/src/Automation.ts +0 -55
@@ -1,71 +0,0 @@
1
- import { Payload } from '@xyo-network/payload-model';
2
- import { Task } from '@xyo-network/sentinel-model';
3
- export type SentinelAutomationSchema = 'network.xyo.automation';
4
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
5
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
6
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
7
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
8
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
9
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
10
- tasks?: Task[];
11
- type?: 'interval' | 'event';
12
- } & T>;
13
- /** Settings for an Interval Automation */
14
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
15
- /** Epoch after which any reoccurrence stops */
16
- end?: number;
17
- /** Time between triggers [non-repeating if undefined] */
18
- frequency?: number;
19
- /** Units for frequency field [hour if undefined] */
20
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
21
- /** Remaining triggers [infinite if undefined] */
22
- remaining?: number;
23
- schema: SentinelIntervalAutomationSchema;
24
- /** Epoch of the next trigger */
25
- start: number;
26
- /** The type of automation */
27
- type: 'interval';
28
- }>;
29
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is (import("@xyo-network/payload-model").SchemaFields & object & {
30
- tasks?: Task[] | undefined;
31
- type?: "interval" | "event" | undefined;
32
- } & {
33
- /** Epoch after which any reoccurrence stops */
34
- end?: number | undefined;
35
- /** Time between triggers [non-repeating if undefined] */
36
- frequency?: number | undefined;
37
- /** Units for frequency field [hour if undefined] */
38
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
39
- /** Remaining triggers [infinite if undefined] */
40
- remaining?: number | undefined;
41
- schema: SentinelIntervalAutomationSchema;
42
- /** Epoch of the next trigger */
43
- start: number;
44
- /** The type of automation */
45
- type: 'interval';
46
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
47
- tasks?: Task[] | undefined;
48
- type?: "interval" | "event" | undefined;
49
- } & {
50
- /** Epoch after which any reoccurrence stops */
51
- end?: number | undefined;
52
- /** Time between triggers [non-repeating if undefined] */
53
- frequency?: number | undefined;
54
- /** Units for frequency field [hour if undefined] */
55
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
56
- /** Remaining triggers [infinite if undefined] */
57
- remaining?: number | undefined;
58
- schema: SentinelIntervalAutomationSchema;
59
- /** Epoch of the next trigger */
60
- start: number;
61
- /** The type of automation */
62
- type: 'interval';
63
- });
64
- /** Settings for an Event Automation */
65
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
66
- schema: SentinelEventAutomationSchema;
67
- type: 'event';
68
- }>;
69
- /** Settings for an Automation */
70
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
71
- //# sourceMappingURL=Automation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,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,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,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,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;IArBvC,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;;;;;IAlBhB,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;EAGoH,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -1,71 +0,0 @@
1
- import { Payload } from '@xyo-network/payload-model';
2
- import { Task } from '@xyo-network/sentinel-model';
3
- export type SentinelAutomationSchema = 'network.xyo.automation';
4
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
5
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
6
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
7
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
8
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
9
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
10
- tasks?: Task[];
11
- type?: 'interval' | 'event';
12
- } & T>;
13
- /** Settings for an Interval Automation */
14
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
15
- /** Epoch after which any reoccurrence stops */
16
- end?: number;
17
- /** Time between triggers [non-repeating if undefined] */
18
- frequency?: number;
19
- /** Units for frequency field [hour if undefined] */
20
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
21
- /** Remaining triggers [infinite if undefined] */
22
- remaining?: number;
23
- schema: SentinelIntervalAutomationSchema;
24
- /** Epoch of the next trigger */
25
- start: number;
26
- /** The type of automation */
27
- type: 'interval';
28
- }>;
29
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is (import("@xyo-network/payload-model").SchemaFields & object & {
30
- tasks?: Task[] | undefined;
31
- type?: "interval" | "event" | undefined;
32
- } & {
33
- /** Epoch after which any reoccurrence stops */
34
- end?: number | undefined;
35
- /** Time between triggers [non-repeating if undefined] */
36
- frequency?: number | undefined;
37
- /** Units for frequency field [hour if undefined] */
38
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
39
- /** Remaining triggers [infinite if undefined] */
40
- remaining?: number | undefined;
41
- schema: SentinelIntervalAutomationSchema;
42
- /** Epoch of the next trigger */
43
- start: number;
44
- /** The type of automation */
45
- type: 'interval';
46
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
47
- tasks?: Task[] | undefined;
48
- type?: "interval" | "event" | undefined;
49
- } & {
50
- /** Epoch after which any reoccurrence stops */
51
- end?: number | undefined;
52
- /** Time between triggers [non-repeating if undefined] */
53
- frequency?: number | undefined;
54
- /** Units for frequency field [hour if undefined] */
55
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
56
- /** Remaining triggers [infinite if undefined] */
57
- remaining?: number | undefined;
58
- schema: SentinelIntervalAutomationSchema;
59
- /** Epoch of the next trigger */
60
- start: number;
61
- /** The type of automation */
62
- type: 'interval';
63
- });
64
- /** Settings for an Event Automation */
65
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
66
- schema: SentinelEventAutomationSchema;
67
- type: 'event';
68
- }>;
69
- /** Settings for an Automation */
70
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
71
- //# sourceMappingURL=Automation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,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,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,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,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;IArBvC,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;;;;;IAlBhB,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;EAGoH,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -1,71 +0,0 @@
1
- import { Payload } from '@xyo-network/payload-model';
2
- import { Task } from '@xyo-network/sentinel-model';
3
- export type SentinelAutomationSchema = 'network.xyo.automation';
4
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
5
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
6
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
7
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
8
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
9
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
10
- tasks?: Task[];
11
- type?: 'interval' | 'event';
12
- } & T>;
13
- /** Settings for an Interval Automation */
14
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
15
- /** Epoch after which any reoccurrence stops */
16
- end?: number;
17
- /** Time between triggers [non-repeating if undefined] */
18
- frequency?: number;
19
- /** Units for frequency field [hour if undefined] */
20
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
21
- /** Remaining triggers [infinite if undefined] */
22
- remaining?: number;
23
- schema: SentinelIntervalAutomationSchema;
24
- /** Epoch of the next trigger */
25
- start: number;
26
- /** The type of automation */
27
- type: 'interval';
28
- }>;
29
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is (import("@xyo-network/payload-model").SchemaFields & object & {
30
- tasks?: Task[] | undefined;
31
- type?: "interval" | "event" | undefined;
32
- } & {
33
- /** Epoch after which any reoccurrence stops */
34
- end?: number | undefined;
35
- /** Time between triggers [non-repeating if undefined] */
36
- frequency?: number | undefined;
37
- /** Units for frequency field [hour if undefined] */
38
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
39
- /** Remaining triggers [infinite if undefined] */
40
- remaining?: number | undefined;
41
- schema: SentinelIntervalAutomationSchema;
42
- /** Epoch of the next trigger */
43
- start: number;
44
- /** The type of automation */
45
- type: 'interval';
46
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
47
- tasks?: Task[] | undefined;
48
- type?: "interval" | "event" | undefined;
49
- } & {
50
- /** Epoch after which any reoccurrence stops */
51
- end?: number | undefined;
52
- /** Time between triggers [non-repeating if undefined] */
53
- frequency?: number | undefined;
54
- /** Units for frequency field [hour if undefined] */
55
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
56
- /** Remaining triggers [infinite if undefined] */
57
- remaining?: number | undefined;
58
- schema: SentinelIntervalAutomationSchema;
59
- /** Epoch of the next trigger */
60
- start: number;
61
- /** The type of automation */
62
- type: 'interval';
63
- });
64
- /** Settings for an Event Automation */
65
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
66
- schema: SentinelEventAutomationSchema;
67
- type: 'event';
68
- }>;
69
- /** Settings for an Automation */
70
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
71
- //# sourceMappingURL=Automation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,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,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,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,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;IArBvC,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;;;;;IAlBhB,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;EAGoH,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -1,71 +0,0 @@
1
- import { Payload } from '@xyo-network/payload-model';
2
- import { Task } from '@xyo-network/sentinel-model';
3
- export type SentinelAutomationSchema = 'network.xyo.automation';
4
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
5
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
6
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
7
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
8
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
9
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
10
- tasks?: Task[];
11
- type?: 'interval' | 'event';
12
- } & T>;
13
- /** Settings for an Interval Automation */
14
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
15
- /** Epoch after which any reoccurrence stops */
16
- end?: number;
17
- /** Time between triggers [non-repeating if undefined] */
18
- frequency?: number;
19
- /** Units for frequency field [hour if undefined] */
20
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
21
- /** Remaining triggers [infinite if undefined] */
22
- remaining?: number;
23
- schema: SentinelIntervalAutomationSchema;
24
- /** Epoch of the next trigger */
25
- start: number;
26
- /** The type of automation */
27
- type: 'interval';
28
- }>;
29
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is (import("@xyo-network/payload-model").SchemaFields & object & {
30
- tasks?: Task[] | undefined;
31
- type?: "interval" | "event" | undefined;
32
- } & {
33
- /** Epoch after which any reoccurrence stops */
34
- end?: number | undefined;
35
- /** Time between triggers [non-repeating if undefined] */
36
- frequency?: number | undefined;
37
- /** Units for frequency field [hour if undefined] */
38
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
39
- /** Remaining triggers [infinite if undefined] */
40
- remaining?: number | undefined;
41
- schema: SentinelIntervalAutomationSchema;
42
- /** Epoch of the next trigger */
43
- start: number;
44
- /** The type of automation */
45
- type: 'interval';
46
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
47
- tasks?: Task[] | undefined;
48
- type?: "interval" | "event" | undefined;
49
- } & {
50
- /** Epoch after which any reoccurrence stops */
51
- end?: number | undefined;
52
- /** Time between triggers [non-repeating if undefined] */
53
- frequency?: number | undefined;
54
- /** Units for frequency field [hour if undefined] */
55
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
56
- /** Remaining triggers [infinite if undefined] */
57
- remaining?: number | undefined;
58
- schema: SentinelIntervalAutomationSchema;
59
- /** Epoch of the next trigger */
60
- start: number;
61
- /** The type of automation */
62
- type: 'interval';
63
- });
64
- /** Settings for an Event Automation */
65
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
66
- schema: SentinelEventAutomationSchema;
67
- type: 'event';
68
- }>;
69
- /** Settings for an Automation */
70
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
71
- //# sourceMappingURL=Automation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,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,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,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,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;IArBvC,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;;;;;IAlBhB,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;EAGoH,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -1,71 +0,0 @@
1
- import { Payload } from '@xyo-network/payload-model';
2
- import { Task } from '@xyo-network/sentinel-model';
3
- export type SentinelAutomationSchema = 'network.xyo.automation';
4
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
5
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
6
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
7
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
8
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
9
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
10
- tasks?: Task[];
11
- type?: 'interval' | 'event';
12
- } & T>;
13
- /** Settings for an Interval Automation */
14
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
15
- /** Epoch after which any reoccurrence stops */
16
- end?: number;
17
- /** Time between triggers [non-repeating if undefined] */
18
- frequency?: number;
19
- /** Units for frequency field [hour if undefined] */
20
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
21
- /** Remaining triggers [infinite if undefined] */
22
- remaining?: number;
23
- schema: SentinelIntervalAutomationSchema;
24
- /** Epoch of the next trigger */
25
- start: number;
26
- /** The type of automation */
27
- type: 'interval';
28
- }>;
29
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is (import("@xyo-network/payload-model").SchemaFields & object & {
30
- tasks?: Task[] | undefined;
31
- type?: "interval" | "event" | undefined;
32
- } & {
33
- /** Epoch after which any reoccurrence stops */
34
- end?: number | undefined;
35
- /** Time between triggers [non-repeating if undefined] */
36
- frequency?: number | undefined;
37
- /** Units for frequency field [hour if undefined] */
38
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
39
- /** Remaining triggers [infinite if undefined] */
40
- remaining?: number | undefined;
41
- schema: SentinelIntervalAutomationSchema;
42
- /** Epoch of the next trigger */
43
- start: number;
44
- /** The type of automation */
45
- type: 'interval';
46
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
47
- tasks?: Task[] | undefined;
48
- type?: "interval" | "event" | undefined;
49
- } & {
50
- /** Epoch after which any reoccurrence stops */
51
- end?: number | undefined;
52
- /** Time between triggers [non-repeating if undefined] */
53
- frequency?: number | undefined;
54
- /** Units for frequency field [hour if undefined] */
55
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
56
- /** Remaining triggers [infinite if undefined] */
57
- remaining?: number | undefined;
58
- schema: SentinelIntervalAutomationSchema;
59
- /** Epoch of the next trigger */
60
- start: number;
61
- /** The type of automation */
62
- type: 'interval';
63
- });
64
- /** Settings for an Event Automation */
65
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
66
- schema: SentinelEventAutomationSchema;
67
- type: 'event';
68
- }>;
69
- /** Settings for an Automation */
70
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
71
- //# sourceMappingURL=Automation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,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,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,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,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;IArBvC,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;;;;;IAlBhB,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;EAGoH,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
@@ -1,71 +0,0 @@
1
- import { Payload } from '@xyo-network/payload-model';
2
- import { Task } from '@xyo-network/sentinel-model';
3
- export type SentinelAutomationSchema = 'network.xyo.automation';
4
- export declare const SentinelAutomationSchema: SentinelAutomationSchema;
5
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval';
6
- export declare const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema;
7
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event';
8
- export declare const SentinelEventAutomationSchema: SentinelEventAutomationSchema;
9
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<{
10
- tasks?: Task[];
11
- type?: 'interval' | 'event';
12
- } & T>;
13
- /** Settings for an Interval Automation */
14
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
15
- /** Epoch after which any reoccurrence stops */
16
- end?: number;
17
- /** Time between triggers [non-repeating if undefined] */
18
- frequency?: number;
19
- /** Units for frequency field [hour if undefined] */
20
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day';
21
- /** Remaining triggers [infinite if undefined] */
22
- remaining?: number;
23
- schema: SentinelIntervalAutomationSchema;
24
- /** Epoch of the next trigger */
25
- start: number;
26
- /** The type of automation */
27
- type: 'interval';
28
- }>;
29
- export declare const isSentinelIntervalAutomation: (x?: unknown) => x is (import("@xyo-network/payload-model").SchemaFields & object & {
30
- tasks?: Task[] | undefined;
31
- type?: "interval" | "event" | undefined;
32
- } & {
33
- /** Epoch after which any reoccurrence stops */
34
- end?: number | undefined;
35
- /** Time between triggers [non-repeating if undefined] */
36
- frequency?: number | undefined;
37
- /** Units for frequency field [hour if undefined] */
38
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
39
- /** Remaining triggers [infinite if undefined] */
40
- remaining?: number | undefined;
41
- schema: SentinelIntervalAutomationSchema;
42
- /** Epoch of the next trigger */
43
- start: number;
44
- /** The type of automation */
45
- type: 'interval';
46
- }) | (import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadMetaFields & {
47
- tasks?: Task[] | undefined;
48
- type?: "interval" | "event" | undefined;
49
- } & {
50
- /** Epoch after which any reoccurrence stops */
51
- end?: number | undefined;
52
- /** Time between triggers [non-repeating if undefined] */
53
- frequency?: number | undefined;
54
- /** Units for frequency field [hour if undefined] */
55
- frequencyUnits?: "second" | "minute" | "hour" | "day" | undefined;
56
- /** Remaining triggers [infinite if undefined] */
57
- remaining?: number | undefined;
58
- schema: SentinelIntervalAutomationSchema;
59
- /** Epoch of the next trigger */
60
- start: number;
61
- /** The type of automation */
62
- type: 'interval';
63
- });
64
- /** Settings for an Event Automation */
65
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
66
- schema: SentinelEventAutomationSchema;
67
- type: 'event';
68
- }>;
69
- /** Settings for an Automation */
70
- export type SentinelAutomationPayload = Payload<SentinelIntervalAutomationPayload | SentinelEventAutomationPayload, SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema>;
71
- //# sourceMappingURL=Automation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Automation.d.ts","sourceRoot":"","sources":["../../src/Automation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAElD,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,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;IACd,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,CAAA;IAElB,MAAM,EAAE,gCAAgC,CAAA;IAExC,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;IAEb,6BAA6B;IAC7B,IAAI,EAAE,UAAU,CAAA;CACjB,CAAC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;IArBvC,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;;;;;IAlBhB,+CAA+C;;IAG/C,yDAAyD;;IAGzD,oDAAoD;;IAGpD,iDAAiD;;YAGzC,gCAAgC;IAExC,gCAAgC;WACzB,MAAM;IAEb,6BAA6B;UACvB,UAAU;EAGoH,CAAA;AAEtI,uCAAuC;AACvC,MAAM,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;IACzE,MAAM,EAAE,6BAA6B,CAAA;IACrC,IAAI,EAAE,OAAO,CAAA;CACd,CAAC,CAAA;AAEF,iCAAiC;AACjC,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,iCAAiC,GAAG,8BAA8B,EAClE,wBAAwB,GAAG,gCAAgC,GAAG,6BAA6B,CAC5F,CAAA"}
package/src/Automation.ts DELETED
@@ -1,55 +0,0 @@
1
- import { isPayloadOfSchemaType, Payload } from '@xyo-network/payload-model'
2
- import { Task } from '@xyo-network/sentinel-model'
3
-
4
- export type SentinelAutomationSchema = 'network.xyo.automation'
5
- export const SentinelAutomationSchema: SentinelAutomationSchema = 'network.xyo.automation'
6
-
7
- export type SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'
8
- export const SentinelIntervalAutomationSchema: SentinelIntervalAutomationSchema = 'network.xyo.automation.interval'
9
-
10
- export type SentinelEventAutomationSchema = 'network.xyo.automation.event'
11
- export const SentinelEventAutomationSchema: SentinelEventAutomationSchema = 'network.xyo.automation.event'
12
-
13
- export type SentinelBaseAutomationPayload<T extends Payload> = Payload<
14
- {
15
- tasks?: Task[]
16
- type?: 'interval' | 'event'
17
- } & T
18
- >
19
-
20
- /** Settings for an Interval Automation */
21
- export type SentinelIntervalAutomationPayload = SentinelBaseAutomationPayload<{
22
- /** Epoch after which any reoccurrence stops */
23
- end?: number
24
-
25
- /** Time between triggers [non-repeating if undefined] */
26
- frequency?: number
27
-
28
- /** Units for frequency field [hour if undefined] */
29
- frequencyUnits?: 'second' | 'minute' | 'hour' | 'day'
30
-
31
- /** Remaining triggers [infinite if undefined] */
32
- remaining?: number
33
-
34
- schema: SentinelIntervalAutomationSchema
35
-
36
- /** Epoch of the next trigger */
37
- start: number
38
-
39
- /** The type of automation */
40
- type: 'interval'
41
- }>
42
-
43
- export const isSentinelIntervalAutomation = isPayloadOfSchemaType<SentinelIntervalAutomationPayload>(SentinelIntervalAutomationSchema)
44
-
45
- /** Settings for an Event Automation */
46
- export type SentinelEventAutomationPayload = SentinelBaseAutomationPayload<{
47
- schema: SentinelEventAutomationSchema
48
- type: 'event'
49
- }>
50
-
51
- /** Settings for an Automation */
52
- export type SentinelAutomationPayload = Payload<
53
- SentinelIntervalAutomationPayload | SentinelEventAutomationPayload,
54
- SentinelAutomationSchema | SentinelIntervalAutomationSchema | SentinelEventAutomationSchema
55
- >