enonic-types
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -125,2 +125,6 @@ /** | ||
readonly sessionTimeout?: number; | ||
/** | ||
* Defines the scope of the login. | ||
*/ | ||
readonly scope?: 'SESSION' | 'REQUEST'; | ||
} | ||
@@ -189,4 +193,13 @@ export interface LoginResult { | ||
export interface ModifyProfileParams<A> { | ||
/** | ||
* Principal key of the user. | ||
*/ | ||
readonly key: string; | ||
/** | ||
* Scope of the data to retrieve and update. | ||
*/ | ||
readonly scope?: string; | ||
/** | ||
* Profile editor function to apply. | ||
*/ | ||
readonly editor: (c: A) => A; | ||
@@ -193,0 +206,0 @@ } |
export interface EnonicLibraryMap { | ||
"/lib/xp/admin": import("./admin").AdminLibrary; | ||
"/lib/xp/auth": import("./auth").AuthLibrary; | ||
"/lib/xp/cluster": import("./cluster").ClusterLibrary; | ||
"/lib/xp/common": import("./common").CommonLibrary; | ||
@@ -20,2 +22,3 @@ "/lib/xp/content": import("./content").ContentLibrary; | ||
"/lib/session": import("./session").SessionLibrary; | ||
"/lib/xp/task": import("./task").TaskLibrary; | ||
"/lib/xp/testing": import("./testing").TestingLibrary; | ||
@@ -22,0 +25,0 @@ "/lib/thymeleaf": import("./thymeleaf").ThymeleafLibrary; |
@@ -25,3 +25,3 @@ import { Aggregation, AggregationsResponse, ByteSource, Highlight, PermissionsParams } from "./content"; | ||
} | ||
export interface NodeQueryResponse<B extends string> { | ||
export interface NodeQueryResponse<B extends string = never> { | ||
readonly total: number; | ||
@@ -256,3 +256,3 @@ readonly count: number; | ||
*/ | ||
query<B extends string>(params: NodeQueryParams<B>): NodeQueryResponse<B>; | ||
query<B extends string = never>(params: NodeQueryParams<B>): NodeQueryResponse<B>; | ||
/** | ||
@@ -259,0 +259,0 @@ * Refresh the index for the current repoConnection |
{ | ||
"name": "enonic-types", | ||
"sideEffects": false, | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -6,0 +6,0 @@ "typings": "index.d.ts", |
@@ -58,3 +58,5 @@ # TypeScript types for Enonic XP | ||
* [AdminLibrary](./src/admin.ts) | ||
* [AuthLibrary](./src/auth.ts) | ||
* [ClusterLibrary](./src/cluster.ts) | ||
* [CommonLibrary](./src/common.ts) | ||
@@ -78,2 +80,3 @@ * [ContentLibrary](./src/content.ts) | ||
* [SessionLibrary](./src/session.ts) | ||
* [TaskLibrary](./src/task.ts) | ||
* [TestingLibrary](./src/testing.ts) | ||
@@ -80,0 +83,0 @@ * [ThymeleafLibrary](./src/thymeleaf.ts) |
76954
32
2264
84