mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
run typesync
This commit is contained in:
@@ -26,6 +26,28 @@ export interface IPhotoReqJSON extends IPhotoJSON {
|
||||
accessToken: string;
|
||||
}
|
||||
|
||||
export type IPhotoShowToken = string;
|
||||
export type IPhotosGetShowTokenByID = IAPIResponse<IPhotoShowToken>;
|
||||
|
||||
export interface IPhotosNewPostBody {
|
||||
hash: string | undefined;
|
||||
size: string | undefined;
|
||||
format: string | undefined;
|
||||
}
|
||||
|
||||
export interface IPhotosDeleteBody {
|
||||
photos: IPhotoReqJSON[];
|
||||
}
|
||||
|
||||
export const IPhotosListPagination = 50;
|
||||
|
||||
export type IPhotosNewRespBody = IAPIResponse<IPhotoReqJSON>;
|
||||
export type IPhotosUploadRespBody = IAPIResponse<IPhotoReqJSON>;
|
||||
export type IPhotosListRespBody = IAPIResponse<IPhotoReqJSON[]>;
|
||||
export type IPhotosByIDGetRespBody = IAPIResponse<IPhotoReqJSON>;
|
||||
export type IPhotoByIDDeleteRespBody = IAPIResponse<boolean>;
|
||||
export type IPhotosDeleteRespBody = IAPIResponse<boolean>;
|
||||
|
||||
export interface IUserJSON {
|
||||
id: number;
|
||||
username: string;
|
||||
@@ -40,35 +62,24 @@ export interface IUserJWT extends IUserJSON {
|
||||
export interface IUserAuthJSON extends IUserJSON {
|
||||
jwt: string;
|
||||
}
|
||||
export interface IPhotosNewPostBody {
|
||||
hash: string | undefined;
|
||||
size: string | undefined;
|
||||
format: string | undefined;
|
||||
}
|
||||
export type IPhotosNewRespBody = IAPIResponse<IPhotoReqJSON>;
|
||||
export type IPhotosUploadRespBody = IAPIResponse<IPhotoReqJSON>;
|
||||
export type IPhotosListRespBody = IAPIResponse<IPhotoReqJSON[]>;
|
||||
export type IPhotosByIDGetRespBody = IAPIResponse<IPhotoReqJSON>;
|
||||
export type IPhotoByIDDeleteRespBody = IAPIResponse<boolean>;
|
||||
export type IPhotosDeleteRespBody = IAPIResponse<boolean>;
|
||||
export type IUserGetRespBody = IAPIResponse<IUserAuthJSON>;
|
||||
export type IUserLoginRespBody = IAPIResponse<IUserAuthJSON>;
|
||||
|
||||
export interface IUserSignupBody {
|
||||
username: string | undefined;
|
||||
password: string | undefined;
|
||||
email: string | undefined;
|
||||
}
|
||||
|
||||
export type IUserSignupRespBody = IAPIResponse<IUserAuthJSON>;
|
||||
|
||||
export type IUserGetRespBody = IAPIResponse<IUserAuthJSON>;
|
||||
export type IUserLoginRespBody = IAPIResponse<IUserAuthJSON>;
|
||||
|
||||
export interface IUserEditBody {
|
||||
password: string | undefined;
|
||||
}
|
||||
|
||||
export type IUserEditRespBody = IAPIResponse<IUserAuthJSON>;
|
||||
export interface IUserLoginBody {
|
||||
username: string | undefined;
|
||||
password: string | undefined;
|
||||
}
|
||||
export interface IPhotosDeleteBody {
|
||||
photos: IPhotoReqJSON[];
|
||||
}
|
||||
|
||||
export const IPhotosListPagination = 50;
|
||||
|
||||
Reference in New Issue
Block a user