@imbricate/core 1.8.4 → 1.8.6
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/page/definition.d.ts +1 -1
- package/query/page.d.ts +4 -2
- package/query/script.d.ts +4 -2
- package/script/definition.d.ts +1 -1
|
@@ -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/page/definition.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export type ImbricatePageSearchSnippet = ImbricateSearchSnippet<IMBRICATE_SEARCH
|
|
|
10
10
|
export type ImbricatePageSnapshot = {
|
|
11
11
|
readonly title: string;
|
|
12
12
|
readonly identifier: string;
|
|
13
|
-
readonly description?: string;
|
|
14
13
|
};
|
|
15
14
|
export type ImbricatePageMetadata = {
|
|
16
15
|
readonly createdAt: Date;
|
|
17
16
|
readonly updatedAt: Date;
|
|
17
|
+
readonly description?: string;
|
|
18
18
|
} & ImbricatePageSnapshot;
|
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
|
+
};
|
package/script/definition.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ export type ImbricateScriptSearchSnippet = ImbricateSearchSnippet<IMBRICATE_SEAR
|
|
|
10
10
|
export type ImbricateScriptSnapshot = {
|
|
11
11
|
readonly scriptName: string;
|
|
12
12
|
readonly identifier: string;
|
|
13
|
-
readonly description?: string;
|
|
14
13
|
};
|
|
15
14
|
export type ImbricateScriptMetadata = {
|
|
16
15
|
readonly createdAt: Date;
|
|
17
16
|
readonly updatedAt: Date;
|
|
17
|
+
readonly description?: string;
|
|
18
18
|
} & ImbricateScriptSnapshot;
|