@managespace/sdk 0.1.158-extensions-v2 → 0.1.158-extensions-v3

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -383,14 +383,14 @@ const customer = await response.json();
383
383
  #### List Assets
384
384
 
385
385
  ```typescript
386
- const response = await apiFetch('/api/assets');
386
+ const response = await apiFetch(`/api/org/sites/${siteId}/assets`);
387
387
  // Response: { results: Asset[], total: number }
388
388
  ```
389
389
 
390
390
  #### Get Asset by ID
391
391
 
392
392
  ```typescript
393
- const response = await apiFetch(`/api/assets/${assetId}`);
393
+ const response = await apiFetch(`/api/org/sites/${siteId}/assets/${assetId}`);
394
394
  const asset = await response.json();
395
395
  ```
396
396
 
@@ -415,7 +415,7 @@ interface Asset {
415
415
  #### List Subscriptions
416
416
 
417
417
  ```typescript
418
- const response = await apiFetch('/api/subscriptions/queries', {
418
+ const response = await apiFetch('/api/billing/subscriptions/queries', {
419
419
  method: 'POST',
420
420
  body: JSON.stringify({
421
421
  pageOptions: { offset: 0, limit: 20 },
@@ -444,7 +444,7 @@ interface Subscription {
444
444
  #### List Sites
445
445
 
446
446
  ```typescript
447
- const response = await apiFetch('/api/sites');
447
+ const response = await apiFetch('/api/org/sites');
448
448
  // Response: { results: Site[], total: number }
449
449
  ```
450
450
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.1.158-extensions-v2",
3
+ "version": "0.1.158-extensions-v3",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",