@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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.7.0",
2
+ "version": "4.7.1",
3
3
  "license": "MIT",
4
4
  "name": "@placeos/ts-client",
5
5
  "author": "Alex Sorafumo <alex@place.tech>",
@@ -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
  }
@@ -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
  }