av6-core 1.6.9 → 1.7.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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -323,7 +323,7 @@ interface Col {
|
|
|
323
323
|
}
|
|
324
324
|
interface ColValue {
|
|
325
325
|
value: string[] | number[];
|
|
326
|
-
type: "string" | "number" | "date" | "range" | "gt" | "lt";
|
|
326
|
+
type: "string" | "number" | "date" | "range" | "gt" | "lt" | "null";
|
|
327
327
|
}
|
|
328
328
|
interface NewFixedSearchRequest extends NewSearchRequest {
|
|
329
329
|
fixedSearch?: Record<string, ColValue>;
|
package/dist/index.d.ts
CHANGED
|
@@ -323,7 +323,7 @@ interface Col {
|
|
|
323
323
|
}
|
|
324
324
|
interface ColValue {
|
|
325
325
|
value: string[] | number[];
|
|
326
|
-
type: "string" | "number" | "date" | "range" | "gt" | "lt";
|
|
326
|
+
type: "string" | "number" | "date" | "range" | "gt" | "lt" | "null";
|
|
327
327
|
}
|
|
328
328
|
interface NewFixedSearchRequest extends NewSearchRequest {
|
|
329
329
|
fixedSearch?: Record<string, ColValue>;
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,8 @@ function buildFieldCondition(fieldPath, fieldType, values, isNot = false) {
|
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
+
} else if (fieldType === "null") {
|
|
209
|
+
finalLeaf = isNot ? { [lastKey]: { not: null } } : { [lastKey]: null };
|
|
208
210
|
} else {
|
|
209
211
|
finalLeaf = buildSingleValueCondition(lastKey, fieldType, values[0], isNot);
|
|
210
212
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -154,6 +154,8 @@ function buildFieldCondition(fieldPath, fieldType, values, isNot = false) {
|
|
|
154
154
|
break;
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
+
} else if (fieldType === "null") {
|
|
158
|
+
finalLeaf = isNot ? { [lastKey]: { not: null } } : { [lastKey]: null };
|
|
157
159
|
} else {
|
|
158
160
|
finalLeaf = buildSingleValueCondition(lastKey, fieldType, values[0], isNot);
|
|
159
161
|
}
|