@conterra/ct-mapapps-typings 4.18.2-next.20240529035716 → 4.18.2-next.20240604042106

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.
@@ -56,6 +56,7 @@ interface AGSStoreFactory {
56
56
  * layerId: "a-valid-layer-id"
57
57
  * // or url: "https://example.com/some/FeatureServer"
58
58
  * });
59
+ * await store.load(); // Need to load metadata before store can be used.
59
60
  * ```
60
61
  */
61
62
  createStore(options: AGSStoreFromLayerOptions | AGSStoreFromURLOptions): Promise<AGSStore>;
@@ -142,6 +143,14 @@ interface AGSStore extends AsyncStore {
142
143
  * The layer used by this store.
143
144
  */
144
145
  layer: Layer | Sublayer;
146
+ /**
147
+ * Manually loads required metadata from backend services if needed.
148
+ *
149
+ * Some methods (such as query) may not be available before metadata have been loaded.
150
+ *
151
+ * > Note: Metadata can also be loaded by calling {@link AsyncStore.getMetadata}.
152
+ */
153
+ load(): Promise<void>;
145
154
  }
146
155
 
147
156
  export type { AGSStore, AGSStoreCommonOptions, AGSStoreFactory, AGSStoreFromLayerOptions, AGSStoreFromURLOptions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conterra/ct-mapapps-typings",
3
- "version": "4.18.2-next.20240529035716",
3
+ "version": "4.18.2-next.20240604042106",
4
4
  "description": "TypeDefinitions for ct-mapapps",
5
5
  "author": "conterra",
6
6
  "license": "Apache-2.0"