0.1.9 β€’ Published 11 months ago

@schemifyjs/types v0.1.9

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

@schemify/types

πŸ“¦ Shared TypeScript contracts and interfaces for the Schemify ecosystem.

English | EspaΓ±ol


English

πŸ“š Overview

@schemify/types is the canonical source of shared types and contracts used across all Schemify-based microservices.

It ensures strong typing, interoperability, and consistency between:

  • gRPC DTOs
  • Kafka messages
  • Domain events
  • Common utility types (e.g. pagination, errors)

πŸ“¦ Installation

npm install @schemify/types

🧠 Usage

Import types in your microservices or libraries:

import { CreateExampleDto, ExampleEvent } from '@schemify/types';

All types are generated or curated to match the shared protocol contracts defined in the repo schemify-microservice.


πŸ”§ Structure

@schemify/types
β”œβ”€β”€ grpc/
β”‚   β”œβ”€β”€ example.proto.ts
β”‚   └── ...
β”œβ”€β”€ kafka/
β”‚   β”œβ”€β”€ events/
β”‚   β”œβ”€β”€ topics.ts
β”‚   └── ...
β”œβ”€β”€ common/
β”‚   β”œβ”€β”€ pagination.ts
β”‚   β”œβ”€β”€ error.ts
β”‚   └── ...
└── index.ts

EspaΓ±ol

πŸ“š DescripciΓ³n

@schemify/types es el paquete central de tipos y contratos compartidos entre todos los microservicios basados en Schemify.

Asegura un tipado fuerte, interoperabilidad y coherencia entre:

  • DTOs para gRPC
  • Mensajes Kafka
  • Eventos de dominio
  • Tipos comunes (paginaciΓ³n, errores, etc.)

πŸ“¦ InstalaciΓ³n

npm install @schemify/types

🧠 Uso

Importa los tipos en tus microservicios o librerΓ­as:

import { CreateExampleDto, ExampleEvent } from '@schemify/types';

Los tipos estΓ‘n alineados con los contratos definidos en el repositorio schemify-microservice.


πŸ”§ Estructura

@schemify/types
β”œβ”€β”€ grpc/
β”‚   β”œβ”€β”€ example.proto.ts
β”‚   └── ...
β”œβ”€β”€ kafka/
β”‚   β”œβ”€β”€ events/
β”‚   β”œβ”€β”€ topics.ts
β”‚   └── ...
β”œβ”€β”€ common/
β”‚   β”œβ”€β”€ pagination.ts
β”‚   β”œβ”€β”€ error.ts
β”‚   └── ...
└── index.ts

βœ… Ideal for monorepos, package sharing, and scalable microservice boundaries.

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago