basyx-typescript-sdk 1.1.1 → 2.0.0
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 +8 -8
- package/bundle/index.cjs +64 -51
- package/bundle/index.cjs.map +1 -1
- package/bundle/index.mjs +40 -27
- package/bundle/index.mjs.map +1 -1
- package/dist/clients/AasDiscoveryClient.d.ts +1 -1
- package/dist/clients/AasRepositoryClient.d.ts +1 -1
- package/dist/clients/ConceptDescriptionRepositoryClient.d.ts +1 -1
- package/dist/clients/SubmodelRepositoryClient.d.ts +1 -1
- package/dist/lib/aas-dataformat-xml/xmlization.js +12 -12
- package/dist/lib/convertAasDiscoveryTypes.d.ts +1 -1
- package/dist/lib/convertAasDiscoveryTypes.js +2 -2
- package/dist/lib/convertAasTypes.d.ts +1 -1
- package/dist/lib/convertAasTypes.js +2 -2
- package/dist/lib/convertConceptDescriptionTypes.d.ts +1 -1
- package/dist/lib/convertConceptDescriptionTypes.js +2 -2
- package/dist/lib/convertSubmodelTypes.d.ts +1 -1
- package/dist/lib/convertSubmodelTypes.js +2 -2
- package/dist/lib/descriptorJsonization.d.ts +2 -2
- package/dist/lib/descriptorJsonization.js +3 -3
- package/dist/models/BaSyxEnvironment.d.ts +1 -1
- package/dist/models/BaSyxEnvironment.js +1 -1
- package/dist/models/Descriptors.d.ts +1 -1
- package/dist/services/AasService.d.ts +1 -1
- package/dist/services/AasService.js +1 -1
- package/dist/services/SubmodelService.d.ts +1 -1
- package/dist/services/SubmodelService.js +1 -1
- package/dist/utils/KeyTypesUtil.d.ts +1 -1
- package/dist/utils/KeyTypesUtil.js +1 -1
- package/dist/utils/MultiLanguagePropertyUtils.d.ts +1 -1
- package/dist/utils/MultiLanguagePropertyUtils.js +1 -1
- package/dist/utils/ReferableUtils.d.ts +1 -1
- package/dist/utils/ReferableUtils.js +1 -1
- package/dist/utils/ReferenceUtil.d.ts +1 -1
- package/dist/utils/SemanticIdUtils.d.ts +1 -1
- package/dist/utils/SemanticIdUtils.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SpecificAssetId } from '@aas-core-works/aas-core3.
|
|
1
|
+
import type { SpecificAssetId } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import type { ApiResult } from '../models/api';
|
|
3
3
|
import type { AssetId } from '../models/AssetId';
|
|
4
4
|
import { AasDiscoveryService } from '../generated';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AssetAdministrationShell, AssetInformation, ISubmodelElement, Reference, Submodel } from '@aas-core-works/aas-core3.
|
|
1
|
+
import type { AssetAdministrationShell, AssetInformation, ISubmodelElement, Reference, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import type { ApiResult } from '../models/api';
|
|
3
3
|
import type { AssetId } from '../models/AssetId';
|
|
4
4
|
import { AasRepositoryService } from '../generated';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConceptDescription } from '@aas-core-works/aas-core3.
|
|
1
|
+
import type { ConceptDescription } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import type { ApiResult } from '../models/api';
|
|
3
3
|
import { ConceptDescriptionRepositoryService } from '../generated';
|
|
4
4
|
import { Configuration } from '../generated/runtime';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.
|
|
1
|
+
import type { ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import type { ApiResult } from '../models/api';
|
|
3
3
|
import { SubmodelRepositoryService } from '../generated';
|
|
4
4
|
import { Configuration } from '../generated/runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonization } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { AdministrativeInformation, AnnotatedRelationshipElement, AssetAdministrationShell, AssetInformation, AssetKind, BasicEventElement, Blob, Capability, ConceptDescription, DataSpecificationIec61360, DataTypeDefXsd, EmbeddedDataSpecification, Entity, Extension, File, Key, KeyTypes, LangStringDefinitionTypeIec61360, LangStringNameType, LangStringPreferredNameTypeIec61360, LangStringShortNameTypeIec61360, LangStringTextType, LevelType, MultiLanguageProperty, Operation, OperationVariable, Property, Qualifier, Range, Reference, ReferenceElement, ReferenceTypes, RelationshipElement, Resource, SpecificAssetId, Submodel, SubmodelElementCollection, SubmodelElementList, ValueList, ValueReferencePair, } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { jsonization } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { AdministrativeInformation, AnnotatedRelationshipElement, AssetAdministrationShell, AssetInformation, AssetKind, BasicEventElement, Blob, Capability, ConceptDescription, DataSpecificationIec61360, DataTypeDefXsd, EmbeddedDataSpecification, Entity, Extension, File, Key, KeyTypes, LangStringDefinitionTypeIec61360, LangStringNameType, LangStringPreferredNameTypeIec61360, LangStringShortNameTypeIec61360, LangStringTextType, LevelType, MultiLanguageProperty, Operation, OperationVariable, Property, Qualifier, Range, Reference, ReferenceElement, ReferenceTypes, RelationshipElement, Resource, SpecificAssetId, Submodel, SubmodelElementCollection, SubmodelElementList, ValueList, ValueReferencePair, } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
3
3
|
import { XMLBuilder, XMLParser } from 'fast-xml-parser';
|
|
4
4
|
import { BaSyxEnvironment } from '../../models/BaSyxEnvironment';
|
|
5
5
|
export function serializeXml(data, namespacePrefix = 'aas') {
|
|
@@ -1182,7 +1182,7 @@ function parseReferenceElement(data) {
|
|
|
1182
1182
|
: undefined, data.value ? parseReference(data.value) : undefined);
|
|
1183
1183
|
}
|
|
1184
1184
|
function parseBlob(data) {
|
|
1185
|
-
return new Blob(data.
|
|
1185
|
+
return new Blob(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : undefined, data.category || undefined, data.idShort || undefined, data.displayName?.langStringNameType
|
|
1186
1186
|
? data.displayName.langStringNameType.map(parseLangStringNameType)
|
|
1187
1187
|
: undefined, data.description?.langStringTextType
|
|
1188
1188
|
? data.description.langStringTextType.map(parseLangStringTextType)
|
|
@@ -1190,10 +1190,10 @@ function parseBlob(data) {
|
|
|
1190
1190
|
? data.supplementalSemanticIds.reference.map(parseReference)
|
|
1191
1191
|
: undefined, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : undefined, data.embeddedDataSpecifications?.embeddedDataSpecification
|
|
1192
1192
|
? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification)
|
|
1193
|
-
: undefined, data.value || undefined);
|
|
1193
|
+
: undefined, data.value || undefined, data.contentType);
|
|
1194
1194
|
}
|
|
1195
1195
|
function parseFile(data) {
|
|
1196
|
-
return new File(data.
|
|
1196
|
+
return new File(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : undefined, data.category || undefined, data.idShort || undefined, data.displayName?.langStringNameType
|
|
1197
1197
|
? data.displayName.langStringNameType.map(parseLangStringNameType)
|
|
1198
1198
|
: undefined, data.description?.langStringTextType
|
|
1199
1199
|
? data.description.langStringTextType.map(parseLangStringTextType)
|
|
@@ -1201,13 +1201,13 @@ function parseFile(data) {
|
|
|
1201
1201
|
? data.supplementalSemanticIds.reference.map(parseReference)
|
|
1202
1202
|
: undefined, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : undefined, data.embeddedDataSpecifications?.embeddedDataSpecification
|
|
1203
1203
|
? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification)
|
|
1204
|
-
: undefined, data.value || undefined);
|
|
1204
|
+
: undefined, data.value || undefined, data.contentType);
|
|
1205
1205
|
}
|
|
1206
1206
|
function parseEntity(data) {
|
|
1207
1207
|
const entityType = data.entityType
|
|
1208
1208
|
? (jsonization.entityTypeFromJsonable(data.entityType).value ?? data.entityType)
|
|
1209
1209
|
: undefined;
|
|
1210
|
-
return new Entity(
|
|
1210
|
+
return new Entity(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : undefined, data.category || undefined, data.idShort || undefined, data.displayName?.langStringNameType
|
|
1211
1211
|
? data.displayName.langStringNameType.map(parseLangStringNameType)
|
|
1212
1212
|
: undefined, data.description?.langStringTextType
|
|
1213
1213
|
? data.description.langStringTextType.map(parseLangStringTextType)
|
|
@@ -1215,12 +1215,12 @@ function parseEntity(data) {
|
|
|
1215
1215
|
? data.supplementalSemanticIds.reference.map(parseReference)
|
|
1216
1216
|
: undefined, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : undefined, data.embeddedDataSpecifications?.embeddedDataSpecification
|
|
1217
1217
|
? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification)
|
|
1218
|
-
: undefined, data.statements ? parseSubmodelElements(data.statements) : undefined, data.globalAssetId || undefined, data.specificAssetIds?.specificAssetId
|
|
1218
|
+
: undefined, data.statements ? parseSubmodelElements(data.statements) : undefined, entityType, data.globalAssetId || undefined, data.specificAssetIds?.specificAssetId
|
|
1219
1219
|
? data.specificAssetIds.specificAssetId.map(parseSpecificAssetId)
|
|
1220
1220
|
: undefined);
|
|
1221
1221
|
}
|
|
1222
1222
|
function parseRelationshipElement(data) {
|
|
1223
|
-
return new RelationshipElement(
|
|
1223
|
+
return new RelationshipElement(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : undefined, data.category || undefined, data.idShort || undefined, data.displayName?.langStringNameType
|
|
1224
1224
|
? data.displayName.langStringNameType.map(parseLangStringNameType)
|
|
1225
1225
|
: undefined, data.description?.langStringTextType
|
|
1226
1226
|
? data.description.langStringTextType.map(parseLangStringTextType)
|
|
@@ -1228,10 +1228,10 @@ function parseRelationshipElement(data) {
|
|
|
1228
1228
|
? data.supplementalSemanticIds.reference.map(parseReference)
|
|
1229
1229
|
: undefined, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : undefined, data.embeddedDataSpecifications?.embeddedDataSpecification
|
|
1230
1230
|
? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification)
|
|
1231
|
-
: undefined);
|
|
1231
|
+
: undefined, parseReference(data.first), parseReference(data.second));
|
|
1232
1232
|
}
|
|
1233
1233
|
function parseAnnotatedRelationshipElement(data) {
|
|
1234
|
-
return new AnnotatedRelationshipElement(
|
|
1234
|
+
return new AnnotatedRelationshipElement(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : undefined, data.category || undefined, data.idShort || undefined, data.displayName?.langStringNameType
|
|
1235
1235
|
? data.displayName.langStringNameType.map(parseLangStringNameType)
|
|
1236
1236
|
: undefined, data.description?.langStringTextType
|
|
1237
1237
|
? data.description.langStringTextType.map(parseLangStringTextType)
|
|
@@ -1239,7 +1239,7 @@ function parseAnnotatedRelationshipElement(data) {
|
|
|
1239
1239
|
? data.supplementalSemanticIds.reference.map(parseReference)
|
|
1240
1240
|
: undefined, data.qualifiers?.qualifier ? data.qualifiers.qualifier.map(parseQualifier) : undefined, data.embeddedDataSpecifications?.embeddedDataSpecification
|
|
1241
1241
|
? data.embeddedDataSpecifications.embeddedDataSpecification.map(parseEmbeddedDataSpecification)
|
|
1242
|
-
: undefined, data.annotations ? parseSubmodelElements(data.annotations) : undefined);
|
|
1242
|
+
: undefined, parseReference(data.first), parseReference(data.second), data.annotations ? parseSubmodelElements(data.annotations) : undefined);
|
|
1243
1243
|
}
|
|
1244
1244
|
function parseSubmodelElementCollection(data) {
|
|
1245
1245
|
return new SubmodelElementCollection(data.extensions?.extension ? data.extensions.extension.map(parseExtension) : undefined, data.category || undefined, data.idShort || undefined, data.displayName?.langStringNameType
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SpecificAssetId as CoreSpecificAssetId } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { SpecificAssetId as CoreSpecificAssetId } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import { AasDiscoveryService } from '../generated';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API SpecificAssetId to a Core Works SpecificAssetId
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonization } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { SpecificAssetId as CoreSpecificAssetId } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { jsonization } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { SpecificAssetId as CoreSpecificAssetId } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API SpecificAssetId to a Core Works SpecificAssetId
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssetAdministrationShell as CoreAssetAdministrationShell, AssetInformation as CoreAssetInformation, Reference as CoreReference } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { AssetAdministrationShell as CoreAssetAdministrationShell, AssetInformation as CoreAssetInformation, Reference as CoreReference } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import { AasRepositoryService } from '../generated';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API AssetAdministrationShell to a Core Works AssetAdministrationShell
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonization } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { AssetAdministrationShell as CoreAssetAdministrationShell, AssetInformation as CoreAssetInformation, Reference as CoreReference, } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { jsonization } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { AssetAdministrationShell as CoreAssetAdministrationShell, AssetInformation as CoreAssetInformation, Reference as CoreReference, } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
3
3
|
// import {
|
|
4
4
|
// AssetAdministrationShell as ApiAssetAdministrationShell,
|
|
5
5
|
// AssetInformation as ApiAssetInformation,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConceptDescription as CoreConceptDescription } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { ConceptDescription as CoreConceptDescription } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import { ConceptDescriptionRepositoryService } from '../generated';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API ConceptDescription to a Core Works ConceptDescription
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonization } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { ConceptDescription as CoreConceptDescription } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { jsonization } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { ConceptDescription as CoreConceptDescription } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API ConceptDescription to a Core Works ConceptDescription
|
|
5
5
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISubmodelElement as CoreSubmodelElement, Submodel as CoreSubmodel } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { ISubmodelElement as CoreSubmodelElement, Submodel as CoreSubmodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import { SubmodelRepositoryService } from '../generated';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API Submodel to a Core Works Submodel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsonization } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { Submodel as CoreSubmodel, } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { jsonization } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { Submodel as CoreSubmodel, } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
3
3
|
/**
|
|
4
4
|
* Convert an API Submodel to a Core Works Submodel
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { common } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { DeserializationError, JsonValue } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { common } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { DeserializationError, JsonValue } from '@aas-core-works/aas-core3.1-typescript/jsonization';
|
|
3
3
|
import { AssetAdministrationShellDescriptor, Endpoint, ProtocolInformation, ProtocolInformationSecurityAttributes, SubmodelDescriptor } from '../models/Descriptors';
|
|
4
4
|
export declare function assetAdministrationShellDescriptorFromJsonable(json: JsonValue): common.Either<AssetAdministrationShellDescriptor, DeserializationError>;
|
|
5
5
|
export declare function submodelDescriptorFromJsonable(json: JsonValue): common.Either<SubmodelDescriptor, DeserializationError>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { common } from '@aas-core-works/aas-core3.
|
|
2
|
-
import { administrativeInformationFromJsonable, assetKindFromJsonable, DeserializationError, extensionFromJsonable, langStringNameTypeFromJsonable, langStringTextTypeFromJsonable, referenceFromJsonable, specificAssetIdFromJsonable, toJsonable, } from '@aas-core-works/aas-core3.
|
|
3
|
-
import { AssetKind } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { common } from '@aas-core-works/aas-core3.1-typescript';
|
|
2
|
+
import { administrativeInformationFromJsonable, assetKindFromJsonable, DeserializationError, extensionFromJsonable, langStringNameTypeFromJsonable, langStringTextTypeFromJsonable, referenceFromJsonable, specificAssetIdFromJsonable, toJsonable, } from '@aas-core-works/aas-core3.1-typescript/jsonization';
|
|
3
|
+
import { AssetKind } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
4
4
|
//import { AasRegistryService } from '../generated';
|
|
5
5
|
import { AssetAdministrationShellDescriptor, SubmodelDescriptor, } from '../models/Descriptors';
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AdministrativeInformation, AssetKind, Extension, LangStringNameType, LangStringTextType, Reference, SpecificAssetId } from '@aas-core-works/aas-core3.
|
|
1
|
+
import type { AdministrativeInformation, AssetKind, Extension, LangStringNameType, LangStringTextType, Reference, SpecificAssetId } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
export declare class AssetAdministrationShellDescriptor {
|
|
3
3
|
id: string;
|
|
4
4
|
displayName: Array<LangStringNameType> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApiResult } from '../models/api';
|
|
2
|
-
import { AssetAdministrationShell, Reference, Submodel } from '@aas-core-works/aas-core3.
|
|
2
|
+
import { AssetAdministrationShell, Reference, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
3
3
|
import { Configuration } from '../generated';
|
|
4
4
|
import { AssetId } from '../models/AssetId';
|
|
5
5
|
import { AssetAdministrationShellDescriptor } from '../models/Descriptors';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyTypes, ReferenceTypes, } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { KeyTypes, ReferenceTypes, } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import { AasDiscoveryClient } from '../clients/AasDiscoveryClient';
|
|
3
3
|
import { AasRegistryClient } from '../clients/AasRegistryClient';
|
|
4
4
|
import { AasRepositoryClient } from '../clients/AasRepositoryClient';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConceptDescription, Submodel } from '@aas-core-works/aas-core3.
|
|
1
|
+
import type { ConceptDescription, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import type { ApiResult } from '../models/api';
|
|
3
3
|
import { Configuration } from '../generated/runtime';
|
|
4
4
|
import { SubmodelDescriptor } from '../models/Descriptors';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModelType } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { ModelType } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
import { ConceptDescriptionRepositoryClient } from '../clients/ConceptDescriptionRepositoryClient';
|
|
3
3
|
import { SubmodelRegistryClient } from '../clients/SubmodelRegistryClient';
|
|
4
4
|
import { SubmodelRepositoryClient } from '../clients/SubmodelRepositoryClient';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyTypes } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { KeyTypes } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
/**
|
|
3
3
|
* @constant {Array<Object>} keyTypes
|
|
4
4
|
* @description Enumeration of Key Types as specified in IDTA 01001-3-0-1, page 82.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KeyTypes } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { KeyTypes } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
/**
|
|
3
3
|
* @constant {Array<Object>} keyTypes
|
|
4
4
|
* @description Enumeration of Key Types as specified in IDTA 01001-3-0-1, page 82.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IReferable, ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { IReferable, ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
/**
|
|
3
3
|
* Extracts the display name from a Referable object based on the specified language.
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModelType, } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { ModelType, } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
//export function useReferableUtils() {
|
|
3
3
|
//const { uuidV4Regex } = useIDUtils();
|
|
4
4
|
const uuidV4Regex = /^[a-f\d]{8}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{4}-[a-f\d]{12}$/;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { ISubmodelElement, Submodel } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the `semanticId` of a SubmodelElement (SME) matches the given `semanticId`.
|
|
4
4
|
* The function verifies that the `semanticId` is non-empty and that the SubmodelElement
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModelType, } from '@aas-core-works/aas-core3.
|
|
1
|
+
import { ModelType, } from '@aas-core-works/aas-core3.1-typescript/types';
|
|
2
2
|
const versionRevisionRegex = /\/(\d{1,})\/(\d{1,})(\/|$)/; // This regex matches the version/revision string of a semanticId ".../version/revision"
|
|
3
3
|
/**
|
|
4
4
|
* Checks if the `semanticId` of a SubmodelElement (SME) matches the given `semanticId`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basyx-typescript-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "BaSyx TypeScript SDK for developing applications and components for the Asset Administration Shell (AAS)",
|
|
5
5
|
"main": "bundle/index.cjs",
|
|
6
6
|
"module": "bundle/index.mjs",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"gen-aasxfileserver": "openapi-generator-cli generate -i openapi/aasxfileserver.yaml -g typescript-fetch -o src/generated/AasxFileService --additional-properties=withoutRuntimeChecks=true"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@aas-core-works/aas-core3.
|
|
40
|
+
"@aas-core-works/aas-core3.1-typescript": "^1.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@aas-core-works/aas-core3.
|
|
43
|
+
"@aas-core-works/aas-core3.1-typescript": "^1.0.0",
|
|
44
44
|
"@openapitools/openapi-generator-cli": "^2.18.4",
|
|
45
45
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
46
46
|
"@types/jest": "^30.0.0",
|