c0py: initial scaffolding for website registry tool
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"name": "@siax/c0py-types",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"test": "vitest run"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.7.2",
|
||||
"vitest": "^3.0.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
export interface Page {
|
||||
id: string;
|
||||
registryId: string;
|
||||
url: string;
|
||||
path: string;
|
||||
title: string | null;
|
||||
description: string | null;
|
||||
statusCode: number;
|
||||
contentType: string | null;
|
||||
discoveredAt: Date;
|
||||
analysis: Record<string, unknown> | null;
|
||||
}
|
||||
|
||||
export interface ScanRun {
|
||||
id: string;
|
||||
registryId: string;
|
||||
url: string;
|
||||
status: "pending" | "running" | "completed" | "failed";
|
||||
startedAt: Date;
|
||||
completedAt: Date | null;
|
||||
error: string | null;
|
||||
}
|
||||
|
||||
export interface Registry {
|
||||
id: string;
|
||||
url: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
# C0PY Types Package -- tsconfig.json
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"strict": true,
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"declaration": true,
|
||||
"outDir": "dist",
|
||||
"baseUrl": "."
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"type": "vitest"}
|
||||
Reference in New Issue
Block a user