enonic-types
Advanced tools
Comparing version 0.0.40 to 0.0.41
@@ -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; |
{ | ||
"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", |
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
40757
1134