@epilot/entity-mapping-client 0.10.4-alpha.1 → 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
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
-
3
1
  import type {
4
2
  OpenAPIClient,
5
3
  Parameters,
@@ -95,6 +93,14 @@ declare namespace Components {
95
93
  * A reference (id and schema) to the entity to be used as source.
96
94
  */
97
95
  source_ref: EntityRef;
96
+ /**
97
+ * Reference to the current iteration's entity when running inside a flow loop.
98
+ * When set, its fields and relations are merged into the source context;
99
+ * on schema conflicts the loop entity wins, so paths like `<schema>._id` resolve
100
+ * to the iteration entity rather than to a same-schema relation of the source.
101
+ *
102
+ */
103
+ loop_ref?: EntityRef;
98
104
  /**
99
105
  * Mapping Configuration to apply.
100
106
  */
@@ -142,6 +148,135 @@ declare namespace Components {
142
148
  export interface ExecuteRelationsResp {
143
149
  relations?: NewRelationItem[];
144
150
  }
151
+ /**
152
+ * One multi-hop graph lookup against entity-api's `POST /v1/entity:graph`, resolved during
153
+ * graph_context enrichment (before mapping_attributes are evaluated). Every node in `graph.nodes`
154
+ * is merged into sourceContext under its own `id`, so listing several nodes here costs one
155
+ * entity-api call, not one per node.
156
+ *
157
+ * If a node's `cardinality` is "one" (or it is the seed node), exactly one entity must be found
158
+ * for it: zero or multiple matches fail the mapping execution instead of silently mapping
159
+ * missing/wrong data. If "many" (the default), it resolves to an array - possibly empty - with no
160
+ * such failure. Each node's cardinality is validated independently.
161
+ *
162
+ * `seed.entity_id` and any `graph.nodes[].filter[].value` may contain `{{handlebars}}` placeholders
163
+ * (e.g. `{{contract._id}}`, `{{contract.origin_order}}`), resolved against the in-progress
164
+ * sourceContext (the source entity, its 1-hop relations, and any custom variables already
165
+ * resolved) before the graph query is sent.
166
+ *
167
+ */
168
+ export interface GraphContextEntry {
169
+ seed: /* Mirrors entity-api's GraphSeed (see entity-api openapi.yml) - the entity the graph traversal starts from. */ GraphSeed;
170
+ graph: /* Mirrors entity-api's GraphDefinition (see entity-api openapi.yml) - the shape of the graph to traverse. */ GraphDefinition;
171
+ }
172
+ /**
173
+ * Mirrors entity-api's GraphDefinition (see entity-api openapi.yml) - the shape of the graph to traverse.
174
+ */
175
+ export interface GraphDefinition {
176
+ nodes: /* Mirrors entity-api's GraphNode (see entity-api openapi.yml). */ GraphNode[];
177
+ edges: /* Mirrors entity-api's GraphEdge (see entity-api openapi.yml). */ GraphEdge[];
178
+ }
179
+ /**
180
+ * Mirrors entity-api's GraphEdge (see entity-api openapi.yml).
181
+ */
182
+ export interface GraphEdge {
183
+ /**
184
+ * Source node ID.
185
+ * example:
186
+ * contact
187
+ */
188
+ from: string;
189
+ /**
190
+ * Target node ID.
191
+ * example:
192
+ * order
193
+ */
194
+ to: string;
195
+ }
196
+ /**
197
+ * Mirrors entity-api's GraphNode (see entity-api openapi.yml).
198
+ */
199
+ export interface GraphNode {
200
+ /**
201
+ * Unique identifier for this node in the graph definition.
202
+ * example:
203
+ * contact
204
+ */
205
+ id: string;
206
+ /**
207
+ * Entity schema slug for this node.
208
+ * example:
209
+ * contact
210
+ */
211
+ schema: string;
212
+ /**
213
+ * "one": this node resolves to a single entity. "many" (default if unset): this node
214
+ * resolves to an array of entities.
215
+ *
216
+ */
217
+ cardinality?: "one" | "many";
218
+ /**
219
+ * Optional entity fields to include in the hydrated response for this node.
220
+ */
221
+ fields?: string[];
222
+ /**
223
+ * Narrows this node's traversal results to entities matching every filter (AND semantics).
224
+ * Useful for disambiguating among multiple entities reachable via the same graph edge.
225
+ *
226
+ */
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;
236
+ }
237
+ /**
238
+ * Mirrors entity-api's GraphNodeFilter (see entity-api openapi.yml).
239
+ */
240
+ export interface GraphNodeFilter {
241
+ /**
242
+ * Entity attribute name to match against.
243
+ * example:
244
+ * order_number
245
+ */
246
+ attribute: string;
247
+ /**
248
+ * Literal value the attribute must exactly equal. Supports `{{handlebars}}` placeholders
249
+ * resolved against sourceContext when given as a string.
250
+ *
251
+ * example:
252
+ * {{contract.origin_order}}
253
+ */
254
+ value: /**
255
+ * Literal value the attribute must exactly equal. Supports `{{handlebars}}` placeholders
256
+ * resolved against sourceContext when given as a string.
257
+ *
258
+ * example:
259
+ * {{contract.origin_order}}
260
+ */
261
+ (string | null) | number | boolean;
262
+ }
263
+ /**
264
+ * Mirrors entity-api's GraphSeed (see entity-api openapi.yml) - the entity the graph traversal starts from.
265
+ */
266
+ export interface GraphSeed {
267
+ /**
268
+ * The id of the seed entity. Supports `{{handlebars}}` placeholders resolved against sourceContext.
269
+ * example:
270
+ * {{contract._id}}
271
+ */
272
+ entity_id: string;
273
+ /**
274
+ * The node ID in `graph.nodes` that corresponds to the seed entity.
275
+ * example:
276
+ * contact
277
+ */
278
+ node_id: string;
279
+ }
145
280
  export interface JourneyRef {
146
281
  journey_id?: string;
147
282
  }
@@ -399,6 +534,31 @@ declare namespace Components {
399
534
  * Generate random ids / numbers
400
535
  */
401
536
  _random?: RandomOperation;
537
+ /**
538
+ * Iterate over a source array. Use with _as and _map.
539
+ * The value is a path to resolve from the source entity context.
540
+ * Example: "submission.meterReadings"
541
+ *
542
+ * example:
543
+ * submission.meterReadings
544
+ */
545
+ _each?: string;
546
+ /**
547
+ * Name for the current iteration item in _each.
548
+ * Accessed as $<name> in _copy paths within _map.
549
+ * Example: "reading" (accessed as $reading)
550
+ *
551
+ * example:
552
+ * reading
553
+ */
554
+ _as?: string;
555
+ /**
556
+ * Operation to evaluate per _each iteration item.
557
+ * Can be any OperationNode, typically an object with _copy
558
+ * references to the $<_as name> alias.
559
+ *
560
+ */
561
+ _map?: /* Mapping operation nodes are either primitive values or operation node objects */ OperationNode;
402
562
  }
403
563
  export interface Owner {
404
564
  type: "user" | "internal_service";
@@ -431,6 +591,10 @@ declare namespace Components {
431
591
  * Include all relation tags (labels) present on the main entity relation
432
592
  */
433
593
  target_tags_include_source?: boolean;
594
+ /**
595
+ * Tags to add to the matched target entity's _tags array during mapping. Useful for assigning file collections to file entities.
596
+ */
597
+ target_entity_tags?: string[];
434
598
  /**
435
599
  * Whether to override the relation source_filter with the specified one
436
600
  */
@@ -518,6 +682,11 @@ declare namespace Components {
518
682
  * Unique key for target entity (see upsertEntity of Entity API)
519
683
  */
520
684
  target_unique?: string[];
685
+ /**
686
+ * Execution wire flag set per automation by automation-workers: resolve the target entity via the organization's global uniqueness criteria (deduplication-api) instead of target_unique. Never persisted in stored mapping configs.
687
+ *
688
+ */
689
+ use_uniqueness_criteria?: boolean;
521
690
  /**
522
691
  * contains config in case of running in loop mode
523
692
  */
@@ -526,6 +695,20 @@ declare namespace Components {
526
695
  * path to the array from the entity payload
527
696
  */
528
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[];
529
712
  /**
530
713
  * a hard limit of how many times the loop is allowed to run.
531
714
  */
@@ -569,6 +752,32 @@ declare namespace Components {
569
752
  * Relation tags (labels) to include in main entity linkback relation attribute
570
753
  */
571
754
  linkback_relation_tags?: string[];
755
+ /**
756
+ * Multi-hop entity graph lookups resolved before any mapping_attribute is evaluated. Each
757
+ * entry queries entity-api's `POST /v1/entity:graph` and merges every node's result into
758
+ * sourceContext under its own `graph.nodes[].id`, so mapping_attributes can `_copy`/`_template`
759
+ * from `<node id>.<field>`. A graph node's value overwrites any existing sourceContext key of
760
+ * the same name (a source entity field, a 1-hop relation, or another graph node).
761
+ *
762
+ */
763
+ graph_context?: /**
764
+ * One multi-hop graph lookup against entity-api's `POST /v1/entity:graph`, resolved during
765
+ * graph_context enrichment (before mapping_attributes are evaluated). Every node in `graph.nodes`
766
+ * is merged into sourceContext under its own `id`, so listing several nodes here costs one
767
+ * entity-api call, not one per node.
768
+ *
769
+ * If a node's `cardinality` is "one" (or it is the seed node), exactly one entity must be found
770
+ * for it: zero or multiple matches fail the mapping execution instead of silently mapping
771
+ * missing/wrong data. If "many" (the default), it resolves to an array - possibly empty - with no
772
+ * such failure. Each node's cardinality is validated independently.
773
+ *
774
+ * `seed.entity_id` and any `graph.nodes[].filter[].value` may contain `{{handlebars}}` placeholders
775
+ * (e.g. `{{contract._id}}`, `{{contract.origin_order}}`), resolved against the in-progress
776
+ * sourceContext (the source entity, its 1-hop relations, and any custom variables already
777
+ * resolved) before the graph query is sent.
778
+ *
779
+ */
780
+ GraphContextEntry[];
572
781
  }
573
782
  }
574
783
  }
@@ -1061,6 +1270,12 @@ export type ExecuteMappingReq = Components.Schemas.ExecuteMappingReq;
1061
1270
  export type ExecuteMappingResp = Components.Schemas.ExecuteMappingResp;
1062
1271
  export type ExecuteRelationsReq = Components.Schemas.ExecuteRelationsReq;
1063
1272
  export type ExecuteRelationsResp = Components.Schemas.ExecuteRelationsResp;
1273
+ export type GraphContextEntry = Components.Schemas.GraphContextEntry;
1274
+ export type GraphDefinition = Components.Schemas.GraphDefinition;
1275
+ export type GraphEdge = Components.Schemas.GraphEdge;
1276
+ export type GraphNode = Components.Schemas.GraphNode;
1277
+ export type GraphNodeFilter = Components.Schemas.GraphNodeFilter;
1278
+ export type GraphSeed = Components.Schemas.GraphSeed;
1064
1279
  export type JourneyRef = Components.Schemas.JourneyRef;
1065
1280
  export type Loop_Index_String = Components.Schemas.LoopIndexString;
1066
1281
  export type MapCondition = Components.Schemas.MapCondition;
package/dist/openapi.json CHANGED
@@ -763,6 +763,10 @@
763
763
  "$ref": "#/components/schemas/EntityRef",
764
764
  "description": "A reference (id and schema) to the entity to be used as source."
765
765
  },
766
+ "loop_ref": {
767
+ "$ref": "#/components/schemas/EntityRef",
768
+ "description": "Reference to the current iteration's entity when running inside a flow loop.\nWhen set, its fields and relations are merged into the source context;\non schema conflicts the loop entity wins, so paths like `<schema>._id` resolve\nto the iteration entity rather than to a same-schema relation of the source.\n"
769
+ },
766
770
  "targets": {
767
771
  "type": "array",
768
772
  "items": {
@@ -960,6 +964,11 @@
960
964
  "type": "string"
961
965
  }
962
966
  },
967
+ "use_uniqueness_criteria": {
968
+ "type": "boolean",
969
+ "default": false,
970
+ "description": "Execution wire flag set per automation by automation-workers: resolve the target entity via the organization's global uniqueness criteria (deduplication-api) instead of target_unique. Never persisted in stored mapping configs.\n"
971
+ },
963
972
  "loop_config": {
964
973
  "type": "object",
965
974
  "description": "contains config in case of running in loop mode",
@@ -968,10 +977,28 @@
968
977
  "type": "string",
969
978
  "description": "path to the array from the entity payload"
970
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
+ },
971
999
  "length": {
972
1000
  "type": "number",
973
- "description": "a hard limit of how many times the loop is allowed to run.",
974
- "default": "the length of the array"
1001
+ "description": "a hard limit of how many times the loop is allowed to run."
975
1002
  }
976
1003
  }
977
1004
  },
@@ -1023,6 +1050,13 @@
1023
1050
  "items": {
1024
1051
  "type": "string"
1025
1052
  }
1053
+ },
1054
+ "graph_context": {
1055
+ "type": "array",
1056
+ "description": "Multi-hop entity graph lookups resolved before any mapping_attribute is evaluated. Each\nentry queries entity-api's `POST /v1/entity:graph` and merges every node's result into\nsourceContext under its own `graph.nodes[].id`, so mapping_attributes can `_copy`/`_template`\nfrom `<node id>.<field>`. A graph node's value overwrites any existing sourceContext key of\nthe same name (a source entity field, a 1-hop relation, or another graph node).\n",
1057
+ "items": {
1058
+ "$ref": "#/components/schemas/GraphContextEntry"
1059
+ }
1026
1060
  }
1027
1061
  },
