@placeos/ts-client 4.7.1 → 4.7.3
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 +3 -3
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +268 -264
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/signage/functions.d.ts +5 -0
- package/package.json +1 -1
- package/src/api.ts +3 -2
- package/src/signage/functions.ts +9 -0
|
@@ -45,6 +45,11 @@ export declare function addSignageMedia(form_data: Partial<SignageMedia>): impor
|
|
|
45
45
|
* @param query_params Query parameters to add the to request URL
|
|
46
46
|
*/
|
|
47
47
|
export declare function removeSignageMedia(id: string, query_params?: Record<string, any>): import('rxjs').Observable<import('../utilities/types').HashMap<any>>;
|
|
48
|
+
/**
|
|
49
|
+
* Get the thumbnail URL for a media item.
|
|
50
|
+
* This is the endpoint resolves to the image for the media item's thumbnail.
|
|
51
|
+
*/
|
|
52
|
+
export declare function mediaThumbnail(id: string): string;
|
|
48
53
|
/**
|
|
49
54
|
* Query the available playlists
|
|
50
55
|
* @param query_params Query parameters to add the to request URL
|
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -366,6 +366,7 @@ export {
|
|
|
366
366
|
approveSignagePlaylist,
|
|
367
367
|
listSignagePlaylistMedia,
|
|
368
368
|
listSignagePlaylistMediaRevisions,
|
|
369
|
+
mediaThumbnail,
|
|
369
370
|
querySignageMedia,
|
|
370
371
|
querySignagePlaylists,
|
|
371
372
|
removeSignageMedia,
|
|
@@ -475,7 +476,6 @@ export type {
|
|
|
475
476
|
PlaceAssetTypeQueryOptions,
|
|
476
477
|
} from './assets/interfaces';
|
|
477
478
|
|
|
478
|
-
export { PlaceShortUrl } from './short-url/short-url.class';
|
|
479
479
|
export {
|
|
480
480
|
addShortUrl,
|
|
481
481
|
generateQrCode,
|
|
@@ -494,8 +494,8 @@ export type {
|
|
|
494
494
|
PlaceShortUrlQueryOptions,
|
|
495
495
|
QrCodeFormat,
|
|
496
496
|
} from './short-url/interfaces';
|
|
497
|
+
export { PlaceShortUrl } from './short-url/short-url.class';
|
|
497
498
|
|
|
498
|
-
export { PlaceStorage, type StorageType } from './storages/storage.class';
|
|
499
499
|
export {
|
|
500
500
|
addStorage,
|
|
501
501
|
queryStorages,
|
|
@@ -504,6 +504,7 @@ export {
|
|
|
504
504
|
updateStorage,
|
|
505
505
|
} from './storages/functions';
|
|
506
506
|
export type { PlaceStorageQueryOptions } from './storages/interfaces';
|
|
507
|
+
export { PlaceStorage, type StorageType } from './storages/storage.class';
|
|
507
508
|
|
|
508
509
|
export {
|
|
509
510
|
queryWebrtcRooms,
|
package/src/signage/functions.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { create, query, remove, show, update } from '../api';
|
|
2
|
+
import { apiEndpoint } from '../auth';
|
|
2
3
|
import { HttpJsonOptions } from '../http/interfaces';
|
|
3
4
|
import { task } from '../resources/functions';
|
|
4
5
|
import { SignageMediaQueryOptions, SignageMetrics } from './interfaces';
|
|
@@ -117,6 +118,14 @@ export function removeSignageMedia(
|
|
|
117
118
|
return remove({ id, query_params, path: MEDIA_PATH });
|
|
118
119
|
}
|
|
119
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Get the thumbnail URL for a media item.
|
|
123
|
+
* This is the endpoint resolves to the image for the media item's thumbnail.
|
|
124
|
+
*/
|
|
125
|
+
export function mediaThumbnail(id: string): string {
|
|
126
|
+
return `${apiEndpoint()}/${MEDIA_PATH}/${id}/thumbnail`;
|
|
127
|
+
}
|
|
128
|
+
|
|
120
129
|
/**
|
|
121
130
|
* @private
|
|
122
131
|
*/
|