@placeos/ts-client 4.8.1 → 4.8.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/domains/functions.d.ts +3 -4
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +207 -207
- 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/interfaces.d.ts +4 -0
- package/package.json +1 -1
- package/src/domains/functions.ts +3 -4
- package/src/signage/interfaces.ts +6 -1
|
@@ -8,6 +8,10 @@ export interface SignageMetrics {
|
|
|
8
8
|
export interface SignageMediaQueryOptions extends PlaceResourceQueryOptions {
|
|
9
9
|
/** ID of the authority to filter the returned values on */
|
|
10
10
|
authority_id?: string;
|
|
11
|
+
/** Ignore state changes to the display media is requested for */
|
|
12
|
+
preview?: boolean;
|
|
13
|
+
/** ID of the currently playing item */
|
|
14
|
+
item_id?: string;
|
|
11
15
|
}
|
|
12
16
|
/** Allowable query parameters for signage playlists index endpoint */
|
|
13
17
|
export interface SignagePlaylistQueryOptions extends PlaceResourceQueryOptions {
|
package/package.json
CHANGED
package/src/domains/functions.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { apiEndpoint } from '../auth/functions';
|
|
|
4
4
|
import { get } from '../http/functions';
|
|
5
5
|
import { create, query, remove, show, update } from '../resources/functions';
|
|
6
6
|
import { PlaceResourceQueryOptions } from '../resources/interface';
|
|
7
|
-
import { HashMap } from '../utilities/types';
|
|
8
7
|
import { PlaceDomain } from './domain';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -73,10 +72,10 @@ export function removeDomain(id: string) {
|
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
/**
|
|
76
|
-
* Find the domain
|
|
75
|
+
* Find the domain associated with a user's email address
|
|
77
76
|
* @param email Email address to lookup
|
|
78
77
|
*/
|
|
79
|
-
export function lookupDomainByEmail(email: string): Observable<
|
|
78
|
+
export function lookupDomainByEmail(email: string): Observable<string> {
|
|
80
79
|
const url = `${apiEndpoint()}${PATH}/lookup/${encodeURIComponent(email)}`;
|
|
81
|
-
return get(url).pipe(map((resp
|
|
80
|
+
return get(url).pipe(map((resp) => `${resp}`));
|
|
82
81
|
}
|
|
@@ -10,10 +10,15 @@ export interface SignageMetrics {
|
|
|
10
10
|
export interface SignageMediaQueryOptions extends PlaceResourceQueryOptions {
|
|
11
11
|
/** ID of the authority to filter the returned values on */
|
|
12
12
|
authority_id?: string;
|
|
13
|
+
/** Ignore state changes to the display media is requested for */
|
|
14
|
+
preview?: boolean;
|
|
15
|
+
/** ID of the currently playing item */
|
|
16
|
+
item_id?: string;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
/** Allowable query parameters for signage playlists index endpoint */
|
|
16
|
-
export interface SignagePlaylistQueryOptions
|
|
20
|
+
export interface SignagePlaylistQueryOptions
|
|
21
|
+
extends PlaceResourceQueryOptions {}
|
|
17
22
|
|
|
18
23
|
/** Allowable query parameters for signage playlist media revisions endpoint */
|
|
19
24
|
export interface SignagePlaylistRevisionsOptions {
|