@vertigis/viewer-spec 49.7.0 → 49.8.0
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/analytics/AnalyticsContext.d.ts +28 -0
- package/analytics/AnalyticsContext.js +1 -0
- package/analytics/CommonAction.d.ts +89 -0
- package/analytics/CommonAction.js +1 -0
- package/analytics/WebAction.d.ts +102 -0
- package/analytics/WebAction.js +1 -0
- package/app-config/schema/common-app-config.schema.json +1 -1
- package/app-config/schema/mobile-app-config.schema.json +1 -1
- package/app-config/schema/web-app-config.schema.json +1 -1
- package/messaging/Command.d.ts +2 -1
- package/messaging/Message.d.ts +26 -0
- package/messaging/Operation.d.ts +2 -1
- package/messaging/registry/Commands.d.ts +4 -0
- package/messaging/registry/Commands.js +1 -1
- package/messaging/registry/app.d.ts +2 -2
- package/messaging/registry/map.d.ts +16 -0
- package/messaging/registry/map.js +1 -1
- package/messaging/registry/studioAnalytics.d.ts +24 -0
- package/messaging/registry/studioAnalytics.js +1 -0
- package/messaging/schema/common-action.schema.json +325 -279
- package/messaging/schema/common-event.schema.json +88 -88
- package/messaging/schema/mobile-action.schema.json +345 -299
- package/messaging/schema/mobile-event.schema.json +105 -105
- package/messaging/schema/web-action.schema.json +877 -669
- package/messaging/schema/web-event.schema.json +135 -150
- package/package.json +15 -14
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contextual information that is used for reporting events to VertiGIS Studio Analytics.
|
|
3
|
+
*/
|
|
4
|
+
export interface AnalyticsContext {
|
|
5
|
+
/**
|
|
6
|
+
* The XML name of the layout component that initiated the action, if
|
|
7
|
+
* applicable. Examples: "layer-list", "map", etc.
|
|
8
|
+
*/
|
|
9
|
+
analyticsComponentType?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The human-readable name of the layout component that initiated the
|
|
12
|
+
* action, if applicable. Examples: "Layer List", "Basemap Picker", "Left
|
|
13
|
+
* Panel", etc.
|
|
14
|
+
*/
|
|
15
|
+
analyticsComponentName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Additional component-specific data indicating such things as the name of
|
|
18
|
+
* an item or area within a component that the user interacted with to
|
|
19
|
+
* trigger the command, if applicable.
|
|
20
|
+
*
|
|
21
|
+
* Examples:
|
|
22
|
+
*
|
|
23
|
+
* - The name of a basemap selection.
|
|
24
|
+
* - The name of a button.
|
|
25
|
+
* - The name of a context menu item.
|
|
26
|
+
*/
|
|
27
|
+
analyticsComponentData?: string | number | boolean | string[];
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Names of `action-*` events generated for VertiGIS Studio Analytics in both
|
|
3
|
+
* Web and Mobile viewers.
|
|
4
|
+
*/
|
|
5
|
+
export declare type CommonAction =
|
|
6
|
+
/**
|
|
7
|
+
* Layer action. Payload: MIME type of the attachment.
|
|
8
|
+
*/
|
|
9
|
+
"attachment-add"
|
|
10
|
+
/**
|
|
11
|
+
* Layer action. Payload: MIME type of the attachment.
|
|
12
|
+
*/
|
|
13
|
+
| "attachment-delete"
|
|
14
|
+
/**
|
|
15
|
+
* Layer action. Payload: MIME type of the attachment.
|
|
16
|
+
*/
|
|
17
|
+
| "attachment-open"
|
|
18
|
+
/**
|
|
19
|
+
* Payload: basemap name.
|
|
20
|
+
*/
|
|
21
|
+
| "basemap-set"
|
|
22
|
+
/**
|
|
23
|
+
* Map action, if related to a map. Payload: bookmark title.
|
|
24
|
+
*/
|
|
25
|
+
| "bookmark-add"
|
|
26
|
+
/**
|
|
27
|
+
* Payload: bookmark title.
|
|
28
|
+
*/
|
|
29
|
+
| "bookmark-delete"
|
|
30
|
+
/**
|
|
31
|
+
* Payload: bookmark's new title.
|
|
32
|
+
*/
|
|
33
|
+
| "bookmark-update"
|
|
34
|
+
/**
|
|
35
|
+
* Map action, if the bookmark is admin-defined in a map. Payload: bookmark title.
|
|
36
|
+
*/
|
|
37
|
+
| "bookmark-view"
|
|
38
|
+
/**
|
|
39
|
+
* Layer action. Payload: global ID (if layer supports it), or object ID.
|
|
40
|
+
*/
|
|
41
|
+
| "feature-add"
|
|
42
|
+
/**
|
|
43
|
+
* Layer action. Payload: global ID (if layer supports it), or object ID.
|
|
44
|
+
*/
|
|
45
|
+
| "feature-delete"
|
|
46
|
+
/**
|
|
47
|
+
* Layer action. Payload: global ID (if layer supports it), or object ID.
|
|
48
|
+
*/
|
|
49
|
+
| "feature-update"
|
|
50
|
+
/**
|
|
51
|
+
* Layer action. Payload: global ID (if layer supports it), or object ID.
|
|
52
|
+
*/
|
|
53
|
+
| "feature-view"
|
|
54
|
+
/**
|
|
55
|
+
* Payload: geolocation mode, e.g. "auto-recenter", "off", etc.
|
|
56
|
+
*/
|
|
57
|
+
| "geolocation-mode-change"
|
|
58
|
+
/**
|
|
59
|
+
* Map action.
|
|
60
|
+
*/
|
|
61
|
+
| "map-export"
|
|
62
|
+
/**
|
|
63
|
+
* Map action.
|
|
64
|
+
*/
|
|
65
|
+
| "markup-add"
|
|
66
|
+
/**
|
|
67
|
+
* Map action.
|
|
68
|
+
*/
|
|
69
|
+
| "markup-clear"
|
|
70
|
+
/**
|
|
71
|
+
* Map action. Payload: geometry type (see SketchTool).
|
|
72
|
+
*/
|
|
73
|
+
| "measurement-finish"
|
|
74
|
+
/**
|
|
75
|
+
* Payload: the resolved address.
|
|
76
|
+
*/
|
|
77
|
+
| "reverse-geocode-execute"
|
|
78
|
+
/**
|
|
79
|
+
* Payload: measurement system.
|
|
80
|
+
*/
|
|
81
|
+
| "settings-measurement-system-set"
|
|
82
|
+
/**
|
|
83
|
+
* Payload: theme ID.
|
|
84
|
+
*/
|
|
85
|
+
| "settings-theme-set"
|
|
86
|
+
/**
|
|
87
|
+
* Map action in some cases. Payload: the URL.
|
|
88
|
+
*/
|
|
89
|
+
| "url-open";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { CommonAction } from "./CommonAction";
|
|
2
|
+
/**
|
|
3
|
+
* Names of `action-*` events generated for VertiGIS Studio Analytics in
|
|
4
|
+
* VertiGIS Studio Web.
|
|
5
|
+
*/
|
|
6
|
+
export declare type WebAction = CommonAction
|
|
7
|
+
/**
|
|
8
|
+
* Layer action.
|
|
9
|
+
*/
|
|
10
|
+
| "labels-hide"
|
|
11
|
+
/**
|
|
12
|
+
* Layer action.
|
|
13
|
+
*/
|
|
14
|
+
| "labels-show"
|
|
15
|
+
/**
|
|
16
|
+
* Map action.
|
|
17
|
+
*/
|
|
18
|
+
| "layer-comparison-enable"
|
|
19
|
+
/**
|
|
20
|
+
* Map action.
|
|
21
|
+
*/
|
|
22
|
+
| "layer-comparison-disable"
|
|
23
|
+
/**
|
|
24
|
+
* Layer action. Payload: leading or trailing.
|
|
25
|
+
*/
|
|
26
|
+
| "layer-comparison-layer-add"
|
|
27
|
+
/**
|
|
28
|
+
* Layer action. Payload: leading or trailing.
|
|
29
|
+
*/
|
|
30
|
+
| "layer-comparison-layer-remove"
|
|
31
|
+
/**
|
|
32
|
+
* Payload: layout ID.
|
|
33
|
+
*/
|
|
34
|
+
| "layout-change"
|
|
35
|
+
/**
|
|
36
|
+
* Payload: new locale.
|
|
37
|
+
*/
|
|
38
|
+
| "locale-change"
|
|
39
|
+
/**
|
|
40
|
+
* Map + area action (area is location). Payload: marker ID.
|
|
41
|
+
*/
|
|
42
|
+
| "location-marker-add"
|
|
43
|
+
/**
|
|
44
|
+
* Map action.
|
|
45
|
+
*/
|
|
46
|
+
| "location-marker-clear"
|
|
47
|
+
/**
|
|
48
|
+
* Map action. Payload: marker ID.
|
|
49
|
+
*/
|
|
50
|
+
| "location-marker-remove"
|
|
51
|
+
/**
|
|
52
|
+
* Map + area action (area is new location). Payload: marker ID.
|
|
53
|
+
*/
|
|
54
|
+
| "location-marker-update"
|
|
55
|
+
/**
|
|
56
|
+
* Map + area action. Payload: note text.
|
|
57
|
+
*/
|
|
58
|
+
| "map-note-add"
|
|
59
|
+
/**
|
|
60
|
+
* Map + area action. Payload: note text.
|
|
61
|
+
*/
|
|
62
|
+
| "map-note-delete"
|
|
63
|
+
/**
|
|
64
|
+
* Map + area action. Payload: note text.
|
|
65
|
+
*/
|
|
66
|
+
| "map-note-update"
|
|
67
|
+
/**
|
|
68
|
+
* Map action. Payload: new view mode ("map" or "scene").
|
|
69
|
+
*/
|
|
70
|
+
| "map-view-mode-set" | "project-load" | "project-create"
|
|
71
|
+
/**
|
|
72
|
+
* Payload: format ("csv", "shapefile", or "xlsx").
|
|
73
|
+
*/
|
|
74
|
+
| "results-export"
|
|
75
|
+
/**
|
|
76
|
+
* Payload: format ("csv", "shapefile", or "xlsx").
|
|
77
|
+
*/
|
|
78
|
+
| "results-import"
|
|
79
|
+
/**
|
|
80
|
+
* Payload: new distance.
|
|
81
|
+
*/
|
|
82
|
+
| "settings-buffer-distance-set"
|
|
83
|
+
/**
|
|
84
|
+
* Payload: new units.
|
|
85
|
+
*/
|
|
86
|
+
| "settings-buffer-units-set"
|
|
87
|
+
/**
|
|
88
|
+
* Payload: new density.
|
|
89
|
+
*/
|
|
90
|
+
| "settings-density-set"
|
|
91
|
+
/**
|
|
92
|
+
* Payload: new units.
|
|
93
|
+
*/
|
|
94
|
+
| "settings-measurement-area-units-set"
|
|
95
|
+
/**
|
|
96
|
+
* Payload: new units.
|
|
97
|
+
*/
|
|
98
|
+
| "settings-measurement-length-units-set"
|
|
99
|
+
/**
|
|
100
|
+
* Payload: the link.
|
|
101
|
+
*/
|
|
102
|
+
| "sharing-link-generate";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|