@spotto/contract 1.0.62-alpha.0 → 1.0.62-alpha.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.
|
@@ -4,7 +4,6 @@ import { GetEventsQuery } from './query';
|
|
|
4
4
|
import { DeviceType, ReaderType } from '../../readers/constants';
|
|
5
5
|
import { LocationType } from '../../locations/constants';
|
|
6
6
|
import { GetSnapshotResponse } from '../../snapshots';
|
|
7
|
-
import { GetAssetResponse } from '../../assets';
|
|
8
7
|
export interface EventLocation extends IEmbeddedEntity {
|
|
9
8
|
type: LocationType;
|
|
10
9
|
organisation?: IEmbeddedEntity;
|
|
@@ -35,14 +34,9 @@ export interface IReaderEventPayload {
|
|
|
35
34
|
location?: IEmbeddedEntity;
|
|
36
35
|
}
|
|
37
36
|
export declare type ISnapshotEventPayload = Pick<GetSnapshotResponse, 'reader' | 'manifest' | 'detectedAssets' | 'sightedTypes' | 'sightedAssets' | 'computed' | 'fields' | 'submitted' | 'created' | 'geolocation'>;
|
|
38
|
-
export declare type AssetUpdates = Omit<GetAssetResponse, 'id' | 'name'> | {
|
|
39
|
-
id?: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
};
|
|
42
37
|
export interface IAssetCrudEvent extends IBaseEvent {
|
|
43
38
|
type: AssetCrudEventType;
|
|
44
|
-
asset:
|
|
45
|
-
updates?: AssetUpdates;
|
|
39
|
+
asset: IEmbeddedEntity;
|
|
46
40
|
user: IEmbeddedEntity;
|
|
47
41
|
payload: IAssetEventPayload;
|
|
48
42
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IEmbeddedEntity, IEntityMeta } from '../../shared';
|
|
2
|
-
import { Preferences } from '../constants';
|
|
2
|
+
import { Preferences, Tenant } from '../constants';
|
|
3
3
|
import { Integrations } from '../../integrations/constants';
|
|
4
4
|
export interface GetOrganisationResponse {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
|
+
tenant?: Tenant;
|
|
7
8
|
ancestors?: IEmbeddedEntity[];
|
|
8
9
|
preferences?: Preferences;
|
|
9
10
|
integrations?: Integrations;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { INetworkRequest } from '../../../networks';
|
|
2
|
-
import { Preferences } from '../../constants';
|
|
2
|
+
import { Tenant, Preferences } from '../../constants';
|
|
3
3
|
export interface NetworkWithDeletionFlag extends INetworkRequest {
|
|
4
4
|
deleteNetwork?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export interface UpdateOrganisationRequest {
|
|
7
7
|
name?: string;
|
|
8
|
+
tenant?: Tenant;
|
|
8
9
|
networks?: NetworkWithDeletionFlag[];
|
|
9
10
|
preferences?: Preferences;
|
|
10
11
|
}
|
|
@@ -15,9 +15,14 @@ export interface LocationPreferences {
|
|
|
15
15
|
export interface SnapshotPreferences {
|
|
16
16
|
mainMenuEnabled?: boolean;
|
|
17
17
|
}
|
|
18
|
+
export interface WorkflowPreferences {
|
|
19
|
+
mainMenuEnabled?: boolean;
|
|
20
|
+
}
|
|
18
21
|
export interface Preferences {
|
|
19
22
|
readers: ReaderPreferences;
|
|
20
23
|
assets: AssetPreferences;
|
|
21
24
|
locations: LocationPreferences;
|
|
22
25
|
snapshots?: SnapshotPreferences;
|
|
26
|
+
workflows?: WorkflowPreferences;
|
|
23
27
|
}
|
|
28
|
+
export declare type Tenant = 'g2g' | 'spotto';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.62-alpha.
|
|
4
|
+
"version": "1.0.62-alpha.2",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"@types/geojson": "^7946.0.11",
|
|
19
19
|
"shx": "^0.3.4"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "e5ec217fdadf3eba0806695fa7c54d6e5e6218c6"
|
|
22
22
|
}
|