@placeos/ts-client 4.7.0 → 4.7.1
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/alerts/alert.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/triggers/trigger.d.ts +1 -0
- package/package.json +1 -1
- package/src/alerts/alert.ts +3 -0
- package/src/triggers/trigger.ts +3 -0
|
@@ -38,6 +38,7 @@ export declare class PlaceTrigger extends PlaceResource {
|
|
|
38
38
|
readonly trigger_id: string;
|
|
39
39
|
/** List of playlist IDs associated with the system */
|
|
40
40
|
readonly playlists: readonly string[];
|
|
41
|
+
readonly any_match: boolean;
|
|
41
42
|
/** ID of the system associated with the trigger */
|
|
42
43
|
get system_id(): string;
|
|
43
44
|
/** Actions to perform when the trigger is activated */
|
package/package.json
CHANGED
package/src/alerts/alert.ts
CHANGED
|
@@ -24,6 +24,8 @@ export class PlaceAlert extends PlaceResource {
|
|
|
24
24
|
public readonly alert_type: AlertType;
|
|
25
25
|
// How often should this alert should be raised when triggered
|
|
26
26
|
public readonly debounce_period: number;
|
|
27
|
+
// Whether condition checks should match any single condition to pass or all of them
|
|
28
|
+
public readonly any_match: boolean;
|
|
27
29
|
|
|
28
30
|
constructor(data: Partial<PlaceAlert>) {
|
|
29
31
|
super(data);
|
|
@@ -40,5 +42,6 @@ export class PlaceAlert extends PlaceResource {
|
|
|
40
42
|
this.alert_dashboard_id = data.alert_dashboard_id || '';
|
|
41
43
|
this.alert_dashboard_details =
|
|
42
44
|
data.alert_dashboard_details || undefined;
|
|
45
|
+
this.any_match = data.any_match || false;
|
|
43
46
|
}
|
|
44
47
|
}
|
package/src/triggers/trigger.ts
CHANGED
|
@@ -40,6 +40,8 @@ export class PlaceTrigger extends PlaceResource {
|
|
|
40
40
|
public readonly trigger_id: string;
|
|
41
41
|
/** List of playlist IDs associated with the system */
|
|
42
42
|
public readonly playlists: readonly string[];
|
|
43
|
+
// Whether condition checks should match any single condition to pass or all of them
|
|
44
|
+
public readonly any_match: boolean;
|
|
43
45
|
|
|
44
46
|
/** ID of the system associated with the trigger */
|
|
45
47
|
public get system_id(): string {
|
|
@@ -103,5 +105,6 @@ export class PlaceTrigger extends PlaceResource {
|
|
|
103
105
|
raw_data.activated_count || raw_data.trigger_count || 0;
|
|
104
106
|
this.playlists = raw_data.playlists || [];
|
|
105
107
|
this.trigger_id = raw_data.trigger_id || '';
|
|
108
|
+
this.any_match = raw_data.any_match || false;
|
|
106
109
|
}
|
|
107
110
|
}
|