@icanbwell/bwell-sdk-ts 2.0.0-beta-rc.1763418455 → 2.0.0-beta-rc.1763440060
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/dist/__version__.d.ts
CHANGED
package/dist/__version__.js
CHANGED
|
@@ -35,26 +35,26 @@ export class SearchTokenValidator {
|
|
|
35
35
|
for (const value of (_a = data.values) !== null && _a !== void 0 ? _a : []) {
|
|
36
36
|
__classPrivateFieldGet(this, _SearchTokenValidator_searchTokenValueValidator, "f").validate(value, errors);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
for (const value of data.notEquals.values) {
|
|
47
|
-
__classPrivateFieldGet(this, _SearchTokenValidator_searchTokenValueValidator, "f").validate(value, errors);
|
|
48
|
-
}
|
|
38
|
+
if (data.notEquals === undefined) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
// Validate notEquals values array if present
|
|
42
|
+
if (data.notEquals.values !== undefined) {
|
|
43
|
+
if (data.notEquals.values.length === 0) {
|
|
44
|
+
errors.add("If notEquals values are provided, at least one Coding must be set");
|
|
45
|
+
return;
|
|
49
46
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
data.notEquals.value === undefined &&
|
|
53
|
-
data.notEquals.system === undefined &&
|
|
54
|
-
data.notEquals.values === undefined) {
|
|
55
|
-
errors.add("NotEquals must have at least one non-null property (code, value, system, or values)");
|
|
47
|
+
for (const value of data.notEquals.values) {
|
|
48
|
+
__classPrivateFieldGet(this, _SearchTokenValidator_searchTokenValueValidator, "f").validate(value, errors);
|
|
56
49
|
}
|
|
57
50
|
}
|
|
51
|
+
// Ensure at least one property is set in notEquals
|
|
52
|
+
if (data.notEquals.code === undefined &&
|
|
53
|
+
data.notEquals.value === undefined &&
|
|
54
|
+
data.notEquals.system === undefined &&
|
|
55
|
+
data.notEquals.values === undefined) {
|
|
56
|
+
errors.add("NotEquals must have at least one non-null property (code, value, system, or values)");
|
|
57
|
+
}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
_SearchTokenValidator_searchTokenValueValidator = new WeakMap();
|