@imbricate/core 3.27.0 → 3.28.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/common/action.d.ts +1 -0
- package/common/action.js +3 -1
- package/common/outcome.d.ts +2 -1
- package/common/outcome.js +3 -1
- package/document/definition.d.ts +2 -1
- package/package.json +1 -1
- package/property/base-class/full-feature-with-action.d.ts +2 -1
- package/property/definition.d.ts +4 -0
- package/property/interface.d.ts +5 -1
- package/property/map.d.ts +2 -2
package/common/action.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export declare enum IMBRICATE_ORIGIN_ACTION_RESULT_STATUS {
|
|
|
46
46
|
BAD_INPUT = "BAD_INPUT",
|
|
47
47
|
INTERNAL_ERROR = "INTERNAL_ERROR"
|
|
48
48
|
}
|
|
49
|
+
export declare const rebuildImbricateOriginActionOutcomeSymbol: (symbolDescription: string) => CommonOutcomeSymbol | CommonActionOutcomeSymbol;
|
|
49
50
|
export type ImbricateOriginActionOutcome = {
|
|
50
51
|
readonly response: IMBRICATE_ORIGIN_ACTION_RESULT_STATUS;
|
|
51
52
|
readonly outputs: ImbricateOriginActionResultOutput[];
|
package/common/action.js
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* @description Action
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.rebuildImbricateCommonQueryOriginActionsSymbol = exports.ImbricateCommonQueryOriginActionsOutcomeSymbolList = exports.S_Common_QueryOriginActions_Unknown = exports.S_Common_QueryOriginActions_Stale = exports.IMBRICATE_ORIGIN_ACTION_RESULT_STATUS = exports.IMBRICATE_ORIGIN_ACTION_APPEARANCE = exports.IMBRICATE_ORIGIN_ACTION_PARAMETER_TYPE = void 0;
|
|
8
|
+
exports.rebuildImbricateCommonQueryOriginActionsSymbol = exports.ImbricateCommonQueryOriginActionsOutcomeSymbolList = exports.S_Common_QueryOriginActions_Unknown = exports.S_Common_QueryOriginActions_Stale = exports.rebuildImbricateOriginActionOutcomeSymbol = exports.IMBRICATE_ORIGIN_ACTION_RESULT_STATUS = exports.IMBRICATE_ORIGIN_ACTION_APPEARANCE = exports.IMBRICATE_ORIGIN_ACTION_PARAMETER_TYPE = void 0;
|
|
9
9
|
const rebuild_symbol_1 = require("../util/rebuild-symbol");
|
|
10
|
+
const outcome_1 = require("./outcome");
|
|
10
11
|
var IMBRICATE_ORIGIN_ACTION_PARAMETER_TYPE;
|
|
11
12
|
(function (IMBRICATE_ORIGIN_ACTION_PARAMETER_TYPE) {
|
|
12
13
|
IMBRICATE_ORIGIN_ACTION_PARAMETER_TYPE["STRING"] = "STRING";
|
|
@@ -25,6 +26,7 @@ var IMBRICATE_ORIGIN_ACTION_RESULT_STATUS;
|
|
|
25
26
|
IMBRICATE_ORIGIN_ACTION_RESULT_STATUS["BAD_INPUT"] = "BAD_INPUT";
|
|
26
27
|
IMBRICATE_ORIGIN_ACTION_RESULT_STATUS["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
27
28
|
})(IMBRICATE_ORIGIN_ACTION_RESULT_STATUS || (exports.IMBRICATE_ORIGIN_ACTION_RESULT_STATUS = IMBRICATE_ORIGIN_ACTION_RESULT_STATUS = {}));
|
|
29
|
+
exports.rebuildImbricateOriginActionOutcomeSymbol = (0, rebuild_symbol_1.createRebuildImbricateSymbolFunction)(outcome_1.CommonActionOutcomeSymbolList, outcome_1.S_Action_ActionResultStatusUnknown);
|
|
28
30
|
// Query Origin Actions
|
|
29
31
|
exports.S_Common_QueryOriginActions_Stale = Symbol("Common_QueryOriginActions_Stale");
|
|
30
32
|
exports.S_Common_QueryOriginActions_Unknown = Symbol("Common_QueryOriginActions_Unknown");
|
package/common/outcome.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export type CommonOutcomeSymbol = typeof S_Common_Origin_ConnectionFail | typeof
|
|
|
10
10
|
export declare const CommonOutcomeSymbolList: CommonOutcomeSymbol[];
|
|
11
11
|
export declare const S_Action_ActionNotFound: unique symbol;
|
|
12
12
|
export declare const S_Action_ActionParameterNotFound: unique symbol;
|
|
13
|
-
export
|
|
13
|
+
export declare const S_Action_ActionResultStatusUnknown: unique symbol;
|
|
14
|
+
export type CommonActionOutcomeSymbol = typeof S_Action_ActionNotFound | typeof S_Action_ActionParameterNotFound | typeof S_Action_ActionResultStatusUnknown;
|
|
14
15
|
export declare const CommonActionOutcomeSymbolList: CommonActionOutcomeSymbol[];
|
package/common/outcome.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @description Outcome
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.CommonActionOutcomeSymbolList = exports.S_Action_ActionParameterNotFound = exports.S_Action_ActionNotFound = exports.CommonOutcomeSymbolList = exports.S_Common_Origin_NotAuthorized = exports.S_Common_Origin_ConnectionTimeout = exports.S_Common_Origin_ConnectionFail = void 0;
|
|
8
|
+
exports.CommonActionOutcomeSymbolList = exports.S_Action_ActionResultStatusUnknown = exports.S_Action_ActionParameterNotFound = exports.S_Action_ActionNotFound = exports.CommonOutcomeSymbolList = exports.S_Common_Origin_NotAuthorized = exports.S_Common_Origin_ConnectionTimeout = exports.S_Common_Origin_ConnectionFail = void 0;
|
|
9
9
|
exports.S_Common_Origin_ConnectionFail = Symbol("Common_Origin_ConnectionFail");
|
|
10
10
|
exports.S_Common_Origin_ConnectionTimeout = Symbol("Common_Origin_ConnectionTimeout");
|
|
11
11
|
exports.S_Common_Origin_NotAuthorized = Symbol("Common_Origin_NotAuthorized");
|
|
@@ -16,7 +16,9 @@ exports.CommonOutcomeSymbolList = [
|
|
|
16
16
|
];
|
|
17
17
|
exports.S_Action_ActionNotFound = Symbol("Action_ActionNotFound");
|
|
18
18
|
exports.S_Action_ActionParameterNotFound = Symbol("Action_ActionParameterNotFound");
|
|
19
|
+
exports.S_Action_ActionResultStatusUnknown = Symbol("Action_ActionResultStatusUnknown");
|
|
19
20
|
exports.CommonActionOutcomeSymbolList = [
|
|
20
21
|
exports.S_Action_ActionNotFound,
|
|
21
22
|
exports.S_Action_ActionParameterNotFound,
|
|
23
|
+
exports.S_Action_ActionResultStatusUnknown,
|
|
22
24
|
];
|
package/document/definition.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description Definition
|
|
5
5
|
*/
|
|
6
6
|
import { ImbricateAuthor } from "../author/definition";
|
|
7
|
-
import { ImbricatePropertyKey } from "../property/definition";
|
|
7
|
+
import { ImbricatePropertyKey, ImbricatePropertyVariant } from "../property/definition";
|
|
8
8
|
import { IMBRICATE_PROPERTY_TYPE, ImbricatePropertyValueObject } from "../property/type";
|
|
9
9
|
/**
|
|
10
10
|
* Edit record type of the document
|
|
@@ -19,6 +19,7 @@ export type DocumentEditOperationValuePutProperty<T extends IMBRICATE_PROPERTY_T
|
|
|
19
19
|
readonly key: ImbricatePropertyKey;
|
|
20
20
|
readonly type: T;
|
|
21
21
|
readonly value: ImbricatePropertyValueObject<T>;
|
|
22
|
+
readonly variant: ImbricatePropertyVariant;
|
|
22
23
|
};
|
|
23
24
|
export type DocumentEditOperationPutAnnotation = {
|
|
24
25
|
readonly annotationNamespace: string;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description Full Feature
|
|
5
5
|
*/
|
|
6
6
|
import { ImbricateCommonQueryOriginActionsOutcome, ImbricateCommonQueryOriginActionsQuery, ImbricateOriginActionInput, ImbricateOriginActionOutcome } from "../../common/action";
|
|
7
|
-
import { ImbricatePropertyKey } from "../definition";
|
|
7
|
+
import { ImbricatePropertyKey, ImbricatePropertyVariant } from "../definition";
|
|
8
8
|
import { IMBRICATE_PROPERTY_FEATURE } from "../feature";
|
|
9
9
|
import { IImbricateProperty } from "../interface";
|
|
10
10
|
import { IMBRICATE_PROPERTY_TYPE, ImbricatePropertyValueObject } from "../type";
|
|
@@ -12,6 +12,7 @@ export declare abstract class ImbricatePropertyFullFeatureWithActionBase<T exten
|
|
|
12
12
|
abstract readonly propertyKey: ImbricatePropertyKey;
|
|
13
13
|
abstract readonly propertyType: T;
|
|
14
14
|
abstract readonly propertyValue: ImbricatePropertyValueObject<T>;
|
|
15
|
+
abstract readonly propertyVariant: ImbricatePropertyVariant;
|
|
15
16
|
readonly supportedFeatures: IMBRICATE_PROPERTY_FEATURE[];
|
|
16
17
|
abstract queryOriginActions(query: ImbricateCommonQueryOriginActionsQuery): PromiseLike<ImbricateCommonQueryOriginActionsOutcome>;
|
|
17
18
|
abstract executeOriginAction(input: ImbricateOriginActionInput): PromiseLike<ImbricateOriginActionOutcome>;
|
package/property/definition.d.ts
CHANGED
|
@@ -7,3 +7,7 @@
|
|
|
7
7
|
* Imbricate property key, which should match schema properties unique identifier
|
|
8
8
|
*/
|
|
9
9
|
export type ImbricatePropertyKey = string;
|
|
10
|
+
/**
|
|
11
|
+
* Imbricate property variant, which should match schema property variants unique identifier
|
|
12
|
+
*/
|
|
13
|
+
export type ImbricatePropertyVariant = string | null;
|
package/property/interface.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description Interface
|
|
5
5
|
*/
|
|
6
6
|
import { ImbricateCommonQueryOriginActionsOutcome, ImbricateCommonQueryOriginActionsQuery, ImbricateOriginActionInput, ImbricateOriginActionOutcome } from "../common/action";
|
|
7
|
-
import { ImbricatePropertyKey } from "./definition";
|
|
7
|
+
import { ImbricatePropertyKey, ImbricatePropertyVariant } from "./definition";
|
|
8
8
|
import { IMBRICATE_PROPERTY_FEATURE } from "./feature";
|
|
9
9
|
import { IMBRICATE_PROPERTY_TYPE, ImbricatePropertyValueObject } from "./type";
|
|
10
10
|
export interface IImbricateProperty<T extends IMBRICATE_PROPERTY_TYPE> {
|
|
@@ -20,6 +20,10 @@ export interface IImbricateProperty<T extends IMBRICATE_PROPERTY_TYPE> {
|
|
|
20
20
|
* Property value
|
|
21
21
|
*/
|
|
22
22
|
readonly propertyValue: ImbricatePropertyValueObject<T>;
|
|
23
|
+
/**
|
|
24
|
+
* Property variant
|
|
25
|
+
*/
|
|
26
|
+
readonly propertyVariant: ImbricatePropertyVariant;
|
|
23
27
|
/**
|
|
24
28
|
* Supported features of the property
|
|
25
29
|
*/
|
package/property/map.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @namespace Property
|
|
4
4
|
* @description Map
|
|
5
5
|
*/
|
|
6
|
-
import { ImbricatePropertyKey } from "./definition";
|
|
6
|
+
import { ImbricatePropertyKey, ImbricatePropertyVariant } from "./definition";
|
|
7
7
|
import { IImbricateProperty } from "./interface";
|
|
8
8
|
import { IMBRICATE_PROPERTY_TYPE, ImbricatePropertyValueObject } from "./type";
|
|
9
9
|
export type ImbricatePropertyRecord = Record<ImbricatePropertyKey, IImbricateProperty<IMBRICATE_PROPERTY_TYPE>>;
|
|
10
|
-
export type ImbricatePropertyGenerator<T extends IMBRICATE_PROPERTY_TYPE> = (propertyKey: ImbricatePropertyKey, propertyType: T, propertyValue: ImbricatePropertyValueObject<T
|
|
10
|
+
export type ImbricatePropertyGenerator<T extends IMBRICATE_PROPERTY_TYPE> = (propertyKey: ImbricatePropertyKey, propertyType: T, propertyValue: ImbricatePropertyValueObject<T>, propertyVariant: ImbricatePropertyVariant) => IImbricateProperty<T>;
|
|
11
11
|
export type ImbricatePropertiesDrafter = (generator: ImbricatePropertyGenerator<IMBRICATE_PROPERTY_TYPE>) => Array<IImbricateProperty<IMBRICATE_PROPERTY_TYPE>>;
|