@ems-press/content-api-types
Advanced tools
Comparing version 1.0.0-beta.21 to 1.0.0-beta.22
import { BookSeries, Images, PersonGroups } from '.'; | ||
import * as BookFiles from './book-files'; | ||
import * as BookSupplementaryUrls from './book-supplementary-urls'; | ||
import { DatePrecision } from '../date'; | ||
import { DateFilter, IsInFilter } from '../filter'; | ||
export declare type Type = 'books'; | ||
export declare type BookType = 'collected-volumes' | 'monograph'; | ||
export declare type BookType = 'collected-volume' | 'monograph'; | ||
export declare const bookTypes: BookType[]; | ||
export declare type BookBinding = 'softcover' | 'hardcover'; | ||
export declare type BookOnlineAccessType = 'open' | 'free' | 'subscription'; | ||
export declare const bookOnlineAccessType: import("./serial-articles").SerialArticleOnlineAccessType[]; | ||
export declare const bookOnlineAccessType: BookOnlineAccessType[]; | ||
export declare type Attributes = { | ||
@@ -18,4 +16,4 @@ createdAt: Date; | ||
titleTex: string; | ||
tile?: string; | ||
subtitleTex: string; | ||
title?: string; | ||
subtitleTex?: string; | ||
subtitle?: string; | ||
@@ -26,3 +24,3 @@ blurbMarkdownTex?: string; | ||
eIsbn?: string; | ||
doi?: string; | ||
doi: string; | ||
publishedAt: Date; | ||
@@ -55,3 +53,3 @@ publishedAtPrecision: DatePrecision; | ||
type: Images.Type; | ||
cardinality: '1'; | ||
cardinality: null | '1'; | ||
}; | ||
@@ -70,19 +68,9 @@ multiVolumeParent: { | ||
}; | ||
bookFiles: { | ||
type: BookFiles.Type; | ||
cardinality: 'N'; | ||
}; | ||
bookSupplementaryUrls: { | ||
type: BookSupplementaryUrls.Type; | ||
cardinality: 'N'; | ||
}; | ||
}; | ||
export declare type SortField = 'createdAt' | 'updatedAt' | 'publishedAt' | 'title' | 'pages'; | ||
export declare type Filter = DateFilter<'created' | 'updated' | 'published'> & IsInFilter<Attributes, 'bookType' | 'doi' | 'licenseCode' | 'onlineAccessType'> & { | ||
export declare type Filter = DateFilter<'created' | 'updated' | 'published'> & IsInFilter<Attributes, 'bookType' | 'doi' | 'isbn' | 'eIsbn' | 'licenseCode' | 'onlineAccessType'> & { | ||
mscs?: string[]; | ||
bicSubjectCategories?: string[]; | ||
keywords?: string[]; | ||
serial?: number[]; | ||
serialIssue?: number[]; | ||
serialIssueEmpty?: true; | ||
bookSeries?: (number | null)[]; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.bookOnlineAccessType = exports.bookTypes = void 0; | ||
exports.bookTypes = ["collected-volumes", "monograph"]; | ||
exports.bookOnlineAccessType = ["subscription", "open", "free"]; | ||
exports.bookTypes = ["collected-volume", "monograph"]; | ||
exports.bookOnlineAccessType = ["open", "free", "subscription"]; | ||
//# sourceMappingURL=books.js.map |
import { SortOption } from '../sort'; | ||
import * as BookSeries from './book-series'; | ||
import * as Books from './books'; | ||
import * as Images from './images'; | ||
@@ -13,3 +14,3 @@ import * as Persons from './persons'; | ||
import * as SerialIssueFiles from './serial-issue-files'; | ||
export declare type Type = BookSeries.Type | Images.Type | Persons.Type | PersonGroups.Type | PersonGroupMembers.Type | Serials.Type | SerialArticles.Type | SerialArticleFiles.Type | SerialArticleImages.Type | SerialIssues.Type | SerialIssueFiles.Type; | ||
export declare type Type = Books.Type | BookSeries.Type | Images.Type | Persons.Type | PersonGroups.Type | PersonGroupMembers.Type | Serials.Type | SerialArticles.Type | SerialArticleFiles.Type | SerialArticleImages.Type | SerialIssues.Type | SerialIssueFiles.Type; | ||
export declare type Relationship = { | ||
@@ -20,4 +21,5 @@ cardinality: null | '1' | 'N'; | ||
export declare const types: Type[]; | ||
export { BookSeries, Images, PersonGroups, PersonGroupMembers, Persons, Serials, SerialArticles, SerialArticleFiles, SerialArticleImages, SerialIssues, SerialIssueFiles, }; | ||
export { Books, BookSeries, Images, PersonGroups, PersonGroupMembers, Persons, Serials, SerialArticles, SerialArticleFiles, SerialArticleImages, SerialIssues, SerialIssueFiles, }; | ||
export declare type AttributesForType<T extends Type> = { | ||
books: Books.Attributes; | ||
'book-series': BookSeries.Attributes; | ||
@@ -36,2 +38,3 @@ images: Images.Attributes; | ||
export declare type RelationshipsForType<T extends Type> = { | ||
books: Books.Relationships; | ||
'book-series': BookSeries.Relationships; | ||
@@ -50,2 +53,3 @@ images: Images.Relationships; | ||
export declare type SortFieldForType<T extends Type> = { | ||
books: Books.SortField; | ||
'book-series': BookSeries.SortField; | ||
@@ -64,2 +68,3 @@ images: Images.SortField; | ||
export declare type SortOptionForType<T extends Type> = { | ||
books: SortOption<Books.SortField>; | ||
'book-series': SortOption<BookSeries.SortField>; | ||
@@ -78,2 +83,3 @@ images: SortOption<Images.SortField>; | ||
export declare type FilterForType<T extends Type> = { | ||
books: Books.Filter; | ||
'book-series': BookSeries.Filter; | ||
@@ -80,0 +86,0 @@ images: Images.Filter; |
@@ -22,6 +22,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.sortOptions = exports.sortFields = exports.filterKeys = exports.relationshipKeys = exports.attributeKeys = exports.SerialIssueFiles = exports.SerialIssues = exports.SerialArticleImages = exports.SerialArticleFiles = exports.SerialArticles = exports.Serials = exports.Persons = exports.PersonGroupMembers = exports.PersonGroups = exports.Images = exports.BookSeries = exports.types = void 0; | ||
exports.sortOptions = exports.sortFields = exports.filterKeys = exports.relationshipKeys = exports.attributeKeys = exports.SerialIssueFiles = exports.SerialIssues = exports.SerialArticleImages = exports.SerialArticleFiles = exports.SerialArticles = exports.Serials = exports.Persons = exports.PersonGroupMembers = exports.PersonGroups = exports.Images = exports.BookSeries = exports.Books = exports.types = void 0; | ||
const BookSeries = __importStar(require("./book-series")); | ||
exports.BookSeries = BookSeries; | ||
//import * as Books from './books' | ||
const Books = __importStar(require("./books")); | ||
exports.Books = Books; | ||
//import * as BookFiles from './book-files' | ||
@@ -49,5 +50,5 @@ //import * as BookSupplementaryUrls from './book-supplementary-urls' | ||
exports.SerialIssueFiles = SerialIssueFiles; | ||
exports.types = ["book-series", "images", "persons", "person-groups", "person-group-members", "serials", "serial-articles", "serial-article-files", "serial-article-images", "serial-issues", "serial-issue-files"]; | ||
exports.types = ["books", "book-series", "images", "persons", "person-groups", "person-group-members", "serials", "serial-articles", "serial-article-files", "serial-article-images", "serial-issues", "serial-issue-files"]; | ||
exports.attributeKeys = { | ||
//books: keys<Books.Attributes>(), | ||
books: ["createdAt", "updatedAt", "bookType", "bookSeriesVolume", "titleTex", "title", "subtitleTex", "subtitle", "blurbMarkdownTex", "blurbMarkdown", "isbn", "eIsbn", "doi", "publishedAt", "publishedAtPrecision", "onlineAccessType", "mscs", "bicSubjectCategories", "keywords", "pages", "binding", "printWidthCm", "printHeightCm", "publisher", "publisherOrganization", "publisherAddress", "publisherUrl", "copyright", "copyrightUrl", "license", "licenseCode", "licenseUrl"], | ||
//'book-files': keys<BookFiles.Attributes>(), | ||
@@ -68,3 +69,3 @@ 'book-series': ["createdAt", "updatedAt", "name", "code", "issn", "eIssn", "doiPrefix", "descriptionMarkdown", "publisher", "publisherOrganization", "publisherAddress", "publisherUrl", "owner", "ownerUrl", "copyright", "copyrightUrl"], | ||
exports.relationshipKeys = { | ||
//books: keys<Books.Relationships>(), | ||
books: ["bookSeries", "coverImage", "multiVolumeParent", "editionPreviousBook", "personGroups"], | ||
//'book-files': keys<BookFiles.Relationships>(), | ||
@@ -85,3 +86,3 @@ 'book-series': ["coverImage"], | ||
exports.filterKeys = { | ||
//books: keys<Books.Filter>(), | ||
books: ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "licenseCode", "bookType", "doi", "isbn", "eIsbn", "onlineAccessType", "licenseCodeEmpty", "isbnEmpty", "eIsbnEmpty", "mscs", "bicSubjectCategories", "keywords", "bookSeries"], | ||
//'book-files': keys<BookFiles.Filter>(), | ||
@@ -95,10 +96,10 @@ 'book-series': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "code", "name", "doiPrefix", "issn", "eIssn"], | ||
serials: ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "serialType", "s2oStatus", "s2oStatusEmpty", "code"], | ||
'serial-articles': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "submittedBefore", "acceptedBefore", "publishedBefore", "retractedBefore", "submittedAfter", "acceptedAfter", "publishedAfter", "retractedAfter", "licenseCode", "languageCode", "articleType", "doi", "onlineAccessType", "licenseCodeEmpty", "languageCodeEmpty", "doiEmpty", "mscs", "keywords", "serial", "serialIssue", "serialIssueEmpty"], | ||
'serial-article-files': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "publishedBefore", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "serialArticle"], | ||
'serial-article-images': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "publishedBefore", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "serialArticle"], | ||
'serial-issues': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "publishedBefore", "publishedAfter", "issue", "serialType", "s2oStatus", "s2oStatusEmpty", "serial"], | ||
'serial-issue-files': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "publishedBefore", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "serialIssue"], | ||
'serial-articles': ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "submittedBefore", "acceptedBefore", "retractedBefore", "submittedAfter", "acceptedAfter", "retractedAfter", "licenseCode", "languageCode", "doi", "onlineAccessType", "articleType", "licenseCodeEmpty", "languageCodeEmpty", "doiEmpty", "mscs", "keywords", "serial", "serialIssue", "serialIssueEmpty"], | ||
'serial-article-files': ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "serialArticle"], | ||
'serial-article-images': ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "serialArticle"], | ||
'serial-issues': ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "issue", "serialType", "s2oStatus", "s2oStatusEmpty", "serial"], | ||
'serial-issue-files': ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "serialIssue"], | ||
}; | ||
exports.sortFields = { | ||
//books: keys<SortFieldMap<Books.SortField>>(), | ||
books: ["createdAt", "updatedAt", "publishedAt", "title", "pages"], | ||
//'book-files': keys<SortFieldMap<BookFiles.SortField>>(), | ||
@@ -114,3 +115,3 @@ 'book-series': ["createdAt", "updatedAt", "code", "name"], | ||
serials: ["createdAt", "updatedAt", "code", "name"], | ||
'serial-articles': ["createdAt", "updatedAt", "publishedAt", "submittedAt", "acceptedAt", "retractedAt", "title", "pages", "pageStart", "pageEnd"], | ||
'serial-articles': ["createdAt", "updatedAt", "publishedAt", "title", "pages", "submittedAt", "acceptedAt", "retractedAt", "pageStart", "pageEnd"], | ||
'serial-article-files': ["createdAt", "updatedAt", "contentType", "path", "publishedAt"], | ||
@@ -122,3 +123,3 @@ 'serial-article-images': ["createdAt", "updatedAt", "contentType", "path", "publishedAt"], | ||
exports.sortOptions = { | ||
//books: keys<SortOptionMap<Books.SortField>>(), | ||
books: ["createdAt", "updatedAt", "publishedAt", "title", "pages", "-createdAt", "-updatedAt", "-publishedAt", "-title", "-pages"], | ||
//'book-files': keys<SortOptionMap<BookFiles.SortField>>(), | ||
@@ -134,8 +135,8 @@ 'book-series': ["createdAt", "updatedAt", "code", "name", "-createdAt", "-updatedAt", "-code", "-name"], | ||
serials: ["createdAt", "updatedAt", "code", "name", "-createdAt", "-updatedAt", "-code", "-name"], | ||
'serial-articles': ["createdAt", "updatedAt", "publishedAt", "submittedAt", "acceptedAt", "retractedAt", "title", "pages", "pageStart", "pageEnd", "-createdAt", "-updatedAt", "-publishedAt", "-submittedAt", "-acceptedAt", "-retractedAt", "-title", "-pages", "-pageStart", "-pageEnd"], | ||
'serial-article-files': ["createdAt", "updatedAt", "contentType", "path", "publishedAt", "-createdAt", "-updatedAt", "-contentType", "-path", "-publishedAt"], | ||
'serial-article-images': ["createdAt", "updatedAt", "contentType", "path", "publishedAt", "-createdAt", "-updatedAt", "-contentType", "-path", "-publishedAt"], | ||
'serial-issues': ["year", "createdAt", "updatedAt", "publishedAt", "name", "issue", "volume", "-createdAt", "-updatedAt", "-name", "-publishedAt", "-year", "-issue", "-volume"], | ||
'serial-issue-files': ["createdAt", "updatedAt", "contentType", "path", "publishedAt", "-createdAt", "-updatedAt", "-contentType", "-path", "-publishedAt"], | ||
'serial-articles': ["createdAt", "updatedAt", "publishedAt", "title", "pages", "submittedAt", "acceptedAt", "retractedAt", "pageStart", "pageEnd", "-createdAt", "-updatedAt", "-publishedAt", "-title", "-pages", "-submittedAt", "-acceptedAt", "-retractedAt", "-pageStart", "-pageEnd"], | ||
'serial-article-files': ["createdAt", "updatedAt", "contentType", "path", "publishedAt", "-createdAt", "-updatedAt", "-publishedAt", "-contentType", "-path"], | ||
'serial-article-images': ["createdAt", "updatedAt", "contentType", "path", "publishedAt", "-createdAt", "-updatedAt", "-publishedAt", "-contentType", "-path"], | ||
'serial-issues': ["year", "createdAt", "updatedAt", "publishedAt", "name", "issue", "volume", "-createdAt", "-updatedAt", "-publishedAt", "-name", "-year", "-issue", "-volume"], | ||
'serial-issue-files': ["createdAt", "updatedAt", "contentType", "path", "publishedAt", "-createdAt", "-updatedAt", "-publishedAt", "-contentType", "-path"], | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -8,3 +8,3 @@ import { PersonGroups, Serials, SerialIssues, SerialArticleFiles, SerialArticleImages } from './index'; | ||
export declare type SerialArticleOnlineAccessType = 'open' | 'free' | 'subscription'; | ||
export declare const serialArticleOnlineAccessType: SerialArticleOnlineAccessType[]; | ||
export declare const serialArticleOnlineAccessType: import("./books").BookOnlineAccessType[]; | ||
export declare type Attributes = { | ||
@@ -11,0 +11,0 @@ createdAt: Date; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.serialArticleTypes = ["addendum", "announcement", "book-review", "discussion", "editorial", "editorial-board", "erratum", "feature-article", "interview", "letter-to-the-editor", "miscellaneous", "obituary", "report", "research-article", "retraction"]; | ||
exports.serialArticleOnlineAccessType = ["subscription", "open", "free"]; | ||
exports.serialArticleOnlineAccessType = ["open", "free", "subscription"]; | ||
//# sourceMappingURL=serial-articles.js.map |
@@ -5,4 +5,4 @@ "use strict"; | ||
exports.serialTypes = ["journal", "magazine", "serial"]; | ||
exports.serialPublishingModels = ["diamond", "s2o", "subscription"]; | ||
exports.serialPublishingModels = ["subscription", "diamond", "s2o"]; | ||
exports.s2oStatuses = ["subscription", "open-access"]; | ||
//# sourceMappingURL=serials.js.map |
{ | ||
"name": "@ems-press/content-api-types", | ||
"version": "1.0.0-beta.21", | ||
"version": "1.0.0-beta.22", | ||
"description": "Typescript types for the EMS Press Content API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
86871
917