@quintype/migration-helpers
Advanced tools
Comparing version 1.14.1 to 1.14.2
@@ -9,2 +9,8 @@ /// <reference types="node" /> | ||
readonly slug: string; | ||
/** List of sections or categories that this story belongs to */ | ||
readonly sections: ReadonlyArray<IntermediateSection>; | ||
/** The list of authors (in order) for this content */ | ||
readonly authors: ReadonlyArray<IntermediateAuthor>; | ||
/** The type of the story. Use `'text'` for a normal story */ | ||
readonly 'story-template': 'text' | 'photo' | 'video' | 'poll' | 'live-blog'; | ||
/** The time of first publish. This should be in epoch date * 1000 for milliseconds */ | ||
@@ -16,6 +22,2 @@ readonly 'first-published-at': number; | ||
readonly 'published-at': number; | ||
/** The type of the story. Use `'text'` for a normal story */ | ||
readonly 'story-template': string; | ||
/** Optional Subheadline */ | ||
readonly subheadline?: string; | ||
} | ||
@@ -34,12 +36,6 @@ interface StoryHeroImageFields { | ||
interface StoryMetadataFields { | ||
/** The list of authors (in order) for this content */ | ||
readonly authors: ReadonlyArray<Author>; | ||
/** List of tags. The name of the tag is case insensivite */ | ||
readonly tags: ReadonlyArray<{ | ||
readonly name: string; | ||
}>; | ||
/** List of sections or categories that this story belongs to */ | ||
readonly sections: ReadonlyArray<Section>; | ||
readonly tags?: ReadonlyArray<Tag | Entity>; | ||
/** 140 character social share message */ | ||
readonly summary: string; | ||
readonly summary?: string; | ||
/** Story Metadata */ | ||
@@ -51,2 +47,10 @@ readonly metadata?: Metadata; | ||
}; | ||
/** Optional Subheadline */ | ||
readonly subheadline?: string; | ||
/** status of story */ | ||
readonly status?: 'open' | 'published'; | ||
/** access of story */ | ||
readonly access?: string; | ||
/** access-level-value of story */ | ||
readonly 'access-level-value'?: number; | ||
} | ||
@@ -62,3 +66,3 @@ /** Use StoryBody to send a blob of HTML to be parsed later. Also {@link StoryElements} */ | ||
readonly description: ''; | ||
readonly type: 'text' | 'image' | 'file' | 'jsembed' | 'youtube-video'; | ||
readonly type: 'text' | 'image' | 'file' | 'jsembed' | 'youtube-video' | 'composite'; | ||
readonly subtype: string; | ||
@@ -77,3 +81,5 @@ readonly metadata?: object; | ||
/** Represents a Story in the Editor. Please See Individual Parts of the Story. */ | ||
export declare type Story = StoryMandatoryFields & StoryHeroImageFields & StoryMetadataFields & (StoryElements | StoryBody | Cards); | ||
export declare type Story = StoryMandatoryFields & StoryHeroImageFields & StoryMetadataFields & StoryBody; | ||
/** Represents a Story in the Editor for internal use. Has additional Story-elements and Cards properties. Please See Individual Parts of the Story. */ | ||
export declare type StoryInternal = StoryMandatoryFields & StoryHeroImageFields & StoryMetadataFields & (StoryElements | StoryBody | Cards); | ||
export interface MetadataStreamOptions { | ||
@@ -109,2 +115,9 @@ readonly authorStream?: Writable; | ||
} | ||
/** Intermediate Author of story */ | ||
export interface IntermediateAuthor extends ExternalId { | ||
/** Email of Author */ | ||
readonly email: string; | ||
/** Name of Author */ | ||
readonly name: string; | ||
} | ||
/** Section of story */ | ||
@@ -117,3 +130,3 @@ export interface Section extends ExternalId { | ||
/** Slug of section */ | ||
readonly slug?: string; | ||
readonly slug: string; | ||
/** If this section is child of a section */ | ||
@@ -123,6 +136,6 @@ readonly parent?: Section; | ||
readonly 'seo-metadata'?: { | ||
readonly description: string; | ||
readonly keywords: ReadonlyArray<string>; | ||
readonly 'page-title': string; | ||
readonly title: string; | ||
readonly description?: string; | ||
readonly keywords?: ReadonlyArray<string>; | ||
readonly 'page-title'?: string; | ||
readonly title?: string; | ||
}; | ||
@@ -132,2 +145,11 @@ /** Additional details of Section */ | ||
} | ||
/** Intermediate Section of story */ | ||
export interface IntermediateSection extends ExternalId { | ||
/** Name of section */ | ||
readonly name: string; | ||
/** Slug of section */ | ||
readonly slug: string; | ||
/** If this section is child of a section */ | ||
readonly parent?: IntermediateSection; | ||
} | ||
export interface StoryAttribute extends ExternalId { | ||
@@ -141,3 +163,3 @@ readonly name: string; | ||
/** Tag associated with story */ | ||
export interface Tag extends ExternalId { | ||
export interface Tag { | ||
/** Name of Tag */ | ||
@@ -149,2 +171,4 @@ readonly name: string; | ||
readonly slug?: string; | ||
/** external ID of the tag */ | ||
readonly 'external-id'?: string; | ||
} | ||
@@ -151,0 +175,0 @@ /** Entity associated with story could be story attribute could be Entity as Tag */ |
@@ -9,2 +9,8 @@ /// <reference types="node" /> | ||
readonly slug: string; | ||
/** List of sections or categories that this story belongs to */ | ||
readonly sections: ReadonlyArray<IntermediateSection>; | ||
/** The list of authors (in order) for this content */ | ||
readonly authors: ReadonlyArray<IntermediateAuthor>; | ||
/** The type of the story. Use `'text'` for a normal story */ | ||
readonly 'story-template': 'text' | 'photo' | 'video' | 'poll' | 'live-blog'; | ||
/** The time of first publish. This should be in epoch date * 1000 for milliseconds */ | ||
@@ -16,6 +22,2 @@ readonly 'first-published-at': number; | ||
readonly 'published-at': number; | ||
/** The type of the story. Use `'text'` for a normal story */ | ||
readonly 'story-template': string; | ||
/** Optional Subheadline */ | ||
readonly subheadline?: string; | ||
} | ||
@@ -34,12 +36,6 @@ interface StoryHeroImageFields { | ||
interface StoryMetadataFields { | ||
/** The list of authors (in order) for this content */ | ||
readonly authors: ReadonlyArray<Author>; | ||
/** List of tags. The name of the tag is case insensivite */ | ||
readonly tags: ReadonlyArray<{ | ||
readonly name: string; | ||
}>; | ||
/** List of sections or categories that this story belongs to */ | ||
readonly sections: ReadonlyArray<Section>; | ||
readonly tags?: ReadonlyArray<Tag | Entity>; | ||
/** 140 character social share message */ | ||
readonly summary: string; | ||
readonly summary?: string; | ||
/** Story Metadata */ | ||
@@ -51,2 +47,10 @@ readonly metadata?: Metadata; | ||
}; | ||
/** Optional Subheadline */ | ||
readonly subheadline?: string; | ||
/** status of story */ | ||
readonly status?: 'open' | 'published'; | ||
/** access of story */ | ||
readonly access?: string; | ||
/** access-level-value of story */ | ||
readonly 'access-level-value'?: number; | ||
} | ||
@@ -62,3 +66,3 @@ /** Use StoryBody to send a blob of HTML to be parsed later. Also {@link StoryElements} */ | ||
readonly description: ''; | ||
readonly type: 'text' | 'image' | 'file' | 'jsembed' | 'youtube-video'; | ||
readonly type: 'text' | 'image' | 'file' | 'jsembed' | 'youtube-video' | 'composite'; | ||
readonly subtype: string; | ||
@@ -77,3 +81,5 @@ readonly metadata?: object; | ||
/** Represents a Story in the Editor. Please See Individual Parts of the Story. */ | ||
export declare type Story = StoryMandatoryFields & StoryHeroImageFields & StoryMetadataFields & (StoryElements | StoryBody | Cards); | ||
export declare type Story = StoryMandatoryFields & StoryHeroImageFields & StoryMetadataFields & StoryBody; | ||
/** Represents a Story in the Editor for internal use. Has additional Story-elements and Cards properties. Please See Individual Parts of the Story. */ | ||
export declare type StoryInternal = StoryMandatoryFields & StoryHeroImageFields & StoryMetadataFields & (StoryElements | StoryBody | Cards); | ||
export interface MetadataStreamOptions { | ||
@@ -109,2 +115,9 @@ readonly authorStream?: Writable; | ||
} | ||
/** Intermediate Author of story */ | ||
export interface IntermediateAuthor extends ExternalId { | ||
/** Email of Author */ | ||
readonly email: string; | ||
/** Name of Author */ | ||
readonly name: string; | ||
} | ||
/** Section of story */ | ||
@@ -117,3 +130,3 @@ export interface Section extends ExternalId { | ||
/** Slug of section */ | ||
readonly slug?: string; | ||
readonly slug: string; | ||
/** If this section is child of a section */ | ||
@@ -123,6 +136,6 @@ readonly parent?: Section; | ||
readonly 'seo-metadata'?: { | ||
readonly description: string; | ||
readonly keywords: ReadonlyArray<string>; | ||
readonly 'page-title': string; | ||
readonly title: string; | ||
readonly description?: string; | ||
readonly keywords?: ReadonlyArray<string>; | ||
readonly 'page-title'?: string; | ||
readonly title?: string; | ||
}; | ||
@@ -132,2 +145,11 @@ /** Additional details of Section */ | ||
} | ||
/** Intermediate Section of story */ | ||
export interface IntermediateSection extends ExternalId { | ||
/** Name of section */ | ||
readonly name: string; | ||
/** Slug of section */ | ||
readonly slug: string; | ||
/** If this section is child of a section */ | ||
readonly parent?: IntermediateSection; | ||
} | ||
export interface StoryAttribute extends ExternalId { | ||
@@ -141,3 +163,3 @@ readonly name: string; | ||
/** Tag associated with story */ | ||
export interface Tag extends ExternalId { | ||
export interface Tag { | ||
/** Name of Tag */ | ||
@@ -149,2 +171,4 @@ readonly name: string; | ||
readonly slug?: string; | ||
/** external ID of the tag */ | ||
readonly 'external-id'?: string; | ||
} | ||
@@ -151,0 +175,0 @@ /** Entity associated with story could be story attribute could be Entity as Tag */ |
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="1.14.2"></a> | ||
## [1.14.2](https://github.com/gja/@quintype/migration-helpers/compare/v1.14.1...v1.14.2) (2020-04-14) | ||
<a name="1.14.1"></a> | ||
@@ -7,0 +12,0 @@ ## [1.14.1](https://github.com/gja/@quintype/migration-helpers/compare/v1.14.0...v1.14.1) (2020-02-19) |
{ | ||
"name": "@quintype/migration-helpers", | ||
"version": "1.14.1", | ||
"version": "1.14.2", | ||
"description": "Helper Functions for Migrations", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89006
1398