@twin.org/standards-dataspace-protocol 0.0.3-next.5 → 0.0.3-next.7
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 +10 -10
- package/dist/es/dataTypes/catalogDataTypes.js.map +1 -1
- package/dist/es/dataTypes/contractNegotiationDataTypes.js +31 -31
- package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +1 -1
- package/dist/es/dataTypes/transferProcessDataTypes.js +28 -28
- package/dist/es/dataTypes/transferProcessDataTypes.js.map +1 -1
- package/dist/es/index.js +26 -26
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogError.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolCatalogRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js +2 -0
- package/dist/es/models/catalog/IDataspaceProtocolDatasetRequestMessage.js.map +1 -0
- package/dist/es/models/catalog/{catalogTypes.js → dataspaceProtocolCatalogTypes.js} +2 -2
- package/dist/es/models/catalog/dataspaceProtocolCatalogTypes.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiation.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js +2 -0
- package/dist/es/models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js.map +1 -0
- package/dist/es/models/contractNegotiation/{contractNegotiationTypes.js → dataspaceProtocolContractNegotiationTypes.js} +2 -2
- package/dist/es/models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js.map +1 -0
- package/dist/es/models/contractNegotiation/types/{contractNegotiationEventType.js → dataspaceProtocolContractNegotiationEventType.js} +2 -2
- package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js.map +1 -0
- package/dist/es/models/contractNegotiation/types/{contractNegotiationStateType.js → dataspaceProtocolContractNegotiationStateType.js} +2 -2
- package/dist/es/models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js.map +1 -0
- package/dist/es/models/dataspaceProtocolContextType.js.map +1 -1
- package/dist/es/models/dataspaceProtocolContexts.js +1 -1
- package/dist/es/models/dataspaceProtocolContexts.js.map +1 -1
- package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolDataAddress.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolEndpointProperty.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferError.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferProcess.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferRequestMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferStartMessage.js.map +1 -0
- package/dist/es/models/transferProcess/{ITransferSuspensionMessage.js → IDataspaceProtocolTransferSuspensionMessage.js} +1 -1
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js.map +1 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js +2 -0
- package/dist/es/models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js.map +1 -0
- package/dist/es/models/transferProcess/{transferProcessTypes.js → dataspaceProtocolTransferProcessTypes.js} +2 -2
- package/dist/es/models/transferProcess/dataspaceProtocolTransferProcessTypes.js.map +1 -0
- package/dist/es/models/transferProcess/types/{transferProcessStateType.js → dataspaceProtocolTransferProcessStateType.js} +2 -2
- package/dist/es/models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js.map +1 -0
- package/dist/es/schemas/{CatalogError.json → DataspaceProtocolCatalogError.json} +5 -5
- package/dist/es/schemas/{CatalogRequestMessage.json → DataspaceProtocolCatalogRequestMessage.json} +5 -5
- package/dist/es/schemas/{ContractAgreementMessage.json → DataspaceProtocolContractAgreementMessage.json} +5 -5
- package/dist/es/schemas/{ContractAgreementVerificationMessage.json → DataspaceProtocolContractAgreementVerificationMessage.json} +5 -5
- package/dist/es/schemas/{ContractNegotiation.json → DataspaceProtocolContractNegotiation.json} +6 -6
- package/dist/es/schemas/{ContractNegotiationError.json → DataspaceProtocolContractNegotiationError.json} +5 -5
- package/dist/es/schemas/{ContractNegotiationEventMessage.json → DataspaceProtocolContractNegotiationEventMessage.json} +6 -6
- package/dist/es/schemas/{ContractNegotiationEventType.json → DataspaceProtocolContractNegotiationEventType.json} +1 -1
- package/dist/es/schemas/{ContractNegotiationStateType.json → DataspaceProtocolContractNegotiationStateType.json} +1 -1
- package/dist/es/schemas/{ContractNegotiationTerminationMessage.json → DataspaceProtocolContractNegotiationTerminationMessage.json} +5 -5
- package/dist/es/schemas/{ContractOfferMessage.json → DataspaceProtocolContractOfferMessage.json} +5 -5
- package/dist/es/schemas/{ContractRequestMessage.json → DataspaceProtocolContractRequestMessage.json} +5 -5
- package/dist/es/schemas/{DataAddress.json → DataspaceProtocolDataAddress.json} +2 -2
- package/dist/es/schemas/{DatasetRequestMessage.json → DataspaceProtocolDatasetRequestMessage.json} +5 -5
- package/dist/es/schemas/{EndpointProperty.json → DataspaceProtocolEndpointProperty.json} +1 -1
- package/dist/es/schemas/{TransferCompletionMessage.json → DataspaceProtocolTransferCompletionMessage.json} +5 -5
- package/dist/es/schemas/{TransferError.json → DataspaceProtocolTransferError.json} +5 -5
- package/dist/es/schemas/{TransferProcess.json → DataspaceProtocolTransferProcess.json} +5 -5
- package/dist/es/schemas/{TransferRequestMessage.json → DataspaceProtocolTransferRequestMessage.json} +6 -6
- package/dist/es/schemas/{TransferStartMessage.json → DataspaceProtocolTransferStartMessage.json} +6 -6
- package/dist/es/schemas/{TransferSuspensionMessage.json → DataspaceProtocolTransferSuspensionMessage.json} +5 -5
- package/dist/es/schemas/{TransferTerminationMessage.json → DataspaceProtocolTransferTerminationMessage.json} +5 -5
- package/dist/types/index.d.ts +26 -26
- package/dist/types/models/catalog/{ICatalogError.d.ts → IDataspaceProtocolCatalogError.d.ts} +3 -3
- package/dist/types/models/catalog/{ICatalogRequestMessage.d.ts → IDataspaceProtocolCatalogRequestMessage.d.ts} +3 -3
- package/dist/types/models/catalog/{IDatasetRequestMessage.d.ts → IDataspaceProtocolDatasetRequestMessage.d.ts} +3 -3
- package/dist/types/models/catalog/{catalogTypes.d.ts → dataspaceProtocolCatalogTypes.d.ts} +2 -2
- package/dist/types/models/contractNegotiation/{IContractAgreementMessage.d.ts → IDataspaceProtocolContractAgreementMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractAgreementVerificationMessage.d.ts → IDataspaceProtocolContractAgreementVerificationMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractNegotiation.d.ts → IDataspaceProtocolContractNegotiation.d.ts} +5 -5
- package/dist/types/models/contractNegotiation/{IContractNegotiationError.d.ts → IDataspaceProtocolContractNegotiationError.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractNegotiationEventMessage.d.ts → IDataspaceProtocolContractNegotiationEventMessage.d.ts} +5 -5
- package/dist/types/models/contractNegotiation/{IContractNegotiationTerminationMessage.d.ts → IDataspaceProtocolContractNegotiationTerminationMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractOfferMessage.d.ts → IDataspaceProtocolContractOfferMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{IContractRequestMessage.d.ts → IDataspaceProtocolContractRequestMessage.d.ts} +3 -3
- package/dist/types/models/contractNegotiation/{contractNegotiationTypes.d.ts → dataspaceProtocolContractNegotiationTypes.d.ts} +2 -2
- package/dist/types/models/contractNegotiation/types/{contractNegotiationEventType.d.ts → dataspaceProtocolContractNegotiationEventType.d.ts} +2 -2
- package/dist/types/models/contractNegotiation/types/{contractNegotiationStateType.d.ts → dataspaceProtocolContractNegotiationStateType.d.ts} +2 -2
- package/dist/types/models/dataspaceProtocolContextType.d.ts +1 -1
- package/dist/types/models/dataspaceProtocolContexts.d.ts +1 -1
- package/dist/types/models/transferProcess/{IDataAddress.d.ts → IDataspaceProtocolDataAddress.d.ts} +5 -5
- package/dist/types/models/transferProcess/{IEndpointProperty.d.ts → IDataspaceProtocolEndpointProperty.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferCompletionMessage.d.ts → IDataspaceProtocolTransferCompletionMessage.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferError.d.ts → IDataspaceProtocolTransferError.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferProcess.d.ts → IDataspaceProtocolTransferProcess.d.ts} +5 -5
- package/dist/types/models/transferProcess/{ITransferRequestMessage.d.ts → IDataspaceProtocolTransferRequestMessage.d.ts} +5 -5
- package/dist/types/models/transferProcess/{ITransferStartMessage.d.ts → IDataspaceProtocolTransferStartMessage.d.ts} +5 -5
- package/dist/types/models/transferProcess/{ITransferSuspensionMessage.d.ts → IDataspaceProtocolTransferSuspensionMessage.d.ts} +3 -3
- package/dist/types/models/transferProcess/{ITransferTerminationMessage.d.ts → IDataspaceProtocolTransferTerminationMessage.d.ts} +3 -3
- package/dist/types/models/transferProcess/{transferProcessTypes.d.ts → dataspaceProtocolTransferProcessTypes.d.ts} +2 -2
- package/dist/types/models/transferProcess/types/{transferProcessStateType.d.ts → dataspaceProtocolTransferProcessStateType.d.ts} +2 -2
- package/docs/changelog.md +36 -0
- package/docs/reference/index.md +32 -32
- package/docs/reference/interfaces/{ICatalogError.md → IDataspaceProtocolCatalogError.md} +1 -1
- package/docs/reference/interfaces/{ICatalogRequestMessage.md → IDataspaceProtocolCatalogRequestMessage.md} +1 -1
- package/docs/reference/interfaces/{IContractAgreementMessage.md → IDataspaceProtocolContractAgreementMessage.md} +1 -1
- package/docs/reference/interfaces/{IContractAgreementVerificationMessage.md → IDataspaceProtocolContractAgreementVerificationMessage.md} +1 -1
- package/docs/reference/interfaces/{IContractNegotiation.md → IDataspaceProtocolContractNegotiation.md} +2 -2
- package/docs/reference/interfaces/{IContractNegotiationError.md → IDataspaceProtocolContractNegotiationError.md} +1 -1
- package/docs/reference/interfaces/{IContractNegotiationEventMessage.md → IDataspaceProtocolContractNegotiationEventMessage.md} +2 -2
- package/docs/reference/interfaces/{IContractNegotiationTerminationMessage.md → IDataspaceProtocolContractNegotiationTerminationMessage.md} +1 -1
- package/docs/reference/interfaces/{IContractOfferMessage.md → IDataspaceProtocolContractOfferMessage.md} +1 -1
- package/docs/reference/interfaces/{IContractRequestMessage.md → IDataspaceProtocolContractRequestMessage.md} +1 -1
- package/docs/reference/interfaces/{IDataAddress.md → IDataspaceProtocolDataAddress.md} +2 -2
- package/docs/reference/interfaces/{IDatasetRequestMessage.md → IDataspaceProtocolDatasetRequestMessage.md} +1 -1
- package/docs/reference/interfaces/{IEndpointProperty.md → IDataspaceProtocolEndpointProperty.md} +1 -1
- package/docs/reference/interfaces/{ITransferCompletionMessage.md → IDataspaceProtocolTransferCompletionMessage.md} +1 -1
- package/docs/reference/interfaces/{ITransferError.md → IDataspaceProtocolTransferError.md} +1 -1
- package/docs/reference/interfaces/{ITransferProcess.md → IDataspaceProtocolTransferProcess.md} +1 -1
- package/docs/reference/interfaces/{ITransferRequestMessage.md → IDataspaceProtocolTransferRequestMessage.md} +2 -2
- package/docs/reference/interfaces/{ITransferStartMessage.md → IDataspaceProtocolTransferStartMessage.md} +2 -2
- package/docs/reference/interfaces/{ITransferSuspensionMessage.md → IDataspaceProtocolTransferSuspensionMessage.md} +1 -1
- package/docs/reference/interfaces/{ITransferTerminationMessage.md → IDataspaceProtocolTransferTerminationMessage.md} +1 -1
- package/docs/reference/type-aliases/DataspaceProtocolCatalogTypes.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContextType.md +1 -1
- package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationEventType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationStateType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolContractNegotiationTypes.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolTransferProcessStateType.md +5 -0
- package/docs/reference/type-aliases/DataspaceProtocolTransferProcessTypes.md +5 -0
- package/docs/reference/variables/{CatalogTypes.md → DataspaceProtocolCatalogTypes.md} +2 -2
- package/docs/reference/variables/DataspaceProtocolContexts.md +1 -1
- package/docs/reference/variables/{ContractNegotiationEventType.md → DataspaceProtocolContractNegotiationEventType.md} +2 -2
- package/docs/reference/variables/{ContractNegotiationStateType.md → DataspaceProtocolContractNegotiationStateType.md} +2 -2
- package/docs/reference/variables/{ContractNegotiationTypes.md → DataspaceProtocolContractNegotiationTypes.md} +2 -2
- package/docs/reference/variables/{TransferProcessStateType.md → DataspaceProtocolTransferProcessStateType.md} +2 -2
- package/docs/reference/variables/{TransferProcessTypes.md → DataspaceProtocolTransferProcessTypes.md} +2 -2
- package/package.json +3 -3
- package/dist/es/models/catalog/ICatalogError.js +0 -2
- package/dist/es/models/catalog/ICatalogError.js.map +0 -1
- package/dist/es/models/catalog/ICatalogRequestMessage.js +0 -2
- package/dist/es/models/catalog/ICatalogRequestMessage.js.map +0 -1
- package/dist/es/models/catalog/IDatasetRequestMessage.js +0 -2
- package/dist/es/models/catalog/IDatasetRequestMessage.js.map +0 -1
- package/dist/es/models/catalog/catalogTypes.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractAgreementMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiation.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationError.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractOfferMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/IContractRequestMessage.js +0 -2
- package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +0 -1
- package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +0 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +0 -1
- package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +0 -1
- package/dist/es/models/transferProcess/IDataAddress.js +0 -2
- package/dist/es/models/transferProcess/IDataAddress.js.map +0 -1
- package/dist/es/models/transferProcess/IEndpointProperty.js +0 -2
- package/dist/es/models/transferProcess/IEndpointProperty.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferCompletionMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferCompletionMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferError.js +0 -2
- package/dist/es/models/transferProcess/ITransferError.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferProcess.js +0 -2
- package/dist/es/models/transferProcess/ITransferProcess.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferRequestMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferRequestMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferStartMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferStartMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferSuspensionMessage.js.map +0 -1
- package/dist/es/models/transferProcess/ITransferTerminationMessage.js +0 -2
- package/dist/es/models/transferProcess/ITransferTerminationMessage.js.map +0 -1
- package/dist/es/models/transferProcess/transferProcessTypes.js.map +0 -1
- package/dist/es/models/transferProcess/types/transferProcessStateType.js.map +0 -1
- package/docs/reference/type-aliases/CatalogTypes.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationEventType.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationStateType.md +0 -5
- package/docs/reference/type-aliases/ContractNegotiationTypes.md +0 -5
- package/docs/reference/type-aliases/TransferProcessStateType.md +0 -5
- package/docs/reference/type-aliases/TransferProcessTypes.md +0 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
-
import {
|
|
2
|
+
import { DataspaceProtocolCatalogTypes } from "../models/catalog/dataspaceProtocolCatalogTypes.js";
|
|
3
3
|
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
4
|
-
import CatalogError from "../schemas/
|
|
5
|
-
import CatalogRequestMessage from "../schemas/
|
|
6
|
-
import DatasetRequestMessage from "../schemas/
|
|
4
|
+
import CatalogError from "../schemas/DataspaceProtocolCatalogError.json" with { type: "json" };
|
|
5
|
+
import CatalogRequestMessage from "../schemas/DataspaceProtocolCatalogRequestMessage.json" with { type: "json" };
|
|
6
|
+
import DatasetRequestMessage from "../schemas/DataspaceProtocolDatasetRequestMessage.json" with { type: "json" };
|
|
7
7
|
/**
|
|
8
8
|
* Handle all the catalog data types for Dataspace Protocol.
|
|
9
9
|
*/
|
|
@@ -12,19 +12,19 @@ export class CatalogDataTypes {
|
|
|
12
12
|
* Register all the data types.
|
|
13
13
|
*/
|
|
14
14
|
static registerTypes() {
|
|
15
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
15
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolCatalogTypes.CatalogRequestMessage}`, () => ({
|
|
16
16
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
17
|
-
type:
|
|
17
|
+
type: DataspaceProtocolCatalogTypes.CatalogRequestMessage,
|
|
18
18
|
jsonSchema: async () => CatalogRequestMessage
|
|
19
19
|
}));
|
|
20
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
20
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolCatalogTypes.DatasetRequestMessage}`, () => ({
|
|
21
21
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
22
|
-
type:
|
|
22
|
+
type: DataspaceProtocolCatalogTypes.DatasetRequestMessage,
|
|
23
23
|
jsonSchema: async () => DatasetRequestMessage
|
|
24
24
|
}));
|
|
25
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
25
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolCatalogTypes.CatalogError}`, () => ({
|
|
26
26
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
27
|
-
type:
|
|
27
|
+
type: DataspaceProtocolCatalogTypes.CatalogError,
|
|
28
28
|
jsonSchema: async () => CatalogError
|
|
29
29
|
}));
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"catalogDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/catalogDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,YAAY,MAAM,+CAA+C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,wDAAwD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACjH,OAAO,qBAAqB,MAAM,wDAAwD,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAEjH;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAC5B;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,6BAA6B,CAAC,qBAAqB,EAAE,EAChG,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,6BAA6B,CAAC,qBAAqB;YACzD,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAoC;SAC5D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,6BAA6B,CAAC,qBAAqB,EAAE,EAChG,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,6BAA6B,CAAC,qBAAqB;YACzD,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,qBAAoC;SAC5D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,6BAA6B,CAAC,YAAY,EAAE,EACvF,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,6BAA6B,CAAC,YAAY;YAChD,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,YAA2B;SACnD,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { DataspaceProtocolCatalogTypes } from \"../models/catalog/dataspaceProtocolCatalogTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport CatalogError from \"../schemas/DataspaceProtocolCatalogError.json\" with { type: \"json\" };\nimport CatalogRequestMessage from \"../schemas/DataspaceProtocolCatalogRequestMessage.json\" with { type: \"json\" };\nimport DatasetRequestMessage from \"../schemas/DataspaceProtocolDatasetRequestMessage.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\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolCatalogTypes.CatalogRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogRequestMessage,\n\t\t\t\tjsonSchema: async () => CatalogRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolCatalogTypes.DatasetRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.DatasetRequestMessage,\n\t\t\t\tjsonSchema: async () => DatasetRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolCatalogTypes.CatalogError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolCatalogTypes.CatalogError,\n\t\t\t\tjsonSchema: async () => CatalogError as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
|
-
import {
|
|
2
|
+
import { DataspaceProtocolContractNegotiationTypes } from "../models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js";
|
|
3
3
|
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
4
|
-
import ContractAgreementMessage from "../schemas/
|
|
5
|
-
import ContractAgreementVerificationMessage from "../schemas/
|
|
6
|
-
import ContractNegotiation from "../schemas/
|
|
7
|
-
import ContractNegotiationError from "../schemas/
|
|
8
|
-
import ContractNegotiationEventMessage from "../schemas/
|
|
9
|
-
import ContractNegotiationEventType from "../schemas/
|
|
10
|
-
import ContractNegotiationStateType from "../schemas/
|
|
11
|
-
import ContractNegotiationTerminationMessage from "../schemas/
|
|
12
|
-
import ContractOfferMessage from "../schemas/
|
|
13
|
-
import ContractRequestMessage from "../schemas/
|
|
4
|
+
import ContractAgreementMessage from "../schemas/DataspaceProtocolContractAgreementMessage.json" with { type: "json" };
|
|
5
|
+
import ContractAgreementVerificationMessage from "../schemas/DataspaceProtocolContractAgreementVerificationMessage.json" with { type: "json" };
|
|
6
|
+
import ContractNegotiation from "../schemas/DataspaceProtocolContractNegotiation.json" with { type: "json" };
|
|
7
|
+
import ContractNegotiationError from "../schemas/DataspaceProtocolContractNegotiationError.json" with { type: "json" };
|
|
8
|
+
import ContractNegotiationEventMessage from "../schemas/DataspaceProtocolContractNegotiationEventMessage.json" with { type: "json" };
|
|
9
|
+
import ContractNegotiationEventType from "../schemas/DataspaceProtocolContractNegotiationEventType.json" with { type: "json" };
|
|
10
|
+
import ContractNegotiationStateType from "../schemas/DataspaceProtocolContractNegotiationStateType.json" with { type: "json" };
|
|
11
|
+
import ContractNegotiationTerminationMessage from "../schemas/DataspaceProtocolContractNegotiationTerminationMessage.json" with { type: "json" };
|
|
12
|
+
import ContractOfferMessage from "../schemas/DataspaceProtocolContractOfferMessage.json" with { type: "json" };
|
|
13
|
+
import ContractRequestMessage from "../schemas/DataspaceProtocolContractRequestMessage.json" with { type: "json" };
|
|
14
14
|
/**
|
|
15
15
|
* Handle all the contract negotiation data types for Dataspace Protocol.
|
|
16
16
|
*/
|
|
@@ -19,54 +19,54 @@ export class ContractNegotiationDataTypes {
|
|
|
19
19
|
* Register all the data types.
|
|
20
20
|
*/
|
|
21
21
|
static registerTypes() {
|
|
22
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
22
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage}`, () => ({
|
|
23
23
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
24
|
-
type:
|
|
24
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage,
|
|
25
25
|
jsonSchema: async () => ContractAgreementMessage
|
|
26
26
|
}));
|
|
27
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
27
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
|
|
28
28
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
29
|
-
type:
|
|
29
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage,
|
|
30
30
|
jsonSchema: async () => ContractAgreementVerificationMessage
|
|
31
31
|
}));
|
|
32
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
32
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiation}`, () => ({
|
|
33
33
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
34
|
-
type:
|
|
34
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractNegotiation,
|
|
35
35
|
jsonSchema: async () => ContractNegotiation
|
|
36
36
|
}));
|
|
37
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
37
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationError}`, () => ({
|
|
38
38
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
39
|
-
type:
|
|
39
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationError,
|
|
40
40
|
jsonSchema: async () => ContractNegotiationError
|
|
41
41
|
}));
|
|
42
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
42
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
|
|
43
43
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
44
|
-
type:
|
|
44
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage,
|
|
45
45
|
jsonSchema: async () => ContractNegotiationEventMessage
|
|
46
46
|
}));
|
|
47
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
47
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
|
|
48
48
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
49
|
-
type:
|
|
49
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage,
|
|
50
50
|
jsonSchema: async () => ContractNegotiationTerminationMessage
|
|
51
51
|
}));
|
|
52
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
52
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractOfferMessage}`, () => ({
|
|
53
53
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
54
|
-
type:
|
|
54
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractOfferMessage,
|
|
55
55
|
jsonSchema: async () => ContractOfferMessage
|
|
56
56
|
}));
|
|
57
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
57
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractRequestMessage}`, () => ({
|
|
58
58
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
59
|
-
type:
|
|
59
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractRequestMessage,
|
|
60
60
|
jsonSchema: async () => ContractRequestMessage
|
|
61
61
|
}));
|
|
62
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
62
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
|
|
63
63
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
64
|
-
type:
|
|
64
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventType,
|
|
65
65
|
jsonSchema: async () => ContractNegotiationEventType
|
|
66
66
|
}));
|
|
67
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
67
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
|
|
68
68
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
69
|
-
type:
|
|
69
|
+
type: DataspaceProtocolContractNegotiationTypes.ContractNegotiationStateType,
|
|
70
70
|
jsonSchema: async () => ContractNegotiationStateType
|
|
71
71
|
}));
|
|
72
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/contractNegotiationDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/contractNegotiationDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,yCAAyC,EAAE,MAAM,4EAA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,4BAA2C;SACnE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { DataspaceProtocolContractNegotiationTypes } from \"../models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport ContractAgreementMessage from \"../schemas/DataspaceProtocolContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/DataspaceProtocolContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/DataspaceProtocolContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/DataspaceProtocolContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/DataspaceProtocolContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/DataspaceProtocolContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/DataspaceProtocolContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/DataspaceProtocolContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/DataspaceProtocolContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/DataspaceProtocolContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the contract negotiation data types for Dataspace Protocol.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage,\n\t\t\t\tjsonSchema: async () => ContractAgreementVerificationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiation,\n\t\t\t\tjsonSchema: async () => ContractNegotiation as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationError,\n\t\t\t\tjsonSchema: async () => ContractNegotiationError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage,\n\t\t\t\tjsonSchema: async () => ContractNegotiationTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractOfferMessage,\n\t\t\t\tjsonSchema: async () => ContractOfferMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractRequestMessage,\n\t\t\t\tjsonSchema: async () => ContractRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationEventType as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { DataTypeHandlerFactory } from "@twin.org/data-core";
|
|
2
2
|
import { DataspaceProtocolContexts } from "../models/dataspaceProtocolContexts.js";
|
|
3
|
-
import {
|
|
4
|
-
import DataAddress from "../schemas/
|
|
5
|
-
import EndpointProperty from "../schemas/
|
|
6
|
-
import TransferCompletionMessage from "../schemas/
|
|
7
|
-
import TransferError from "../schemas/
|
|
8
|
-
import TransferProcess from "../schemas/
|
|
9
|
-
import TransferRequestMessage from "../schemas/
|
|
10
|
-
import TransferStartMessage from "../schemas/
|
|
11
|
-
import TransferSuspensionMessage from "../schemas/
|
|
12
|
-
import TransferTerminationMessage from "../schemas/
|
|
3
|
+
import { DataspaceProtocolTransferProcessTypes } from "../models/transferProcess/dataspaceProtocolTransferProcessTypes.js";
|
|
4
|
+
import DataAddress from "../schemas/DataspaceProtocolDataAddress.json" with { type: "json" };
|
|
5
|
+
import EndpointProperty from "../schemas/DataspaceProtocolEndpointProperty.json" with { type: "json" };
|
|
6
|
+
import TransferCompletionMessage from "../schemas/DataspaceProtocolTransferCompletionMessage.json" with { type: "json" };
|
|
7
|
+
import TransferError from "../schemas/DataspaceProtocolTransferError.json" with { type: "json" };
|
|
8
|
+
import TransferProcess from "../schemas/DataspaceProtocolTransferProcess.json" with { type: "json" };
|
|
9
|
+
import TransferRequestMessage from "../schemas/DataspaceProtocolTransferRequestMessage.json" with { type: "json" };
|
|
10
|
+
import TransferStartMessage from "../schemas/DataspaceProtocolTransferStartMessage.json" with { type: "json" };
|
|
11
|
+
import TransferSuspensionMessage from "../schemas/DataspaceProtocolTransferSuspensionMessage.json" with { type: "json" };
|
|
12
|
+
import TransferTerminationMessage from "../schemas/DataspaceProtocolTransferTerminationMessage.json" with { type: "json" };
|
|
13
13
|
/**
|
|
14
14
|
* Handle all the transfer process data types for Dataspace Protocol.
|
|
15
15
|
*/
|
|
@@ -18,49 +18,49 @@ export class TransferProcessDataTypes {
|
|
|
18
18
|
* Register all the data types.
|
|
19
19
|
*/
|
|
20
20
|
static registerTypes() {
|
|
21
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
21
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.DataAddress}`, () => ({
|
|
22
22
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
23
|
-
type:
|
|
23
|
+
type: DataspaceProtocolTransferProcessTypes.DataAddress,
|
|
24
24
|
jsonSchema: async () => DataAddress
|
|
25
25
|
}));
|
|
26
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
26
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.EndpointProperty}`, () => ({
|
|
27
27
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
28
|
-
type:
|
|
28
|
+
type: DataspaceProtocolTransferProcessTypes.EndpointProperty,
|
|
29
29
|
jsonSchema: async () => EndpointProperty
|
|
30
30
|
}));
|
|
31
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
31
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferCompletionMessage}`, () => ({
|
|
32
32
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
33
|
-
type:
|
|
33
|
+
type: DataspaceProtocolTransferProcessTypes.TransferCompletionMessage,
|
|
34
34
|
jsonSchema: async () => TransferCompletionMessage
|
|
35
35
|
}));
|
|
36
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
36
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferError}`, () => ({
|
|
37
37
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
38
|
-
type:
|
|
38
|
+
type: DataspaceProtocolTransferProcessTypes.TransferError,
|
|
39
39
|
jsonSchema: async () => TransferError
|
|
40
40
|
}));
|
|
41
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
41
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferProcess}`, () => ({
|
|
42
42
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
43
|
-
type:
|
|
43
|
+
type: DataspaceProtocolTransferProcessTypes.TransferProcess,
|
|
44
44
|
jsonSchema: async () => TransferProcess
|
|
45
45
|
}));
|
|
46
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
46
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferRequestMessage}`, () => ({
|
|
47
47
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
48
|
-
type:
|
|
48
|
+
type: DataspaceProtocolTransferProcessTypes.TransferRequestMessage,
|
|
49
49
|
jsonSchema: async () => TransferRequestMessage
|
|
50
50
|
}));
|
|
51
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
51
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferStartMessage}`, () => ({
|
|
52
52
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
53
|
-
type:
|
|
53
|
+
type: DataspaceProtocolTransferProcessTypes.TransferStartMessage,
|
|
54
54
|
jsonSchema: async () => TransferStartMessage
|
|
55
55
|
}));
|
|
56
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
56
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage}`, () => ({
|
|
57
57
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
58
|
-
type:
|
|
58
|
+
type: DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage,
|
|
59
59
|
jsonSchema: async () => TransferSuspensionMessage
|
|
60
60
|
}));
|
|
61
|
-
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${
|
|
61
|
+
DataTypeHandlerFactory.register(`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferTerminationMessage}`, () => ({
|
|
62
62
|
context: DataspaceProtocolContexts.ContextRoot,
|
|
63
|
-
type:
|
|
63
|
+
type: DataspaceProtocolTransferProcessTypes.TransferTerminationMessage,
|
|
64
64
|
jsonSchema: async () => TransferTerminationMessage
|
|
65
65
|
}));
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transferProcessDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/transferProcessDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"transferProcessDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/transferProcessDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,qCAAqC,EAAE,MAAM,oEAAoE,CAAC;AAC3H,OAAO,WAAW,MAAM,8CAA8C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC7F,OAAO,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C;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,qCAAqC,CAAC,oBAAoB;YAChE,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,oBAAmC;SAC3D,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,qCAAqC,CAAC,yBAAyB,EAAE,EAC5G,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,qCAAqC,CAAC,yBAAyB;YACrE,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,yBAAwC;SAChE,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,yBAAyB,CAAC,WAAW,GAAG,qCAAqC,CAAC,0BAA0B,EAAE,EAC7G,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,yBAAyB,CAAC,WAAW;YAC9C,IAAI,EAAE,qCAAqC,CAAC,0BAA0B;YACtE,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,0BAAyC;SACjE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { DataspaceProtocolContexts } from \"../models/dataspaceProtocolContexts.js\";\nimport { DataspaceProtocolTransferProcessTypes } from \"../models/transferProcess/dataspaceProtocolTransferProcessTypes.js\";\nimport DataAddress from \"../schemas/DataspaceProtocolDataAddress.json\" with { type: \"json\" };\nimport EndpointProperty from \"../schemas/DataspaceProtocolEndpointProperty.json\" with { type: \"json\" };\nimport TransferCompletionMessage from \"../schemas/DataspaceProtocolTransferCompletionMessage.json\" with { type: \"json\" };\nimport TransferError from \"../schemas/DataspaceProtocolTransferError.json\" with { type: \"json\" };\nimport TransferProcess from \"../schemas/DataspaceProtocolTransferProcess.json\" with { type: \"json\" };\nimport TransferRequestMessage from \"../schemas/DataspaceProtocolTransferRequestMessage.json\" with { type: \"json\" };\nimport TransferStartMessage from \"../schemas/DataspaceProtocolTransferStartMessage.json\" with { type: \"json\" };\nimport TransferSuspensionMessage from \"../schemas/DataspaceProtocolTransferSuspensionMessage.json\" with { type: \"json\" };\nimport TransferTerminationMessage from \"../schemas/DataspaceProtocolTransferTerminationMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the transfer process data types for Dataspace Protocol.\n */\nexport class TransferProcessDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.DataAddress}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.DataAddress,\n\t\t\t\tjsonSchema: async () => DataAddress as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.EndpointProperty}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.EndpointProperty,\n\t\t\t\tjsonSchema: async () => EndpointProperty as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferCompletionMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferCompletionMessage,\n\t\t\t\tjsonSchema: async () => TransferCompletionMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferError,\n\t\t\t\tjsonSchema: async () => TransferError as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferProcess}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferProcess,\n\t\t\t\tjsonSchema: async () => TransferProcess as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferRequestMessage,\n\t\t\t\tjsonSchema: async () => TransferRequestMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferStartMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferStartMessage,\n\t\t\t\tjsonSchema: async () => TransferStartMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferSuspensionMessage,\n\t\t\t\tjsonSchema: async () => TransferSuspensionMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${DataspaceProtocolContexts.ContextRoot}${DataspaceProtocolTransferProcessTypes.TransferTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: DataspaceProtocolContexts.ContextRoot,\n\t\t\t\ttype: DataspaceProtocolTransferProcessTypes.TransferTerminationMessage,\n\t\t\t\tjsonSchema: async () => TransferTerminationMessage as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
package/dist/es/index.js
CHANGED
|
@@ -4,35 +4,35 @@ export * from "./models/dataspaceProtocolContexts.js";
|
|
|
4
4
|
export * from "./models/dataspaceProtocolContextType.js";
|
|
5
5
|
export * from "./dataTypes/dataspaceProtocolDataTypes.js";
|
|
6
6
|
// Catalog Protocol
|
|
7
|
-
export * from "./models/catalog/
|
|
8
|
-
export * from "./models/catalog/
|
|
9
|
-
export * from "./models/catalog/
|
|
10
|
-
export * from "./models/catalog/
|
|
7
|
+
export * from "./models/catalog/dataspaceProtocolCatalogTypes.js";
|
|
8
|
+
export * from "./models/catalog/IDataspaceProtocolCatalogError.js";
|
|
9
|
+
export * from "./models/catalog/IDataspaceProtocolCatalogRequestMessage.js";
|
|
10
|
+
export * from "./models/catalog/IDataspaceProtocolDatasetRequestMessage.js";
|
|
11
11
|
export * from "./dataTypes/catalogDataTypes.js";
|
|
12
12
|
// Contract Negotiation Protocol
|
|
13
|
-
export * from "./models/contractNegotiation/
|
|
14
|
-
export * from "./models/contractNegotiation/
|
|
15
|
-
export * from "./models/contractNegotiation/
|
|
16
|
-
export * from "./models/contractNegotiation/
|
|
17
|
-
export * from "./models/contractNegotiation/
|
|
18
|
-
export * from "./models/contractNegotiation/
|
|
19
|
-
export * from "./models/contractNegotiation/
|
|
20
|
-
export * from "./models/contractNegotiation/
|
|
21
|
-
export * from "./models/contractNegotiation/
|
|
22
|
-
export * from "./models/contractNegotiation/types/
|
|
23
|
-
export * from "./models/contractNegotiation/types/
|
|
13
|
+
export * from "./models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js";
|
|
14
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js";
|
|
15
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js";
|
|
16
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiation.js";
|
|
17
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js";
|
|
18
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js";
|
|
19
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js";
|
|
20
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js";
|
|
21
|
+
export * from "./models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js";
|
|
22
|
+
export * from "./models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js";
|
|
23
|
+
export * from "./models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js";
|
|
24
24
|
export * from "./dataTypes/contractNegotiationDataTypes.js";
|
|
25
25
|
// Transfer Process Protocol
|
|
26
|
-
export * from "./models/transferProcess/
|
|
27
|
-
export * from "./models/transferProcess/
|
|
28
|
-
export * from "./models/transferProcess/
|
|
29
|
-
export * from "./models/transferProcess/
|
|
30
|
-
export * from "./models/transferProcess/
|
|
31
|
-
export * from "./models/transferProcess/
|
|
32
|
-
export * from "./models/transferProcess/
|
|
33
|
-
export * from "./models/transferProcess/
|
|
34
|
-
export * from "./models/transferProcess/
|
|
35
|
-
export * from "./models/transferProcess/
|
|
36
|
-
export * from "./models/transferProcess/types/
|
|
26
|
+
export * from "./models/transferProcess/dataspaceProtocolTransferProcessTypes.js";
|
|
27
|
+
export * from "./models/transferProcess/IDataspaceProtocolDataAddress.js";
|
|
28
|
+
export * from "./models/transferProcess/IDataspaceProtocolEndpointProperty.js";
|
|
29
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js";
|
|
30
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferError.js";
|
|
31
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferProcess.js";
|
|
32
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferRequestMessage.js";
|
|
33
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferStartMessage.js";
|
|
34
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js";
|
|
35
|
+
export * from "./models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js";
|
|
36
|
+
export * from "./models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js";
|
|
37
37
|
export * from "./dataTypes/transferProcessDataTypes.js";
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,mBAAmB;AACnB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAE1D,mBAAmB;AACnB,cAAc,mDAAmD,CAAC;AAClE,cAAc,oDAAoD,CAAC;AACnE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,6DAA6D,CAAC;AAE5E,cAAc,iCAAiC,CAAC;AAEhD,gCAAgC;AAChC,cAAc,2EAA2E,CAAC;AAC1F,cAAc,4EAA4E,CAAC;AAC3F,cAAc,wFAAwF,CAAC;AACvG,cAAc,uEAAuE,CAAC;AACtF,cAAc,4EAA4E,CAAC;AAC3F,cAAc,mFAAmF,CAAC;AAClG,cAAc,yFAAyF,CAAC;AACxG,cAAc,wEAAwE,CAAC;AACvF,cAAc,0EAA0E,CAAC;AACzF,cAAc,qFAAqF,CAAC;AACpG,cAAc,qFAAqF,CAAC;AAEpG,cAAc,6CAA6C,CAAC;AAE5D,4BAA4B;AAC5B,cAAc,mEAAmE,CAAC;AAClF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,yEAAyE,CAAC;AACxF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sEAAsE,CAAC;AACrF,cAAc,oEAAoE,CAAC;AACnF,cAAc,yEAAyE,CAAC;AACxF,cAAc,0EAA0E,CAAC;AACzF,cAAc,6EAA6E,CAAC;AAE5F,cAAc,yCAAyC,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./models/dataspaceProtocolContexts.js\";\nexport * from \"./models/dataspaceProtocolContextType.js\";\nexport * from \"./dataTypes/dataspaceProtocolDataTypes.js\";\n\n// Catalog Protocol\nexport * from \"./models/catalog/dataspaceProtocolCatalogTypes.js\";\nexport * from \"./models/catalog/IDataspaceProtocolCatalogError.js\";\nexport * from \"./models/catalog/IDataspaceProtocolCatalogRequestMessage.js\";\nexport * from \"./models/catalog/IDataspaceProtocolDatasetRequestMessage.js\";\n\nexport * from \"./dataTypes/catalogDataTypes.js\";\n\n// Contract Negotiation Protocol\nexport * from \"./models/contractNegotiation/dataspaceProtocolContractNegotiationTypes.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiation.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiationError.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractOfferMessage.js\";\nexport * from \"./models/contractNegotiation/IDataspaceProtocolContractRequestMessage.js\";\nexport * from \"./models/contractNegotiation/types/dataspaceProtocolContractNegotiationEventType.js\";\nexport * from \"./models/contractNegotiation/types/dataspaceProtocolContractNegotiationStateType.js\";\n\nexport * from \"./dataTypes/contractNegotiationDataTypes.js\";\n\n// Transfer Process Protocol\nexport * from \"./models/transferProcess/dataspaceProtocolTransferProcessTypes.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolDataAddress.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolEndpointProperty.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferCompletionMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferError.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferProcess.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferRequestMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferStartMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferSuspensionMessage.js\";\nexport * from \"./models/transferProcess/IDataspaceProtocolTransferTerminationMessage.js\";\nexport * from \"./models/transferProcess/types/dataspaceProtocolTransferProcessStateType.js\";\n\nexport * from \"./dataTypes/transferProcessDataTypes.js\";\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolCatalogError.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalogError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Error.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error\n */\nexport interface IDataspaceProtocolCatalogError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.CatalogError;\n\n\t/**\n\t * The error code.\n\t */\n\tcode: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolCatalogRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolCatalogRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Catalog Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message\n */\nexport interface IDataspaceProtocolCatalogRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.CatalogRequestMessage;\n\n\t/**\n\t * An implementation-specific query or filter expression.\n\t */\n\tfilter?: unknown[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolDatasetRequestMessage.js","sourceRoot":"","sources":["../../../../src/models/catalog/IDataspaceProtocolDatasetRequestMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolCatalogTypes } from \"./dataspaceProtocolCatalogTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Dataset Request Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message\n */\nexport interface IDataspaceProtocolDatasetRequestMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolCatalogTypes.DatasetRequestMessage;\n\n\t/**\n\t * The identifier of the dataset.\n\t */\n\tdataset: string;\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
|
|
6
6
|
*/
|
|
7
7
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
8
|
-
export const
|
|
8
|
+
export const DataspaceProtocolCatalogTypes = {
|
|
9
9
|
/**
|
|
10
10
|
* Catalog Request Message.
|
|
11
11
|
*/
|
|
@@ -19,4 +19,4 @@ export const CatalogTypes = {
|
|
|
19
19
|
*/
|
|
20
20
|
CatalogError: "CatalogError"
|
|
21
21
|
};
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=dataspaceProtocolCatalogTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataspaceProtocolCatalogTypes.js","sourceRoot":"","sources":["../../../../src/models/catalog/dataspaceProtocolCatalogTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;;GAGG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC5C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C;;OAEG;IACH,YAAY,EAAE,cAAc;CACnB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const DataspaceProtocolCatalogTypes = {\n\t/**\n\t * Catalog Request Message.\n\t */\n\tCatalogRequestMessage: \"CatalogRequestMessage\",\n\n\t/**\n\t * Dataset Request Message.\n\t */\n\tDatasetRequestMessage: \"DatasetRequestMessage\",\n\n\t/**\n\t * Catalog Error.\n\t */\n\tCatalogError: \"CatalogError\"\n} as const;\n\n/**\n * The types for Dataspace Protocol Catalog Protocol.\n */\nexport type DataspaceProtocolCatalogTypes =\n\t(typeof DataspaceProtocolCatalogTypes)[keyof typeof DataspaceProtocolCatalogTypes];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractAgreementMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractAgreementMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlAgreement } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-message\n */\nexport interface IDataspaceProtocolContractAgreementMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractAgreementMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The agreement being sent.\n\t */\n\tagreement: IOdrlAgreement;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractAgreementVerificationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractAgreementVerificationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Verification Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-agreement-verification-message\n */\nexport interface IDataspaceProtocolContractAgreementVerificationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractAgreementVerificationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractNegotiation.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\nimport type { DataspaceProtocolContractNegotiationStateType } from \"./types/dataspaceProtocolContractNegotiationStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Agreement Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-contract-negotiation\n */\nexport interface IDataspaceProtocolContractNegotiation {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiation;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\tstate: DataspaceProtocolContractNegotiationStateType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractNegotiationError.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiationError.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Error Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-contract-negotiation-error\n */\nexport interface IDataspaceProtocolContractNegotiationError {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiationError;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The error code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The error reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
package/dist/es/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractNegotiationEventMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiationEventMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\nimport type { DataspaceProtocolContractNegotiationEventType } from \"./types/dataspaceProtocolContractNegotiationEventType.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Event Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-event-message\n */\nexport interface IDataspaceProtocolContractNegotiationEventMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiationEventMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The event type.\n\t */\n\tevent: DataspaceProtocolContractNegotiationEventType;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractNegotiationTerminationMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractNegotiationTerminationMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Negotiation Termination Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-negotiation-termination-message\n */\nexport interface IDataspaceProtocolContractNegotiationTerminationMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractNegotiationTerminationMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * The termination code.\n\t */\n\tcode?: string;\n\n\t/**\n\t * The termination reason(s).\n\t */\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\treason?: any[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IDataspaceProtocolContractOfferMessage.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/IDataspaceProtocolContractOfferMessage.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IOdrlOffer } from \"@twin.org/standards-w3c-odrl\";\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolContractNegotiationTypes } from \"./dataspaceProtocolContractNegotiationTypes.js\";\n\n/**\n * Interface for Dataspace Protocol Contract Offer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#contract-offer-message\n */\nexport interface IDataspaceProtocolContractOfferMessage {\n\t/**\n\t * The JSON-LD context.\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * The type of the message.\n\t */\n\t\"@type\": typeof DataspaceProtocolContractNegotiationTypes.ContractOfferMessage;\n\n\t/**\n\t * The provider id for the contract.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The consumer id for the contract.\n\t */\n\tconsumerPid?: string;\n\n\t/**\n\t * The offer being requested.\n\t */\n\toffer: IOdrlOffer;\n\n\t/**\n\t * The base callback address for the provider to update the consumer on the state of the negotiation.\n\t */\n\tcallbackAddress?: string;\n}\n"]}
|