@ems-press/content-api-types
Advanced tools
Comparing version 1.0.0-beta.39 to 1.0.0-beta.40
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.bookChapterTypes = ["front-cover", "front-matter", "preface", "table-of-contents", "introduction", "chapter", "collected-volume-article", "title-page", "bibliography", "index", "appendix", "back-cover", "other"]; | ||
exports.bookChapterOnlineAccessType = ["open", "free", "subscription"]; | ||
exports.bookChapterOnlineAccessType = ["subscription", "open", "free"]; | ||
//# sourceMappingURL=book-chapters.js.map |
@@ -1,13 +0,26 @@ | ||
import { Images } from '.'; | ||
import { DateFilter, EqualFilter } from '../filter'; | ||
import { Images, PersonGroups } from '.'; | ||
import { DateFilter, EqualFilter, IsInFilter } from '../filter'; | ||
export declare type Type = 'book-series'; | ||
export declare type PublishingModel = 'diamond' | 's2o' | 'subscription'; | ||
export declare const serialPublishingModels: PublishingModel[]; | ||
export declare type S2oStatus = 'open-access' | 'subscription'; | ||
export declare const s2oStatuses: S2oStatus[]; | ||
export declare type Attributes = { | ||
createdAt: Date; | ||
updatedAt: Date; | ||
code: string; | ||
descriptionMarkdown?: string; | ||
submitDescriptionMarkdown?: string; | ||
subscribeDescriptionMarkdown?: string; | ||
editorialBoardDescriptionMarkdown?: string; | ||
name: string; | ||
code: string; | ||
issn?: string; | ||
eIssn?: string; | ||
doiPrefix?: string; | ||
descriptionMarkdown?: string; | ||
owner?: string; | ||
ownerUrl?: string; | ||
publishingModel: PublishingModel; | ||
s2oStatus?: S2oStatus; | ||
s2oStatusStart?: Date; | ||
s2oStatusEnd?: Date; | ||
publisher: string; | ||
@@ -17,4 +30,2 @@ publisherOrganization?: string; | ||
publisherUrl: string; | ||
owner?: string; | ||
ownerUrl?: string; | ||
copyright?: string; | ||
@@ -24,2 +35,6 @@ copyrightUrl?: string; | ||
export declare type Relationships = { | ||
personGroups: { | ||
type: PersonGroups.Type; | ||
cardinality: 'N'; | ||
}; | ||
coverImage: { | ||
@@ -31,2 +46,2 @@ type: Images.Type; | ||
export declare type SortField = 'createdAt' | 'updatedAt' | 'code' | 'name'; | ||
export declare type Filter = DateFilter<'created' | 'updated'> & EqualFilter<Attributes, 'name' | 'code' | 'issn' | 'eIssn' | 'doiPrefix'>; | ||
export declare type Filter = DateFilter<'created' | 'updated'> & IsInFilter<Attributes, 's2oStatus'> & EqualFilter<Attributes, 'name' | 'code' | 'issn' | 'eIssn' | 'doiPrefix'>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.s2oStatuses = exports.serialPublishingModels = void 0; | ||
exports.serialPublishingModels = ["diamond", "s2o", "subscription"]; | ||
exports.s2oStatuses = ["subscription", "open-access"]; | ||
//# sourceMappingURL=book-series.js.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.bookTypes = ["collected-volume", "monograph"]; | ||
exports.bookOnlineAccessType = ["open", "free", "subscription"]; | ||
exports.bookOnlineAccessType = ["subscription", "open", "free"]; | ||
//# sourceMappingURL=books.js.map |
@@ -66,3 +66,3 @@ "use strict"; | ||
'book-images': ["createdAt", "updatedAt", "access", "url", "contentType", "path", "sizeBytes", "md5", "sha256", "publishedAt", "publishedAtPrecision", "description", "copyright", "license", "licenseCode", "licenseUrl", "languageCode", "fileType", "width", "height"], | ||
'book-series': ["createdAt", "updatedAt", "name", "code", "issn", "eIssn", "doiPrefix", "descriptionMarkdown", "publisher", "publisherOrganization", "publisherAddress", "publisherUrl", "owner", "ownerUrl", "copyright", "copyrightUrl"], | ||
'book-series': ["createdAt", "updatedAt", "code", "descriptionMarkdown", "submitDescriptionMarkdown", "subscribeDescriptionMarkdown", "editorialBoardDescriptionMarkdown", "name", "issn", "eIssn", "doiPrefix", "owner", "ownerUrl", "publishingModel", "s2oStatus", "s2oStatusStart", "s2oStatusEnd", "publisher", "publisherOrganization", "publisherAddress", "publisherUrl", "copyright", "copyrightUrl"], | ||
//'book-supplementary-urls': keys<BookSupplementaryUrls.Attributes>(), | ||
@@ -87,3 +87,3 @@ images: ["createdAt", "updatedAt", "url", "contentType", "width", "height", "path", "sizeBytes", "md5", "sha256", "description", "license", "licenseCode", "licenseUrl"], | ||
'book-images': ["book"], | ||
'book-series': ["coverImage"], | ||
'book-series': ["personGroups", "coverImage"], | ||
//'book-supplementary-urls': keys<BookSupplementaryUrls.Relationships>(), | ||
@@ -108,3 +108,3 @@ images: [], | ||
'book-images': ["createdBefore", "updatedBefore", "publishedBefore", "createdAfter", "updatedAfter", "publishedAfter", "fileType", "contentType", "path", "md5", "sha256", "licenseCode", "languageCode", "licenseCodeEmpty", "languageCodeEmpty", "book"], | ||
'book-series': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "code", "name", "doiPrefix", "issn", "eIssn"], | ||
'book-series': ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "s2oStatus", "s2oStatusEmpty", "code", "name", "doiPrefix", "issn", "eIssn"], | ||
//'book-supplementary-urls': keys<BookSupplementaryUrls.Filter>(), | ||
@@ -111,0 +111,0 @@ images: ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "contentType", "path", "md5", "sha256", "licenseCode", "licenseCodeEmpty"], |
@@ -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 = ["open", "free", "subscription"]; | ||
exports.serialArticleOnlineAccessType = ["subscription", "open", "free"]; | ||
//# sourceMappingURL=serial-articles.js.map |
@@ -6,5 +6,5 @@ import { Images, PersonGroups } from './index'; | ||
export declare type SerialPublishingModel = 'diamond' | 's2o' | 'subscription'; | ||
export declare const serialPublishingModels: SerialPublishingModel[]; | ||
export declare const serialPublishingModels: import("./book-series").PublishingModel[]; | ||
export declare type S2oStatus = 'open-access' | 'subscription'; | ||
export declare const s2oStatuses: S2oStatus[]; | ||
export declare const s2oStatuses: import("./book-series").S2oStatus[]; | ||
export declare type Type = 'serials'; | ||
@@ -11,0 +11,0 @@ export declare type Attributes = { |
@@ -5,4 +5,4 @@ "use strict"; | ||
exports.serialTypes = ["journal", "magazine", "serial"]; | ||
exports.serialPublishingModels = ["subscription", "diamond", "s2o"]; | ||
exports.serialPublishingModels = ["diamond", "s2o", "subscription"]; | ||
exports.s2oStatuses = ["subscription", "open-access"]; | ||
//# sourceMappingURL=serials.js.map |
{ | ||
"name": "@ems-press/content-api-types", | ||
"version": "1.0.0-beta.39", | ||
"version": "1.0.0-beta.40", | ||
"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
106161
1192