ochre-sdk 0.20.11 → 0.20.12
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.mjs +9 -20
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -832,26 +832,15 @@ const setQuerySchema = z.union([
|
|
|
832
832
|
]);
|
|
833
833
|
const setQueriesSchema = z.array(setQuerySchema).default([]);
|
|
834
834
|
function validateSetQueriesOperators(queries, ctx) {
|
|
835
|
-
for (const [index, query] of queries.entries()) {
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
});
|
|
845
|
-
if (index > 0 && query.operator == null) ctx.addIssue({
|
|
846
|
-
code: "custom",
|
|
847
|
-
path: [
|
|
848
|
-
"queries",
|
|
849
|
-
index,
|
|
850
|
-
"operator"
|
|
851
|
-
],
|
|
852
|
-
message: "Query rules after the first must include an operator"
|
|
853
|
-
});
|
|
854
|
-
}
|
|
835
|
+
for (const [index, query] of queries.entries()) if (index > 0 && query.operator == null) ctx.addIssue({
|
|
836
|
+
code: "custom",
|
|
837
|
+
path: [
|
|
838
|
+
"queries",
|
|
839
|
+
index,
|
|
840
|
+
"operator"
|
|
841
|
+
],
|
|
842
|
+
message: "Query rules after the first must include an operator"
|
|
843
|
+
});
|
|
855
844
|
}
|
|
856
845
|
/**
|
|
857
846
|
* Schema for validating the parameters for the Set property values by property variables fetching function
|