@imbricate/core 2.6.2 → 3.0.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/author/definition.d.ts +1 -4
- package/database/definition.d.ts +15 -0
- package/{definition/promise.js → database/definition.js} +2 -2
- package/database/interface.d.ts +41 -0
- package/{function → database}/interface.js +1 -1
- package/database/manager.d.ts +26 -0
- package/database/manager.js +7 -0
- package/database/schema.d.ts +14 -0
- package/database/schema.js +7 -0
- package/document/definition.d.ts +30 -0
- package/document/definition.js +17 -0
- package/document/interface.d.ts +49 -0
- package/{trash → document}/interface.js +1 -1
- package/index.d.ts +13 -53
- package/index.js +13 -53
- package/loader/definition.d.ts +8 -0
- package/{query → loader}/definition.js +1 -1
- package/loader/origin-loader.d.ts +8 -0
- package/loader/origin-loader.js +66 -0
- package/loader/persistance.d.ts +19 -0
- package/loader/persistance.js +13 -0
- package/origin/definition.d.ts +1 -19
- package/origin/definition.js +0 -24
- package/origin/interface.d.ts +18 -43
- package/package.json +1 -1
- package/static/interface.d.ts +17 -0
- package/{script → static}/interface.js +1 -1
- package/static/manager.d.ts +26 -0
- package/{query/script.js → static/manager.js} +2 -2
- package/text/interface.d.ts +17 -0
- package/{page → text}/interface.js +1 -1
- package/text/manager.d.ts +26 -0
- package/{query/page.js → text/manager.js} +2 -2
- package/binary-storage/base.d.ts +0 -18
- package/binary-storage/base.js +0 -30
- package/binary-storage/definition.d.ts +0 -11
- package/binary-storage/definition.js +0 -15
- package/binary-storage/interface.d.ts +0 -26
- package/binary-storage/interface.js +0 -7
- package/capability/builder.d.ts +0 -15
- package/capability/builder.js +0 -37
- package/capability/create.d.ts +0 -7
- package/capability/create.js +0 -16
- package/capability/definition.d.ts +0 -16
- package/capability/definition.js +0 -25
- package/capability/validate.d.ts +0 -19
- package/capability/validate.js +0 -36
- package/collection/base.d.ts +0 -36
- package/collection/base.js +0 -60
- package/collection/definition.d.ts +0 -18
- package/collection/definition.js +0 -29
- package/collection/interface.d.ts +0 -43
- package/collection/interface.js +0 -7
- package/collection/least-common-identifier.d.ts +0 -10
- package/collection/least-common-identifier.js +0 -54
- package/collection-manager/base.d.ts +0 -26
- package/collection-manager/base.js +0 -59
- package/collection-manager/definition.d.ts +0 -15
- package/collection-manager/definition.js +0 -23
- package/collection-manager/interface.d.ts +0 -38
- package/collection-manager/interface.js +0 -7
- package/collection-operation-manager/base.d.ts +0 -18
- package/collection-operation-manager/base.js +0 -43
- package/collection-operation-manager/definition.d.ts +0 -12
- package/collection-operation-manager/definition.js +0 -17
- package/collection-operation-manager/interface.d.ts +0 -34
- package/collection-operation-manager/interface.js +0 -7
- package/definition/listable.d.ts +0 -6
- package/definition/listable.js +0 -7
- package/definition/promise.d.ts +0 -6
- package/error/imbricate-error.d.ts +0 -15
- package/error/imbricate-error.js +0 -30
- package/error/not-implemented.d.ts +0 -10
- package/error/not-implemented.js +0 -19
- package/executable-manager/base.d.ts +0 -21
- package/executable-manager/base.js +0 -44
- package/executable-manager/definition.d.ts +0 -12
- package/executable-manager/definition.js +0 -17
- package/executable-manager/interface.d.ts +0 -44
- package/executable-manager/interface.js +0 -7
- package/execute/definition.d.ts +0 -17
- package/execute/definition.js +0 -16
- package/function/base.d.ts +0 -19
- package/function/base.js +0 -30
- package/function/definition.d.ts +0 -18
- package/function/definition.js +0 -15
- package/function/interface.d.ts +0 -26
- package/operation/definition.d.ts +0 -28
- package/operation/definition.js +0 -14
- package/origin/base.d.ts +0 -29
- package/origin/base.js +0 -39
- package/origin-operation-manager/base.d.ts +0 -18
- package/origin-operation-manager/base.js +0 -43
- package/origin-operation-manager/definition.d.ts +0 -12
- package/origin-operation-manager/definition.js +0 -17
- package/origin-operation-manager/interface.d.ts +0 -34
- package/origin-operation-manager/interface.js +0 -7
- package/page/base.d.ts +0 -35
- package/page/base.js +0 -48
- package/page/definition.d.ts +0 -41
- package/page/definition.js +0 -25
- package/page/interface.d.ts +0 -55
- package/page-variant/definition.d.ts +0 -16
- package/page-variant/definition.js +0 -33
- package/page-variant/extension.d.ts +0 -7
- package/page-variant/extension.js +0 -24
- package/query/definition.d.ts +0 -14
- package/query/page.d.ts +0 -21
- package/query/script.d.ts +0 -21
- package/script/base.d.ts +0 -34
- package/script/base.js +0 -48
- package/script/definition.d.ts +0 -41
- package/script/definition.js +0 -27
- package/script/interface.d.ts +0 -54
- package/script-manager/base.d.ts +0 -31
- package/script-manager/base.js +0 -54
- package/script-manager/definition.d.ts +0 -18
- package/script-manager/definition.js +0 -29
- package/script-manager/interface.d.ts +0 -47
- package/script-manager/interface.js +0 -7
- package/script-variant/definition.d.ts +0 -22
- package/script-variant/definition.js +0 -39
- package/script-variant/extension.d.ts +0 -7
- package/script-variant/extension.js +0 -23
- package/search/prefix.d.ts +0 -7
- package/search/prefix.js +0 -37
- package/search/snippet.d.ts +0 -38
- package/search/snippet.js +0 -23
- package/trash/base.d.ts +0 -20
- package/trash/base.js +0 -36
- package/trash/definition.d.ts +0 -25
- package/trash/definition.js +0 -21
- package/trash/interface.d.ts +0 -17
package/collection/definition.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Collection
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateCollectionCapabilityList = exports.IMBRICATE_COLLECTION_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_COLLECTION_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_COLLECTION_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["CREATE_PAGE"] = "imbricate.collection.page.create";
|
|
12
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["PUT_PAGE"] = "imbricate.collection.page.put";
|
|
13
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["RETITLE_PAGE"] = "imbricate.collection.page.retitle";
|
|
14
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["DELETE_PAGE"] = "imbricate.collection.page.delete";
|
|
15
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["GET_PAGE"] = "imbricate.collection.page.get";
|
|
16
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["LIST_PAGES"] = "imbricate.collection.page.list";
|
|
17
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["LIST_SUPPORTED_VARIANTS"] = "imbricate.collection.page.list-supported-variants";
|
|
18
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY["COLLECTION_OPERATION_MANAGER"] = "imbricate.collection.operation-manager";
|
|
19
|
-
})(IMBRICATE_COLLECTION_CAPABILITY_KEY || (exports.IMBRICATE_COLLECTION_CAPABILITY_KEY = IMBRICATE_COLLECTION_CAPABILITY_KEY = {}));
|
|
20
|
-
exports.ImbricateCollectionCapabilityList = [
|
|
21
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.CREATE_PAGE,
|
|
22
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.PUT_PAGE,
|
|
23
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.RETITLE_PAGE,
|
|
24
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.DELETE_PAGE,
|
|
25
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.GET_PAGE,
|
|
26
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.LIST_PAGES,
|
|
27
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.LIST_SUPPORTED_VARIANTS,
|
|
28
|
-
IMBRICATE_COLLECTION_CAPABILITY_KEY.COLLECTION_OPERATION_MANAGER,
|
|
29
|
-
];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Collection
|
|
4
|
-
* @description Interface
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateAuthor } from "../author/definition";
|
|
7
|
-
import { IImbricateCollectionOperationManager } from "../collection-operation-manager/interface";
|
|
8
|
-
import type { PromiseOr } from "../definition/promise";
|
|
9
|
-
import { ImbricatePageVariant } from "../page-variant/definition";
|
|
10
|
-
import type { ImbricatePageMetadata, ImbricatePageSearchResult, ImbricatePageSnapshot } from "../page/definition";
|
|
11
|
-
import type { IImbricatePage } from "../page/interface";
|
|
12
|
-
import type { ImbricatePageQuery, ImbricatePageQueryConfig, ImbricateSearchPageConfig } from "../query/page";
|
|
13
|
-
import type { ImbricateCollectionCapability } from "./definition";
|
|
14
|
-
export interface IImbricateCollection {
|
|
15
|
-
readonly collectionName: string;
|
|
16
|
-
readonly uniqueIdentifier: string;
|
|
17
|
-
readonly description?: string;
|
|
18
|
-
readonly capabilities: ImbricateCollectionCapability;
|
|
19
|
-
/**
|
|
20
|
-
* Create a page
|
|
21
|
-
*
|
|
22
|
-
* @param directories Directories
|
|
23
|
-
* @param title Title
|
|
24
|
-
* @param variant Variant
|
|
25
|
-
* @param author Author
|
|
26
|
-
* @param initialContent Initial content
|
|
27
|
-
* @param description Description
|
|
28
|
-
*
|
|
29
|
-
* @returns Created page
|
|
30
|
-
*/
|
|
31
|
-
createPage(directories: string[], title: string, variant: ImbricatePageVariant, author: ImbricateAuthor, initialContent: string, description?: string): PromiseOr<IImbricatePage>;
|
|
32
|
-
putPage(pageMetadata: ImbricatePageMetadata, content: string): PromiseOr<IImbricatePage>;
|
|
33
|
-
retitlePage(identifier: string, newTitle: string): PromiseOr<void>;
|
|
34
|
-
deletePage(identifier: string): PromiseOr<void>;
|
|
35
|
-
hasPage(directories: string[], title: string): PromiseOr<boolean>;
|
|
36
|
-
getPage(identifier: string): PromiseOr<IImbricatePage | null>;
|
|
37
|
-
listPages(directories: string[], recursive: boolean): PromiseOr<ImbricatePageSnapshot[]>;
|
|
38
|
-
listDirectories(directories: string[]): PromiseOr<string[]>;
|
|
39
|
-
searchPages(keyword: string, config: ImbricateSearchPageConfig): PromiseOr<ImbricatePageSearchResult[]>;
|
|
40
|
-
queryPages(query: ImbricatePageQuery, config: ImbricatePageQueryConfig): PromiseOr<IImbricatePage[]>;
|
|
41
|
-
listSupportedVariants(): PromiseOr<ImbricatePageVariant[]>;
|
|
42
|
-
getOperationManager(): IImbricateCollectionOperationManager;
|
|
43
|
-
}
|
package/collection/interface.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Collection
|
|
4
|
-
* @description Least Common Identifier
|
|
5
|
-
*/
|
|
6
|
-
export type LeastCommonIdentifierItem = {
|
|
7
|
-
readonly key: string;
|
|
8
|
-
readonly identifier: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const mapLeastCommonIdentifier: (identifiers: LeastCommonIdentifierItem[]) => Record<string, string>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Collection
|
|
5
|
-
* @description Least Common Identifier
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.mapLeastCommonIdentifier = void 0;
|
|
9
|
-
class TrieNode {
|
|
10
|
-
static create() {
|
|
11
|
-
return new TrieNode();
|
|
12
|
-
}
|
|
13
|
-
constructor() {
|
|
14
|
-
this._items = [];
|
|
15
|
-
this._children = {};
|
|
16
|
-
}
|
|
17
|
-
get items() {
|
|
18
|
-
return this._items;
|
|
19
|
-
}
|
|
20
|
-
getChild(key) {
|
|
21
|
-
if (!this._children[key]) {
|
|
22
|
-
this._children[key] = TrieNode.create();
|
|
23
|
-
}
|
|
24
|
-
return this._children[key];
|
|
25
|
-
}
|
|
26
|
-
pushItem(item) {
|
|
27
|
-
this._items.push(item);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const mapLeastCommonIdentifier = (identifiers) => {
|
|
31
|
-
const root = TrieNode.create();
|
|
32
|
-
for (const identifier of identifiers) {
|
|
33
|
-
let current = root;
|
|
34
|
-
for (const char of identifier.identifier) {
|
|
35
|
-
current.pushItem(identifier.key);
|
|
36
|
-
current = current.getChild(char);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const result = {};
|
|
40
|
-
for (const identifier of identifiers) {
|
|
41
|
-
let current = root;
|
|
42
|
-
let currentIdentifier = "";
|
|
43
|
-
for (const char of identifier.identifier) {
|
|
44
|
-
current = current.getChild(char);
|
|
45
|
-
currentIdentifier += char;
|
|
46
|
-
if (current.items.length === 1) {
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
result[identifier.key] = currentIdentifier;
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
};
|
|
54
|
-
exports.mapLeastCommonIdentifier = mapLeastCommonIdentifier;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace CollectionManager
|
|
4
|
-
* @description Base
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
7
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
8
|
-
import { IImbricateCollection } from "../collection/interface";
|
|
9
|
-
import type { PromiseOr } from "../definition/promise";
|
|
10
|
-
import { ImbricatePageVariant } from "../page-variant/definition";
|
|
11
|
-
import { IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY, ImbricateCollectionManagerCapability } from "./definition";
|
|
12
|
-
import { IImbricateCollectionManager } from "./interface";
|
|
13
|
-
export declare abstract class ImbricateCollectionManagerBase implements IImbricateCollectionManager {
|
|
14
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY>;
|
|
15
|
-
static allAllowCapability(): ImbricateCollectionManagerCapability;
|
|
16
|
-
static allDenyCapability(): ImbricateCollectionManagerCapability;
|
|
17
|
-
abstract readonly capabilities: ImbricateCollectionManagerCapability;
|
|
18
|
-
findSupportedVariants(_variant?: Partial<ImbricatePageVariant>): Promise<ImbricatePageVariant[]>;
|
|
19
|
-
createCollection(_collectionName: string, _description?: string): PromiseOr<IImbricateCollection>;
|
|
20
|
-
renameCollection(_collectionUniqueIdentifier: string, _newCollectionName: string): PromiseOr<void>;
|
|
21
|
-
deleteCollection(_collectionUniqueIdentifier: string): PromiseOr<void>;
|
|
22
|
-
hasCollection(_collectionName: string): PromiseOr<boolean>;
|
|
23
|
-
findCollection(_collectionName: string): PromiseOr<IImbricateCollection | null>;
|
|
24
|
-
getCollection(_collectionUniqueIdentifier: string): PromiseOr<IImbricateCollection | null>;
|
|
25
|
-
listCollections(): PromiseOr<IImbricateCollection[]>;
|
|
26
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace CollectionManager
|
|
5
|
-
* @description Base
|
|
6
|
-
*/
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ImbricateCollectionManagerBase = void 0;
|
|
18
|
-
const builder_1 = require("../capability/builder");
|
|
19
|
-
const definition_1 = require("../capability/definition");
|
|
20
|
-
const not_implemented_1 = require("../error/not-implemented");
|
|
21
|
-
const definition_2 = require("./definition");
|
|
22
|
-
class ImbricateCollectionManagerBase {
|
|
23
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
24
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricateCollectionManagerCapabilityList, initial);
|
|
25
|
-
}
|
|
26
|
-
static allAllowCapability() {
|
|
27
|
-
return this.buildCapability((0, definition_1.createAllowImbricateCapability)()).build();
|
|
28
|
-
}
|
|
29
|
-
static allDenyCapability() {
|
|
30
|
-
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
31
|
-
}
|
|
32
|
-
findSupportedVariants(_variant) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
return [];
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
createCollection(_collectionName, _description) {
|
|
38
|
-
throw not_implemented_1.ImbricateNotImplemented.create("CreateCollection", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.CREATE_COLLECTION);
|
|
39
|
-
}
|
|
40
|
-
renameCollection(_collectionUniqueIdentifier, _newCollectionName) {
|
|
41
|
-
throw not_implemented_1.ImbricateNotImplemented.create("RenameCollection", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.RENAME_COLLECTION);
|
|
42
|
-
}
|
|
43
|
-
deleteCollection(_collectionUniqueIdentifier) {
|
|
44
|
-
throw not_implemented_1.ImbricateNotImplemented.create("DeleteCollection", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.DELETE_COLLECTION);
|
|
45
|
-
}
|
|
46
|
-
hasCollection(_collectionName) {
|
|
47
|
-
throw not_implemented_1.ImbricateNotImplemented.create("HasCollection", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.LIST_COLLECTIONS);
|
|
48
|
-
}
|
|
49
|
-
findCollection(_collectionName) {
|
|
50
|
-
throw not_implemented_1.ImbricateNotImplemented.create("FindCollection", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.LIST_COLLECTIONS);
|
|
51
|
-
}
|
|
52
|
-
getCollection(_collectionUniqueIdentifier) {
|
|
53
|
-
throw not_implemented_1.ImbricateNotImplemented.create("GetCollection", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.GET_COLLECTION);
|
|
54
|
-
}
|
|
55
|
-
listCollections() {
|
|
56
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ListCollections", definition_2.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.LIST_COLLECTIONS);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ImbricateCollectionManagerBase = ImbricateCollectionManagerBase;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace CollectionManager
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
7
|
-
export type ImbricateCollectionManagerCapability = Record<IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY, ImbricateCapability>;
|
|
8
|
-
export declare enum IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY {
|
|
9
|
-
CREATE_COLLECTION = "imbricate.collection-manager.create",
|
|
10
|
-
RENAME_COLLECTION = "imbricate.collection-manager.rename",
|
|
11
|
-
DELETE_COLLECTION = "imbricate.collection-manager.delete",
|
|
12
|
-
GET_COLLECTION = "imbricate.collection-manager.get",
|
|
13
|
-
LIST_COLLECTIONS = "imbricate.collection-manager.list"
|
|
14
|
-
}
|
|
15
|
-
export declare const ImbricateCollectionManagerCapabilityList: IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY[];
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace CollectionManager
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateCollectionManagerCapabilityList = exports.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY["CREATE_COLLECTION"] = "imbricate.collection-manager.create";
|
|
12
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY["RENAME_COLLECTION"] = "imbricate.collection-manager.rename";
|
|
13
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY["DELETE_COLLECTION"] = "imbricate.collection-manager.delete";
|
|
14
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY["GET_COLLECTION"] = "imbricate.collection-manager.get";
|
|
15
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY["LIST_COLLECTIONS"] = "imbricate.collection-manager.list";
|
|
16
|
-
})(IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY || (exports.IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY = IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY = {}));
|
|
17
|
-
exports.ImbricateCollectionManagerCapabilityList = [
|
|
18
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.CREATE_COLLECTION,
|
|
19
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.RENAME_COLLECTION,
|
|
20
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.DELETE_COLLECTION,
|
|
21
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.GET_COLLECTION,
|
|
22
|
-
IMBRICATE_COLLECTION_MANAGER_CAPABILITY_KEY.LIST_COLLECTIONS,
|
|
23
|
-
];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace CollectionManager
|
|
4
|
-
* @description Interface
|
|
5
|
-
*/
|
|
6
|
-
import { IImbricateCollection } from "../collection/interface";
|
|
7
|
-
import { PromiseOr } from "../definition/promise";
|
|
8
|
-
import { ImbricatePageVariant } from "../page-variant/definition";
|
|
9
|
-
import { ImbricateCollectionManagerCapability } from "./definition";
|
|
10
|
-
export interface IImbricateCollectionManager {
|
|
11
|
-
/**
|
|
12
|
-
* Capabilities of the collection manager
|
|
13
|
-
*/
|
|
14
|
-
readonly capabilities: ImbricateCollectionManagerCapability;
|
|
15
|
-
/**
|
|
16
|
-
* Find supported variants
|
|
17
|
-
*
|
|
18
|
-
* @param variant the partial variant to find, if not provided, find all
|
|
19
|
-
*
|
|
20
|
-
* @returns supported variants
|
|
21
|
-
*/
|
|
22
|
-
findSupportedVariants(variant?: Partial<ImbricatePageVariant>): PromiseOr<ImbricatePageVariant[]>;
|
|
23
|
-
/**
|
|
24
|
-
* Create a collection
|
|
25
|
-
*
|
|
26
|
-
* @param collectionName Collection name
|
|
27
|
-
* @param description Collection description
|
|
28
|
-
*
|
|
29
|
-
* @returns Created collection
|
|
30
|
-
*/
|
|
31
|
-
createCollection(collectionName: string, description?: string): PromiseOr<IImbricateCollection>;
|
|
32
|
-
renameCollection(collectionUniqueIdentifier: string, newCollectionName: string): PromiseOr<void>;
|
|
33
|
-
deleteCollection(collectionUniqueIdentifier: string): PromiseOr<void>;
|
|
34
|
-
hasCollection(collectionName: string): PromiseOr<boolean>;
|
|
35
|
-
findCollection(collectionName: string): PromiseOr<IImbricateCollection | null>;
|
|
36
|
-
getCollection(collectionUniqueIdentifier: string): PromiseOr<IImbricateCollection | null>;
|
|
37
|
-
listCollections(): PromiseOr<IImbricateCollection[]>;
|
|
38
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace CollectionOperationManager
|
|
4
|
-
* @description Base
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
7
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
8
|
-
import { IMBRICATE_OPERATION_SCOPE, ImbricateOperation } from "../operation/definition";
|
|
9
|
-
import { IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY, ImbricateCollectionOperationManagerCapability } from "./definition";
|
|
10
|
-
import { IImbricateCollectionOperationManager } from "./interface";
|
|
11
|
-
export declare abstract class ImbricateCollectionOperationManagerBase implements IImbricateCollectionOperationManager {
|
|
12
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY>;
|
|
13
|
-
static allAllowCapability(): ImbricateCollectionOperationManagerCapability;
|
|
14
|
-
static allDenyCapability(): ImbricateCollectionOperationManagerCapability;
|
|
15
|
-
abstract readonly capabilities: ImbricateCollectionOperationManagerCapability;
|
|
16
|
-
listOperations(_scope?: IMBRICATE_OPERATION_SCOPE): Promise<Array<ImbricateOperation<IMBRICATE_OPERATION_SCOPE>>>;
|
|
17
|
-
executeOperation(_operationIdentifier: string, _parameter: unknown): Promise<void>;
|
|
18
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace CollectionOperationManager
|
|
5
|
-
* @description Base
|
|
6
|
-
*/
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ImbricateCollectionOperationManagerBase = void 0;
|
|
18
|
-
const builder_1 = require("../capability/builder");
|
|
19
|
-
const definition_1 = require("../capability/definition");
|
|
20
|
-
const not_implemented_1 = require("../error/not-implemented");
|
|
21
|
-
const definition_2 = require("./definition");
|
|
22
|
-
class ImbricateCollectionOperationManagerBase {
|
|
23
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
24
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricateCollectionOperationManagerCapabilityList, initial);
|
|
25
|
-
}
|
|
26
|
-
static allAllowCapability() {
|
|
27
|
-
return this.buildCapability((0, definition_1.createAllowImbricateCapability)()).build();
|
|
28
|
-
}
|
|
29
|
-
static allDenyCapability() {
|
|
30
|
-
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
31
|
-
}
|
|
32
|
-
listOperations(_scope) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ListOperations", definition_2.IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY.LIST_OPERATIONS);
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
executeOperation(_operationIdentifier, _parameter) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ExecuteOperation", definition_2.IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY.EXECUTE_OPERATION);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ImbricateCollectionOperationManagerBase = ImbricateCollectionOperationManagerBase;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace CollectionOperationManager
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
7
|
-
export type ImbricateCollectionOperationManagerCapability = Record<IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY, ImbricateCapability>;
|
|
8
|
-
export declare enum IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY {
|
|
9
|
-
LIST_OPERATIONS = "imbricate.collection-operation.list",
|
|
10
|
-
EXECUTE_OPERATION = "imbricate.collection-operation.execute"
|
|
11
|
-
}
|
|
12
|
-
export declare const ImbricateCollectionOperationManagerCapabilityList: IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace CollectionOperationManager
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateCollectionOperationManagerCapabilityList = exports.IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY["LIST_OPERATIONS"] = "imbricate.collection-operation.list";
|
|
12
|
-
IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY["EXECUTE_OPERATION"] = "imbricate.collection-operation.execute";
|
|
13
|
-
})(IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY || (exports.IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY = IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY = {}));
|
|
14
|
-
exports.ImbricateCollectionOperationManagerCapabilityList = [
|
|
15
|
-
IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY.LIST_OPERATIONS,
|
|
16
|
-
IMBRICATE_COLLECTION_OPERATION_MANAGER_CAPABILITY_KEY.EXECUTE_OPERATION,
|
|
17
|
-
];
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace CollectionOperationManager
|
|
4
|
-
* @description Interface
|
|
5
|
-
*/
|
|
6
|
-
import { PromiseOr } from "../definition/promise";
|
|
7
|
-
import { IMBRICATE_OPERATION_SCOPE, ImbricateOperation, ImbricateOperationParameter } from "../operation/definition";
|
|
8
|
-
import { ImbricateCollectionOperationManagerCapability } from "./definition";
|
|
9
|
-
export interface IImbricateCollectionOperationManager {
|
|
10
|
-
/**
|
|
11
|
-
* Capabilities of the origin operation manager
|
|
12
|
-
*/
|
|
13
|
-
readonly capabilities: ImbricateCollectionOperationManagerCapability;
|
|
14
|
-
/**
|
|
15
|
-
* List all operations
|
|
16
|
-
*
|
|
17
|
-
* @returns all operations
|
|
18
|
-
*/
|
|
19
|
-
listOperations(): PromiseOr<Array<ImbricateOperation<IMBRICATE_OPERATION_SCOPE>>>;
|
|
20
|
-
/**
|
|
21
|
-
* List operations by scope
|
|
22
|
-
*
|
|
23
|
-
* @param scope the scope of the operation
|
|
24
|
-
* @returns all operations
|
|
25
|
-
*/
|
|
26
|
-
listOperations<T extends IMBRICATE_OPERATION_SCOPE>(scope: IMBRICATE_OPERATION_SCOPE): PromiseOr<Array<ImbricateOperation<T>>>;
|
|
27
|
-
/**
|
|
28
|
-
* Execute operation by identifier
|
|
29
|
-
*
|
|
30
|
-
* @param operationIdentifier the identifier of the operation
|
|
31
|
-
* @param parameter the parameter of the operation
|
|
32
|
-
*/
|
|
33
|
-
executeOperation<T extends IMBRICATE_OPERATION_SCOPE>(operationIdentifier: string, parameter: ImbricateOperationParameter<T>): PromiseOr<void>;
|
|
34
|
-
}
|
package/definition/listable.d.ts
DELETED
package/definition/listable.js
DELETED
package/definition/promise.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Error
|
|
4
|
-
* @description Imbricate
|
|
5
|
-
*/
|
|
6
|
-
export declare class ImbricateError extends Error {
|
|
7
|
-
private readonly _type;
|
|
8
|
-
private readonly _message;
|
|
9
|
-
private readonly _reason;
|
|
10
|
-
protected constructor(message: string, type: string, reason?: any);
|
|
11
|
-
get type(): string;
|
|
12
|
-
get message(): string;
|
|
13
|
-
get reason(): any | undefined;
|
|
14
|
-
toString(): string;
|
|
15
|
-
}
|
package/error/imbricate-error.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Error
|
|
5
|
-
* @description Imbricate
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateError = void 0;
|
|
9
|
-
class ImbricateError extends Error {
|
|
10
|
-
constructor(message, type, reason) {
|
|
11
|
-
super(message);
|
|
12
|
-
this._type = type;
|
|
13
|
-
this._message = message;
|
|
14
|
-
this._reason = reason;
|
|
15
|
-
Object.setPrototypeOf(this, ImbricateError.prototype);
|
|
16
|
-
}
|
|
17
|
-
get type() {
|
|
18
|
-
return this._type;
|
|
19
|
-
}
|
|
20
|
-
get message() {
|
|
21
|
-
return this._message;
|
|
22
|
-
}
|
|
23
|
-
get reason() {
|
|
24
|
-
return this._reason;
|
|
25
|
-
}
|
|
26
|
-
toString() {
|
|
27
|
-
return `[${this._type}] ${this.message}`;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.ImbricateError = ImbricateError;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Error
|
|
4
|
-
* @description Not Implemented
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateError } from "./imbricate-error";
|
|
7
|
-
export declare class ImbricateNotImplemented extends ImbricateError {
|
|
8
|
-
static create(feature: string, capabilityIdentifier: string): ImbricateNotImplemented;
|
|
9
|
-
protected constructor(message: string, reason?: any);
|
|
10
|
-
}
|
package/error/not-implemented.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Error
|
|
5
|
-
* @description Not Implemented
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateNotImplemented = void 0;
|
|
9
|
-
const imbricate_error_1 = require("./imbricate-error");
|
|
10
|
-
class ImbricateNotImplemented extends imbricate_error_1.ImbricateError {
|
|
11
|
-
static create(feature, capabilityIdentifier) {
|
|
12
|
-
return new ImbricateNotImplemented(`Feature: [${feature}], which correspond with capability: [${capabilityIdentifier}] is not Implemented`);
|
|
13
|
-
}
|
|
14
|
-
constructor(message, reason) {
|
|
15
|
-
super(message, "ImbricateNotImplemented", reason);
|
|
16
|
-
Object.setPrototypeOf(this, ImbricateNotImplemented.prototype);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.ImbricateNotImplemented = ImbricateNotImplemented;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace ExecutableManager
|
|
4
|
-
* @description Base
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
7
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
8
|
-
import { ImbricateExecuteEnvironment, ImbricateExecuteParameters, ImbricateExecuteResult } from "../execute/definition";
|
|
9
|
-
import { ImbricateScriptVariant } from "../script-variant/definition";
|
|
10
|
-
import { IImbricateScript } from "../script/interface";
|
|
11
|
-
import { IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY, ImbricateExecutableManagerCapability } from "./definition";
|
|
12
|
-
import { IImbricateExecutableManager } from "./interface";
|
|
13
|
-
export declare abstract class ImbricateExecutableManagerBase implements IImbricateExecutableManager {
|
|
14
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY>;
|
|
15
|
-
static allAllowCapability(): ImbricateExecutableManagerCapability;
|
|
16
|
-
static allDenyCapability(): ImbricateExecutableManagerCapability;
|
|
17
|
-
abstract readonly capabilities: ImbricateExecutableManagerCapability;
|
|
18
|
-
findSupportedVariants(_variant?: Partial<ImbricateScriptVariant>): Promise<ImbricateScriptVariant[]>;
|
|
19
|
-
executeScript(_script: IImbricateScript, _parameters: ImbricateExecuteParameters, _environment: ImbricateExecuteEnvironment): Promise<ImbricateExecuteResult>;
|
|
20
|
-
executeSnippet(_snippet: string, _variant: ImbricateScriptVariant, _parameters: ImbricateExecuteParameters, _environment: ImbricateExecuteEnvironment): Promise<ImbricateExecuteResult>;
|
|
21
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace ExecutableManager
|
|
5
|
-
* @description Base
|
|
6
|
-
*/
|
|
7
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ImbricateExecutableManagerBase = void 0;
|
|
18
|
-
const builder_1 = require("../capability/builder");
|
|
19
|
-
const definition_1 = require("../capability/definition");
|
|
20
|
-
const not_implemented_1 = require("../error/not-implemented");
|
|
21
|
-
const definition_2 = require("./definition");
|
|
22
|
-
class ImbricateExecutableManagerBase {
|
|
23
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
24
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricateExecutableManagerCapabilityList, initial);
|
|
25
|
-
}
|
|
26
|
-
static allAllowCapability() {
|
|
27
|
-
return this.buildCapability((0, definition_1.createAllowImbricateCapability)()).build();
|
|
28
|
-
}
|
|
29
|
-
static allDenyCapability() {
|
|
30
|
-
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
31
|
-
}
|
|
32
|
-
findSupportedVariants(_variant) {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
return [];
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
executeScript(_script, _parameters, _environment) {
|
|
38
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ExecuteScript", definition_2.IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY.EXECUTE_SCRIPT);
|
|
39
|
-
}
|
|
40
|
-
executeSnippet(_snippet, _variant, _parameters, _environment) {
|
|
41
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ExecuteSnippet", definition_2.IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY.EXECUTE_SNIPPET);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.ImbricateExecutableManagerBase = ImbricateExecutableManagerBase;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace ExecutableManager
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
7
|
-
export type ImbricateExecutableManagerCapability = Record<IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY, ImbricateCapability>;
|
|
8
|
-
export declare enum IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY {
|
|
9
|
-
EXECUTE_SCRIPT = "imbricate.executable-manager.execute-script",
|
|
10
|
-
EXECUTE_SNIPPET = "imbricate.executable-manager.execute-snippet"
|
|
11
|
-
}
|
|
12
|
-
export declare const ImbricateExecutableManagerCapabilityList: IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY[];
|