@imbricate/core 1.8.4 → 1.8.5
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.
- package/collection/interface.d.ts +2 -2
- package/origin/interface.d.ts +2 -2
- package/package.json +1 -1
- package/query/page.d.ts +4 -2
- package/query/script.d.ts +4 -2
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { PromiseOr } from "../definition/promise";
|
|
7
7
|
import { ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
|
|
8
8
|
import { IImbricatePage } from "../page/interface";
|
|
9
|
-
import { ImbricatePageQuery } from "../query/page";
|
|
9
|
+
import { ImbricatePageQuery, ImbricatePageQueryConfig } from "../query/page";
|
|
10
10
|
export type ImbricateSearchPageConfig = {
|
|
11
11
|
readonly exact?: boolean;
|
|
12
12
|
};
|
|
@@ -21,5 +21,5 @@ export interface IImbricateOriginCollection {
|
|
|
21
21
|
getPage(identifier: string): PromiseOr<IImbricatePage | null>;
|
|
22
22
|
listPages(): PromiseOr<ImbricatePageSnapshot[]>;
|
|
23
23
|
searchPages(keyword: string, config: ImbricateSearchPageConfig): PromiseOr<ImbricatePageSearchResult[]>;
|
|
24
|
-
queryPages(query: ImbricatePageQuery): PromiseOr<IImbricatePage[]>;
|
|
24
|
+
queryPages(query: ImbricatePageQuery, config: ImbricatePageQueryConfig): PromiseOr<IImbricatePage[]>;
|
|
25
25
|
}
|
package/origin/interface.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { IImbricateOriginCollection } from "../collection/interface";
|
|
7
7
|
import { PromiseOr } from "../definition/promise";
|
|
8
|
-
import { ImbricateScriptQuery } from "../query/script";
|
|
8
|
+
import { ImbricateScriptQuery, ImbricateScriptQueryConfig } from "../query/script";
|
|
9
9
|
import { ImbricateScriptMetadata, ImbricateScriptSearchResult, ImbricateScriptSnapshot } from "../script/definition";
|
|
10
10
|
import { IImbricateScript } from "../script/interface";
|
|
11
11
|
import { ImbricateOriginMetadata } from "./definition";
|
|
@@ -29,5 +29,5 @@ export interface IImbricateOrigin {
|
|
|
29
29
|
getScript(identifier: string): PromiseOr<IImbricateScript | null>;
|
|
30
30
|
listScripts(): PromiseOr<ImbricateScriptSnapshot[]>;
|
|
31
31
|
searchScripts(keyword: string, config: ImbricateSearchScriptConfig): PromiseOr<ImbricateScriptSearchResult[]>;
|
|
32
|
-
queryScripts(query: ImbricateScriptQuery): PromiseOr<IImbricateScript[]>;
|
|
32
|
+
queryScripts(query: ImbricateScriptQuery, config: ImbricateScriptQueryConfig): PromiseOr<IImbricateScript[]>;
|
|
33
33
|
}
|
package/package.json
CHANGED
package/query/page.d.ts
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ImbricateQueryString, ImbricateQueryTime } from "./definition";
|
|
7
7
|
export type ImbricatePageQuery = {
|
|
8
|
-
readonly limit?: number;
|
|
9
|
-
readonly skip?: number;
|
|
10
8
|
readonly title?: ImbricateQueryString;
|
|
11
9
|
readonly attributes?: Record<string, ImbricateQueryString>;
|
|
12
10
|
readonly createdAt?: ImbricateQueryTime;
|
|
13
11
|
readonly updatedAt?: ImbricateQueryTime;
|
|
14
12
|
};
|
|
13
|
+
export type ImbricatePageQueryConfig = {
|
|
14
|
+
readonly limit?: number;
|
|
15
|
+
readonly skip?: number;
|
|
16
|
+
};
|
package/query/script.d.ts
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { ImbricateQueryString, ImbricateQueryTime } from "./definition";
|
|
7
7
|
export type ImbricateScriptQuery = {
|
|
8
|
-
readonly limit?: number;
|
|
9
|
-
readonly skip?: number;
|
|
10
8
|
readonly scriptName?: ImbricateQueryString;
|
|
11
9
|
readonly attributes?: Record<string, ImbricateQueryString>;
|
|
12
10
|
readonly createdAt?: ImbricateQueryTime;
|
|
13
11
|
readonly updatedAt?: ImbricateQueryTime;
|
|
14
12
|
};
|
|
13
|
+
export type ImbricateScriptQueryConfig = {
|
|
14
|
+
readonly limit?: number;
|
|
15
|
+
readonly skip?: number;
|
|
16
|
+
};
|