Comparing version 0.2.1 to 0.2.2
import { IOEither } from "fp-ts/lib/IOEither"; | ||
import { EnonicError } from "./common"; | ||
import { Attachments, AttachmentStreamParams, ByteSource, Content, ContentType, CreateContentParams, CreateMediaParams, DeleteContentParams, GetChildrenParams, GetContentParams, GetPermissionsParams, GetPermissionsResult, GetSiteConfigParams, GetSiteParams, ModifyContentParams, MoveParams, PublishContentParams, PublishResponse, QueryContentParams, QueryResponse, RemoveAttachmentParams, SetPermissionsParams, Site, UnpublishContentParams } from "enonic-types/lib/content"; | ||
export declare function get<A>(params: GetContentParams): IOEither<EnonicError, Content<A>>; | ||
export declare function get<A, PageConfig = any>(params: GetContentParams): IOEither<EnonicError, Content<A, PageConfig>>; | ||
export declare function query<A>(params: QueryContentParams): IOEither<EnonicError, QueryResponse<A>>; | ||
@@ -13,3 +13,3 @@ export declare function create<A>(params: CreateContentParams<A>): IOEither<EnonicError, Content<A>>; | ||
export declare function move<A>(params: MoveParams): IOEither<EnonicError, Content<A>>; | ||
export declare function getSite<A>(params: GetSiteParams): IOEither<EnonicError, Site<A>>; | ||
export declare function getSite<A, PageConfig = any>(params: GetSiteParams): IOEither<EnonicError, Site<A, PageConfig>>; | ||
export declare function getSiteConfig<A>(params: GetSiteConfigParams): IOEither<EnonicError, A>; | ||
@@ -16,0 +16,0 @@ export declare function createMedia<A>(params: CreateMediaParams): IOEither<EnonicError, Content<A>>; |
@@ -66,3 +66,2 @@ "use strict"; | ||
exports.getAttachments = getAttachments; | ||
// The return type is Java: com.google.common.io.ByteSource | ||
function getAttachmentStream(params) { | ||
@@ -69,0 +68,0 @@ return pipeable_1.pipe(utils_2.catchEnonicError(function () { return contentLib.getAttachmentStream(params); }), IOEither_1.chain(utils_1.fromNullable({ errorKey: "NotFoundError" }))); |
{ | ||
"name": "enonic-fp", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Functional programming helpers for Enonic XP", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"enonic-types": "^0.0.6", | ||
"enonic-types": "^0.0.8", | ||
"fp-ts": "^2.1.1" | ||
@@ -30,0 +30,0 @@ }, |
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
837
+ Addedenonic-types@0.0.8(transitive)
- Removedenonic-types@0.0.6(transitive)
Updatedenonic-types@^0.0.8