@hsuite/client-types
A comprehensive type system and validation library for Smart Node client operations. This library provides type definitions, interfaces, and runtime validation for client configuration and operations within the Smart Node ecosystem.
Installation
Features
Type-safe client configuration interfaces
Runtime validation for client options
Swagger/OpenAPI documentation support
Comprehensive API documentation
Proper error handling for invalid configurations
Dependencies
Peer Dependencies
@nestjs/common: ^10.4.2
@nestjs/core: ^10.4.2
Dependencies
@hsuite/hashgraph-types: 2.0.0
@hsuite/nestjs-swagger: 2.0.0
Usage
Basic Configuration
API Documentation
IClient Namespace
The IClient
namespace provides interfaces and types for client operations:
IOptions
: Configuration interface for client setupenabled
: Client enablement flagenvironment
: Network environment selectionoperator
: Operator credentialsbaseUrl
: API endpoint configuration
Client Namespace
The Client
namespace provides concrete implementations with runtime validation:
Options
: Class extending_Options
with runtime validationValidates all configuration parameters
Provides type-safe instantiation
Includes Swagger/OpenAPI documentation
Development
Documentation Generation
Generate documentation using Compodoc:
Check documentation coverage:
Version
Current version: 2.0.0
License
This package is part of the HSuite Enterprise ecosystem.
Built with ❤️ by the HbarSuite Team Copyright © 2024 HbarSuite. All rights reserved.
Last updated