register, login, create and manage sites and pages

This commit is contained in:
Krrish Ghimire
2026-06-30 11:13:55 +05:45
commit 65f38d68c5
110 changed files with 28049 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
export interface AuthResponse {
accessToken: string;
refreshToken: string;
tokenType: string;
user: UserInfo;
}
export interface UserInfo {
id: string;
email: string;
name: string;
avatarUrl: string;
provider: 'LOCAL' | 'GOOGLE' | 'GITHUB' | 'OPENID';
}

View File

@@ -0,0 +1,18 @@
export interface PageResponse {
id: string;
siteId: string;
title: string;
slug: string;
seoTitle: string;
seoDescription: string;
orderIndex: number;
createdAt: string;
}
export interface PageRequest {
title: string;
slug: string;
seoTitle?: string;
seoDescription?: string;
orderIndex: number;
}

View File

@@ -0,0 +1,19 @@
export interface SiteResponse {
id: string;
userId: string;
name: string;
description: string;
subdomain: string;
themeConfig: Record<string, unknown>;
status: 'DRAFT' | 'PUBLISHED';
publishedAt: string | null;
createdAt: string;
updatedAt: string;
}
export interface SiteRequest {
name: string;
description: string;
subdomain: string;
themeConfig?: Record<string, unknown>;
}