@twin.org/standards-dataspace-protocol 0.0.3-next.2 → 0.0.3-next.4

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.
Files changed (88) hide show
  1. package/dist/es/dataTypes/dataspaceProtolDataTypes.js +100 -0
  2. package/dist/es/dataTypes/dataspaceProtolDataTypes.js.map +1 -0
  3. package/dist/es/index.js +10 -4
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/es/models/catalog/ICatalogError.js +2 -0
  6. package/dist/es/models/catalog/ICatalogError.js.map +1 -0
  7. package/dist/es/models/catalog/ICatalogRequestMessage.js +2 -0
  8. package/dist/es/models/catalog/ICatalogRequestMessage.js.map +1 -0
  9. package/dist/es/models/catalog/IDatasetRequestMessage.js +2 -0
  10. package/dist/es/models/catalog/IDatasetRequestMessage.js.map +1 -0
  11. package/dist/es/models/catalog/catalogTypes.js +22 -0
  12. package/dist/es/models/catalog/catalogTypes.js.map +1 -0
  13. package/dist/es/models/contractNegotiation/IContractAgreementMessage.js.map +1 -1
  14. package/dist/es/models/contractNegotiation/IContractAgreementVerificationMessage.js.map +1 -1
  15. package/dist/es/models/contractNegotiation/IContractNegotiation.js.map +1 -1
  16. package/dist/es/models/contractNegotiation/IContractNegotiationError.js.map +1 -1
  17. package/dist/es/models/contractNegotiation/IContractNegotiationEventMessage.js.map +1 -1
  18. package/dist/es/models/contractNegotiation/IContractNegotiationTerminationMessage.js.map +1 -1
  19. package/dist/es/models/contractNegotiation/IContractOfferMessage.js.map +1 -1
  20. package/dist/es/models/contractNegotiation/IContractRequestMessage.js.map +1 -1
  21. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js +1 -1
  22. package/dist/es/models/contractNegotiation/contractNegotiationTypes.js.map +1 -1
  23. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js +1 -1
  24. package/dist/es/models/contractNegotiation/types/contractNegotiationEventType.js.map +1 -1
  25. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js +1 -1
  26. package/dist/es/models/contractNegotiation/types/contractNegotiationStateType.js.map +1 -1
  27. package/dist/es/models/dataspaceProtocolContextType.js +2 -0
  28. package/dist/es/models/dataspaceProtocolContextType.js.map +1 -0
  29. package/dist/es/models/dataspaceProtocolContexts.js +17 -0
  30. package/dist/es/models/dataspaceProtocolContexts.js.map +1 -0
  31. package/dist/es/schemas/CatalogError.json +71 -0
  32. package/dist/es/schemas/CatalogRequestMessage.json +62 -0
  33. package/dist/es/schemas/ContractAgreementMessage.json +4 -4
  34. package/dist/es/schemas/ContractAgreementVerificationMessage.json +4 -4
  35. package/dist/es/schemas/ContractNegotiation.json +4 -4
  36. package/dist/es/schemas/ContractNegotiationError.json +4 -4
  37. package/dist/es/schemas/ContractNegotiationEventMessage.json +4 -4
  38. package/dist/es/schemas/ContractNegotiationTerminationMessage.json +4 -4
  39. package/dist/es/schemas/ContractOfferMessage.json +4 -4
  40. package/dist/es/schemas/ContractRequestMessage.json +4 -4
  41. package/dist/es/schemas/DatasetRequestMessage.json +64 -0
  42. package/dist/types/dataTypes/{contractNegotiationDataTypes.d.ts → dataspaceProtolDataTypes.d.ts} +2 -2
  43. package/dist/types/index.d.ts +7 -3
  44. package/dist/types/models/catalog/ICatalogError.d.ts +24 -0
  45. package/dist/types/models/catalog/ICatalogRequestMessage.d.ts +20 -0
  46. package/dist/types/models/catalog/IDatasetRequestMessage.d.ts +20 -0
  47. package/dist/types/models/catalog/catalogTypes.d.ts +22 -0
  48. package/dist/types/models/contractNegotiation/IContractAgreementMessage.d.ts +2 -2
  49. package/dist/types/models/contractNegotiation/IContractAgreementVerificationMessage.d.ts +2 -2
  50. package/dist/types/models/contractNegotiation/IContractNegotiation.d.ts +2 -2
  51. package/dist/types/models/contractNegotiation/IContractNegotiationError.d.ts +2 -2
  52. package/dist/types/models/contractNegotiation/IContractNegotiationEventMessage.d.ts +2 -2
  53. package/dist/types/models/contractNegotiation/IContractNegotiationTerminationMessage.d.ts +2 -2
  54. package/dist/types/models/contractNegotiation/IContractOfferMessage.d.ts +2 -2
  55. package/dist/types/models/contractNegotiation/IContractRequestMessage.d.ts +2 -2
  56. package/dist/types/models/dataspaceProtocolContextType.d.ts +14 -0
  57. package/dist/types/models/dataspaceProtocolContexts.d.ts +17 -0
  58. package/docs/changelog.md +29 -0
  59. package/docs/reference/classes/{ContractNegotiationDataTypes.md → DataspaceProtocolDataTypes.md} +4 -4
  60. package/docs/reference/index.md +9 -4
  61. package/docs/reference/interfaces/ICatalogError.md +36 -0
  62. package/docs/reference/interfaces/ICatalogRequestMessage.md +28 -0
  63. package/docs/reference/interfaces/IContractAgreementMessage.md +1 -1
  64. package/docs/reference/interfaces/IContractAgreementVerificationMessage.md +1 -1
  65. package/docs/reference/interfaces/IContractNegotiation.md +1 -1
  66. package/docs/reference/interfaces/IContractNegotiationError.md +1 -1
  67. package/docs/reference/interfaces/IContractNegotiationEventMessage.md +1 -1
  68. package/docs/reference/interfaces/IContractNegotiationTerminationMessage.md +1 -1
  69. package/docs/reference/interfaces/IContractOfferMessage.md +1 -1
  70. package/docs/reference/interfaces/IContractRequestMessage.md +1 -1
  71. package/docs/reference/interfaces/IDatasetRequestMessage.md +28 -0
  72. package/docs/reference/type-aliases/CatalogTypes.md +5 -0
  73. package/docs/reference/type-aliases/DataspaceProtocolContextType.md +5 -0
  74. package/docs/reference/type-aliases/DataspaceProtocolContexts.md +5 -0
  75. package/docs/reference/variables/CatalogTypes.md +26 -0
  76. package/docs/reference/variables/DataspaceProtocolContexts.md +19 -0
  77. package/package.json +3 -2
  78. package/dist/es/dataTypes/contractNegotiationDataTypes.js +0 -81
  79. package/dist/es/dataTypes/contractNegotiationDataTypes.js.map +0 -1
  80. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js +0 -2
  81. package/dist/es/models/contractNegotiation/contractNegotiationContextType.js.map +0 -1
  82. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js +0 -17
  83. package/dist/es/models/contractNegotiation/contractNegotiationContexts.js.map +0 -1
  84. package/dist/types/models/contractNegotiation/contractNegotiationContextType.d.ts +0 -14
  85. package/dist/types/models/contractNegotiation/contractNegotiationContexts.d.ts +0 -17
  86. package/docs/reference/type-aliases/ContractNegotiationContextType.md +0 -5
  87. package/docs/reference/type-aliases/ContractNegotiationContexts.md +0 -5
  88. package/docs/reference/variables/ContractNegotiationContexts.md +0 -19
