feat: complete TASK-WP2-03 project lifecycle
This commit is contained in:
@@ -106,6 +106,31 @@ export const FailedEmptyTrashResponseSchema = Type.Object(
|
||||
},
|
||||
{ additionalProperties: false, $id: "FailedEmptyTrashResponse" },
|
||||
);
|
||||
export const ProjectTrashResponseSchema = Type.Object(
|
||||
{
|
||||
deleted_at: Type.String({ pattern: isoTimestampPattern }),
|
||||
project_id: Type.Ref(ProjectIdSchema),
|
||||
purge_at: Type.String({ pattern: isoTimestampPattern }),
|
||||
status: Type.Literal("trashed"),
|
||||
},
|
||||
{ additionalProperties: false, $id: "ProjectTrashResponse" },
|
||||
);
|
||||
export const ProjectRestoreResponseSchema = Type.Object(
|
||||
{
|
||||
deleted_at: Type.Null(),
|
||||
project_id: Type.Ref(ProjectIdSchema),
|
||||
purge_at: Type.Null(),
|
||||
status: Type.Literal("active"),
|
||||
},
|
||||
{ additionalProperties: false, $id: "ProjectRestoreResponse" },
|
||||
);
|
||||
export const ProjectPurgeResponseSchema = Type.Object(
|
||||
{
|
||||
project_id: Type.Ref(ProjectIdSchema),
|
||||
status: Type.Literal("purged"),
|
||||
},
|
||||
{ additionalProperties: false, $id: "ProjectPurgeResponse" },
|
||||
);
|
||||
|
||||
export type ProjectListQuery = Static<typeof ProjectListQuerySchema>;
|
||||
export type ProjectParams = Static<typeof ProjectParamsSchema>;
|
||||
|
||||
Reference in New Issue
Block a user