@epilot/entity-mapping-client 0.10.4 → 0.10.5

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/openapi.d.ts CHANGED
@@ -225,6 +225,14 @@ declare namespace Components {
225
225
  *
226
226
  */
227
227
  filter?: /* Mirrors entity-api's GraphNodeFilter (see entity-api openapi.yml). */ GraphNodeFilter[];
228
+ /**
229
+ * Only meaningful for a node expected to resolve to a single entity (the seed node, or
230
+ * "cardinality: one"). When true, finding zero matching entities is not an error - the
231
+ * mapping proceeds without this node's data instead of failing. Finding more than one
232
+ * match still fails regardless of this flag; ambiguity is never silently accepted.
233
+ *
234
+ */
235
+ optional?: boolean;
228
236
  }
229
237
  /**
230
238
  * Mirrors entity-api's GraphNodeFilter (see entity-api openapi.yml).
@@ -687,6 +695,20 @@ declare namespace Components {
687
695
  * path to the array from the entity payload
688
696
  */
689
697
  source_path?: string;
698
+ /**
699
+ * Kind of journey block the loop iterates. 'journey-multi-select' (default) is a cards block with multi selection. 'journey-file-upload' is a file upload block: source_path points at the submission's `_files.$relation` array and `filter_tags` narrows it down to the block's files. Forwarded to the flow-level loop by the Automation Hub.
700
+ *
701
+ */
702
+ source_type?: "journey-multi-select" | "journey-file-upload";
703
+ /**
704
+ * Only iterate items of the array whose `_tags` contain every listed tag. Meant for relation arrays such as `submission._files.$relation`, where the journey tags each file relation with the upload block it came from. `##LOOP_INDEX##` keeps referring to the item's index in the unfiltered array.
705
+ *
706
+ * example:
707
+ * [
708
+ * "_hidden_ 2a4b1c3d-0000-4000-8000-000000000000 - Dokumente"
709
+ * ]
710
+ */
711
+ filter_tags?: string[];
690
712
  /**
691
713
  * a hard limit of how many times the loop is allowed to run.
692
714
  */
package/dist/openapi.json CHANGED
@@ -977,6 +977,25 @@
977
977
  "type": "string",
978
978
  "description": "path to the array from the entity payload"
979
979
  },
980
+ "source_type": {
981
+ "type": "string",
982
+ "description": "Kind of journey block the loop iterates. 'journey-multi-select' (default) is a cards block with multi selection. 'journey-file-upload' is a file upload block: source_path points at the submission's `_files.$relation` array and `filter_tags` narrows it down to the block's files. Forwarded to the flow-level loop by the Automation Hub.\n",
983
+ "enum": [
984
+ "journey-multi-select",
985
+ "journey-file-upload"
986
+ ],
987
+ "default": "journey-multi-select"
988
+ },
989
+ "filter_tags": {
990
+ "type": "array",
991
+ "description": "Only iterate items of the array whose `_tags` contain every listed tag. Meant for relation arrays such as `submission._files.$relation`, where the journey tags each file relation with the upload block it came from. `##LOOP_INDEX##` keeps referring to the item's index in the unfiltered array.\n",
992
+ "items": {
993
+ "type": "string"
994
+ },
995
+ "example": [
996
+ "_hidden_ 2a4b1c3d-0000-4000-8000-000000000000 - Dokumente"
997
+ ]
998
+ },
980
999
  "length": {
981
1000
  "type": "number",
982
1001
  "description": "a hard limit of how many times the loop is allowed to run."
@@ -1267,6 +1286,10 @@
1267
1286
  "items": {
1268
1287
  "$ref": "#/components/schemas/GraphNodeFilter"
1269
1288
  }
1289
+ },
1290
+ "optional": {
1291
+ "type": "boolean",
1292
+ "description": "Only meaningful for a node expected to resolve to a single entity (the seed node, or\n\"cardinality: one\"). When true, finding zero matching entities is not an error - the\nmapping proceeds without this node's data instead of failing. Finding more than one\nmatch still fails regardless of this flag; ambiguity is never silently accepted.\n"
1270
1293
  }
1271
1294
  },
1272
1295
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-mapping-client",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "JavaScript client library for the ePilot Entity Mapping API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",