enonic-types
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -0,1 +1,2 @@ | ||
import { Component } from "./portal"; | ||
export interface ContentLibrary { | ||
@@ -22,3 +23,3 @@ get<A>(params: GetContentParams): Content<A> | null; | ||
} | ||
export interface Content<A> { | ||
export interface Content<A, PageConfig = any> { | ||
readonly _id: string; | ||
@@ -42,6 +43,15 @@ readonly _name: string; | ||
}; | ||
readonly page: any; | ||
readonly page: Page<PageConfig>; | ||
readonly attachments: Attachments; | ||
readonly publish: any; | ||
readonly publish?: ScheduleParams; | ||
} | ||
export interface Page<A> { | ||
readonly type: string; | ||
readonly path: string; | ||
readonly descriptor: string; | ||
readonly config: A; | ||
readonly regions: { | ||
[key: string]: Array<Component<any>>; | ||
}; | ||
} | ||
export interface Attachment { | ||
@@ -103,4 +113,5 @@ readonly name: string; | ||
export interface ScheduleParams { | ||
readonly from: string; | ||
readonly to: string; | ||
readonly from?: string; | ||
readonly to?: string; | ||
readonly first?: string; | ||
} | ||
@@ -143,3 +154,3 @@ export interface PublishResponse { | ||
readonly attachments: object; | ||
readonly publish: any; | ||
readonly publish: ScheduleParams; | ||
} | ||
@@ -146,0 +157,0 @@ export interface SiteConfig<A> { |
{ | ||
"name": "enonic-types", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
30204
870