Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
regenerate types without localization
Browse files Browse the repository at this point in the history
  • Loading branch information
perryd01 committed Mar 10, 2023
1 parent 5c65dce commit 16d8b95
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 46 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"lint:prettier": "prettier --check --ignore-unknown --ignore-path ./.prettierignore .",
"lint:typescript": "tsc --noEmit",
"start": "next start",
"typegen": "dotenv -e .env.local -- cross-var cf-content-types-generator -l -s %CONTENTFUL_SPACE_ID% -t %CONTENTFUL_MANAGEMENT_TOKEN% -o src/@types/generated"
"typegen": "dotenv -e .env.local -- cross-var cf-content-types-generator -s %CONTENTFUL_SPACE_ID% -t %CONTENTFUL_MANAGEMENT_TOKEN% -o src/@types/generated"
},
"dependencies": {
"@mdx-js/loader": "^2.3.0",
Expand Down
12 changes: 0 additions & 12 deletions src/@types/generated/Localized.ts

This file was deleted.

11 changes: 11 additions & 0 deletions src/@types/generated/TypeBreak.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { Entry, EntryFields } from "contentful";

export interface TypeBreakFields {
isDouble: EntryFields.Boolean;
room?: "IB025" | "IB028";
startDate: EntryFields.Date;
endDate: EntryFields.Date;
content: EntryFields.Text;
}

export type TypeBreak = Entry<TypeBreakFields>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeGalleryImages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";

export interface TypeGalleryImagesFields {
name: EntryFields.Symbol;
Expand All @@ -9,5 +8,3 @@ export interface TypeGalleryImagesFields {
}

export type TypeGalleryImages = Entry<TypeGalleryImagesFields>;
export type LocalizedTypeGalleryImagesFields<Locales extends keyof any> = LocalizedFields<TypeGalleryImagesFields, Locales>;
export type LocalizedTypeGalleryImages<Locales extends keyof any> = LocalizedEntry<TypeGalleryImages, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeOrganizer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";

export interface TypeOrganizerFields {
name: EntryFields.Symbol;
Expand All @@ -10,5 +9,3 @@ export interface TypeOrganizerFields {
}

export type TypeOrganizer = Entry<TypeOrganizerFields>;
export type LocalizedTypeOrganizerFields<Locales extends keyof any> = LocalizedFields<TypeOrganizerFields, Locales>;
export type LocalizedTypeOrganizer<Locales extends keyof any> = LocalizedEntry<TypeOrganizer, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeParagraph.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";

export interface TypeParagraphFields {
name: EntryFields.Symbol;
Expand All @@ -10,5 +9,3 @@ export interface TypeParagraphFields {
}

export type TypeParagraph = Entry<TypeParagraphFields>;
export type LocalizedTypeParagraphFields<Locales extends keyof any> = LocalizedFields<TypeParagraphFields, Locales>;
export type LocalizedTypeParagraph<Locales extends keyof any> = LocalizedEntry<TypeParagraph, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypePresentation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";
import type { TypeSponsorLogoFields } from "./TypeSponsorLogo";

export interface TypePresentationFields {
Expand All @@ -17,5 +16,3 @@ export interface TypePresentationFields {
}

export type TypePresentation = Entry<TypePresentationFields>;
export type LocalizedTypePresentationFields<Locales extends keyof any> = LocalizedFields<TypePresentationFields, Locales>;
export type LocalizedTypePresentation<Locales extends keyof any> = LocalizedEntry<TypePresentation, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeSponsorLogo.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";

export interface TypeSponsorLogoFields {
name: EntryFields.Symbol;
Expand All @@ -9,5 +8,3 @@ export interface TypeSponsorLogoFields {
}

export type TypeSponsorLogo = Entry<TypeSponsorLogoFields>;
export type LocalizedTypeSponsorLogoFields<Locales extends keyof any> = LocalizedFields<TypeSponsorLogoFields, Locales>;
export type LocalizedTypeSponsorLogo<Locales extends keyof any> = LocalizedEntry<TypeSponsorLogo, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeWorkshop.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";
import type { TypeWorkshopPersonFields } from "./TypeWorkshopPerson";
import type { TypeWorkshopSlotFields } from "./TypeWorkshopSlot";

Expand All @@ -19,5 +18,3 @@ export interface TypeWorkshopFields {
}

export type TypeWorkshop = Entry<TypeWorkshopFields>;
export type LocalizedTypeWorkshopFields<Locales extends keyof any> = LocalizedFields<TypeWorkshopFields, Locales>;
export type LocalizedTypeWorkshop<Locales extends keyof any> = LocalizedEntry<TypeWorkshop, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeWorkshopPerson.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Asset, Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";

export interface TypeWorkshopPersonFields {
name: EntryFields.Symbol;
Expand All @@ -8,5 +7,3 @@ export interface TypeWorkshopPersonFields {
}

export type TypeWorkshopPerson = Entry<TypeWorkshopPersonFields>;
export type LocalizedTypeWorkshopPersonFields<Locales extends keyof any> = LocalizedFields<TypeWorkshopPersonFields, Locales>;
export type LocalizedTypeWorkshopPerson<Locales extends keyof any> = LocalizedEntry<TypeWorkshopPerson, Locales>;
3 changes: 0 additions & 3 deletions src/@types/generated/TypeWorkshopSlot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Entry, EntryFields } from "contentful";
import type { LocalizedEntry, LocalizedFields } from "./Localized";

export interface TypeWorkshopSlotFields {
name?: EntryFields.Symbol;
Expand All @@ -9,5 +8,3 @@ export interface TypeWorkshopSlotFields {
}

export type TypeWorkshopSlot = Entry<TypeWorkshopSlotFields>;
export type LocalizedTypeWorkshopSlotFields<Locales extends keyof any> = LocalizedFields<TypeWorkshopSlotFields, Locales>;
export type LocalizedTypeWorkshopSlot<Locales extends keyof any> = LocalizedEntry<TypeWorkshopSlot, Locales>;
18 changes: 9 additions & 9 deletions src/@types/generated/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export type { LocalizedEntry, LocalizedFields } from "./Localized";
export type { LocalizedTypeGalleryImages, LocalizedTypeGalleryImagesFields, TypeGalleryImages, TypeGalleryImagesFields } from "./TypeGalleryImages";
export type { LocalizedTypeOrganizer, LocalizedTypeOrganizerFields, TypeOrganizer, TypeOrganizerFields } from "./TypeOrganizer";
export type { LocalizedTypeParagraph, LocalizedTypeParagraphFields, TypeParagraph, TypeParagraphFields } from "./TypeParagraph";
export type { LocalizedTypePresentation, LocalizedTypePresentationFields, TypePresentation, TypePresentationFields } from "./TypePresentation";
export type { LocalizedTypeSponsorLogo, LocalizedTypeSponsorLogoFields, TypeSponsorLogo, TypeSponsorLogoFields } from "./TypeSponsorLogo";
export type { LocalizedTypeWorkshop, LocalizedTypeWorkshopFields, TypeWorkshop, TypeWorkshopFields } from "./TypeWorkshop";
export type { LocalizedTypeWorkshopPerson, LocalizedTypeWorkshopPersonFields, TypeWorkshopPerson, TypeWorkshopPersonFields } from "./TypeWorkshopPerson";
export type { LocalizedTypeWorkshopSlot, LocalizedTypeWorkshopSlotFields, TypeWorkshopSlot, TypeWorkshopSlotFields } from "./TypeWorkshopSlot";
export type { TypeBreak, TypeBreakFields } from "./TypeBreak";
export type { TypeGalleryImages, TypeGalleryImagesFields } from "./TypeGalleryImages";
export type { TypeOrganizer, TypeOrganizerFields } from "./TypeOrganizer";
export type { TypeParagraph, TypeParagraphFields } from "./TypeParagraph";
export type { TypePresentation, TypePresentationFields } from "./TypePresentation";
export type { TypeSponsorLogo, TypeSponsorLogoFields } from "./TypeSponsorLogo";
export type { TypeWorkshop, TypeWorkshopFields } from "./TypeWorkshop";
export type { TypeWorkshopPerson, TypeWorkshopPersonFields } from "./TypeWorkshopPerson";
export type { TypeWorkshopSlot, TypeWorkshopSlotFields } from "./TypeWorkshopSlot";

0 comments on commit 16d8b95

Please sign in to comment.