-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Create entity testdata for the consumer
- Loading branch information
Showing
6 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"data": { | ||
"alias": [{ | ||
"name": "Test Author", | ||
"sortName": "Author, Test", | ||
"languageId": 120, | ||
"default": true, | ||
"primary": true | ||
}], | ||
"disambiguation": "import test", | ||
"type": "Person", | ||
"typeId": 1, | ||
"genderId": 3, | ||
"beginDate": "1701-04-23", | ||
"endDate": "1742-12-31", | ||
"ended": true, | ||
"identifiers": [], | ||
"annotation": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto enim reprehenderit dolorum iure eaque accusamus, soluta pariatur aliquam commodi repellat cumque quaerat possimus nesciunt molestiae. Sunt deserunt magnam sint repellendus.", | ||
"metadata": { | ||
"links": [{ | ||
"title": "Example link", | ||
"url": "https://example.com/author" | ||
}], | ||
"relationships": [] | ||
}, | ||
"source": "Testdata" | ||
}, | ||
"entityType": "Author", | ||
"lastEdited": "2024-07-17", | ||
"originId": "A123", | ||
"source": "Testdata" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type {ParsedAuthor, QueuedEntity} from 'bookbrainz-data/lib/types/parser.d.ts'; | ||
|
||
export const entity: QueuedEntity<ParsedAuthor> = { | ||
"data": { | ||
"alias": [{ | ||
"name": "Test Author", | ||
"sortName": "Author, Test", | ||
"languageId": 120, // English, TODO: use language codes | ||
"default": true, | ||
"primary": true | ||
}], | ||
"disambiguation": "import test", | ||
"type": "Person", // unused, TODO: map to ID | ||
"typeId": 1, // Person | ||
"genderId": 3, // Other | ||
"beginDate": "1701-04-23", | ||
"endDate": "1742-12-31", | ||
"ended": true, | ||
"identifiers": [], | ||
"annotation": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Iusto enim reprehenderit dolorum iure eaque accusamus, soluta pariatur aliquam commodi repellat cumque quaerat possimus nesciunt molestiae. Sunt deserunt magnam sint repellendus.", | ||
"metadata": { // currently unused | ||
"links": [{ | ||
"title": "Example link", | ||
"url": "https://example.com/author" | ||
}], | ||
"relationships": [] | ||
}, | ||
"source": "Testdata" | ||
}, | ||
"entityType": "Author", | ||
"lastEdited": "2024-07-17", | ||
"originId": "A123", // change this to import another dummy entity | ||
"source": "Testdata" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"data": { | ||
"alias": [{ | ||
"name": "The Complete Test Collection", | ||
"sortName": "Complete Test Collection, The", | ||
"languageId": 120, | ||
"default": true, | ||
"primary": true | ||
}], | ||
"disambiguation": "import test", | ||
"typeId": 1, | ||
"identifiers": [], | ||
"annotation": "Empty edition group", | ||
"metadata": { | ||
"links": [{ | ||
"title": "Example link", | ||
"url": "https://example.com/edition-group" | ||
}], | ||
"relationships": [] | ||
}, | ||
"source": "Testdata" | ||
}, | ||
"entityType": "EditionGroup", | ||
"lastEdited": "2024-07-22", | ||
"originId": "G123", | ||
"source": "Testdata" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
import type {ParsedEditionGroup, QueuedEntity} from 'bookbrainz-data/lib/types/parser.d.ts'; | ||
|
||
export const entity: QueuedEntity<ParsedEditionGroup> = { | ||
"data": { | ||
"alias": [{ | ||
"name": "The Complete Test Collection", | ||
"sortName": "Complete Test Collection, The", | ||
"languageId": 120, // English, TODO: use language codes | ||
"default": true, | ||
"primary": true | ||
}], | ||
"disambiguation": "import test", | ||
"typeId": 1, // Book | ||
"identifiers": [], | ||
"annotation": "Empty edition group", | ||
"metadata": { // currently unused | ||
"links": [{ | ||
"title": "Example link", | ||
"url": "https://example.com/edition-group" | ||
}], | ||
"relationships": [] | ||
}, | ||
"source": "Testdata" | ||
}, | ||
"entityType": "EditionGroup", | ||
"lastEdited": "2024-07-22", | ||
"originId": "G123", // change this to import another dummy entity | ||
"source": "Testdata" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"data": { | ||
"alias": [{ | ||
"name": "The Fairytale Test", | ||
"sortName": "Fairytale Test, The", | ||
"languageId": 120, | ||
"default": true, | ||
"primary": true | ||
}], | ||
"disambiguation": "import test", | ||
"typeId": 2, | ||
"identifiers": [], | ||
"annotation": "Once upon a time...", | ||
"metadata": { | ||
"links": [{ | ||
"title": "Example link", | ||
"url": "https://example.com/work" | ||
}], | ||
"relationships": [] | ||
}, | ||
"source": "Testdata" | ||
}, | ||
"entityType": "Work", | ||
"lastEdited": "2024-07-17", | ||
"originId": "W123", | ||
"source": "Testdata" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
import type {ParsedWork, QueuedEntity} from 'bookbrainz-data/lib/types/parser.d.ts'; | ||
|
||
export const entity: QueuedEntity<ParsedWork> = { | ||
"data": { | ||
"alias": [{ | ||
"name": "The Fairytale Test", | ||
"sortName": "Fairytale Test, The", | ||
"languageId": 120, // English, TODO: use language codes | ||
"default": true, | ||
"primary": true | ||
}], | ||
"disambiguation": "import test", | ||
"typeId": 2, // Short Story | ||
"identifiers": [], | ||
"annotation": "Once upon a time...", | ||
"metadata": { // currently unused | ||
"links": [{ | ||
"title": "Example link", | ||
"url": "https://example.com/work" | ||
}], | ||
"relationships": [] | ||
}, | ||
"source": "Testdata" | ||
}, | ||
"entityType": "Work", | ||
"lastEdited": "2024-07-17", | ||
"originId": "W123", // change this to import another dummy entity | ||
"source": "Testdata" | ||
}; |