@offenedatenmodellierung/data-modelling-sdk 2.0.9 → 2.1.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.
@@ -105,6 +105,21 @@ export function add_odcs_node_to_domain(workspace_json: string, domain_id: strin
105
105
  */
106
106
  export function add_relationship_to_workspace(workspace_json: string, relationship_json: string): string;
107
107
 
108
+ /**
109
+ * Add a sketch to an index.
110
+ *
111
+ * # Arguments
112
+ *
113
+ * * `index_json` - JSON string containing SketchIndex
114
+ * * `sketch_json` - JSON string containing Sketch
115
+ * * `filename` - Filename for the sketch YAML file
116
+ *
117
+ * # Returns
118
+ *
119
+ * JSON string containing updated SketchIndex, or JsValue error
120
+ */
121
+ export function add_sketch_to_index(index_json: string, sketch_json: string, filename: string): string;
122
+
108
123
  /**
109
124
  * Add a system to a domain in a DataModel.
110
125
  *
@@ -257,6 +272,31 @@ export function create_knowledge_article(number: number, title: string, summary:
257
272
  */
258
273
  export function create_knowledge_index(): string;
259
274
 
275
+ /**
276
+ * Create a new sketch with required fields.
277
+ *
278
+ * # Arguments
279
+ *
280
+ * * `number` - Sketch number (1, 2, 3, etc. - will be formatted as SKETCH-0001)
281
+ * * `title` - Sketch title
282
+ * * `sketch_type` - Sketch type (architecture, dataFlow, entityRelationship, sequence, flowchart, wireframe, concept, infrastructure, other)
283
+ * * `excalidraw_data` - JSON string of Excalidraw scene data
284
+ *
285
+ * # Returns
286
+ *
287
+ * JSON string containing Sketch, or JsValue error
288
+ */
289
+ export function create_sketch(number: bigint, title: string, sketch_type: string, excalidraw_data: string): string;
290
+
291
+ /**
292
+ * Create a new empty sketch index.
293
+ *
294
+ * # Returns
295
+ *
296
+ * JSON string containing SketchIndex, or JsValue error
297
+ */
298
+ export function create_sketch_index(): string;
299
+
260
300
  /**
261
301
  * Create a new workspace.
262
302
  *
@@ -285,6 +325,19 @@ export function create_workspace(name: string, owner_id: string): string;
285
325
  */
286
326
  export function detect_naming_conflicts(existing_tables_json: string, new_tables_json: string): string;
287
327
 
328
+ /**
329
+ * Export a BPMN model to XML content.
330
+ *
331
+ * # Arguments
332
+ *
333
+ * * `xml_content` - BPMN XML content as a string
334
+ *
335
+ * # Returns
336
+ *
337
+ * BPMN XML content as string, or JsValue error
338
+ */
339
+ export function export_bpmn_model(xml_content: string): string;
340
+
288
341
  /**
289
342
  * Export a CADS Asset to Markdown format.
290
343
  *
@@ -443,6 +496,19 @@ export function export_decision_yaml_to_markdown(decision_yaml: string): string;
443
496
  */
444
497
  export function export_decision_yaml_to_pdf(decision_yaml: string, branding_json?: string | null): string;
445
498
 
499
+ /**
500
+ * Export a DMN model to XML content.
501
+ *
502
+ * # Arguments
503
+ *
504
+ * * `xml_content` - DMN XML content as a string
505
+ *
506
+ * # Returns
507
+ *
508
+ * DMN XML content as string, or JsValue error
509
+ */
510
+ export function export_dmn_model(xml_content: string): string;
511
+
446
512
  /**
447
513
  * Export a domain config to YAML format.
448
514
  *
@@ -713,6 +779,32 @@ export function export_odps_yaml_to_pdf(odps_yaml: string, branding_json?: strin
713
779
  */
714
780
  export function export_openapi_spec(content: string, source_format: string, target_format?: string | null): string;
715
781
 
782
+ /**
783
+ * Export a sketches index to YAML format.
784
+ *
785
+ * # Arguments
786
+ *
787
+ * * `index_json` - JSON string containing SketchIndex
788
+ *
789
+ * # Returns
790
+ *
791
+ * SketchIndex YAML format string, or JsValue error
792
+ */
793
+ export function export_sketch_index_to_yaml(index_json: string): string;
794
+
795
+ /**
796
+ * Export a sketch to YAML format.
797
+ *
798
+ * # Arguments
799
+ *
800
+ * * `sketch_json` - JSON string containing Sketch
801
+ *
802
+ * # Returns
803
+ *
804
+ * Sketch YAML format string, or JsValue error
805
+ */
806
+ export function export_sketch_to_yaml(sketch_json: string): string;
807
+
716
808
  /**
717
809
  * Export an ODCS Table (Data Contract) to Markdown format.
718
810
  *
@@ -987,6 +1079,36 @@ export function get_workspace_relationships_for_source(workspace_json: string, s
987
1079
  */
988
1080
  export function get_workspace_relationships_for_target(workspace_json: string, target_table_id: string): string;
989
1081
 
1082
+ /**
1083
+ * Import a BPMN model from XML content.
1084
+ *
1085
+ * # Arguments
1086
+ *
1087
+ * * `domain_id` - Domain UUID as string
1088
+ * * `xml_content` - BPMN XML content as a string
1089
+ * * `model_name` - Optional model name (extracted from XML if not provided)
1090
+ *
1091
+ * # Returns
1092
+ *
1093
+ * JSON string containing BPMNModel, or JsValue error
1094
+ */
1095
+ export function import_bpmn_model(domain_id: string, xml_content: string, model_name?: string | null): string;
1096
+
1097
+ /**
1098
+ * Import a DMN model from XML content.
1099
+ *
1100
+ * # Arguments
1101
+ *
1102
+ * * `domain_id` - Domain UUID as string
1103
+ * * `xml_content` - DMN XML content as a string
1104
+ * * `model_name` - Optional model name (extracted from XML if not provided)
1105
+ *
1106
+ * # Returns
1107
+ *
1108
+ * JSON string containing DMNModel, or JsValue error
1109
+ */
1110
+ export function import_dmn_model(domain_id: string, xml_content: string, model_name?: string | null): string;
1111
+
990
1112
  /**
991
1113
  * Import data model from AVRO schema.
992
1114
  *
@@ -1313,6 +1435,32 @@ export function parse_odcs_yaml(yaml_content: string): string;
1313
1435
  */
1314
1436
  export function parse_odcs_yaml_v2(yaml_content: string): string;
1315
1437
 
1438
+ /**
1439
+ * Parse a sketches index YAML file and return a structured representation.
1440
+ *
1441
+ * # Arguments
1442
+ *
1443
+ * * `yaml_content` - Sketches index YAML content as a string (sketches.yaml)
1444
+ *
1445
+ * # Returns
1446
+ *
1447
+ * JSON string containing SketchIndex, or JsValue error
1448
+ */
1449
+ export function parse_sketch_index_yaml(yaml_content: string): string;
1450
+
1451
+ /**
1452
+ * Parse a sketch YAML file and return a structured representation.
1453
+ *
1454
+ * # Arguments
1455
+ *
1456
+ * * `yaml_content` - Sketch YAML content as a string (.sketch.yaml)
1457
+ *
1458
+ * # Returns
1459
+ *
1460
+ * JSON string containing Sketch, or JsValue error
1461
+ */
1462
+ export function parse_sketch_yaml(yaml_content: string): string;
1463
+
1316
1464
  /**
1317
1465
  * Parse a tag string into a Tag enum.
1318
1466
  *
@@ -1439,6 +1587,20 @@ export function save_model(db_name: string, store_name: string, workspace_path:
1439
1587
  */
1440
1588
  export function search_knowledge_articles(articles_json: string, query: string): string;
1441
1589
 
1590
+ /**
1591
+ * Search sketches by title, description, or tags.
1592
+ *
1593
+ * # Arguments
1594
+ *
1595
+ * * `sketches_json` - JSON string containing array of Sketch
1596
+ * * `query` - Search query string (case-insensitive)
1597
+ *
1598
+ * # Returns
1599
+ *
1600
+ * JSON string containing array of matching Sketch, or JsValue error
1601
+ */
1602
+ export function search_sketches(sketches_json: string, query: string): string;
1603
+
1442
1604
  /**
1443
1605
  * Serialize a Tag enum to string format.
1444
1606
  *
@@ -1601,6 +1763,7 @@ export interface InitOutput {
1601
1763
  readonly add_entity_to_domain_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1602
1764
  readonly add_odcs_node_to_domain: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1603
1765
  readonly add_relationship_to_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1766
+ readonly add_sketch_to_index: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1604
1767
  readonly add_system_to_domain: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1605
1768
  readonly analyze_openapi_conversion: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1606
1769
  readonly check_circular_dependency: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
@@ -1612,8 +1775,11 @@ export interface InitOutput {
1612
1775
  readonly create_domain_config: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1613
1776
  readonly create_knowledge_article: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => [number, number, number, number];
1614
1777
  readonly create_knowledge_index: () => [number, number, number, number];
1778
+ readonly create_sketch: (a: bigint, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
1779
+ readonly create_sketch_index: () => [number, number, number, number];
1615
1780
  readonly create_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1616
1781
  readonly detect_naming_conflicts: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1782
+ readonly export_bpmn_model: (a: number, b: number) => [number, number, number, number];
1617
1783
  readonly export_cads_to_markdown: (a: number, b: number) => [number, number, number, number];
1618
1784
  readonly export_cads_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1619
1785
  readonly export_cads_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
@@ -1625,6 +1791,7 @@ export interface InitOutput {
1625
1791
  readonly export_decision_to_yaml: (a: number, b: number) => [number, number, number, number];
1626
1792
  readonly export_decision_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1627
1793
  readonly export_decision_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1794
+ readonly export_dmn_model: (a: number, b: number) => [number, number, number, number];
1628
1795
  readonly export_domain_config_to_yaml: (a: number, b: number) => [number, number, number, number];
1629
1796
  readonly export_knowledge_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1630
1797
  readonly export_knowledge_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
@@ -1642,6 +1809,8 @@ export interface InitOutput {
1642
1809
  readonly export_odps_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1643
1810
  readonly export_odps_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1644
1811
  readonly export_openapi_spec: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1812
+ readonly export_sketch_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1813
+ readonly export_sketch_to_yaml: (a: number, b: number) => [number, number, number, number];
1645
1814
  readonly export_table_to_markdown: (a: number, b: number) => [number, number, number, number];
1646
1815
  readonly export_table_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1647
1816
  readonly export_to_avro: (a: number, b: number) => [number, number, number, number];
@@ -1663,6 +1832,8 @@ export interface InitOutput {
1663
1832
  readonly get_domain_config_id: (a: number, b: number) => [number, number, number, number];
1664
1833
  readonly get_workspace_relationships_for_source: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1665
1834
  readonly get_workspace_relationships_for_target: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1835
+ readonly import_bpmn_model: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1836
+ readonly import_dmn_model: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1666
1837
  readonly import_from_avro: (a: number, b: number) => [number, number, number, number];
1667
1838
  readonly import_from_cads: (a: number, b: number) => [number, number, number, number];
1668
1839
  readonly import_from_domain: (a: number, b: number) => [number, number, number, number];
@@ -1684,6 +1855,8 @@ export interface InitOutput {
1684
1855
  readonly parse_odcl_yaml: (a: number, b: number) => [number, number, number, number];
1685
1856
  readonly parse_odcs_yaml: (a: number, b: number) => [number, number, number, number];
1686
1857
  readonly parse_odcs_yaml_v2: (a: number, b: number) => [number, number, number, number];
1858
+ readonly parse_sketch_index_yaml: (a: number, b: number) => [number, number, number, number];
1859
+ readonly parse_sketch_yaml: (a: number, b: number) => [number, number, number, number];
1687
1860
  readonly parse_tag: (a: number, b: number) => [number, number, number, number];
1688
1861
  readonly parse_workspace_yaml: (a: number, b: number) => [number, number, number, number];
1689
1862
  readonly remove_domain_from_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
@@ -1693,6 +1866,7 @@ export interface InitOutput {
1693
1866
  readonly sanitize_sql_identifier: (a: number, b: number, c: number, d: number) => [number, number];
1694
1867
  readonly save_model: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
1695
1868
  readonly search_knowledge_articles: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1869
+ readonly search_sketches: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1696
1870
  readonly serialize_tag: (a: number, b: number) => [number, number, number, number];
1697
1871
  readonly tables_to_odcs_contract: (a: number, b: number) => [number, number, number, number];
1698
1872
  readonly update_domain_view_positions: (a: number, b: number, c: number, d: number) => [number, number, number, number];
@@ -1704,11 +1878,11 @@ export interface InitOutput {
1704
1878
  readonly validate_pattern_exclusivity: (a: number, b: number) => [number, number, number, number];
1705
1879
  readonly validate_table_name: (a: number, b: number) => [number, number, number, number];
1706
1880
  readonly validate_uuid: (a: number, b: number) => [number, number, number, number];
1707
- readonly wasm_bindgen__closure__destroy__hbcc67dc7682067cf: (a: number, b: number) => void;
1708
- readonly wasm_bindgen__closure__destroy__hc6d69c6ae18390a8: (a: number, b: number) => void;
1881
+ readonly wasm_bindgen__closure__destroy__hc7893e99547b2e80: (a: number, b: number) => void;
1882
+ readonly wasm_bindgen__closure__destroy__h86f99bd758ae1ecc: (a: number, b: number) => void;
1709
1883
  readonly wasm_bindgen__convert__closures_____invoke__h520cda017d487623: (a: number, b: number, c: any, d: any) => void;
1710
- readonly wasm_bindgen__convert__closures________invoke__h561856ff33a1b180: (a: number, b: number, c: any) => void;
1711
- readonly wasm_bindgen__convert__closures_____invoke__hf6f5a23b0f573a03: (a: number, b: number, c: any) => void;
1884
+ readonly wasm_bindgen__convert__closures________invoke__h09cc841e68a16215: (a: number, b: number, c: any) => void;
1885
+ readonly wasm_bindgen__convert__closures_____invoke__h870494dc6ceafbe6: (a: number, b: number, c: any) => void;
1712
1886
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1713
1887
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1714
1888
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -290,6 +290,48 @@ export function add_relationship_to_workspace(workspace_json, relationship_json)
290
290
  }
291
291
  }
292
292
 
293
+ /**
294
+ * Add a sketch to an index.
295
+ *
296
+ * # Arguments
297
+ *
298
+ * * `index_json` - JSON string containing SketchIndex
299
+ * * `sketch_json` - JSON string containing Sketch
300
+ * * `filename` - Filename for the sketch YAML file
301
+ *
302
+ * # Returns
303
+ *
304
+ * JSON string containing updated SketchIndex, or JsValue error
305
+ * @param {string} index_json
306
+ * @param {string} sketch_json
307
+ * @param {string} filename
308
+ * @returns {string}
309
+ */
310
+ export function add_sketch_to_index(index_json, sketch_json, filename) {
311
+ let deferred5_0;
312
+ let deferred5_1;
313
+ try {
314
+ const ptr0 = passStringToWasm0(index_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
315
+ const len0 = WASM_VECTOR_LEN;
316
+ const ptr1 = passStringToWasm0(sketch_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
317
+ const len1 = WASM_VECTOR_LEN;
318
+ const ptr2 = passStringToWasm0(filename, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
319
+ const len2 = WASM_VECTOR_LEN;
320
+ const ret = wasm.add_sketch_to_index(ptr0, len0, ptr1, len1, ptr2, len2);
321
+ var ptr4 = ret[0];
322
+ var len4 = ret[1];
323
+ if (ret[3]) {
324
+ ptr4 = 0; len4 = 0;
325
+ throw takeFromExternrefTable0(ret[2]);
326
+ }
327
+ deferred5_0 = ptr4;
328
+ deferred5_1 = len4;
329
+ return getStringFromWasm0(ptr4, len4);
330
+ } finally {
331
+ wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
332
+ }
333
+ }
334
+
293
335
  /**
294
336
  * Add a system to a domain in a DataModel.
295
337
  *
@@ -711,6 +753,77 @@ export function create_knowledge_index() {
711
753
  }
712
754
  }
713
755
 
756
+ /**
757
+ * Create a new sketch with required fields.
758
+ *
759
+ * # Arguments
760
+ *
761
+ * * `number` - Sketch number (1, 2, 3, etc. - will be formatted as SKETCH-0001)
762
+ * * `title` - Sketch title
763
+ * * `sketch_type` - Sketch type (architecture, dataFlow, entityRelationship, sequence, flowchart, wireframe, concept, infrastructure, other)
764
+ * * `excalidraw_data` - JSON string of Excalidraw scene data
765
+ *
766
+ * # Returns
767
+ *
768
+ * JSON string containing Sketch, or JsValue error
769
+ * @param {bigint} number
770
+ * @param {string} title
771
+ * @param {string} sketch_type
772
+ * @param {string} excalidraw_data
773
+ * @returns {string}
774
+ */
775
+ export function create_sketch(number, title, sketch_type, excalidraw_data) {
776
+ let deferred5_0;
777
+ let deferred5_1;
778
+ try {
779
+ const ptr0 = passStringToWasm0(title, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
780
+ const len0 = WASM_VECTOR_LEN;
781
+ const ptr1 = passStringToWasm0(sketch_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
782
+ const len1 = WASM_VECTOR_LEN;
783
+ const ptr2 = passStringToWasm0(excalidraw_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
784
+ const len2 = WASM_VECTOR_LEN;
785
+ const ret = wasm.create_sketch(number, ptr0, len0, ptr1, len1, ptr2, len2);
786
+ var ptr4 = ret[0];
787
+ var len4 = ret[1];
788
+ if (ret[3]) {
789
+ ptr4 = 0; len4 = 0;
790
+ throw takeFromExternrefTable0(ret[2]);
791
+ }
792
+ deferred5_0 = ptr4;
793
+ deferred5_1 = len4;
794
+ return getStringFromWasm0(ptr4, len4);
795
+ } finally {
796
+ wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
797
+ }
798
+ }
799
+
800
+ /**
801
+ * Create a new empty sketch index.
802
+ *
803
+ * # Returns
804
+ *
805
+ * JSON string containing SketchIndex, or JsValue error
806
+ * @returns {string}
807
+ */
808
+ export function create_sketch_index() {
809
+ let deferred2_0;
810
+ let deferred2_1;
811
+ try {
812
+ const ret = wasm.create_sketch_index();
813
+ var ptr1 = ret[0];
814
+ var len1 = ret[1];
815
+ if (ret[3]) {
816
+ ptr1 = 0; len1 = 0;
817
+ throw takeFromExternrefTable0(ret[2]);
818
+ }
819
+ deferred2_0 = ptr1;
820
+ deferred2_1 = len1;
821
+ return getStringFromWasm0(ptr1, len1);
822
+ } finally {
823
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
824
+ }
825
+ }
826
+
714
827
  /**
715
828
  * Create a new workspace.
716
829
  *
@@ -787,6 +900,40 @@ export function detect_naming_conflicts(existing_tables_json, new_tables_json) {
787
900
  }
788
901
  }
789
902
 
903
+ /**
904
+ * Export a BPMN model to XML content.
905
+ *
906
+ * # Arguments
907
+ *
908
+ * * `xml_content` - BPMN XML content as a string
909
+ *
910
+ * # Returns
911
+ *
912
+ * BPMN XML content as string, or JsValue error
913
+ * @param {string} xml_content
914
+ * @returns {string}
915
+ */
916
+ export function export_bpmn_model(xml_content) {
917
+ let deferred3_0;
918
+ let deferred3_1;
919
+ try {
920
+ const ptr0 = passStringToWasm0(xml_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
921
+ const len0 = WASM_VECTOR_LEN;
922
+ const ret = wasm.export_bpmn_model(ptr0, len0);
923
+ var ptr2 = ret[0];
924
+ var len2 = ret[1];
925
+ if (ret[3]) {
926
+ ptr2 = 0; len2 = 0;
927
+ throw takeFromExternrefTable0(ret[2]);
928
+ }
929
+ deferred3_0 = ptr2;
930
+ deferred3_1 = len2;
931
+ return getStringFromWasm0(ptr2, len2);
932
+ } finally {
933
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
934
+ }
935
+ }
936
+
790
937
  /**
791
938
  * Export a CADS Asset to Markdown format.
792
939
  *
@@ -1191,6 +1338,40 @@ export function export_decision_yaml_to_pdf(decision_yaml, branding_json) {
1191
1338
  }
1192
1339
  }
1193
1340
 
1341
+ /**
1342
+ * Export a DMN model to XML content.
1343
+ *
1344
+ * # Arguments
1345
+ *
1346
+ * * `xml_content` - DMN XML content as a string
1347
+ *
1348
+ * # Returns
1349
+ *
1350
+ * DMN XML content as string, or JsValue error
1351
+ * @param {string} xml_content
1352
+ * @returns {string}
1353
+ */
1354
+ export function export_dmn_model(xml_content) {
1355
+ let deferred3_0;
1356
+ let deferred3_1;
1357
+ try {
1358
+ const ptr0 = passStringToWasm0(xml_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1359
+ const len0 = WASM_VECTOR_LEN;
1360
+ const ret = wasm.export_dmn_model(ptr0, len0);
1361
+ var ptr2 = ret[0];
1362
+ var len2 = ret[1];
1363
+ if (ret[3]) {
1364
+ ptr2 = 0; len2 = 0;
1365
+ throw takeFromExternrefTable0(ret[2]);
1366
+ }
1367
+ deferred3_0 = ptr2;
1368
+ deferred3_1 = len2;
1369
+ return getStringFromWasm0(ptr2, len2);
1370
+ } finally {
1371
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1372
+ }
1373
+ }
1374
+
1194
1375
  /**
1195
1376
  * Export a domain config to YAML format.
1196
1377
  *
@@ -1851,6 +2032,74 @@ export function export_openapi_spec(content, source_format, target_format) {
1851
2032
  }
1852
2033
  }
1853
2034
 
2035
+ /**
2036
+ * Export a sketches index to YAML format.
2037
+ *
2038
+ * # Arguments
2039
+ *
2040
+ * * `index_json` - JSON string containing SketchIndex
2041
+ *
2042
+ * # Returns
2043
+ *
2044
+ * SketchIndex YAML format string, or JsValue error
2045
+ * @param {string} index_json
2046
+ * @returns {string}
2047
+ */
2048
+ export function export_sketch_index_to_yaml(index_json) {
2049
+ let deferred3_0;
2050
+ let deferred3_1;
2051
+ try {
2052
+ const ptr0 = passStringToWasm0(index_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2053
+ const len0 = WASM_VECTOR_LEN;
2054
+ const ret = wasm.export_sketch_index_to_yaml(ptr0, len0);
2055
+ var ptr2 = ret[0];
2056
+ var len2 = ret[1];
2057
+ if (ret[3]) {
2058
+ ptr2 = 0; len2 = 0;
2059
+ throw takeFromExternrefTable0(ret[2]);
2060
+ }
2061
+ deferred3_0 = ptr2;
2062
+ deferred3_1 = len2;
2063
+ return getStringFromWasm0(ptr2, len2);
2064
+ } finally {
2065
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
2066
+ }
2067
+ }
2068
+
2069
+ /**
2070
+ * Export a sketch to YAML format.
2071
+ *
2072
+ * # Arguments
2073
+ *
2074
+ * * `sketch_json` - JSON string containing Sketch
2075
+ *
2076
+ * # Returns
2077
+ *
2078
+ * Sketch YAML format string, or JsValue error
2079
+ * @param {string} sketch_json
2080
+ * @returns {string}
2081
+ */
2082
+ export function export_sketch_to_yaml(sketch_json) {
2083
+ let deferred3_0;
2084
+ let deferred3_1;
2085
+ try {
2086
+ const ptr0 = passStringToWasm0(sketch_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2087
+ const len0 = WASM_VECTOR_LEN;
2088
+ const ret = wasm.export_sketch_to_yaml(ptr0, len0);
2089
+ var ptr2 = ret[0];
2090
+ var len2 = ret[1];
2091
+ if (ret[3]) {
2092
+ ptr2 = 0; len2 = 0;
2093
+ throw takeFromExternrefTable0(ret[2]);
2094
+ }
2095
+ deferred3_0 = ptr2;
2096
+ deferred3_1 = len2;
2097
+ return getStringFromWasm0(ptr2, len2);
2098
+ } finally {
2099
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
2100
+ }
2101
+ }
2102
+
1854
2103
  /**
1855
2104
  * Export an ODCS Table (Data Contract) to Markdown format.
1856
2105
  *
@@ -2587,6 +2836,90 @@ export function get_workspace_relationships_for_target(workspace_json, target_ta
2587
2836
  }
2588
2837
  }
2589
2838
 
2839
+ /**
2840
+ * Import a BPMN model from XML content.
2841
+ *
2842
+ * # Arguments
2843
+ *
2844
+ * * `domain_id` - Domain UUID as string
2845
+ * * `xml_content` - BPMN XML content as a string
2846
+ * * `model_name` - Optional model name (extracted from XML if not provided)
2847
+ *
2848
+ * # Returns
2849
+ *
2850
+ * JSON string containing BPMNModel, or JsValue error
2851
+ * @param {string} domain_id
2852
+ * @param {string} xml_content
2853
+ * @param {string | null} [model_name]
2854
+ * @returns {string}
2855
+ */
2856
+ export function import_bpmn_model(domain_id, xml_content, model_name) {
2857
+ let deferred5_0;
2858
+ let deferred5_1;
2859
+ try {
2860
+ const ptr0 = passStringToWasm0(domain_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2861
+ const len0 = WASM_VECTOR_LEN;
2862
+ const ptr1 = passStringToWasm0(xml_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2863
+ const len1 = WASM_VECTOR_LEN;
2864
+ var ptr2 = isLikeNone(model_name) ? 0 : passStringToWasm0(model_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2865
+ var len2 = WASM_VECTOR_LEN;
2866
+ const ret = wasm.import_bpmn_model(ptr0, len0, ptr1, len1, ptr2, len2);
2867
+ var ptr4 = ret[0];
2868
+ var len4 = ret[1];
2869
+ if (ret[3]) {
2870
+ ptr4 = 0; len4 = 0;
2871
+ throw takeFromExternrefTable0(ret[2]);
2872
+ }
2873
+ deferred5_0 = ptr4;
2874
+ deferred5_1 = len4;
2875
+ return getStringFromWasm0(ptr4, len4);
2876
+ } finally {
2877
+ wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
2878
+ }
2879
+ }
2880
+
2881
+ /**
2882
+ * Import a DMN model from XML content.
2883
+ *
2884
+ * # Arguments
2885
+ *
2886
+ * * `domain_id` - Domain UUID as string
2887
+ * * `xml_content` - DMN XML content as a string
2888
+ * * `model_name` - Optional model name (extracted from XML if not provided)
2889
+ *
2890
+ * # Returns
2891
+ *
2892
+ * JSON string containing DMNModel, or JsValue error
2893
+ * @param {string} domain_id
2894
+ * @param {string} xml_content
2895
+ * @param {string | null} [model_name]
2896
+ * @returns {string}
2897
+ */
2898
+ export function import_dmn_model(domain_id, xml_content, model_name) {
2899
+ let deferred5_0;
2900
+ let deferred5_1;
2901
+ try {
2902
+ const ptr0 = passStringToWasm0(domain_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2903
+ const len0 = WASM_VECTOR_LEN;
2904
+ const ptr1 = passStringToWasm0(xml_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2905
+ const len1 = WASM_VECTOR_LEN;
2906
+ var ptr2 = isLikeNone(model_name) ? 0 : passStringToWasm0(model_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2907
+ var len2 = WASM_VECTOR_LEN;
2908
+ const ret = wasm.import_dmn_model(ptr0, len0, ptr1, len1, ptr2, len2);
2909
+ var ptr4 = ret[0];
2910
+ var len4 = ret[1];
2911
+ if (ret[3]) {
2912
+ ptr4 = 0; len4 = 0;
2913
+ throw takeFromExternrefTable0(ret[2]);
2914
+ }
2915
+ deferred5_0 = ptr4;
2916
+ deferred5_1 = len4;
2917
+ return getStringFromWasm0(ptr4, len4);
2918
+ } finally {
2919
+ wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
2920
+ }
2921
+ }
2922
+
2590
2923
  /**
2591
2924
  * Import data model from AVRO schema.
2592
2925
  *
@@ -3344,6 +3677,74 @@ export function parse_odcs_yaml_v2(yaml_content) {
3344
3677
  }
3345
3678
  }
3346
3679
 
3680
+ /**
3681
+ * Parse a sketches index YAML file and return a structured representation.
3682
+ *
3683
+ * # Arguments
3684
+ *
3685
+ * * `yaml_content` - Sketches index YAML content as a string (sketches.yaml)
3686
+ *
3687
+ * # Returns
3688
+ *
3689
+ * JSON string containing SketchIndex, or JsValue error
3690
+ * @param {string} yaml_content
3691
+ * @returns {string}
3692
+ */
3693
+ export function parse_sketch_index_yaml(yaml_content) {
3694
+ let deferred3_0;
3695
+ let deferred3_1;
3696
+ try {
3697
+ const ptr0 = passStringToWasm0(yaml_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3698
+ const len0 = WASM_VECTOR_LEN;
3699
+ const ret = wasm.parse_sketch_index_yaml(ptr0, len0);
3700
+ var ptr2 = ret[0];
3701
+ var len2 = ret[1];
3702
+ if (ret[3]) {
3703
+ ptr2 = 0; len2 = 0;
3704
+ throw takeFromExternrefTable0(ret[2]);
3705
+ }
3706
+ deferred3_0 = ptr2;
3707
+ deferred3_1 = len2;
3708
+ return getStringFromWasm0(ptr2, len2);
3709
+ } finally {
3710
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
3711
+ }
3712
+ }
3713
+
3714
+ /**
3715
+ * Parse a sketch YAML file and return a structured representation.
3716
+ *
3717
+ * # Arguments
3718
+ *
3719
+ * * `yaml_content` - Sketch YAML content as a string (.sketch.yaml)
3720
+ *
3721
+ * # Returns
3722
+ *
3723
+ * JSON string containing Sketch, or JsValue error
3724
+ * @param {string} yaml_content
3725
+ * @returns {string}
3726
+ */
3727
+ export function parse_sketch_yaml(yaml_content) {
3728
+ let deferred3_0;
3729
+ let deferred3_1;
3730
+ try {
3731
+ const ptr0 = passStringToWasm0(yaml_content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3732
+ const len0 = WASM_VECTOR_LEN;
3733
+ const ret = wasm.parse_sketch_yaml(ptr0, len0);
3734
+ var ptr2 = ret[0];
3735
+ var len2 = ret[1];
3736
+ if (ret[3]) {
3737
+ ptr2 = 0; len2 = 0;
3738
+ throw takeFromExternrefTable0(ret[2]);
3739
+ }
3740
+ deferred3_0 = ptr2;
3741
+ deferred3_1 = len2;
3742
+ return getStringFromWasm0(ptr2, len2);
3743
+ } finally {
3744
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
3745
+ }
3746
+ }
3747
+
3347
3748
  /**
3348
3749
  * Parse a tag string into a Tag enum.
3349
3750
  *
@@ -3660,6 +4061,44 @@ export function search_knowledge_articles(articles_json, query) {
3660
4061
  }
3661
4062
  }
3662
4063
 
4064
+ /**
4065
+ * Search sketches by title, description, or tags.
4066
+ *
4067
+ * # Arguments
4068
+ *
4069
+ * * `sketches_json` - JSON string containing array of Sketch
4070
+ * * `query` - Search query string (case-insensitive)
4071
+ *
4072
+ * # Returns
4073
+ *
4074
+ * JSON string containing array of matching Sketch, or JsValue error
4075
+ * @param {string} sketches_json
4076
+ * @param {string} query
4077
+ * @returns {string}
4078
+ */
4079
+ export function search_sketches(sketches_json, query) {
4080
+ let deferred4_0;
4081
+ let deferred4_1;
4082
+ try {
4083
+ const ptr0 = passStringToWasm0(sketches_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4084
+ const len0 = WASM_VECTOR_LEN;
4085
+ const ptr1 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4086
+ const len1 = WASM_VECTOR_LEN;
4087
+ const ret = wasm.search_sketches(ptr0, len0, ptr1, len1);
4088
+ var ptr3 = ret[0];
4089
+ var len3 = ret[1];
4090
+ if (ret[3]) {
4091
+ ptr3 = 0; len3 = 0;
4092
+ throw takeFromExternrefTable0(ret[2]);
4093
+ }
4094
+ deferred4_0 = ptr3;
4095
+ deferred4_1 = len3;
4096
+ return getStringFromWasm0(ptr3, len3);
4097
+ } finally {
4098
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
4099
+ }
4100
+ }
4101
+
3663
4102
  /**
3664
4103
  * Serialize a Tag enum to string format.
3665
4104
  *
@@ -4263,13 +4702,13 @@ function __wbg_get_imports() {
4263
4702
  return ret;
4264
4703
  }, arguments); },
4265
4704
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
4266
- // Cast intrinsic for `Closure(Closure { dtor_idx: 689, function: Function { arguments: [Ref(NamedExternref("IDBVersionChangeEvent"))], shim_idx: 690, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4267
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hbcc67dc7682067cf, wasm_bindgen__convert__closures________invoke__h561856ff33a1b180);
4705
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 785, function: Function { arguments: [Ref(NamedExternref("IDBVersionChangeEvent"))], shim_idx: 786, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4706
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc7893e99547b2e80, wasm_bindgen__convert__closures________invoke__h09cc841e68a16215);
4268
4707
  return ret;
4269
4708
  },
4270
4709
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
4271
- // Cast intrinsic for `Closure(Closure { dtor_idx: 846, function: Function { arguments: [Externref], shim_idx: 847, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4272
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc6d69c6ae18390a8, wasm_bindgen__convert__closures_____invoke__hf6f5a23b0f573a03);
4710
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 854, function: Function { arguments: [Externref], shim_idx: 855, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4711
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h86f99bd758ae1ecc, wasm_bindgen__convert__closures_____invoke__h870494dc6ceafbe6);
4273
4712
  return ret;
4274
4713
  },
4275
4714
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
@@ -4293,12 +4732,12 @@ function __wbg_get_imports() {
4293
4732
  };
4294
4733
  }
4295
4734
 
4296
- function wasm_bindgen__convert__closures________invoke__h561856ff33a1b180(arg0, arg1, arg2) {
4297
- wasm.wasm_bindgen__convert__closures________invoke__h561856ff33a1b180(arg0, arg1, arg2);
4735
+ function wasm_bindgen__convert__closures________invoke__h09cc841e68a16215(arg0, arg1, arg2) {
4736
+ wasm.wasm_bindgen__convert__closures________invoke__h09cc841e68a16215(arg0, arg1, arg2);
4298
4737
  }
4299
4738
 
4300
- function wasm_bindgen__convert__closures_____invoke__hf6f5a23b0f573a03(arg0, arg1, arg2) {
4301
- wasm.wasm_bindgen__convert__closures_____invoke__hf6f5a23b0f573a03(arg0, arg1, arg2);
4739
+ function wasm_bindgen__convert__closures_____invoke__h870494dc6ceafbe6(arg0, arg1, arg2) {
4740
+ wasm.wasm_bindgen__convert__closures_____invoke__h870494dc6ceafbe6(arg0, arg1, arg2);
4302
4741
  }
4303
4742
 
4304
4743
  function wasm_bindgen__convert__closures_____invoke__h520cda017d487623(arg0, arg1, arg2, arg3) {
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Mark Olliver"
6
6
  ],
7
7
  "description": "WASM bindings for data modelling SDK",
8
- "version": "2.0.9",
8
+ "version": "2.1.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",