@twin.org/standards-dataspace-protocol 0.0.3-next.13 → 0.0.3-next.15
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/dist/es/dataTypes/catalogDataTypes.js +6 -6
- package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
- package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -1
- package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -1
- package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -1
- package/dist/es/utils/dataspaceProtocolHelper.js +5 -3
- package/dist/es/utils/dataspaceProtocolHelper.js.map +1 -1
- package/dist/types/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.d.ts +10 -10
- package/dist/types/models/transferProcess/dataspaceProtocolTransferProcessTypes.d.ts +9 -9
- package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts +5 -5
- package/docs/changelog.md +35 -0
- package/docs/reference/interfaces/IDataspaceProtocolContractAgreementMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractAgreementVerificationMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiation.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationError.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationEventMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractNegotiationTerminationMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractOfferMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolContractRequestMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolDataAddress.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolEndpointProperty.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolTransferCompletionMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolTransferError.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolTransferProcess.md +2 -2
- package/docs/reference/interfaces/IDataspaceProtocolTransferRequestMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolTransferStartMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolTransferSuspensionMessage.md +1 -1
- package/docs/reference/interfaces/IDataspaceProtocolTransferTerminationMessage.md +1 -1
- package/docs/reference/variables/DataspaceProtocolContractNegotiationTypes.md +10 -10
- package/docs/reference/variables/DataspaceProtocolTransferProcessStateType.md +5 -5
- package/docs/reference/variables/DataspaceProtocolTransferProcessTypes.md +9 -9
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2025 IOTA Stiftung.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0.
|
|
3
3
|
import { DataTypeHelper } from "@twin.org/data-core";
|
|
4
|
-
import {
|
|
4
|
+
import { DcatContexts } from "@twin.org/standards-w3c-dcat";
|
|
5
5
|
import { DataspaceProtocolCatalogTypes } from "../models/catalog/dataspaceProtocolCatalogTypes.js";
|
|
6
6
|
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
7
7
|
import DsProtocolCatalogSchema from "../schemas/DataspaceProtocolCatalog.json" with { type: "json" };
|
|
@@ -34,11 +34,11 @@ export class CatalogDataTypes {
|
|
|
34
34
|
}
|
|
35
35
|
];
|
|
36
36
|
DataTypeHelper.registerTypes(DataspaceProtocolContexts.Namespace, DataspaceProtocolContexts.JsonLdContext, types);
|
|
37
|
-
//
|
|
38
|
-
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace,
|
|
39
|
-
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace,
|
|
40
|
-
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace,
|
|
41
|
-
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace,
|
|
37
|
+
// These are the custom version of the DCAT3 classes with DS Protocol constraints
|
|
38
|
+
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Dataset, DcatContexts.JsonLdContext, DsProtocolDatasetSchema);
|
|
39
|
+
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Catalog, DcatContexts.JsonLdContext, DsProtocolCatalogSchema);
|
|
40
|
+
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.Distribution, DcatContexts.JsonLdContext, DsProtocolDistributionSchema);
|
|
41
|
+
DataTypeHelper.registerType(DataspaceProtocolContexts.Namespace, DataspaceProtocolCatalogTypes.DataService, DcatContexts.JsonLdContext, DsProtocolDataServiceSchema);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=catalogDataTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,uBAAuB,MAAM,0CAA0C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,kBAAkB,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACrG,OAAO,2BAA2B,MAAM,wDAAwD,CAAC,OAAO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AyB,CAAC,SAAS,EACnC,6BAA6B,CAAC,WAAW,EACzC,YAAY,CAAC,aAAa,EAC1B,2BAA2B,CAC3B,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolCatalogTypes } from \"../models/catalog/dataspaceProtocolCatalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport DsProtocolCatalogSchema from \"../schemas/DataspaceProtocolCatalog.json\" with { type: \"json\" };\nimport CatalogErrorSchema from \"../schemas/DataspaceProtocolCatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessageSchema from \"../schemas/DataspaceProtocolCatalogRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDatasetSchema from \"../schemas/DataspaceProtocolDataset.json\" with { type: \"json\" };\nimport DatasetRequestMessageSchema from \"../schemas/DataspaceProtocolDatasetRequestMessage.json\" with { type: \"json\" };\nimport DsProtocolDataServiceSchema from \"../schemas-src/DataspaceProtocolDataService.json\" with { type: \"json\" };\nimport DsProtocolDistributionSchema from \"../schemas-src/DataspaceProtocolDistribution.json\" with { type: \"json\" };\n\n/**\n * Handle all the catalog data types for Dataspace Protocol.\n */\nexport class CatalogDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogRequestMessage,\n\t\t\t\tschema: CatalogRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.DatasetRequestMessage,\n\t\t\t\tschema: DatasetRequestMessageSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogError,\n\t\t\t\tschema: CatalogErrorSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolContexts.JsonLdContext,\n\t\t\ttypes\n\t\t);\n\n\t\t// These are the custom version of the DCAT3 classes with DS Protocol constraints\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Dataset,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDatasetSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Catalog,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolCatalogSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.Distribution,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDistributionSchema\n\t\t);\n\n\t\tDataTypeHelper.registerType(\n\t\t\tDataspaceProtocolContexts.Namespace,\n\t\t\tDataspaceProtocolCatalogTypes.DataService,\n\t\t\tDcatContexts.JsonLdContext,\n\t\t\tDsProtocolDataServiceSchema\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceProtocolContractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolContractNegotiationTypes.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;OAEG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,oCAAoC,EAAE,sCAAsC;IAE5E;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,qCAAqC,EAAE,uCAAuC;IAE9E;;OAEG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;IAE5D;;OAEG;IACH,4BAA4B,EAAE,8BAA8B;CACnD,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#message-types-0\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolContractNegotiationTypes = {\n\t/**\n\t * Contract Negotiation.\n\t */\n\tContractNegotiation: \"ContractNegotiation\",\n\n\t/**\n\t * Contract Request Message.\n\t */\n\tContractRequestMessage: \"ContractRequestMessage\",\n\n\t/**\n\t * Contract Offer Message.\n\t */\n\tContractOfferMessage: \"ContractOfferMessage\",\n\n\t/**\n\t * Contract Agreement Message.\n\t */\n\tContractAgreementMessage: \"ContractAgreementMessage\",\n\n\t/**\n\t * Contract Agreement Verification Message.\n\t */\n\tContractAgreementVerificationMessage: \"ContractAgreementVerificationMessage\",\n\n\t/**\n\t * Contract Negotiation Event Message.\n\t */\n\tContractNegotiationEventMessage: \"ContractNegotiationEventMessage\",\n\n\t/**\n\t * Contract Negotiation Termination Message.\n\t */\n\tContractNegotiationTerminationMessage: \"ContractNegotiationTerminationMessage\",\n\n\t/**\n\t * Contract Negotiation Error.\n\t */\n\tContractNegotiationError: \"ContractNegotiationError\",\n\n\t/**\n\t * Contract Negotiation Event Type.\n\t */\n\tContractNegotiationEventType: \"ContractNegotiationEventType\",\n\n\t/**\n\t * Contract Negotiation State Type.\n\t */\n\tContractNegotiationStateType: \"ContractNegotiationStateType\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Contract Negotiation.\n */\nexport type DataspaceProtocolContractNegotiationTypes =\n\t(typeof DataspaceProtocolContractNegotiationTypes)[keyof typeof DataspaceProtocolContractNegotiationTypes];\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceProtocolTransferProcessTypes.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/dataspaceProtocolTransferProcessTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACpD;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IAEtD;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IAEtD;;OAEG;IACH,0BAA0B,EAAE,4BAA4B;IAExD;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,aAAa,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolTransferProcessTypes.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/dataspaceProtocolTransferProcessTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACpD;;OAEG;IACH,sBAAsB,EAAE,wBAAwB;IAEhD;;OAEG;IACH,oBAAoB,EAAE,sBAAsB;IAE5C;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IAEtD;;OAEG;IACH,yBAAyB,EAAE,2BAA2B;IAEtD;;OAEG;IACH,0BAA0B,EAAE,4BAA4B;IAExD;;OAEG;IACH,WAAW,EAAE,aAAa;IAE1B;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;IAEpC;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,aAAa,EAAE,eAAe;CACrB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Transfer Process.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#message-types-1\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolTransferProcessTypes = {\n\t/**\n\t * Transfer Request Message.\n\t */\n\tTransferRequestMessage: \"TransferRequestMessage\",\n\n\t/**\n\t * Transfer Start Message.\n\t */\n\tTransferStartMessage: \"TransferStartMessage\",\n\n\t/**\n\t * Transfer Suspension Message.\n\t */\n\tTransferSuspensionMessage: \"TransferSuspensionMessage\",\n\n\t/**\n\t * Transfer Completion Message.\n\t */\n\tTransferCompletionMessage: \"TransferCompletionMessage\",\n\n\t/**\n\t * Transfer Termination Message.\n\t */\n\tTransferTerminationMessage: \"TransferTerminationMessage\",\n\n\t/**\n\t * Data Address\n\t */\n\tDataAddress: \"DataAddress\",\n\n\t/**\n\t * Endpoint property.\n\t */\n\tEndpointProperty: \"EndpointProperty\",\n\n\t/**\n\t * Transfer Process\n\t */\n\tTransferProcess: \"TransferProcess\",\n\n\t/**\n\t * Transfer Error.\n\t */\n\tTransferError: \"TransferError\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Transfer.\n */\nexport type DataspaceProtocolTransferProcessTypes =\n\t(typeof DataspaceProtocolTransferProcessTypes)[keyof typeof DataspaceProtocolTransferProcessTypes];\n"]}
|
package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceProtocolTransferProcessStateType.js","sourceRoot":"","sources":["../../../../../src/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolTransferProcessStateType.js","sourceRoot":"","sources":["../../../../../src/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACxD;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,SAAS,EAAE,WAAW;IAEtB;;OAEG;IACH,UAAU,EAAE,YAAY;CACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The states for Dataspace Protocol Transfer Process.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/#ack-transfer-process\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolTransferProcessStateType = {\n\t/**\n\t * Completed\n\t */\n\tCOMPLETED: \"COMPLETED\",\n\n\t/**\n\t * Requested\n\t */\n\tREQUESTED: \"REQUESTED\",\n\n\t/**\n\t * Started\n\t */\n\tSTARTED: \"STARTED\",\n\n\t/**\n\t * Suspended\n\t */\n\tSUSPENDED: \"SUSPENDED\",\n\n\t/**\n\t * Terminated\n\t */\n\tTERMINATED: \"TERMINATED\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Transfer.\n */\nexport type DataspaceProtocolTransferProcessStateType =\n\t(typeof DataspaceProtocolTransferProcessStateType)[keyof typeof DataspaceProtocolTransferProcessStateType];\n"]}
|
|
@@ -22,12 +22,14 @@ export class DataspaceProtocolHelper {
|
|
|
22
22
|
*/
|
|
23
23
|
static async checkConformance(object, validationFailures) {
|
|
24
24
|
let result = false;
|
|
25
|
-
const
|
|
25
|
+
const dcatNamespace = DcatContexts.Namespace;
|
|
26
26
|
const objectTypes = await JsonLdHelper.getType(object);
|
|
27
27
|
for (const type of objectTypes) {
|
|
28
28
|
let dataTypeIdentifier = type;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
// If the DCAT3 types are used, convert to the DS Protocol equivalent
|
|
30
|
+
// which have the enhancements and constraints defined by the DS Protocol
|
|
31
|
+
if (type.startsWith(dcatNamespace)) {
|
|
32
|
+
const nonQualifiedType = type.replace(dcatNamespace, "");
|
|
31
33
|
dataTypeIdentifier = `${DataspaceProtocolContexts.Namespace}${nonQualifiedType}`;
|
|
32
34
|
}
|
|
33
35
|
const schema = await DataTypeHelper.getSchemaForType(dataTypeIdentifier);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataspaceProtocolHelper.js","sourceRoot":"","sources":["../../../src/utils/dataspaceProtocolHelper.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACN,YAAY,EACZ,eAAe,EAGf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;GAEG;AACH,MAAM,OAAgB,uBAAuB;IAC5C;;;OAGG;IACI,MAAM,CAAU,UAAU,6BAAqC;IAEtE;;;;;OAKG;IACI,MAAM,CAAC,KAAK,CAAC,gBAAgB,CACnC,MAAyB,EACzB,kBAAwC;QAExC,IAAI,MAAM,GAAG,KAAK,CAAC;QAEnB,MAAM,
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolHelper.js","sourceRoot":"","sources":["../../../src/utils/dataspaceProtocolHelper.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACN,YAAY,EACZ,eAAe,EAGf,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AAEnF;;GAEG;AACH,MAAM,OAAgB,uBAAuB;IAC5C;;;OAGG;IACI,MAAM,CAAU,UAAU,6BAAqC;IAEtE;;;;;OAKG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AAE,UAAU,EAAE,EAAE,GAAG,SAAS,EAAE,GAAG,gBAAgB,EAAE,CAAC,CAAC;QACrF,CAAC;aAAM,IAAI,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,YAAY,CAAC,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC,CAAC;QAC7E,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nimport { GeneralError, Is, ObjectHelper, type IValidationFailure } from \"@twin.org/core\";\nimport { DataTypeHelper, JsonSchemaHelper } from \"@twin.org/data-core\";\nimport {\n\tJsonLdHelper,\n\tJsonLdProcessor,\n\ttype IJsonLdContextDefinitionRoot,\n\ttype IJsonLdNodeObject\n} from \"@twin.org/data-json-ld\";\nimport { nameof } from \"@twin.org/nameof\";\nimport { DcatContexts } from \"@twin.org/standards-w3c-dcat\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\n\n/**\n * Dataspace protocol helper.\n */\nexport abstract class DataspaceProtocolHelper {\n\t/**\n\t * The class name.\n\t * @internal\n\t */\n\tpublic static readonly CLASS_NAME = nameof<DataspaceProtocolHelper>();\n\n\t/**\n\t * Checks whether the object passed as parameter is conformant to the DS Protocol definitions.\n\t * @param object The object to check\n\t * @param validationFailures the Validation failures obtained during the conformance checking.\n\t * @returns true or false depending whether the object is conformant or not\n\t */\n\tpublic static async checkConformance(\n\t\tobject: IJsonLdNodeObject,\n\t\tvalidationFailures: IValidationFailure[]\n\t): Promise<boolean> {\n\t\tlet result = false;\n\n\t\tconst dcatNamespace = DcatContexts.Namespace;\n\n\t\tconst objectTypes = await JsonLdHelper.getType(object);\n\n\t\tfor (const type of objectTypes) {\n\t\t\tlet dataTypeIdentifier = type;\n\n\t\t\t// If the DCAT3 types are used, convert to the DS Protocol equivalent\n\t\t\t// which have the enhancements and constraints defined by the DS Protocol\n\t\t\tif (type.startsWith(dcatNamespace)) {\n\t\t\t\tconst nonQualifiedType = type.replace(dcatNamespace, \"\");\n\t\t\t\tdataTypeIdentifier = `${DataspaceProtocolContexts.Namespace}${nonQualifiedType}`;\n\t\t\t}\n\n\t\t\tconst schema = await DataTypeHelper.getSchemaForType(dataTypeIdentifier);\n\t\t\tif (!schema) {\n\t\t\t\tthrow new GeneralError(DataspaceProtocolHelper.CLASS_NAME, \"schemaNotRegistered\", {\n\t\t\t\t\tschemaId: dataTypeIdentifier\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tconst validationResult = await JsonSchemaHelper.validate(\n\t\t\t\tschema,\n\t\t\t\tawait DataspaceProtocolHelper.normalize(object)\n\t\t\t);\n\t\t\tresult = validationResult.result;\n\n\t\t\tif (!result && Is.array(validationResult.error)) {\n\t\t\t\tfor (const aError of validationResult.error) {\n\t\t\t\t\tconst validationFailure: IValidationFailure = {\n\t\t\t\t\t\tproperty: aError.instancePath,\n\t\t\t\t\t\treason: aError.message as string\n\t\t\t\t\t};\n\t\t\t\t\tvalidationFailures.push(validationFailure);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * Normalizes the input object making it compliant with the DS Protocol specifications.\n\t * @param object The input object.\n\t * @returns The input object normalized.\n\t */\n\tpublic static async normalize(object: IJsonLdNodeObject): Promise<IJsonLdNodeObject> {\n\t\tconst annotatedObject = DataspaceProtocolHelper.annotateLDContextForFormat(object);\n\n\t\tconst compactedObject = await JsonLdProcessor.compact(annotatedObject, [\n\t\t\tDataspaceProtocolContexts.JsonLdContext\n\t\t]);\n\n\t\tif (!Is.array(compactedObject[\"@context\"])) {\n\t\t\tObjectHelper.propertySet(compactedObject, \"@context\", [\n\t\t\t\tObjectHelper.propertyGet(compactedObject, \"@context\")\n\t\t\t]);\n\t\t}\n\n\t\treturn compactedObject;\n\t}\n\n\t/**\n\t * Ensures format property has a proper LD Context.\n\t * @param object The object.\n\t * @returns a copy of the object annotated with the proper LD Context.\n\t * @internal\n\t */\n\tprivate static annotateLDContextForFormat(object: IJsonLdNodeObject): IJsonLdNodeObject {\n\t\tconst result = ObjectHelper.clone<IJsonLdNodeObject>(object);\n\n\t\t// This step is needed before compaction as 'dcterms:format' is not defined originally as '@vocab'\n\t\t// but it is in the DSP LD Context\n\t\tconst EXTRA_ANNOTATION = {\n\t\t\t\"dcterms:format\": {\n\t\t\t\t\"@id\": \"dcterms:format\",\n\t\t\t\t\"@type\": \"@vocab\"\n\t\t\t}\n\t\t};\n\t\tconst ldContext = ObjectHelper.propertyGet<IJsonLdContextDefinitionRoot>(result, \"@context\");\n\t\tif (Is.array(ldContext)) {\n\t\t\tldContext.push(EXTRA_ANNOTATION);\n\t\t} else if (Is.object(ldContext)) {\n\t\t\tObjectHelper.propertySet(result, \"@context\", { ...ldContext, ...EXTRA_ANNOTATION });\n\t\t} else if (Is.string(ldContext)) {\n\t\t\tObjectHelper.propertySet(result, \"@context\", [ldContext, EXTRA_ANNOTATION]);\n\t\t}\n\n\t\treturn result;\n\t}\n}\n"]}
|
package/dist/types/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.d.ts
CHANGED
|
@@ -6,43 +6,43 @@ export declare const DataspaceProtocolContractNegotiationTypes: {
|
|
|
6
6
|
/**
|
|
7
7
|
* Contract Negotiation.
|
|
8
8
|
*/
|
|
9
|
-
ContractNegotiation:
|
|
9
|
+
readonly ContractNegotiation: "ContractNegotiation";
|
|
10
10
|
/**
|
|
11
11
|
* Contract Request Message.
|
|
12
12
|
*/
|
|
13
|
-
ContractRequestMessage:
|
|
13
|
+
readonly ContractRequestMessage: "ContractRequestMessage";
|
|
14
14
|
/**
|
|
15
15
|
* Contract Offer Message.
|
|
16
16
|
*/
|
|
17
|
-
ContractOfferMessage:
|
|
17
|
+
readonly ContractOfferMessage: "ContractOfferMessage";
|
|
18
18
|
/**
|
|
19
19
|
* Contract Agreement Message.
|
|
20
20
|
*/
|
|
21
|
-
ContractAgreementMessage:
|
|
21
|
+
readonly ContractAgreementMessage: "ContractAgreementMessage";
|
|
22
22
|
/**
|
|
23
23
|
* Contract Agreement Verification Message.
|
|
24
24
|
*/
|
|
25
|
-
ContractAgreementVerificationMessage:
|
|
25
|
+
readonly ContractAgreementVerificationMessage: "ContractAgreementVerificationMessage";
|
|
26
26
|
/**
|
|
27
27
|
* Contract Negotiation Event Message.
|
|
28
28
|
*/
|
|
29
|
-
ContractNegotiationEventMessage:
|
|
29
|
+
readonly ContractNegotiationEventMessage: "ContractNegotiationEventMessage";
|
|
30
30
|
/**
|
|
31
31
|
* Contract Negotiation Termination Message.
|
|
32
32
|
*/
|
|
33
|
-
ContractNegotiationTerminationMessage:
|
|
33
|
+
readonly ContractNegotiationTerminationMessage: "ContractNegotiationTerminationMessage";
|
|
34
34
|
/**
|
|
35
35
|
* Contract Negotiation Error.
|
|
36
36
|
*/
|
|
37
|
-
ContractNegotiationError:
|
|
37
|
+
readonly ContractNegotiationError: "ContractNegotiationError";
|
|
38
38
|
/**
|
|
39
39
|
* Contract Negotiation Event Type.
|
|
40
40
|
*/
|
|
41
|
-
ContractNegotiationEventType:
|
|
41
|
+
readonly ContractNegotiationEventType: "ContractNegotiationEventType";
|
|
42
42
|
/**
|
|
43
43
|
* Contract Negotiation State Type.
|
|
44
44
|
*/
|
|
45
|
-
ContractNegotiationStateType:
|
|
45
|
+
readonly ContractNegotiationStateType: "ContractNegotiationStateType";
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* The types for Dataspace Protocol Contract Negotiation.
|
|
@@ -6,39 +6,39 @@ export declare const DataspaceProtocolTransferProcessTypes: {
|
|
|
6
6
|
/**
|
|
7
7
|
* Transfer Request Message.
|
|
8
8
|
*/
|
|
9
|
-
TransferRequestMessage:
|
|
9
|
+
readonly TransferRequestMessage: "TransferRequestMessage";
|
|
10
10
|
/**
|
|
11
11
|
* Transfer Start Message.
|
|
12
12
|
*/
|
|
13
|
-
TransferStartMessage:
|
|
13
|
+
readonly TransferStartMessage: "TransferStartMessage";
|
|
14
14
|
/**
|
|
15
15
|
* Transfer Suspension Message.
|
|
16
16
|
*/
|
|
17
|
-
TransferSuspensionMessage:
|
|
17
|
+
readonly TransferSuspensionMessage: "TransferSuspensionMessage";
|
|
18
18
|
/**
|
|
19
19
|
* Transfer Completion Message.
|
|
20
20
|
*/
|
|
21
|
-
TransferCompletionMessage:
|
|
21
|
+
readonly TransferCompletionMessage: "TransferCompletionMessage";
|
|
22
22
|
/**
|
|
23
23
|
* Transfer Termination Message.
|
|
24
24
|
*/
|
|
25
|
-
TransferTerminationMessage:
|
|
25
|
+
readonly TransferTerminationMessage: "TransferTerminationMessage";
|
|
26
26
|
/**
|
|
27
27
|
* Data Address
|
|
28
28
|
*/
|
|
29
|
-
DataAddress:
|
|
29
|
+
readonly DataAddress: "DataAddress";
|
|
30
30
|
/**
|
|
31
31
|
* Endpoint property.
|
|
32
32
|
*/
|
|
33
|
-
EndpointProperty:
|
|
33
|
+
readonly EndpointProperty: "EndpointProperty";
|
|
34
34
|
/**
|
|
35
35
|
* Transfer Process
|
|
36
36
|
*/
|
|
37
|
-
TransferProcess:
|
|
37
|
+
readonly TransferProcess: "TransferProcess";
|
|
38
38
|
/**
|
|
39
39
|
* Transfer Error.
|
|
40
40
|
*/
|
|
41
|
-
TransferError:
|
|
41
|
+
readonly TransferError: "TransferError";
|
|
42
42
|
};
|
|
43
43
|
/**
|
|
44
44
|
* The types for Dataspace Protocol Transfer.
|
package/dist/types/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.d.ts
CHANGED
|
@@ -6,23 +6,23 @@ export declare const DataspaceProtocolTransferProcessStateType: {
|
|
|
6
6
|
/**
|
|
7
7
|
* Completed
|
|
8
8
|
*/
|
|
9
|
-
COMPLETED:
|
|
9
|
+
readonly COMPLETED: "COMPLETED";
|
|
10
10
|
/**
|
|
11
11
|
* Requested
|
|
12
12
|
*/
|
|
13
|
-
REQUESTED:
|
|
13
|
+
readonly REQUESTED: "REQUESTED";
|
|
14
14
|
/**
|
|
15
15
|
* Started
|
|
16
16
|
*/
|
|
17
|
-
STARTED:
|
|
17
|
+
readonly STARTED: "STARTED";
|
|
18
18
|
/**
|
|
19
19
|
* Suspended
|
|
20
20
|
*/
|
|
21
|
-
SUSPENDED:
|
|
21
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
22
22
|
/**
|
|
23
23
|
* Terminated
|
|
24
24
|
*/
|
|
25
|
-
TERMINATED:
|
|
25
|
+
readonly TERMINATED: "TERMINATED";
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
28
|
* The types for Dataspace Protocol Transfer.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.15](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.14...standards-dataspace-protocol-v0.0.3-next.15) (2026-01-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add missing const modifiers for enum const ([0f40483](https://github.com/twinfoundation/standards/commit/0f40483395b5d214ae7a80ff0f17991ee11acdea))
|
|
9
|
+
* add missing const modifiers for enum const ([7e66eaf](https://github.com/twinfoundation/standards/commit/7e66eaff416654c6f71efd86c65557f7dcb55de1))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* The following workspace dependencies were updated
|
|
15
|
+
* dependencies
|
|
16
|
+
* @twin.org/standards-w3c-dcat bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
17
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
18
|
+
* devDependencies
|
|
19
|
+
* @twin.org/standards-ld-contexts bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
20
|
+
|
|
21
|
+
## [0.0.3-next.14](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.13...standards-dataspace-protocol-v0.0.3-next.14) (2026-01-15)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* correct registration type for DS DCAT3 type ([04703df](https://github.com/twinfoundation/standards/commit/04703df048f56f6315bbd0bb73b7b6b62eb858a1))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Dependencies
|
|
30
|
+
|
|
31
|
+
* The following workspace dependencies were updated
|
|
32
|
+
* dependencies
|
|
33
|
+
* @twin.org/standards-w3c-dcat bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
34
|
+
* @twin.org/standards-w3c-odrl bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
35
|
+
* devDependencies
|
|
36
|
+
* @twin.org/standards-ld-contexts bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
37
|
+
|
|
3
38
|
## [0.0.3-next.13](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.12...standards-dataspace-protocol-v0.0.3-next.13) (2026-01-14)
|
|
4
39
|
|
|
5
40
|
|
|
@@ -15,7 +15,7 @@ LD Context
|
|
|
15
15
|
|
|
16
16
|
### @type
|
|
17
17
|
|
|
18
|
-
> **@type**: `
|
|
18
|
+
> **@type**: `"TransferProcess"`
|
|
19
19
|
|
|
20
20
|
LD Type
|
|
21
21
|
|
|
@@ -39,6 +39,6 @@ MUST refer to the transfer identifier of the Provider side.
|
|
|
39
39
|
|
|
40
40
|
### state
|
|
41
41
|
|
|
42
|
-
> **state**: `
|
|
42
|
+
> **state**: [`DataspaceProtocolTransferProcessStateType`](../type-aliases/DataspaceProtocolTransferProcessStateType.md)
|
|
43
43
|
|
|
44
44
|
The transfer process state.
|
|
@@ -9,60 +9,60 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#mess
|
|
|
9
9
|
|
|
10
10
|
### ContractNegotiation
|
|
11
11
|
|
|
12
|
-
> **ContractNegotiation**: `
|
|
12
|
+
> `readonly` **ContractNegotiation**: `"ContractNegotiation"` = `"ContractNegotiation"`
|
|
13
13
|
|
|
14
14
|
Contract Negotiation.
|
|
15
15
|
|
|
16
16
|
### ContractRequestMessage
|
|
17
17
|
|
|
18
|
-
> **ContractRequestMessage**: `
|
|
18
|
+
> `readonly` **ContractRequestMessage**: `"ContractRequestMessage"` = `"ContractRequestMessage"`
|
|
19
19
|
|
|
20
20
|
Contract Request Message.
|
|
21
21
|
|
|
22
22
|
### ContractOfferMessage
|
|
23
23
|
|
|
24
|
-
> **ContractOfferMessage**: `
|
|
24
|
+
> `readonly` **ContractOfferMessage**: `"ContractOfferMessage"` = `"ContractOfferMessage"`
|
|
25
25
|
|
|
26
26
|
Contract Offer Message.
|
|
27
27
|
|
|
28
28
|
### ContractAgreementMessage
|
|
29
29
|
|
|
30
|
-
> **ContractAgreementMessage**: `
|
|
30
|
+
> `readonly` **ContractAgreementMessage**: `"ContractAgreementMessage"` = `"ContractAgreementMessage"`
|
|
31
31
|
|
|
32
32
|
Contract Agreement Message.
|
|
33
33
|
|
|
34
34
|
### ContractAgreementVerificationMessage
|
|
35
35
|
|
|
36
|
-
> **ContractAgreementVerificationMessage**: `
|
|
36
|
+
> `readonly` **ContractAgreementVerificationMessage**: `"ContractAgreementVerificationMessage"` = `"ContractAgreementVerificationMessage"`
|
|
37
37
|
|
|
38
38
|
Contract Agreement Verification Message.
|
|
39
39
|
|
|
40
40
|
### ContractNegotiationEventMessage
|
|
41
41
|
|
|
42
|
-
> **ContractNegotiationEventMessage**: `
|
|
42
|
+
> `readonly` **ContractNegotiationEventMessage**: `"ContractNegotiationEventMessage"` = `"ContractNegotiationEventMessage"`
|
|
43
43
|
|
|
44
44
|
Contract Negotiation Event Message.
|
|
45
45
|
|
|
46
46
|
### ContractNegotiationTerminationMessage
|
|
47
47
|
|
|
48
|
-
> **ContractNegotiationTerminationMessage**: `
|
|
48
|
+
> `readonly` **ContractNegotiationTerminationMessage**: `"ContractNegotiationTerminationMessage"` = `"ContractNegotiationTerminationMessage"`
|
|
49
49
|
|
|
50
50
|
Contract Negotiation Termination Message.
|
|
51
51
|
|
|
52
52
|
### ContractNegotiationError
|
|
53
53
|
|
|
54
|
-
> **ContractNegotiationError**: `
|
|
54
|
+
> `readonly` **ContractNegotiationError**: `"ContractNegotiationError"` = `"ContractNegotiationError"`
|
|
55
55
|
|
|
56
56
|
Contract Negotiation Error.
|
|
57
57
|
|
|
58
58
|
### ContractNegotiationEventType
|
|
59
59
|
|
|
60
|
-
> **ContractNegotiationEventType**: `
|
|
60
|
+
> `readonly` **ContractNegotiationEventType**: `"ContractNegotiationEventType"` = `"ContractNegotiationEventType"`
|
|
61
61
|
|
|
62
62
|
Contract Negotiation Event Type.
|
|
63
63
|
|
|
64
64
|
### ContractNegotiationStateType
|
|
65
65
|
|
|
66
|
-
> **ContractNegotiationStateType**: `
|
|
66
|
+
> `readonly` **ContractNegotiationStateType**: `"ContractNegotiationStateType"` = `"ContractNegotiationStateType"`
|
|
67
67
|
|
|
68
68
|
Contract Negotiation State Type.
|
|
@@ -9,30 +9,30 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/
|
|
|
9
9
|
|
|
10
10
|
### COMPLETED
|
|
11
11
|
|
|
12
|
-
> **COMPLETED**: `
|
|
12
|
+
> `readonly` **COMPLETED**: `"COMPLETED"` = `"COMPLETED"`
|
|
13
13
|
|
|
14
14
|
Completed
|
|
15
15
|
|
|
16
16
|
### REQUESTED
|
|
17
17
|
|
|
18
|
-
> **REQUESTED**: `
|
|
18
|
+
> `readonly` **REQUESTED**: `"REQUESTED"` = `"REQUESTED"`
|
|
19
19
|
|
|
20
20
|
Requested
|
|
21
21
|
|
|
22
22
|
### STARTED
|
|
23
23
|
|
|
24
|
-
> **STARTED**: `
|
|
24
|
+
> `readonly` **STARTED**: `"STARTED"` = `"STARTED"`
|
|
25
25
|
|
|
26
26
|
Started
|
|
27
27
|
|
|
28
28
|
### SUSPENDED
|
|
29
29
|
|
|
30
|
-
> **SUSPENDED**: `
|
|
30
|
+
> `readonly` **SUSPENDED**: `"SUSPENDED"` = `"SUSPENDED"`
|
|
31
31
|
|
|
32
32
|
Suspended
|
|
33
33
|
|
|
34
34
|
### TERMINATED
|
|
35
35
|
|
|
36
|
-
> **TERMINATED**: `
|
|
36
|
+
> `readonly` **TERMINATED**: `"TERMINATED"` = `"TERMINATED"`
|
|
37
37
|
|
|
38
38
|
Terminated
|
|
@@ -9,54 +9,54 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1-err1/
|
|
|
9
9
|
|
|
10
10
|
### TransferRequestMessage
|
|
11
11
|
|
|
12
|
-
> **TransferRequestMessage**: `
|
|
12
|
+
> `readonly` **TransferRequestMessage**: `"TransferRequestMessage"` = `"TransferRequestMessage"`
|
|
13
13
|
|
|
14
14
|
Transfer Request Message.
|
|
15
15
|
|
|
16
16
|
### TransferStartMessage
|
|
17
17
|
|
|
18
|
-
> **TransferStartMessage**: `
|
|
18
|
+
> `readonly` **TransferStartMessage**: `"TransferStartMessage"` = `"TransferStartMessage"`
|
|
19
19
|
|
|
20
20
|
Transfer Start Message.
|
|
21
21
|
|
|
22
22
|
### TransferSuspensionMessage
|
|
23
23
|
|
|
24
|
-
> **TransferSuspensionMessage**: `
|
|
24
|
+
> `readonly` **TransferSuspensionMessage**: `"TransferSuspensionMessage"` = `"TransferSuspensionMessage"`
|
|
25
25
|
|
|
26
26
|
Transfer Suspension Message.
|
|
27
27
|
|
|
28
28
|
### TransferCompletionMessage
|
|
29
29
|
|
|
30
|
-
> **TransferCompletionMessage**: `
|
|
30
|
+
> `readonly` **TransferCompletionMessage**: `"TransferCompletionMessage"` = `"TransferCompletionMessage"`
|
|
31
31
|
|
|
32
32
|
Transfer Completion Message.
|
|
33
33
|
|
|
34
34
|
### TransferTerminationMessage
|
|
35
35
|
|
|
36
|
-
> **TransferTerminationMessage**: `
|
|
36
|
+
> `readonly` **TransferTerminationMessage**: `"TransferTerminationMessage"` = `"TransferTerminationMessage"`
|
|
37
37
|
|
|
38
38
|
Transfer Termination Message.
|
|
39
39
|
|
|
40
40
|
### DataAddress
|
|
41
41
|
|
|
42
|
-
> **DataAddress**: `
|
|
42
|
+
> `readonly` **DataAddress**: `"DataAddress"` = `"DataAddress"`
|
|
43
43
|
|
|
44
44
|
Data Address
|
|
45
45
|
|
|
46
46
|
### EndpointProperty
|
|
47
47
|
|
|
48
|
-
> **EndpointProperty**: `
|
|
48
|
+
> `readonly` **EndpointProperty**: `"EndpointProperty"` = `"EndpointProperty"`
|
|
49
49
|
|
|
50
50
|
Endpoint property.
|
|
51
51
|
|
|
52
52
|
### TransferProcess
|
|
53
53
|
|
|
54
|
-
> **TransferProcess**: `
|
|
54
|
+
> `readonly` **TransferProcess**: `"TransferProcess"` = `"TransferProcess"`
|
|
55
55
|
|
|
56
56
|
Transfer Process
|
|
57
57
|
|
|
58
58
|
### TransferError
|
|
59
59
|
|
|
60
|
-
> **TransferError**: `
|
|
60
|
+
> `readonly` **TransferError**: `"TransferError"` = `"TransferError"`
|
|
61
61
|
|
|
62
62
|
Transfer Error.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-dataspace-protocol",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.15",
|
|
4
4
|
"description": "Models which define the structure of Dataspace Protocol",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
|
-
"@twin.org/standards-w3c-dcat": "0.0.3-next.
|
|
21
|
-
"@twin.org/standards-w3c-odrl": "0.0.3-next.
|
|
20
|
+
"@twin.org/standards-w3c-dcat": "0.0.3-next.15",
|
|
21
|
+
"@twin.org/standards-w3c-odrl": "0.0.3-next.15",
|
|
22
22
|
"@twin.org/web": "next"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|