Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ems-press/content-api-types

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ems-press/content-api-types - npm Package Compare versions

Comparing version 1.0.0-alpha.16 to 1.0.0-alpha.17

dist/resources/images.d.ts

10

dist/resources/index.d.ts
import { SortOption } from '../sort';
import * as Images from './images';
import * as PersonGroups from './person-groups';
import * as Serials from './serials';
export declare type Type = PersonGroups.Type | Serials.Type;
export declare type Type = Images.Type | PersonGroups.Type | Serials.Type;
export declare const types: Type[];
export { PersonGroups, Serials };
export { Images, PersonGroups, Serials };
export declare type AttributesForType<T extends Type> = {
images: Images.Attributes;
'person-groups': PersonGroups.Attributes;

@@ -12,2 +14,3 @@ serials: Serials.Attributes;

export declare type RelationshipsForType<T extends Type> = {
images: Images.Relationships;
'person-groups': PersonGroups.Relationships;

@@ -17,2 +20,3 @@ serials: Serials.Relationships;

export declare type SortFieldForType<T extends Type> = {
images: Images.SortField;
'person-groups': PersonGroups.SortField;

@@ -22,2 +26,3 @@ serials: Serials.SortField;

export declare type SortOptionForType<T extends Type> = {
images: SortOption<Images.SortField>;
'person-groups': SortOption<PersonGroups.SortField>;

@@ -27,2 +32,3 @@ serials: SortOption<Serials.SortField>;

export declare type FilterForType<T extends Type> = {
images: Images.Filter;
'person-groups': PersonGroups.Filter;

@@ -29,0 +35,0 @@ serials: Serials.Filter;

17

dist/resources/index.js

@@ -22,3 +22,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.sortOptions = exports.sortFields = exports.filterKeys = exports.relationshipKeys = exports.attributeKeys = exports.Serials = exports.PersonGroups = exports.types = void 0;
exports.sortOptions = exports.sortFields = exports.filterKeys = exports.relationshipKeys = exports.attributeKeys = exports.Serials = exports.PersonGroups = exports.Images = exports.types = void 0;
const Images = __importStar(require("./images"));
exports.Images = Images;
const PersonGroups = __importStar(require("./person-groups"));

@@ -28,12 +30,15 @@ exports.PersonGroups = PersonGroups;

exports.Serials = Serials;
exports.types = ["person-groups", "serials"];
exports.types = ["images", "person-groups", "serials"];
exports.attributeKeys = {
images: ["createdAt", "updatedAt", "url", "contentType", "width", "height", "path", "sizeBytes", "md5", "sha256"],
'person-groups': ["groupType", "name"],
serials: ["createdAt", "updatedAt", "code", "coverImageUrl", "descriptionMarkdown", "submitDescriptionMarkdown", "subscribeDescriptionMarkdown", "serialType", "name", "nameAbbreviation", "subtitle", "doiPrefix", "issn", "eIssn", "mscs", "keywords", "owner", "ownerUrl", "publishingModel", "s2oStatus", "s2oStatusStart", "s2oStatusEnd", "publisher", "publisherOrganization", "publisherAddress", "publisherUrl", "copyright", "copyrightUrl", "codeOfPractice", "codeOfPracticeUrl", "volumesPerYear", "issuesPerVolume", "pagesPerYear", "printWidthCm", "printHeightCm"],
serials: ["createdAt", "updatedAt", "code", "descriptionMarkdown", "submitDescriptionMarkdown", "subscribeDescriptionMarkdown", "serialType", "name", "nameAbbreviation", "subtitle", "doiPrefix", "issn", "eIssn", "mscs", "keywords", "owner", "ownerUrl", "publishingModel", "s2oStatus", "s2oStatusStart", "s2oStatusEnd", "publisher", "publisherOrganization", "publisherAddress", "publisherUrl", "copyright", "copyrightUrl", "codeOfPractice", "codeOfPracticeUrl", "volumesPerYear", "issuesPerVolume", "pagesPerYear", "printWidthCm", "printHeightCm"],
};
exports.relationshipKeys = {
images: [],
'person-groups': ["serials"],
serials: ["personGroups"],
serials: ["personGroups", "coverImage"],
};
exports.filterKeys = {
images: ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "path", "contentType"],
'person-groups': ["groupType"],

@@ -43,2 +48,3 @@ serials: ["createdBefore", "updatedBefore", "createdAfter", "updatedAfter", "serialType", "s2oStatus", "s2oStatusEmpty", "code"],

exports.sortFields = {
images: ["path", "contentType", "createdAt", "updatedAt"],
'person-groups': [],

@@ -48,5 +54,6 @@ serials: ["code", "createdAt", "updatedAt", "name"],

exports.sortOptions = {
images: ["path", "contentType", "createdAt", "updatedAt", "-path", "-contentType", "-createdAt", "-updatedAt"],
'person-groups': [],
serials: ["code", "createdAt", "updatedAt", "name", "-code", "-createdAt", "-updatedAt", "-name"],
serials: ["code", "createdAt", "updatedAt", "name", "-createdAt", "-updatedAt", "-code", "-name"],
};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { PersonGroups } from './index';
import { Images, PersonGroups } from './index';
import { DateFilter, EqualFilter, IsInFilter } from '../filter';

@@ -14,3 +14,2 @@ export declare type SerialType = 'journal' | 'magazine' | 'serial';

code: string;
coverImageUrl: string;
descriptionMarkdown?: string;

@@ -50,4 +49,5 @@ submitDescriptionMarkdown?: string;

personGroups: PersonGroups.Type;
coverImage: Images.Type;
};
export declare type SortField = 'createdAt' | 'updatedAt' | 'code' | 'name';
export declare type Filter = DateFilter<'created' | 'updated'> & IsInFilter<Attributes, 'serialType' | 's2oStatus'> & EqualFilter<Attributes, 'code'>;
{
"name": "@ems-press/content-api-types",
"version": "1.0.0-alpha.16",
"version": "1.0.0-alpha.17",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc