@uipath/integrationservice-tool 0.1.12 → 0.9.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.
- package/README.md +64 -17
- package/dist/tool.js +84178 -10826
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -345,6 +345,69 @@ uip is connectors list -t staging-tenant
|
|
|
345
345
|
|
|
346
346
|
---
|
|
347
347
|
|
|
348
|
+
## Caching
|
|
349
|
+
|
|
350
|
+
The tool caches metadata locally to reduce API calls and improve response times. Cache files are stored at:
|
|
351
|
+
|
|
352
|
+
```
|
|
353
|
+
~/.uipath/cache/integrationservice/{tenantId}/
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Tenant Isolation
|
|
357
|
+
|
|
358
|
+
Cache is scoped by **tenant ID**, not tenant name. This means:
|
|
359
|
+
- Switching between tenants (`--tenant`) or accounts (`uip login`) always reads/writes a separate cache directory.
|
|
360
|
+
- No cross-tenant data leakage — tenant A's cached connectors are never served to tenant B.
|
|
361
|
+
|
|
362
|
+
When `--tenant <name>` points to a different tenant than the current login, the tool resolves the tenant name to its ID via the UiPath API (once per invocation, then memoized).
|
|
363
|
+
|
|
364
|
+
### TTL (Time-To-Live)
|
|
365
|
+
|
|
366
|
+
Each cache type has a default TTL. After expiry, the next read returns a cache miss and the data is re-fetched from the API.
|
|
367
|
+
|
|
368
|
+
| Cache type | TTL | File pattern |
|
|
369
|
+
|---|---|---|
|
|
370
|
+
| Connectors | 24 hours | `connectors.json` |
|
|
371
|
+
| Activities | 24 hours | `{connector}/activities.json` |
|
|
372
|
+
| Connections | 1 hour | `{connector}/connections.json` |
|
|
373
|
+
| Resources | 4 hours | `{connector}/{connection}/resources.json` |
|
|
374
|
+
| Schema | 4 hours | `{connector}/{connection}/{object}.schema.json` |
|
|
375
|
+
| Trigger objects | 4 hours | `{connector}/{connection}/triggers/{op}/objects.json` |
|
|
376
|
+
| Trigger metadata | 4 hours | `{connector}/{connection}/triggers/{op}/{object}.metadata.json` |
|
|
377
|
+
|
|
378
|
+
### Cache Format
|
|
379
|
+
|
|
380
|
+
Each cache file is wrapped in an envelope:
|
|
381
|
+
|
|
382
|
+
```json
|
|
383
|
+
{
|
|
384
|
+
"cachedAt": 1719000000000,
|
|
385
|
+
"data": [ ... ]
|
|
386
|
+
}
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
Old cache files (without the `cachedAt` envelope) are treated as expired and automatically re-fetched.
|
|
390
|
+
|
|
391
|
+
### Bypassing the Cache
|
|
392
|
+
|
|
393
|
+
Use `--refresh` on any command that supports it to force a fresh API call, ignoring cached data:
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
# Force re-fetch connectors
|
|
397
|
+
uip is connectors list --refresh
|
|
398
|
+
|
|
399
|
+
# Force re-fetch connections
|
|
400
|
+
uip is connections list uipath-salesforce-sfdc --refresh
|
|
401
|
+
|
|
402
|
+
# Force re-fetch resources
|
|
403
|
+
uip is resources list uipath-salesforce-sfdc --refresh
|
|
404
|
+
|
|
405
|
+
# Force re-fetch schema
|
|
406
|
+
uip is resources describe uipath-salesforce-sfdc Account --refresh
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
348
411
|
## Authentication
|
|
349
412
|
|
|
350
413
|
All commands require authentication via `uip login`:
|
|
@@ -415,21 +478,5 @@ The tool interacts with these Integration Service APIs:
|
|
|
415
478
|
|
|
416
479
|
---
|
|
417
480
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
### integrationservice-tool 0.0.1
|
|
421
|
-
|
|
422
|
-
**Features:**
|
|
423
|
-
- List and get connectors
|
|
424
|
-
- List connections (with folder filtering and status warnings)
|
|
425
|
-
- Create connections (OAuth flow with browser opening)
|
|
426
|
-
- Ping connections (verify connection is active)
|
|
427
|
-
- Edit/re-authenticate connections (OAuth re-auth flow)
|
|
428
|
-
- List and describe resources (filtered by operation, with metadata caching)
|
|
429
|
-
- List activities (non-trigger only)
|
|
430
|
-
- Execute CRUD operations on resources (create, list, get, update, replace, delete)
|
|
431
|
-
- File-based metadata caching for token optimization
|
|
432
|
-
- Multi-format output (table, json, yaml, plain)
|
|
433
|
-
- Multi-environment support
|
|
434
|
-
- Query parameters and request body support
|
|
481
|
+
See [RELEASE_NOTES.md](./RELEASE_NOTES.md) for version history.
|
|
435
482
|
|