feat(SW-66, SW-348): search functionality and ui
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import type { Image } from "@/types/image"
|
||||
import type { EmbedEnum } from "./embeds"
|
||||
import type { Typename } from "./typename"
|
||||
import type { TypenameInterface } from "./typename"
|
||||
|
||||
export type SysAsset = Typename<Image, EmbedEnum.SysAsset>
|
||||
export interface SysAsset
|
||||
extends TypenameInterface<EmbedEnum.SysAsset>,
|
||||
Image {}
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
import type { Lang } from "@/constants/languages"
|
||||
import { z } from "zod"
|
||||
|
||||
import {
|
||||
extendedPageLinkSchema,
|
||||
pageLinkSchema,
|
||||
} from "@/server/routers/contentstack/schemas/pageLinks"
|
||||
|
||||
import type { EmbedEnum } from "./embeds"
|
||||
import type { Typename } from "./typename"
|
||||
import type { TypenameInterface } from "./typename"
|
||||
|
||||
export type PageLink = {
|
||||
system: {
|
||||
uid: string
|
||||
locale: Lang
|
||||
}
|
||||
title: string
|
||||
url: string
|
||||
}
|
||||
export interface PageLink extends z.output<typeof pageLinkSchema> {}
|
||||
|
||||
export type PageLinkType = Typename<PageLink, EmbedEnum.CurrentBlocksPage>
|
||||
export interface PageLinkWithOriginalUrl
|
||||
extends z.output<typeof extendedPageLinkSchema> {}
|
||||
|
||||
export interface PageLinkType
|
||||
extends TypenameInterface<EmbedEnum.CurrentBlocksPage>,
|
||||
PageLink {}
|
||||
|
||||
Reference in New Issue
Block a user