Ran precommit

This commit is contained in:
DrMint 2024-04-04 15:10:40 +02:00
parent 6d155e73af
commit 941ae62099
2 changed files with 22 additions and 13 deletions

View File

@ -12,7 +12,12 @@ import {
import { createGetByEndpoint } from "../../../endpoints/createGetByEndpoint"; import { createGetByEndpoint } from "../../../endpoints/createGetByEndpoint";
import { EndpointPage, EndpointPagePreview, TableOfContentEntry } from "../../../sdk"; import { EndpointPage, EndpointPagePreview, TableOfContentEntry } from "../../../sdk";
import { Page } from "../../../types/collections"; import { Page } from "../../../types/collections";
import { isNotEmpty, isPayloadArrayType, isPayloadType, isValidPayloadImage } from "../../../utils/asserts"; import {
isNotEmpty,
isPayloadArrayType,
isPayloadType,
isValidPayloadImage,
} from "../../../utils/asserts";
import { convertTagsToGroups, handleParentPages, handleRecorder } from "../../../utils/endpoints"; import { convertTagsToGroups, handleParentPages, handleRecorder } from "../../../utils/endpoints";
export const getBySlugEndpoint = createGetByEndpoint({ export const getBySlugEndpoint = createGetByEndpoint({

View File

@ -15,6 +15,7 @@ export type RecorderBiographies =
language: string | Language; language: string | Language;
biography: { biography: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -23,7 +24,6 @@ export type RecorderBiographies =
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -87,6 +87,7 @@ export interface Page {
subtitle?: string | null; subtitle?: string | null;
summary?: { summary?: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -95,13 +96,13 @@ export interface Page {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
} | null; } | null;
content: { content: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -110,7 +111,6 @@ export interface Page {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -295,6 +295,7 @@ export interface Folder {
name: string; name: string;
description?: { description?: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -303,7 +304,6 @@ export interface Folder {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -356,6 +356,7 @@ export interface Collectible {
subtitle?: string | null; subtitle?: string | null;
description?: { description?: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -364,7 +365,6 @@ export interface Collectible {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -493,6 +493,7 @@ export interface Collectible {
language: string | Language; language: string | Language;
note: { note: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -501,7 +502,6 @@ export interface Collectible {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -565,6 +565,7 @@ export interface ChronologyEvent {
title?: string | null; title?: string | null;
description?: { description?: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -573,13 +574,13 @@ export interface ChronologyEvent {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
} | null; } | null;
notes?: { notes?: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -588,7 +589,6 @@ export interface ChronologyEvent {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -669,6 +669,7 @@ export interface Note {
id: string; id: string;
note: { note: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -677,7 +678,6 @@ export interface Note {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
@ -780,6 +780,7 @@ export interface HomeFolder {
export interface LineBlock { export interface LineBlock {
content: { content: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -788,11 +789,12 @@ export interface LineBlock {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
}; };
id?: string | null;
blockName?: string | null;
blockType: "lineBlock"; blockType: "lineBlock";
} }
/** /**
@ -802,6 +804,7 @@ export interface LineBlock {
export interface CueBlock { export interface CueBlock {
content: { content: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -810,11 +813,12 @@ export interface CueBlock {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
}; };
id?: string | null;
blockName?: string | null;
blockType: "cueBlock"; blockType: "cueBlock";
} }
/** /**
@ -844,6 +848,7 @@ export interface BreakBlock {
export interface SectionBlock { export interface SectionBlock {
content: { content: {
root: { root: {
type: string;
children: { children: {
type: string; type: string;
version: number; version: number;
@ -852,7 +857,6 @@ export interface SectionBlock {
direction: ("ltr" | "rtl") | null; direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | ""; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
type: string;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;