@imbricate/core 3.12.0 → 3.14.2
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/definition.d.ts +2 -2
- package/database/export.d.ts +16 -0
- package/database/export.js +32 -0
- package/database/outcome.d.ts +21 -10
- package/database/outcome.js +12 -1
- 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 +30 -0
- package/database-manager/outcome.js +20 -0
- package/document/definition.d.ts +2 -2
- package/document/export.d.ts +22 -0
- package/document/export.js +38 -0
- package/document/outcome.d.ts +10 -5
- package/document/outcome.js +6 -1
- 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/export.d.ts +22 -0
- package/error/export.js +38 -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 -42
- package/index.js +11 -42
- 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 +12 -0
- package/origin/outcome.js +11 -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 +11 -0
- package/static/outcome.js +11 -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 +18 -0
- package/static-manager/outcome.js +14 -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 +11 -0
- package/text/outcome.js +11 -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 +18 -0
- package/text-manager/outcome.js +14 -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);
|
package/database/definition.d.ts
CHANGED
|
@@ -73,8 +73,8 @@ export type DatabaseEditOperation<T extends IMBRICATE_DATABASE_EDIT_TYPE> = {
|
|
|
73
73
|
export type DatabaseEditRecord = {
|
|
74
74
|
readonly uniqueIdentifier: string;
|
|
75
75
|
readonly editAt: Date;
|
|
76
|
-
readonly beforeVersion:
|
|
77
|
-
readonly afterVersion:
|
|
76
|
+
readonly beforeVersion: string;
|
|
77
|
+
readonly afterVersion: string;
|
|
78
78
|
readonly operations: Array<DatabaseEditOperation<IMBRICATE_DATABASE_EDIT_TYPE>>;
|
|
79
79
|
readonly author?: ImbricateAuthor;
|
|
80
80
|
};
|
|
@@ -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/outcome.d.ts
CHANGED
|
@@ -6,53 +6,64 @@
|
|
|
6
6
|
import { IImbricateDocument } from "../document/interface";
|
|
7
7
|
import { DatabaseEditRecord } from "./definition";
|
|
8
8
|
export declare const S_Database_PutSchema_VersionConflict: unique symbol;
|
|
9
|
-
export
|
|
9
|
+
export declare const S_Database_PutSchema_InvalidSchema: unique symbol;
|
|
10
|
+
export declare const S_Database_PutSchema_Unknown: unique symbol;
|
|
11
|
+
export type ImbricateDatabasePutSchemaOutcomeSymbol = typeof S_Database_PutSchema_VersionConflict | typeof S_Database_PutSchema_InvalidSchema | typeof S_Database_PutSchema_Unknown;
|
|
10
12
|
export type ImbricateDatabasePutSchemaOutcome = {
|
|
11
13
|
readonly editRecords: DatabaseEditRecord[];
|
|
12
14
|
} | ImbricateDatabasePutSchemaOutcomeSymbol;
|
|
13
15
|
export declare const S_Database_CreateDocument_IdentifierDuplicated: unique symbol;
|
|
14
|
-
export
|
|
16
|
+
export declare const S_Database_CreateDocument_Unknown: unique symbol;
|
|
17
|
+
export type ImbricateDatabaseCreateDocumentOutcomeSymbol = typeof S_Database_CreateDocument_IdentifierDuplicated | typeof S_Database_CreateDocument_Unknown;
|
|
15
18
|
export type ImbricateDatabaseCreateDocumentOutcome = {
|
|
16
19
|
readonly document: IImbricateDocument;
|
|
17
20
|
} | ImbricateDatabaseCreateDocumentOutcomeSymbol;
|
|
18
21
|
export declare const S_Database_GetDocument_NotFound: unique symbol;
|
|
19
|
-
export
|
|
22
|
+
export declare const S_Database_GetDocument_Unknown: unique symbol;
|
|
23
|
+
export type ImbricateDatabaseGetDocumentOutcomeSymbol = typeof S_Database_GetDocument_NotFound | typeof S_Database_GetDocument_Unknown;
|
|
20
24
|
export type ImbricateDatabaseGetDocumentOutcome = {
|
|
21
25
|
readonly document: IImbricateDocument;
|
|
22
26
|
} | ImbricateDatabaseGetDocumentOutcomeSymbol;
|
|
23
27
|
export declare const S_Database_QueryDocuments_Stale: unique symbol;
|
|
24
|
-
export
|
|
28
|
+
export declare const S_Database_QueryDocuments_Unknown: unique symbol;
|
|
29
|
+
export type ImbricateDatabaseQueryDocumentsOutcomeSymbol = typeof S_Database_QueryDocuments_Stale | typeof S_Database_QueryDocuments_Unknown;
|
|
25
30
|
export type ImbricateDatabaseQueryDocumentsOutcome = {
|
|
26
31
|
readonly documents: IImbricateDocument[];
|
|
27
32
|
} | ImbricateDatabaseQueryDocumentsOutcomeSymbol;
|
|
28
33
|
export declare const S_Database_CountDocuments_Stale: unique symbol;
|
|
29
|
-
export
|
|
34
|
+
export declare const S_Database_CountDocuments_Unknown: unique symbol;
|
|
35
|
+
export type ImbricateDatabaseCountDocumentsOutcomeSymbol = typeof S_Database_CountDocuments_Stale | typeof S_Database_CountDocuments_Unknown;
|
|
30
36
|
export type ImbricateDatabaseCountDocumentsOutcome = {
|
|
31
37
|
readonly count: number;
|
|
32
38
|
} | ImbricateDatabaseCountDocumentsOutcomeSymbol;
|
|
33
39
|
export declare const S_Database_RemoveDocument_NotFound: unique symbol;
|
|
34
|
-
export
|
|
40
|
+
export declare const S_Database_RemoveDocument_Unknown: unique symbol;
|
|
41
|
+
export type ImbricateDatabaseRemoveDocumentOutcomeSymbol = typeof S_Database_RemoveDocument_NotFound | typeof S_Database_RemoveDocument_Unknown;
|
|
35
42
|
export type ImbricateDatabaseRemoveDocumentOutcome = {
|
|
36
43
|
readonly success: boolean;
|
|
37
44
|
} | ImbricateDatabaseRemoveDocumentOutcomeSymbol;
|
|
38
45
|
export declare const S_Database_PutAnnotation_InvalidNamespace: unique symbol;
|
|
39
46
|
export declare const S_Database_PutAnnotation_InvalidIdentifier: unique symbol;
|
|
40
|
-
export
|
|
47
|
+
export declare const S_Database_PutAnnotation_Unknown: unique symbol;
|
|
48
|
+
export type ImbricateDatabasePutAnnotationOutcomeSymbol = typeof S_Database_PutAnnotation_InvalidNamespace | typeof S_Database_PutAnnotation_InvalidIdentifier | typeof S_Database_PutAnnotation_Unknown;
|
|
41
49
|
export type ImbricateDatabasePutAnnotationOutcome = {
|
|
42
50
|
readonly editRecords: DatabaseEditRecord[];
|
|
43
51
|
} | ImbricateDatabasePutAnnotationOutcomeSymbol;
|
|
44
52
|
export declare const S_Database_DeleteAnnotation_NotFound: unique symbol;
|
|
45
|
-
export
|
|
53
|
+
export declare const S_Database_DeleteAnnotation_Unknown: unique symbol;
|
|
54
|
+
export type ImbricateDatabaseDeleteAnnotationOutcomeSymbol = typeof S_Database_DeleteAnnotation_NotFound | typeof S_Database_DeleteAnnotation_Unknown;
|
|
46
55
|
export type ImbricateDatabaseDeleteAnnotationOutcome = {
|
|
47
56
|
readonly editRecords: DatabaseEditRecord[];
|
|
48
57
|
} | ImbricateDatabaseDeleteAnnotationOutcomeSymbol;
|
|
49
58
|
export declare const S_Database_AddEditRecords_InvalidEditRecord: unique symbol;
|
|
50
|
-
export
|
|
59
|
+
export declare const S_Database_AddEditRecords_Unknown: unique symbol;
|
|
60
|
+
export type ImbricateDatabaseAddEditRecordsOutcomeSymbol = typeof S_Database_AddEditRecords_InvalidEditRecord | typeof S_Database_AddEditRecords_Unknown;
|
|
51
61
|
export type ImbricateDatabaseAddEditRecordsOutcome = {
|
|
52
62
|
readonly editRecords: DatabaseEditRecord[];
|
|
53
63
|
} | ImbricateDatabaseAddEditRecordsOutcomeSymbol;
|
|
54
64
|
export declare const S_Database_GetEditRecords_NotFound: unique symbol;
|
|
55
|
-
export
|
|
65
|
+
export declare const S_Database_GetEditRecords_Unknown: unique symbol;
|
|
66
|
+
export type ImbricateDatabaseGetEditRecordsOutcomeSymbol = typeof S_Database_GetEditRecords_NotFound | typeof S_Database_GetEditRecords_Unknown;
|
|
56
67
|
export type ImbricateDatabaseGetEditRecordsOutcome = {
|
|
57
68
|
readonly editRecords: DatabaseEditRecord[];
|
|
58
69
|
} | ImbricateDatabaseGetEditRecordsOutcomeSymbol;
|
package/database/outcome.js
CHANGED
|
@@ -5,24 +5,35 @@
|
|
|
5
5
|
* @description Outcome
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.S_Database_GetEditRecords_NotFound = exports.S_Database_AddEditRecords_InvalidEditRecord = exports.S_Database_DeleteAnnotation_NotFound = exports.S_Database_PutAnnotation_InvalidIdentifier = exports.S_Database_PutAnnotation_InvalidNamespace = exports.S_Database_RemoveDocument_NotFound = exports.S_Database_CountDocuments_Stale = exports.S_Database_QueryDocuments_Stale = exports.S_Database_GetDocument_NotFound = exports.S_Database_CreateDocument_IdentifierDuplicated = exports.S_Database_PutSchema_VersionConflict = void 0;
|
|
8
|
+
exports.S_Database_GetEditRecords_Unknown = exports.S_Database_GetEditRecords_NotFound = exports.S_Database_AddEditRecords_Unknown = exports.S_Database_AddEditRecords_InvalidEditRecord = exports.S_Database_DeleteAnnotation_Unknown = exports.S_Database_DeleteAnnotation_NotFound = exports.S_Database_PutAnnotation_Unknown = exports.S_Database_PutAnnotation_InvalidIdentifier = exports.S_Database_PutAnnotation_InvalidNamespace = exports.S_Database_RemoveDocument_Unknown = exports.S_Database_RemoveDocument_NotFound = exports.S_Database_CountDocuments_Unknown = exports.S_Database_CountDocuments_Stale = exports.S_Database_QueryDocuments_Unknown = exports.S_Database_QueryDocuments_Stale = exports.S_Database_GetDocument_Unknown = exports.S_Database_GetDocument_NotFound = exports.S_Database_CreateDocument_Unknown = exports.S_Database_CreateDocument_IdentifierDuplicated = exports.S_Database_PutSchema_Unknown = exports.S_Database_PutSchema_InvalidSchema = exports.S_Database_PutSchema_VersionConflict = void 0;
|
|
9
9
|
// Put Schema
|
|
10
10
|
exports.S_Database_PutSchema_VersionConflict = Symbol("Database_PutSchema_VersionConflict");
|
|
11
|
+
exports.S_Database_PutSchema_InvalidSchema = Symbol("Database_PutSchema_InvalidSchema");
|
|
12
|
+
exports.S_Database_PutSchema_Unknown = Symbol("Database_PutSchema_Unknown");
|
|
11
13
|
// Create Document
|
|
12
14
|
exports.S_Database_CreateDocument_IdentifierDuplicated = Symbol("Database_CreateDocument_IdentifierDuplicated");
|
|
15
|
+
exports.S_Database_CreateDocument_Unknown = Symbol("Database_CreateDocument_Unknown");
|
|
13
16
|
// Get Document
|
|
14
17
|
exports.S_Database_GetDocument_NotFound = Symbol("Database_GetDocument_NotFound");
|
|
18
|
+
exports.S_Database_GetDocument_Unknown = Symbol("Database_GetDocument_Unknown");
|
|
15
19
|
// Query Documents
|
|
16
20
|
exports.S_Database_QueryDocuments_Stale = Symbol("Database_QueryDocuments_Stale");
|
|
21
|
+
exports.S_Database_QueryDocuments_Unknown = Symbol("Database_QueryDocuments_Unknown");
|
|
17
22
|
exports.S_Database_CountDocuments_Stale = Symbol("Database_CountDocuments_Stale");
|
|
23
|
+
exports.S_Database_CountDocuments_Unknown = Symbol("Database_CountDocuments_Unknown");
|
|
18
24
|
// Remove Document
|
|
19
25
|
exports.S_Database_RemoveDocument_NotFound = Symbol("Database_RemoveDocument_NotFound");
|
|
26
|
+
exports.S_Database_RemoveDocument_Unknown = Symbol("Database_RemoveDocument_Unknown");
|
|
20
27
|
// Put Annotation
|
|
21
28
|
exports.S_Database_PutAnnotation_InvalidNamespace = Symbol("Database_PutAnnotation_InvalidNamespace");
|
|
22
29
|
exports.S_Database_PutAnnotation_InvalidIdentifier = Symbol("Database_PutAnnotation_InvalidIdentifier");
|
|
30
|
+
exports.S_Database_PutAnnotation_Unknown = Symbol("Database_PutAnnotation_Unknown");
|
|
23
31
|
// Delete Annotation
|
|
24
32
|
exports.S_Database_DeleteAnnotation_NotFound = Symbol("Database_DeleteAnnotation_NotFound");
|
|
33
|
+
exports.S_Database_DeleteAnnotation_Unknown = Symbol("Database_DeleteAnnotation_Unknown");
|
|
25
34
|
// Add Edit Records
|
|
26
35
|
exports.S_Database_AddEditRecords_InvalidEditRecord = Symbol("Database_AddEditRecords_InvalidEditRecord");
|
|
36
|
+
exports.S_Database_AddEditRecords_Unknown = Symbol("Database_AddEditRecords_Unknown");
|
|
27
37
|
// Get Edit Records
|
|
28
38
|
exports.S_Database_GetEditRecords_NotFound = Symbol("Database_GetEditRecords_NotFound");
|
|
39
|
+
exports.S_Database_GetEditRecords_Unknown = Symbol("Database_GetEditRecords_Unknown");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace DatabaseManager
|
|
4
|
+
* @description Full Feature
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateDatabaseAuditOptions } from "../../database/definition";
|
|
7
|
+
import { ImbricateDatabaseSchemaForCreation } from "../../database/schema";
|
|
8
|
+
import { IImbricateDatabaseManager } from "../database-manager";
|
|
9
|
+
import { IMBRICATE_DATABASE_MANAGER_FEATURE } from "../feature";
|
|
10
|
+
import { ImbricateDatabaseManagerCreateDatabaseOutcome, ImbricateDatabaseManagerGetDatabaseOutcome, ImbricateDatabaseManagerListDatabasesOutcome, ImbricateDatabaseManagerRemoveDatabaseOutcome } from "../outcome";
|
|
11
|
+
export declare abstract class ImbricateDatabaseManagerFullFeatureBase implements IImbricateDatabaseManager {
|
|
12
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_MANAGER_FEATURE[];
|
|
13
|
+
abstract listDatabases(): PromiseLike<ImbricateDatabaseManagerListDatabasesOutcome>;
|
|
14
|
+
abstract getDatabase(uniqueIdentifier: string): PromiseLike<ImbricateDatabaseManagerGetDatabaseOutcome>;
|
|
15
|
+
abstract createDatabase(databaseName: string, schema: ImbricateDatabaseSchemaForCreation, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseManagerCreateDatabaseOutcome>;
|
|
16
|
+
abstract removeDatabase(uniqueIdentifier: string): PromiseLike<ImbricateDatabaseManagerRemoveDatabaseOutcome>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace DatabaseManager
|
|
5
|
+
* @description Full Feature
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseManagerFullFeatureBase = void 0;
|
|
9
|
+
const feature_1 = require("../feature");
|
|
10
|
+
class ImbricateDatabaseManagerFullFeatureBase {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.supportedFeatures = [
|
|
13
|
+
feature_1.IMBRICATE_DATABASE_MANAGER_FEATURE.DATABASE_MANAGER_GET_DATABASE,
|
|
14
|
+
feature_1.IMBRICATE_DATABASE_MANAGER_FEATURE.DATABASE_MANAGER_PUT_DATABASE,
|
|
15
|
+
feature_1.IMBRICATE_DATABASE_MANAGER_FEATURE.DATABASE_MANAGER_DELETE_DATABASE,
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.ImbricateDatabaseManagerFullFeatureBase = ImbricateDatabaseManagerFullFeatureBase;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace DatabaseManager
|
|
4
|
+
* @description Readonly
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateDatabaseAuditOptions } from "../../database/definition";
|
|
7
|
+
import { ImbricateDatabaseSchemaForCreation } from "../../database/schema";
|
|
8
|
+
import { IImbricateDatabaseManager } from "../database-manager";
|
|
9
|
+
import { IMBRICATE_DATABASE_MANAGER_FEATURE } from "../feature";
|
|
10
|
+
import { ImbricateDatabaseManagerCreateDatabaseOutcome, ImbricateDatabaseManagerRemoveDatabaseOutcome } from "../outcome";
|
|
11
|
+
import { ImbricateDatabaseManagerFullFeatureBase } from "./full-feature";
|
|
12
|
+
export declare abstract class ImbricateDatabaseManagerReadonlyBase extends ImbricateDatabaseManagerFullFeatureBase implements IImbricateDatabaseManager {
|
|
13
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_MANAGER_FEATURE[];
|
|
14
|
+
createDatabase(_databaseName: string, _schema: ImbricateDatabaseSchemaForCreation, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseManagerCreateDatabaseOutcome>;
|
|
15
|
+
removeDatabase(_uniqueIdentifier: string, _auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseManagerRemoveDatabaseOutcome>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace DatabaseManager
|
|
5
|
+
* @description Readonly
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.ImbricateDatabaseManagerReadonlyBase = void 0;
|
|
9
|
+
const feature_not_supported_1 = require("../../error/database-manager/feature-not-supported");
|
|
10
|
+
const feature_1 = require("../feature");
|
|
11
|
+
const full_feature_1 = require("./full-feature");
|
|
12
|
+
class ImbricateDatabaseManagerReadonlyBase extends full_feature_1.ImbricateDatabaseManagerFullFeatureBase {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.supportedFeatures = [
|
|
16
|
+
feature_1.IMBRICATE_DATABASE_MANAGER_FEATURE.DATABASE_MANAGER_GET_DATABASE,
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
createDatabase(_databaseName, _schema, _auditOptions) {
|
|
20
|
+
throw feature_not_supported_1.ImbricateDatabaseManagerFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_MANAGER_FEATURE.DATABASE_MANAGER_PUT_DATABASE);
|
|
21
|
+
}
|
|
22
|
+
removeDatabase(_uniqueIdentifier, _auditOptions) {
|
|
23
|
+
throw feature_not_supported_1.ImbricateDatabaseManagerFeatureNotSupportedError.withFeature(feature_1.IMBRICATE_DATABASE_MANAGER_FEATURE.DATABASE_MANAGER_DELETE_DATABASE);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.ImbricateDatabaseManagerReadonlyBase = ImbricateDatabaseManagerReadonlyBase;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace DatabaseManager
|
|
4
|
+
* @description Database Manager
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateDatabaseAuditOptions } from "../database/definition";
|
|
7
|
+
import { ImbricateDatabaseSchemaForCreation } from "../database/schema";
|
|
8
|
+
import { IMBRICATE_DATABASE_MANAGER_FEATURE } from "./feature";
|
|
9
|
+
import { ImbricateDatabaseManagerCreateDatabaseOutcome, ImbricateDatabaseManagerGetDatabaseOutcome, ImbricateDatabaseManagerListDatabasesOutcome, ImbricateDatabaseManagerRemoveDatabaseOutcome } from "./outcome";
|
|
10
|
+
export interface IImbricateDatabaseManager {
|
|
11
|
+
/**
|
|
12
|
+
* Supported features of the database manager
|
|
13
|
+
*/
|
|
14
|
+
readonly supportedFeatures: IMBRICATE_DATABASE_MANAGER_FEATURE[];
|
|
15
|
+
/**
|
|
16
|
+
* List all databases in the origin
|
|
17
|
+
*
|
|
18
|
+
* @returns a promise of the databases in the origin
|
|
19
|
+
* Symbol: S_DatabaseManager_ListDatabases_Stale - if the databases are stale
|
|
20
|
+
*/
|
|
21
|
+
listDatabases(): PromiseLike<ImbricateDatabaseManagerListDatabasesOutcome>;
|
|
22
|
+
/**
|
|
23
|
+
* Get one database from the origin
|
|
24
|
+
*
|
|
25
|
+
* @param uniqueIdentifier unique identifier of the database
|
|
26
|
+
*
|
|
27
|
+
* @returns a promise of the database
|
|
28
|
+
* Symbol: S_DatabaseManager_GetDatabase_NotFound - if the database is not found
|
|
29
|
+
*/
|
|
30
|
+
getDatabase(uniqueIdentifier: string): PromiseLike<ImbricateDatabaseManagerGetDatabaseOutcome>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a new database
|
|
33
|
+
*
|
|
34
|
+
* @param databaseName name of the database
|
|
35
|
+
* @param schema schema of the database
|
|
36
|
+
* @param auditOptions audit options of the database
|
|
37
|
+
*
|
|
38
|
+
* @returns a promise of the created database
|
|
39
|
+
* Symbol: S_DatabaseManager_CreateDatabase_IdentifierDuplicated - if the identifier is duplicated
|
|
40
|
+
*/
|
|
41
|
+
createDatabase(databaseName: string, schema: ImbricateDatabaseSchemaForCreation, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseManagerCreateDatabaseOutcome>;
|
|
42
|
+
/**
|
|
43
|
+
* Remove a database from the origin
|
|
44
|
+
*
|
|
45
|
+
* @param uniqueIdentifier unique identifier of the database
|
|
46
|
+
* @param auditOptions audit options of deletion
|
|
47
|
+
*
|
|
48
|
+
* @returns a promise of the outcome of the removal
|
|
49
|
+
* Symbol: S_DatabaseManager_RemoveDatabase_NotFound - if the database is not found
|
|
50
|
+
*/
|
|
51
|
+
removeDatabase(uniqueIdentifier: string, auditOptions?: ImbricateDatabaseAuditOptions): PromiseLike<ImbricateDatabaseManagerRemoveDatabaseOutcome>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace DatabaseManager
|
|
4
|
+
* @description Export
|
|
5
|
+
*/
|
|
6
|
+
export * from "./base-class/full-feature";
|
|
7
|
+
export * from "./base-class/readonly";
|
|
8
|
+
export * from "./database-manager";
|
|
9
|
+
export * from "./feature";
|
|
10
|
+
export * from "./outcome";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace DatabaseManager
|
|
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/full-feature"), exports);
|
|
23
|
+
__exportStar(require("./base-class/readonly"), exports);
|
|
24
|
+
__exportStar(require("./database-manager"), exports);
|
|
25
|
+
__exportStar(require("./feature"), exports);
|
|
26
|
+
__exportStar(require("./outcome"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace DatabaseManager
|
|
4
|
+
* @description Feature
|
|
5
|
+
*/
|
|
6
|
+
export declare enum IMBRICATE_DATABASE_MANAGER_FEATURE {
|
|
7
|
+
DATABASE_MANAGER_GET_DATABASE = "DATABASE_MANAGER_GET_DATABASE",
|
|
8
|
+
DATABASE_MANAGER_PUT_DATABASE = "DATABASE_MANAGER_PUT_DATABASE",
|
|
9
|
+
DATABASE_MANAGER_DELETE_DATABASE = "DATABASE_MANAGER_DELETE_DATABASE"
|
|
10
|
+
}
|
|
11
|
+
export declare const checkImbricateDatabaseManagerFeatureSupported: (features: IMBRICATE_DATABASE_MANAGER_FEATURE[], feature: IMBRICATE_DATABASE_MANAGER_FEATURE) => boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace DatabaseManager
|
|
5
|
+
* @description Feature
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.checkImbricateDatabaseManagerFeatureSupported = exports.IMBRICATE_DATABASE_MANAGER_FEATURE = void 0;
|
|
9
|
+
var IMBRICATE_DATABASE_MANAGER_FEATURE;
|
|
10
|
+
(function (IMBRICATE_DATABASE_MANAGER_FEATURE) {
|
|
11
|
+
IMBRICATE_DATABASE_MANAGER_FEATURE["DATABASE_MANAGER_GET_DATABASE"] = "DATABASE_MANAGER_GET_DATABASE";
|
|
12
|
+
IMBRICATE_DATABASE_MANAGER_FEATURE["DATABASE_MANAGER_PUT_DATABASE"] = "DATABASE_MANAGER_PUT_DATABASE";
|
|
13
|
+
IMBRICATE_DATABASE_MANAGER_FEATURE["DATABASE_MANAGER_DELETE_DATABASE"] = "DATABASE_MANAGER_DELETE_DATABASE";
|
|
14
|
+
})(IMBRICATE_DATABASE_MANAGER_FEATURE || (exports.IMBRICATE_DATABASE_MANAGER_FEATURE = IMBRICATE_DATABASE_MANAGER_FEATURE = {}));
|
|
15
|
+
const checkImbricateDatabaseManagerFeatureSupported = (features, feature) => {
|
|
16
|
+
return features.includes(feature);
|
|
17
|
+
};
|
|
18
|
+
exports.checkImbricateDatabaseManagerFeatureSupported = checkImbricateDatabaseManagerFeatureSupported;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace DatabaseManager
|
|
4
|
+
* @description Outcome
|
|
5
|
+
*/
|
|
6
|
+
import { IImbricateDatabase } from "../database/interface";
|
|
7
|
+
export declare const S_DatabaseManager_ListDatabases_Stale: unique symbol;
|
|
8
|
+
export declare const S_DatabaseManager_ListDatabases_Unknown: unique symbol;
|
|
9
|
+
export type ImbricateDatabaseManagerListDatabasesOutcomeSymbol = typeof S_DatabaseManager_ListDatabases_Stale | typeof S_DatabaseManager_ListDatabases_Unknown;
|
|
10
|
+
export type ImbricateDatabaseManagerListDatabasesOutcome = {
|
|
11
|
+
readonly databases: IImbricateDatabase[];
|
|
12
|
+
} | ImbricateDatabaseManagerListDatabasesOutcomeSymbol;
|
|
13
|
+
export declare const S_DatabaseManager_GetDatabase_NotFound: unique symbol;
|
|
14
|
+
export declare const S_DatabaseManager_GetDatabase_Unknown: unique symbol;
|
|
15
|
+
export type ImbricateDatabaseManagerGetDatabaseOutcomeSymbol = typeof S_DatabaseManager_GetDatabase_NotFound | typeof S_DatabaseManager_GetDatabase_Unknown;
|
|
16
|
+
export type ImbricateDatabaseManagerGetDatabaseOutcome = {
|
|
17
|
+
readonly database: IImbricateDatabase;
|
|
18
|
+
} | ImbricateDatabaseManagerGetDatabaseOutcomeSymbol;
|
|
19
|
+
export declare const S_DatabaseManager_CreateDatabase_IdentifierDuplicated: unique symbol;
|
|
20
|
+
export declare const S_DatabaseManager_CreateDatabase_Unknown: unique symbol;
|
|
21
|
+
export type ImbricateDatabaseManagerCreateDatabaseOutcomeSymbol = typeof S_DatabaseManager_CreateDatabase_IdentifierDuplicated | typeof S_DatabaseManager_CreateDatabase_Unknown;
|
|
22
|
+
export type ImbricateDatabaseManagerCreateDatabaseOutcome = {
|
|
23
|
+
readonly database: IImbricateDatabase;
|
|
24
|
+
} | ImbricateDatabaseManagerCreateDatabaseOutcomeSymbol;
|
|
25
|
+
export declare const S_DatabaseManager_RemoveDatabase_NotFound: unique symbol;
|
|
26
|
+
export declare const S_DatabaseManager_RemoveDatabase_Unknown: unique symbol;
|
|
27
|
+
export type ImbricateDatabaseManagerRemoveDatabaseOutcomeSymbol = typeof S_DatabaseManager_RemoveDatabase_NotFound | typeof S_DatabaseManager_RemoveDatabase_Unknown;
|
|
28
|
+
export type ImbricateDatabaseManagerRemoveDatabaseOutcome = {
|
|
29
|
+
readonly success: boolean;
|
|
30
|
+
} | ImbricateDatabaseManagerRemoveDatabaseOutcomeSymbol;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace DatabaseManager
|
|
5
|
+
* @description Outcome
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.S_DatabaseManager_RemoveDatabase_Unknown = exports.S_DatabaseManager_RemoveDatabase_NotFound = exports.S_DatabaseManager_CreateDatabase_Unknown = exports.S_DatabaseManager_CreateDatabase_IdentifierDuplicated = exports.S_DatabaseManager_GetDatabase_Unknown = exports.S_DatabaseManager_GetDatabase_NotFound = exports.S_DatabaseManager_ListDatabases_Unknown = exports.S_DatabaseManager_ListDatabases_Stale = void 0;
|
|
9
|
+
// Manager List Databases
|
|
10
|
+
exports.S_DatabaseManager_ListDatabases_Stale = Symbol("DatabaseManager_ListDatabases_Stale");
|
|
11
|
+
exports.S_DatabaseManager_ListDatabases_Unknown = Symbol("DatabaseManager_ListDatabases_Unknown");
|
|
12
|
+
// Manager Get Database
|
|
13
|
+
exports.S_DatabaseManager_GetDatabase_NotFound = Symbol("DatabaseManager_GetDatabase_NotFound");
|
|
14
|
+
exports.S_DatabaseManager_GetDatabase_Unknown = Symbol("DatabaseManager_GetDatabase_Unknown");
|
|
15
|
+
// Manager Create Database
|
|
16
|
+
exports.S_DatabaseManager_CreateDatabase_IdentifierDuplicated = Symbol("DatabaseManager_CreateDatabase_IdentifierDuplicated");
|
|
17
|
+
exports.S_DatabaseManager_CreateDatabase_Unknown = Symbol("DatabaseManager_CreateDatabase_Unknown");
|
|
18
|
+
// Manager Remove Database
|
|
19
|
+
exports.S_DatabaseManager_RemoveDatabase_NotFound = Symbol("DatabaseManager_RemoveDatabase_NotFound");
|
|
20
|
+
exports.S_DatabaseManager_RemoveDatabase_Unknown = Symbol("DatabaseManager_RemoveDatabase_Unknown");
|
package/document/definition.d.ts
CHANGED
|
@@ -34,8 +34,8 @@ export type DocumentEditOperation<T extends IMBRICATE_DOCUMENT_EDIT_TYPE> = {
|
|
|
34
34
|
export type DocumentEditRecord = {
|
|
35
35
|
readonly uniqueIdentifier: string;
|
|
36
36
|
readonly editAt: Date;
|
|
37
|
-
readonly beforeVersion:
|
|
38
|
-
readonly afterVersion:
|
|
37
|
+
readonly beforeVersion: string;
|
|
38
|
+
readonly afterVersion: string;
|
|
39
39
|
readonly operations: Array<DocumentEditOperation<IMBRICATE_DOCUMENT_EDIT_TYPE>>;
|
|
40
40
|
readonly author?: ImbricateAuthor;
|
|
41
41
|
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Document
|
|
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/exclude-edit-records";
|
|
10
|
+
export * from "./base-class/full-feature";
|
|
11
|
+
export * from "./base-class/full-feature-readonly";
|
|
12
|
+
export * from "./definition";
|
|
13
|
+
export * from "./feature";
|
|
14
|
+
export * from "./interface";
|
|
15
|
+
export * from "./outcome";
|
|
16
|
+
export * from "./property";
|
|
17
|
+
export * from "./property/default-value";
|
|
18
|
+
export * from "./property/definition";
|
|
19
|
+
export * from "./property/primary";
|
|
20
|
+
export * from "./property/triage";
|
|
21
|
+
export * from "./property/triage-manager";
|
|
22
|
+
export * from "./validate";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @author WMXPY
|
|
4
|
+
* @namespace Document
|
|
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/exclude-edit-records"), exports);
|
|
26
|
+
__exportStar(require("./base-class/full-feature"), exports);
|
|
27
|
+
__exportStar(require("./base-class/full-feature-readonly"), exports);
|
|
28
|
+
__exportStar(require("./definition"), exports);
|
|
29
|
+
__exportStar(require("./feature"), exports);
|
|
30
|
+
__exportStar(require("./interface"), exports);
|
|
31
|
+
__exportStar(require("./outcome"), exports);
|
|
32
|
+
__exportStar(require("./property"), exports);
|
|
33
|
+
__exportStar(require("./property/default-value"), exports);
|
|
34
|
+
__exportStar(require("./property/definition"), exports);
|
|
35
|
+
__exportStar(require("./property/primary"), exports);
|
|
36
|
+
__exportStar(require("./property/triage"), exports);
|
|
37
|
+
__exportStar(require("./property/triage-manager"), exports);
|
|
38
|
+
__exportStar(require("./validate"), exports);
|
package/document/outcome.d.ts
CHANGED
|
@@ -5,28 +5,33 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { DocumentEditRecord } from "./definition";
|
|
7
7
|
export declare const S_Document_PutProperty_InvalidKey: unique symbol;
|
|
8
|
-
export
|
|
8
|
+
export declare const S_Document_PutProperty_Unknown: unique symbol;
|
|
9
|
+
export type ImbricateDocumentPutPropertyOutcomeSymbol = typeof S_Document_PutProperty_InvalidKey | typeof S_Document_PutProperty_Unknown;
|
|
9
10
|
export type ImbricateDocumentPutPropertyOutcome = {
|
|
10
11
|
readonly editRecords: DocumentEditRecord[];
|
|
11
12
|
} | ImbricateDocumentPutPropertyOutcomeSymbol;
|
|
12
13
|
export declare const S_Document_PutAnnotation_InvalidNamespace: unique symbol;
|
|
13
14
|
export declare const S_Document_PutAnnotation_InvalidIdentifier: unique symbol;
|
|
14
|
-
export
|
|
15
|
+
export declare const S_Document_PutAnnotation_Unknown: unique symbol;
|
|
16
|
+
export type ImbricateDocumentPutAnnotationOutcomeSymbol = typeof S_Document_PutAnnotation_InvalidNamespace | typeof S_Document_PutAnnotation_InvalidIdentifier | typeof S_Document_PutAnnotation_Unknown;
|
|
15
17
|
export type ImbricateDocumentPutAnnotationOutcome = {
|
|
16
18
|
readonly editRecords: DocumentEditRecord[];
|
|
17
19
|
} | ImbricateDocumentPutAnnotationOutcomeSymbol;
|
|
18
20
|
export declare const S_Document_DeleteAnnotation_NotFound: unique symbol;
|
|
19
|
-
export
|
|
21
|
+
export declare const S_Document_DeleteAnnotation_Unknown: unique symbol;
|
|
22
|
+
export type ImbricateDocumentDeleteAnnotationOutcomeSymbol = typeof S_Document_DeleteAnnotation_NotFound | typeof S_Document_DeleteAnnotation_Unknown;
|
|
20
23
|
export type ImbricateDocumentDeleteAnnotationOutcome = {
|
|
21
24
|
readonly editRecords: DocumentEditRecord[];
|
|
22
25
|
} | ImbricateDocumentDeleteAnnotationOutcomeSymbol;
|
|
23
26
|
export declare const S_Document_AddEditRecords_InvalidRecord: unique symbol;
|
|
24
|
-
export
|
|
27
|
+
export declare const S_Document_AddEditRecords_Unknown: unique symbol;
|
|
28
|
+
export type ImbricateDocumentAddEditRecordsOutcomeSymbol = typeof S_Document_AddEditRecords_InvalidRecord | typeof S_Document_AddEditRecords_Unknown;
|
|
25
29
|
export type ImbricateDocumentAddEditRecordsOutcome = {
|
|
26
30
|
readonly editRecords: DocumentEditRecord[];
|
|
27
31
|
} | ImbricateDocumentAddEditRecordsOutcomeSymbol;
|
|
28
32
|
export declare const S_Document_GetEditRecords_NotFound: unique symbol;
|
|
29
|
-
export
|
|
33
|
+
export declare const S_Document_GetEditRecords_Unknown: unique symbol;
|
|
34
|
+
export type ImbricateDocumentGetEditRecordsOutcomeSymbol = typeof S_Document_GetEditRecords_NotFound | typeof S_Document_GetEditRecords_Unknown;
|
|
30
35
|
export type ImbricateDocumentGetEditRecordsOutcome = {
|
|
31
36
|
readonly editRecords: DocumentEditRecord[];
|
|
32
37
|
} | ImbricateDocumentGetEditRecordsOutcomeSymbol;
|
package/document/outcome.js
CHANGED
|
@@ -5,15 +5,20 @@
|
|
|
5
5
|
* @description Outcome
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.S_Document_GetEditRecords_NotFound = exports.S_Document_AddEditRecords_InvalidRecord = exports.S_Document_DeleteAnnotation_NotFound = exports.S_Document_PutAnnotation_InvalidIdentifier = exports.S_Document_PutAnnotation_InvalidNamespace = exports.S_Document_PutProperty_InvalidKey = void 0;
|
|
8
|
+
exports.S_Document_GetEditRecords_Unknown = exports.S_Document_GetEditRecords_NotFound = exports.S_Document_AddEditRecords_Unknown = exports.S_Document_AddEditRecords_InvalidRecord = exports.S_Document_DeleteAnnotation_Unknown = exports.S_Document_DeleteAnnotation_NotFound = exports.S_Document_PutAnnotation_Unknown = exports.S_Document_PutAnnotation_InvalidIdentifier = exports.S_Document_PutAnnotation_InvalidNamespace = exports.S_Document_PutProperty_Unknown = exports.S_Document_PutProperty_InvalidKey = void 0;
|
|
9
9
|
// Put Property
|
|
10
10
|
exports.S_Document_PutProperty_InvalidKey = Symbol("Document_PutProperty_InvalidKey");
|
|
11
|
+
exports.S_Document_PutProperty_Unknown = Symbol("Document_PutProperty_Unknown");
|
|
11
12
|
// Put Annotation
|
|
12
13
|
exports.S_Document_PutAnnotation_InvalidNamespace = Symbol("Document_PutAnnotation_InvalidNamespace");
|
|
13
14
|
exports.S_Document_PutAnnotation_InvalidIdentifier = Symbol("Document_PutAnnotation_InvalidIdentifier");
|
|
15
|
+
exports.S_Document_PutAnnotation_Unknown = Symbol("Document_PutAnnotation_Unknown");
|
|
14
16
|
// Delete Annotation
|
|
15
17
|
exports.S_Document_DeleteAnnotation_NotFound = Symbol("Document_DeleteAnnotation_NotFound");
|
|
18
|
+
exports.S_Document_DeleteAnnotation_Unknown = Symbol("Document_DeleteAnnotation_Unknown");
|
|
16
19
|
// Add Edit Records
|
|
17
20
|
exports.S_Document_AddEditRecords_InvalidRecord = Symbol("Document_AddEditRecords_InvalidRecord");
|
|
21
|
+
exports.S_Document_AddEditRecords_Unknown = Symbol("Document_AddEditRecords_Unknown");
|
|
18
22
|
// Get Edit Records
|
|
19
23
|
exports.S_Document_GetEditRecords_NotFound = Symbol("Document_GetEditRecords_NotFound");
|
|
24
|
+
exports.S_Document_GetEditRecords_Unknown = Symbol("Document_GetEditRecords_Unknown");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author WMXPY
|
|
3
|
+
* @namespace Error
|
|
4
|
+
* @description Database Manager Error
|
|
5
|
+
*/
|
|
6
|
+
import { ImbricateError } from "../imbricate-error";
|
|
7
|
+
export declare class ImbricateDatabaseManagerError extends ImbricateError {
|
|
8
|
+
protected constructor(message: string, type: string, reason?: any);
|
|
9
|
+
}
|