@offenedatenmodellierung/data-modelling-sdk 1.14.0 → 1.14.1

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.
@@ -285,6 +285,33 @@ export function create_workspace(name: string, owner_id: string): string;
285
285
  */
286
286
  export function detect_naming_conflicts(existing_tables_json: string, new_tables_json: string): string;
287
287
 
288
+ /**
289
+ * Export a CADS Asset to Markdown format.
290
+ *
291
+ * # Arguments
292
+ *
293
+ * * `asset_json` - JSON string containing CADSAsset
294
+ *
295
+ * # Returns
296
+ *
297
+ * Markdown string, or JsValue error
298
+ */
299
+ export function export_cads_to_markdown(asset_json: string): string;
300
+
301
+ /**
302
+ * Export a CADS Asset to PDF format with optional branding.
303
+ *
304
+ * # Arguments
305
+ *
306
+ * * `asset_json` - JSON string containing CADSAsset
307
+ * * `branding_json` - Optional JSON string containing BrandingConfig
308
+ *
309
+ * # Returns
310
+ *
311
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
312
+ */
313
+ export function export_cads_to_pdf(asset_json: string, branding_json?: string | null): string;
314
+
288
315
  /**
289
316
  * Export a decisions index to YAML format.
290
317
  *
@@ -448,6 +475,33 @@ export function export_knowledge_to_yaml(article_json: string): string;
448
475
  */
449
476
  export function export_markdown_to_pdf(title: string, content: string, filename: string, branding_json?: string | null): string;
450
477
 
478
+ /**
479
+ * Export an ODPS Data Product to Markdown format.
480
+ *
481
+ * # Arguments
482
+ *
483
+ * * `product_json` - JSON string containing ODPSDataProduct
484
+ *
485
+ * # Returns
486
+ *
487
+ * Markdown string, or JsValue error
488
+ */
489
+ export function export_odps_to_markdown(product_json: string): string;
490
+
491
+ /**
492
+ * Export an ODPS Data Product to PDF format with optional branding.
493
+ *
494
+ * # Arguments
495
+ *
496
+ * * `product_json` - JSON string containing ODPSDataProduct
497
+ * * `branding_json` - Optional JSON string containing BrandingConfig
498
+ *
499
+ * # Returns
500
+ *
501
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
502
+ */
503
+ export function export_odps_to_pdf(product_json: string, branding_json?: string | null): string;
504
+
451
505
  /**
452
506
  * Export an OpenAPI specification to YAML or JSON content.
453
507
  *
@@ -463,6 +517,33 @@ export function export_markdown_to_pdf(title: string, content: string, filename:
463
517
  */
464
518
  export function export_openapi_spec(content: string, source_format: string, target_format?: string | null): string;
465
519
 
