@twin.org/immutable-proof-models 0.0.1-next.12 → 0.0.1-next.14

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.
@@ -141,6 +141,20 @@ const ImmutableProofFailure = {
141
141
  SignatureMismatch: "signatureMismatch"
142
142
  };
143
143
 
144
+ // Copyright 2024 IOTA Stiftung.
145
+ // SPDX-License-Identifier: Apache-2.0.
146
+ /**
147
+ * The topics for immutable proof event bus notifications.
148
+ */
149
+ // eslint-disable-next-line @typescript-eslint/naming-convention
150
+ const ImmutableProofTopics = {
151
+ /**
152
+ * A proof was created.
153
+ */
154
+ ProofCreated: "immutable-proof:proof-created"
155
+ };
156
+
144
157
  exports.ImmutableProofDataTypes = ImmutableProofDataTypes;
145
158
  exports.ImmutableProofFailure = ImmutableProofFailure;
159
+ exports.ImmutableProofTopics = ImmutableProofTopics;
146
160
  exports.ImmutableProofTypes = ImmutableProofTypes;
@@ -139,4 +139,17 @@ const ImmutableProofFailure = {
139
139
  SignatureMismatch: "signatureMismatch"
140
140
  };
141
141
 
142
- export { ImmutableProofDataTypes, ImmutableProofFailure, ImmutableProofTypes };
142
+ // Copyright 2024 IOTA Stiftung.
143
+ // SPDX-License-Identifier: Apache-2.0.
144
+ /**
145
+ * The topics for immutable proof event bus notifications.
146
+ */
147
+ // eslint-disable-next-line @typescript-eslint/naming-convention
148
+ const ImmutableProofTopics = {
149
+ /**
150
+ * A proof was created.
151
+ */
152
+ ProofCreated: "immutable-proof:proof-created"
153
+ };
154
+
155
+ export { ImmutableProofDataTypes, ImmutableProofFailure, ImmutableProofTopics, ImmutableProofTypes };
@@ -4,8 +4,10 @@ export * from "./models/api/IImmutableProofGetRequest";
4
4
  export * from "./models/api/IImmutableProofGetResponse";
5
5
  export * from "./models/api/IImmutableProofVerifyRequest";
6
6
  export * from "./models/api/IImmutableProofVerifyResponse";
7
+ export * from "./models/eventBus/IImmutableProofEventBusProofCreated";
7
8
  export * from "./models/IImmutableProof";
8
- export * from "./models/IImmutableProofVerification";
9
9
  export * from "./models/IImmutableProofComponent";
10
+ export * from "./models/IImmutableProofVerification";
10
11
  export * from "./models/immutableProofFailure";
12
+ export * from "./models/immutableProofTopics";
11
13
  export * from "./models/immutableProofTypes";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Event bus payload for proof created.
3
+ */
4
+ export interface IImmutableProofEventBusProofCreated {
5
+ /**
6
+ * The id of the proof created.
7
+ */
8
+ id: string;
9
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The topics for immutable proof event bus notifications.
3
+ */
4
+ export declare const ImmutableProofTopics: {
5
+ /**
6
+ * A proof was created.
7
+ */
8
+ readonly ProofCreated: "immutable-proof:proof-created";
9
+ };
10
+ /**
11
+ * The topics for immutable proof event bus notifications.
12
+ */
13
+ export type ImmutableProofTopics = (typeof ImmutableProofTopics)[keyof typeof ImmutableProofTopics];
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-models - Changelog
2
2
 
3
- ## v0.0.1-next.12
3
+ ## v0.0.1-next.14
4
4
 
5
5
  - Initial Release
@@ -14,13 +14,16 @@
14
14
  - [IImmutableProofGetResponse](interfaces/IImmutableProofGetResponse.md)
15
15
  - [IImmutableProofVerifyRequest](interfaces/IImmutableProofVerifyRequest.md)
16
16
  - [IImmutableProofVerifyResponse](interfaces/IImmutableProofVerifyResponse.md)
17
+ - [IImmutableProofEventBusProofCreated](interfaces/IImmutableProofEventBusProofCreated.md)
17
18
 
18
19
  ## Type Aliases
19
20
 
20
21
  - [ImmutableProofFailure](type-aliases/ImmutableProofFailure.md)
22
+ - [ImmutableProofTopics](type-aliases/ImmutableProofTopics.md)
21
23
  - [ImmutableProofTypes](type-aliases/ImmutableProofTypes.md)
22
24
 
23
25
  ## Variables
24
26
 
25
27
  - [ImmutableProofFailure](variables/ImmutableProofFailure.md)
28
+ - [ImmutableProofTopics](variables/ImmutableProofTopics.md)
26
29
  - [ImmutableProofTypes](variables/ImmutableProofTypes.md)
@@ -0,0 +1,11 @@
1
+ # Interface: IImmutableProofEventBusProofCreated
2
+
3
+ Event bus payload for proof created.
4
+
5
+ ## Properties
6
+
7
+ ### id
8
+
9
+ > **id**: `string`
10
+
11
+ The id of the proof created.
@@ -0,0 +1,5 @@
1
+ # Type Alias: ImmutableProofTopics
2
+
3
+ > **ImmutableProofTopics**: *typeof* [`ImmutableProofTopics`](../variables/ImmutableProofTopics.md)\[keyof *typeof* [`ImmutableProofTopics`](../variables/ImmutableProofTopics.md)\]
4
+
5
+ The topics for immutable proof event bus notifications.
@@ -0,0 +1,13 @@
1
+ # Variable: ImmutableProofTopics
2
+
3
+ > `const` **ImmutableProofTopics**: `object`
4
+
5
+ The topics for immutable proof event bus notifications.
6
+
7
+ ## Type declaration
8
+
9
+ ### ProofCreated
10
+
11
+ > `readonly` **ProofCreated**: `"immutable-proof:proof-created"` = `"immutable-proof:proof-created"`
12
+
13
+ A proof was created.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-models",
3
- "version": "0.0.1-next.12",
3
+ "version": "0.0.1-next.14",
4
4
  "description": "Models which define the structure of the immutable proof connectors and services",
5
5
  "repository": {
6
6
  "type": "git",