refactor(schemas): group network schemas by direction
Move request and response schemas into matching subdirectories, extract the shared chat lock type, and update barrels and imports without changing wire formats.
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
FacebookIdentityRequestSchema,
|
||||
type FacebookIdentityRequestInput,
|
||||
type FacebookIdentityRequestData,
|
||||
} from "@/data/schemas/auth/facebook_identity_request";
|
||||
} from "@/data/schemas/auth/request/facebook_identity_request";
|
||||
|
||||
export class FacebookIdentityRequest {
|
||||
private constructor(input: FacebookIdentityRequestInput) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
FacebookLoginRequestSchema,
|
||||
type FacebookLoginRequestInput,
|
||||
type FacebookLoginRequestData,
|
||||
} from "@/data/schemas/auth/facebook_login_request";
|
||||
} from "@/data/schemas/auth/request/facebook_login_request";
|
||||
|
||||
export class FacebookLoginRequest {
|
||||
declare readonly accessToken: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
FacebookPsidLoginRequestSchema,
|
||||
type FacebookPsidLoginRequestInput,
|
||||
type FacebookPsidLoginRequestData,
|
||||
} from "@/data/schemas/auth/facebook_psid_login_request";
|
||||
} from "@/data/schemas/auth/request/facebook_psid_login_request";
|
||||
|
||||
export class FacebookPsidLoginRequest {
|
||||
private constructor(input: FacebookPsidLoginRequestInput) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
FbIdLoginRequestSchema,
|
||||
type FbIdLoginRequestInput,
|
||||
type FbIdLoginRequestData,
|
||||
} from "@/data/schemas/auth/fb_id_login_request";
|
||||
} from "@/data/schemas/auth/request/fb_id_login_request";
|
||||
|
||||
export class FbIdLoginRequest {
|
||||
declare readonly fbId: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
GoogleLoginRequestSchema,
|
||||
type GoogleLoginRequestInput,
|
||||
type GoogleLoginRequestData,
|
||||
} from "@/data/schemas/auth/google_login_request";
|
||||
} from "@/data/schemas/auth/request/google_login_request";
|
||||
|
||||
export class GoogleLoginRequest {
|
||||
declare readonly idToken: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
GuestLoginRequestSchema,
|
||||
type GuestLoginRequestInput,
|
||||
type GuestLoginRequestData,
|
||||
} from "@/data/schemas/auth/guest_login_request";
|
||||
} from "@/data/schemas/auth/request/guest_login_request";
|
||||
|
||||
export class GuestLoginRequest {
|
||||
declare readonly deviceId: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
LoginRequestSchema,
|
||||
type LoginRequestInput,
|
||||
type LoginRequestData,
|
||||
} from "@/data/schemas/auth/login_request";
|
||||
} from "@/data/schemas/auth/request/login_request";
|
||||
|
||||
export class LoginRequest {
|
||||
declare readonly email: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
RefreshTokenRequestSchema,
|
||||
type RefreshTokenRequestInput,
|
||||
type RefreshTokenRequestData,
|
||||
} from "@/data/schemas/auth/refresh_token_request";
|
||||
} from "@/data/schemas/auth/request/refresh_token_request";
|
||||
|
||||
export class RefreshTokenRequest {
|
||||
declare readonly refreshToken: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
RegisterRequestSchema,
|
||||
type RegisterRequestInput,
|
||||
type RegisterRequestData,
|
||||
} from "@/data/schemas/auth/register_request";
|
||||
} from "@/data/schemas/auth/request/register_request";
|
||||
|
||||
export class RegisterRequest {
|
||||
declare readonly username: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
FacebookIdentityResponseSchema,
|
||||
type FacebookIdentityResponseInput,
|
||||
type FacebookIdentityResponseData,
|
||||
} from "@/data/schemas/auth/facebook_identity_response";
|
||||
} from "@/data/schemas/auth/response/facebook_identity_response";
|
||||
|
||||
export class FacebookIdentityResponse {
|
||||
private constructor(input: FacebookIdentityResponseInput) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
FacebookPsidLoginResponseSchema,
|
||||
type FacebookPsidLoginResponseInput,
|
||||
type FacebookPsidLoginResponseData,
|
||||
} from "@/data/schemas/auth/facebook_psid_login_response";
|
||||
} from "@/data/schemas/auth/response/facebook_psid_login_response";
|
||||
|
||||
export class FacebookPsidLoginResponse {
|
||||
private constructor(input: FacebookPsidLoginResponseInput) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
GuestLoginResponseSchema,
|
||||
type GuestLoginResponseInput,
|
||||
type GuestLoginResponseData,
|
||||
} from "@/data/schemas/auth/guest_login_response";
|
||||
} from "@/data/schemas/auth/response/guest_login_response";
|
||||
import { User } from "@/data/dto/user/user";
|
||||
|
||||
export class GuestLoginResponse {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
LoginResponseSchema,
|
||||
type LoginResponseInput,
|
||||
type LoginResponseData,
|
||||
} from "@/data/schemas/auth/login_response";
|
||||
} from "@/data/schemas/auth/response/login_response";
|
||||
import { User } from "@/data/dto/user/user";
|
||||
|
||||
export class LoginResponse {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
LogoutResponseSchema,
|
||||
type LogoutResponseInput,
|
||||
type LogoutResponseData,
|
||||
} from "@/data/schemas/auth/logout_response";
|
||||
} from "@/data/schemas/auth/response/logout_response";
|
||||
|
||||
export class LogoutResponse {
|
||||
declare readonly success: boolean;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
RefreshTokenResponseSchema,
|
||||
type RefreshTokenResponseInput,
|
||||
type RefreshTokenResponseData,
|
||||
} from "@/data/schemas/auth/refresh_token_response";
|
||||
} from "@/data/schemas/auth/response/refresh_token_response";
|
||||
|
||||
export class RefreshTokenResponse {
|
||||
declare readonly token: string;
|
||||
|
||||
Reference in New Issue
Block a user