@approvio/api 0.0.36 → 0.0.37

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.
@@ -828,7 +828,7 @@ function validateGetWorkflowParams(object) {
828
828
  if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
829
829
  let include = void 0;
830
830
  if (hasOwnProperty(object, "include")) {
831
- const includeVal = object["include"];
831
+ const includeVal = typeof object["include"] === "string" ? [object["include"]] : object["include"];
832
832
  if (!isArray(includeVal)) return (0, fp_ts_Either.left)("invalid_include");
833
833
  const validatedInclude = [];
834
834
  for (const item of includeVal) {
@@ -846,7 +846,7 @@ function validateListWorkflowsParams(object) {
846
846
  if (typeof object !== "object" || object === null) return (0, fp_ts_Either.left)("malformed_object");
847
847
  let include = void 0;
848
848
  if (hasOwnProperty(object, "include")) {
849
- const includeVal = object["include"];
849
+ const includeVal = typeof object["include"] === "string" ? [object["include"]] : object["include"];
850
850
  if (!isArray(includeVal)) return (0, fp_ts_Either.left)("invalid_include");
851
851
  const validatedInclude = [];
852
852
  for (const item of includeVal) {
@@ -804,7 +804,7 @@ function validateGetWorkflowParams(object) {
804
804
  if (typeof object !== "object" || object === null) return left("malformed_object");
805
805
  let include = void 0;
806
806
  if (hasOwnProperty(object, "include")) {
807
- const includeVal = object["include"];
807
+ const includeVal = typeof object["include"] === "string" ? [object["include"]] : object["include"];
808
808
  if (!isArray(includeVal)) return left("invalid_include");
809
809
  const validatedInclude = [];
810
810
  for (const item of includeVal) {
@@ -822,7 +822,7 @@ function validateListWorkflowsParams(object) {
822
822
  if (typeof object !== "object" || object === null) return left("malformed_object");
823
823
  let include = void 0;
824
824
  if (hasOwnProperty(object, "include")) {
825
- const includeVal = object["include"];
825
+ const includeVal = typeof object["include"] === "string" ? [object["include"]] : object["include"];
826
826
  if (!isArray(includeVal)) return left("invalid_include");
827
827
  const validatedInclude = [];
828
828
  for (const item of includeVal) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@approvio/api",
3
3
  "author": "Giovanni Baratta",
4
4
  "license": "MIT",
5
- "version": "0.0.36",
5
+ "version": "0.0.37",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "./dist/src/index.cjs",