@imbricate/core 3.31.0 → 3.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/author/definition.d.ts +0 -1
- package/author/definition.js +0 -1
- package/author/export.d.ts +0 -1
- package/author/export.js +0 -1
- package/common/action.d.ts +0 -1
- package/common/action.js +0 -1
- package/common/definition.d.ts +0 -1
- package/common/definition.js +0 -1
- package/common/export.d.ts +0 -1
- package/common/export.js +0 -1
- package/common/outcome.d.ts +0 -1
- package/common/outcome.js +0 -1
- package/database/base-class/essential-readonly.d.ts +0 -1
- package/database/base-class/essential-readonly.js +0 -1
- package/database/base-class/essential.d.ts +0 -1
- package/database/base-class/essential.js +0 -1
- package/database/base-class/exclude-annotation.d.ts +0 -1
- package/database/base-class/exclude-annotation.js +0 -1
- package/database/base-class/exclude-edit-records.d.ts +0 -1
- package/database/base-class/exclude-edit-records.js +0 -1
- package/database/base-class/full-feature-readonly.d.ts +0 -1
- package/database/base-class/full-feature-readonly.js +0 -1
- package/database/base-class/full-feature-with-action.d.ts +0 -1
- package/database/base-class/full-feature-with-action.js +0 -1
- package/database/base-class/full-feature.d.ts +0 -1
- package/database/base-class/full-feature.js +0 -1
- package/database/definition.d.ts +14 -1
- package/database/definition.js +10 -2
- package/database/export.d.ts +0 -1
- package/database/export.js +0 -1
- package/database/feature.d.ts +0 -1
- package/database/feature.js +0 -1
- package/database/interface.d.ts +0 -1
- package/database/interface.js +0 -1
- package/database/outcome.d.ts +0 -1
- package/database/outcome.js +0 -1
- package/database/schema.d.ts +0 -1
- package/database/schema.js +0 -1
- package/database/validate.d.ts +0 -1
- package/database/validate.js +0 -1
- package/database-manager/base-class/full-feature.d.ts +0 -1
- package/database-manager/base-class/full-feature.js +0 -1
- package/database-manager/base-class/readonly.d.ts +0 -1
- package/database-manager/base-class/readonly.js +0 -1
- package/database-manager/database-manager.d.ts +0 -1
- package/database-manager/database-manager.js +0 -1
- package/database-manager/definition.d.ts +0 -1
- package/database-manager/definition.js +0 -1
- package/database-manager/export.d.ts +0 -1
- package/database-manager/export.js +0 -1
- package/database-manager/feature.d.ts +0 -1
- package/database-manager/feature.js +0 -1
- package/database-manager/outcome.d.ts +0 -1
- package/database-manager/outcome.js +0 -1
- package/document/base-class/essential-readonly.d.ts +0 -1
- package/document/base-class/essential-readonly.js +0 -1
- package/document/base-class/essential.d.ts +0 -1
- package/document/base-class/essential.js +0 -1
- package/document/base-class/exclude-annotation.d.ts +0 -1
- package/document/base-class/exclude-annotation.js +0 -1
- package/document/base-class/exclude-edit-records.d.ts +0 -1
- package/document/base-class/exclude-edit-records.js +0 -1
- package/document/base-class/full-feature-readonly.d.ts +0 -1
- package/document/base-class/full-feature-readonly.js +0 -1
- package/document/base-class/full-feature-with-action.d.ts +0 -1
- package/document/base-class/full-feature-with-action.js +0 -1
- package/document/base-class/full-feature.d.ts +0 -1
- package/document/base-class/full-feature.js +0 -1
- package/document/definition.d.ts +0 -1
- package/document/definition.js +0 -1
- package/document/export.d.ts +0 -1
- package/document/export.js +0 -1
- package/document/feature.d.ts +0 -1
- package/document/feature.js +0 -1
- package/document/interface.d.ts +0 -1
- package/document/interface.js +0 -1
- package/document/outcome.d.ts +0 -1
- package/document/outcome.js +0 -1
- package/document/property/default-value.d.ts +0 -1
- package/document/property/default-value.js +0 -1
- package/document/property/definition.d.ts +0 -1
- package/document/property/definition.js +0 -1
- package/document/property/primary.d.ts +0 -1
- package/document/property/primary.js +0 -1
- package/document/property/triage-base.d.ts +0 -1
- package/document/property/triage-base.js +0 -1
- package/document/property/triage-manager.d.ts +0 -1
- package/document/property/triage-manager.js +0 -1
- package/document/property/triage.d.ts +0 -1
- package/document/property/triage.js +0 -1
- package/error/database/database-error.d.ts +0 -1
- package/error/database/database-error.js +0 -1
- package/error/database/feature-not-supported.d.ts +0 -1
- package/error/database/feature-not-supported.js +0 -1
- package/error/database-manager/database-manager-error.d.ts +0 -1
- package/error/database-manager/database-manager-error.js +0 -1
- package/error/database-manager/feature-not-supported.d.ts +0 -1
- package/error/database-manager/feature-not-supported.js +0 -1
- package/error/document/document-error.d.ts +0 -1
- package/error/document/document-error.js +0 -1
- package/error/document/feature-not-supported.d.ts +0 -1
- package/error/document/feature-not-supported.js +0 -1
- package/error/export.d.ts +0 -1
- package/error/export.js +0 -1
- package/error/imbricate-error.d.ts +0 -1
- package/error/imbricate-error.js +0 -1
- package/error/origin/feature-not-supported.d.ts +0 -1
- package/error/origin/feature-not-supported.js +0 -1
- package/error/origin/origin-error.d.ts +0 -1
- package/error/origin/origin-error.js +0 -1
- package/error/property/feature-not-supported.d.ts +0 -1
- package/error/property/feature-not-supported.js +0 -1
- package/error/property/property-error.d.ts +0 -1
- package/error/property/property-error.js +0 -1
- package/error/static/feature-not-supported.d.ts +0 -1
- package/error/static/feature-not-supported.js +0 -1
- package/error/static/static-error.d.ts +0 -1
- package/error/static/static-error.js +0 -1
- package/error/static-manager/feature-not-supported.d.ts +0 -1
- package/error/static-manager/feature-not-supported.js +0 -1
- package/error/static-manager/static-manager-error.d.ts +0 -1
- package/error/static-manager/static-manager-error.js +0 -1
- package/error/text/feature-not-supported.d.ts +0 -1
- package/error/text/feature-not-supported.js +0 -1
- package/error/text/text-error.d.ts +0 -1
- package/error/text/text-error.js +0 -1
- package/error/text-manager/feature-not-supported.d.ts +0 -1
- package/error/text-manager/feature-not-supported.js +0 -1
- package/error/text-manager/text-manager-error.d.ts +0 -1
- package/error/text-manager/text-manager-error.js +0 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/loader/definition.d.ts +0 -1
- package/loader/definition.js +0 -1
- package/loader/export.d.ts +0 -2
- package/loader/export.js +0 -2
- package/loader/persistence.d.ts +8 -1
- package/loader/persistence.js +17 -2
- package/origin/base-class/essential.d.ts +1 -2
- package/origin/base-class/essential.js +0 -1
- package/origin/base-class/exclude-static.d.ts +1 -2
- package/origin/base-class/exclude-static.js +0 -1
- package/origin/base-class/full-feature-with-action.d.ts +3 -3
- package/origin/base-class/full-feature-with-action.js +5 -1
- package/origin/base-class/full-feature.d.ts +1 -2
- package/origin/base-class/full-feature.js +0 -1
- package/origin/definition.d.ts +0 -1
- package/origin/definition.js +0 -1
- package/origin/export.d.ts +0 -1
- package/origin/export.js +0 -1
- package/origin/feature.d.ts +0 -1
- package/origin/feature.js +0 -1
- package/origin/interface.d.ts +5 -5
- package/origin/interface.js +0 -1
- package/origin/outcome.d.ts +8 -1
- package/origin/outcome.js +7 -2
- package/origin/search.d.ts +0 -1
- package/origin/search.js +0 -1
- package/package.json +2 -2
- package/property/base-class/full-feature-with-action.d.ts +0 -1
- package/property/base-class/full-feature-with-action.js +0 -1
- package/property/base-class/full-feature.d.ts +0 -1
- package/property/base-class/full-feature.js +0 -1
- package/property/definition.d.ts +0 -1
- package/property/definition.js +0 -1
- package/property/export.d.ts +0 -1
- package/property/export.js +0 -1
- package/property/feature.d.ts +0 -1
- package/property/feature.js +0 -1
- package/property/interface.d.ts +0 -1
- package/property/interface.js +0 -1
- package/property/map.d.ts +0 -1
- package/property/map.js +0 -1
- package/property/type.d.ts +0 -1
- package/property/type.js +0 -1
- package/property/validate.d.ts +0 -1
- package/property/validate.js +0 -1
- package/static/base-class/author-only.d.ts +0 -1
- package/static/base-class/author-only.js +0 -1
- package/static/base-class/content-only.d.ts +0 -1
- package/static/base-class/content-only.js +0 -1
- package/static/base-class/full-feature.d.ts +0 -1
- package/static/base-class/full-feature.js +0 -1
- package/static/definition.d.ts +0 -1
- package/static/definition.js +0 -1
- package/static/export.d.ts +0 -1
- package/static/export.js +0 -1
- package/static/feature.d.ts +0 -1
- package/static/feature.js +0 -1
- package/static/interface.d.ts +0 -1
- package/static/interface.js +0 -1
- package/static/outcome.d.ts +0 -1
- package/static/outcome.js +0 -1
- package/static-manager/base-class/full-feature-blob.d.ts +0 -1
- package/static-manager/base-class/full-feature-blob.js +0 -1
- package/static-manager/base-class/full-feature.d.ts +0 -1
- package/static-manager/base-class/full-feature.js +0 -1
- package/static-manager/base-class/readonly-blob.d.ts +0 -1
- package/static-manager/base-class/readonly-blob.js +0 -1
- package/static-manager/base-class/readonly.d.ts +0 -1
- package/static-manager/base-class/readonly.js +0 -1
- package/static-manager/export.d.ts +0 -1
- package/static-manager/export.js +0 -1
- package/static-manager/feature.d.ts +0 -1
- package/static-manager/feature.js +0 -1
- package/static-manager/outcome.d.ts +0 -1
- package/static-manager/outcome.js +0 -1
- package/static-manager/static-manager.d.ts +0 -1
- package/static-manager/static-manager.js +0 -1
- package/text/base-class/author-only.d.ts +0 -1
- package/text/base-class/author-only.js +0 -1
- package/text/base-class/content-only.d.ts +0 -1
- package/text/base-class/content-only.js +0 -1
- package/text/base-class/full-feature.d.ts +0 -1
- package/text/base-class/full-feature.js +0 -1
- package/text/definition.d.ts +0 -1
- package/text/definition.js +0 -1
- package/text/export.d.ts +0 -1
- package/text/export.js +0 -1
- package/text/feature.d.ts +0 -1
- package/text/feature.js +0 -1
- package/text/interface.d.ts +0 -1
- package/text/interface.js +0 -1
- package/text/outcome.d.ts +0 -1
- package/text/outcome.js +0 -1
- package/text-manager/base-class/full-feature.d.ts +0 -1
- package/text-manager/base-class/full-feature.js +0 -1
- package/text-manager/base-class/readonly.d.ts +0 -1
- package/text-manager/base-class/readonly.js +0 -1
- package/text-manager/export.d.ts +0 -1
- package/text-manager/export.js +0 -1
- package/text-manager/feature.d.ts +0 -1
- package/text-manager/feature.js +0 -1
- package/text-manager/outcome.d.ts +0 -1
- package/text-manager/outcome.js +0 -1
- package/text-manager/text-manager.d.ts +0 -1
- package/text-manager/text-manager.js +0 -1
- package/util/rebuild-symbol.d.ts +0 -1
- package/util/rebuild-symbol.js +0 -1
- package/loader/origin-loader.d.ts +0 -29
- package/loader/origin-loader.js +0 -104
package/text-manager/export.d.ts
CHANGED
package/text-manager/export.js
CHANGED
package/text-manager/feature.js
CHANGED
package/text-manager/outcome.js
CHANGED
package/util/rebuild-symbol.d.ts
CHANGED
package/util/rebuild-symbol.js
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author WMXPY
|
|
3
|
-
* @namespace Loader
|
|
4
|
-
* @description Origin Loader
|
|
5
|
-
*/
|
|
6
|
-
import { IImbricateOrigin } from "../origin/interface";
|
|
7
|
-
import { ImbricateOriginPersistence, ImbricateOriginPersistenceOrigin } from "./persistence";
|
|
8
|
-
/**
|
|
9
|
-
* Load imbricate origin from persistence origin
|
|
10
|
-
* This function will load the origin from the persistence origin
|
|
11
|
-
* and initialize the origin with the payloads
|
|
12
|
-
*
|
|
13
|
-
* @param origin origin to persistence to load
|
|
14
|
-
*
|
|
15
|
-
* @returns a promise of the loaded origin
|
|
16
|
-
* if the origin is not found, return null
|
|
17
|
-
*/
|
|
18
|
-
export declare const loadImbricateOriginFromPersistenceOrigin: (origin: ImbricateOriginPersistenceOrigin) => Promise<IImbricateOrigin | null>;
|
|
19
|
-
/**
|
|
20
|
-
* Load imbricate origins from persistence
|
|
21
|
-
* This function will load all origins from the persistence
|
|
22
|
-
* and initialize the origins with the payloads
|
|
23
|
-
* If the origin is not found, it will be ignored
|
|
24
|
-
*
|
|
25
|
-
* @param persistence persistence to load origins
|
|
26
|
-
*
|
|
27
|
-
* @returns a promise of the loaded origins, if the origin is not found, return empty array
|
|
28
|
-
*/
|
|
29
|
-
export declare const loadImbricateOriginsFromPersistence: (persistence: ImbricateOriginPersistence) => Promise<IImbricateOrigin[]>;
|
package/loader/origin-loader.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @author WMXPY
|
|
4
|
-
* @namespace Loader
|
|
5
|
-
* @description Origin Loader
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
-
}) : function(o, v) {
|
|
21
|
-
o["default"] = v;
|
|
22
|
-
});
|
|
23
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
-
var ownKeys = function(o) {
|
|
25
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
-
var ar = [];
|
|
27
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
-
return ar;
|
|
29
|
-
};
|
|
30
|
-
return ownKeys(o);
|
|
31
|
-
};
|
|
32
|
-
return function (mod) {
|
|
33
|
-
if (mod && mod.__esModule) return mod;
|
|
34
|
-
var result = {};
|
|
35
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
-
__setModuleDefault(result, mod);
|
|
37
|
-
return result;
|
|
38
|
-
};
|
|
39
|
-
})();
|
|
40
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
41
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
42
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
44
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
45
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
46
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.loadImbricateOriginsFromPersistence = exports.loadImbricateOriginFromPersistenceOrigin = void 0;
|
|
51
|
-
const persistence_1 = require("./persistence");
|
|
52
|
-
/**
|
|
53
|
-
* Load imbricate origin from persistence origin
|
|
54
|
-
* This function will load the origin from the persistence origin
|
|
55
|
-
* and initialize the origin with the payloads
|
|
56
|
-
*
|
|
57
|
-
* @param origin origin to persistence to load
|
|
58
|
-
*
|
|
59
|
-
* @returns a promise of the loaded origin
|
|
60
|
-
* if the origin is not found, return null
|
|
61
|
-
*/
|
|
62
|
-
const loadImbricateOriginFromPersistenceOrigin = (origin) => __awaiter(void 0, void 0, void 0, function* () {
|
|
63
|
-
switch (origin.originLoadType) {
|
|
64
|
-
case persistence_1.IMBRICATE_ORIGIN_LOAD_TYPE.NPM_PACKAGE: {
|
|
65
|
-
const originPackage = yield Promise.resolve(`${origin.originLoadValue}`).then(s => __importStar(require(s)));
|
|
66
|
-
if (typeof originPackage.default === "function") {
|
|
67
|
-
const initialized = originPackage.default.call(null, origin.originPayloads);
|
|
68
|
-
return initialized;
|
|
69
|
-
}
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
case persistence_1.IMBRICATE_ORIGIN_LOAD_TYPE.FILE_SYSTEM: {
|
|
73
|
-
const originPackage = yield Promise.resolve(`${origin.originLoadValue}`).then(s => __importStar(require(s)));
|
|
74
|
-
if (typeof originPackage.default === "function") {
|
|
75
|
-
const initialized = originPackage.default.call(null, origin.originPayloads);
|
|
76
|
-
return initialized;
|
|
77
|
-
}
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return null;
|
|
82
|
-
});
|
|
83
|
-
exports.loadImbricateOriginFromPersistenceOrigin = loadImbricateOriginFromPersistenceOrigin;
|
|
84
|
-
/**
|
|
85
|
-
* Load imbricate origins from persistence
|
|
86
|
-
* This function will load all origins from the persistence
|
|
87
|
-
* and initialize the origins with the payloads
|
|
88
|
-
* If the origin is not found, it will be ignored
|
|
89
|
-
*
|
|
90
|
-
* @param persistence persistence to load origins
|
|
91
|
-
*
|
|
92
|
-
* @returns a promise of the loaded origins, if the origin is not found, return empty array
|
|
93
|
-
*/
|
|
94
|
-
const loadImbricateOriginsFromPersistence = (persistence) => __awaiter(void 0, void 0, void 0, function* () {
|
|
95
|
-
const origins = [];
|
|
96
|
-
for (const origin of persistence.origins) {
|
|
97
|
-
const originInstance = yield (0, exports.loadImbricateOriginFromPersistenceOrigin)(origin);
|
|
98
|
-
if (originInstance) {
|
|
99
|
-
origins.push(originInstance);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
return origins;
|
|
103
|
-
});
|
|
104
|
-
exports.loadImbricateOriginsFromPersistence = loadImbricateOriginsFromPersistence;
|