Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

@voicenter-team/real-time-events-types

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voicenter-team/real-time-events-types

## Description This project automates the generation of TypeScript types and enums using `openapi-typescript-codegen` from a Swagger JSON file (`data/Swagger.json`). All generated types will be placed in the `dist` folder.

latest
npmnpm
Version
0.0.29
Version published
Maintainers
3
Created
Source

Voicenter real time events types generation

Description

This project automates the generation of TypeScript types and enums using openapi-typescript-codegen from a Swagger JSON file (data/Swagger.json). All generated types will be placed in the dist folder.

Prerequisites

  • Node.js installed
  • Create a .env file based on .env.example to provide necessary environment variables.

Installation

  • Clone this repository:

    git clone repo-url
    cd repo
    
  • Install dependencies:

    yarn
    

Usage

  • Update the Swagger JSON file:

    yarn run update
    
  • Generate TypeScript types:

    yarn run generate
    
  • Or do both:

    yarn run all
    

Scripts

  • update: Updates the Swagger JSON file from db.
  • generate: Generates TypeScript types into dist folder.
  • all: Updates the Swagger JSON file and generates TypeScript types.

Environment Variables

  • DB_PORT: Database port
  • DB_HOST: Database host
  • DB_HOST_NAME: Database host name
  • DB_POOL_USER: Database pool user
  • DB_POOL_PASSWORD: Database pool password
  • DB_POOL_NAME: Database pool name
  • DB_POOL_DOCS_NAME: Database pool docs name
  • DB_POOL_PORT: Database pool port
  • APP_API_SWAGGER_URL: Swagger URL for API
  • PORT: Port number

Notes

  • Ensure that the .env file is properly configured with the required environment variables.
  • Modify the Swagger JSON file (Swagger.json) as per your API specifications.

License

This project is licensed under the MIT License - see the LICENSE file for details.

FAQs

Package last updated on 16 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts