feat: revalidate my pages breadcrumbs on demand
This commit is contained in:
committed by
Michael Zetterberg
parent
ba13a00b63
commit
0c4aa592cc
@@ -1,14 +1,17 @@
|
||||
import { Lang } from "@/constants/languages"
|
||||
import type { AllRequestResponse } from "../utils/all"
|
||||
import type { EdgesWithTotalCount } from "../utils/edges"
|
||||
import type { Edges } from "../utils/edges"
|
||||
import type { System } from "../system"
|
||||
|
||||
interface AccountPageBreadcrumbs {
|
||||
breadcrumbs: {
|
||||
title: string
|
||||
parents: EdgesWithTotalCount<{
|
||||
parentsConnection: Edges<{
|
||||
breadcrumbs: {
|
||||
title: string
|
||||
}
|
||||
system: {
|
||||
locale: Lang
|
||||
uid: string
|
||||
}
|
||||
url: string
|
||||
@@ -25,3 +28,16 @@ interface AllAccountPageResponse
|
||||
export interface GetMyPagesBreadcrumbsData {
|
||||
all_account_page: AllAccountPageResponse
|
||||
}
|
||||
|
||||
interface AccountPageBreadcrumbRefs extends System {
|
||||
breadcrumbs: {
|
||||
parentsConnection: Edges<System>
|
||||
}
|
||||
}
|
||||
|
||||
interface AllAccountPageRefsResponse
|
||||
extends AllRequestResponse<AccountPageBreadcrumbRefs> { }
|
||||
|
||||
export interface GetMyPagesBreadcrumbsRefsData {
|
||||
all_account_page: AllAccountPageRefsResponse
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user