@placeos/ts-client 4.4.0 → 4.4.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.4.0",
2
+ "version": "4.4.2",
3
3
  "license": "MIT",
4
4
  "name": "@placeos/ts-client",
5
5
  "author": "Alex Sorafumo <alex@place.tech>",
package/src/api.ts CHANGED
@@ -264,6 +264,7 @@ export type {
264
264
  TriggerComparison,
265
265
  TriggerConditionConstant,
266
266
  TriggerConditionValue,
267
+ TriggerConditions,
267
268
  TriggerCronTimeCondition,
268
269
  TriggerFunction,
269
270
  TriggerMailer,
@@ -271,7 +272,6 @@ export type {
271
272
  TriggerTimeCondition,
272
273
  TriggerWebhook,
273
274
  } from './triggers/interfaces';
274
- export type { TriggerConditions } from './triggers/interfaces';
275
275
  export { PlaceTrigger } from './triggers/trigger';
276
276
 
277
277
  export {
@@ -324,7 +324,11 @@ export type {
324
324
  SignageMediaQueryOptions,
325
325
  SignageMetrics,
326
326
  } from './signage/interfaces';
327
- export { MediaAnimation, SignageMedia } from './signage/media.class';
327
+ export {
328
+ MediaAnimation,
329
+ SignageMedia,
330
+ type MediaOrientation,
331
+ } from './signage/media.class';
328
332
  export {
329
333
  SignagePlaylist,
330
334
  SignagePlaylistMedia,
@@ -22,6 +22,17 @@ export function queryClusters(query_params: PlaceClusterQueryOptions = {}) {
22
22
  return query({ query_params, fn: process, path: PATH });
23
23
  }
24
24
 
25
+ /**
26
+ * Get the details for a specified cluster
27
+ * @param id ID of the cluster to query
28
+ * @param query_params Query parameters to add the to request URL
29
+ */
30
+ export function showCluster(
31
+ id: string,
32
+ query_params: PlaceClusterQueryOptions = {},
33
+ ) {
34
+ return show({ id, query_params, fn: process, path: PATH });
35
+ }
25
36
  /**
26
37
  * Query the available process for a cluster
27
38
  * @param id ID of the cluster to query