@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.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export declare const VERSION = "2.0.0-beta-rc.1763418455";
4
+ export declare const VERSION = "2.0.0-beta-rc.1763440060";
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * This file is automatically generated. Please do not edit this file directly.
3
3
  */
4
- export const VERSION = "2.0.0-beta-rc.1763418455";
4
+ export const VERSION = "2.0.0-beta-rc.1763440060";
@@ -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
- // Add validation for notEquals
39
- if (data.notEquals !== undefined) {
40
- // Validate notEquals values array if present
41
- if (data.notEquals.values !== undefined) {
42
- if (data.notEquals.values.length === 0) {
43
- errors.add("If notEquals values are provided, at least one Coding must be set");
44
- return;
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
- // Ensure at least one property is set in notEquals
51
- if (data.notEquals.code === undefined &&
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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/bwell-sdk-ts",
3
- "version": "2.0.0-beta-rc.1763418455",
3
+ "version": "2.0.0-beta-rc.1763440060",
4
4
  "description": "b.well TypeScript SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",