@@ -0,0 +1,36 @@
1
+ # Interface: ICatalogError
2
+
3
+ Interface for Dataspace Protocol Catalog Error.
4
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#error-catalog-error
5
+
6
+ ## Properties
7
+
8
+ ### @context
9
+
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
+
12
+ The JSON-LD context.
13
+
14
+ ***
15
+
16
+ ### @type
17
+
18
+ > **@type**: `"CatalogError"`
19
+
20
+ The type of the message.
21
+
22
+ ***
23
+
24
+ ### code
25
+
26
+ > **code**: `string`
27
+
28
+ The error code.
29
+
30
+ ***
31
+
32
+ ### reasons?
33
+
34
+ > `optional` **reasons**: `string`[]
35
+
36
+ An optional array of error reasons.
@@ -0,0 +1,28 @@
1
+ # Interface: ICatalogRequestMessage
2
+
3
+ Interface for Dataspace Protocol Catalog Request Messages.
4
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-request-message
5
+
6
+ ## Properties
7
+
8
+ ### @context
9
+
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
+
12
+ The JSON-LD context.
13
+
14
+ ***
15
+
16
+ ### @type
17
+
18
+ > **@type**: `"CatalogRequestMessage"`
19
+
20
+ The type of the message.
21
+
22
+ ***
23
+
24
+ ### filter?
25
+
26
+ > `optional` **filter**: `unknown`
27
+
28
+ An implementation-specific query or filter expression.
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#cont
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#cont
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#ack-
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#erro
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#cont
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#cont
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#cont
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -7,7 +7,7 @@ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#cont
7
7
 
