@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/dist/api.d.ts +2 -3
- package/dist/clusters/functions.d.ts +6 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/api.ts +6 -2
- package/src/clusters/functions.ts +11 -0
package/package.json
CHANGED
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 {
|
|
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
|