basyx-typescript-sdk 0.1.11 → 0.2.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 +14 -1
- package/bundle/index.js +287 -235
- package/bundle/index.js.map +1 -1
- package/dist/clients/AasRepositoryClient.d.ts +198 -129
- package/dist/clients/AasRepositoryClient.js +245 -234
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/lib/base64Url.d.ts +32 -0
- package/dist/lib/base64Url.js +62 -0
- package/dist/models/AssetId.d.ts +11 -0
- package/dist/models/AssetId.js +1 -0
- package/dist/models/aas-repository.d.ts +58 -3
- package/dist/models/api.d.ts +12 -0
- package/dist/models/api.js +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -25,10 +25,23 @@ Utility functions for working with AAS data:
|
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
npm install basyx-typescript-sdk
|
|
28
|
+
# or
|
|
29
|
+
yarn add basyx-typescript-sdk
|
|
28
30
|
```
|
|
29
31
|
|
|
30
32
|
> See https://www.npmjs.com/package/basyx-typescript-sdk
|
|
31
33
|
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
> [!IMPORTANT]
|
|
37
|
+
> Make sure to install `@aas-core-works/aas-core3.0-typescript` in your project:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm install @aas-core-works/aas-core3.0-typescript
|
|
41
|
+
# or
|
|
42
|
+
yarn add @aas-core-works/aas-core3.0-typescript
|
|
43
|
+
```
|
|
44
|
+
|
|
32
45
|
## Usage
|
|
33
46
|
|
|
34
47
|
```typescript
|
|
@@ -39,7 +52,7 @@ async function getAllShells() {
|
|
|
39
52
|
const client = new AasRepositoryClient();
|
|
40
53
|
|
|
41
54
|
try {
|
|
42
|
-
const response = await client.getAllAssetAdministrationShells(baseURL);
|
|
55
|
+
const response = await client.getAllAssetAdministrationShells({ baseUrl: baseURL });
|
|
43
56
|
console.log('Asset Administration Shells fetched successfully:', response);
|
|
44
57
|
// You can now use the response as needed
|
|
45
58
|
} catch (error) {
|