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.40 to 0.0.41

19

lib/content.d.ts

@@ -8,5 +8,7 @@ import { Region } from "./portal";

delete(params: DeleteContentParams): boolean;
exists(params: ExistsParams): boolean;
publish(params: PublishContentParams): PublishResponse;
unpublish(params: UnpublishContentParams): ReadonlyArray<string>;
getChildren<A extends object>(params: GetChildrenParams): QueryResponse<A>;
getOutboundDependencies(params: GetOutboundDependenciesParams): ReadonlyArray<string>;
move<A extends object>(params: MoveParams): Content<A>;

@@ -16,2 +18,3 @@ getSite<A extends object, PageConfig extends object = never>(params: GetSiteParams): Site<A, PageConfig>;

createMedia<A extends object>(params: CreateMediaParams): Content<A>;
addAttachment(params: AddAttachmentParams): void;
getAttachments(key: string): Attachments | null;

@@ -212,2 +215,5 @@ getAttachmentStream(params: AttachmentStreamParams): ByteSource | null;

}
export interface ExistsParams {
readonly key: string;
}
export interface CreateContentParams<A> {

@@ -257,2 +263,8 @@ readonly name: string;

}
export interface GetOutboundDependenciesParams {
/**
* Path or id to the content
*/
readonly key: string;
}
export interface MoveParams {

@@ -308,2 +320,9 @@ readonly source: string;

}
export interface AddAttachmentParams {
readonly key: string;
readonly name: string;
readonly mimeType: string;
readonly label?: string;
readonly data?: ByteSource;
}
export interface GetPermissionsParams {

@@ -310,0 +329,0 @@ readonly key: string;

2

package.json
{
"name": "enonic-types",
"version": "0.0.40",
"version": "0.0.41",
"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