@imbricate/core 1.8.0 → 1.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,6 +9,9 @@ import { IImbricatePage } from "../page/interface";
|
|
|
9
9
|
export type ImbricateSearchPageConfig = {
|
|
10
10
|
readonly exact?: boolean;
|
|
11
11
|
};
|
|
12
|
+
export type ImbricatePageQuery = {
|
|
13
|
+
readonly limit?: number;
|
|
14
|
+
};
|
|
12
15
|
export interface IImbricateOriginCollection {
|
|
13
16
|
readonly collectionName: string;
|
|
14
17
|
readonly description?: string;
|
|
@@ -20,4 +23,5 @@ export interface IImbricateOriginCollection {
|
|
|
20
23
|
getPage(identifier: string): PromiseOr<IImbricatePage | null>;
|
|
21
24
|
listPages(): PromiseOr<ImbricatePageSnapshot[]>;
|
|
22
25
|
searchPages(keyword: string, config: ImbricateSearchPageConfig): PromiseOr<ImbricatePageSearchResult[]>;
|
|
26
|
+
queryPages(query: ImbricatePageQuery): PromiseOr<IImbricatePage[]>;
|
|
23
27
|
}
|
package/origin/interface.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ import { ImbricateOriginMetadata } from "./definition";
|
|
|
11
11
|
export type ImbricateSearchScriptConfig = {
|
|
12
12
|
readonly exact?: boolean;
|
|
13
13
|
};
|
|
14
|
+
export type ImbricateScriptQuery = {
|
|
15
|
+
readonly limit?: number;
|
|
16
|
+
};
|
|
14
17
|
export interface IImbricateOrigin {
|
|
15
18
|
readonly metadata: ImbricateOriginMetadata;
|
|
16
19
|
readonly payloads: Record<string, any>;
|
|
@@ -28,4 +31,5 @@ export interface IImbricateOrigin {
|
|
|
28
31
|
getScript(identifier: string): PromiseOr<IImbricateScript | null>;
|
|
29
32
|
listScripts(): PromiseOr<ImbricateScriptSnapshot[]>;
|
|
30
33
|
searchScripts(keyword: string, config: ImbricateSearchScriptConfig): PromiseOr<ImbricateScriptSearchResult[]>;
|
|
34
|
+
queryScripts(query: ImbricateScriptQuery): PromiseOr<IImbricateScript[]>;
|
|
31
35
|
}
|