520
+ /**
521
+ * Export an ODCS Table (Data Contract) to Markdown format.
522
+ *
523
+ * # Arguments
524
+ *
525
+ * * `table_json` - JSON string containing Table
526
+ *
527
+ * # Returns
528
+ *
529
+ * Markdown string, or JsValue error
530
+ */
531
+ export function export_table_to_markdown(table_json: string): string;
532
+
533
+ /**
534
+ * Export an ODCS Table (Data Contract) to PDF format with optional branding.
535
+ *
536
+ * # Arguments
537
+ *
538
+ * * `table_json` - JSON string containing Table
539
+ * * `branding_json` - Optional JSON string containing BrandingConfig
540
+ *
541
+ * # Returns
542
+ *
543
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
544
+ */
545
+ export function export_table_to_pdf(table_json: string, branding_json?: string | null): string;
546
+
466
547
  /**
467
548
  * Export a data model to AVRO schema.
468
549
  *
@@ -1241,6 +1322,8 @@ export interface InitOutput {
1241
1322
  readonly create_knowledge_index: () => [number, number, number, number];
1242
1323
  readonly create_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1243
1324
  readonly detect_naming_conflicts: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1325
+ readonly export_cads_to_markdown: (a: number, b: number) => [number, number, number, number];
1326
+ readonly export_cads_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1244
1327
  readonly export_decision_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1245
1328
  readonly export_decision_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1246
1329
  readonly export_decision_to_markdown: (a: number, b: number) => [number, number, number, number];
@@ -1253,7 +1336,11 @@ export interface InitOutput {
1253
1336
  readonly export_knowledge_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1254
1337
  readonly export_knowledge_to_yaml: (a: number, b: number) => [number, number, number, number];
1255
1338
  readonly export_markdown_to_pdf: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
1339
+ readonly export_odps_to_markdown: (a: number, b: number) => [number, number, number, number];
1340
+ readonly export_odps_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1256
1341
  readonly export_openapi_spec: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1342
+ readonly export_table_to_markdown: (a: number, b: number) => [number, number, number, number];
1343
+ readonly export_table_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1257
1344
  readonly export_to_avro: (a: number, b: number) => [number, number, number, number];
1258
1345
  readonly export_to_cads: (a: number, b: number) => [number, number, number, number];
1259
1346
  readonly export_to_domain: (a: number, b: number) => [number, number, number, number];
@@ -1310,10 +1397,10 @@ export interface InitOutput {
1310
1397
  readonly validate_pattern_exclusivity: (a: number, b: number) => [number, number, number, number];
1311
1398
  readonly validate_table_name: (a: number, b: number) => [number, number, number, number];
1312
1399
  readonly validate_uuid: (a: number, b: number) => [number, number, number, number];
1313
- readonly wasm_bindgen__convert__closures________invoke__h569a0d47881447ee: (a: number, b: number, c: any) => void;
1314
- readonly wasm_bindgen__closure__destroy__h46ca2cc66c44b619: (a: number, b: number) => void;
1315
1400
  readonly wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36: (a: number, b: number, c: any) => void;
1316
1401
  readonly wasm_bindgen__closure__destroy__he59d4bc392497fcb: (a: number, b: number) => void;
1402
+ readonly wasm_bindgen__convert__closures________invoke__h6b3d4047df15ce98: (a: number, b: number, c: any) => void;
1403
+ readonly wasm_bindgen__closure__destroy__h26794b3852fba942: (a: number, b: number) => void;
1317
1404
  readonly wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d: (a: number, b: number, c: any, d: any) => void;
1318
1405
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1319
1406
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -214,14 +214,14 @@ if (!('encodeInto' in cachedTextEncoder)) {
214
214
 
215
215
  let WASM_VECTOR_LEN = 0;
216
216
 
217
- function wasm_bindgen__convert__closures________invoke__h569a0d47881447ee(arg0, arg1, arg2) {
218
- wasm.wasm_bindgen__convert__closures________invoke__h569a0d47881447ee(arg0, arg1, arg2);
219
- }
220
-
221
217
  function wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36(arg0, arg1, arg2) {
222
218
  wasm.wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36(arg0, arg1, arg2);
223
219
  }
224
220
 
221
+ function wasm_bindgen__convert__closures________invoke__h6b3d4047df15ce98(arg0, arg1, arg2) {
222
+ wasm.wasm_bindgen__convert__closures________invoke__h6b3d4047df15ce98(arg0, arg1, arg2);
223
+ }
224
+
225
225
  function wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d(arg0, arg1, arg2, arg3) {
226
226
  wasm.wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d(arg0, arg1, arg2, arg3);
227
227
  }
@@ -1015,6 +1015,78 @@ export function detect_naming_conflicts(existing_tables_json, new_tables_json) {
1015
1015
  }
1016
1016
  }
1017
1017
 
1018
+ /**
1019
+ * Export a CADS Asset to Markdown format.
1020
+ *
1021
+ * # Arguments
1022
+ *
1023
+ * * `asset_json` - JSON string containing CADSAsset
1024
+ *
1025
+ * # Returns
1026
+ *
1027
+ * Markdown string, or JsValue error
1028
+ * @param {string} asset_json
1029
+ * @returns {string}
1030
+ */
1031
+ export function export_cads_to_markdown(asset_json) {
1032
+ let deferred3_0;
1033
+ let deferred3_1;
1034
+ try {
1035
+ const ptr0 = passStringToWasm0(asset_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1036
+ const len0 = WASM_VECTOR_LEN;
1037
+ const ret = wasm.export_cads_to_markdown(ptr0, len0);
1038
+ var ptr2 = ret[0];
1039
+ var len2 = ret[1];
1040
+ if (ret[3]) {
1041
+ ptr2 = 0; len2 = 0;
1042
+ throw takeFromExternrefTable0(ret[2]);
1043
+ }
1044
+ deferred3_0 = ptr2;
1045
+ deferred3_1 = len2;
1046
+ return getStringFromWasm0(ptr2, len2);
1047
+ } finally {
1048
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1049
+ }
1050
+ }
1051
+
1052
+ /**
1053
+ * Export a CADS Asset to PDF format with optional branding.
1054
+ *
1055
+ * # Arguments
1056
+ *
1057
+ * * `asset_json` - JSON string containing CADSAsset
1058
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1059
+ *
1060
+ * # Returns
1061
+ *
1062
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1063
+ * @param {string} asset_json
1064
+ * @param {string | null} [branding_json]
1065
+ * @returns {string}
1066
+ */
1067
+ export function export_cads_to_pdf(asset_json, branding_json) {
1068
+ let deferred4_0;
1069
+ let deferred4_1;
1070
+ try {
1071
+ const ptr0 = passStringToWasm0(asset_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1072
+ const len0 = WASM_VECTOR_LEN;
1073
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1074
+ var len1 = WASM_VECTOR_LEN;
1075
+ const ret = wasm.export_cads_to_pdf(ptr0, len0, ptr1, len1);
1076
+ var ptr3 = ret[0];
1077
+ var len3 = ret[1];
1078
+ if (ret[3]) {
1079
+ ptr3 = 0; len3 = 0;
1080
+ throw takeFromExternrefTable0(ret[2]);
1081
+ }
1082
+ deferred4_0 = ptr3;
1083
+ deferred4_1 = len3;
1084
+ return getStringFromWasm0(ptr3, len3);
1085
+ } finally {
1086
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1087
+ }
1088
+ }
1089
+
1018
1090
  /**
1019
1091
  * Export a decisions index to YAML format.
1020
1092
  *
@@ -1451,6 +1523,78 @@ export function export_markdown_to_pdf(title, content, filename, branding_json)
1451
1523
  }
1452
1524
  }
1453
1525
 
1526
+ /**
1527
+ * Export an ODPS Data Product to Markdown format.
1528
+ *
1529
+ * # Arguments
1530
+ *
1531
+ * * `product_json` - JSON string containing ODPSDataProduct
1532
+ *
1533
+ * # Returns
1534
+ *
1535
+ * Markdown string, or JsValue error
1536
+ * @param {string} product_json
1537
+ * @returns {string}
1538
+ */
1539
+ export function export_odps_to_markdown(product_json) {
1540
+ let deferred3_0;
1541
+ let deferred3_1;
1542
+ try {
1543
+ const ptr0 = passStringToWasm0(product_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1544
+ const len0 = WASM_VECTOR_LEN;
1545
+ const ret = wasm.export_odps_to_markdown(ptr0, len0);
1546
+ var ptr2 = ret[0];
1547
+ var len2 = ret[1];
1548
+ if (ret[3]) {
1549
+ ptr2 = 0; len2 = 0;
1550
+ throw takeFromExternrefTable0(ret[2]);
1551
+ }
1552
+ deferred3_0 = ptr2;
1553
+ deferred3_1 = len2;
1554
+ return getStringFromWasm0(ptr2, len2);
1555
+ } finally {
1556
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1557
+ }
1558
+ }
1559
+
1560
+ /**
1561
+ * Export an ODPS Data Product to PDF format with optional branding.
1562
+ *
1563
+ * # Arguments
1564
+ *
1565
+ * * `product_json` - JSON string containing ODPSDataProduct
1566
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1567
+ *
1568
+ * # Returns
1569
+ *
1570
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1571
+ * @param {string} product_json
1572
+ * @param {string | null} [branding_json]
1573
+ * @returns {string}
1574
+ */
1575
+ export function export_odps_to_pdf(product_json, branding_json) {
1576
+ let deferred4_0;
1577
+ let deferred4_1;
1578
+ try {
1579
+ const ptr0 = passStringToWasm0(product_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1580
+ const len0 = WASM_VECTOR_LEN;
1581
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1582
+ var len1 = WASM_VECTOR_LEN;
1583
+ const ret = wasm.export_odps_to_pdf(ptr0, len0, ptr1, len1);
1584
+ var ptr3 = ret[0];
1585
+ var len3 = ret[1];
1586
+ if (ret[3]) {
1587
+ ptr3 = 0; len3 = 0;
1588
+ throw takeFromExternrefTable0(ret[2]);
1589
+ }
1590
+ deferred4_0 = ptr3;
1591
+ deferred4_1 = len3;
1592
+ return getStringFromWasm0(ptr3, len3);
1593
+ } finally {
1594
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1595
+ }
1596
+ }
1597
+
1454
1598
  /**
1455
1599
  * Export an OpenAPI specification to YAML or JSON content.
1456
1600
  *
@@ -1493,6 +1637,78 @@ export function export_openapi_spec(content, source_format, target_format) {
1493
1637
  }
1494
1638
  }
1495
1639
 
1640
+ /**
1641
+ * Export an ODCS Table (Data Contract) to Markdown format.
1642
+ *
1643
+ * # Arguments
1644
+ *
1645
+ * * `table_json` - JSON string containing Table
1646
+ *
1647
+ * # Returns
1648
+ *
1649
+ * Markdown string, or JsValue error
1650
+ * @param {string} table_json
1651
+ * @returns {string}
1652
+ */
1653
+ export function export_table_to_markdown(table_json) {
1654
+ let deferred3_0;
1655
+ let deferred3_1;
1656
+ try {
1657
+ const ptr0 = passStringToWasm0(table_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1658
+ const len0 = WASM_VECTOR_LEN;
1659
+ const ret = wasm.export_table_to_markdown(ptr0, len0);
1660
+ var ptr2 = ret[0];
1661
+ var len2 = ret[1];
1662
+ if (ret[3]) {
1663
+ ptr2 = 0; len2 = 0;
1664
+ throw takeFromExternrefTable0(ret[2]);
1665
+ }
1666
+ deferred3_0 = ptr2;
1667
+ deferred3_1 = len2;
1668
+ return getStringFromWasm0(ptr2, len2);
1669
+ } finally {
1670
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1671
+ }
1672
+ }
1673
+
1674
+ /**
1675
+ * Export an ODCS Table (Data Contract) to PDF format with optional branding.
1676
+ *
1677
+ * # Arguments
1678
+ *
1679
+ * * `table_json` - JSON string containing Table
1680
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1681
+ *
1682
+ * # Returns
1683
+ *
1684
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1685
+ * @param {string} table_json
1686
+ * @param {string | null} [branding_json]
1687
+ * @returns {string}
1688
+ */
1689
+ export function export_table_to_pdf(table_json, branding_json) {
1690
+ let deferred4_0;
1691
+ let deferred4_1;
1692
+ try {
1693
+ const ptr0 = passStringToWasm0(table_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1694
+ const len0 = WASM_VECTOR_LEN;
1695
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1696
+ var len1 = WASM_VECTOR_LEN;
1697
+ const ret = wasm.export_table_to_pdf(ptr0, len0, ptr1, len1);
1698
+ var ptr3 = ret[0];
1699
+ var len3 = ret[1];
1700
+ if (ret[3]) {
1701
+ ptr3 = 0; len3 = 0;
1702
+ throw takeFromExternrefTable0(ret[2]);
1703
+ }
1704
+ deferred4_0 = ptr3;
1705
+ deferred4_1 = len3;
1706
+ return getStringFromWasm0(ptr3, len3);
1707
+ } finally {
1708
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1709
+ }
1710
+ }
1711
+
1496
1712
  /**
1497
1713
  * Export a data model to AVRO schema.
1498
1714
  *
@@ -3689,14 +3905,14 @@ function __wbg_get_imports() {
3689
3905
  const ret = getStringFromWasm0(arg0, arg1);
3690
3906
  return ret;
3691
3907
  };
3692
- imports.wbg.__wbindgen_cast_9ea78d64fad2ea9c = function(arg0, arg1) {
3693
- // Cast intrinsic for `Closure(Closure { dtor_idx: 635, function: Function { arguments: [Externref], shim_idx: 636, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3694
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he59d4bc392497fcb, wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36);
3908
+ imports.wbg.__wbindgen_cast_bb9f97223619c5ac = function(arg0, arg1) {
3909
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 545, function: Function { arguments: [Ref(NamedExternref("IDBVersionChangeEvent"))], shim_idx: 546, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3910
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h26794b3852fba942, wasm_bindgen__convert__closures________invoke__h6b3d4047df15ce98);
3695
3911
  return ret;
3696
3912
  };
3697
- imports.wbg.__wbindgen_cast_bd9f937b6ab4e55f = function(arg0, arg1) {
3698
- // Cast intrinsic for `Closure(Closure { dtor_idx: 303, function: Function { arguments: [Ref(NamedExternref("IDBVersionChangeEvent"))], shim_idx: 304, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3699
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h46ca2cc66c44b619, wasm_bindgen__convert__closures________invoke__h569a0d47881447ee);
3913
+ imports.wbg.__wbindgen_cast_de66804573ac70a3 = function(arg0, arg1) {
3914
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 629, function: Function { arguments: [Externref], shim_idx: 630, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3915
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he59d4bc392497fcb, wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36);
3700
3916
  return ret;
3701
3917
  };
3702
3918
  imports.wbg.__wbindgen_init_externref_table = function() {
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Mark Olliver"
6
6
  ],
7
7
  "description": "Shared SDK for model operations across platforms (API, WASM, Native)",
8
- "version": "1.14.0",
8
+ "version": "1.14.1",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",