Auto-provision legal texts via migrations and db:seed:consent so local and production deploy stay fail-closed-ready; register O0+ simplify follow-ups.
1757 lines
No EOL
40 KiB
TypeScript
1757 lines
No EOL
40 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* This file was automatically generated by Payload.
|
|
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
|
|
* and re-run `payload generate:types` to regenerate this file.
|
|
*/
|
|
|
|
/**
|
|
* Supported timezones in IANA format.
|
|
*
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "supportedTimezones".
|
|
*/
|
|
export type SupportedTimezones =
|
|
| 'Pacific/Midway'
|
|
| 'Pacific/Niue'
|
|
| 'Pacific/Honolulu'
|
|
| 'Pacific/Rarotonga'
|
|
| 'America/Anchorage'
|
|
| 'Pacific/Gambier'
|
|
| 'America/Los_Angeles'
|
|
| 'America/Tijuana'
|
|
| 'America/Denver'
|
|
| 'America/Phoenix'
|
|
| 'America/Chicago'
|
|
| 'America/Guatemala'
|
|
| 'America/New_York'
|
|
| 'America/Bogota'
|
|
| 'America/Caracas'
|
|
| 'America/Santiago'
|
|
| 'America/Buenos_Aires'
|
|
| 'America/Sao_Paulo'
|
|
| 'Atlantic/South_Georgia'
|
|
| 'Atlantic/Azores'
|
|
| 'Atlantic/Cape_Verde'
|
|
| 'Europe/London'
|
|
| 'Europe/Berlin'
|
|
| 'Africa/Lagos'
|
|
| 'Europe/Athens'
|
|
| 'Africa/Cairo'
|
|
| 'Europe/Moscow'
|
|
| 'Asia/Riyadh'
|
|
| 'Asia/Dubai'
|
|
| 'Asia/Baku'
|
|
| 'Asia/Karachi'
|
|
| 'Asia/Tashkent'
|
|
| 'Asia/Calcutta'
|
|
| 'Asia/Dhaka'
|
|
| 'Asia/Almaty'
|
|
| 'Asia/Jakarta'
|
|
| 'Asia/Bangkok'
|
|
| 'Asia/Shanghai'
|
|
| 'Asia/Singapore'
|
|
| 'Asia/Tokyo'
|
|
| 'Asia/Seoul'
|
|
| 'Australia/Brisbane'
|
|
| 'Australia/Sydney'
|
|
| 'Pacific/Guam'
|
|
| 'Pacific/Noumea'
|
|
| 'Pacific/Auckland'
|
|
| 'Pacific/Fiji';
|
|
|
|
export interface Config {
|
|
auth: {
|
|
users: UserAuthOperations;
|
|
campaignUser: CampaignUserAuthOperations;
|
|
};
|
|
blocks: {};
|
|
collections: {
|
|
users: User;
|
|
campaignUser: CampaignUser;
|
|
campaignInvite: CampaignInvite;
|
|
electoralNucleus: ElectoralNucleus;
|
|
leadership: Leadership;
|
|
supporter: Supporter;
|
|
supporterImportBatch: SupporterImportBatch;
|
|
nucleusUpdate: NucleusUpdate;
|
|
actionPlan: ActionPlan;
|
|
electionTally: ElectionTally;
|
|
electionCandidateVote: ElectionCandidateVote;
|
|
electionCandidate: ElectionCandidate;
|
|
media: Media;
|
|
petition: Petition;
|
|
contact: Contact;
|
|
consent: Consent;
|
|
signature: Signature;
|
|
subscription: Subscription;
|
|
post: Post;
|
|
tag: Tag;
|
|
'payload-kv': PayloadKv;
|
|
'payload-jobs': PayloadJob;
|
|
'payload-locked-documents': PayloadLockedDocument;
|
|
'payload-preferences': PayloadPreference;
|
|
'payload-migrations': PayloadMigration;
|
|
};
|
|
collectionsJoins: {};
|
|
collectionsSelect: {
|
|
users: UsersSelect<false> | UsersSelect<true>;
|
|
campaignUser: CampaignUserSelect<false> | CampaignUserSelect<true>;
|
|
campaignInvite: CampaignInviteSelect<false> | CampaignInviteSelect<true>;
|
|
electoralNucleus: ElectoralNucleusSelect<false> | ElectoralNucleusSelect<true>;
|
|
leadership: LeadershipSelect<false> | LeadershipSelect<true>;
|
|
supporter: SupporterSelect<false> | SupporterSelect<true>;
|
|
supporterImportBatch: SupporterImportBatchSelect<false> | SupporterImportBatchSelect<true>;
|
|
nucleusUpdate: NucleusUpdateSelect<false> | NucleusUpdateSelect<true>;
|
|
actionPlan: ActionPlanSelect<false> | ActionPlanSelect<true>;
|
|
electionTally: ElectionTallySelect<false> | ElectionTallySelect<true>;
|
|
electionCandidateVote: ElectionCandidateVoteSelect<false> | ElectionCandidateVoteSelect<true>;
|
|
electionCandidate: ElectionCandidateSelect<false> | ElectionCandidateSelect<true>;
|
|
media: MediaSelect<false> | MediaSelect<true>;
|
|
petition: PetitionSelect<false> | PetitionSelect<true>;
|
|
contact: ContactSelect<false> | ContactSelect<true>;
|
|
consent: ConsentSelect<false> | ConsentSelect<true>;
|
|
signature: SignatureSelect<false> | SignatureSelect<true>;
|
|
subscription: SubscriptionSelect<false> | SubscriptionSelect<true>;
|
|
post: PostSelect<false> | PostSelect<true>;
|
|
tag: TagSelect<false> | TagSelect<true>;
|
|
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
|
|
'payload-jobs': PayloadJobsSelect<false> | PayloadJobsSelect<true>;
|
|
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
|
|
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
|
|
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
|
|
};
|
|
db: {
|
|
defaultIDType: number;
|
|
};
|
|
fallbackLocale: null;
|
|
globals: {
|
|
'site-settings': SiteSetting;
|
|
home: Home;
|
|
metadata: Metadatum;
|
|
'privacy-policy': PrivacyPolicy;
|
|
};
|
|
globalsSelect: {
|
|
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>;
|
|
home: HomeSelect<false> | HomeSelect<true>;
|
|
metadata: MetadataSelect<false> | MetadataSelect<true>;
|
|
'privacy-policy': PrivacyPolicySelect<false> | PrivacyPolicySelect<true>;
|
|
};
|
|
locale: null;
|
|
widgets: {
|
|
collections: CollectionsWidget;
|
|
};
|
|
user: User | CampaignUser;
|
|
jobs: {
|
|
tasks: {
|
|
schedulePublish: TaskSchedulePublish;
|
|
inline: {
|
|
input: unknown;
|
|
output: unknown;
|
|
};
|
|
};
|
|
workflows: unknown;
|
|
};
|
|
}
|
|
export interface UserAuthOperations {
|
|
forgotPassword: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
login: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
registerFirstUser: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
unlock: {
|
|
email: string;
|
|
password: string;
|
|
};
|
|
}
|
|
export interface CampaignUserAuthOperations {
|
|
forgotPassword:
|
|
| {
|
|
email: string;
|
|
}
|
|
| {
|
|
username: string;
|
|
};
|
|
login:
|
|
| {
|
|
email: string;
|
|
password: string;
|
|
}
|
|
| {
|
|
password: string;
|
|
username: string;
|
|
};
|
|
registerFirstUser: {
|
|
password: string;
|
|
username?: string;
|
|
email?: string;
|
|
};
|
|
unlock:
|
|
| {
|
|
email: string;
|
|
}
|
|
| {
|
|
username: string;
|
|
};
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "users".
|
|
*/
|
|
export interface User {
|
|
id: number;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
email: string;
|
|
resetPasswordToken?: string | null;
|
|
resetPasswordExpiration?: string | null;
|
|
salt?: string | null;
|
|
hash?: string | null;
|
|
loginAttempts?: number | null;
|
|
lockUntil?: string | null;
|
|
sessions?:
|
|
| {
|
|
id: string;
|
|
createdAt?: string | null;
|
|
expiresAt: string;
|
|
}[]
|
|
| null;
|
|
password?: string | null;
|
|
collection: 'users';
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "campaignUser".
|
|
*/
|
|
export interface CampaignUser {
|
|
id: number;
|
|
name: string;
|
|
role: 'geral' | 'coordenador' | 'lideranca';
|
|
phone?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
email?: string | null;
|
|
username?: string | null;
|
|
resetPasswordToken?: string | null;
|
|
resetPasswordExpiration?: string | null;
|
|
salt?: string | null;
|
|
hash?: string | null;
|
|
loginAttempts?: number | null;
|
|
lockUntil?: string | null;
|
|
sessions?:
|
|
| {
|
|
id: string;
|
|
createdAt?: string | null;
|
|
expiresAt: string;
|
|
}[]
|
|
| null;
|
|
password?: string | null;
|
|
collection: 'campaignUser';
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "campaignInvite".
|
|
*/
|
|
export interface CampaignInvite {
|
|
id: number;
|
|
tokenHash: string;
|
|
leadership: number | Leadership;
|
|
kind: 'login' | 'autopreenchimento';
|
|
expiresAt: string;
|
|
usedAt?: string | null;
|
|
revokedAt?: string | null;
|
|
createdBy: number | CampaignUser;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "leadership".
|
|
*/
|
|
export interface Leadership {
|
|
id: number;
|
|
contact: number | Contact;
|
|
nucleus: number | ElectoralNucleus;
|
|
sector?:
|
|
| (
|
|
| 'religioso'
|
|
| 'sindical'
|
|
| 'comunitario'
|
|
| 'rural'
|
|
| 'empresarial'
|
|
| 'juventude'
|
|
| 'saude'
|
|
| 'educacao'
|
|
| 'cultura'
|
|
| 'outro'
|
|
)
|
|
| null;
|
|
sectorNotes?: string | null;
|
|
supportStatus: 'engajado' | 'a_abordar' | 'em_disputa' | 'negativo';
|
|
user?: (number | null) | CampaignUser;
|
|
consent?: (number | null) | Consent;
|
|
consentContentHash?: string | null;
|
|
consentedAt?: string | null;
|
|
notes?: string | null;
|
|
consentNote?: string | null;
|
|
createdBy?: (number | null) | CampaignUser;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "contact".
|
|
*/
|
|
export interface Contact {
|
|
id: number;
|
|
name: string;
|
|
email?: string | null;
|
|
phone: string;
|
|
gender?: ('feminino' | 'masculino' | 'outro' | 'nao_informado') | null;
|
|
state:
|
|
| 'AC'
|
|
| 'AL'
|
|
| 'AM'
|
|
| 'AP'
|
|
| 'BA'
|
|
| 'CE'
|
|
| 'DF'
|
|
| 'ES'
|
|
| 'GO'
|
|
| 'MA'
|
|
| 'MG'
|
|
| 'MS'
|
|
| 'MT'
|
|
| 'PA'
|
|
| 'PB'
|
|
| 'PE'
|
|
| 'PI'
|
|
| 'PR'
|
|
| 'RJ'
|
|
| 'RN'
|
|
| 'RO'
|
|
| 'RR'
|
|
| 'RS'
|
|
| 'SC'
|
|
| 'SE'
|
|
| 'SP'
|
|
| 'TO';
|
|
city?: string | null;
|
|
postalCode?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electoralNucleus".
|
|
*/
|
|
export interface ElectoralNucleus {
|
|
id: number;
|
|
name: string;
|
|
slug: string;
|
|
status: 'ativo' | 'arquivado';
|
|
coordinators?: (number | CampaignUser)[] | null;
|
|
regions?: string[] | null;
|
|
cities?: string[] | null;
|
|
neighborhoods?: string[] | null;
|
|
locality?: string | null;
|
|
territoryNotes?: string | null;
|
|
organizationKind:
|
|
| 'territorial'
|
|
| 'associacao'
|
|
| 'sindicato'
|
|
| 'religioso'
|
|
| 'movimento'
|
|
| 'categoria_profissional'
|
|
| 'outro';
|
|
organizationLabel?: string | null;
|
|
sectorKind?:
|
|
| ('rural' | 'religioso' | 'sindical' | 'empresarial' | 'juventude' | 'saude' | 'educacao' | 'cultura' | 'outro')
|
|
| null;
|
|
tseZones?:
|
|
| {
|
|
zoneNumber: number;
|
|
label?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
primaryContact?: (number | null) | Contact;
|
|
voterProfiles?:
|
|
| {
|
|
label: string;
|
|
ageRange?: string | null;
|
|
incomeBand?: string | null;
|
|
occupation?: string | null;
|
|
localTraits?: string | null;
|
|
notes?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
strengths?:
|
|
| {
|
|
text: string;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
risks?:
|
|
| {
|
|
text: string;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
confirmedVoteEstimate?: number | null;
|
|
confirmedVoteEstimateAt?: string | null;
|
|
confirmedVoteEstimateBy?: (number | null) | CampaignUser;
|
|
confirmationNote?: string | null;
|
|
proposedVoteEstimate?: number | null;
|
|
proposedVoteEstimateAt?: string | null;
|
|
proposedVoteEstimateBy?: (number | null) | CampaignUser;
|
|
proposedVoteEstimateVersion?: string | null;
|
|
ticketAlliance?: {
|
|
partnerName?: string | null;
|
|
office?: string | null;
|
|
isCampaignPartner?: boolean | null;
|
|
notes?: string | null;
|
|
};
|
|
/**
|
|
* Preenchido automaticamente quando o domínio de atualizações for ativado.
|
|
*/
|
|
lastUpdateAt?: string | null;
|
|
createdBy?: (number | null) | CampaignUser;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "consent".
|
|
*/
|
|
export interface Consent {
|
|
id: number;
|
|
/**
|
|
* Identificador estável para referências no código.
|
|
*/
|
|
key?: string | null;
|
|
text: {
|
|
root: {
|
|
type: string;
|
|
children: {
|
|
type: any;
|
|
version: number;
|
|
[k: string]: unknown;
|
|
}[];
|
|
direction: ('ltr' | 'rtl') | null;
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
indent: number;
|
|
version: number;
|
|
};
|
|
[k: string]: unknown;
|
|
};
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "supporter".
|
|
*/
|
|
export interface Supporter {
|
|
id: number;
|
|
contact: number | Contact;
|
|
nucleus?: (number | null) | ElectoralNucleus;
|
|
voteIntention?: ('certo' | 'tende_a_certo' | 'indeciso' | 'outro') | null;
|
|
consent?: (number | null) | Consent;
|
|
consentContentHash?: string | null;
|
|
consentedAt?: string | null;
|
|
voteIntentionConsent?: (number | null) | Consent;
|
|
voteIntentionConsentContentHash?: string | null;
|
|
voteIntentionConsentedAt?: string | null;
|
|
source: 'import_csv' | 'manual' | 'convite' | 'evento';
|
|
consentNote?: string | null;
|
|
notes?: string | null;
|
|
createdBy?: (number | null) | CampaignUser;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "supporterImportBatch".
|
|
*/
|
|
export interface SupporterImportBatch {
|
|
id: number;
|
|
batchId: string;
|
|
actor: number | CampaignUser;
|
|
expiresAt: string;
|
|
rows:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "nucleusUpdate".
|
|
*/
|
|
export interface NucleusUpdate {
|
|
id: number;
|
|
nucleus: number | ElectoralNucleus;
|
|
author: number | CampaignUser;
|
|
kind: 'semanal' | 'urgente' | 'nota';
|
|
worked?: string | null;
|
|
failed?: string | null;
|
|
needs?: string | null;
|
|
activeVolunteers?: number | null;
|
|
newSupports?: number | null;
|
|
body?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "actionPlan".
|
|
*/
|
|
export interface ActionPlan {
|
|
id: number;
|
|
title: string;
|
|
slug: string;
|
|
kind:
|
|
| 'caminhada'
|
|
| 'comicio'
|
|
| 'carreata'
|
|
| 'panfletagem'
|
|
| 'porta_a_porta'
|
|
| 'reuniao_apoio'
|
|
| 'lancamento'
|
|
| 'convencao'
|
|
| 'ato'
|
|
| 'entrevista'
|
|
| 'producao_conteudo'
|
|
| 'digital'
|
|
| 'outro';
|
|
status: 'rascunho' | 'planejado' | 'confirmado' | 'realizado' | 'cancelado';
|
|
description?: string | null;
|
|
startAt?: string | null;
|
|
endAt?: string | null;
|
|
deadline?: string | null;
|
|
regions?: string[] | null;
|
|
cities?: string[] | null;
|
|
neighborhoods?: string[] | null;
|
|
locality?: string | null;
|
|
territoryNotes?: string | null;
|
|
coordinators?: (number | CampaignUser)[] | null;
|
|
responsible?: (number | null) | Contact;
|
|
leadership?: (number | null) | Leadership;
|
|
tasks?:
|
|
| {
|
|
title: string;
|
|
responsible?: (number | null) | Contact;
|
|
due?: string | null;
|
|
done?: boolean | null;
|
|
doneAt?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
taskTotal?: number | null;
|
|
taskDoneCount?: number | null;
|
|
updates?:
|
|
| {
|
|
body: string;
|
|
author?: (number | null) | CampaignUser;
|
|
createdAt?: string | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
createdBy?: (number | null) | CampaignUser;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* Totais oficiais TSE por município e zona (dado público).
|
|
*
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electionTally".
|
|
*/
|
|
export interface ElectionTally {
|
|
id: number;
|
|
year: number;
|
|
office: 'presidente' | 'governador' | 'deputado_federal' | 'deputado_estadual';
|
|
turn: '1' | '2';
|
|
state: string;
|
|
cityCode: string;
|
|
cityName: string;
|
|
zoneNumber: number;
|
|
aptos: number;
|
|
comparecimento: number;
|
|
abstencoes: number;
|
|
votosValidos: number;
|
|
votosNominaisValidos: number;
|
|
votosLegenda: number;
|
|
votosBranco: number;
|
|
votosNulo: number;
|
|
votosAnulados: number;
|
|
winnerCandidateNumber?: number | null;
|
|
winnerCandidateName?: string | null;
|
|
winnerVotes?: number | null;
|
|
winnerCoalition?: string | null;
|
|
winnerParty?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* Votos nominais oficiais TSE por município e zona (dado público).
|
|
*
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electionCandidateVote".
|
|
*/
|
|
export interface ElectionCandidateVote {
|
|
id: number;
|
|
year: number;
|
|
office: 'presidente' | 'governador' | 'deputado_federal' | 'deputado_estadual';
|
|
turn: '1' | '2';
|
|
state: string;
|
|
cityCode: string;
|
|
cityName: string;
|
|
zoneNumber: number;
|
|
candidateNumber: number;
|
|
candidateName: string;
|
|
coalition?: string | null;
|
|
party?: string | null;
|
|
voteType: 'nominal' | 'legenda';
|
|
votes: number;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* Registro de candidatura TSE (dado público).
|
|
*
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electionCandidate".
|
|
*/
|
|
export interface ElectionCandidate {
|
|
id: number;
|
|
year: number;
|
|
office: 'presidente' | 'governador' | 'deputado_federal' | 'deputado_estadual';
|
|
turn: '1' | '2';
|
|
state: string;
|
|
candidateNumber: number;
|
|
urnaName: string;
|
|
completeName?: string | null;
|
|
party?: string | null;
|
|
coalition?: string | null;
|
|
candidateStatus?: string | null;
|
|
elected?: boolean | null;
|
|
electedBy?: ('QP' | 'média' | '2º turno') | null;
|
|
totalVotesState?: number | null;
|
|
/**
|
|
* sha256(nome urna + naturalidade + partido); só dados públicos.
|
|
*/
|
|
identityKey?: string | null;
|
|
runningAgain2026: 'sim' | 'nao' | 'desconhecido';
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "media".
|
|
*/
|
|
export interface Media {
|
|
id: number;
|
|
/**
|
|
* Descrição da imagem para acessibilidade.
|
|
*/
|
|
alt: string;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
url?: string | null;
|
|
thumbnailURL?: string | null;
|
|
filename?: string | null;
|
|
mimeType?: string | null;
|
|
filesize?: number | null;
|
|
width?: number | null;
|
|
height?: number | null;
|
|
focalX?: number | null;
|
|
focalY?: number | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "petition".
|
|
*/
|
|
export interface Petition {
|
|
id: string;
|
|
title: string;
|
|
subtitle: string;
|
|
enabled: boolean;
|
|
body: {
|
|
root: {
|
|
type: string;
|
|
children: {
|
|
type: any;
|
|
version: number;
|
|
[k: string]: unknown;
|
|
}[];
|
|
direction: ('ltr' | 'rtl') | null;
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
indent: number;
|
|
version: number;
|
|
};
|
|
[k: string]: unknown;
|
|
};
|
|
form: {
|
|
title?: string | null;
|
|
subtitle?: string | null;
|
|
consent: number | Consent;
|
|
};
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
_status?: ('draft' | 'published') | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "signature".
|
|
*/
|
|
export interface Signature {
|
|
id: number;
|
|
contact: number | Contact;
|
|
petition: string | Petition;
|
|
consent: number | Consent;
|
|
comment?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "subscription".
|
|
*/
|
|
export interface Subscription {
|
|
id: number;
|
|
contact: number | Contact;
|
|
consent: number | Consent;
|
|
comment?: string | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "post".
|
|
*/
|
|
export interface Post {
|
|
id: number;
|
|
title: string;
|
|
/**
|
|
* Gerado automaticamente a partir do título quando vazio.
|
|
*/
|
|
slug?: string | null;
|
|
type: 'noticia' | 'campanha' | 'artigo' | 'evento';
|
|
category: number | Tag;
|
|
tags?: (number | Tag)[] | null;
|
|
subtitle?: string | null;
|
|
coverImage?: (number | null) | Media;
|
|
publishedDate?: string | null;
|
|
body?: {
|
|
root: {
|
|
type: string;
|
|
children: {
|
|
type: any;
|
|
version: number;
|
|
[k: string]: unknown;
|
|
}[];
|
|
direction: ('ltr' | 'rtl') | null;
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
indent: number;
|
|
version: number;
|
|
};
|
|
[k: string]: unknown;
|
|
} | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
_status?: ('draft' | 'published') | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "tag".
|
|
*/
|
|
export interface Tag {
|
|
id: number;
|
|
name: string;
|
|
/**
|
|
* Gerado automaticamente a partir do nome quando vazio.
|
|
*/
|
|
slug?: string | null;
|
|
/**
|
|
* Esconde do site todas as publicações com esta tag.
|
|
*/
|
|
hidden?: boolean | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-kv".
|
|
*/
|
|
export interface PayloadKv {
|
|
id: number;
|
|
key: string;
|
|
data:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-jobs".
|
|
*/
|
|
export interface PayloadJob {
|
|
id: number;
|
|
/**
|
|
* Input data provided to the job
|
|
*/
|
|
input?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
taskStatus?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
completedAt?: string | null;
|
|
totalTried?: number | null;
|
|
/**
|
|
* If hasError is true this job will not be retried
|
|
*/
|
|
hasError?: boolean | null;
|
|
/**
|
|
* If hasError is true, this is the error that caused it
|
|
*/
|
|
error?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
/**
|
|
* Task execution log
|
|
*/
|
|
log?:
|
|
| {
|
|
executedAt: string;
|
|
completedAt: string;
|
|
taskSlug: 'inline' | 'schedulePublish';
|
|
taskID: string;
|
|
input?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
output?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
state: 'failed' | 'succeeded';
|
|
error?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
taskSlug?: ('inline' | 'schedulePublish') | null;
|
|
queue?: string | null;
|
|
waitUntil?: string | null;
|
|
processing?: boolean | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-locked-documents".
|
|
*/
|
|
export interface PayloadLockedDocument {
|
|
id: number;
|
|
document?:
|
|
| ({
|
|
relationTo: 'users';
|
|
value: number | User;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'campaignUser';
|
|
value: number | CampaignUser;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'campaignInvite';
|
|
value: number | CampaignInvite;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'electoralNucleus';
|
|
value: number | ElectoralNucleus;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'leadership';
|
|
value: number | Leadership;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'supporter';
|
|
value: number | Supporter;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'supporterImportBatch';
|
|
value: number | SupporterImportBatch;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'nucleusUpdate';
|
|
value: number | NucleusUpdate;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'actionPlan';
|
|
value: number | ActionPlan;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'electionTally';
|
|
value: number | ElectionTally;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'electionCandidateVote';
|
|
value: number | ElectionCandidateVote;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'electionCandidate';
|
|
value: number | ElectionCandidate;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'media';
|
|
value: number | Media;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'petition';
|
|
value: string | Petition;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'contact';
|
|
value: number | Contact;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'consent';
|
|
value: number | Consent;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'signature';
|
|
value: number | Signature;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'subscription';
|
|
value: number | Subscription;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'post';
|
|
value: number | Post;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'tag';
|
|
value: number | Tag;
|
|
} | null);
|
|
globalSlug?: string | null;
|
|
user:
|
|
| {
|
|
relationTo: 'users';
|
|
value: number | User;
|
|
}
|
|
| {
|
|
relationTo: 'campaignUser';
|
|
value: number | CampaignUser;
|
|
};
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-preferences".
|
|
*/
|
|
export interface PayloadPreference {
|
|
id: number;
|
|
user:
|
|
| {
|
|
relationTo: 'users';
|
|
value: number | User;
|
|
}
|
|
| {
|
|
relationTo: 'campaignUser';
|
|
value: number | CampaignUser;
|
|
};
|
|
key?: string | null;
|
|
value?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-migrations".
|
|
*/
|
|
export interface PayloadMigration {
|
|
id: number;
|
|
name?: string | null;
|
|
batch?: number | null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "users_select".
|
|
*/
|
|
export interface UsersSelect<T extends boolean = true> {
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
email?: T;
|
|
resetPasswordToken?: T;
|
|
resetPasswordExpiration?: T;
|
|
salt?: T;
|
|
hash?: T;
|
|
loginAttempts?: T;
|
|
lockUntil?: T;
|
|
sessions?:
|
|
| T
|
|
| {
|
|
id?: T;
|
|
createdAt?: T;
|
|
expiresAt?: T;
|
|
};
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "campaignUser_select".
|
|
*/
|
|
export interface CampaignUserSelect<T extends boolean = true> {
|
|
name?: T;
|
|
role?: T;
|
|
phone?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
email?: T;
|
|
username?: T;
|
|
resetPasswordToken?: T;
|
|
resetPasswordExpiration?: T;
|
|
salt?: T;
|
|
hash?: T;
|
|
loginAttempts?: T;
|
|
lockUntil?: T;
|
|
sessions?:
|
|
| T
|
|
| {
|
|
id?: T;
|
|
createdAt?: T;
|
|
expiresAt?: T;
|
|
};
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "campaignInvite_select".
|
|
*/
|
|
export interface CampaignInviteSelect<T extends boolean = true> {
|
|
tokenHash?: T;
|
|
leadership?: T;
|
|
kind?: T;
|
|
expiresAt?: T;
|
|
usedAt?: T;
|
|
revokedAt?: T;
|
|
createdBy?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electoralNucleus_select".
|
|
*/
|
|
export interface ElectoralNucleusSelect<T extends boolean = true> {
|
|
name?: T;
|
|
slug?: T;
|
|
status?: T;
|
|
coordinators?: T;
|
|
regions?: T;
|
|
cities?: T;
|
|
neighborhoods?: T;
|
|
locality?: T;
|
|
territoryNotes?: T;
|
|
organizationKind?: T;
|
|
organizationLabel?: T;
|
|
sectorKind?: T;
|
|
tseZones?:
|
|
| T
|
|
| {
|
|
zoneNumber?: T;
|
|
label?: T;
|
|
id?: T;
|
|
};
|
|
primaryContact?: T;
|
|
voterProfiles?:
|
|
| T
|
|
| {
|
|
label?: T;
|
|
ageRange?: T;
|
|
incomeBand?: T;
|
|
occupation?: T;
|
|
localTraits?: T;
|
|
notes?: T;
|
|
id?: T;
|
|
};
|
|
strengths?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
id?: T;
|
|
};
|
|
risks?:
|
|
| T
|
|
| {
|
|
text?: T;
|
|
id?: T;
|
|
};
|
|
confirmedVoteEstimate?: T;
|
|
confirmedVoteEstimateAt?: T;
|
|
confirmedVoteEstimateBy?: T;
|
|
confirmationNote?: T;
|
|
proposedVoteEstimate?: T;
|
|
proposedVoteEstimateAt?: T;
|
|
proposedVoteEstimateBy?: T;
|
|
proposedVoteEstimateVersion?: T;
|
|
ticketAlliance?:
|
|
| T
|
|
| {
|
|
partnerName?: T;
|
|
office?: T;
|
|
isCampaignPartner?: T;
|
|
notes?: T;
|
|
};
|
|
lastUpdateAt?: T;
|
|
createdBy?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "leadership_select".
|
|
*/
|
|
export interface LeadershipSelect<T extends boolean = true> {
|
|
contact?: T;
|
|
nucleus?: T;
|
|
sector?: T;
|
|
sectorNotes?: T;
|
|
supportStatus?: T;
|
|
user?: T;
|
|
consent?: T;
|
|
consentContentHash?: T;
|
|
consentedAt?: T;
|
|
notes?: T;
|
|
consentNote?: T;
|
|
createdBy?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "supporter_select".
|
|
*/
|
|
export interface SupporterSelect<T extends boolean = true> {
|
|
contact?: T;
|
|
nucleus?: T;
|
|
voteIntention?: T;
|
|
consent?: T;
|
|
consentContentHash?: T;
|
|
consentedAt?: T;
|
|
voteIntentionConsent?: T;
|
|
voteIntentionConsentContentHash?: T;
|
|
voteIntentionConsentedAt?: T;
|
|
source?: T;
|
|
consentNote?: T;
|
|
notes?: T;
|
|
createdBy?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "supporterImportBatch_select".
|
|
*/
|
|
export interface SupporterImportBatchSelect<T extends boolean = true> {
|
|
batchId?: T;
|
|
actor?: T;
|
|
expiresAt?: T;
|
|
rows?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "nucleusUpdate_select".
|
|
*/
|
|
export interface NucleusUpdateSelect<T extends boolean = true> {
|
|
nucleus?: T;
|
|
author?: T;
|
|
kind?: T;
|
|
worked?: T;
|
|
failed?: T;
|
|
needs?: T;
|
|
activeVolunteers?: T;
|
|
newSupports?: T;
|
|
body?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "actionPlan_select".
|
|
*/
|
|
export interface ActionPlanSelect<T extends boolean = true> {
|
|
title?: T;
|
|
slug?: T;
|
|
kind?: T;
|
|
status?: T;
|
|
description?: T;
|
|
startAt?: T;
|
|
endAt?: T;
|
|
deadline?: T;
|
|
regions?: T;
|
|
cities?: T;
|
|
neighborhoods?: T;
|
|
locality?: T;
|
|
territoryNotes?: T;
|
|
coordinators?: T;
|
|
responsible?: T;
|
|
leadership?: T;
|
|
tasks?:
|
|
| T
|
|
| {
|
|
title?: T;
|
|
responsible?: T;
|
|
due?: T;
|
|
done?: T;
|
|
doneAt?: T;
|
|
id?: T;
|
|
};
|
|
taskTotal?: T;
|
|
taskDoneCount?: T;
|
|
updates?:
|
|
| T
|
|
| {
|
|
body?: T;
|
|
author?: T;
|
|
createdAt?: T;
|
|
id?: T;
|
|
};
|
|
createdBy?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electionTally_select".
|
|
*/
|
|
export interface ElectionTallySelect<T extends boolean = true> {
|
|
year?: T;
|
|
office?: T;
|
|
turn?: T;
|
|
state?: T;
|
|
cityCode?: T;
|
|
cityName?: T;
|
|
zoneNumber?: T;
|
|
aptos?: T;
|
|
comparecimento?: T;
|
|
abstencoes?: T;
|
|
votosValidos?: T;
|
|
votosNominaisValidos?: T;
|
|
votosLegenda?: T;
|
|
votosBranco?: T;
|
|
votosNulo?: T;
|
|
votosAnulados?: T;
|
|
winnerCandidateNumber?: T;
|
|
winnerCandidateName?: T;
|
|
winnerVotes?: T;
|
|
winnerCoalition?: T;
|
|
winnerParty?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electionCandidateVote_select".
|
|
*/
|
|
export interface ElectionCandidateVoteSelect<T extends boolean = true> {
|
|
year?: T;
|
|
office?: T;
|
|
turn?: T;
|
|
state?: T;
|
|
cityCode?: T;
|
|
cityName?: T;
|
|
zoneNumber?: T;
|
|
candidateNumber?: T;
|
|
candidateName?: T;
|
|
coalition?: T;
|
|
party?: T;
|
|
voteType?: T;
|
|
votes?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "electionCandidate_select".
|
|
*/
|
|
export interface ElectionCandidateSelect<T extends boolean = true> {
|
|
year?: T;
|
|
office?: T;
|
|
turn?: T;
|
|
state?: T;
|
|
candidateNumber?: T;
|
|
urnaName?: T;
|
|
completeName?: T;
|
|
party?: T;
|
|
coalition?: T;
|
|
candidateStatus?: T;
|
|
elected?: T;
|
|
electedBy?: T;
|
|
totalVotesState?: T;
|
|
identityKey?: T;
|
|
runningAgain2026?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "media_select".
|
|
*/
|
|
export interface MediaSelect<T extends boolean = true> {
|
|
alt?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
url?: T;
|
|
thumbnailURL?: T;
|
|
filename?: T;
|
|
mimeType?: T;
|
|
filesize?: T;
|
|
width?: T;
|
|
height?: T;
|
|
focalX?: T;
|
|
focalY?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "petition_select".
|
|
*/
|
|
export interface PetitionSelect<T extends boolean = true> {
|
|
id?: T;
|
|
title?: T;
|
|
subtitle?: T;
|
|
enabled?: T;
|
|
body?: T;
|
|
form?:
|
|
| T
|
|
| {
|
|
title?: T;
|
|
subtitle?: T;
|
|
consent?: T;
|
|
};
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
_status?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "contact_select".
|
|
*/
|
|
export interface ContactSelect<T extends boolean = true> {
|
|
name?: T;
|
|
email?: T;
|
|
phone?: T;
|
|
gender?: T;
|
|
state?: T;
|
|
city?: T;
|
|
postalCode?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "consent_select".
|
|
*/
|
|
export interface ConsentSelect<T extends boolean = true> {
|
|
key?: T;
|
|
text?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "signature_select".
|
|
*/
|
|
export interface SignatureSelect<T extends boolean = true> {
|
|
contact?: T;
|
|
petition?: T;
|
|
consent?: T;
|
|
comment?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "subscription_select".
|
|
*/
|
|
export interface SubscriptionSelect<T extends boolean = true> {
|
|
contact?: T;
|
|
consent?: T;
|
|
comment?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "post_select".
|
|
*/
|
|
export interface PostSelect<T extends boolean = true> {
|
|
title?: T;
|
|
slug?: T;
|
|
type?: T;
|
|
category?: T;
|
|
tags?: T;
|
|
subtitle?: T;
|
|
coverImage?: T;
|
|
publishedDate?: T;
|
|
body?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
_status?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "tag_select".
|
|
*/
|
|
export interface TagSelect<T extends boolean = true> {
|
|
name?: T;
|
|
slug?: T;
|
|
hidden?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-kv_select".
|
|
*/
|
|
export interface PayloadKvSelect<T extends boolean = true> {
|
|
key?: T;
|
|
data?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-jobs_select".
|
|
*/
|
|
export interface PayloadJobsSelect<T extends boolean = true> {
|
|
input?: T;
|
|
taskStatus?: T;
|
|
completedAt?: T;
|
|
totalTried?: T;
|
|
hasError?: T;
|
|
error?: T;
|
|
log?:
|
|
| T
|
|
| {
|
|
executedAt?: T;
|
|
completedAt?: T;
|
|
taskSlug?: T;
|
|
taskID?: T;
|
|
input?: T;
|
|
output?: T;
|
|
state?: T;
|
|
error?: T;
|
|
id?: T;
|
|
};
|
|
taskSlug?: T;
|
|
queue?: T;
|
|
waitUntil?: T;
|
|
processing?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-locked-documents_select".
|
|
*/
|
|
export interface PayloadLockedDocumentsSelect<T extends boolean = true> {
|
|
document?: T;
|
|
globalSlug?: T;
|
|
user?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-preferences_select".
|
|
*/
|
|
export interface PayloadPreferencesSelect<T extends boolean = true> {
|
|
user?: T;
|
|
key?: T;
|
|
value?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "payload-migrations_select".
|
|
*/
|
|
export interface PayloadMigrationsSelect<T extends boolean = true> {
|
|
name?: T;
|
|
batch?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "site-settings".
|
|
*/
|
|
export interface SiteSetting {
|
|
id: number;
|
|
headerTitle?: string | null;
|
|
socialLinks?:
|
|
| {
|
|
platform: 'instagram' | 'facebook' | 'youtube' | 'whatsapp';
|
|
url: string;
|
|
/**
|
|
* Rótulo opcional para acessibilidade. Se estiver vazio, usamos um rótulo padrão da plataforma.
|
|
*/
|
|
label?: string | null;
|
|
enabled?: boolean | null;
|
|
id?: string | null;
|
|
}[]
|
|
| null;
|
|
_status?: ('draft' | 'published') | null;
|
|
updatedAt?: string | null;
|
|
createdAt?: string | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "home".
|
|
*/
|
|
export interface Home {
|
|
id: number;
|
|
image: number | Media;
|
|
updatedAt?: string | null;
|
|
createdAt?: string | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "metadata".
|
|
*/
|
|
export interface Metadatum {
|
|
id: number;
|
|
URL: string;
|
|
title: string;
|
|
description: string;
|
|
keywords: {
|
|
keyword: string;
|
|
id?: string | null;
|
|
}[];
|
|
openGraph: {
|
|
siteName: string;
|
|
description: string;
|
|
};
|
|
twitter: {
|
|
creator: string;
|
|
description: string;
|
|
};
|
|
image?: (number | null) | Media;
|
|
updatedAt?: string | null;
|
|
createdAt?: string | null;
|
|
}
|
|
/**
|
|
* Aviso de Privacidade institucional exibido em /privacidade. Publicar somente após revisão jurídica.
|
|
*
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "privacy-policy".
|
|
*/
|
|
export interface PrivacyPolicy {
|
|
id: number;
|
|
/**
|
|
* Quando desmarcado, a rota pública /privacidade retorna 404.
|
|
*/
|
|
published?: boolean | null;
|
|
body: {
|
|
root: {
|
|
type: string;
|
|
children: {
|
|
type: any;
|
|
version: number;
|
|
[k: string]: unknown;
|
|
}[];
|
|
direction: ('ltr' | 'rtl') | null;
|
|
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
|
|
indent: number;
|
|
version: number;
|
|
};
|
|
[k: string]: unknown;
|
|
};
|
|
updatedAt?: string | null;
|
|
createdAt?: string | null;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "site-settings_select".
|
|
*/
|
|
export interface SiteSettingsSelect<T extends boolean = true> {
|
|
headerTitle?: T;
|
|
socialLinks?:
|
|
| T
|
|
| {
|
|
platform?: T;
|
|
url?: T;
|
|
label?: T;
|
|
enabled?: T;
|
|
id?: T;
|
|
};
|
|
_status?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
globalType?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "home_select".
|
|
*/
|
|
export interface HomeSelect<T extends boolean = true> {
|
|
image?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
globalType?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "metadata_select".
|
|
*/
|
|
export interface MetadataSelect<T extends boolean = true> {
|
|
URL?: T;
|
|
title?: T;
|
|
description?: T;
|
|
keywords?:
|
|
| T
|
|
| {
|
|
keyword?: T;
|
|
id?: T;
|
|
};
|
|
openGraph?:
|
|
| T
|
|
| {
|
|
siteName?: T;
|
|
description?: T;
|
|
};
|
|
twitter?:
|
|
| T
|
|
| {
|
|
creator?: T;
|
|
description?: T;
|
|
};
|
|
image?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
globalType?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "privacy-policy_select".
|
|
*/
|
|
export interface PrivacyPolicySelect<T extends boolean = true> {
|
|
published?: T;
|
|
body?: T;
|
|
updatedAt?: T;
|
|
createdAt?: T;
|
|
globalType?: T;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "collections_widget".
|
|
*/
|
|
export interface CollectionsWidget {
|
|
data?: {
|
|
[k: string]: unknown;
|
|
};
|
|
width: 'full';
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "TaskSchedulePublish".
|
|
*/
|
|
export interface TaskSchedulePublish {
|
|
input: {
|
|
type?: ('publish' | 'unpublish') | null;
|
|
locale?: string | null;
|
|
doc?:
|
|
| ({
|
|
relationTo: 'petition';
|
|
value: string | Petition;
|
|
} | null)
|
|
| ({
|
|
relationTo: 'post';
|
|
value: number | Post;
|
|
} | null);
|
|
global?: 'site-settings' | null;
|
|
user?: (number | null) | User;
|
|
};
|
|
output?: unknown;
|
|
}
|
|
/**
|
|
* This interface was referenced by `Config`'s JSON-Schema
|
|
* via the `definition` "auth".
|
|
*/
|
|
export interface Auth {
|
|
[k: string]: unknown;
|
|
}
|
|
|
|
|
|
declare module 'payload' {
|
|
export interface GeneratedTypes extends Config {}
|
|
} |