@imbricate/core 2.6.1 → 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
|
@@ -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
|
-
}
|
package/page/base.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Page
|
|
4
|
-
* @description Base
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateAuthor } from "../author/definition";
|
|
7
|
-
import { ImbricateCapabilityBuilder } from "../capability/builder";
|
|
8
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
9
|
-
import type { PromiseOr } from "../definition/promise";
|
|
10
|
-
import { ImbricatePageVariant } from "../page-variant/definition";
|
|
11
|
-
import { IMBRICATE_PAGE_CAPABILITY_KEY, ImbricatePageCapability, ImbricatePageHistoryRecord } from "./definition";
|
|
12
|
-
import type { IImbricatePage } from "./interface";
|
|
13
|
-
export declare abstract class ImbricatePageBase implements IImbricatePage {
|
|
14
|
-
static buildCapability(initial?: ImbricateCapability): ImbricateCapabilityBuilder<IMBRICATE_PAGE_CAPABILITY_KEY>;
|
|
15
|
-
static allAllowCapability(): ImbricatePageCapability;
|
|
16
|
-
static allDenyCapability(): ImbricatePageCapability;
|
|
17
|
-
abstract readonly title: string;
|
|
18
|
-
abstract readonly directories: string[];
|
|
19
|
-
abstract readonly identifier: string;
|
|
20
|
-
abstract readonly variant: ImbricatePageVariant;
|
|
21
|
-
abstract readonly digest: string;
|
|
22
|
-
abstract readonly historyRecords: ImbricatePageHistoryRecord[];
|
|
23
|
-
abstract readonly description?: string;
|
|
24
|
-
abstract readonly createdAt: Date;
|
|
25
|
-
abstract readonly updatedAt: Date;
|
|
26
|
-
abstract readonly capabilities: ImbricatePageCapability;
|
|
27
|
-
readContent(): PromiseOr<string>;
|
|
28
|
-
writeContent(_content: string): PromiseOr<void>;
|
|
29
|
-
readAttributes(): PromiseOr<Record<string, string>>;
|
|
30
|
-
writeAttribute(_key: string, _value: string): PromiseOr<void>;
|
|
31
|
-
refreshUpdateMetadata(_updatedAt: Date, _digest: string, _author: ImbricateAuthor): PromiseOr<void>;
|
|
32
|
-
refreshUpdatedAt(_updatedAt: Date): PromiseOr<void>;
|
|
33
|
-
refreshDigest(_digest: string): PromiseOr<void>;
|
|
34
|
-
addHistoryRecord(_record: ImbricatePageHistoryRecord): PromiseOr<void>;
|
|
35
|
-
}
|
package/page/base.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Page
|
|
5
|
-
* @description Base
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricatePageBase = 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 ImbricatePageBase {
|
|
14
|
-
static buildCapability(initial = (0, definition_1.createDenyImbricateCapability)()) {
|
|
15
|
-
return builder_1.ImbricateCapabilityBuilder.create(definition_2.ImbricatePageCapabilityList, 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
|
-
readContent() {
|
|
24
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ReadContent", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.READ);
|
|
25
|
-
}
|
|
26
|
-
writeContent(_content) {
|
|
27
|
-
throw not_implemented_1.ImbricateNotImplemented.create("WriteContent", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.WRITE);
|
|
28
|
-
}
|
|
29
|
-
readAttributes() {
|
|
30
|
-
throw not_implemented_1.ImbricateNotImplemented.create("ReadAttributes", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.READ_ATTRIBUTE);
|
|
31
|
-
}
|
|
32
|
-
writeAttribute(_key, _value) {
|
|
33
|
-
throw not_implemented_1.ImbricateNotImplemented.create("WriteAttribute", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.WRITE_ATTRIBUTE);
|
|
34
|
-
}
|
|
35
|
-
refreshUpdateMetadata(_updatedAt, _digest, _author) {
|
|
36
|
-
throw not_implemented_1.ImbricateNotImplemented.create("RefreshUpdateMetadata", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.UPDATE_METADATA);
|
|
37
|
-
}
|
|
38
|
-
refreshUpdatedAt(_updatedAt) {
|
|
39
|
-
throw not_implemented_1.ImbricateNotImplemented.create("RefreshUpdatedAt", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.UPDATE_METADATA);
|
|
40
|
-
}
|
|
41
|
-
refreshDigest(_digest) {
|
|
42
|
-
throw not_implemented_1.ImbricateNotImplemented.create("RefreshDigest", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.UPDATE_METADATA);
|
|
43
|
-
}
|
|
44
|
-
addHistoryRecord(_record) {
|
|
45
|
-
throw not_implemented_1.ImbricateNotImplemented.create("AddHistoryRecord", definition_2.IMBRICATE_PAGE_CAPABILITY_KEY.UPDATE_HISTORY_RECORD);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.ImbricatePageBase = ImbricatePageBase;
|
package/page/definition.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Page
|
|
4
|
-
* @description Definition
|
|
5
|
-
*/
|
|
6
|
-
import { ImbricateAuthor } from "../author/definition";
|
|
7
|
-
import { ImbricateCapability } from "../capability/definition";
|
|
8
|
-
import { ImbricatePageVariant } from "../page-variant/definition";
|
|
9
|
-
import { IMBRICATE_SEARCH_RESULT_TYPE, ImbricateSearchResult, ImbricateSearchSnippet } from "../search/snippet";
|
|
10
|
-
export type ImbricatePageAttributes = Record<string, string>;
|
|
11
|
-
export type ImbricatePageSearchResult = ImbricateSearchResult<IMBRICATE_SEARCH_RESULT_TYPE.PAGE>;
|
|
12
|
-
export type ImbricatePageSearchSnippet = ImbricateSearchSnippet<IMBRICATE_SEARCH_RESULT_TYPE.PAGE>;
|
|
13
|
-
export type ImbricatePageSnapshot = {
|
|
14
|
-
readonly title: string;
|
|
15
|
-
readonly directories: string[];
|
|
16
|
-
readonly identifier: string;
|
|
17
|
-
readonly variant: ImbricatePageVariant;
|
|
18
|
-
};
|
|
19
|
-
export type ImbricatePageHistoryRecord = {
|
|
20
|
-
readonly author: ImbricateAuthor;
|
|
21
|
-
readonly digest: string;
|
|
22
|
-
readonly updatedAt: Date;
|
|
23
|
-
};
|
|
24
|
-
export type ImbricatePageMetadata = {
|
|
25
|
-
readonly createdAt: Date;
|
|
26
|
-
readonly digest: string;
|
|
27
|
-
readonly updatedAt: Date;
|
|
28
|
-
readonly attributes: ImbricatePageAttributes;
|
|
29
|
-
readonly historyRecords: ImbricatePageHistoryRecord[];
|
|
30
|
-
readonly description?: string;
|
|
31
|
-
} & ImbricatePageSnapshot;
|
|
32
|
-
export type ImbricatePageCapability = Record<IMBRICATE_PAGE_CAPABILITY_KEY, ImbricateCapability>;
|
|
33
|
-
export declare enum IMBRICATE_PAGE_CAPABILITY_KEY {
|
|
34
|
-
READ = "imbricate.page.read",
|
|
35
|
-
WRITE = "imbricate.page.write",
|
|
36
|
-
READ_ATTRIBUTE = "imbricate.page.attribute.read",
|
|
37
|
-
WRITE_ATTRIBUTE = "imbricate.page.attribute.write",
|
|
38
|
-
UPDATE_METADATA = "imbricate.page.metadata.update",
|
|
39
|
-
UPDATE_HISTORY_RECORD = "imbricate.page.history.update"
|
|
40
|
-
}
|
|
41
|
-
export declare const ImbricatePageCapabilityList: IMBRICATE_PAGE_CAPABILITY_KEY[];
|
package/page/definition.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Page
|
|
5
|
-
* @description Definition
|
|
6
|
-
*/
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.ImbricatePageCapabilityList = exports.IMBRICATE_PAGE_CAPABILITY_KEY = void 0;
|
|
9
|
-
var IMBRICATE_PAGE_CAPABILITY_KEY;
|
|
10
|
-
(function (IMBRICATE_PAGE_CAPABILITY_KEY) {
|
|
11
|
-
IMBRICATE_PAGE_CAPABILITY_KEY["READ"] = "imbricate.page.read";
|
|
12
|
-
IMBRICATE_PAGE_CAPABILITY_KEY["WRITE"] = "imbricate.page.write";
|
|
13
|
-
IMBRICATE_PAGE_CAPABILITY_KEY["READ_ATTRIBUTE"] = "imbricate.page.attribute.read";
|
|
14
|
-
IMBRICATE_PAGE_CAPABILITY_KEY["WRITE_ATTRIBUTE"] = "imbricate.page.attribute.write";
|
|
15
|
-
IMBRICATE_PAGE_CAPABILITY_KEY["UPDATE_METADATA"] = "imbricate.page.metadata.update";
|
|
16
|
-
IMBRICATE_PAGE_CAPABILITY_KEY["UPDATE_HISTORY_RECORD"] = "imbricate.page.history.update";
|
|
17
|
-
})(IMBRICATE_PAGE_CAPABILITY_KEY || (exports.IMBRICATE_PAGE_CAPABILITY_KEY = IMBRICATE_PAGE_CAPABILITY_KEY = {}));
|
|
18
|
-
exports.ImbricatePageCapabilityList = [
|
|
19
|
-
IMBRICATE_PAGE_CAPABILITY_KEY.READ,
|
|
20
|
-
IMBRICATE_PAGE_CAPABILITY_KEY.WRITE,
|
|
21
|
-
IMBRICATE_PAGE_CAPABILITY_KEY.READ_ATTRIBUTE,
|
|
22
|
-
IMBRICATE_PAGE_CAPABILITY_KEY.WRITE_ATTRIBUTE,
|
|
23
|
-
IMBRICATE_PAGE_CAPABILITY_KEY.UPDATE_METADATA,
|
|
24
|
-
IMBRICATE_PAGE_CAPABILITY_KEY.UPDATE_HISTORY_RECORD,
|
|
25
|
-
];
|