@vertigis/viewer-spec 49.1.0 → 49.3.1

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.
@@ -57,6 +57,7 @@ export interface BrandingColors {
57
57
  buttonIcon: ColorConfig;
58
58
  buttonIconDisabled: ColorConfig;
59
59
  buttonIconHover: ColorConfig;
60
+ defaultMapBackground: ColorConfig;
60
61
  disabledIconFill: ColorConfig;
61
62
  emphasizedButtonBackground: ColorConfig;
62
63
  emphasizedButtonBackgroundDisabled: ColorConfig;
@@ -60,6 +60,18 @@ export declare class AppCommands extends CommandRegistry {
60
60
  * @mobileOnly
61
61
  */
62
62
  get refresh(): Command;
63
+ /**
64
+ * Stores data specified by the arguments (key and scope).
65
+ *
66
+ * @mobileOnly
67
+ */
68
+ get setPersistentData(): Command<SaveStorageDataArgs>;
69
+ /**
70
+ * Removes stored data, specified by the arguments (key and scope).
71
+ *
72
+ * @mobileOnly
73
+ */
74
+ get removePersistentData(): Command<StorageDataArgs>;
63
75
  /**
64
76
  * Adds the currently loaded app to the user's Favorites collection.
65
77
  *
@@ -188,4 +200,47 @@ export declare class AppOperations extends OperationRegistry {
188
200
  * @webOnly
189
201
  */
190
202
  get createProject(): Operation<void, AppConfig>;
203
+ /**
204
+ * Gets stored data, specified by the arguments (key and scope).
205
+ */
206
+ get getPersistentData(): Operation<StorageDataArgs, unknown>;
207
+ }
208
+ /**
209
+ * Arguments for the reading app.*-persistent-data operations. Only available in the
210
+ * Geocortex Mobile Viewer.
211
+ */
212
+ export interface StorageDataArgs {
213
+ /**
214
+ * The key of the data to store.
215
+ */
216
+ key: string;
217
+ /**
218
+ * The scope the data is stored in. Defaults to @see StorageScope.APP.
219
+ */
220
+ scope?: StorageScope;
221
+ }
222
+ /**
223
+ * Arguments for the app.set-persistent-data operations. Only available in the
224
+ * Geocortex Mobile Viewer.
225
+ */
226
+ export interface SaveStorageDataArgs extends StorageDataArgs {
227
+ /**
228
+ * The data to be stored.
229
+ */
230
+ data: unknown;
231
+ }
232
+ declare enum StorageScope {
233
+ /**
234
+ * Defines the global storage that is accessible from all apps.
235
+ */
236
+ GLOBAL = "global",
237
+ /**
238
+ * Defines the app specific storage that only is accessible from within the very app.
239
+ */
240
+ APP = "app",
241
+ /**
242
+ * Defines in memory storage, that doesn't get persisted on app shutdown.
243
+ */
244
+ MEMORY = "memory"
191
245
  }
246
+ export {};
@@ -1 +1 @@
1
- import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class AppCommands extends CommandRegistry{get goToAppSelector(){return this._messages.command("app.go-to-app-selector")}get refresh(){return this._messages.command("app.refresh")}get favorite(){return this._messages.command("app.favorite")}get unfavorite(){return this._messages.command("app.unfavorite")}get loadProject(){return this._messages.command("app.load-project")}}export class AppEvents extends EventRegistry{constructor(){super(...arguments),this.custom=new AppCustomEvents(this._messages),this.generic=new AppGenericEvents(this._messages)}get activated(){return this._messages.event("app.activated")}get backgrounded(){return this._messages.event("app.backgrounded")}get interrupted(){return this._messages.event("app.interrupted")}get customStarted(){return this._messages.event("app.custom.started")}get genericAppStarted(){return this._messages.event("app.generic.started")}get specificAppStarted(){return this._messages.event("app.generic.specific-app-started")}get goingToAppSelector(){return this._messages.event("app.navigating-to-app-selector")}get refreshed(){return this._messages.event("app.refreshed")}get refreshing(){return this._messages.event("app.refreshing")}get favorited(){return this._messages.event("app.favorited")}get unfavorited(){return this._messages.event("app.unfavorited")}}export class AppCustomEvents extends EventRegistry{get started(){return this._messages.event("app.custom.started")}}export class AppGenericEvents extends EventRegistry{get started(){return this._messages.event("app.generic.started")}get appsListed(){return this._messages.event("app.generic.apps-listed")}}export class AppOperations extends OperationRegistry{get getVersion(){return this._messages.operation("app.get-version")}get createProject(){return this._messages.operation("app.create-project")}}
1
+ import{CommandRegistry}from"../CommandRegistry.js";import{EventRegistry}from"../EventRegistry.js";import{OperationRegistry}from"../OperationRegistry.js";export class AppCommands extends CommandRegistry{get goToAppSelector(){return this._messages.command("app.go-to-app-selector")}get refresh(){return this._messages.command("app.refresh")}get setPersistentData(){return this._messages.command("app.set-persistent-data")}get removePersistentData(){return this._messages.command("app.remove-persistent-data")}get favorite(){return this._messages.command("app.favorite")}get unfavorite(){return this._messages.command("app.unfavorite")}get loadProject(){return this._messages.command("app.load-project")}}export class AppEvents extends EventRegistry{constructor(){super(...arguments),this.custom=new AppCustomEvents(this._messages),this.generic=new AppGenericEvents(this._messages)}get activated(){return this._messages.event("app.activated")}get backgrounded(){return this._messages.event("app.backgrounded")}get interrupted(){return this._messages.event("app.interrupted")}get customStarted(){return this._messages.event("app.custom.started")}get genericAppStarted(){return this._messages.event("app.generic.started")}get specificAppStarted(){return this._messages.event("app.generic.specific-app-started")}get goingToAppSelector(){return this._messages.event("app.navigating-to-app-selector")}get refreshed(){return this._messages.event("app.refreshed")}get refreshing(){return this._messages.event("app.refreshing")}get favorited(){return this._messages.event("app.favorited")}get unfavorited(){return this._messages.event("app.unfavorited")}}export class AppCustomEvents extends EventRegistry{get started(){return this._messages.event("app.custom.started")}}export class AppGenericEvents extends EventRegistry{get started(){return this._messages.event("app.generic.started")}get appsListed(){return this._messages.event("app.generic.apps-listed")}}export class AppOperations extends OperationRegistry{get getVersion(){return this._messages.operation("app.get-version")}get createProject(){return this._messages.operation("app.create-project")}get getPersistentData(){return this._messages.operation("app.get-persistent-data")}}var StorageScope;!function(e){e.GLOBAL="global",e.APP="app",e.MEMORY="memory"}(StorageScope||(StorageScope={}));
@@ -2226,6 +2226,32 @@
2226
2226
  ],