1028
1062
  "required": [
@@ -1093,6 +1127,13 @@
1093
1127
  "description": "Include all relation tags (labels) present on the main entity relation",
1094
1128
  "default": false
1095
1129
  },
1130
+ "target_entity_tags": {
1131
+ "type": "array",
1132
+ "description": "Tags to add to the matched target entity's _tags array during mapping. Useful for assigning file collections to file entities.",
1133
+ "items": {
1134
+ "type": "string"
1135
+ }
1136
+ },
1096
1137
  "override_with_source_filter": {
1097
1138
  "type": "boolean",
1098
1139
  "description": "Whether to override the relation source_filter with the specified one",
@@ -1152,6 +1193,161 @@
1152
1193
  "mode"
1153
1194
  ]
1154
1195
  },
1196
+ "GraphContextEntry": {
1197
+ "type": "object",
1198
+ "description": "One multi-hop graph lookup against entity-api's `POST /v1/entity:graph`, resolved during\ngraph_context enrichment (before mapping_attributes are evaluated). Every node in `graph.nodes`\nis merged into sourceContext under its own `id`, so listing several nodes here costs one\nentity-api call, not one per node.\n\nIf a node's `cardinality` is \"one\" (or it is the seed node), exactly one entity must be found\nfor it: zero or multiple matches fail the mapping execution instead of silently mapping\nmissing/wrong data. If \"many\" (the default), it resolves to an array - possibly empty - with no\nsuch failure. Each node's cardinality is validated independently.\n\n`seed.entity_id` and any `graph.nodes[].filter[].value` may contain `{{handlebars}}` placeholders\n(e.g. `{{contract._id}}`, `{{contract.origin_order}}`), resolved against the in-progress\nsourceContext (the source entity, its 1-hop relations, and any custom variables already\nresolved) before the graph query is sent.\n",
1199
+ "properties": {
1200
+ "seed": {
1201
+ "$ref": "#/components/schemas/GraphSeed"
1202
+ },
1203
+ "graph": {
1204
+ "$ref": "#/components/schemas/GraphDefinition"
1205
+ }
1206
+ },
1207
+ "required": [
1208
+ "seed",
1209
+ "graph"
1210
+ ]
1211
+ },
1212
+ "GraphSeed": {
1213
+ "description": "Mirrors entity-api's GraphSeed (see entity-api openapi.yml) - the entity the graph traversal starts from.",
1214
+ "type": "object",
1215
+ "properties": {
1216
+ "entity_id": {
1217
+ "type": "string",
1218
+ "description": "The id of the seed entity. Supports `{{handlebars}}` placeholders resolved against sourceContext.",
1219
+ "example": "{{contract._id}}"
1220
+ },
1221
+ "node_id": {
1222
+ "type": "string",
1223
+ "description": "The node ID in `graph.nodes` that corresponds to the seed entity.",
1224
+ "example": "contact"
1225
+ }
1226
+ },
1227
+ "required": [
1228
+ "entity_id",
1229
+ "node_id"
1230
+ ]
1231
+ },
1232
+ "GraphDefinition": {
1233
+ "description": "Mirrors entity-api's GraphDefinition (see entity-api openapi.yml) - the shape of the graph to traverse.",
1234
+ "type": "object",
1235
+ "properties": {
1236
+ "nodes": {
1237
+ "type": "array",
1238
+ "items": {
1239
+ "$ref": "#/components/schemas/GraphNode"
1240
+ }
1241
+ },
1242
+ "edges": {
1243
+ "type": "array",
1244
+ "items": {
1245
+ "$ref": "#/components/schemas/GraphEdge"
1246
+ }
1247
+ }
1248
+ },
1249
+ "required": [
1250
+ "nodes",
1251
+ "edges"
1252
+ ]
1253
+ },
1254
+ "GraphNode": {
1255
+ "description": "Mirrors entity-api's GraphNode (see entity-api openapi.yml).",
1256
+ "type": "object",
1257
+ "properties": {
1258
+ "id": {
1259
+ "type": "string",
1260
+ "description": "Unique identifier for this node in the graph definition.",
1261
+ "example": "contact"
1262
+ },
1263
+ "schema": {
1264
+ "type": "string",
1265
+ "description": "Entity schema slug for this node.",
1266
+ "example": "contact"
1267
+ },
1268
+ "cardinality": {
1269
+ "type": "string",
1270
+ "enum": [
1271
+ "one",
1272
+ "many"
1273
+ ],
1274
+ "description": "\"one\": this node resolves to a single entity. \"many\" (default if unset): this node\nresolves to an array of entities.\n"
1275
+ },
1276
+ "fields": {
1277
+ "type": "array",
1278
+ "description": "Optional entity fields to include in the hydrated response for this node.",
1279
+ "items": {
1280
+ "type": "string"
1281
+ }
1282
+ },
1283
+ "filter": {
1284
+ "type": "array",
1285
+ "description": "Narrows this node's traversal results to entities matching every filter (AND semantics).\nUseful for disambiguating among multiple entities reachable via the same graph edge.\n",
1286
+ "items": {
1287
+ "$ref": "#/components/schemas/GraphNodeFilter"
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"
1293
+ }
1294
+ },
1295
+ "required": [
1296
+ "id",
1297
+ "schema"
1298
+ ]
1299
+ },
1300
+ "GraphNodeFilter": {
1301
+ "description": "Mirrors entity-api's GraphNodeFilter (see entity-api openapi.yml).",
1302
+ "type": "object",
1303
+ "properties": {
1304
+ "attribute": {
1305
+ "type": "string",
1306
+ "description": "Entity attribute name to match against.",
1307
+ "example": "order_number"
1308
+ },
1309
+ "value": {
1310
+ "description": "Literal value the attribute must exactly equal. Supports `{{handlebars}}` placeholders\nresolved against sourceContext when given as a string.\n",
1311
+ "oneOf": [
1312
+ {
1313
+ "type": "string",
1314
+ "nullable": true
1315
+ },
1316
+ {
1317
+ "type": "number"
1318
+ },
1319
+ {
1320
+ "type": "boolean"
1321
+ }
1322
+ ],
1323
+ "example": "{{contract.origin_order}}"
1324
+ }
1325
+ },
1326
+ "required": [
1327
+ "attribute",
1328
+ "value"
1329
+ ]
1330
+ },
1331
+ "GraphEdge": {
1332
+ "description": "Mirrors entity-api's GraphEdge (see entity-api openapi.yml).",
1333
+ "type": "object",
1334
+ "properties": {
1335
+ "from": {
1336
+ "type": "string",
1337
+ "description": "Source node ID.",
1338
+ "example": "contact"
1339
+ },
1340
+ "to": {
1341
+ "type": "string",
1342
+ "description": "Target node ID.",
1343
+ "example": "order"
1344
+ }
1345
+ },
1346
+ "required": [
1347
+ "from",
1348
+ "to"
1349
+ ]
1350
+ },
1155
1351
  "MappingAttributeV2": {
1156
1352
  "type": "object",
1157
1353
  "properties": {
@@ -1256,6 +1452,20 @@
1256
1452
  "_random": {
1257
1453
  "description": "Generate random ids / numbers",
1258
1454
  "$ref": "#/components/schemas/RandomOperation"
1455
+ },
1456
+ "_each": {
1457
+ "description": "Iterate over a source array. Use with _as and _map.\nThe value is a path to resolve from the source entity context.\nExample: \"submission.meterReadings\"\n",
1458
+ "type": "string",
1459
+ "example": "submission.meterReadings"
1460
+ },
1461
+ "_as": {
1462
+ "description": "Name for the current iteration item in _each.\nAccessed as $<name> in _copy paths within _map.\nExample: \"reading\" (accessed as $reading)\n",
1463
+ "type": "string",
1464
+ "example": "reading"
1465
+ },
1466
+ "_map": {
1467
+ "description": "Operation to evaluate per _each iteration item.\nCan be any OperationNode, typically an object with _copy\nreferences to the $<_as name> alias.\n",
1468
+ "$ref": "#/components/schemas/OperationNode"
1259
1469
  }
1260
1470
  },
1261
1471
  "additionalProperties": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/entity-mapping-client",
3
- "version": "0.10.4-alpha.1",
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",
@@ -22,6 +22,19 @@
22
22
  "entity",
23
23
  "entity-mapping"
24
24
  ],
25
+ "scripts": {
26
+ "test": "vitest",
27
+ "typescript": "tsc",
28
+ "bundle-definition": "webpack",
29
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity-mapping-api.yaml",
30
+ "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
31
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
32
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
33
+ "build:watch": "npm run build && tsc -w",
34
+ "prepublishOnly": "npm run typegen && npm run build",
35
+ "release-alpha": "npm version prerelease --preid alpha",
36
+ "lint": "biome check src"
37
+ },
25
38
  "files": [
26
39
  "*.js",
27
40
  "*.d.ts",
@@ -58,17 +71,5 @@
58
71
  "webpack": "^5.18.0",
59
72
  "webpack-cli": "^4.4.0"
60
73
  },
61
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
62
- "scripts": {
63
- "test": "vitest",
64
- "typescript": "tsc",
65
- "bundle-definition": "webpack",
66
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/entity-mapping-api.yaml",
67
- "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
68
- "build": "tsc && npm run build:patch && npm run bundle-definition",
69
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
70
- "build:watch": "npm run build && tsc -w",
71
- "release-alpha": "npm version prerelease --preid alpha",
72
- "lint": "biome check src"
73
- }
74
- }
74
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
75
+ }