@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.
- package/dist/browser/MemorySentinel.d.cts +3 -0
- package/dist/browser/MemorySentinel.d.cts.map +1 -1
- package/dist/browser/MemorySentinel.d.mts +3 -0
- package/dist/browser/MemorySentinel.d.mts.map +1 -1
- package/dist/browser/MemorySentinel.d.ts +3 -0
- package/dist/browser/MemorySentinel.d.ts.map +1 -1
- package/dist/browser/SentinelIntervalAutomationWrapper.d.cts +11 -1
- package/dist/browser/SentinelIntervalAutomationWrapper.d.cts.map +1 -1
- package/dist/browser/SentinelIntervalAutomationWrapper.d.mts +11 -1
- package/dist/browser/SentinelIntervalAutomationWrapper.d.mts.map +1 -1
- package/dist/browser/SentinelIntervalAutomationWrapper.d.ts +11 -1
- package/dist/browser/SentinelIntervalAutomationWrapper.d.ts.map +1 -1
- package/dist/browser/SentinelRunner.d.cts +1 -2
- package/dist/browser/SentinelRunner.d.cts.map +1 -1
- package/dist/browser/SentinelRunner.d.mts +1 -2
- package/dist/browser/SentinelRunner.d.mts.map +1 -1
- package/dist/browser/SentinelRunner.d.ts +1 -2
- package/dist/browser/SentinelRunner.d.ts.map +1 -1
- package/dist/browser/index.cjs +132 -98
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +0 -1
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts +0 -1
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts +0 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +126 -90
- package/dist/browser/index.js.map +1 -1
- package/dist/node/MemorySentinel.d.cts +3 -0
- package/dist/node/MemorySentinel.d.cts.map +1 -1
- package/dist/node/MemorySentinel.d.mts +3 -0
- package/dist/node/MemorySentinel.d.mts.map +1 -1
- package/dist/node/MemorySentinel.d.ts +3 -0
- package/dist/node/MemorySentinel.d.ts.map +1 -1
- package/dist/node/SentinelIntervalAutomationWrapper.d.cts +11 -1
- package/dist/node/SentinelIntervalAutomationWrapper.d.cts.map +1 -1
- package/dist/node/SentinelIntervalAutomationWrapper.d.mts +11 -1
- package/dist/node/SentinelIntervalAutomationWrapper.d.mts.map +1 -1
- package/dist/node/SentinelIntervalAutomationWrapper.d.ts +11 -1
- package/dist/node/SentinelIntervalAutomationWrapper.d.ts.map +1 -1
- package/dist/node/SentinelRunner.d.cts +1 -2
- package/dist/node/SentinelRunner.d.cts.map +1 -1
- package/dist/node/SentinelRunner.d.mts +1 -2
- package/dist/node/SentinelRunner.d.mts.map +1 -1
- package/dist/node/SentinelRunner.d.ts +1 -2
- package/dist/node/SentinelRunner.d.ts.map +1 -1
- package/dist/node/index.cjs +134 -102
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +0 -1
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts +0 -1
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts +0 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +128 -90
- package/dist/node/index.js.map +1 -1
- package/package.json +19 -19
- package/src/MemorySentinel.ts +23 -0
- package/src/SentinelIntervalAutomationWrapper.ts +31 -12
- package/src/SentinelRunner.ts +22 -14
- package/src/index.ts +0 -1
- package/dist/browser/Automation.d.cts +0 -71
- package/dist/browser/Automation.d.cts.map +0 -1
- package/dist/browser/Automation.d.mts +0 -71
- package/dist/browser/Automation.d.mts.map +0 -1
- package/dist/browser/Automation.d.ts +0 -71
- package/dist/browser/Automation.d.ts.map +0 -1
- package/dist/node/Automation.d.cts +0 -71
- package/dist/node/Automation.d.cts.map +0 -1
- package/dist/node/Automation.d.mts +0 -71
- package/dist/node/Automation.d.mts.map +0 -1
- package/dist/node/Automation.d.ts +0 -71
- package/dist/node/Automation.d.ts.map +0 -1
- 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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B,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,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zE,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,MAA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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
|
|
@@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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
|
-
>
|