Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Aug 22, 2024
1 parent 1b60c31 commit bc912d3
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 138 deletions.
8 changes: 4 additions & 4 deletions app/[locale]/reference/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const generateStaticParams = async ({

const ReferencesParamQuery = graphql(`
query ReferenceParams($site: [String]) {
referenceModalsEntries(site: $site) {
... on referenceModals_default_Entry {
referenceEntries(site: $site) {
... on reference_default_Entry {
slug
}
}
Expand All @@ -44,7 +44,7 @@ export const generateStaticParams = async ({
site: [site],
},
});
return data?.referenceModalsEntries?.map((entry) => {
return data?.referenceEntries?.map((entry) => {
return { slug: entry?.slug };
});
};
Expand All @@ -65,7 +65,7 @@ const ReferencePage: FunctionComponent<ReferencePageProps> = async ({

const { entry } = data || {};

if (!entry || entry.__typename !== "referenceModals_default_Entry") {
if (!entry || entry.__typename !== "reference_default_Entry") {
notFound();
}

Expand Down
4 changes: 2 additions & 2 deletions components/content-blocks/Reference/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { FragmentType, graphql, useFragment } from "@/gql/public-schema";
import Buttonish from "@rubin-epo/epo-react-lib/Buttonish";

const Fragment = graphql(`
fragment ReferenceBlock on contentBlocks_referenceModalBlock_BlockType {
fragment ReferenceBlock on contentBlocks_referenceBlock_BlockType {
referenceModalEntries {
... on referenceModals_default_Entry {
... on reference_default_Entry {
title
uri
slug
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const blockMap: Record<
contentBlocks_filterTool_BlockType: Blocks.FilterTool,
contentBlocks_cameraFilterTool_BlockType: Blocks.CameraFilterTool,
contentBlocks_table_BlockType: Blocks.Table,
contentBlocks_referenceModalBlock_BlockType: Blocks.Reference,
contentBlocks_referenceBlock_BlockType: Blocks.Reference,
contentBlocks_colorFilterToolBlock_BlockType: Blocks.ColorFilterTool,
contentBlocks_equation_BlockType: Blocks.Equation,
contentBlocks_video_BlockType: Blocks.Video,
Expand Down
2 changes: 1 addition & 1 deletion components/templates/ReferenceContentPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as Styled from "./styles";
import CloseWindow from "@/components/molecules/buttons/CloseWindow";

const Fragment = graphql(`
fragment ReferenceContentTemplate on referenceModals_default_Entry {
fragment ReferenceContentTemplate on reference_default_Entry {
__typename
title
id
Expand Down
40 changes: 20 additions & 20 deletions gql/educator-schema/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2588,8 +2588,8 @@ export type Query = {
ping?: Maybe<Scalars['String']['output']>;
/** Entries within the questions section. */
questionsEntries?: Maybe<Array<Maybe<QuestionsSectionEntryUnion>>>;
/** Entries within the referenceModals section. */
referenceModalsEntries?: Maybe<Array<Maybe<ReferenceModalsSectionEntryUnion>>>;
/** Entries within the reference section. */
referenceEntries?: Maybe<Array<Maybe<ReferenceSectionEntryUnion>>>;
/** Gets authenticated user. */
viewer?: Maybe<UserInterface>;
/** Entries within the widgets section. */
Expand Down Expand Up @@ -3658,7 +3658,7 @@ export type QueryQuestionsEntriesArgs = {
};


export type QueryReferenceModalsEntriesArgs = {
export type QueryReferenceEntriesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -4596,7 +4596,7 @@ export type ColorFilterToolObjects_Object_BlockType_CountArgs = {
field: Scalars['String']['input'];
};

export type ContentBlocks_NeoField = ContentBlocks_BarGraphTool_BlockType | ContentBlocks_CameraFilterTool_BlockType | ContentBlocks_ColLeft_BlockType | ContentBlocks_ColRight_BlockType | ContentBlocks_ColorFilterToolBlock_BlockType | ContentBlocks_Equation_BlockType | ContentBlocks_FilterTool_BlockType | ContentBlocks_Group_BlockType | ContentBlocks_Image_BlockType | ContentBlocks_MagnitudeScatterPlot_BlockType | ContentBlocks_QuestionBlock_BlockType | ContentBlocks_ReferenceModalBlock_BlockType | ContentBlocks_ScatterplotTool_BlockType | ContentBlocks_SupernovaDistanceDistribution_BlockType | ContentBlocks_Table_BlockType | ContentBlocks_Text_BlockType | ContentBlocks_TwoColumnContainer_BlockType | ContentBlocks_Video_BlockType;
export type ContentBlocks_NeoField = ContentBlocks_BarGraphTool_BlockType | ContentBlocks_CameraFilterTool_BlockType | ContentBlocks_ColLeft_BlockType | ContentBlocks_ColRight_BlockType | ContentBlocks_ColorFilterToolBlock_BlockType | ContentBlocks_Equation_BlockType | ContentBlocks_FilterTool_BlockType | ContentBlocks_Group_BlockType | ContentBlocks_Image_BlockType | ContentBlocks_MagnitudeScatterPlot_BlockType | ContentBlocks_QuestionBlock_BlockType | ContentBlocks_ReferenceBlock_BlockType | ContentBlocks_ScatterplotTool_BlockType | ContentBlocks_SupernovaDistanceDistribution_BlockType | ContentBlocks_Table_BlockType | ContentBlocks_Text_BlockType | ContentBlocks_TwoColumnContainer_BlockType | ContentBlocks_Video_BlockType;

export type ContentBlocks_BarGraphTool_BlockType = ElementInterface & NeoBlockInterface & {
__typename?: 'contentBlocks_barGraphTool_BlockType';
Expand Down Expand Up @@ -5558,8 +5558,8 @@ export type ContentBlocks_QuestionBlock_BlockTypeQuestionEntriesArgs = {
yAxisMin?: InputMaybe<Array<InputMaybe<Scalars['QueryArgument']['input']>>>;
};

export type ContentBlocks_ReferenceModalBlock_BlockType = ElementInterface & NeoBlockInterface & {
__typename?: 'contentBlocks_referenceModalBlock_BlockType';
export type ContentBlocks_ReferenceBlock_BlockType = ElementInterface & NeoBlockInterface & {
__typename?: 'contentBlocks_referenceBlock_BlockType';
/** Return a number of related elements for a field. */
_count?: Maybe<Scalars['Int']['output']>;
/** Whether the element is archived. */
Expand Down Expand Up @@ -5610,12 +5610,12 @@ export type ContentBlocks_ReferenceModalBlock_BlockType = ElementInterface & Neo
};


export type ContentBlocks_ReferenceModalBlock_BlockType_CountArgs = {
export type ContentBlocks_ReferenceBlock_BlockType_CountArgs = {
field: Scalars['String']['input'];
};


export type ContentBlocks_ReferenceModalBlock_BlockTypeReferenceModalEntriesArgs = {
export type ContentBlocks_ReferenceBlock_BlockTypeReferenceModalEntriesArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16214,10 +16214,10 @@ export type ReferenceContentBlocks_Text_BlockType_CountArgs = {
field: Scalars['String']['input'];
};

export type ReferenceModalsSectionEntryUnion = ReferenceModals_Default_Entry;
export type ReferenceSectionEntryUnion = Reference_Default_Entry;

export type ReferenceModals_Default_Entry = ElementInterface & EntryInterface & {
__typename?: 'referenceModals_default_Entry';
export type Reference_Default_Entry = ElementInterface & EntryInterface & {
__typename?: 'reference_default_Entry';
/** Return a number of related elements for a field. */
_count?: Maybe<Scalars['Int']['output']>;
/** The entry’s ancestors, if the section is a structure. Accepts the same arguments as the `entries` query. */
Expand Down Expand Up @@ -16326,12 +16326,12 @@ export type ReferenceModals_Default_Entry = ElementInterface & EntryInterface &
};


export type ReferenceModals_Default_Entry_CountArgs = {
export type Reference_Default_Entry_CountArgs = {
field: Scalars['String']['input'];
};


export type ReferenceModals_Default_EntryAncestorsArgs = {
export type Reference_Default_EntryAncestorsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16419,7 +16419,7 @@ export type ReferenceModals_Default_EntryAncestorsArgs = {
};


export type ReferenceModals_Default_EntryChildrenArgs = {
export type Reference_Default_EntryChildrenArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16507,7 +16507,7 @@ export type ReferenceModals_Default_EntryChildrenArgs = {
};


export type ReferenceModals_Default_EntryDescendantsArgs = {
export type Reference_Default_EntryDescendantsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16595,7 +16595,7 @@ export type ReferenceModals_Default_EntryDescendantsArgs = {
};


export type ReferenceModals_Default_EntryLocalizedArgs = {
export type Reference_Default_EntryLocalizedArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16683,7 +16683,7 @@ export type ReferenceModals_Default_EntryLocalizedArgs = {
};


export type ReferenceModals_Default_EntryNextArgs = {
export type Reference_Default_EntryNextArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16771,7 +16771,7 @@ export type ReferenceModals_Default_EntryNextArgs = {
};


export type ReferenceModals_Default_EntryParentArgs = {
export type Reference_Default_EntryParentArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16859,7 +16859,7 @@ export type ReferenceModals_Default_EntryParentArgs = {
};


export type ReferenceModals_Default_EntryPrevArgs = {
export type Reference_Default_EntryPrevArgs = {
after?: InputMaybe<Scalars['String']['input']>;
ancestorDist?: InputMaybe<Scalars['Int']['input']>;
ancestorOf?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -16947,7 +16947,7 @@ export type ReferenceModals_Default_EntryPrevArgs = {
};


export type ReferenceModals_Default_EntryReferenceContentBlocksArgs = {
export type Reference_Default_EntryReferenceContentBlocksArgs = {
dateCreated?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
dateUpdated?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
fieldId?: InputMaybe<Array<InputMaybe<Scalars['QueryArgument']['input']>>>;
Expand Down
Loading

0 comments on commit bc912d3

Please sign in to comment.