@imbricate/core 2.6.2 → 3.0.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/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 +34 -0
- package/database/manager.js +7 -0
- package/database/schema.d.ts +37 -0
- package/database/schema.js +56 -0
- package/document/definition.d.ts +18 -0
- package/{definition/listable.js → document/definition.js} +2 -2
- package/document/interface.d.ts +50 -0
- package/{trash → document}/interface.js +1 -1
- package/document/property.d.ts +18 -0
- package/document/property.js +17 -0
- package/document/validate.d.ts +17 -0
- package/document/validate.js +55 -0
- package/index.d.ts +15 -53
- package/index.js +15 -53
- package/loader/definition.d.ts +8 -0
- package/{query → loader}/definition.js +1 -1
- package/loader/origin-loader.d.ts +9 -0
- package/loader/origin-loader.js +74 -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/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
|
@@ -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[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace ExecutableManager
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateExecutableManagerCapabilityList = exports.IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY["EXECUTE_SCRIPT"] = "imbricate.executable-manager.execute-script";
|
|
12
|
-
IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY["EXECUTE_SNIPPET"] = "imbricate.executable-manager.execute-snippet";
|
|
13
|
-
})(IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY || (exports.IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY = IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY = {}));
|
|
14
|
-
exports.ImbricateExecutableManagerCapabilityList = [
|
|
15
|
-
IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY.EXECUTE_SCRIPT,
|
|
16
|
-
IMBRICATE_EXECUTABLE_MANAGER_CAPABILITY_KEY.EXECUTE_SNIPPET,
|
|
17
|
-
];
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace ExecutableManager
|
|
4
|
-
* @description Interface
|
|
5
|
-
*/
|
|
6
|
-
import { PromiseOr } from "../definition/promise";
|
|
7
|
-
import { ImbricateExecuteEnvironment, ImbricateExecuteParameters, ImbricateExecuteResult } from "../execute/definition";
|
|
8
|
-
import { ImbricateScriptVariant } from "../script-variant/definition";
|
|
9
|
-
import { IImbricateScript } from "../script/interface";
|
|
10
|
-
import { ImbricateExecutableManagerCapability } from "./definition";
|
|
11
|
-
export interface IImbricateExecutableManager {
|
|
12
|
-
/**
|
|
13
|
-
* Capabilities of the executable manager
|
|
14
|
-
*/
|
|
15
|
-
readonly capabilities: ImbricateExecutableManagerCapability;
|
|
16
|
-
/**
|
|
17
|
-
* Find supported variants
|
|
18
|
-
*
|
|
19
|
-
* @param variant the partial variant to find, if not provided, find all
|
|
20
|
-
*
|
|
21
|
-
* @returns supported variants
|
|
22
|
-
*/
|
|
23
|
-
findSupportedVariants(variant?: Partial<ImbricateScriptVariant>): PromiseOr<ImbricateScriptVariant[]>;
|
|
24
|
-
/**
|
|
25
|
-
* Execute a script
|
|
26
|
-
*
|
|
27
|
-
* @param script
|
|
28
|
-
* @param parameters
|
|
29
|
-
* @param environment
|
|
30
|
-
*
|
|
31
|
-
* @returns result of the execution
|
|
32
|
-
*/
|
|
33
|
-
executeScript(script: IImbricateScript, parameters: ImbricateExecuteParameters, environment: ImbricateExecuteEnvironment): PromiseOr<ImbricateExecuteResult>;
|
|
34
|
-
/**
|
|
35
|
-
* Execute a snippet
|
|
36
|
-
*
|
|
37
|
-
* @param snippet
|
|
38
|
-
* @param parameters
|
|
39
|
-
* @param environment
|
|
40
|
-
*
|
|
41
|
-
* @returns result of the execution
|
|
42
|
-
*/
|
|
43
|
-
executeSnippet(snippet: string, variant: ImbricateScriptVariant, parameters: ImbricateExecuteParameters, environment: ImbricateExecuteEnvironment): PromiseOr<ImbricateExecuteResult>;
|
|
44
|
-
}
|
package/execute/definition.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Execute
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
export declare enum IMBRICATE_EXECUTE_RESULT_CODE {
|
|
7
|
-
NOT_SUPPORT = "NOT_SUPPORT",
|
|
8
|
-
SUCCESS = "SUCCESS",
|
|
9
|
-
ERROR = "ERROR",
|
|
10
|
-
EXCEPTION = "EXCEPTION",
|
|
11
|
-
TIMEOUT = "TIMEOUT"
|
|
12
|
-
}
|
|
13
|
-
export type ImbricateExecuteResult = {
|
|
14
|
-
readonly code: IMBRICATE_EXECUTE_RESULT_CODE;
|
|
15
|
-
};
|
|
16
|
-
export type ImbricateExecuteParameters = Record<string, any>;
|
|
17
|
-
export type ImbricateExecuteEnvironment = Record<string, any>;
|
package/execute/definition.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Execute
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.IMBRICATE_EXECUTE_RESULT_CODE = void 0;
|
|
9
|
-
var IMBRICATE_EXECUTE_RESULT_CODE;
|
|
10
|
-
(function (IMBRICATE_EXECUTE_RESULT_CODE) {
|
|
11
|
-
IMBRICATE_EXECUTE_RESULT_CODE["NOT_SUPPORT"] = "NOT_SUPPORT";
|
|
12
|
-
IMBRICATE_EXECUTE_RESULT_CODE["SUCCESS"] = "SUCCESS";
|
|
13
|
-
IMBRICATE_EXECUTE_RESULT_CODE["ERROR"] = "ERROR";
|
|
14
|
-
IMBRICATE_EXECUTE_RESULT_CODE["EXCEPTION"] = "EXCEPTION";
|
|
15
|
-
IMBRICATE_EXECUTE_RESULT_CODE["TIMEOUT"] = "TIMEOUT";
|
|
16
|
-
})(IMBRICATE_EXECUTE_RESULT_CODE || (exports.IMBRICATE_EXECUTE_RESULT_CODE = IMBRICATE_EXECUTE_RESULT_CODE = {}));
|
package/function/base.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Function
|
|
4
|
-
* @description Base
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
7
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
8
|
-
import type { PromiseOr } from "../definition/promise";
|
|
9
|
-
import type { IImbricateOrigin } from "../origin/interface";
|
|
10
|
-
import { IMBRICATE_FUNCTION_CAPABILITY_KEY, ImbricateFunction, ImbricateFunctionCapability } from "./definition";
|
|
11
|
-
import type { IImbricateFunctionManager } from "./interface";
|
|
12
|
-
export declare abstract class ImbricateFunctionManagerBase implements IImbricateFunctionManager {
|
|
13
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_FUNCTION_CAPABILITY_KEY>;
|
|
14
|
-
static allAllowCapability(): ImbricateFunctionCapability;
|
|
15
|
-
static allDenyCapability(): ImbricateFunctionCapability;
|
|
16
|
-
abstract readonly capabilities: ImbricateFunctionCapability;
|
|
17
|
-
findSynchronousOriginFunctions(): Array<ImbricateFunction<IImbricateOrigin>>;
|
|
18
|
-
findAllOriginFunctions(): PromiseOr<Array<ImbricateFunction<IImbricateOrigin>>>;
|
|
19
|
-
}
|
package/function/base.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Function
|
|
5
|
-
* @description Base
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateFunctionManagerBase = void 0;
|
|
9
|
-
const builder_1 = require("../capability/builder");
|
|
10
|
-
const definition_1 = require("../capability/definition");
|
|
11
|
-
const not_implemented_1 = require("../error/not-implemented");
|
|
12
|
-
const definition_2 = require("./definition");
|
|
13
|
-
class ImbricateFunctionManagerBase {
|
|
14
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
15
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricateFunctionCapabilityList, initial);
|
|
16
|
-
}
|
|
17
|
-
static allAllowCapability() {
|
|
18
|
-
return this.buildCapability((0, definition_1.createAllowImbricateCapability)()).build();
|
|
19
|
-
}
|
|
20
|
-
static allDenyCapability() {
|
|
21
|
-
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
22
|
-
}
|
|
23
|
-
findSynchronousOriginFunctions() {
|
|
24
|
-
throw not_implemented_1.ImbricateNotImplemented.create("FindSynchronousOriginFunctions", definition_2.IMBRICATE_FUNCTION_CAPABILITY_KEY.FIND_ORIGIN_FUNCTIONS);
|
|
25
|
-
}
|
|
26
|
-
findAllOriginFunctions() {
|
|
27
|
-
throw not_implemented_1.ImbricateNotImplemented.create("FindAllOriginFunctions", definition_2.IMBRICATE_FUNCTION_CAPABILITY_KEY.FIND_ORIGIN_FUNCTIONS);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.ImbricateFunctionManagerBase = ImbricateFunctionManagerBase;
|
package/function/definition.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Function
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
7
|
-
import { PromiseOr } from "../definition/promise";
|
|
8
|
-
export type ImbricateFunction<Target> = {
|
|
9
|
-
readonly title: string;
|
|
10
|
-
readonly description?: string;
|
|
11
|
-
readonly execute: ImbricateFunctionExecute<Target>;
|
|
12
|
-
};
|
|
13
|
-
export type ImbricateFunctionExecute<Target> = (target: Target) => PromiseOr<void>;
|
|
14
|
-
export type ImbricateFunctionCapability = Record<IMBRICATE_FUNCTION_CAPABILITY_KEY, ImbricateCapability>;
|
|
15
|
-
export declare enum IMBRICATE_FUNCTION_CAPABILITY_KEY {
|
|
16
|
-
FIND_ORIGIN_FUNCTIONS = "imbricate.function.origin.find"
|
|
17
|
-
}
|
|
18
|
-
export declare const ImbricateFunctionCapabilityList: IMBRICATE_FUNCTION_CAPABILITY_KEY[];
|
package/function/definition.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Function
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateFunctionCapabilityList = exports.IMBRICATE_FUNCTION_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_FUNCTION_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_FUNCTION_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_FUNCTION_CAPABILITY_KEY["FIND_ORIGIN_FUNCTIONS"] = "imbricate.function.origin.find";
|
|
12
|
-
})(IMBRICATE_FUNCTION_CAPABILITY_KEY || (exports.IMBRICATE_FUNCTION_CAPABILITY_KEY = IMBRICATE_FUNCTION_CAPABILITY_KEY = {}));
|
|
13
|
-
exports.ImbricateFunctionCapabilityList = [
|
|
14
|
-
IMBRICATE_FUNCTION_CAPABILITY_KEY.FIND_ORIGIN_FUNCTIONS,
|
|
15
|
-
];
|
package/function/interface.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Function
|
|
4
|
-
* @description Interface
|
|
5
|
-
*/
|
|
6
|
-
import { PromiseOr } from "../definition/promise";
|
|
7
|
-
import { IImbricateOrigin } from "../origin/interface";
|
|
8
|
-
import { ImbricateFunction, ImbricateFunctionCapability } from "./definition";
|
|
9
|
-
export interface IImbricateFunctionManager {
|
|
10
|
-
/**
|
|
11
|
-
* Capabilities of the function manager
|
|
12
|
-
*/
|
|
13
|
-
readonly capabilities: ImbricateFunctionCapability;
|
|
14
|
-
/**
|
|
15
|
-
* Find all synchronous origin functions
|
|
16
|
-
*
|
|
17
|
-
* @returns an array of synchronous origin functions
|
|
18
|
-
*/
|
|
19
|
-
findSynchronousOriginFunctions(): Array<ImbricateFunction<IImbricateOrigin>>;
|
|
20
|
-
/**
|
|
21
|
-
* Find all origin functions, including asynchronous functions and synchronous functions
|
|
22
|
-
*
|
|
23
|
-
* @returns a promise of an array of origin functions
|
|
24
|
-
*/
|
|
25
|
-
findAllOriginFunctions(): PromiseOr<Array<ImbricateFunction<IImbricateOrigin>>>;
|
|
26
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Operation
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { PromiseOr } from "../definition/promise";
|
|
7
|
-
export declare enum IMBRICATE_OPERATION_SCOPE {
|
|
8
|
-
ORIGIN = "imbricate.origin",
|
|
9
|
-
COLLECTION = "imbricate.collection",
|
|
10
|
-
PAGE = "imbricate.page"
|
|
11
|
-
}
|
|
12
|
-
export type ImbricateOperation<T extends IMBRICATE_OPERATION_SCOPE> = {
|
|
13
|
-
readonly operationIdentifier: string;
|
|
14
|
-
readonly operationDisplayName?: string;
|
|
15
|
-
readonly operationDescription?: string;
|
|
16
|
-
readonly scope: T;
|
|
17
|
-
readonly operation: (parameter: ImbricateOperationParameter<T>) => PromiseOr<void>;
|
|
18
|
-
};
|
|
19
|
-
export type ImbricateOperationParameter<T extends IMBRICATE_OPERATION_SCOPE> = T extends IMBRICATE_OPERATION_SCOPE.ORIGIN ? {
|
|
20
|
-
readonly originUniqueIdentifier: string;
|
|
21
|
-
} : T extends IMBRICATE_OPERATION_SCOPE.COLLECTION ? {
|
|
22
|
-
readonly originUniqueIdentifier: string;
|
|
23
|
-
readonly collectionUniqueIdentifier: string;
|
|
24
|
-
} : T extends IMBRICATE_OPERATION_SCOPE.PAGE ? {
|
|
25
|
-
readonly originUniqueIdentifier: string;
|
|
26
|
-
readonly collectionUniqueIdentifier: string;
|
|
27
|
-
readonly pageIdentifier: string;
|
|
28
|
-
} : unknown;
|
package/operation/definition.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Operation
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.IMBRICATE_OPERATION_SCOPE = void 0;
|
|
9
|
-
var IMBRICATE_OPERATION_SCOPE;
|
|
10
|
-
(function (IMBRICATE_OPERATION_SCOPE) {
|
|
11
|
-
IMBRICATE_OPERATION_SCOPE["ORIGIN"] = "imbricate.origin";
|
|
12
|
-
IMBRICATE_OPERATION_SCOPE["COLLECTION"] = "imbricate.collection";
|
|
13
|
-
IMBRICATE_OPERATION_SCOPE["PAGE"] = "imbricate.page";
|
|
14
|
-
})(IMBRICATE_OPERATION_SCOPE || (exports.IMBRICATE_OPERATION_SCOPE = IMBRICATE_OPERATION_SCOPE = {}));
|
package/origin/base.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Origin
|
|
4
|
-
* @description Base
|
|
5
|
-
*/
|
|
6
|
-
import type { IImbricateBinaryStorage } from "../binary-storage/interface";
|
|
7
|
-
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
8
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
9
|
-
import { IImbricateCollectionManager } from "../collection-manager/interface";
|
|
10
|
-
import type { IImbricateFunctionManager } from "../function/interface";
|
|
11
|
-
import { IImbricateOriginOperationManager } from "../origin-operation-manager/interface";
|
|
12
|
-
import type { IImbricateOrigin } from "../origin/interface";
|
|
13
|
-
import { IImbricateScriptManager } from "../script-manager/interface";
|
|
14
|
-
import { IMBRICATE_ORIGIN_CAPABILITY_KEY, ImbricateOriginCapability, ImbricateOriginMetadata } from "./definition";
|
|
15
|
-
export declare abstract class ImbricateOriginBase implements IImbricateOrigin {
|
|
16
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_ORIGIN_CAPABILITY_KEY>;
|
|
17
|
-
static allAllowCapability(): ImbricateOriginCapability;
|
|
18
|
-
static allDenyCapability(): ImbricateOriginCapability;
|
|
19
|
-
abstract readonly originType: string;
|
|
20
|
-
abstract readonly uniqueIdentifier: string;
|
|
21
|
-
abstract readonly metadata: ImbricateOriginMetadata;
|
|
22
|
-
abstract readonly payloads: Record<string, any>;
|
|
23
|
-
abstract readonly capabilities: ImbricateOriginCapability;
|
|
24
|
-
getFunctionManager(): IImbricateFunctionManager;
|
|
25
|
-
getBinaryStorage(): IImbricateBinaryStorage;
|
|
26
|
-
getScriptManager(): IImbricateScriptManager;
|
|
27
|
-
getCollectionManager(): IImbricateCollectionManager;
|
|
28
|
-
getOperationManager(): IImbricateOriginOperationManager;
|
|
29
|
-
}
|
package/origin/base.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Origin
|
|
5
|
-
* @description Base
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateOriginBase = void 0;
|
|
9
|
-
const builder_1 = require("../capability/builder");
|
|
10
|
-
const definition_1 = require("../capability/definition");
|
|
11
|
-
const not_implemented_1 = require("../error/not-implemented");
|
|
12
|
-
const definition_2 = require("./definition");
|
|
13
|
-
class ImbricateOriginBase {
|
|
14
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
15
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricateOriginCapabilityList, initial);
|
|
16
|
-
}
|
|
17
|
-
static allAllowCapability() {
|
|
18
|
-
return this.buildCapability((0, definition_1.createAllowImbricateCapability)()).build();
|
|
19
|
-
}
|
|
20
|
-
static allDenyCapability() {
|
|
21
|
-
return this.buildCapability((0, definition_1.createDenyImbricateCapability)()).build();
|
|
22
|
-
}
|
|
23
|
-
getFunctionManager() {
|
|
24
|
-
throw not_implemented_1.ImbricateNotImplemented.create("GetFunctionManager", definition_2.IMBRICATE_ORIGIN_CAPABILITY_KEY.ORIGIN_FUNCTION);
|
|
25
|
-
}
|
|
26
|
-
getBinaryStorage() {
|
|
27
|
-
throw not_implemented_1.ImbricateNotImplemented.create("GetBinaryStorage", definition_2.IMBRICATE_ORIGIN_CAPABILITY_KEY.ORIGIN_BINARY_STORAGE);
|
|
28
|
-
}
|
|
29
|
-
getScriptManager() {
|
|
30
|
-
throw not_implemented_1.ImbricateNotImplemented.create("GetScriptManager", definition_2.IMBRICATE_ORIGIN_CAPABILITY_KEY.ORIGIN_SCRIPT_MANAGER);
|
|
31
|
-
}
|
|
32
|
-
getCollectionManager() {
|
|
33
|
-
throw not_implemented_1.ImbricateNotImplemented.create("GetCollectionManager", definition_2.IMBRICATE_ORIGIN_CAPABILITY_KEY.ORIGIN_COLLECTION_MANAGER);
|
|
34
|
-
}
|
|
35
|
-
getOperationManager() {
|
|
36
|
-
throw not_implemented_1.ImbricateNotImplemented.create("GetOperationManager", definition_2.IMBRICATE_ORIGIN_CAPABILITY_KEY.ORIGIN_OPERATION_MANAGER);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.ImbricateOriginBase = ImbricateOriginBase;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace OriginOperationManager
|
|
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_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY, ImbricateOriginOperationManagerCapability } from "./definition";
|
|
10
|
-
import { IImbricateOriginOperationManager } from "./interface";
|
|
11
|
-
export declare abstract class ImbricateOriginOperationManagerBase implements IImbricateOriginOperationManager {
|
|
12
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY>;
|
|
13
|
-
static allAllowCapability(): ImbricateOriginOperationManagerCapability;
|
|
14
|
-
static allDenyCapability(): ImbricateOriginOperationManagerCapability;
|
|
15
|
-
abstract readonly capabilities: ImbricateOriginOperationManagerCapability;
|
|
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 OriginOperationManager
|
|
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.ImbricateOriginOperationManagerBase = 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 ImbricateOriginOperationManagerBase {
|
|
23
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
24
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricateOriginOperationManagerCapabilityList, 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_ORIGIN_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_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY.EXECUTE_OPERATION);
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.ImbricateOriginOperationManagerBase = ImbricateOriginOperationManagerBase;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace OriginOperationManager
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
7
|
-
export type ImbricateOriginOperationManagerCapability = Record<IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY, ImbricateCapability>;
|
|
8
|
-
export declare enum IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY {
|
|
9
|
-
LIST_OPERATIONS = "imbricate.origin-operation.list",
|
|
10
|
-
EXECUTE_OPERATION = "imbricate.origin-operation.execute"
|
|
11
|
-
}
|
|
12
|
-
export declare const ImbricateOriginOperationManagerCapabilityList: IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace OriginOperationManager
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricateOriginOperationManagerCapabilityList = exports.IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY["LIST_OPERATIONS"] = "imbricate.origin-operation.list";
|
|
12
|
-
IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY["EXECUTE_OPERATION"] = "imbricate.origin-operation.execute";
|
|
13
|
-
})(IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY || (exports.IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY = IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY = {}));
|
|
14
|
-
exports.ImbricateOriginOperationManagerCapabilityList = [
|
|
15
|
-
IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY.LIST_OPERATIONS,
|
|
16
|
-
IMBRICATE_ORIGIN_OPERATION_MANAGER_CAPABILITY_KEY.EXECUTE_OPERATION,
|
|
17
|
-
];
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace OriginOperationManager
|
|
4
|
-
* @description Interface
|
|
5
|
-
*/
|
|
6
|
-
import { PromiseOr } from "../definition/promise";
|
|
7
|
-
import { IMBRICATE_OPERATION_SCOPE, ImbricateOperation, ImbricateOperationParameter } from "../operation/definition";
|
|
8
|
-
import { ImbricateOriginOperationManagerCapability } from "./definition";
|
|
9
|
-
export interface IImbricateOriginOperationManager {
|
|
10
|
-
/**
|
|
11
|
-
* Capabilities of the origin operation manager
|
|
12
|
-
*/
|
|
13
|
-
readonly capabilities: ImbricateOriginOperationManagerCapability;
|
|
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
|
-
}
|