New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@mitreka/coreflow-types

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@mitreka/coreflow-types

CoreFlow Types Definition

latest
npmnpm
Version
0.0.30-alpha-1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

CoreFlow Types Definition

All entities must extend either BaseEntity or RelationEntity. For example we assume User interface is BaseEntity and UserRole interface is RelationEntity.

entity.ts

export interface BaseEntity extends RelationEntity {
  deleted_at?: Date;
  deleted_by?: string;
}

export interface RelationEntity {
  created_at: Date;
  created_by: string;
  updated_at?: Date;
  updated_by?: string;
}

Base Entity

If you have base schema like this:

CREATE TABLE users (
  "id" primary character varying(255) not null,
  "name" character varying(255) not null,
  "email" character varying(255) not null,
  "password" character varying(255) not null,
  "created_at" timestamp not null default now(),
  "created_by" bigserial not null,
  "updated_at" timestamp,
  "updated_by" bigserial,
  "deleted_at" timestamp,
  "deleted_by" bigserial
);

Then you have to make the entities like these:

export interface UserEntity extends BaseEntity {
  id: string;
  name: string;
  email: string;
  password: string;
}

export type User = Omit<UserEntity, 'id' | keyof BaseEntity>;
export type UserRequest = QueryFilters & BaseEntityFilters &
  Omit<UserEntity, 'password' | keyof BaseEntity>;

Relation Entity

If you have relation schema like this:

CREATE TABLE user_roles (
  "id" primary character varying(255) not null,
  "user_id" character varying(255) not null,
  "role_id" character varying(255) not null,
  "created_at" timestamp not null default now(),
  "created_by" bigserial not null,
  "updated_at" timestamp,
  "updated_by" bigserial
);

Then you have to make the entities like these:

export interface UserRoleEntity extends RelationEntity {
  id: string;
  user_id: string;
  role_id: string;
}

export type UserRole = Omit<UserEntity, 'id' | keyof BaseEntity>;
export type UserRoleRequest = QueryFilters & BaseEntityFilters &
  Omit<UserRoleEntity, keyof BaseEntity>;

Keywords

coreflow

FAQs

Package last updated on 10 Feb 2026

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