lucid-extension-sdk 0.0.454 → 0.0.455
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.
|
@@ -76,7 +76,7 @@ export declare class ItemsPatchInexhaustive {
|
|
|
76
76
|
itemsDeleted?: string[] | undefined;
|
|
77
77
|
errors?: Map<string, SerializedLucidDictionary> | undefined;
|
|
78
78
|
fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>> | undefined;
|
|
79
|
-
|
|
79
|
+
readonly _brand: typeof ItemsPatchInexhaustive;
|
|
80
80
|
constructor(
|
|
81
81
|
/**
|
|
82
82
|
* Items to be added or changed in the collection. Mapping from item serialized primary key to
|
|
@@ -93,7 +93,7 @@ export declare class ItemsPatchExhaustive {
|
|
|
93
93
|
fieldNamesChanged?: Map<string, string | null> | undefined;
|
|
94
94
|
errors?: Map<string, SerializedLucidDictionary> | undefined;
|
|
95
95
|
fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>> | undefined;
|
|
96
|
-
|
|
96
|
+
readonly _brand: typeof ItemsPatchExhaustive;
|
|
97
97
|
constructor(items: Map<string, SerializedFields>, rekeyingMap?: Map<string, string | null> | undefined, fieldNamesChanged?: Map<string, string | null> | undefined, errors?: Map<string, SerializedLucidDictionary> | undefined, fieldConstraintsPerItem?: Map<string, Map<string, FieldConstraintDefinition[]>> | undefined);
|
|
98
98
|
}
|
|
99
99
|
/** The anonymous type is kept for backward compatibility; use ItemsPatchInexhaustive instead. */
|
|
@@ -5,10 +5,9 @@ import { type ConditionDefinition, type EffectDefinition, type RuleDefinition }
|
|
|
5
5
|
import { DocumentElementProxy } from './documentelementproxy';
|
|
6
6
|
export declare class RuleCondition {
|
|
7
7
|
readonly rule: RuleProxy;
|
|
8
|
-
private readonly client;
|
|
9
8
|
readonly key: string;
|
|
10
9
|
private definition;
|
|
11
|
-
constructor(rule: RuleProxy,
|
|
10
|
+
constructor(rule: RuleProxy, key: string);
|
|
12
11
|
/** What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc. */
|
|
13
12
|
readonly type: import("../..").ConditionType;
|
|
14
13
|
/**
|
|
@@ -39,10 +38,9 @@ export declare class RuleCondition {
|
|
|
39
38
|
}
|
|
40
39
|
export declare class RuleEffect {
|
|
41
40
|
readonly rule: RuleProxy;
|
|
42
|
-
private readonly client;
|
|
43
41
|
readonly key: string;
|
|
44
42
|
private definition;
|
|
45
|
-
constructor(rule: RuleProxy,
|
|
43
|
+
constructor(rule: RuleProxy, key: string);
|
|
46
44
|
readonly conditions: MapProxy<string, RuleCondition>;
|
|
47
45
|
/** How multiple conditions are combined (AND vs OR) */
|
|
48
46
|
readonly combination: import("../..").ConditionCombination;
|
|
@@ -7,9 +7,8 @@ const mapproxy_1 = require("../mapproxy");
|
|
|
7
7
|
const ruledefinition_1 = require("../ruledefinition");
|
|
8
8
|
const documentelementproxy_1 = require("./documentelementproxy");
|
|
9
9
|
class RuleCondition {
|
|
10
|
-
constructor(rule,
|
|
10
|
+
constructor(rule, key) {
|
|
11
11
|
this.rule = rule;
|
|
12
|
-
this.client = client;
|
|
13
12
|
this.key = key;
|
|
14
13
|
this.definition = this.rule.properties.get(this.key);
|
|
15
14
|
/** What kind of condition is this? e.g. a formula evaluation, checking for non-empty text, etc. */
|
|
@@ -46,12 +45,11 @@ class RuleCondition {
|
|
|
46
45
|
}
|
|
47
46
|
exports.RuleCondition = RuleCondition;
|
|
48
47
|
class RuleEffect {
|
|
49
|
-
constructor(rule,
|
|
48
|
+
constructor(rule, key) {
|
|
50
49
|
this.rule = rule;
|
|
51
|
-
this.client = client;
|
|
52
50
|
this.key = key;
|
|
53
51
|
this.definition = this.rule.properties.get(this.key);
|
|
54
|
-
this.conditions = new mapproxy_1.MapProxy(() => this.definition['ConditionOrder'].map((order) => 'Condition_' + order), (key) => new RuleCondition(this.rule,
|
|
52
|
+
this.conditions = new mapproxy_1.MapProxy(() => this.definition['ConditionOrder'].map((order) => 'Condition_' + order), (key) => new RuleCondition(this.rule, key));
|
|
55
53
|
/** How multiple conditions are combined (AND vs OR) */
|
|
56
54
|
this.combination = this.definition['Combination'];
|
|
57
55
|
/** What kind of effect is displayed? Formatting vs. icons vs. dynamic stencil, etc. */
|
|
@@ -101,7 +99,7 @@ class RuleProxy extends documentelementproxy_1.DocumentElementProxy {
|
|
|
101
99
|
constructor(id, client) {
|
|
102
100
|
super(id, client);
|
|
103
101
|
this.id = id;
|
|
104
|
-
this.effects = new mapproxy_1.MapProxy(() => this.properties.get('EffectOrder').map((order) => 'Effect_' + order), (key) => new RuleEffect(this,
|
|
102
|
+
this.effects = new mapproxy_1.MapProxy(() => this.properties.get('EffectOrder').map((order) => 'Effect_' + order), (key) => new RuleEffect(this, key));
|
|
105
103
|
}
|
|
106
104
|
getName() {
|
|
107
105
|
return this.properties.get('Name');
|