@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
package/author/export.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Author
|
|
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);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database
|
|
4
|
+
* @description Essential Readonly
|
|
5
|
+
*/
|
|
6
|
+
import { DocumentProperties } from "../../document/property";
|
|
7
|
+
import { ImbricateDatabaseAuditOptions } from "../definition";
|
|
8
|
+
import { IMBRICATE_DATABASE_FEATURE } from "../feature";
|
|
9
|
+
import { IImbricateDatabase } from "../interface";
|
|
10
|
+
import { ImbricateDatabaseCreateDocumentOutcome, ImbricateDatabasePutSchemaOutcome, ImbricateDatabaseRemoveDocumentOutcome } from "../outcome";
|
|
11
|
+
import { ImbricateDatabaseSchema } from "../schema";
|
|
12
|
+
import { ImbricateDatabaseEssentialBase } from "./essential";
|
|
13
|
+
export declare abstract class ImbricateDatabaseEssentialReadOnlyBase extends ImbricateDatabaseEssentialBase implements IImbricateDatabase {
|
|
14
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
15
|
+
putSchema(_schema: ImbricateDatabaseSchema, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutSchemaOutcome>;
|
|
16
|
+
createDocument(_properties: DocumentProperties, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseCreateDocumentOutcome>;
|
|
17
|
+
removeDocument(_uniqueIdentifier: string, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseRemoveDocumentOutcome>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database
|
|
5
|
+
* @description Essential Readonly
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseEssentialReadOnlyBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/database/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const essential_1 = require("./essential");
|
|
12
|
+
class ImbricateDatabaseEssentialReadOnlyBase extends essential_1.ImbricateDatabaseEssentialBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.supportedFeatures = [
|
|
16
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_DOCUMENT,
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
putSchema(_schema, _auditOptions) {
|
|
20
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA);
|
|
21
|
+
}
|
|
22
|
+
createDocument(_properties, _auditOptions) {
|
|
23
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT);
|
|
24
|
+
}
|
|
25
|
+
removeDocument(_uniqueIdentifier, _auditOptions) {
|
|
26
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.ImbricateDatabaseEssentialReadOnlyBase = ImbricateDatabaseEssentialReadOnlyBase;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database
|
|
4
|
+
* @description Essential
|
|
5
|
+
*/
|
|
6
|
+
import { DatabaseAnnotationValue, DatabaseAnnotations, DatabaseEditRecord, ImbricateDatabaseAuditOptions } from "../definition";
|
|
7
|
+
import { IMBRICATE_DATABASE_FEATURE } from "../feature";
|
|
8
|
+
import { IImbricateDatabase } from "../interface";
|
|
9
|
+
import { ImbricateDatabaseAddEditRecordsOutcome, ImbricateDatabaseDeleteAnnotationOutcome, ImbricateDatabaseGetEditRecordsOutcome, ImbricateDatabasePutAnnotationOutcome } from "../outcome";
|
|
10
|
+
import { ImbricateDatabaseFullFeatureBase } from "./full-feature";
|
|
11
|
+
export declare abstract class ImbricateDatabaseEssentialBase extends ImbricateDatabaseFullFeatureBase implements IImbricateDatabase {
|
|
12
|
+
readonly annotations: DatabaseAnnotations;
|
|
13
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
14
|
+
putAnnotation(_namespace: string, _identifier: string, _value: DatabaseAnnotationValue, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutAnnotationOutcome>;
|
|
15
|
+
deleteAnnotation(_namespace: string, _identifier: string, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseDeleteAnnotationOutcome>;
|
|
16
|
+
addEditRecords(_records: DatabaseEditRecord[]): PromiseLike<ImbricateDatabaseAddEditRecordsOutcome>;
|
|
17
|
+
getEditRecords(): PromiseLike<ImbricateDatabaseGetEditRecordsOutcome>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database
|
|
5
|
+
* @description Essential
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseEssentialBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/database/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const full_feature_1 = require("./full-feature");
|
|
12
|
+
class ImbricateDatabaseEssentialBase extends full_feature_1.ImbricateDatabaseFullFeatureBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.annotations = {};
|
|
16
|
+
this.supportedFeatures = [
|
|
17
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
18
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
19
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
20
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_DOCUMENT,
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
putAnnotation(_namespace, _identifier, _value, _auditOptions) {
|
|
24
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION);
|
|
25
|
+
}
|
|
26
|
+
deleteAnnotation(_namespace, _identifier, _auditOptions) {
|
|
27
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_ANNOTATION);
|
|
28
|
+
}
|
|
29
|
+
addEditRecords(_records) {
|
|
30
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD);
|
|
31
|
+
}
|
|
32
|
+
getEditRecords() {
|
|
33
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ImbricateDatabaseEssentialBase = ImbricateDatabaseEssentialBase;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database
|
|
4
|
+
* @description Exclude Annotation
|
|
5
|
+
*/
|
|
6
|
+
import { DatabaseAnnotationValue, DatabaseAnnotations, ImbricateDatabaseAuditOptions } from "../definition";
|
|
7
|
+
import { IMBRICATE_DATABASE_FEATURE } from "../feature";
|
|
8
|
+
import { IImbricateDatabase } from "../interface";
|
|
9
|
+
import { ImbricateDatabaseDeleteAnnotationOutcome, ImbricateDatabasePutAnnotationOutcome } from "../outcome";
|
|
10
|
+
import { ImbricateDatabaseFullFeatureBase } from "./full-feature";
|
|
11
|
+
export declare abstract class ImbricateDatabaseExcludeAnnotationBase extends ImbricateDatabaseFullFeatureBase implements IImbricateDatabase {
|
|
12
|
+
readonly annotations: DatabaseAnnotations;
|
|
13
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
14
|
+
putAnnotation(_namespace: string, _identifier: string, _value: DatabaseAnnotationValue, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutAnnotationOutcome>;
|
|
15
|
+
deleteAnnotation(_namespace: string, _identifier: string, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseDeleteAnnotationOutcome>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database
|
|
5
|
+
* @description Exclude Annotation
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseExcludeAnnotationBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/database/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const full_feature_1 = require("./full-feature");
|
|
12
|
+
class ImbricateDatabaseExcludeAnnotationBase extends full_feature_1.ImbricateDatabaseFullFeatureBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.annotations = {};
|
|
16
|
+
this.supportedFeatures = [
|
|
17
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
18
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
19
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
20
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_DOCUMENT,
|
|
21
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD,
|
|
22
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD,
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
putAnnotation(_namespace, _identifier, _value, _auditOptions) {
|
|
26
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION);
|
|
27
|
+
}
|
|
28
|
+
deleteAnnotation(_namespace, _identifier, _auditOptions) {
|
|
29
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_ANNOTATION);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ImbricateDatabaseExcludeAnnotationBase = ImbricateDatabaseExcludeAnnotationBase;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database
|
|
4
|
+
* @description Exclude Edit Records
|
|
5
|
+
*/
|
|
6
|
+
import { DatabaseEditRecord } from "../definition";
|
|
7
|
+
import { IMBRICATE_DATABASE_FEATURE } from "../feature";
|
|
8
|
+
import { IImbricateDatabase } from "../interface";
|
|
9
|
+
import { ImbricateDatabaseAddEditRecordsOutcome, ImbricateDatabaseGetEditRecordsOutcome } from "../outcome";
|
|
10
|
+
import { ImbricateDatabaseFullFeatureBase } from "./full-feature";
|
|
11
|
+
export declare abstract class ImbricateDatabaseExcludeEditRecordsBase extends ImbricateDatabaseFullFeatureBase implements IImbricateDatabase {
|
|
12
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
13
|
+
addEditRecords(_records: DatabaseEditRecord[]): PromiseLike<ImbricateDatabaseAddEditRecordsOutcome>;
|
|
14
|
+
getEditRecords(): PromiseLike<ImbricateDatabaseGetEditRecordsOutcome>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database
|
|
5
|
+
* @description Exclude Edit Records
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseExcludeEditRecordsBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/database/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const full_feature_1 = require("./full-feature");
|
|
12
|
+
class ImbricateDatabaseExcludeEditRecordsBase extends full_feature_1.ImbricateDatabaseFullFeatureBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.supportedFeatures = [
|
|
16
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
17
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
18
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
19
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_DOCUMENT,
|
|
20
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION,
|
|
21
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_ANNOTATION,
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
addEditRecords(_records) {
|
|
25
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD);
|
|
26
|
+
}
|
|
27
|
+
getEditRecords() {
|
|
28
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ImbricateDatabaseExcludeEditRecordsBase = ImbricateDatabaseExcludeEditRecordsBase;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database_BaseClass
|
|
4
|
+
* @description Full Feature Readonly
|
|
5
|
+
*/
|
|
6
|
+
import { DocumentProperties } from "../../document/property";
|
|
7
|
+
import { DatabaseAnnotationValue, DatabaseEditRecord, ImbricateDatabaseAuditOptions } from "../definition";
|
|
8
|
+
import { IMBRICATE_DATABASE_FEATURE } from "../feature";
|
|
9
|
+
import { IImbricateDatabase } from "../interface";
|
|
10
|
+
import { ImbricateDatabaseAddEditRecordsOutcome, ImbricateDatabaseCreateDocumentOutcome, ImbricateDatabaseDeleteAnnotationOutcome, ImbricateDatabasePutAnnotationOutcome, ImbricateDatabasePutSchemaOutcome, ImbricateDatabaseRemoveDocumentOutcome } from "../outcome";
|
|
11
|
+
import { ImbricateDatabaseSchema } from "../schema";
|
|
12
|
+
import { ImbricateDatabaseFullFeatureBase } from "./full-feature";
|
|
13
|
+
export declare abstract class ImbricateDatabaseFullFeatureReadOnlyBase extends ImbricateDatabaseFullFeatureBase implements IImbricateDatabase {
|
|
14
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
15
|
+
putSchema(_schema: ImbricateDatabaseSchema, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutSchemaOutcome>;
|
|
16
|
+
createDocument(_properties: DocumentProperties, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseCreateDocumentOutcome>;
|
|
17
|
+
removeDocument(_uniqueIdentifier: string, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseRemoveDocumentOutcome>;
|
|
18
|
+
putAnnotation(_namespace: string, _identifier: string, _value: DatabaseAnnotationValue, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutAnnotationOutcome>;
|
|
19
|
+
deleteAnnotation(_namespace: string, _identifier: string, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseDeleteAnnotationOutcome>;
|
|
20
|
+
addEditRecords(_records: DatabaseEditRecord[]): PromiseLike<ImbricateDatabaseAddEditRecordsOutcome>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database_BaseClass
|
|
5
|
+
* @description Full Feature Readonly
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseFullFeatureReadOnlyBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/database/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const full_feature_1 = require("./full-feature");
|
|
12
|
+
class ImbricateDatabaseFullFeatureReadOnlyBase extends full_feature_1.ImbricateDatabaseFullFeatureBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.supportedFeatures = [
|
|
16
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_DOCUMENT,
|
|
17
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD,
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
putSchema(_schema, _auditOptions) {
|
|
21
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA);
|
|
22
|
+
}
|
|
23
|
+
createDocument(_properties, _auditOptions) {
|
|
24
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT);
|
|
25
|
+
}
|
|
26
|
+
removeDocument(_uniqueIdentifier, _auditOptions) {
|
|
27
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT);
|
|
28
|
+
}
|
|
29
|
+
putAnnotation(_namespace, _identifier, _value, _auditOptions) {
|
|
30
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION);
|
|
31
|
+
}
|
|
32
|
+
deleteAnnotation(_namespace, _identifier, _auditOptions) {
|
|
33
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_ANNOTATION);
|
|
34
|
+
}
|
|
35
|
+
addEditRecords(_records) {
|
|
36
|
+
throw feature_not_supported_1.ImbricateDatabaseFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ImbricateDatabaseFullFeatureReadOnlyBase = ImbricateDatabaseFullFeatureReadOnlyBase;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database_BaseClass
|
|
4
|
+
* @description Full Feature
|
|
5
|
+
*/
|
|
6
|
+
import { DocumentProperties } from "../../document/property";
|
|
7
|
+
import { DatabaseAnnotationValue, DatabaseAnnotations, DatabaseEditRecord, ImbricateDatabaseAuditOptions, ImbricateDocumentQuery } from "../definition";
|
|
8
|
+
import { IMBRICATE_DATABASE_FEATURE } from "../feature";
|
|
9
|
+
import { IImbricateDatabase } from "../interface";
|
|
10
|
+
import { ImbricateDatabaseAddEditRecordsOutcome, ImbricateDatabaseCountDocumentsOutcome, ImbricateDatabaseCreateDocumentOutcome, ImbricateDatabaseDeleteAnnotationOutcome, ImbricateDatabaseGetDocumentOutcome, ImbricateDatabaseGetEditRecordsOutcome, ImbricateDatabasePutAnnotationOutcome, ImbricateDatabasePutSchemaOutcome, ImbricateDatabaseQueryDocumentsOutcome, ImbricateDatabaseRemoveDocumentOutcome } from "../outcome";
|
|
11
|
+
import { ImbricateDatabaseSchema } from "../schema";
|
|
12
|
+
export declare abstract class ImbricateDatabaseFullFeatureBase implements IImbricateDatabase {
|
|
13
|
+
abstract readonly uniqueIdentifier: string;
|
|
14
|
+
abstract readonly databaseName: string;
|
|
15
|
+
abstract readonly databaseVersion: string;
|
|
16
|
+
abstract readonly schema: ImbricateDatabaseSchema;
|
|
17
|
+
abstract readonly annotations: DatabaseAnnotations;
|
|
18
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
19
|
+
abstract putSchema(schema: ImbricateDatabaseSchema, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutSchemaOutcome>;
|
|
20
|
+
abstract createDocument(properties: DocumentProperties, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseCreateDocumentOutcome>;
|
|
21
|
+
abstract getDocument(uniqueIdentifier: string): PromiseLike<ImbricateDatabaseGetDocumentOutcome>;
|
|
22
|
+
abstract queryDocuments(query: ImbricateDocumentQuery): PromiseLike<ImbricateDatabaseQueryDocumentsOutcome>;
|
|
23
|
+
abstract countDocuments(query: ImbricateDocumentQuery): PromiseLike<ImbricateDatabaseCountDocumentsOutcome>;
|
|
24
|
+
abstract removeDocument(uniqueIdentifier: string, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseRemoveDocumentOutcome>;
|
|
25
|
+
abstract putAnnotation(namespace: string, identifier: string, value: DatabaseAnnotationValue, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabasePutAnnotationOutcome>;
|
|
26
|
+
abstract deleteAnnotation(namespace: string, identifier: string, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseDeleteAnnotationOutcome>;
|
|
27
|
+
abstract addEditRecords(records: DatabaseEditRecord[]): PromiseLike<ImbricateDatabaseAddEditRecordsOutcome>;
|
|
28
|
+
abstract getEditRecords(): PromiseLike<ImbricateDatabaseGetEditRecordsOutcome>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database_BaseClass
|
|
5
|
+
* @description Full Feature
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseFullFeatureBase = void 0;
|
|
9
|
+
const feature_1 = require("../feature");
|
|
10
|
+
class ImbricateDatabaseFullFeatureBase {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.supportedFeatures = [
|
|
13
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
14
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
15
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
16
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION,
|
|
17
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_ANNOTATION,
|
|
18
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_DOCUMENT,
|
|
19
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD,
|
|
20
|
+
feature_1.IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD,
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ImbricateDatabaseFullFeatureBase = ImbricateDatabaseFullFeatureBase;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Database
|
|
4
|
+
* @description Export
|
|
5
|
+
*/
|
|
6
|
+
export * from "./base-class/essential";
|
|
7
|
+
export * from "./base-class/essential-readonly";
|
|
8
|
+
export * from "./base-class/exclude-annotation";
|
|
9
|
+
export * from "./base-class/full-feature";
|
|
10
|
+
export * from "./base-class/full-feature-readonly";
|
|
11
|
+
export * from "./definition";
|
|
12
|
+
export * from "./feature";
|
|
13
|
+
export * from "./interface";
|
|
14
|
+
export * from "./outcome";
|
|
15
|
+
export * from "./schema";
|
|
16
|
+
export * from "./validate";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Database
|
|
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("./base-class/essential"), exports);
|
|
23
|
+
__exportStar(require("./base-class/essential-readonly"), exports);
|
|
24
|
+
__exportStar(require("./base-class/exclude-annotation"), exports);
|
|
25
|
+
__exportStar(require("./base-class/full-feature"), exports);
|
|
26
|
+
__exportStar(require("./base-class/full-feature-readonly"), exports);
|
|
27
|
+
__exportStar(require("./definition"), exports);
|
|
28
|
+
__exportStar(require("./feature"), exports);
|
|
29
|
+
__exportStar(require("./interface"), exports);
|
|
30
|
+
__exportStar(require("./outcome"), exports);
|
|
31
|
+
__exportStar(require("./schema"), exports);
|
|
32
|
+
__exportStar(require("./validate"), exports);
|
package/database/feature.d.ts
CHANGED
|
@@ -6,16 +6,11 @@
|
|
|
6
6
|
export declare enum IMBRICATE_DATABASE_FEATURE {
|
|
7
7
|
DATABASE_PUT_SCHEMA = "DATABASE_PUT_SCHEMA",
|
|
8
8
|
DATABASE_CREATE_DOCUMENT = "DATABASE_CREATE_DOCUMENT",
|
|
9
|
-
DATABASE_UPDATE_DOCUMENT = "DATABASE_UPDATE_DOCUMENT",
|
|
10
9
|
DATABASE_DELETE_DOCUMENT = "DATABASE_DELETE_DOCUMENT",
|
|
10
|
+
DATABASE_GET_DOCUMENT = "DATABASE_GET_DOCUMENT",
|
|
11
11
|
DATABASE_PUT_ANNOTATION = "DATABASE_PUT_ANNOTATION",
|
|
12
|
-
|
|
13
|
-
DATABASE_QUERY_DOCUMENT = "DATABASE_QUERY_DOCUMENT",
|
|
12
|
+
DATABASE_DELETE_ANNOTATION = "DATABASE_DELETE_ANNOTATION",
|
|
14
13
|
DATABASE_PUT_EDIT_RECORD = "DATABASE_PUT_EDIT_RECORD",
|
|
15
14
|
DATABASE_GET_EDIT_RECORD = "DATABASE_GET_EDIT_RECORD"
|
|
16
15
|
}
|
|
17
|
-
export declare const fullSupportedDatabaseFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
18
|
-
export declare const editRecordExcludedDatabaseFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
19
|
-
export declare const annotationExcludedDatabaseFeatures: IMBRICATE_DATABASE_FEATURE[];
|
|
20
|
-
export declare const IMBRICATE_DATABASE_PRESET_FEATURES: Record<string, IMBRICATE_DATABASE_FEATURE[]>;
|
|
21
16
|
export declare const checkImbricateDatabaseFeatureSupported: (features: IMBRICATE_DATABASE_FEATURE[], feature: IMBRICATE_DATABASE_FEATURE) => boolean;
|
package/database/feature.js
CHANGED
|
@@ -5,53 +5,18 @@
|
|
|
5
5
|
* @description Feature
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.checkImbricateDatabaseFeatureSupported = exports.
|
|
8
|
+
exports.checkImbricateDatabaseFeatureSupported = exports.IMBRICATE_DATABASE_FEATURE = void 0;
|
|
9
9
|
var IMBRICATE_DATABASE_FEATURE;
|
|
10
10
|
(function (IMBRICATE_DATABASE_FEATURE) {
|
|
11
11
|
IMBRICATE_DATABASE_FEATURE["DATABASE_PUT_SCHEMA"] = "DATABASE_PUT_SCHEMA";
|
|
12
12
|
IMBRICATE_DATABASE_FEATURE["DATABASE_CREATE_DOCUMENT"] = "DATABASE_CREATE_DOCUMENT";
|
|
13
|
-
IMBRICATE_DATABASE_FEATURE["DATABASE_UPDATE_DOCUMENT"] = "DATABASE_UPDATE_DOCUMENT";
|
|
14
13
|
IMBRICATE_DATABASE_FEATURE["DATABASE_DELETE_DOCUMENT"] = "DATABASE_DELETE_DOCUMENT";
|
|
14
|
+
IMBRICATE_DATABASE_FEATURE["DATABASE_GET_DOCUMENT"] = "DATABASE_GET_DOCUMENT";
|
|
15
15
|
IMBRICATE_DATABASE_FEATURE["DATABASE_PUT_ANNOTATION"] = "DATABASE_PUT_ANNOTATION";
|
|
16
|
-
IMBRICATE_DATABASE_FEATURE["
|
|
17
|
-
IMBRICATE_DATABASE_FEATURE["DATABASE_QUERY_DOCUMENT"] = "DATABASE_QUERY_DOCUMENT";
|
|
16
|
+
IMBRICATE_DATABASE_FEATURE["DATABASE_DELETE_ANNOTATION"] = "DATABASE_DELETE_ANNOTATION";
|
|
18
17
|
IMBRICATE_DATABASE_FEATURE["DATABASE_PUT_EDIT_RECORD"] = "DATABASE_PUT_EDIT_RECORD";
|
|
19
18
|
IMBRICATE_DATABASE_FEATURE["DATABASE_GET_EDIT_RECORD"] = "DATABASE_GET_EDIT_RECORD";
|
|
20
19
|
})(IMBRICATE_DATABASE_FEATURE || (exports.IMBRICATE_DATABASE_FEATURE = IMBRICATE_DATABASE_FEATURE = {}));
|
|
21
|
-
exports.fullSupportedDatabaseFeatures = [
|
|
22
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
23
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
24
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_UPDATE_DOCUMENT,
|
|
25
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
26
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION,
|
|
27
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_REMOVE_ANNOTATION,
|
|
28
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_QUERY_DOCUMENT,
|
|
29
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD,
|
|
30
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD,
|
|
31
|
-
];
|
|
32
|
-
exports.editRecordExcludedDatabaseFeatures = [
|
|
33
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
34
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
35
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_UPDATE_DOCUMENT,
|
|
36
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
37
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_ANNOTATION,
|
|
38
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_REMOVE_ANNOTATION,
|
|
39
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_QUERY_DOCUMENT,
|
|
40
|
-
];
|
|
41
|
-
exports.annotationExcludedDatabaseFeatures = [
|
|
42
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_SCHEMA,
|
|
43
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_CREATE_DOCUMENT,
|
|
44
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_UPDATE_DOCUMENT,
|
|
45
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_DELETE_DOCUMENT,
|
|
46
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_PUT_EDIT_RECORD,
|
|
47
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_GET_EDIT_RECORD,
|
|
48
|
-
IMBRICATE_DATABASE_FEATURE.DATABASE_QUERY_DOCUMENT,
|
|
49
|
-
];
|
|
50
|
-
exports.IMBRICATE_DATABASE_PRESET_FEATURES = {
|
|
51
|
-
FULL_SUPPORTED_FEATURES: exports.fullSupportedDatabaseFeatures,
|
|
52
|
-
EDIT_RECORD_EXCLUDED_FEATURES: exports.editRecordExcludedDatabaseFeatures,
|
|
53
|
-
ANNOTATION_EXCLUDED_FEATURES: exports.annotationExcludedDatabaseFeatures,
|
|
54
|
-
};
|
|
55
20
|
const checkImbricateDatabaseFeatureSupported = (features, feature) => {
|
|
56
21
|
return features.includes(feature);
|
|
57
22
|
};
|