@anchrd/intel-contract 0.4.2 → 0.7.0

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/README.md CHANGED
@@ -16,10 +16,10 @@ npm install @anchrd/intel-contract
16
16
  ## Use
17
17
 
18
18
  ```ts
19
- import { CreateKnowledgeNodeInput, KnowledgeNode } from "@anchrd/intel-contract";
19
+ import { CreateNodeInput, Node } from "@anchrd/intel-contract";
20
20
 
21
- const input = CreateKnowledgeNodeInput.parse(payload);
22
- const node = KnowledgeNode.parse(await response.json());
21
+ const input = CreateNodeInput.parse(payload);
22
+ const node = Node.parse(await response.json());
23
23
  ```
24
24
 
25
25
  Mutation inputs are strict: an unknown field is rejected rather than silently dropped, so a typo in