8
8
  ### @context
9
9
 
10
- > **@context**: [`ContractNegotiationContextType`](../type-aliases/ContractNegotiationContextType.md)
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
11
 
12
12
  The JSON-LD context.
13
13
 
@@ -0,0 +1,28 @@
1
+ # Interface: IDatasetRequestMessage
2
+
3
+ Interface for Dataspace Protocol Dataset Request Messages.
4
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#dataset-request-message
5
+
6
+ ## Properties
7
+
8
+ ### @context
9
+
10
+ > **@context**: [`DataspaceProtocolContextType`](../type-aliases/DataspaceProtocolContextType.md)
11
+
12
+ The JSON-LD context.
13
+
14
+ ***
15
+
16
+ ### @type
17
+
18
+ > **@type**: `"DatasetRequestMessage"`
19
+
20
+ The type of the message.
21
+
22
+ ***
23
+
24
+ ### dataset
25
+
26
+ > **dataset**: `string`
27
+
28
+ The identifier of the dataset.
@@ -0,0 +1,5 @@
1
+ # Type Alias: CatalogTypes
2
+
3
+ > **CatalogTypes** = *typeof* [`CatalogTypes`](../variables/CatalogTypes.md)\[keyof *typeof* [`CatalogTypes`](../variables/CatalogTypes.md)\]
4
+
5
+ The types for Dataspace Protocol Catalog Protocol.
@@ -0,0 +1,5 @@
1
+ # Type Alias: DataspaceProtocolContextType
2
+
3
+ > **DataspaceProtocolContextType** = *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`ContextRoot`](../variables/DataspaceProtocolContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\]
4
+
5
+ The Dataspace Protocol Protocol JSON-LD context type.
@@ -0,0 +1,5 @@
1
+ # Type Alias: DataspaceProtocolContexts
2
+
3
+ > **DataspaceProtocolContexts** = *typeof* [`DataspaceProtocolContexts`](../variables/DataspaceProtocolContexts.md)\[keyof *typeof* [`DataspaceProtocolContexts`](../variables/DataspaceProtocolContexts.md)\]
4
+
5
+ The contexts for Dataspace Protocol Protocol.
@@ -0,0 +1,26 @@
1
+ # Variable: CatalogTypes
2
+
3
+ > `const` **CatalogTypes**: `object`
4
+
5
+ The types for Dataspace Protocol Catalog Protocol.
6
+ https://eclipse-dataspace-protocol-base.github.io/DataspaceProtocol/2025-1/#catalog-protocol
7
+
8
+ ## Type Declaration
9
+
10
+ ### CatalogRequestMessage
11
+
12
+ > `readonly` **CatalogRequestMessage**: `"CatalogRequestMessage"` = `"CatalogRequestMessage"`
13
+
14
+ Catalog Request Message.
15
+
16
+ ### DatasetRequestMessage
17
+
18
+ > `readonly` **DatasetRequestMessage**: `"DatasetRequestMessage"` = `"DatasetRequestMessage"`
19
+
20
+ Dataset Request Message.
21
+
22
+ ### CatalogError
23
+
24
+ > `readonly` **CatalogError**: `"CatalogError"` = `"CatalogError"`
25
+
26
+ Catalog Error.
@@ -0,0 +1,19 @@
1
+ # Variable: DataspaceProtocolContexts
2
+
3
+ > `const` **DataspaceProtocolContexts**: `object`
4
+
5
+ The contexts for Dataspace Protocol Protocol.
6
+
7
+ ## Type Declaration
8
+
9
+ ### ContextRoot
10
+
11
+ > `readonly` **ContextRoot**: `"https://w3id.org/dspace/2025/1/context.json"` = `"https://w3id.org/dspace/2025/1/context.json"`
12
+
13
+ The context root for Dataspace Protocol Protocol.
14
+
15
+ ### ContextRedirect
16
+
17
+ > `readonly` **ContextRedirect**: `"https://w3id.org/dspace/2025/1/context.jsonld"` = `"https://w3id.org/dspace/2025/1/context.jsonld"`
18
+
19
+ The context redirect for Dataspace Protocol Protocol.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-dataspace-protocol",
3
- "version": "0.0.3-next.2",
3
+ "version": "0.0.3-next.4",
4
4
  "description": "Models which define the structure of Dataspace Protocol",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +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-odrl": "0.0.3-next.2",
