@imbricate/core 1.8.7 → 1.9.0
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 -5
- package/origin/interface.d.ts +2 -5
- package/package.json +1 -1
- package/query/page.d.ts +4 -0
- package/query/script.d.ts +4 -0
|
@@ -6,17 +6,14 @@
|
|
|
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, ImbricatePageQueryConfig } from "../query/page";
|
|
10
|
-
export type ImbricateSearchPageConfig = {
|
|
11
|
-
readonly exact?: boolean;
|
|
12
|
-
};
|
|
9
|
+
import { ImbricatePageQuery, ImbricatePageQueryConfig, ImbricateSearchPageConfig } from "../query/page";
|
|
13
10
|
export interface IImbricateOriginCollection {
|
|
14
11
|
readonly collectionName: string;
|
|
15
12
|
readonly description?: string;
|
|
16
13
|
createPage(title: string, initialContent?: string): PromiseOr<IImbricatePage>;
|
|
17
14
|
putPage(pageMetadata: ImbricatePageMetadata, content: string): PromiseOr<IImbricatePage>;
|
|
18
15
|
retitlePage(identifier: string, newTitle: string): PromiseOr<void>;
|
|
19
|
-
deletePage(identifier: string
|
|
16
|
+
deletePage(identifier: string): PromiseOr<void>;
|
|
20
17
|
hasPage(title: string): PromiseOr<boolean>;
|
|
21
18
|
getPage(identifier: string): PromiseOr<IImbricatePage | null>;
|
|
22
19
|
listPages(): PromiseOr<ImbricatePageSnapshot[]>;
|
package/origin/interface.d.ts
CHANGED
|
@@ -5,13 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { IImbricateOriginCollection } from "../collection/interface";
|
|
7
7
|
import { PromiseOr } from "../definition/promise";
|
|
8
|
-
import { ImbricateScriptQuery, ImbricateScriptQueryConfig } from "../query/script";
|
|
8
|
+
import { ImbricateScriptQuery, ImbricateScriptQueryConfig, ImbricateSearchScriptConfig } 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";
|
|
12
|
-
export type ImbricateSearchScriptConfig = {
|
|
13
|
-
readonly exact?: boolean;
|
|
14
|
-
};
|
|
15
12
|
export interface IImbricateOrigin {
|
|
16
13
|
readonly metadata: ImbricateOriginMetadata;
|
|
17
14
|
readonly payloads: Record<string, any>;
|
|
@@ -24,7 +21,7 @@ export interface IImbricateOrigin {
|
|
|
24
21
|
createScript(scriptName: string, description?: string): PromiseOr<IImbricateScript>;
|
|
25
22
|
putScript(scriptMetadata: ImbricateScriptMetadata, script: string): PromiseOr<IImbricateScript>;
|
|
26
23
|
renameScript(identifier: string, newScriptName: string): PromiseOr<void>;
|
|
27
|
-
deleteScript(identifier: string
|
|
24
|
+
deleteScript(identifier: string): PromiseOr<void>;
|
|
28
25
|
hasScript(scriptName: string): PromiseOr<boolean>;
|
|
29
26
|
getScript(identifier: string): PromiseOr<IImbricateScript | null>;
|
|
30
27
|
listScripts(): PromiseOr<ImbricateScriptSnapshot[]>;
|
package/package.json
CHANGED
package/query/page.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export type ImbricatePageQuery = {
|
|
|
10
10
|
readonly createdAt?: ImbricateQueryTime;
|
|
11
11
|
readonly updatedAt?: ImbricateQueryTime;
|
|
12
12
|
};
|
|
13
|
+
export type ImbricateSearchPageConfig = {
|
|
14
|
+
readonly exact?: boolean;
|
|
15
|
+
readonly limit?: number;
|
|
16
|
+
};
|
|
13
17
|
export type ImbricatePageQueryConfig = {
|
|
14
18
|
readonly limit?: number;
|
|
15
19
|
readonly skip?: number;
|
package/query/script.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ export type ImbricateScriptQuery = {
|
|
|
10
10
|
readonly createdAt?: ImbricateQueryTime;
|
|
11
11
|
readonly updatedAt?: ImbricateQueryTime;
|
|
12
12
|
};
|
|
13
|
+
export type ImbricateSearchScriptConfig = {
|
|
14
|
+
readonly exact?: boolean;
|
|
15
|
+
readonly limit?: number;
|
|
16
|
+
};
|
|
13
17
|
export type ImbricateScriptQueryConfig = {
|
|
14
18
|
readonly limit?: number;
|
|
15
19
|
readonly skip?: number;
|