Skip to content

Commit b740ca1

Browse files
authored
Updates to AAS Core Works 3.1 (#438)
* Updates to aas core 3.1 * Fixes problems caused by core works update * Bumps version to 2.0.0
1 parent 1815bb8 commit b740ca1

54 files changed

Lines changed: 194 additions & 165 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ yarn add basyx-typescript-sdk
4949
---
5050

5151
> [!IMPORTANT]
52-
> Make sure to also install `@aas-core-works/aas-core3.0-typescript` in your project:
52+
> Make sure to also install `@aas-core-works/aas-core3.1-typescript` in your project:
5353
5454
```bash
55-
npm install @aas-core-works/aas-core3.0-typescript
55+
npm install @aas-core-works/aas-core3.1-typescript
5656
# or
57-
yarn add @aas-core-works/aas-core3.0-typescript
57+
yarn add @aas-core-works/aas-core3.1-typescript
5858
```
5959

6060
## Import Styles
@@ -133,7 +133,7 @@ async function getAllShells() {
133133

134134
```typescript
135135
import { AasService, Configuration } from 'basyx-typescript-sdk';
136-
import { AssetAdministrationShell, AssetInformation, AssetKind } from '@aas-core-works/aas-core3.0-typescript/types';
136+
import { AssetAdministrationShell, AssetInformation, AssetKind } from '@aas-core-works/aas-core3.1-typescript/types';
137137

138138
// Initialize service with both registry and repository
139139
const service = new AasService({
@@ -245,7 +245,7 @@ if (withConceptDescriptions.success) {
245245
}
246246

247247
// Resolve a Reference to get endpoints for AAS, Submodel, or SubmodelElement
248-
import { Reference, Key, KeyTypes, ReferenceTypes } from '@aas-core-works/aas-core3.0-typescript/types';
248+
import { Reference, Key, KeyTypes, ReferenceTypes } from '@aas-core-works/aas-core3.1-typescript/types';
249249

250250
// Example 1: Reference to AAS and Submodel
251251
const reference1 = new Reference(
@@ -314,7 +314,7 @@ if (allWithCD.success) {
314314

315315
```typescript
316316
import { SubmodelService, Configuration } from 'basyx-typescript-sdk';
317-
import { Submodel, ModellingKind } from '@aas-core-works/aas-core3.0-typescript/types';
317+
import { Submodel, ModellingKind } from '@aas-core-works/aas-core3.1-typescript/types';
318318

319319
// Initialize service with both registry and repository
320320
const service = new SubmodelService({
@@ -429,7 +429,7 @@ const byEndpointWithCD = await serviceWithCD.getSubmodelByEndpoint({
429429

430430
```typescript
431431
import { getSubmodelElementByIdShort, extractEndpointHref, base64Encode } from 'basyx-typescript-sdk';
432-
import { Submodel } from '@aas-core-works/aas-core3.0-typescript/types';
432+
import { Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
433433

434434
// Get a submodel element by its idShort
435435
const element = getSubmodelElementByIdShort(submodel, 'MyProperty');
@@ -447,7 +447,7 @@ const encoded = base64Encode('https://example.com/ids/aas/my-aas');
447447
```typescript
448448
import { serializeXml, deserializeXml } from 'basyx-typescript-sdk';
449449
import { BaSyxEnvironment } from 'basyx-typescript-sdk';
450-
import { AssetAdministrationShell, AssetInformation, AssetKind, Submodel, ModellingKind } from '@aas-core-works/aas-core3.0-typescript/types';
450+
import { AssetAdministrationShell, AssetInformation, AssetKind, Submodel, ModellingKind } from '@aas-core-works/aas-core3.1-typescript/types';
451451

452452
// Create an environment with AAS and Submodels
453453
const environment = new BaSyxEnvironment(

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "basyx-typescript-sdk",
3-
"version": "1.1.2",
3+
"version": "2.0.0",
44
"description": "BaSyx TypeScript SDK for developing applications and components for the Asset Administration Shell (AAS)",
55
"main": "bundle/index.cjs",
66
"module": "bundle/index.mjs",
@@ -37,10 +37,10 @@
3737
"gen-aasxfileserver": "openapi-generator-cli generate -i openapi/aasxfileserver.yaml -g typescript-fetch -o src/generated/AasxFileService --additional-properties=withoutRuntimeChecks=true"
3838
},
3939
"peerDependencies": {
40-
"@aas-core-works/aas-core3.0-typescript": "^1.0.3"
40+
"@aas-core-works/aas-core3.1-typescript": "^1.0.0"
4141
},
4242
"devDependencies": {
43-
"@aas-core-works/aas-core3.0-typescript": "^1.0.3",
43+
"@aas-core-works/aas-core3.1-typescript": "^1.0.0",
4444
"@openapitools/openapi-generator-cli": "^2.18.4",
4545
"@rollup/plugin-node-resolve": "^16.0.0",
4646
"@types/jest": "^30.0.0",

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default [
1616
}),
1717
resolve(),
1818
],
19-
external: ['@aas-core-works/aas-core3.0-typescript', '@hey-api/client-fetch'],
19+
external: ['@aas-core-works/aas-core3.1-typescript', '@hey-api/client-fetch'],
2020
},
2121
// ES Module build
2222
{
@@ -32,6 +32,6 @@ export default [
3232
}),
3333
resolve(),
3434
],
35-
external: ['@aas-core-works/aas-core3.0-typescript', '@hey-api/client-fetch'],
35+
external: ['@aas-core-works/aas-core3.1-typescript', '@hey-api/client-fetch'],
3636
},
3737
];

src/clients/AasDiscoveryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { SpecificAssetId } from '@aas-core-works/aas-core3.0-typescript/types';
1+
import type { SpecificAssetId } from '@aas-core-works/aas-core3.1-typescript/types';
22
import type { ApiResult } from '../models/api';
33
import type { AssetId } from '../models/AssetId';
44
import { AasDiscoveryService } from '../generated';

src/clients/AasRegistryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//import type { AssetKind } from '@aas-core-works/aas-core3.0-typescript/types';
1+
//import type { AssetKind } from '@aas-core-works/aas-core3.1-typescript/types';
22
import type { ApiResult } from '../models/api';
33
import { AasRegistryService } from '../generated';
44
import { Configuration } from '../generated/runtime';

src/clients/AasRepositoryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
ISubmodelElement,
55
Reference,
66
Submodel,
7-
} from '@aas-core-works/aas-core3.0-typescript/types';
7+
} from '@aas-core-works/aas-core3.1-typescript/types';
88
import type { ApiResult } from '../models/api';
99
import type { AssetId } from '../models/AssetId';
1010
import { AasRepositoryService } from '../generated';

src/clients/ConceptDescriptionRepositoryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ConceptDescription } from '@aas-core-works/aas-core3.0-typescript/types';
1+
import type { ConceptDescription } from '@aas-core-works/aas-core3.1-typescript/types';
22
import type { ApiResult } from '../models/api';
33
import { ConceptDescriptionRepositoryService } from '../generated'; // Updated import
44
import { Configuration } from '../generated/runtime';

src/clients/SubmodelRepositoryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.0-typescript/types';
1+
import type { ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
22
import type { ApiResult } from '../models/api';
33
import { SubmodelRepositoryService } from '../generated'; // Updated import
44
import { Configuration } from '../generated/runtime';

src/integration-tests/aasService.integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
Reference,
55
ReferenceTypes,
66
SpecificAssetId,
7-
} from '@aas-core-works/aas-core3.0-typescript/types';
7+
} from '@aas-core-works/aas-core3.1-typescript/types';
88
import { AasDiscoveryClient } from '../clients/AasDiscoveryClient';
99
import { Configuration } from '../generated';
1010
import { base64Encode } from '../lib/base64Url';

src/integration-tests/fixtures/aasDiscoveryFixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
AssetInformation,
44
AssetKind,
55
SpecificAssetId,
6-
} from '@aas-core-works/aas-core3.0-typescript/types';
6+
} from '@aas-core-works/aas-core3.1-typescript/types';
77

88
export function createTestSpecificAssetId1(): SpecificAssetId {
99
const demoId = new SpecificAssetId('globalAssetId', 'https://example.com/ids/asset/7600_5912_3951_6917');

0 commit comments

Comments
 (0)