@imbricate/core 1.32.0 → 1.34.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/base.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
7
7
|
import { ImbricateCapability } from "../capability/definition";
|
|
8
8
|
import type { PromiseOr } from "../definition/promise";
|
|
9
|
-
import type { ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
|
|
9
|
+
import type { IMBRICATE_PAGE_VARIANT, ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
|
|
10
10
|
import type { IImbricatePage } from "../page/interface";
|
|
11
11
|
import type { ImbricatePageQuery, ImbricatePageQueryConfig, ImbricateSearchPageConfig } from "../query/page";
|
|
12
12
|
import { IMBRICATE_COLLECTION_CAPABILITY_KEY, ImbricateCollectionCapability } from "./definition";
|
|
@@ -18,7 +18,7 @@ export declare abstract class ImbricateCollectionBase implements IImbricateColle
|
|
|
18
18
|
abstract readonly collectionName: string;
|
|
19
19
|
abstract readonly uniqueIdentifier: string;
|
|
20
20
|
abstract readonly capabilities: ImbricateCollectionCapability;
|
|
21
|
-
createPage(_directories: string[], _title: string, _initialContent: string): PromiseOr<IImbricatePage>;
|
|
21
|
+
createPage(_directories: string[], _title: string, _variant: IMBRICATE_PAGE_VARIANT, _initialContent: string, _description?: string): PromiseOr<IImbricatePage>;
|
|
22
22
|
putPage(_pageMetadata: ImbricatePageMetadata, _content: string): PromiseOr<IImbricatePage>;
|
|
23
23
|
retitlePage(_identifier: string, _newTitle: string): PromiseOr<void>;
|
|
24
24
|
deletePage(_identifier: string): PromiseOr<void>;
|
package/collection/base.js
CHANGED
|
@@ -20,7 +20,7 @@ class ImbricateCollectionBase {
|
|
|
20
20
|
static allDenyCapability() {
|
|
21
21
|
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
22
22
|
}
|
|
23
|
-
createPage(_directories, _title, _initialContent) {
|
|
23
|
+
createPage(_directories, _title, _variant, _initialContent, _description) {
|
|
24
24
|
throw not_implemented_1.ImbricateNotImplemented.create("CreatePage", definition_2.IMBRICATE_COLLECTION_CAPABILITY_KEY.CREATE_PAGE);
|
|
25
25
|
}
|
|
26
26
|
putPage(_pageMetadata, _content) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description Interface
|
|
5
5
|
*/
|
|
6
6
|
import type { PromiseOr } from "../definition/promise";
|
|
7
|
-
import type { ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
|
|
7
|
+
import type { IMBRICATE_PAGE_VARIANT, ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
|
|
8
8
|
import type { IImbricatePage } from "../page/interface";
|
|
9
9
|
import type { ImbricatePageQuery, ImbricatePageQueryConfig, ImbricateSearchPageConfig } from "../query/page";
|
|
10
10
|
import type { ImbricateCollectionCapability } from "./definition";
|
|
@@ -13,7 +13,7 @@ export interface IImbricateCollection {
|
|
|
13
13
|
readonly uniqueIdentifier: string;
|
|
14
14
|
readonly description?: string;
|
|
15
15
|
readonly capabilities: ImbricateCollectionCapability;
|
|
16
|
-
createPage(directories: string[], title: string, initialContent: string): PromiseOr<IImbricatePage>;
|
|
16
|
+
createPage(directories: string[], title: string, variant: IMBRICATE_PAGE_VARIANT, initialContent: string, description?: string): PromiseOr<IImbricatePage>;
|
|
17
17
|
putPage(pageMetadata: ImbricatePageMetadata, content: string): PromiseOr<IImbricatePage>;
|
|
18
18
|
retitlePage(identifier: string, newTitle: string): PromiseOr<void>;
|
|
19
19
|
deletePage(identifier: string): PromiseOr<void>;
|
package/package.json
CHANGED
package/script-manager/base.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare abstract class ImbricateScriptManagerBase implements IImbricateSc
|
|
|
17
17
|
static allAllowCapability(): ImbricateScriptManagerCapability;
|
|
18
18
|
static allDenyCapability(): ImbricateScriptManagerCapability;
|
|
19
19
|
abstract readonly capabilities: ImbricateScriptManagerCapability;
|
|
20
|
-
createScript(_scriptName: string, _initialScript: string, _description?: string): PromiseOr<IImbricateScript>;
|
|
20
|
+
createScript(_scriptName: string, _variant: IMBRICATE_EXECUTABLE_VARIANT, _initialScript: string, _description?: string): PromiseOr<IImbricateScript>;
|
|
21
21
|
putScript(_scriptMetadata: ImbricateScriptMetadata, _script: string): PromiseOr<IImbricateScript>;
|
|
22
22
|
renameScript(_identifier: string, _newScriptName: string): PromiseOr<void>;
|
|
23
23
|
deleteScript(_identifier: string): PromiseOr<void>;
|
package/script-manager/base.js
CHANGED
|
@@ -20,7 +20,7 @@ class ImbricateScriptManagerBase {
|
|
|
20
20
|
static allDenyCapability() {
|
|
21
21
|
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
22
22
|
}
|
|
23
|
-
createScript(_scriptName, _initialScript, _description) {
|
|
23
|
+
createScript(_scriptName, _variant, _initialScript, _description) {
|
|
24
24
|
throw not_implemented_1.ImbricateNotImplemented.create("CreateScript", definition_2.IMBRICATE_SCRIPT_MANAGER_CAPABILITY_KEY.CREATE_SCRIPT);
|
|
25
25
|
}
|
|
26
26
|
putScript(_scriptMetadata, _script) {
|
|
@@ -23,7 +23,7 @@ export interface IImbricateScriptManager {
|
|
|
23
23
|
*
|
|
24
24
|
* @returns Created script
|
|
25
25
|
*/
|
|
26
|
-
createScript(scriptName: string, initialScript: string, description?: string): PromiseOr<IImbricateScript>;
|
|
26
|
+
createScript(scriptName: string, variant: IMBRICATE_EXECUTABLE_VARIANT, initialScript: string, description?: string): PromiseOr<IImbricateScript>;
|
|
27
27
|
putScript(scriptMetadata: ImbricateScriptMetadata, script: string): PromiseOr<IImbricateScript>;
|
|
28
28
|
renameScript(identifier: string, newScriptName: string): PromiseOr<void>;
|
|
29
29
|
deleteScript(identifier: string): PromiseOr<void>;
|