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

enonic-types

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-types - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

23

lib/content.d.ts

@@ -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",

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