@credovo/shared-types
v1.0.0
Published
Shared TypeScript types for Credovo platform
Readme
@credovo/shared-types
Shared TypeScript types for the Credovo platform, used by both backend services and the frontend webapp.
Installation
From GitHub Packages
npm install @credovo/shared-types --registry=https://npm.pkg.github.comFrom npm (if published publicly)
npm install @credovo/shared-typesUsage
import { KYCRequest, KYCResponse, KYBRequest, KYBResponse } from '@credovo/shared-types';
const kycRequest: KYCRequest = {
applicationId: 'app-123',
userId: 'user-456',
type: 'individual',
data: {
firstName: 'John',
lastName: 'Doe',
dateOfBirth: '1990-01-01'
}
};Types Included
Application- Application data structureApplicationStatus- Application status enumKYCRequest/KYCResponse- KYC verification typesKYBRequest/KYBResponse- KYB verification typesConnectorRequest/ConnectorResponse- Connector service typesAddress- Address structureCheckResult- Verification check resultsApiError- API error structure
Publishing
This package is published from the credovo-platform repository:
cd shared/types
npm install
npm run build
npm publish --registry=https://npm.pkg.github.comOr use the script:
.\scripts\publish-shared-types.ps1Versioning
Follows semantic versioning. Update version in package.json before publishing.