
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@mitreka/coreflow-types
Advanced tools
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;
}
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>;
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>;
FAQs
CoreFlow Types Definition
The npm package @mitreka/coreflow-types receives a total of 0 weekly downloads. As such, @mitreka/coreflow-types popularity was classified as not popular.
We found that @mitreka/coreflow-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.