@imbricate/core 1.32.0 → 1.34.1
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 +2 -2
- package/collection/base.js +1 -1
- package/collection/interface.d.ts +2 -2
- package/package.json +1 -1
- package/page/base.d.ts +2 -1
- package/page/interface.d.ts +2 -1
- package/script/base.d.ts +2 -1
- package/script/interface.d.ts +2 -1
- package/script-manager/base.d.ts +1 -1
- package/script-manager/base.js +1 -1
- package/script-manager/interface.d.ts +1 -1
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/page/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 { IMBRICATE_PAGE_CAPABILITY_KEY, ImbricatePageCapability, ImbricatePageHistoryRecord } from "./definition";
|
|
9
|
+
import { IMBRICATE_PAGE_CAPABILITY_KEY, IMBRICATE_PAGE_VARIANT, ImbricatePageCapability, ImbricatePageHistoryRecord } from "./definition";
|
|
10
10
|
import type { IImbricatePage } from "./interface";
|
|
11
11
|
export declare abstract class ImbricatePageBase implements IImbricatePage {
|
|
12
12
|
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_PAGE_CAPABILITY_KEY>;
|
|
@@ -15,6 +15,7 @@ export declare abstract class ImbricatePageBase implements IImbricatePage {
|
|
|
15
15
|
abstract readonly title: string;
|
|
16
16
|
abstract readonly directories: string[];
|
|
17
17
|
abstract readonly identifier: string;
|
|
18
|
+
abstract readonly variant: IMBRICATE_PAGE_VARIANT;
|
|
18
19
|
abstract readonly digest: string;
|
|
19
20
|
abstract readonly historyRecords: ImbricatePageHistoryRecord[];
|
|
20
21
|
abstract readonly description?: string;
|
package/page/interface.d.ts
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* @description Interface
|
|
5
5
|
*/
|
|
6
6
|
import { PromiseOr } from "../definition/promise";
|
|
7
|
-
import { ImbricatePageAttributes, ImbricatePageCapability, ImbricatePageHistoryRecord } from "./definition";
|
|
7
|
+
import { IMBRICATE_PAGE_VARIANT, ImbricatePageAttributes, ImbricatePageCapability, ImbricatePageHistoryRecord } from "./definition";
|
|
8
8
|
export interface IImbricatePage {
|
|
9
9
|
readonly title: string;
|
|
10
10
|
readonly directories: string[];
|
|
11
11
|
readonly identifier: string;
|
|
12
|
+
readonly variant: IMBRICATE_PAGE_VARIANT;
|
|
12
13
|
readonly digest: string;
|
|
13
14
|
readonly historyRecords: ImbricatePageHistoryRecord[];
|
|
14
15
|
readonly description?: string;
|
package/script/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 { ImbricateExecuteEnvironment, ImbricateExecuteParameters, ImbricateExecuteResult } from "../execute/definition";
|
|
9
|
+
import { IMBRICATE_EXECUTABLE_VARIANT, ImbricateExecuteEnvironment, ImbricateExecuteParameters, ImbricateExecuteResult } from "../execute/definition";
|
|
10
10
|
import { IMBRICATE_SCRIPT_CAPABILITY_KEY, ImbricateScriptAttributes, ImbricateScriptCapability, ImbricateScriptHistoryRecord } from "./definition";
|
|
11
11
|
import type { IImbricateScript } from "./interface";
|
|
12
12
|
export declare abstract class ImbricateScriptBase implements IImbricateScript {
|
|
@@ -15,6 +15,7 @@ export declare abstract class ImbricateScriptBase implements IImbricateScript {
|
|
|
15
15
|
static allDenyCapability(): ImbricateScriptCapability;
|
|
16
16
|
abstract readonly scriptName: string;
|
|
17
17
|
abstract readonly identifier: string;
|
|
18
|
+
abstract readonly variant: IMBRICATE_EXECUTABLE_VARIANT;
|
|
18
19
|
abstract readonly digest: string;
|
|
19
20
|
abstract readonly historyRecords: ImbricateScriptHistoryRecord[];
|
|
20
21
|
abstract readonly description?: string;
|
package/script/interface.d.ts
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
* @description Interface
|
|
5
5
|
*/
|
|
6
6
|
import { PromiseOr } from "../definition/promise";
|
|
7
|
+
import { IMBRICATE_EXECUTABLE_VARIANT, ImbricateExecuteEnvironment, ImbricateExecuteParameters, ImbricateExecuteResult } from "../execute/definition";
|
|
7
8
|
import { ImbricateScriptAttributes, ImbricateScriptCapability, ImbricateScriptHistoryRecord } from "./definition";
|
|
8
|
-
import { ImbricateExecuteEnvironment, ImbricateExecuteParameters, ImbricateExecuteResult } from "../execute/definition";
|
|
9
9
|
export interface IImbricateScript {
|
|
10
10
|
readonly scriptName: string;
|
|
11
11
|
readonly identifier: string;
|
|
12
|
+
readonly variant: IMBRICATE_EXECUTABLE_VARIANT;
|
|
12
13
|
readonly digest: string;
|
|
13
14
|
readonly historyRecords: ImbricateScriptHistoryRecord[];
|
|
14
15
|
readonly description?: string;
|
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>;
|