@spotto/contract 1.0.70-alpha.43 → 1.0.70-alpha.44
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.
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReaderType, DeviceType } from '../readers';
|
|
2
|
-
import { TaskPreferences } from '../tasks/access';
|
|
3
2
|
/**
|
|
4
3
|
* UI preferences to streamline content and available fields
|
|
5
4
|
* to be only what is relevant for the given organisation
|
|
@@ -22,9 +21,11 @@ export interface SnapshotPreferences {
|
|
|
22
21
|
export interface WorkflowPreferences {
|
|
23
22
|
mainMenuEnabled?: boolean;
|
|
24
23
|
/**
|
|
25
|
-
* The organisation's switch for workflows (contract
|
|
26
|
-
* Off or absent
|
|
27
|
-
*
|
|
24
|
+
* The organisation's one switch for tasks and workflows (contract
|
|
25
|
+
* tasks/task, workflows/workflow). Off or absent: the task routes and the
|
|
26
|
+
* workflow routes refuse, the saves complete no task, no workflow runs,
|
|
27
|
+
* and `GET /users/current` carries no `taskAccess`. What exists is kept,
|
|
28
|
+
* and comes back when it is switched on. The legacy snapshot email
|
|
28
29
|
* workflows do not depend on it.
|
|
29
30
|
*/
|
|
30
31
|
enabled?: boolean;
|
|
@@ -46,13 +47,6 @@ export interface Preferences {
|
|
|
46
47
|
snapshots?: SnapshotPreferences;
|
|
47
48
|
workflows?: WorkflowPreferences;
|
|
48
49
|
usergroups?: UsergroupPreferences;
|
|
49
|
-
/**
|
|
50
|
-
* The organisation's switch for tasks. Off or absent: the task routes
|
|
51
|
-
* refuse, the saves complete nothing, and `GET /users/current` carries no
|
|
52
|
-
* `taskAccess`. Tasks already raised are kept and come back when it is
|
|
53
|
-
* switched on again.
|
|
54
|
-
*/
|
|
55
|
-
tasks?: TaskPreferences;
|
|
56
50
|
mainMenuLinks?: Array<{
|
|
57
51
|
label: string;
|
|
58
52
|
url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/organisations/constants.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/organisations/constants.ts"],"names":[],"mappings":";;;AAiEA;;;;;;;GAOG;AACU,QAAA,6BAA6B,GAAG,kBAAkB,CAAA"}
|
package/dist/tasks/access.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The caller's standing with tasks, on `GET /users/current`: present when the
|
|
3
|
-
* organisation has tasks switched on
|
|
3
|
+
* organisation has tasks and workflows switched on
|
|
4
|
+
* (`preferences.workflows.enabled`), absent when it does not, which the app
|
|
4
5
|
* reads as "show nothing of tasks".
|
|
5
6
|
*/
|
|
6
7
|
export interface TaskAccess {
|
|
@@ -21,7 +22,3 @@ export interface TaskAccess {
|
|
|
21
22
|
*/
|
|
22
23
|
isAdmin: boolean;
|
|
23
24
|
}
|
|
24
|
-
/** The organisation's switch for tasks. Off or absent: every task route refuses. */
|
|
25
|
-
export interface TaskPreferences {
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.70-alpha.
|
|
4
|
+
"version": "1.0.70-alpha.44",
|
|
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": "985b53d5429aaa20179a3f3888ba562366fa0ba8"
|
|
22
22
|
}
|