2227
2227
  "type": "object"
2228
2228
  },
2229
+ "StorageDataArgs": {
2230
+ "additionalProperties": false,
2231
+ "description": "Arguments for the reading app.*-persistent-data operations. Only available in the Geocortex Mobile Viewer.",
2232
+ "properties": {
2233
+ "key": {
2234
+ "description": "The key of the data to store.",
2235
+ "type": "string"
2236
+ },
2237
+ "scope": {
2238
+ "$ref": "#/definitions/StorageScope",
2239
+ "description": "The scope the data is stored in. Defaults to @see StorageScope.APP."
2240
+ }
2241
+ },
2242
+ "required": [
2243
+ "key"
2244
+ ],
2245
+ "type": "object"
2246
+ },
2247
+ "StorageScope": {
2248
+ "enum": [
2249
+ "app",
2250
+ "global",
2251
+ "memory"
2252
+ ],
2253
+ "type": "string"
2254
+ },
2229
2255
  "SuggestArgs": {
2230
2256
  "additionalProperties": false,
2231
2257
  "description": "Arguments for the \"geocode.suggest\" operation.",
@@ -2499,6 +2525,15 @@
2499
2525
  ],
2500
2526
  "type": "object"
2501
2527
  },
2528
+ "app.get-persistent-data": {
2529
+ "description": "Gets stored data, specified by the arguments (key and scope).",
2530
+ "enum": [
2531
+ "app.get-persistent-data"
2532
+ ]
2533
+ },
2534
+ "app.get-persistent-data:input": {
2535
+ "$ref": "#/definitions/StorageDataArgs"
2536
+ },
2502
2537
  "auth.get-current-user": {
2503
2538
  "description": "Gets the user that is currently signed into the application.",
2504
2539
  "enum": [
@@ -11985,6 +12020,22 @@
11985
12020
  },
11986
12021
  "viewer-spec.SingleCommand": {
11987
12022
  "anyOf": [
12023
+ {
12024
+ "additionalProperties": false,
12025
+ "properties": {
12026
+ "arguments": {
12027
+ "$ref": "#/definitions/app.get-persistent-data:input"
12028
+ },
12029
+ "name": {
12030
+ "$ref": "#/definitions/app.get-persistent-data"
12031
+ }
12032
+ },
12033
+ "required": [
12034
+ "name",
12035
+ "arguments"
12036
+ ],
12037
+ "type": "object"
12038
+ },
11988
12039
  {
11989
12040
  "additionalProperties": false,
11990
12041
  "properties": {
@@ -12849,6 +12900,9 @@
12849
12900
  ],
12850
12901
  "type": "object"
12851
12902
  },
12903
+ {
12904
+ "$ref": "#/definitions/app.get-persistent-data"
12905
+ },
12852
12906
  {
12853
12907
  "$ref": "#/definitions/auth.sign-in"
12854
12908
  },
@@ -2719,6 +2719,28 @@
2719
2719
  ],
2720
2720
  "type": "object"
2721
2721
  },
2722
+ "SaveStorageDataArgs": {
2723
+ "additionalProperties": false,
2724
+ "description": "Arguments for the app.set-persistent-data operations. Only available in the Geocortex Mobile Viewer.",
2725
+ "properties": {
2726
+ "data": {
2727
+ "description": "The data to be stored."
2728
+ },
2729
+ "key": {
2730
+ "description": "The key of the data to store.",
2731
+ "type": "string"
2732
+ },
2733
+ "scope": {
2734
+ "$ref": "#/definitions/StorageScope",
2735
+ "description": "The scope the data is stored in. Defaults to @see StorageScope.APP."
2736
+ }
2737
+ },
2738
+ "required": [
2739
+ "data",
2740
+ "key"
2741
+ ],
2742
+ "type": "object"
2743
+ },
2722
2744
  "SearchArgs": {
2723
2745
  "additionalProperties": false,
2724
2746
  "description": "Arguments for search operations.",
@@ -3060,6 +3082,32 @@
3060
3082
  ],
3061
3083
  "type": "object"
3062
3084
  },
