@geosynk/vertigis-web-sdk 1.0.3 → 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
@@ -177,7 +177,7 @@ This SDK includes an automated configuration wizard that sets up seamless OAuth
177
177
  3. Under **Redirect URIs**, add the following development endpoints:
178
178
  - `https://localtest.me:3001`
179
179
  - `https://localtest.me:3001/oauth_callback.html`
180
- 4. Copy the generated **App ID / Client ID** (e.g., `wXfL4Me24ZkSoALH`).
180
+ 4. Copy the generated **App ID / Client ID** (e.g., `myPortalAppId123`).
181
181
 
182
182
  #### Step 2: Run the Automated Portal Configurator
183
183
  Run the interactive configurator in your project:
@@ -185,18 +185,23 @@ 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-prod.cimic.com.au/Portal`).
189
- - **App ID (Client ID)**: The App ID obtained from Step 1.
190
- - **Account ID**: Organization identifier (e.g., `cimic` or `enterprise`).
191
- - **Web Map Item ID or URL**: The secured web map to load (e.g., `d7d5b2a4502b49d0934a1fb5bddd9a97`).
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):
195
196
  npm run auth:portal -- \
196
- --portal https://gis-prod.cimic.com.au/Portal \
197
- --app-id wXfL4Me24ZkSoALH \
198
- --account-id cimic \
199
- --webmap d7d5b2a4502b49d0934a1fb5bddd9a97
197
+ --portal https://gis.{org}.com/portal \
198
+ --app-id myPortalAppId123
199
+
200
+ # Full (configures Portal OAuth AND updates app.json web map):
201
+ npm run auth:portal -- \
202
+ --portal https://gis.{org}.com/portal \
203
+ --app-id myPortalAppId123 \
204
+ --webmap 4f970e5d0a684b0f9f30cf00fa0119e6
200
205
  ```
201
206
 
202
207
  #### Step 3: Start Development Server
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geosynk/vertigis-web-sdk",
3
- "version": "1.0.3",
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
 
@@ -37,7 +37,7 @@ Examples:
37
37
  npm run auth:portal
38
38
 
39
39
  Direct CLI Mode:
40
- npm run auth:portal -- --portal https://gis.example.com/portal --app-id MyClientId123 --webmap d7d5b2a4502b49d0934a1fb5bddd9a97
40
+ npm run auth:portal -- --portal https://gis.example.com/portal --app-id MyClientId123 --webmap 4f970e5d0a684b0f9f30cf00fa0119e6
41
41
 
42
42
  Reset to Defaults:
43
43
  npm run auth:portal -- --reset
@@ -133,7 +133,7 @@ async function main() {
133
133
  portalUrl = portalUrl || await prompt(
134
134
  rl,
135
135
  "ArcGIS Enterprise Portal or AGOL URL",
136
- existingConfig.portal || "https://gis-prod.cimic.com.au/Portal"
136
+ existingConfig.portal || "https://gis.{org}.com/portal"
137
137
  );
138
138
 
139
139
  appId = appId || await prompt(