20
+ "@twin.org/standards-w3c-dcat": "0.0.3-next.4",
21
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.4",
21
22
  "@twin.org/web": "next"
22
23
  },
23
24
  "main": "./dist/es/index.js",
@@ -1,81 +0,0 @@
1
- import { DataTypeHandlerFactory } from "@twin.org/data-core";
2
- import { JsonLdProcessor } from "@twin.org/data-json-ld";
3
- import { ContractNegotiationContexts } from "../models/contractNegotiation/contractNegotiationContexts.js";
4
- import { ContractNegotiationTypes } from "../models/contractNegotiation/contractNegotiationTypes.js";
5
- import ContractAgreementMessage from "../schemas/ContractAgreementMessage.json" with { type: "json" };
6
- import ContractAgreementVerificationMessage from "../schemas/ContractAgreementVerificationMessage.json" with { type: "json" };
7
- import ContractNegotiation from "../schemas/ContractNegotiation.json" with { type: "json" };
8
- import ContractNegotiationError from "../schemas/ContractNegotiationError.json" with { type: "json" };
9
- import ContractNegotiationEventMessage from "../schemas/ContractNegotiationEventMessage.json" with { type: "json" };
10
- import ContractNegotiationEventType from "../schemas/ContractNegotiationEventType.json" with { type: "json" };
11
- import ContractNegotiationStateType from "../schemas/ContractNegotiationStateType.json" with { type: "json" };
12
- import ContractNegotiationTerminationMessage from "../schemas/ContractNegotiationTerminationMessage.json" with { type: "json" };
13
- import ContractOfferMessage from "../schemas/ContractOfferMessage.json" with { type: "json" };
14
- import ContractRequestMessage from "../schemas/ContractRequestMessage.json" with { type: "json" };
15
- /**
16
- * Handle all the data types for Dataspace Protocol Contract Negotiation.
17
- */
18
- export class ContractNegotiationDataTypes {
19
- /**
20
- * Register the JSON-LD Redirects.
21
- */
22
- static registerRedirects() {
23
- JsonLdProcessor.addRedirect(new RegExp(ContractNegotiationContexts.ContextRoot), ContractNegotiationContexts.ContextRedirect);
24
- }
25
- /**
26
- * Register all the data types.
27
- */
28
- static registerTypes() {
29
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`, () => ({
30
- context: ContractNegotiationContexts.ContextRoot,
31
- type: ContractNegotiationTypes.ContractAgreementMessage,
32
- jsonSchema: async () => ContractAgreementMessage
33
- }));
34
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`, () => ({
35
- context: ContractNegotiationContexts.ContextRoot,
36
- type: ContractNegotiationTypes.ContractAgreementVerificationMessage,
37
- jsonSchema: async () => ContractAgreementVerificationMessage
38
- }));
39
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`, () => ({
40
- context: ContractNegotiationContexts.ContextRoot,
41
- type: ContractNegotiationTypes.ContractNegotiation,
42
- jsonSchema: async () => ContractNegotiation
43
- }));
44
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`, () => ({
45
- context: ContractNegotiationContexts.ContextRoot,
46
- type: ContractNegotiationTypes.ContractNegotiationError,
47
- jsonSchema: async () => ContractNegotiationError
48
- }));
49
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`, () => ({
50
- context: ContractNegotiationContexts.ContextRoot,
51
- type: ContractNegotiationTypes.ContractNegotiationEventMessage,
52
- jsonSchema: async () => ContractNegotiationEventMessage
53
- }));
54
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`, () => ({
55
- context: ContractNegotiationContexts.ContextRoot,
56
- type: ContractNegotiationTypes.ContractNegotiationTerminationMessage,
57
- jsonSchema: async () => ContractNegotiationTerminationMessage
58
- }));
59
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`, () => ({
60
- context: ContractNegotiationContexts.ContextRoot,
61
- type: ContractNegotiationTypes.ContractOfferMessage,
62
- jsonSchema: async () => ContractOfferMessage
63
- }));
64
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`, () => ({
65
- context: ContractNegotiationContexts.ContextRoot,
66
- type: ContractNegotiationTypes.ContractRequestMessage,
67
- jsonSchema: async () => ContractRequestMessage
68
- }));
69
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`, () => ({
70
- context: ContractNegotiationContexts.ContextRoot,
71
- type: ContractNegotiationTypes.ContractNegotiationEventType,
72
- jsonSchema: async () => ContractNegotiationEventType
73
- }));
74
- DataTypeHandlerFactory.register(`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`, () => ({
75
- context: ContractNegotiationContexts.ContextRoot,
76
- type: ContractNegotiationTypes.ContractNegotiationStateType,
77
- jsonSchema: async () => ContractNegotiationStateType
78
- }));
79
- }
80
- }
81
- //# sourceMappingURL=contractNegotiationDataTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contractNegotiationDataTypes.js","sourceRoot":"","s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AE,wBAAwB,CAAC,4BAA4B;YAC3D,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,4BAA2C;SACnE,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,2BAA2B,CAAC,WAAW,GAAG,wBAAwB,CAAC,4BAA4B,EAAE,EACpG,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,2BAA2B,CAAC,WAAW;YAChD,IAAI,EAAE,wBAAwB,CAAC,4BAA4B;YAC3D,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,4BAA2C;SACnE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 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 { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { ContractNegotiationContexts } from \"../models/contractNegotiation/contractNegotiationContexts.js\";\nimport { ContractNegotiationTypes } from \"../models/contractNegotiation/contractNegotiationTypes.js\";\nimport ContractAgreementMessage from \"../schemas/ContractAgreementMessage.json\" with { type: \"json\" };\nimport ContractAgreementVerificationMessage from \"../schemas/ContractAgreementVerificationMessage.json\" with { type: \"json\" };\nimport ContractNegotiation from \"../schemas/ContractNegotiation.json\" with { type: \"json\" };\nimport ContractNegotiationError from \"../schemas/ContractNegotiationError.json\" with { type: \"json\" };\nimport ContractNegotiationEventMessage from \"../schemas/ContractNegotiationEventMessage.json\" with { type: \"json\" };\nimport ContractNegotiationEventType from \"../schemas/ContractNegotiationEventType.json\" with { type: \"json\" };\nimport ContractNegotiationStateType from \"../schemas/ContractNegotiationStateType.json\" with { type: \"json\" };\nimport ContractNegotiationTerminationMessage from \"../schemas/ContractNegotiationTerminationMessage.json\" with { type: \"json\" };\nimport ContractOfferMessage from \"../schemas/ContractOfferMessage.json\" with { type: \"json\" };\nimport ContractRequestMessage from \"../schemas/ContractRequestMessage.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Dataspace Protocol Contract Negotiation.\n */\nexport class ContractNegotiationDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(\n\t\t\tnew RegExp(ContractNegotiationContexts.ContextRoot),\n\t\t\tContractNegotiationContexts.ContextRedirect\n\t\t);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractAgreementVerificationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationError}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationTerminationMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractOfferMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractRequestMessage}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationEventType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.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`${ContractNegotiationContexts.ContextRoot}${ContractNegotiationTypes.ContractNegotiationStateType}`,\n\t\t\t() => ({\n\t\t\t\tcontext: ContractNegotiationContexts.ContextRoot,\n\t\t\t\ttype: ContractNegotiationTypes.ContractNegotiationStateType,\n\t\t\t\tjsonSchema: async () => ContractNegotiationStateType as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=contractNegotiationContextType.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contractNegotiationContextType.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { ContractNegotiationContexts } from \"./contractNegotiationContexts.js\";\n\n/**\n * The Dataspace Protocol Contract Negotiation JSON-LD context type.\n */\nexport type ContractNegotiationContextType =\n\t| typeof ContractNegotiationContexts.ContextRoot\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof ContractNegotiationContexts.ContextRoot,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof ContractNegotiationContexts.ContextRoot,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
@@ -1,17 +0,0 @@
1
- // Copyright 2024 IOTA Stiftung.
2
- // SPDX-License-Identifier: Apache-2.0.
3
- /**
4
- * The contexts for Dataspace Protocol Contract Negotiation Protocol.
5
- */
6
- // eslint-disable-next-line @typescript-eslint/naming-convention
7
- export const ContractNegotiationContexts = {
8
- /**
9
- * The context root for Dataspace Protocol Contract Negotiation Protocol.
10
- */
11
- ContextRoot: "https://w3id.org/dspace/2024/1/context.json",
12
- /**
13
- * The context redirect for Dataspace Protocol Contract Negotiation Protocol.
14
- */
15
- ContextRedirect: "https://w3id.org/dspace/2025/1/context.jsonld"
16
- };
17
- //# sourceMappingURL=contractNegotiationContexts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"contractNegotiationContexts.js","sourceRoot":"","sources":["../../../../src/models/contractNegotiation/contractNegotiationContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,2BAA2B,GAAG;IAC1C;;OAEG;IACH,WAAW,EAAE,6CAA6C;IAE1D;;OAEG;IACH,eAAe,EAAE,+CAA+C;CACvD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts for Dataspace Protocol Contract Negotiation Protocol.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ContractNegotiationContexts = {\n\t/**\n\t * The context root for Dataspace Protocol Contract Negotiation Protocol.\n\t */\n\tContextRoot: \"https://w3id.org/dspace/2024/1/context.json\",\n\n\t/**\n\t * The context redirect for Dataspace Protocol Contract Negotiation Protocol.\n\t */\n\tContextRedirect: \"https://w3id.org/dspace/2025/1/context.jsonld\"\n} as const;\n\n/**\n * The contexts for Dataspace Protocol Contract Negotiation Protocol.\n */\nexport type ContractNegotiationContexts =\n\t(typeof ContractNegotiationContexts)[keyof typeof ContractNegotiationContexts];\n"]}
@@ -1,14 +0,0 @@
1
- import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
- import type { ContractNegotiationContexts } from "./contractNegotiationContexts.js";
3
- /**
4
- * The Dataspace Protocol Contract Negotiation JSON-LD context type.
5
- */
6
- export type ContractNegotiationContextType = typeof ContractNegotiationContexts.ContextRoot | [
7
- ...IJsonLdContextDefinitionElement[],
8
- typeof ContractNegotiationContexts.ContextRoot,
9
- IJsonLdContextDefinitionElement
10
- ] | [
11
- IJsonLdContextDefinitionElement,
12
- typeof ContractNegotiationContexts.ContextRoot,
13
- ...IJsonLdContextDefinitionElement[]
14
- ];
@@ -1,17 +0,0 @@
1
- /**
2
- * The contexts for Dataspace Protocol Contract Negotiation Protocol.
3
- */
4
- export declare const ContractNegotiationContexts: {
5
- /**
6
- * The context root for Dataspace Protocol Contract Negotiation Protocol.
7
- */
8
- readonly ContextRoot: "https://w3id.org/dspace/2024/1/context.json";
9
- /**
10
- * The context redirect for Dataspace Protocol Contract Negotiation Protocol.
11
- */
12
- readonly ContextRedirect: "https://w3id.org/dspace/2025/1/context.jsonld";
13
- };
14
- /**
15
- * The contexts for Dataspace Protocol Contract Negotiation Protocol.
16
- */
17
- export type ContractNegotiationContexts = (typeof ContractNegotiationContexts)[keyof typeof ContractNegotiationContexts];
@@ -1,5 +0,0 @@
1
- # Type Alias: ContractNegotiationContextType
2
-
3
- > **ContractNegotiationContextType** = *typeof* [`ContextRoot`](../variables/ContractNegotiationContexts.md#contextroot) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/ContractNegotiationContexts.md#contextroot), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`ContextRoot`](../variables/ContractNegotiationContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\]
4
-
5
- The Dataspace Protocol Contract Negotiation JSON-LD context type.
@@ -1,5 +0,0 @@
1
- # Type Alias: ContractNegotiationContexts
2
-
3
- > **ContractNegotiationContexts** = *typeof* [`ContractNegotiationContexts`](../variables/ContractNegotiationContexts.md)\[keyof *typeof* [`ContractNegotiationContexts`](../variables/ContractNegotiationContexts.md)\]
4
-
5
- The contexts for Dataspace Protocol Contract Negotiation Protocol.
@@ -1,19 +0,0 @@
1
- # Variable: ContractNegotiationContexts
2
-
3
- > `const` **ContractNegotiationContexts**: `object`
4
-
5
- The contexts for Dataspace Protocol Contract Negotiation Protocol.
6
-
7
- ## Type Declaration
8
-
9
- ### ContextRoot
10
-
11
- > `readonly` **ContextRoot**: `"https://w3id.org/dspace/2024/1/context.json"` = `"https://w3id.org/dspace/2024/1/context.json"`
12
-
13
- The context root for Dataspace Protocol Contract Negotiation Protocol.
14
-
15
- ### ContextRedirect
16
-
17
- > `readonly` **ContextRedirect**: `"https://w3id.org/dspace/2025/1/context.jsonld"` = `"https://w3id.org/dspace/2025/1/context.jsonld"`
18
-
19
- The context redirect for Dataspace Protocol Contract Negotiation Protocol.