Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ickynavigator committed Dec 23, 2023
1 parent 5cad482 commit fe54bb6
Showing 1 changed file with 117 additions and 18 deletions.
135 changes: 117 additions & 18 deletions schema.d.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
import type {
SanityReference,
SanityKeyedReference,
SanityAsset,
SanityImage,
SanityFile,
SanityGeoPoint,
SanityBlock,
SanityDocument,
SanityFile,
SanityGeoPoint,
SanityImage,
SanityImageAsset,
SanityImageCrop,
SanityImageDimensions,
SanityImageHotspot,
SanityKeyed,
SanityImageAsset,
SanityImageMetadata,
SanityImageDimensions,
SanityImagePalette,
SanityImagePaletteSwatch,
SanityKeyed,
SanityKeyedReference,
SanityReference,
} from 'sanity-codegen';

export type {
SanityReference,
SanityKeyedReference,
SanityAsset,
SanityImage,
SanityFile,
SanityGeoPoint,
SanityBlock,
SanityDocument,
SanityFile,
SanityGeoPoint,
SanityImage,
SanityImageAsset,
SanityImageCrop,
SanityImageDimensions,
SanityImageHotspot,
SanityKeyed,
SanityImageAsset,
SanityImageMetadata,
SanityImageDimensions,
SanityImagePalette,
SanityImagePaletteSwatch,
SanityKeyed,
SanityKeyedReference,
SanityReference,
};

/**
Expand Down Expand Up @@ -311,7 +311,7 @@ export interface ContactForms extends SanityDocument {
email?: string;

/**
* Message — `string`
* Message — `text`
*
*
*/
Expand Down Expand Up @@ -390,6 +390,104 @@ export interface Author extends SanityDocument {
};
}

/**
* Career
*
*
*/
export interface Career extends SanityDocument {
_type: 'career';

/**
* Hide Career — `boolean`
*
*
*/
careerHide: boolean;

/**
* Employment Type — `string`
*
*
*/
employmentType:
| 'Contract'
| 'Self-employed'
| 'Part-time'
| 'Full-time'
| 'Internship'
| 'Apprenticeship'
| 'Freelance';

/**
* Title — `string`
*
*
*/
title: string;

/**
* Company Name — `string`
*
*
*/
name: string;

/**
* Location — `string`
*
*
*/
location?: string;

/**
* Location Type — `string`
*
*
*/
locationType: 'On-site' | 'Hybrid' | 'Remote';

/**
* Company Logo — `image`
*
*
*/
companyLogo?: {
_type: 'image';
asset: SanityReference<SanityImageAsset>;
crop?: SanityImageCrop;
hotspot?: SanityImageHotspot;
};

/**
* Start Date — `date`
*
*
*/
startDate: string;

/**
* End Date — `date`
*
*
*/
endDate?: string;

/**
* Description — `blockContent`
*
*
*/
description: BlockContent;

/**
* Skills — `array`
*
*
*/
skillTags: Array<SanityKeyedReference<Category>>;
}

export type BlockContent = Array<
| SanityKeyed<SanityBlock>
| SanityKeyed<{
Expand Down Expand Up @@ -464,4 +562,5 @@ export type Documents =
| Certificate
| ContactForms
| Category
| Author;
| Author
| Career;

1 comment on commit fe54bb6

@vercel
Copy link

@vercel vercel bot commented on fe54bb6 Dec 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.