3085
+ "StorageDataArgs": {
3086
+ "additionalProperties": false,
3087
+ "description": "Arguments for the reading app.*-persistent-data operations. Only available in the Geocortex Mobile Viewer.",
3088
+ "properties": {
3089
+ "key": {
3090
+ "description": "The key of the data to store.",
3091
+ "type": "string"
3092
+ },
3093
+ "scope": {
3094
+ "$ref": "#/definitions/StorageScope",
3095
+ "description": "The scope the data is stored in. Defaults to @see StorageScope.APP."
3096
+ }
3097
+ },
3098
+ "required": [
3099
+ "key"
3100
+ ],
3101
+ "type": "object"
3102
+ },
3103
+ "StorageScope": {
3104
+ "enum": [
3105
+ "app",
3106
+ "global",
3107
+ "memory"
3108
+ ],
3109
+ "type": "string"
3110
+ },
3063
3111
  "SuggestArgs": {
3064
3112
  "additionalProperties": false,
3065
3113
  "description": "Arguments for the \"geocode.suggest\" operation.",
@@ -3339,6 +3387,15 @@
3339
3387
  "app.favorite"
3340
3388
  ]
3341
3389
  },
3390
+ "app.get-persistent-data": {
3391
+ "description": "Gets stored data, specified by the arguments (key and scope).",
3392
+ "enum": [
3393
+ "app.get-persistent-data"
3394
+ ]
3395
+ },
3396
+ "app.get-persistent-data:input": {
3397
+ "$ref": "#/definitions/StorageDataArgs"
3398
+ },
3342
3399
  "app.go-to-app-selector": {
3343
3400
  "description": "Returns to the Geocortex Go view where the user can select a different app. Only enabled if the current app was launched through Geocortex Go.",
3344
3401
  "enum": [
@@ -3351,6 +3408,24 @@
3351
3408
  "app.refresh"
3352
3409
  ]
3353
3410
  },
