@twin.org/standards-dataspace-protocol 0.0.3-next.8 → 0.0.3-next.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"IDataspaceProtocolTransferProcess.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/IDataspaceProtocolTransferProcess.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolTransferProcessTypes } from \"./dataspaceProtocolTransferProcessTypes.js\";\nimport type { DataspaceProtocolTransferProcessStateType } from \"./types/dataspaceProtocolTransferProcessStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process\n */\nexport interface IDataspaceProtocolTransferProcess {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof DataspaceProtocolTransferProcessTypes.TransferProcess;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The transfer process state.\n\t */\n\tstate: typeof DataspaceProtocolTransferProcessStateType;\n}\n"]}
1
+ {"version":3,"file":"IDataspaceProtocolTransferProcess.js","sourceRoot":"","sources":["../../../../src/models/transferProcess/IDataspaceProtocolTransferProcess.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { DataspaceProtocolContextType } from \"../dataspaceProtocolContextType.js\";\nimport type { DataspaceProtocolTransferProcessTypes } from \"./dataspaceProtocolTransferProcessTypes.js\";\nimport type { DataspaceProtocolTransferProcessStateType } from \"./types/dataspaceProtocolTransferProcessStateType.js\";\n\n/**\n * Interface for Dataspace Protocol Transfer Messages.\n * https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/#ack-transfer-process\n */\nexport interface IDataspaceProtocolTransferProcess {\n\t/**\n\t * LD Context\n\t */\n\t\"@context\": DataspaceProtocolContextType;\n\n\t/**\n\t * LD Type\n\t */\n\t\"@type\": typeof DataspaceProtocolTransferProcessTypes.TransferProcess;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Consumer side.\n\t */\n\tconsumerPid: string;\n\n\t/**\n\t * MUST refer to the transfer identifier of the Provider side.\n\t */\n\tproviderPid: string;\n\n\t/**\n\t * The transfer process state.\n\t */\n\tstate: DataspaceProtocolTransferProcessStateType;\n}\n"]}
@@ -64,37 +64,7 @@
64
64
  "description": "MUST refer to the transfer identifier of the Provider side."
65
65
  },
66
66
  "state": {
67
- "type": "object",
68
- "properties": {
69
- "COMPLETED": {
70
- "type": "string",
71
- "const": "COMPLETED"
72
- },
73
- "REQUESTED": {
74
- "type": "string",
75
- "const": "REQUESTED"
76
- },
77
- "STARTED": {
78
- "type": "string",
79
- "const": "STARTED"
80
- },
81
- "SUSPENDED": {
82
- "type": "string",
83
- "const": "SUSPENDED"
84
- },
85
- "TERMINATED": {
86
- "type": "string",
87
- "const": "TERMINATED"
88
- }
89
- },
90
- "required": [
91
- "COMPLETED",
92
- "REQUESTED",
93
- "STARTED",
94
- "SUSPENDED",
95
- "TERMINATED"
96
- ],
97
- "additionalProperties": false,
67
+ "$ref": "https://schema.twindev.org/dataspace-protocol/DataspaceProtocolTransferProcessStateType",
98
68
  "description": "The transfer process state."
99
69
  }
100
70
  },
@@ -25,5 +25,5 @@ export interface IDataspaceProtocolTransferProcess {
25
25
  /**
26
26
  * The transfer process state.
27
27
  */
28
- state: typeof DataspaceProtocolTransferProcessStateType;
28
+ state: DataspaceProtocolTransferProcessStateType;
29
29
  }
package/docs/changelog.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.9](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.8...standards-dataspace-protocol-v0.0.3-next.9) (2026-01-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * removing typeof in the state of the IDataspaceProtocolTransferProcess model ([#94](https://github.com/twinfoundation/standards/issues/94)) ([2b9814e](https://github.com/twinfoundation/standards/commit/2b9814e4882a505a087455271782cd6d4ba5305d))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/standards-w3c-dcat bumped from 0.0.3-next.8 to 0.0.3-next.9
16
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.8 to 0.0.3-next.9
17
+ * devDependencies
18
+ * @twin.org/standards-ld-contexts bumped from 0.0.3-next.8 to 0.0.3-next.9
19
+
3
20
  ## [0.0.3-next.8](https://github.com/twinfoundation/standards/compare/standards-dataspace-protocol-v0.0.3-next.7...standards-dataspace-protocol-v0.0.3-next.8) (2026-01-08)
4
21
 
5
22
 
@@ -39,36 +39,6 @@ MUST refer to the transfer identifier of the Provider side.
39
39
 
40
40
  ### state
41
41
 
42
- > **state**: `object`
42
+ > **state**: `string`
43
43
 
44
44
  The transfer process state.
45
-
46
- #### COMPLETED
47
-
48
- > **COMPLETED**: `string` = `"COMPLETED"`
49
-
50
- Completed
51
-
52
- #### REQUESTED
53
-
54
- > **REQUESTED**: `string` = `"REQUESTED"`
55
-
56
- Requested
57
-
58
- #### STARTED
59
-
60
- > **STARTED**: `string` = `"STARTED"`
61
-
62
- Started
63
-
64
- #### SUSPENDED
65
-
66
- > **SUSPENDED**: `string` = `"SUSPENDED"`
67
-
68
- Suspended
69
-
70
- #### TERMINATED
71
-
72
- > **TERMINATED**: `string` = `"TERMINATED"`
73
-
74
- Terminated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dataspace-protocol",
3
- "version": "0.0.3-next.8",
3
+ "version": "0.0.3-next.9",
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.8",
21
- "@twin.org/standards-w3c-odrl": "0.0.3-next.8",
20
+ "@twin.org/standards-w3c-dcat": "0.0.3-next.9",
21
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.9",
22
22
  "@twin.org/web": "next"
23
23
  },
24
24
  "main": "./dist/es/index.js",