@imbricate/core 3.11.0 → 3.14.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/export.d.ts +6 -0
- package/author/export.js +22 -0
- package/database/base-class/essential-readonly.d.ts +18 -0
- package/database/base-class/essential-readonly.js +29 -0
- package/database/base-class/essential.d.ts +18 -0
- package/database/base-class/essential.js +36 -0
- package/database/base-class/exclude-annotation.d.ts +16 -0
- package/database/base-class/exclude-annotation.js +32 -0
- package/database/base-class/exclude-edit-records.d.ts +15 -0
- package/database/base-class/exclude-edit-records.js +31 -0
- package/database/base-class/full-feature-readonly.d.ts +21 -0
- package/database/base-class/full-feature-readonly.js +39 -0
- package/database/base-class/full-feature.d.ts +29 -0
- package/database/base-class/full-feature.js +24 -0
- package/database/export.d.ts +16 -0
- package/database/export.js +32 -0
- package/database/feature.d.ts +2 -7
- package/database/feature.js +3 -38
- package/database/interface.d.ts +41 -32
- package/database/outcome.d.ts +58 -0
- package/database/outcome.js +28 -0
- package/database-manager/base-class/full-feature.d.ts +17 -0
- package/database-manager/base-class/full-feature.js +19 -0
- package/database-manager/base-class/readonly.d.ts +16 -0
- package/database-manager/base-class/readonly.js +26 -0
- package/database-manager/database-manager.d.ts +52 -0
- package/{static/manager.js → database-manager/database-manager.js} +2 -2
- package/database-manager/export.d.ts +10 -0
- package/database-manager/export.js +26 -0
- package/database-manager/feature.d.ts +11 -0
- package/database-manager/feature.js +18 -0
- package/database-manager/outcome.d.ts +26 -0
- package/database-manager/outcome.js +16 -0
- package/document/base-class/essential-readonly.d.ts +17 -0
- package/document/base-class/essential-readonly.js +25 -0
- package/document/base-class/essential.d.ts +18 -0
- package/document/base-class/essential.js +33 -0
- package/document/base-class/exclude-annotation.d.ts +16 -0
- package/document/base-class/exclude-annotation.js +29 -0
- package/document/base-class/exclude-edit-records.d.ts +15 -0
- package/document/base-class/exclude-edit-records.js +28 -0
- package/document/base-class/full-feature-readonly.d.ts +19 -0
- package/document/base-class/full-feature-readonly.js +35 -0
- package/document/base-class/full-feature.d.ts +23 -0
- package/document/base-class/full-feature.js +21 -0
- package/document/export.d.ts +22 -0
- package/document/export.js +38 -0
- package/document/feature.d.ts +1 -5
- package/document/feature.js +2 -24
- package/document/interface.d.ts +23 -21
- package/document/outcome.d.ts +32 -0
- package/document/outcome.js +19 -0
- package/error/database/database-error.d.ts +9 -0
- package/error/database/database-error.js +16 -0
- package/error/database/feature-not-supported.d.ts +12 -0
- package/error/database/feature-not-supported.js +19 -0
- package/error/database-manager/database-manager-error.d.ts +9 -0
- package/error/database-manager/database-manager-error.js +16 -0
- package/error/database-manager/feature-not-supported.d.ts +12 -0
- package/error/database-manager/feature-not-supported.js +19 -0
- package/error/document/document-error.d.ts +9 -0
- package/error/document/document-error.js +16 -0
- package/error/document/feature-not-supported.d.ts +12 -0
- package/error/document/feature-not-supported.js +20 -0
- package/error/export.d.ts +22 -0
- package/error/export.js +38 -0
- package/error/imbricate-error.d.ts +14 -0
- package/error/imbricate-error.js +27 -0
- package/error/origin/feature-not-supported.d.ts +12 -0
- package/error/origin/feature-not-supported.js +20 -0
- package/error/origin/origin-error.d.ts +9 -0
- package/error/origin/origin-error.js +16 -0
- package/error/static/feature-not-supported.d.ts +12 -0
- package/error/static/feature-not-supported.js +19 -0
- package/error/static/static-error.d.ts +9 -0
- package/error/static/static-error.js +16 -0
- package/error/static-manager/feature-not-supported.d.ts +12 -0
- package/error/static-manager/feature-not-supported.js +19 -0
- package/error/static-manager/static-manager-error.d.ts +9 -0
- package/error/static-manager/static-manager-error.js +16 -0
- package/error/text/feature-not-supported.d.ts +12 -0
- package/error/text/feature-not-supported.js +19 -0
- package/error/text/text-error.d.ts +9 -0
- package/error/text/text-error.js +16 -0
- package/error/text-manager/feature-not-supported.d.ts +12 -0
- package/error/text-manager/feature-not-supported.js +19 -0
- package/error/text-manager/text-manager-error.d.ts +9 -0
- package/error/text-manager/text-manager-error.js +16 -0
- package/index.d.ts +11 -29
- package/index.js +11 -29
- package/loader/export.d.ts +8 -0
- package/loader/export.js +24 -0
- package/origin/base-class/essential.d.ts +15 -0
- package/origin/base-class/essential.js +27 -0
- package/origin/base-class/exclude-static.d.ts +13 -0
- package/origin/base-class/exclude-static.js +25 -0
- package/origin/base-class/full-feature.d.ts +21 -0
- package/origin/base-class/full-feature.js +20 -0
- package/origin/export.d.ts +12 -0
- package/origin/export.js +28 -0
- package/origin/feature.d.ts +12 -0
- package/origin/feature.js +19 -0
- package/origin/interface.d.ts +12 -5
- package/origin/outcome.d.ts +11 -0
- package/origin/outcome.js +10 -0
- package/origin/search.d.ts +0 -3
- package/package.json +1 -1
- package/static/base-class/author-only.d.ts +13 -0
- package/static/base-class/author-only.js +23 -0
- package/static/base-class/content-only.d.ts +12 -0
- package/static/base-class/content-only.js +23 -0
- package/static/base-class/full-feature.d.ts +15 -0
- package/static/base-class/full-feature.js +18 -0
- package/static/export.d.ts +12 -0
- package/static/export.js +28 -0
- package/static/feature.d.ts +10 -0
- package/static/feature.js +17 -0
- package/static/interface.d.ts +9 -2
- package/static/outcome.d.ts +10 -0
- package/static/outcome.js +10 -0
- package/static-manager/base-class/full-feature.d.ts +14 -0
- package/static-manager/base-class/full-feature.js +18 -0
- package/static-manager/base-class/readonly.d.ts +14 -0
- package/static-manager/base-class/readonly.js +23 -0
- package/static-manager/export.d.ts +10 -0
- package/static-manager/export.js +26 -0
- package/static-manager/feature.d.ts +10 -0
- package/static-manager/feature.js +17 -0
- package/static-manager/outcome.d.ts +16 -0
- package/static-manager/outcome.js +12 -0
- package/{static/manager.d.ts → static-manager/static-manager.d.ts} +8 -6
- package/{database/manager.js → static-manager/static-manager.js} +2 -2
- package/text/base-class/author-only.d.ts +13 -0
- package/text/base-class/author-only.js +23 -0
- package/text/base-class/content-only.d.ts +12 -0
- package/text/base-class/content-only.js +23 -0
- package/text/base-class/full-feature.d.ts +15 -0
- package/text/base-class/full-feature.js +18 -0
- package/text/export.d.ts +12 -0
- package/text/export.js +28 -0
- package/text/feature.d.ts +10 -0
- package/text/feature.js +17 -0
- package/text/interface.d.ts +9 -2
- package/text/outcome.d.ts +10 -0
- package/text/outcome.js +10 -0
- package/text-manager/base-class/full-feature.d.ts +14 -0
- package/text-manager/base-class/full-feature.js +18 -0
- package/text-manager/base-class/readonly.d.ts +14 -0
- package/text-manager/base-class/readonly.js +23 -0
- package/text-manager/export.d.ts +10 -0
- package/text-manager/export.js +26 -0
- package/text-manager/feature.d.ts +10 -0
- package/text-manager/feature.js +17 -0
- package/text-manager/outcome.d.ts +16 -0
- package/text-manager/outcome.js +12 -0
- package/{text/manager.d.ts → text-manager/text-manager.d.ts} +8 -6
- package/{text/manager.js → text-manager/text-manager.js} +2 -2
- package/database/manager.d.ts +0 -41
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Feature Not Supported
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDocumentFeatureNotSupportedError = void 0;
|
|
9
|
+
const document_error_1 = require("./document-error");
|
|
10
|
+
class ImbricateDocumentFeatureNotSupportedError extends document_error_1.DocumentError {
|
|
11
|
+
static withFeature(feature) {
|
|
12
|
+
return new ImbricateDocumentFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
|
|
13
|
+
}
|
|
14
|
+
constructor(message, reason) {
|
|
15
|
+
super(message, ImbricateDocumentFeatureNotSupportedError.TYPE, reason);
|
|
16
|
+
Object.setPrototypeOf(this, ImbricateDocumentFeatureNotSupportedError.prototype);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ImbricateDocumentFeatureNotSupportedError = ImbricateDocumentFeatureNotSupportedError;
|
|
20
|
+
ImbricateDocumentFeatureNotSupportedError.TYPE = "IMBRICATE_DOCUMENT_FEATURE_NOT_SUPPORTED";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Export
|
|
5
|
+
*/
|
|
6
|
+
export * from "./database-manager/database-manager-error";
|
|
7
|
+
export * from "./database-manager/feature-not-supported";
|
|
8
|
+
export * from "./database/database-error";
|
|
9
|
+
export * from "./database/feature-not-supported";
|
|
10
|
+
export * from "./document/document-error";
|
|
11
|
+
export * from "./document/feature-not-supported";
|
|
12
|
+
export * from "./imbricate-error";
|
|
13
|
+
export * from "./origin/feature-not-supported";
|
|
14
|
+
export * from "./origin/origin-error";
|
|
15
|
+
export * from "./static-manager/feature-not-supported";
|
|
16
|
+
export * from "./static-manager/static-manager-error";
|
|
17
|
+
export * from "./static/feature-not-supported";
|
|
18
|
+
export * from "./static/static-error";
|
|
19
|
+
export * from "./text-manager/feature-not-supported";
|
|
20
|
+
export * from "./text-manager/text-manager-error";
|
|
21
|
+
export * from "./text/feature-not-supported";
|
|
22
|
+
export * from "./text/text-error";
|
package/error/export.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Export
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./database-manager/database-manager-error"), exports);
|
|
23
|
+
__exportStar(require("./database-manager/feature-not-supported"), exports);
|
|
24
|
+
__exportStar(require("./database/database-error"), exports);
|
|
25
|
+
__exportStar(require("./database/feature-not-supported"), exports);
|
|
26
|
+
__exportStar(require("./document/document-error"), exports);
|
|
27
|
+
__exportStar(require("./document/feature-not-supported"), exports);
|
|
28
|
+
__exportStar(require("./imbricate-error"), exports);
|
|
29
|
+
__exportStar(require("./origin/feature-not-supported"), exports);
|
|
30
|
+
__exportStar(require("./origin/origin-error"), exports);
|
|
31
|
+
__exportStar(require("./static-manager/feature-not-supported"), exports);
|
|
32
|
+
__exportStar(require("./static-manager/static-manager-error"), exports);
|
|
33
|
+
__exportStar(require("./static/feature-not-supported"), exports);
|
|
34
|
+
__exportStar(require("./static/static-error"), exports);
|
|
35
|
+
__exportStar(require("./text-manager/feature-not-supported"), exports);
|
|
36
|
+
__exportStar(require("./text-manager/text-manager-error"), exports);
|
|
37
|
+
__exportStar(require("./text/feature-not-supported"), exports);
|
|
38
|
+
__exportStar(require("./text/text-error"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Imbricate Error
|
|
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 message(): string;
|
|
12
|
+
get reason(): any | undefined;
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Imbricate Error
|
|
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 message() {
|
|
18
|
+
return this._message;
|
|
19
|
+
}
|
|
20
|
+
get reason() {
|
|
21
|
+
return this._reason;
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
return `[${this._type}] ${this.message}`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ImbricateError = ImbricateError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error_Origin
|
|
4
|
+
* @description Feature Not Supported
|
|
5
|
+
*/
|
|
6
|
+
import { IMBRICATE_ORIGIN_FEATURE } from "../../origin/feature";
|
|
7
|
+
import { OriginError } from "./origin-error";
|
|
8
|
+
export declare class ImbricateOriginFeatureNotSupportedError extends OriginError {
|
|
9
|
+
static withFeature(feature: IMBRICATE_ORIGIN_FEATURE): ImbricateOriginFeatureNotSupportedError;
|
|
10
|
+
static readonly TYPE: string;
|
|
11
|
+
protected constructor(message: string, reason?: any);
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error_Origin
|
|
5
|
+
* @description Feature Not Supported
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateOriginFeatureNotSupportedError = void 0;
|
|
9
|
+
const origin_error_1 = require("./origin-error");
|
|
10
|
+
class ImbricateOriginFeatureNotSupportedError extends origin_error_1.OriginError {
|
|
11
|
+
static withFeature(feature) {
|
|
12
|
+
return new ImbricateOriginFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
|
|
13
|
+
}
|
|
14
|
+
constructor(message, reason) {
|
|
15
|
+
super(message, ImbricateOriginFeatureNotSupportedError.TYPE, reason);
|
|
16
|
+
Object.setPrototypeOf(this, ImbricateOriginFeatureNotSupportedError.prototype);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ImbricateOriginFeatureNotSupportedError = ImbricateOriginFeatureNotSupportedError;
|
|
20
|
+
ImbricateOriginFeatureNotSupportedError.TYPE = "IMBRICATE_ORIGIN_FEATURE_NOT_SUPPORTED";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error_Origin
|
|
4
|
+
* @description Origin Error
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateError } from "../imbricate-error";
|
|
7
|
+
export declare class OriginError extends ImbricateError {
|
|
8
|
+
protected constructor(message: string, type: string, reason?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error_Origin
|
|
5
|
+
* @description Origin Error
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.OriginError = void 0;
|
|
9
|
+
const imbricate_error_1 = require("../imbricate-error");
|
|
10
|
+
class OriginError extends imbricate_error_1.ImbricateError {
|
|
11
|
+
constructor(message, type, reason) {
|
|
12
|
+
super(message, type, reason);
|
|
13
|
+
Object.setPrototypeOf(this, OriginError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.OriginError = OriginError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Static Feature Not Supported
|
|
5
|
+
*/
|
|
6
|
+
import { IMBRICATE_STATIC_FEATURE } from "../../static/feature";
|
|
7
|
+
import { ImbricateStaticError } from "./static-error";
|
|
8
|
+
export declare class ImbricateStaticFeatureNotSupportedError extends ImbricateStaticError {
|
|
9
|
+
static withFeature(feature: IMBRICATE_STATIC_FEATURE): ImbricateStaticFeatureNotSupportedError;
|
|
10
|
+
static readonly TYPE: string;
|
|
11
|
+
protected constructor(message: string, reason?: any);
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Static Feature Not Supported
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateStaticFeatureNotSupportedError = void 0;
|
|
9
|
+
const static_error_1 = require("./static-error");
|
|
10
|
+
class ImbricateStaticFeatureNotSupportedError extends static_error_1.ImbricateStaticError {
|
|
11
|
+
static withFeature(feature) {
|
|
12
|
+
return new ImbricateStaticFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
|
|
13
|
+
}
|
|
14
|
+
constructor(message, reason) {
|
|
15
|
+
super(message, ImbricateStaticFeatureNotSupportedError.TYPE, reason);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ImbricateStaticFeatureNotSupportedError = ImbricateStaticFeatureNotSupportedError;
|
|
19
|
+
ImbricateStaticFeatureNotSupportedError.TYPE = "IMBRICATE_STATIC_FEATURE_NOT_SUPPORTED";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Static Error
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateError } from "../imbricate-error";
|
|
7
|
+
export declare class ImbricateStaticError extends ImbricateError {
|
|
8
|
+
protected constructor(message: string, type: string, reason?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Static Error
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateStaticError = void 0;
|
|
9
|
+
const imbricate_error_1 = require("../imbricate-error");
|
|
10
|
+
class ImbricateStaticError extends imbricate_error_1.ImbricateError {
|
|
11
|
+
constructor(message, type, reason) {
|
|
12
|
+
super(message, type, reason);
|
|
13
|
+
Object.setPrototypeOf(this, ImbricateStaticError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ImbricateStaticError = ImbricateStaticError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Feature Not Supported
|
|
5
|
+
*/
|
|
6
|
+
import { IMBRICATE_STATIC_MANAGER_FEATURE } from "../../static-manager/feature";
|
|
7
|
+
import { ImbricateStaticManagerError } from "./static-manager-error";
|
|
8
|
+
export declare class ImbricateStaticManagerFeatureNotSupportedError extends ImbricateStaticManagerError {
|
|
9
|
+
static withFeature(feature: IMBRICATE_STATIC_MANAGER_FEATURE): ImbricateStaticManagerFeatureNotSupportedError;
|
|
10
|
+
static readonly TYPE: string;
|
|
11
|
+
protected constructor(message: string, reason?: any);
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Feature Not Supported
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateStaticManagerFeatureNotSupportedError = void 0;
|
|
9
|
+
const static_manager_error_1 = require("./static-manager-error");
|
|
10
|
+
class ImbricateStaticManagerFeatureNotSupportedError extends static_manager_error_1.ImbricateStaticManagerError {
|
|
11
|
+
static withFeature(feature) {
|
|
12
|
+
return new ImbricateStaticManagerFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
|
|
13
|
+
}
|
|
14
|
+
constructor(message, reason) {
|
|
15
|
+
super(message, ImbricateStaticManagerFeatureNotSupportedError.TYPE, reason);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ImbricateStaticManagerFeatureNotSupportedError = ImbricateStaticManagerFeatureNotSupportedError;
|
|
19
|
+
ImbricateStaticManagerFeatureNotSupportedError.TYPE = "IMBRICATE_STATIC_MANAGER_FEATURE_NOT_SUPPORTED";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Static Manager Error
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateError } from "../imbricate-error";
|
|
7
|
+
export declare class ImbricateStaticManagerError extends ImbricateError {
|
|
8
|
+
protected constructor(message: string, type: string, reason?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Static Manager Error
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateStaticManagerError = void 0;
|
|
9
|
+
const imbricate_error_1 = require("../imbricate-error");
|
|
10
|
+
class ImbricateStaticManagerError extends imbricate_error_1.ImbricateError {
|
|
11
|
+
constructor(message, type, reason) {
|
|
12
|
+
super(message, type, reason);
|
|
13
|
+
Object.setPrototypeOf(this, ImbricateStaticManagerError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ImbricateStaticManagerError = ImbricateStaticManagerError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Text Feature Not Supported
|
|
5
|
+
*/
|
|
6
|
+
import { IMBRICATE_TEXT_FEATURE } from "../../text/feature";
|
|
7
|
+
import { ImbricateTextError } from "./text-error";
|
|
8
|
+
export declare class ImbricateTextFeatureNotSupportedError extends ImbricateTextError {
|
|
9
|
+
static withFeature(feature: IMBRICATE_TEXT_FEATURE): ImbricateTextFeatureNotSupportedError;
|
|
10
|
+
static readonly TYPE: string;
|
|
11
|
+
protected constructor(message: string, reason?: any);
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Text Feature Not Supported
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateTextFeatureNotSupportedError = void 0;
|
|
9
|
+
const text_error_1 = require("./text-error");
|
|
10
|
+
class ImbricateTextFeatureNotSupportedError extends text_error_1.ImbricateTextError {
|
|
11
|
+
static withFeature(feature) {
|
|
12
|
+
return new ImbricateTextFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
|
|
13
|
+
}
|
|
14
|
+
constructor(message, reason) {
|
|
15
|
+
super(message, ImbricateTextFeatureNotSupportedError.TYPE, reason);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ImbricateTextFeatureNotSupportedError = ImbricateTextFeatureNotSupportedError;
|
|
19
|
+
ImbricateTextFeatureNotSupportedError.TYPE = "IMBRICATE_TEXT_FEATURE_NOT_SUPPORTED";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Text Error
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateError } from "../imbricate-error";
|
|
7
|
+
export declare class ImbricateTextError extends ImbricateError {
|
|
8
|
+
protected constructor(message: string, type: string, reason?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Text Error
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateTextError = void 0;
|
|
9
|
+
const imbricate_error_1 = require("../imbricate-error");
|
|
10
|
+
class ImbricateTextError extends imbricate_error_1.ImbricateError {
|
|
11
|
+
constructor(message, type, reason) {
|
|
12
|
+
super(message, type, reason);
|
|
13
|
+
Object.setPrototypeOf(this, ImbricateTextError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ImbricateTextError = ImbricateTextError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Feature Not Supported
|
|
5
|
+
*/
|
|
6
|
+
import { IMBRICATE_TEXT_MANAGER_FEATURE } from "../../text-manager/feature";
|
|
7
|
+
import { ImbricateTextManagerError } from "./text-manager-error";
|
|
8
|
+
export declare class ImbricateTextManagerFeatureNotSupportedError extends ImbricateTextManagerError {
|
|
9
|
+
static withFeature(feature: IMBRICATE_TEXT_MANAGER_FEATURE): ImbricateTextManagerFeatureNotSupportedError;
|
|
10
|
+
static readonly TYPE: string;
|
|
11
|
+
protected constructor(message: string, reason?: any);
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Feature Not Supported
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateTextManagerFeatureNotSupportedError = void 0;
|
|
9
|
+
const text_manager_error_1 = require("./text-manager-error");
|
|
10
|
+
class ImbricateTextManagerFeatureNotSupportedError extends text_manager_error_1.ImbricateTextManagerError {
|
|
11
|
+
static withFeature(feature) {
|
|
12
|
+
return new ImbricateTextManagerFeatureNotSupportedError(`Feature ${feature} is not supported`, feature);
|
|
13
|
+
}
|
|
14
|
+
constructor(message, reason) {
|
|
15
|
+
super(message, ImbricateTextManagerFeatureNotSupportedError.TYPE, reason);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ImbricateTextManagerFeatureNotSupportedError = ImbricateTextManagerFeatureNotSupportedError;
|
|
19
|
+
ImbricateTextManagerFeatureNotSupportedError.TYPE = "IMBRICATE_TEXT_MANAGER_FEATURE_NOT_SUPPORTED";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Text Manager Error
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateError } from "../imbricate-error";
|
|
7
|
+
export declare class ImbricateTextManagerError extends ImbricateError {
|
|
8
|
+
protected constructor(message: string, type: string, reason?: any);
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Error
|
|
5
|
+
* @description Text Manager Error
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateTextManagerError = void 0;
|
|
9
|
+
const imbricate_error_1 = require("../imbricate-error");
|
|
10
|
+
class ImbricateTextManagerError extends imbricate_error_1.ImbricateError {
|
|
11
|
+
constructor(message, type, reason) {
|
|
12
|
+
super(message, type, reason);
|
|
13
|
+
Object.setPrototypeOf(this, ImbricateTextManagerError.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ImbricateTextManagerError = ImbricateTextManagerError;
|
package/index.d.ts
CHANGED
|
@@ -2,32 +2,14 @@
|
|
|
2
2
|
* @author WMXPY
|
|
3
3
|
* @description Index
|
|
4
4
|
*/
|
|
5
|
-
export * from "./author/
|
|
6
|
-
export * from "./database/
|
|
7
|
-
export * from "./database/
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./document/property/default-value";
|
|
17
|
-
export * from "./document/property/definition";
|
|
18
|
-
export * from "./document/property/primary";
|
|
19
|
-
export * from "./document/property/triage";
|
|
20
|
-
export * from "./document/property/triage-manager";
|
|
21
|
-
export * from "./document/validate";
|
|
22
|
-
export * from "./loader/definition";
|
|
23
|
-
export * from "./loader/origin-loader";
|
|
24
|
-
export * from "./loader/persistence";
|
|
25
|
-
export * from "./origin/definition";
|
|
26
|
-
export * from "./origin/interface";
|
|
27
|
-
export * from "./origin/search";
|
|
28
|
-
export * from "./static/definition";
|
|
29
|
-
export * from "./static/interface";
|
|
30
|
-
export * from "./static/manager";
|
|
31
|
-
export * from "./text/definition";
|
|
32
|
-
export * from "./text/interface";
|
|
33
|
-
export * from "./text/manager";
|
|
5
|
+
export * from "./author/export";
|
|
6
|
+
export * from "./database-manager/export";
|
|
7
|
+
export * from "./database/export";
|
|
8
|
+
export * from "./document/export";
|
|
9
|
+
export * from "./error/export";
|
|
10
|
+
export * from "./loader/export";
|
|
11
|
+
export * from "./origin/export";
|
|
12
|
+
export * from "./static-manager/export";
|
|
13
|
+
export * from "./static/export";
|
|
14
|
+
export * from "./text-manager/export";
|
|
15
|
+
export * from "./text/export";
|
package/index.js
CHANGED
|
@@ -18,32 +18,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./author/
|
|
22
|
-
__exportStar(require("./database/
|
|
23
|
-
__exportStar(require("./database/
|
|
24
|
-
__exportStar(require("./
|
|
25
|
-
__exportStar(require("./
|
|
26
|
-
__exportStar(require("./
|
|
27
|
-
__exportStar(require("./
|
|
28
|
-
__exportStar(require("./
|
|
29
|
-
__exportStar(require("./
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./document/property/default-value"), exports);
|
|
33
|
-
__exportStar(require("./document/property/definition"), exports);
|
|
34
|
-
__exportStar(require("./document/property/primary"), exports);
|
|
35
|
-
__exportStar(require("./document/property/triage"), exports);
|
|
36
|
-
__exportStar(require("./document/property/triage-manager"), exports);
|
|
37
|
-
__exportStar(require("./document/validate"), exports);
|
|
38
|
-
__exportStar(require("./loader/definition"), exports);
|
|
39
|
-
__exportStar(require("./loader/origin-loader"), exports);
|
|
40
|
-
__exportStar(require("./loader/persistence"), exports);
|
|
41
|
-
__exportStar(require("./origin/definition"), exports);
|
|
42
|
-
__exportStar(require("./origin/interface"), exports);
|
|
43
|
-
__exportStar(require("./origin/search"), exports);
|
|
44
|
-
__exportStar(require("./static/definition"), exports);
|
|
45
|
-
__exportStar(require("./static/interface"), exports);
|
|
46
|
-
__exportStar(require("./static/manager"), exports);
|
|
47
|
-
__exportStar(require("./text/definition"), exports);
|
|
48
|
-
__exportStar(require("./text/interface"), exports);
|
|
49
|
-
__exportStar(require("./text/manager"), exports);
|
|
21
|
+
__exportStar(require("./author/export"), exports);
|
|
22
|
+
__exportStar(require("./database-manager/export"), exports);
|
|
23
|
+
__exportStar(require("./database/export"), exports);
|
|
24
|
+
__exportStar(require("./document/export"), exports);
|
|
25
|
+
__exportStar(require("./error/export"), exports);
|
|
26
|
+
__exportStar(require("./loader/export"), exports);
|
|
27
|
+
__exportStar(require("./origin/export"), exports);
|
|
28
|
+
__exportStar(require("./static-manager/export"), exports);
|
|
29
|
+
__exportStar(require("./static/export"), exports);
|
|
30
|
+
__exportStar(require("./text-manager/export"), exports);
|
|
31
|
+
__exportStar(require("./text/export"), exports);
|
package/loader/export.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Loader
|
|
5
|
+
* @description Export
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./definition"), exports);
|
|
23
|
+
__exportStar(require("./origin-loader"), exports);
|
|
24
|
+
__exportStar(require("./persistence"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Origin
|
|
4
|
+
* @description Essential
|
|
5
|
+
*/
|
|
6
|
+
import { IImbricateStaticManager } from "../../static-manager/static-manager";
|
|
7
|
+
import { IMBRICATE_ORIGIN_FEATURE } from "../feature";
|
|
8
|
+
import { IImbricateOrigin } from "../interface";
|
|
9
|
+
import { ImbricateOriginSearchOutcome } from "../outcome";
|
|
10
|
+
import { ImbricateOriginFullFeatureBase } from "./full-feature";
|
|
11
|
+
export declare abstract class ImbricateOriginEssentialBase extends ImbricateOriginFullFeatureBase implements IImbricateOrigin {
|
|
12
|
+
readonly supportedFeatures: IMBRICATE_ORIGIN_FEATURE[];
|
|
13
|
+
getStaticManager(): IImbricateStaticManager;
|
|
14
|
+
search(_keyword: string): PromiseLike<ImbricateOriginSearchOutcome>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Origin
|
|
5
|
+
* @description Essential
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateOriginEssentialBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/origin/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const full_feature_1 = require("./full-feature");
|
|
12
|
+
class ImbricateOriginEssentialBase extends full_feature_1.ImbricateOriginFullFeatureBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.supportedFeatures = [
|
|
16
|
+
feature_1.IMBRICATE_ORIGIN_FEATURE.DATABASE_MANAGER,
|
|
17
|
+
feature_1.IMBRICATE_ORIGIN_FEATURE.TEXT_MANAGER,
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
getStaticManager() {
|
|
21
|
+
throw feature_not_supported_1.ImbricateOriginFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_ORIGIN_FEATURE.STATIC_MANAGER);
|
|
22
|
+
}
|
|
23
|
+
search(_keyword) {
|
|
24
|
+
throw feature_not_supported_1.ImbricateOriginFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_ORIGIN_FEATURE.ORIGIN_SEARCH);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ImbricateOriginEssentialBase = ImbricateOriginEssentialBase;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Origin
|
|
4
|
+
* @description Exclude Static
|
|
5
|
+
*/
|
|
6
|
+
import { IImbricateStaticManager } from "../../static-manager/static-manager";
|
|
7
|
+
import { IMBRICATE_ORIGIN_FEATURE } from "../feature";
|
|
8
|
+
import { IImbricateOrigin } from "../interface";
|
|
9
|
+
import { ImbricateOriginFullFeatureBase } from "./full-feature";
|
|
10
|
+
export declare abstract class ImbricateOriginExcludeStaticBase extends ImbricateOriginFullFeatureBase implements IImbricateOrigin {
|
|
11
|
+
readonly supportedFeatures: IMBRICATE_ORIGIN_FEATURE[];
|
|
12
|
+
getStaticManager(): IImbricateStaticManager;
|
|
13
|
+
}
|