import type { Common, EntityService } from '@strapi/types'; import type { errors } from '@strapi/utils'; type Entity = EntityService.Result; /** * /content-manager//:model/:id/assignee */ declare namespace UpdateAssignee { interface Request { body: { data: { id: Entity['id'] | null; }; }; query: {}; } interface Params { model: string; id: Entity['id']; } interface Response { data: Entity; error?: errors.ApplicationError; } } interface StagePermission extends Omit { action: string; actionParameters: object; subject?: string | null; role: number; } interface Stage extends Entity { color: string; name: string; permissions?: StagePermission[]; } /** * GET /content-manager//:model/:id/stages */ declare namespace GetStages { interface Request { body: {}; query: {}; } interface Params { model: string; id: Entity['id']; } interface Response { data: Stage[]; meta?: { workflowCount: number; }; error?: errors.ApplicationError; } } /** * PUT /content-manager//:model/:id/stage */ declare namespace UpdateStage { interface Request { body: { data: { id: Entity['id']; }; }; query: {}; } interface Params { model: string; id: Entity['id']; } interface Response { data: Entity; error?: errors.ApplicationError; } } export type { UpdateAssignee, UpdateStage, GetStages, Stage, StagePermission }; //# sourceMappingURL=review-workflows.d.ts.map