basyx-typescript-sdk 1.0.0 → 1.0.2

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
@@ -60,8 +60,13 @@ async function getAllShells() {
60
60
 
61
61
  try {
62
62
  const response = await client.getAllAssetAdministrationShells({ configuration });
63
- console.log('Asset Administration Shells fetched successfully:', response);
64
- // You can now use the response as needed
63
+
64
+ if (response.success) {
65
+ console.log('Asset Administration Shells fetched successfully:', response.data);
66
+ // You can now use the response data as needed
67
+ } else {
68
+ console.error('Failed to fetch Asset Administration Shells:', response.error);
69
+ }
65
70
  } catch (error) {
66
71
  console.error('Error fetching Asset Administration Shells:', error);
67
72
  }