53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
export const offerStates: Record<string, string> = {
|
|
draft: 'Rascunho privado',
|
|
submitted: 'Submetida para revisão',
|
|
in_review: 'Em revisão',
|
|
needs_information: 'Correcções solicitadas',
|
|
rejected: 'Rejeitada',
|
|
approved: 'Aprovada internamente',
|
|
};
|
|
export const offerActions: Record<string, string> = {
|
|
assign_review: 'Atribuir revisão',
|
|
submit: 'Submeter',
|
|
start_review: 'Iniciar revisão',
|
|
request_correction: 'Solicitar correcção',
|
|
reject: 'Rejeitar com fundamento',
|
|
approve: 'Aprovar internamente',
|
|
request_revision: 'Preparar correcção e reenvio',
|
|
};
|
|
export type OfferEditorialRecord = {
|
|
reviewers: { id: number; name: string }[];
|
|
id: number;
|
|
etag: string;
|
|
state: string;
|
|
actions: string[];
|
|
reauthenticationRequired: boolean;
|
|
approvalFresh: boolean | null;
|
|
correctionItems: string[];
|
|
history: {
|
|
action: string;
|
|
actor_name: string;
|
|
assignee_name?: string | null;
|
|
reason: string;
|
|
at: string;
|
|
opportunity_version?: number;
|
|
submitted_revision?: number;
|
|
}[];
|
|
submittedVersions: {
|
|
submission: {
|
|
record_version: number;
|
|
at?: string;
|
|
payload: {
|
|
title: string;
|
|
private_offer: {
|
|
price_mode: string;
|
|
amount?: string;
|
|
currency?: string;
|
|
};
|
|
};
|
|
};
|
|
approval?: { reason: string; hash: string } | null;
|
|
rejection?: { reason: string; hash: string } | null;
|
|
}[];
|
|
};
|