3411
+ "app.remove-persistent-data": {
3412
+ "description": "Removes stored data, specified by the arguments (key and scope).",
3413
+ "enum": [
3414
+ "app.remove-persistent-data"
3415
+ ]
3416
+ },
3417
+ "app.remove-persistent-data:input": {
3418
+ "$ref": "#/definitions/StorageDataArgs"
3419
+ },
3420
+ "app.set-persistent-data": {
3421
+ "description": "Stores data specified by the arguments (key and scope).",
3422
+ "enum": [
3423
+ "app.set-persistent-data"
3424
+ ]
3425
+ },
3426
+ "app.set-persistent-data:input": {
3427
+ "$ref": "#/definitions/SaveStorageDataArgs"
3428
+ },
3354
3429
  "app.unfavorite": {
3355
3430
  "description": "Removes the currently loaded app from the user's Favorites collection.",
3356
3431
  "enum": [
@@ -13906,6 +13981,54 @@
13906
13981
  },
13907
13982
  "viewer-spec.SingleCommand": {
13908
13983
  "anyOf": [
13984
+ {
13985
+ "additionalProperties": false,
13986
+ "properties": {
13987
+ "arguments": {
13988
+ "$ref": "#/definitions/app.get-persistent-data:input"
13989
+ },
13990
+ "name": {
13991
+ "$ref": "#/definitions/app.get-persistent-data"
13992
+ }
13993
+ },
13994
+ "required": [
13995
+ "name",
13996
+ "arguments"
13997
+ ],
13998
+ "type": "object"
13999
+ },
14000
+ {
14001
+ "additionalProperties": false,
14002
+ "properties": {
14003
+ "arguments": {
14004
+ "$ref": "#/definitions/app.remove-persistent-data:input"
14005
+ },
14006
+ "name": {
14007
+ "$ref": "#/definitions/app.remove-persistent-data"
14008
+ }
14009
+ },
14010
+ "required": [
14011
+ "name",
14012
+ "arguments"
14013
+ ],
14014
+ "type": "object"
14015
+ },
14016
+ {
14017
+ "additionalProperties": false,
14018
+ "properties": {
14019
+ "arguments": {
14020
+ "$ref": "#/definitions/app.set-persistent-data:input"
14021
+ },
14022
+ "name": {
14023
+ "$ref": "#/definitions/app.set-persistent-data"
14024
+ }
14025
+ },
14026
+ "required": [
14027
+ "name",
14028
+ "arguments"
14029
+ ],
14030
+ "type": "object"
14031
+ },
13909
14032
  {
13910
14033
  "additionalProperties": false,
13911
14034
  "properties": {
@@ -15685,12 +15808,21 @@
15685
15808
  {
15686
15809
  "$ref": "#/definitions/app.favorite"
15687
15810
  },
15811
+ {
15812
+ "$ref": "#/definitions/app.get-persistent-data"
15813
+ },
15688
15814
  {
15689
15815
  "$ref": "#/definitions/app.go-to-app-selector"
15690
15816
  },
15691
15817
  {
15692
15818
  "$ref": "#/definitions/app.refresh"
15693
15819
  },
15820
+ {
15821
+ "$ref": "#/definitions/app.remove-persistent-data"
15822
+ },
15823
+ {
15824
+ "$ref": "#/definitions/app.set-persistent-data"
15825
+ },
15694
15826
  {
15695
15827
  "$ref": "#/definitions/app.unfavorite"
15696
15828
  },
@@ -4671,6 +4671,32 @@
4671
4671
  ],
4672
4672
  "type": "object"
4673
4673
  },
4674
+ "StorageDataArgs": {
4675
+ "additionalProperties": false,
4676
+ "description": "Arguments for the reading app.*-persistent-data operations. Only available in the Geocortex Mobile Viewer.",
4677
+ "properties": {
4678
+ "key": {
4679
+ "description": "The key of the data to store.",
4680
+ "type": "string"
4681
+ },
4682
+ "scope": {
4683
+ "$ref": "#/definitions/StorageScope",
4684
+ "description": "The scope the data is stored in. Defaults to @see StorageScope.APP."
4685
+ }
4686
+ },
4687
+ "required": [
4688
+ "key"
4689
+ ],
4690
+ "type": "object"
4691
+ },
4692
+ "StorageScope": {
4693
+ "enum": [
4694
+ "app",
4695
+ "global",
4696
+ "memory"
4697
+ ],
4698
+ "type": "string"
4699
+ },
4674
4700
  "SuggestArgs": {
4675
4701
  "additionalProperties": false,
4676
4702
  "description": "Arguments for the \"geocode.suggest\" operation.",
@@ -5598,6 +5624,15 @@
5598
5624
  "app.create-project:output": {
5599
5625
  "$ref": "#/definitions/AppConfig"
5600
5626
  },
5627
+ "app.get-persistent-data": {
5628
+ "description": "Gets stored data, specified by the arguments (key and scope).",
5629
+ "enum": [
5630
+ "app.get-persistent-data"
5631
+ ]
5632
+ },
5633
+ "app.get-persistent-data:input": {
5634
+ "$ref": "#/definitions/StorageDataArgs"
5635
+ },
5601
5636
  "app.get-version": {
5602
5637
  "description": "Gets the current version stamped in the application (i.e. the version of the viewer this application was created with).",
5603
5638
  "enum": [
@@ -17856,6 +17891,22 @@
17856
17891
  },
17857
17892
  "viewer-spec.SingleCommand": {
17858
17893
  "anyOf": [
17894
+ {
17895
+ "additionalProperties": false,
17896
+ "properties": {
17897
+ "arguments": {
17898
+ "$ref": "#/definitions/app.get-persistent-data:input"
17899
+ },
17900
+ "name": {
17901
+ "$ref": "#/definitions/app.get-persistent-data"
17902
+ }
17903
+ },
17904
+ "required": [
17905
+ "name",
17906
+ "arguments"
17907
+ ],
17908
+ "type": "object"
17909
+ },
17859
17910
  {
17860
17911
  "additionalProperties": false,
17861
17912
  "properties": {
@@ -20032,6 +20083,9 @@
20032
20083
  ],
20033
20084
  "type": "object"
20034
20085
  },
20086
+ {
20087
+ "$ref": "#/definitions/app.get-persistent-data"
20088
+ },
20035
20089
  {
20036
20090
  "$ref": "#/definitions/app.load-project"
20037
20091
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertigis/viewer-spec",
3
- "version": "49.1.0",
3
+ "version": "49.3.1",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "VertiGIS Viewer Specification",
6
6
  "type": "module",
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export declare const version = "49.1.0";
4
+ export declare const version = "49.3.1";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex Viewer Specification.
3
3
  */
4
- export const version = "49.1.0";
4
+ export const version = "49.3.1";