@geosynk/vertigis-web-sdk 1.0.4 → 1.0.5

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/README.md CHANGED
@@ -185,17 +185,22 @@ Run the interactive configurator in your project:
185
185
  npm run auth:portal
186
186
  ```
187
187
  You will be prompted for:
188
- - **Portal URL**: Your Enterprise Portal instance (e.g., `https://gis.{org}.com/portal`).
189
- - **App ID (Client ID)**: The App ID obtained from Step 1.
190
- - **Account ID**: Organization identifier (e.g., `{org}` or `enterprise`).
191
- - **Web Map Item ID or URL**: The secured web map to load (e.g., `4f970e5d0a684b0f9f30cf00fa0119e6`).
188
+ - **Portal URL** `[Required]`: Your Enterprise Portal instance (e.g., `https://gis.{org}.com/portal`).
189
+ - **App ID (Client ID)** `[Required]`: The App ID obtained from Step 1.
190
+ - **Account ID** `[Optional]`: Organization identifier (e.g., `{org}` or `enterprise`).
191
+ - **Web Map Item ID or URL** `[Optional]`: If provided, automatically updates `webMap` in `app/app.json`. If omitted, your current `app.json` remains untouched.
192
192
 
193
193
  Or execute directly via non-interactive CLI flags:
194
194
  ```bash
195
+ # Minimal (configures Portal OAuth, leaves current app.json untouched):
196
+ npm run auth:portal -- \
197
+ --portal https://gis.{org}.com/portal \
198
+ --app-id myPortalAppId123
199
+
200
+ # Full (configures Portal OAuth AND updates app.json web map):
195
201
  npm run auth:portal -- \
196
202
  --portal https://gis.{org}.com/portal \
197
203
  --app-id myPortalAppId123 \
198
- --account-id {org} \
199
204
  --webmap 4f970e5d0a684b0f9f30cf00fa0119e6
200
205
  ```
201
206
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geosynk/vertigis-web-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Enterprise SDK for extending VertiGIS Studio Web",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,10 +25,10 @@ Usage:
25
25
  npm run auth:portal -- [options]
26
26
 
27
27
  Options:
28
- --portal <url> ArcGIS Enterprise Portal or AGOL URL (e.g. https://gis.company.com/portal)
29
- --app-id <id> Portal OAuth Application Client ID / App ID
30
- --account-id <id> Account ID / Org slug (default: derived from hostname or "enterprise")
31
- --webmap <id-or-url> Web Map Item ID or full Portal URL
28
+ --portal <url> [Required] ArcGIS Enterprise Portal or AGOL URL (e.g. https://gis.{org}.com/portal)
29
+ --app-id <id> [Required] Portal OAuth Application Client ID / App ID
30
+ --account-id <id> [Optional] Account ID / Org slug (default: derived from hostname or "enterprise")
31
+ --webmap <id-or-url> [Optional] Web Map Item ID or full URL to update in app.json
32
32
  --reset Revert back to public sample ArcGIS Online map and disable portal auth
33
33
  -h, --help Show this help message
34
34