examples/example-data.ts
Rama main · réplica de lectura del repositorio original.
export const authors = [
{ name: 'Arthur Conan Doyle', email: 'arthur.cd@email.com' },
{ name: 'Emily Brontë', email: 'emily.b@email.com' },
{ name: 'Jane Austen', email: 'austen.j@email.com' },
{ name: 'Daren Shipley', email: 'austen.j@email.com' },
{ name: 'Lewis Carroll', email: 'lewis.carroll@email.com' },
{ name: 'Lewis Carroll', email: 'lewis.carroll@email.com' },
{ name: 'George Eliot', email: 'g.eliot@email.com' },
{ name: 'L. Frank Baum', email: 'l.baum@email.com' },
]
export const persons = [
{ name: 'Lucy Wroblewski' },
{ name: 'Ches Adebayor' },
{ name: 'Tiff Jayden' },
{ name: 'Henrique Urrea' },
]
export const posts = [
{
title: 'The Adventures of Sherlock Holmes',
status: 'draft',
publishDate: '2021-08-19T02:30:00.000Z',
author: 'Arthur Conan Doyle',
content:
'One night—it was on the twentieth of March, 1888—I was returning from a journey to a patient (for I had now returned to civil practice), when my way led me through Baker Street. As I passed the well-remembered door, which must always be associated in my mind with my wooing, and with the dark incidents of the Study in Scarlet, I was seized with a keen desire to see Holmes again, and to know how he was employing his extraordinary powers. His rooms were brilliantly lit, and, even as I looked up, I saw his tall, spare figure pass twice in a dark silhouette against the blind. He was pacing the room swiftly, eagerly, with his head sunk upon his chest and his hands clasped behind him. To me, who knew his every mood and habit, his attitude and manner told their own story. He was at work again. He had risen out of his drug-created dreams and was hot upon the scent of some new problem. I rang the bell and was shown up to the chamber which had formerly been in part my own. ',
},
{
title: 'Wuthering Heights',
status: 'published',
publishDate: '2021-04-22T05:43:51.000Z',
author: 'Emily Brontë',
content:
'I have just returned from a visit to my landlord—the solitary neighbour that I shall be troubled with. This is certainly a beautiful country! In all England, I do not believe that I could have fixed on a situation so completely removed from the stir of society. A perfect misanthropist’s Heaven—and Mr. Heathcliff and I are such a suitable pair to divide the desolation between us. A capital fellow! He little imagined how my heart warmed towards him when I beheld his black eyes withdraw so suspiciously under their brows, as I rode up, and when his fingers sheltered themselves, with a jealous resolution, still further in his waistcoat, as I announced my name.',
},
{
title: 'Emma',
status: 'draft',
publishDate: '2021-02-02T20:02:37.000Z',
author: 'Jane Austen',
content:
'Emma Woodhouse, handsome, clever, and rich, with a comfortable home and happy disposition, seemed to unite some of the best blessings of existence; and had lived nearly twenty-one years in the world with very little to distress or vex her. She was the youngest of the two daughters of a most affectionate, indulgent father; and had, in consequence of her sister’s marriage, been mistress of his house from a very early period. Her mother had died too long ago for her to have more than an indistinct remembrance of her caresses; and her place had been supplied by an excellent woman as governess, who had fallen little short of a mother in affection.',
},
{
title: 'Sense and Sensibility',
status: 'published',
publishDate: '2021-05-07T22:17:07.000Z',
author: 'Jane Austen',
content:
'The family of Dashwood had long been settled in Sussex. Their estate was large, and their residence was at Norland Park, in the centre of their property, where, for many generations, they had lived in so respectable a manner as to engage the general good opinion of their surrounding acquaintance. The late owner of this estate was a single man, who lived to a very advanced age, and who for many years of his life, had a constant companion and housekeeper in his sister. But her death, which happened ten years before his own, produced a great alteration in his home; for to supply her loss, he invited and received into his house the family of his nephew Mr. Henry Dashwood, the legal inheritor of the Norland estate, and the person to whom he intended to bequeath it. In the society of his nephew and niece, and their children, the old Gentleman’s days were comfortably spent. His attachment to them all increased. The constant attention of Mr. and Mrs. Henry Dashwood to his wishes, which proceeded not merely from interest, but from goodness of heart, gave him every degree of solid comfort which his age could receive; and the cheerfulness of the children added a relish to his existence.',
},
{
title: 'Through the Looking-Glass',
status: 'draft',
publishDate: '2021-03-09T05:41:37.000Z',
author: 'Lewis Carroll',
content:
'One thing was certain, that the white kitten had had nothing to do with it: it was the black kitten’s fault entirely. For the white kitten had been having its face washed by the old cat for the last quarter of an hour (and bearing it pretty well, considering); so you see that it couldn’t have had any hand in the mischief. ',
},
{
title: 'Jabberwocky',
status: 'published',
publishDate: '2021-07-27T00:12:02.000Z',
author: 'Lewis Carroll',
content:
'"’Twas brillig, and the slithy toves Did gyre and gimble in the wabe: All mimsy were the borogoves, And the mome raths outgrabe. “Beware the Jabberwock, my son! The jaws that bite, the claws that catch! Beware the Jubjub bird, and shun The frumious Bandersnatch!”" ',
},
{
title: 'Middlemarch',
status: 'draft',
publishDate: '2021-08-07T05:50:57.000Z',
author: 'George Eliot',
content:
'Who that cares much to know the history of man, and how the mysterious mixture behaves under the varying experiments of Time, has not dwelt, at least briefly, on the life of Saint Theresa, has not smiled with some gentleness at the thought of the little girl walking forth one morning hand-in-hand with her still smaller brother, to go and seek martyrdom in the country of the Moors? Out they toddled from rugged Avila, wide-eyed and helpless-looking as two fawns, but with human hearts, already beating to a national idea; until domestic reality met them in the shape of uncles, and turned them back from their great resolve. That child-pilgrimage was a fit beginning. Theresa’s passionate, ideal nature demanded an epic life: what were many-volumed romances of chivalry and the social conquests of a brilliant girl to her? Her flame quickly burned up that light fuel; and, fed from within, soared after some illimitable satisfaction, some object which would never justify weariness, which would reconcile self-despair with the rapturous consciousness of life beyond self. She found her epos in the reform of a religious order. ',
},
{
title: 'The Wonderful Wizard of Oz',
status: 'published',
publishDate: '2021-03-01T06:41:57.000Z',
author: 'L. Frank Baum',
content:
'Dorothy lived in the midst of the great Kansas prairies, with Uncle Henry, who was a farmer, and Aunt Em, who was the farmer’s wife. Their house was small, for the lumber to build it had to be carried by wagon many miles. There were four walls, a floor and a roof, which made one room; and this room contained a rusty looking cookstove, a cupboard for the dishes, a table, three or four chairs, and the beds. Uncle Henry and Aunt Em had a big bed in one corner, and Dorothy a little bed in another corner. There was no garret at all, and no cellar—except a small hole dug in the ground, called a cyclone cellar, where the family could go in case one of those great whirlwinds arose, mighty enough to crush any building in its path. It was reached by a trap door in the middle of the floor, from which a ladder led down into the small, dark hole.',
},
] as const
export const tasks = [
{
label: 'Install Keystone in local dev 🧪',
isComplete: true,
finishBy: '2021-01-01T02:30:00.000Z',
assignedTo: 'Lucy Wroblewski',
priority: 'high',
},
{
label: 'Model the content💡',
isComplete: true,
finishBy: '2021-01-22T05:43:51.000Z',
assignedTo: 'Ches Adebayor',
priority: 'high',
},
{
label: 'Architect the data schema 🔗',
isComplete: true,
finishBy: '2021-02-02T20:02:37.000Z',
assignedTo: 'Lucy Wroblewski',
priority: 'high',
},
{
label: 'Design the UI 💅🏼',
isComplete: true,
finishBy: '2021-02-24T22:17:07.000Z',
assignedTo: 'Tiff Jayden',
priority: 'medium',
},
{
label: 'Publish the content 📝',
isComplete: true,
finishBy: '2021-03-01T05:41:37.000Z',
assignedTo: 'Ches Adebayor',
priority: 'low',
},
{
label: 'Query content over GraphQL🔎',
isComplete: false,
finishBy: '2021-03-21T05:41:37.000Z',
assignedTo: 'Lucy Wroblewski',
priority: 'medium',
},
{
label: 'Implement the UI design in code 🖼',
isComplete: false,
finishBy: '2021-03-23T05:41:37.000Z',
assignedTo: 'Henrique Urrea',
priority: 'medium',
},
{
label: 'Deploy Keystone backend to the web ☁️',
isComplete: false,
finishBy: '2021-03-30T05:41:37.000Z',
assignedTo: 'Lucy Wroblewski',
priority: 'low',
},
{
label: 'Launch project 🚀',
isComplete: false,
finishBy: '2021-04-01T05:41:37.000Z',
assignedTo: 'Lucy Wroblewski',
priority: 'low',
},
] as const
export const products = [
{
name: 'Yeti Hondo',
description: 'soo nice',
status: 'AVAILABLE',
price: 3423,
photo: {
id: '5dfbed262849d7961377c2c0',
filename: 'hondo.jpg',
originalFilename: 'hondo.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5dfbed262849d7961377c2c0',
version: 1576791335,
signature: '9f7d5115788b7677307a39214f9684dd827ea5f9',
width: 750,
height: 457,
format: 'jpg',
resource_type: 'image',
created_at: '2020-12-19T21:35:35.739Z',
tags: [],
bytes: 27871,
type: 'upload',
etag: 'e1fdf84d5126b6ca2e1c8ef9532be5a5',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1576791335/sick-fits-keystone/5dfbed262849d7961377c2c0.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1576791335/sick-fits-keystone/5dfbed262849d7961377c2c0.jpg',
original_filename: 'file',
},
},
},
{
name: 'Airmax 270',
description: 'Great shoes!',
status: 'AVAILABLE',
price: 5234,
photo: {
id: '5e2a13f0689b2835ae71d1a5',
filename: '270-camo-sunset.jpg',
originalFilename: '270-camo-sunset.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a13f0689b2835ae71d1a5',
version: 1579815920,
signature: 'a430b2d35f6a03dc562f6f56a474deb6810e393f',
width: 960,
height: 640,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:45:20.833Z',
tags: [],
bytes: 45455,
type: 'upload',
etag: 'aebe8e9cc98ee4ad71682f19af85745b',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579815920/sick-fits-keystone/5e2a13f0689b2835ae71d1a5.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579815920/sick-fits-keystone/5e2a13f0689b2835ae71d1a5.jpg',
original_filename: 'file',
},
},
},
{
name: 'KITH Hoodie',
description: 'Love this hoodie',
status: 'AVAILABLE',
price: 23562,
photo: {
id: '5e2a13ff689b2835ae71d1a7',
filename: 'kith-hoodie.jpg',
originalFilename: 'kith-hoodie.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a13ff689b2835ae71d1a7',
version: 1579815935,
signature: '360df116020320a14845cf235b87a4a5cdc23f86',
width: 2000,
height: 2000,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:45:36.012Z',
tags: [],
bytes: 202924,
type: 'upload',
etag: 'b6fbc18b196c68e2b87f51539b849e70',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579815935/sick-fits-keystone/5e2a13ff689b2835ae71d1a7.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579815935/sick-fits-keystone/5e2a13ff689b2835ae71d1a7.jpg',
original_filename: 'file',
},
},
},
{
name: 'Fanorak',
description: 'Super hip. Comes in a number of colours',
status: 'AVAILABLE',
price: 252342,
photo: {
id: '5e2a1413689b2835ae71d1a9',
filename: 'TNF-fanorak.png',
originalFilename: 'TNF-fanorak.png',
mimetype: 'image/png',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a1413689b2835ae71d1a9',
version: 1579815957,
signature: 'affd16fa20107a4d5399aab553ea77fff1c4b2ef',
width: 1276,
height: 1490,
format: 'png',
resource_type: 'image',
created_at: '2020-01-23T21:45:58.336Z',
tags: [],
bytes: 2454948,
type: 'upload',
etag: 'ce0f36da93c60c5d4406657225206f70',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579815957/sick-fits-keystone/5e2a1413689b2835ae71d1a9.png',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579815957/sick-fits-keystone/5e2a1413689b2835ae71d1a9.png',
original_filename: 'file',
},
},
},
{
name: 'Nike Vapormax',
description: 'Kind of squeaky on some floors',
status: 'AVAILABLE',
price: 83456,
photo: {
id: '5e2a142c689b2835ae71d1ab',
filename: 'vapormax.jpg',
originalFilename: 'vapormax.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a142c689b2835ae71d1ab',
version: 1579815980,
signature: '6dd95447407c06ba955164c4961bd4abc2fb9f4d',
width: 1100,
height: 735,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:46:21.015Z',
tags: [],
bytes: 183071,
type: 'upload',
etag: '5550566c7fab113ba32d85ed08f54faa',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579815980/sick-fits-keystone/5e2a142c689b2835ae71d1ab.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579815980/sick-fits-keystone/5e2a142c689b2835ae71d1ab.jpg',
original_filename: 'file',
},
},
},
{
name: 'Yeti Cooler',
description: 'Who spends this much on a cooler?!',
status: 'AVAILABLE',
price: 75654,
photo: {
id: '5e2a143f689b2835ae71d1ad',
filename: 'coral-yeti.jpg',
originalFilename: 'coral-yeti.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a143f689b2835ae71d1ad',
version: 1579815999,
signature: '97e8f27cdbb6a736062391b9ac3a5c689bd50646',
width: 1300,
height: 1144,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:46:40.526Z',
tags: [],
bytes: 286643,
type: 'upload',
etag: '3655bfd83998492b8421782db868c9df',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579815999/sick-fits-keystone/5e2a143f689b2835ae71d1ad.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579815999/sick-fits-keystone/5e2a143f689b2835ae71d1ad.jpg',
original_filename: 'file',
},
},
},
{
name: 'Naked and Famous Denim',
description: 'Japanese Denim, made in Canada',
status: 'AVAILABLE',
price: 10924,
photo: {
id: '5e2a145d689b2835ae71d1af',
filename: 'naked-and-famous-denim.jpg',
originalFilename: 'naked-and-famous-denim.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a145d689b2835ae71d1af',
version: 1579816030,
signature: '76dec3670cc4a4c22723720bb94496a35945c626',
width: 1024,
height: 683,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:47:11.415Z',
tags: [],
bytes: 146817,
type: 'upload',
etag: '3d68591332785ae5273ed43b1aa91712',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579816030/sick-fits-keystone/5e2a145d689b2835ae71d1af.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579816030/sick-fits-keystone/5e2a145d689b2835ae71d1af.jpg',
original_filename: 'file',
},
},
},
{
name: 'Rimowa Luggage',
description: 'S T E A L T H',
status: 'AVAILABLE',
price: 47734,
photo: {
id: '5e2a147b689b2835ae71d1b1',
filename: 'rimowa.png',
originalFilename: 'rimowa.png',
mimetype: 'image/png',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a147b689b2835ae71d1b1',
version: 1579816060,
signature: 'a6161568d2d59a59e8dba9b15e705581198ea377',
width: 800,
height: 1004,
format: 'png',
resource_type: 'image',
created_at: '2020-01-23T21:47:41.358Z',
tags: [],
bytes: 953657,
type: 'upload',
etag: 'd89ab8ecc366bc63464a3eeef6ef3010',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579816060/sick-fits-keystone/5e2a147b689b2835ae71d1b1.png',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579816060/sick-fits-keystone/5e2a147b689b2835ae71d1b1.png',
original_filename: 'file',
},
},
},
{
name: 'Black Hole ',
description: 'Outdoorsy ',
status: 'AVAILABLE',
price: 4534,
photo: {
id: '5e2a149b689b2835ae71d1b3',
filename: 'patagonia black hole.jpg',
originalFilename: 'patagonia black hole.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a149b689b2835ae71d1b3',
version: 1579816093,
signature: '6ac148051cb4ba0227ee49fd61fa1348ab4a9870',
width: 2000,
height: 2000,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:48:13.812Z',
tags: [],
bytes: 515360,
type: 'upload',
etag: '8aed0984d37a3d12faa832860b29d24b',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579816093/sick-fits-keystone/5e2a149b689b2835ae71d1b3.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579816093/sick-fits-keystone/5e2a149b689b2835ae71d1b3.jpg',
original_filename: 'file',
},
},
},
{
name: 'Nudie Belt',
description: 'Sick design',
status: 'AVAILABLE',
price: 5234,
photo: {
id: '5e2a14b1689b2835ae71d1b5',
filename: 'nudie-belt.jpg',
originalFilename: 'nudie-belt.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a14b1689b2835ae71d1b5',
version: 1579816114,
signature: '24f3ff4ae91dfcc8d1ddeb1a713215730e834be4',
width: 650,
height: 650,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:48:34.398Z',
tags: [],
bytes: 71291,
type: 'upload',
etag: '3a4b97ef88c550dcd6c2d399d1bc698e',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579816114/sick-fits-keystone/5e2a14b1689b2835ae71d1b5.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579816114/sick-fits-keystone/5e2a14b1689b2835ae71d1b5.jpg',
original_filename: 'file',
},
},
},
{
name: 'Goose',
description: 'Keep warm.',
status: 'AVAILABLE',
price: 74544,
photo: {
id: '5e2a14bf689b2835ae71d1b7',
filename: 'canada-goose.jpg',
originalFilename: 'canada-goose.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a14bf689b2835ae71d1b7',
version: 1579816128,
signature: 'bebf3d817e91cdbb91768e8c9c2133a78798a317',
width: 800,
height: 800,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:48:48.633Z',
tags: [],
bytes: 180261,
type: 'upload',
etag: 'f9c8725f815a6873cbdc47ba3f869049',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579816128/sick-fits-keystone/5e2a14bf689b2835ae71d1b7.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579816128/sick-fits-keystone/5e2a14bf689b2835ae71d1b7.jpg',
original_filename: 'file',
},
},
},
{
name: 'Ultraboost',
description: 'blacked out',
status: 'AVAILABLE',
price: 6344,
photo: {
id: '5e2a14cc689b2835ae71d1b9',
filename: 'ultra-boost.jpg',
originalFilename: 'ultra-boost.jpg',
mimetype: 'image/jpeg',
encoding: '7bit',
_meta: {
public_id: 'sick-fits-keystone/5e2a14cc689b2835ae71d1b9',
version: 1579816141,
signature: '18720c13b7f6d4fcde919dddb33d1c711a459c14',
width: 565,
height: 372,
format: 'jpg',
resource_type: 'image',
created_at: '2020-01-23T21:49:01.569Z',
tags: [],
bytes: 50754,
type: 'upload',
etag: '44cf57f8218f135b82cfa5df0da92a49',
placeholder: false,
url: 'http://res.cloudinary.com/wesbos/image/upload/v1579816141/sick-fits-keystone/5e2a14cc689b2835ae71d1b9.jpg',
secure_url:
'https://res.cloudinary.com/wesbos/image/upload/v1579816141/sick-fits-keystone/5e2a14cc689b2835ae71d1b9.jpg',
original_filename: 'file',
},
},
},
]