@deondigital/api-client
v25.0.0
Published
REST client for Deon Digital CSL service
Downloads
49
Maintainers
Keywords
Readme
REST client for Deon Digital's API
Changelog
25.0.0 - 2023-12-06
- Removed Corda constructs.
24.0.0 - 2023-03-09
- Added
PrefixGuardto contract prefixes. - Added
guard: PrefixGuardtoEventPredicate. - Removed
isConfidentialfromExternalObject.CordaAgent.
23.0.0 - 2022-06-01
- Changed
ReifiedCSLEnvto point to a global and local environment.
22.0.0 - 2022-04-05
- Added flags
isPropertyandisTestforReifiedValBinding.
21.0.0 - 2021-05-28
- Added types for
ReifiedPattern.
20.0.0 - 2021-04-09
- Added
InstantiationDetails.entryPointandInstantiationDetails.argumentfields. - Added
EventPredicate.eventNamefield. - Add warnings to
BadRequestError. - Added support for the
CordaContractdata type. - Renamed the
ExternalObject.mkContractfunction toExternalObject.mkStringContract. - Added
novateContractcommand for contracts.
19.0.0 - 2021-02-17
- Renamed the
DateTimeCSL type toInstant. - Added support for new date/time types.
- Added description and termination time as parameters to termination command.
- Changed
declarationExpressionArgumentstodeclarationExpressionArgument. It is now a single value instead of a list of values. - Moved
instantiationTimeintoinstantiationDetailsin the Contract interface.
18.0.0 - 2021-01-20
- Added support to expose entrypoint signatures.
- Added
unitNamefield toGuardErrorto indicate which file a guard error occurred in when using multi-file projects. - Added a terminate command, which disallows applying further events on a contract.
- Added support for
contract entrypoint.
17.1.0 - 2020-11-05
- Add support for CSL contract lambdas.
17.0.0 - 2020-10-16
- Parameterize Case over type of body.
- Added endpoint for
/csl/ontology. - Added support for the unit type, represented as the empty tuple.
16.1.0 - 2020-09-10
- Added support for CSL's built-in
Settype. - Added support for retrieving and working with residual contracts.
- Added support for warnings from the type checker.
- Fix bug where refresh is needed after instantiating a contract, by correcting the ContractUpdate type.
16.0.1 - 2020-05-28
- Fix bug in representation of
ExternalObject.CordaAgent.
16.0.0 - 2020-05-20
- The API is now split up into two parts: an anonymous API that does not require authentication and an identified API that does. The "authentication" is for now just a header that states which of the known identities of the ledger backed that performs a given request.
15.0.0 - 2020-05-07
- Removed the
ContractApi.treeendpoint andContractTreetype. - Introduced the
ExternalObject.CordaAgenttype for handling agent types coming from Corda backends - Renamed
mkAgentValueandExternalObject.mkAgenttomkStringAgentValueandExternalObject.mkStringAgentrespectively to closer match the generated object.
14.2.0 - 2020-04-15
- The
Durationtype is now aclasswithequalsandhashCodemethods. This makes it possible to use it with the containers inimmutable-js.
14.1.2 - 2020-03-27
- Aligned error codes with current version of the API webservice.
14.1.1 - 2020-03-09
- Tags are now always returned when applying events.
14.1.0 - 2020-02-21
- Support for built-in CSL
Maptype.
14.0.0 - 2020-02-10
- Added the function
reportWithNamein theDeclarationsApifor calling the new endpoint/declarations/${id}/namedReport. - Added types for
Exp,Type, andAgentMatcher. UpdatedEventPredicateto use these types.
13.0.0 - 2020-01-28
- The functions for calling reports,
reportandreportOnContract, have been moved to theDeclarationsApi. The latter has been renamedreportOnDeclarationand now takes a declaration id instead of a contract id. - The
Contractinterface now contains the list of participants that the contract was instantiated with. - The
peersfield inInstantiationInputis now anExternalObject. - The field
peershas been removed from theNodeInfoOutputinterface.
12.2.0 - 2020-01-09
- Add
CallError,CSLError, andSerializationErrorto possibleCheckErrortypes. - Handle the more structured
BadRequestErrorfrom Deon APIv0.53.0. - Correct the
Durationvalidation logic to match the intended format. Now supportsPnDTnHnMnSinstead ofPnYnMnDTnHnMnS, to follow the duration libraries in Java and Haskell.
12.0.0 - 2019-10-18
- Remove
Pseudoand replace it withExternalObjectwhich is equivalent except that it doesn't require the specification of "bound names". - Change
ContractIdtoContracteverywhere for consistency withAgent. - Remove
ContractIdentifierandAgentIdentifier. Where type safety is wanted, useExternalObject.StringContractandExternalObject.StringAgent.
11.0.0 - 2019-09-27
- Remove
InstantiationArgumentandSelfContractIdas this is not supported with the removal of getEvents.
10.3.0 - 2019-08-05
- Added
Contracts.getEventsfor the newGET /contracts/{id}/eventsendpoint.
10.2.0 - 2019-05-24
- Removed support for database values as they were removed from the query language.
10.1.0 - 2019-05-15
- Added support for the database values used in the new query language.
10.0.0 - 2019-02-25
- Improved error handling for
CslApi.checkandCslApi.checkExpression. - Changed the representation of floating point values to be string rather than number. With version v0.35.0 of the server we use decimal128 rather than binary64 for floating point numbers, and
decimal128cannot be represented in a TypeScript number.
9.0.0 - 2019-02-25
- Use new data model for
CheckErrorfrom Deon APIv0.29.0.
8.0.0 - 2019-02-19
- API change for
DeonRestClientconstructor: hook now has type(r: Promise<Response>) => Promise<Response>and can catch rejected promises.
7.0.0 - 2019-01-03
AgentValuenow has a properAgentIdentifierinstead of a string.
6.1.1 - 2018-12-20
- Corrected error when publishing npm package
6.1.0 - 2018-12-20
- Added
TupleValuethat handles tupled-values in CSL.
6.0.0 - 2018-11-29
- Breaking:
Signedis now generic since its CSL type is polymorphic.
5.0.0 - 2018-11-21
- Breaking:
PseudoValues now takestringasboundNameinstead ofQualifiedName.
4.0.0 - 2018-10-29
- Breaking: Use new
PseudoValueconstructor to represent pseudo-syntactic values.
3.5.1 - 2018-10-25
- Fixed a bug when (de)serializing elliptic curve names.
3.5.0 - 2018-10-12
- Added
SignedValueandPublicKeyValuethat models signed data. There are also functions to construct such values using OpenSSL generated keys in the PEM format.
3.4.0 - 2018-10-04
- Added a
ContractIdValuethat holds information about instantiated contracts. This value is returned fromPOST /contracts.
3.3.0 - 2018-09-21
- Add support for
SelfContractIdinstantiation argument, which resolves to the id of the contract that is being instantiated. Requires Deon API version 0.22.0. - Added mock versions of the APIs to assist in testing with mocking frameworks.
3.2.0 - 2018-08-30
- Expose ISO8601 duration parsing functionality.
- Support for duration primitive datatype.
- (Note: Requires Deon-api version 0.22.0) Introduced a
NodeInfo.getAgents()that wraps the api call/agents, to request agent values from the back end.
