import type { JsonApiResource, JsonApiResourceWithPath, JsonApiResponse, } from "./resource" export interface DrupalBlock extends JsonApiResource { info: string } export interface DrupalFile extends JsonApiResource { drupal_internal__fid: string changed: string created: string filename: string uri: { value: string url: string } filesize: number filemime: string resourceIdObjMeta?: DrupalFileMeta } export interface DrupalFileMeta { alt?: string title?: string width: number height: number } export interface DrupalMedia extends JsonApiResource { drupal_internal__mid: string drupal_internal__vid: string changed: string created: string name: string } export interface DrupalMenuItem { description: string enabled: boolean expanded: boolean id: DrupalMenuItemId menu_name: string meta: Record options: Record parent: DrupalMenuItemId provider: string route: { name: string parameters: Record } title: string type: string url: string weight: string items?: DrupalMenuItem[] } export type DrupalMenuItemId = string export interface DrupalNode extends JsonApiResourceWithPath { drupal_internal__nid: number drupal_internal__vid: number changed: string created: string title: string default_langcode: boolean sticky: boolean } export interface DrupalParagraph extends JsonApiResource { drupal_internal__id: number drupal_internal__revision_id: number } export type DrupalPathAlias = { alias: string pid: number langcode: string } export interface DrupalSearchApiJsonApiResponse extends JsonApiResponse { meta: JsonApiResponse["meta"] & { facets?: DrupalSearchApiFacet[] } } export interface DrupalSearchApiFacet { id: string label?: string path?: string terms?: { url: string values: { value: string label: string active?: boolean count?: number } }[] } export interface DrupalTaxonomyTerm extends JsonApiResourceWithPath { drupal_internal__tid: string changed: string default_langcode: boolean name: string description: string weight: number } export interface DrupalTranslatedPath { resolved: string isHomePath: boolean entity: { canonical: string type: string bundle: string id: string uuid: string langcode?: string path?: string } label?: string jsonapi?: { individual: string resourceName: string pathPrefix: string basePath: string entryPoint: string } meta?: Record redirect?: { from: string to: string status: string }[] } export interface DrupalUser extends JsonApiResourceWithPath { drupal_internal__uid: string changed: string created: string default_langcode: boolean name: string } /* eslint-disable @typescript-eslint/no-explicit-any */ export interface DrupalView[]> { id: string results: T meta: JsonApiResponse["meta"] links: JsonApiResponse["links"] }