Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.0.0-alpha.7](https://github.com/wikibus/alcaeus/compare/v1.0.0-alpha.6...v1.0.0-alpha.7) (2020-01-28) | ||
## [1.0.0-alpha.6](https://github.com/wikibus/alcaeus/compare/v1.0.0-alpha.5...v1.0.0-alpha.6) (2020-01-27) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "alcaeus", | ||
"version": "1.0.0-alpha.6", | ||
"version": "1.0.0-alpha.7", | ||
"description": "Hydra Core hypermedia-aware client library", | ||
@@ -5,0 +5,0 @@ "main": "lib/node/index.node.js", |
@@ -1,2 +0,2 @@ | ||
import { ResourceFactory } from '@tpluscode/rdfine'; | ||
import { RdfResource, ResourceFactory } from '@tpluscode/rdfine'; | ||
import DatasetExt from 'rdf-ext/lib/Dataset'; | ||
@@ -17,3 +17,3 @@ import { NamedNode } from 'rdf-js'; | ||
}; | ||
loadResource(uri: string | NamedNode, headers?: HeadersInit): Promise<HydraResponse>; | ||
loadResource<T extends RdfResource = HydraResource>(uri: string | NamedNode, headers?: HeadersInit): Promise<HydraResponse<T>>; | ||
loadDocumentation(uri: string | NamedNode, headers?: HeadersInit): void; | ||
@@ -39,3 +39,3 @@ invokeOperation(operation: InvokedOperation, body?: BodyInit, headers?: string | HeadersInit): Promise<HydraResponse>; | ||
get apiDocumentations(): Promise<ApiDocumentation[]>; | ||
loadResource(id: string | NamedNode, headers?: HeadersInit, dereferenceApiDocumentation?: boolean): Promise<HydraResponse>; | ||
loadResource<T extends RdfResource>(id: string | NamedNode, headers?: HeadersInit, dereferenceApiDocumentation?: boolean): Promise<HydraResponse<T>>; | ||
loadDocumentation(id: string | NamedNode, headers?: HeadersInit): void; | ||
@@ -42,0 +42,0 @@ invokeOperation(operation: InvokedOperation, body?: BodyInit, headers?: HeadersInit): Promise<HydraResponse>; |
@@ -1,2 +0,2 @@ | ||
import { ResourceFactory } from '@tpluscode/rdfine'; | ||
import { RdfResource, ResourceFactory } from '@tpluscode/rdfine'; | ||
import { DatasetCore, NamedNode } from 'rdf-js'; | ||
@@ -6,7 +6,7 @@ import { HydraClient } from './alcaeus'; | ||
import { ResponseWrapper } from './ResponseWrapper'; | ||
export interface HydraResponse extends Iterable<HydraResource>, ResponseWrapper { | ||
export interface HydraResponse<T extends RdfResource = HydraResource> extends Iterable<HydraResource>, ResponseWrapper { | ||
/** | ||
* Gets the root of the representation or undefined if it cannot be determined | ||
*/ | ||
root: HydraResource | null; | ||
root: HydraResource | (HydraResource & T) | null; | ||
/** | ||
@@ -13,0 +13,0 @@ * Gets the number of resource within this representation |
@@ -23,2 +23,3 @@ /// <reference types="clownface" /> | ||
getCollections(filter?: ManagesBlockPattern | undefined): Collection<HydraResource>[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -39,3 +40,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("./OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -42,0 +42,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -60,2 +60,13 @@ /// <reference types="clownface" /> | ||
__filterOperations(operations: Operation[], criteria?: Criteria[]): Operation[]; | ||
readonly operations: Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("..").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("..").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("../Mixins/ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -72,13 +83,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<Quad>>; | ||
getNumber(property: string | NamedNode): number | null; | ||
readonly operations: Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("..").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("..").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("../Mixins/ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -85,0 +85,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<Quad>>, any>; |
@@ -7,3 +7,3 @@ /// <reference types="clownface" /> | ||
new (...input: any[]): { | ||
load(): Promise<import("../../HydraResponse").HydraResponse>; | ||
load(): Promise<import("../../HydraResponse").HydraResponse<import("..").HydraResource>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -10,0 +10,0 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; |
@@ -8,3 +8,3 @@ import { RdfResource } from '@tpluscode/rdfine'; | ||
import { SupportedProperty } from './Mixins/SupportedProperty'; | ||
export declare type HydraResource = RdfResource & Resource & OperationFinder & { | ||
export interface HydraResource extends RdfResource, Resource, OperationFinder { | ||
/** | ||
@@ -37,4 +37,4 @@ * Gets the operations which can be performed on this resource | ||
*/ | ||
load?(): Promise<HydraResponse>; | ||
}; | ||
load?(): Promise<HydraResponse<this>>; | ||
} | ||
export interface View extends HydraResource { | ||
@@ -41,0 +41,0 @@ /** |
@@ -13,3 +13,14 @@ /// <reference types="clownface" /> | ||
entrypoint: HydraResource; | ||
loadEntrypoint(): Promise<HydraResponse>; | ||
loadEntrypoint(): Promise<HydraResponse<HydraResource>>; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -30,13 +41,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<HydraResponse>; | ||
}; | ||
@@ -43,0 +43,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -14,2 +14,13 @@ /// <reference types="clownface" /> | ||
variableRepresentation: import("..").HydraResource; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: import("..").HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -30,2 +41,12 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & { | ||
new (...input: any[]): { | ||
mapShorthandValue(value: any): any; | ||
mapExpandedValue(value: ExpandedValue): string; | ||
template: string; | ||
mappings: import("./IriTemplateMapping").IriTemplateMapping[]; | ||
variableRepresentation: import("..").HydraResource; | ||
expand(mode: any): string; | ||
readonly operations: import("../Operation").Operation[]; | ||
@@ -41,13 +62,3 @@ getProperties(): { | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & { | ||
new (...input: any[]): { | ||
mapShorthandValue(value: any): any; | ||
mapExpandedValue(value: ExpandedValue): string; | ||
template: string; | ||
mappings: import("./IriTemplateMapping").IriTemplateMapping[]; | ||
variableRepresentation: import("..").HydraResource; | ||
expand(mode: any): string; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -68,13 +79,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: import("..").HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -81,0 +81,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -22,2 +22,13 @@ /// <reference types="clownface" /> | ||
getTypeHierarchy(): Generator<any, any, unknown>; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -38,13 +49,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -51,0 +51,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -5,3 +5,3 @@ /// <reference types="clownface" /> | ||
import { ManagesBlock } from './ManagesBlock'; | ||
export interface Collection<T extends HydraResource = HydraResource> extends HydraResource { | ||
export interface Collection<T = HydraResource> extends HydraResource { | ||
/** | ||
@@ -16,3 +16,3 @@ * Gets the total number of items within the entire collection. | ||
*/ | ||
readonly members: T[]; | ||
readonly members: (HydraResource & T)[]; | ||
/** | ||
@@ -33,2 +33,13 @@ * Gets the views of a partial collection | ||
manages: ManagesBlock[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -49,13 +60,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -62,0 +62,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -24,2 +24,13 @@ /// <reference types="clownface" /> | ||
readonly title: string; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -40,13 +51,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -53,0 +53,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -20,2 +20,13 @@ /// <reference types="clownface" /> | ||
variableRepresentation: import("..").HydraResource; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: import("..").HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -36,15 +47,4 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: import("..").HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<import("@tpluscode/rdfine").RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & TBase; |
@@ -14,2 +14,13 @@ /// <reference types="clownface" /> | ||
variableRepresentation: import("..").HydraResource; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: import("..").HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -30,2 +41,12 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & { | ||
new (...input: any[]): { | ||
mapShorthandValue(value: string): string; | ||
mapExpandedValue(value: ExpandedValue): string; | ||
template: string; | ||
mappings: import("./IriTemplateMapping").IriTemplateMapping[]; | ||
variableRepresentation: import("..").HydraResource; | ||
expand(mode: any): string; | ||
readonly operations: import("../Operation").Operation[]; | ||
@@ -41,13 +62,3 @@ getProperties(): { | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & { | ||
new (...input: any[]): { | ||
mapShorthandValue(value: string): string; | ||
mapExpandedValue(value: ExpandedValue): string; | ||
template: string; | ||
mappings: import("./IriTemplateMapping").IriTemplateMapping[]; | ||
variableRepresentation: import("..").HydraResource; | ||
expand(mode: any): string; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -68,13 +79,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: import("..").HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): import("..").HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -81,0 +81,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -17,2 +17,13 @@ /// <reference types="clownface" /> | ||
expand(): string; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -33,13 +44,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -46,0 +46,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -15,2 +15,13 @@ /// <reference types="clownface" /> | ||
required: boolean; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -31,13 +42,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -44,0 +44,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -30,2 +30,13 @@ import { Constructor, RdfResource, ResourceIdentifier } from '@tpluscode/rdfine'; | ||
readonly collection: Collection<HydraResource> & import("@tpluscode/rdfine").ResourceIndexer<RdfResource<DatasetCore<import("rdf-js").Quad>>>; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: ResourceIdentifier; | ||
@@ -46,13 +57,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -59,0 +59,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -37,2 +37,13 @@ /// <reference types="clownface" /> | ||
readonly title: string; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -55,15 +66,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; /** | ||
* Gets a value indicating whether the property is a hydra:Link | ||
*/ | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -70,0 +68,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -26,2 +26,13 @@ /// <reference types="clownface" /> | ||
readonly title: string; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -42,13 +53,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import("./SupportedProperty").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -55,0 +55,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -38,2 +38,15 @@ /// <reference types="clownface" /> | ||
readonly title: string; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: SupportedProperty; | ||
objects: any[]; | ||
}[]; /** | ||
* The actual RDF predicate to use in representations | ||
*/ | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -54,13 +67,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("../CoreMixins/OperationFinder").Criteria[]): import("../Operation").Operation[]; | ||
readonly operations: import("../Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -67,0 +69,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -12,2 +12,13 @@ /// <reference types="clownface" /> | ||
getTypeHierarchy(): Generator<any, any, unknown>; | ||
readonly operations: import("./Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import(".").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import(".").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./Mixins/ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -28,2 +39,8 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("./CoreMixins/OperationFinder").Criteria[]): import("./Operation").Operation[]; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & { | ||
new (...input: any[]): { | ||
readonly title: string; | ||
readonly description: string; | ||
readonly operations: import("./Operation").Operation[]; | ||
@@ -39,9 +56,3 @@ getProperties(): { | ||
getCollections(filter?: import("./Mixins/ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../HydraResponse").HydraResponse>; | ||
}; | ||
factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; | ||
} & { | ||
new (...input: any[]): { | ||
readonly title: string; | ||
readonly description: string; | ||
load?(): Promise<import("../HydraResponse").HydraResponse<any>>; | ||
readonly id: import("@tpluscode/rdfine").ResourceIdentifier; | ||
@@ -62,13 +73,2 @@ readonly types: import("@tpluscode/rdfine/dist/types/lib/TypeCollection").TypeCollection<import("rdf-js").DatasetCore<import("rdf-js").Quad>>; | ||
findOperationsDeep(...criteria: import("./CoreMixins/OperationFinder").Criteria[]): import("./Operation").Operation[]; | ||
readonly operations: import("./Operation").Operation[]; | ||
getProperties(): { | ||
supportedProperty: import(".").SupportedProperty; | ||
objects: any[]; | ||
}[]; | ||
getLinks(includeMissing?: boolean | undefined): { | ||
supportedProperty: import(".").SupportedProperty; | ||
resources: HydraResource[]; | ||
}[]; | ||
getCollections(filter?: import("./Mixins/ManagesBlock").ManagesBlockPattern | undefined): HydraResource[]; | ||
load?(): Promise<import("../HydraResponse").HydraResponse>; | ||
}; | ||
@@ -75,0 +75,0 @@ factory: import("@tpluscode/rdfine").ResourceFactory<RdfResource<import("rdf-js").DatasetCore<import("rdf-js").Quad>>, any>; |
@@ -33,3 +33,3 @@ import { HydraClient } from '../alcaeus'; | ||
get description(): string; | ||
invoke(body?: BodyInit, headers?: string | HeadersInit): Promise<HydraResponse>; | ||
invoke(body?: BodyInit, headers?: string | HeadersInit): Promise<HydraResponse<HydraResource>>; | ||
} |
import { HydraResponse } from '../HydraResponse'; | ||
import { ResourceGraph } from '../ResourceGraph'; | ||
declare const _default: { | ||
selectRoot(resources: ResourceGraph, response: HydraResponse): import("..").HydraResource | undefined; | ||
selectRoot(resources: ResourceGraph, response: HydraResponse<import("..").HydraResource>): import("..").HydraResource | undefined; | ||
}; | ||
export default _default; |
import { HydraResponse } from '../HydraResponse'; | ||
import { ResourceGraph } from '../ResourceGraph'; | ||
declare const _default: { | ||
selectRoot(resources: ResourceGraph, response: HydraResponse): import("..").HydraResource | undefined; | ||
selectRoot(resources: ResourceGraph, response: HydraResponse<import("..").HydraResource>): import("..").HydraResource | undefined; | ||
}; | ||
export default _default; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
373492