@offenedatenmodellierung/data-modelling-sdk 1.14.1 → 1.14.3

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.
@@ -312,6 +312,38 @@ export function export_cads_to_markdown(asset_json: string): string;
312
312
  */
313
313
  export function export_cads_to_pdf(asset_json: string, branding_json?: string | null): string;
314
314
 
315
+ /**
316
+ * Export CADS YAML content to Markdown format.
317
+ *
318
+ * Accepts raw CADS YAML content and exports it to Markdown.
319
+ *
320
+ * # Arguments
321
+ *
322
+ * * `cads_yaml` - CADS YAML content as a string
323
+ *
324
+ * # Returns
325
+ *
326
+ * Markdown string, or JsValue error
327
+ */
328
+ export function export_cads_yaml_to_markdown(cads_yaml: string): string;
329
+
330
+ /**
331
+ * Export CADS YAML content to PDF format with optional branding.
332
+ *
333
+ * Accepts raw CADS YAML content (as you would find in a .cads.yaml file)
334
+ * and exports it to PDF.
335
+ *
336
+ * # Arguments
337
+ *
338
+ * * `cads_yaml` - CADS YAML content as a string
339
+ * * `branding_json` - Optional JSON string containing BrandingConfig
340
+ *
341
+ * # Returns
342
+ *
343
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
344
+ */
345
+ export function export_cads_yaml_to_pdf(cads_yaml: string, branding_json?: string | null): string;
346
+
315
347
  /**
316
348
  * Export a decisions index to YAML format.
317
349
  *
@@ -379,6 +411,38 @@ export function export_decision_to_pdf(decision_json: string, branding_json?: st
379
411
  */
380
412
  export function export_decision_to_yaml(decision_json: string): string;
381
413
 
414
+ /**
415
+ * Export Decision YAML content to Markdown format.
416
+ *
417
+ * Accepts raw Decision YAML content and exports it to Markdown.
418
+ *
419
+ * # Arguments
420
+ *
421
+ * * `decision_yaml` - Decision YAML content as a string
422
+ *
423
+ * # Returns
424
+ *
425
+ * Markdown string, or JsValue error
426
+ */
427
+ export function export_decision_yaml_to_markdown(decision_yaml: string): string;
428
+
429
+ /**
430
+ * Export Decision YAML content to PDF format with optional branding.
431
+ *
432
+ * Accepts raw Decision YAML content (as you would find in a .madr.yaml file)
433
+ * and exports it to PDF.
434
+ *
435
+ * # Arguments
436
+ *
437
+ * * `decision_yaml` - Decision YAML content as a string
438
+ * * `branding_json` - Optional JSON string containing BrandingConfig
439
+ *
440
+ * # Returns
441
+ *
442
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
443
+ */
444
+ export function export_decision_yaml_to_pdf(decision_yaml: string, branding_json?: string | null): string;
445
+
382
446
  /**
383
447
  * Export a domain config to YAML format.
384
448
  *
@@ -459,6 +523,38 @@ export function export_knowledge_to_pdf(article_json: string, branding_json?: st
459
523
  */
460
524
  export function export_knowledge_to_yaml(article_json: string): string;
461
525
 
526
+ /**
527
+ * Export Knowledge Article YAML content to Markdown format.
528
+ *
529
+ * Accepts raw Knowledge Article YAML content and exports it to Markdown.
530
+ *
531
+ * # Arguments
532
+ *
533
+ * * `knowledge_yaml` - Knowledge Article YAML content as a string
534
+ *
535
+ * # Returns
536
+ *
537
+ * Markdown string, or JsValue error
538
+ */
539
+ export function export_knowledge_yaml_to_markdown(knowledge_yaml: string): string;
540
+
541
+ /**
542
+ * Export Knowledge Article YAML content to PDF format with optional branding.
543
+ *
544
+ * Accepts raw Knowledge Article YAML content (as you would find in a .kb.yaml file)
545
+ * and exports it to PDF.
546
+ *
547
+ * # Arguments
548
+ *
549
+ * * `knowledge_yaml` - Knowledge Article YAML content as a string
550
+ * * `branding_json` - Optional JSON string containing BrandingConfig
551
+ *
552
+ * # Returns
553
+ *
554
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
555
+ */
556
+ export function export_knowledge_yaml_to_pdf(knowledge_yaml: string, branding_json?: string | null): string;
557
+
462
558
  /**
463
559
  * Export raw markdown content to PDF format with optional branding.
464
560
  *
@@ -475,6 +571,38 @@ export function export_knowledge_to_yaml(article_json: string): string;
475
571
  */
476
572
  export function export_markdown_to_pdf(title: string, content: string, filename: string, branding_json?: string | null): string;
477
573
 
574
+ /**
575
+ * Export ODCS YAML content to Markdown format.
576
+ *
577
+ * Accepts raw ODCS YAML content and exports it to Markdown.
578
+ *
579
+ * # Arguments
580
+ *
581
+ * * `odcs_yaml` - ODCS YAML content as a string
582
+ *
583
+ * # Returns
584
+ *
585
+ * Markdown string, or JsValue error
586
+ */
587
+ export function export_odcs_yaml_to_markdown(odcs_yaml: string): string;
588
+
589
+ /**
590
+ * Export ODCS YAML content to PDF format with optional branding.
591
+ *
592
+ * Accepts raw ODCS YAML content (as you would find in an .odcs.yaml file)
593
+ * and exports it to PDF.
594
+ *
595
+ * # Arguments
596
+ *
597
+ * * `odcs_yaml` - ODCS YAML content as a string
598
+ * * `branding_json` - Optional JSON string containing BrandingConfig
599
+ *
600
+ * # Returns
601
+ *
602
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
603
+ */
604
+ export function export_odcs_yaml_to_pdf(odcs_yaml: string, branding_json?: string | null): string;
605
+
478
606
  /**
479
607
  * Export an ODPS Data Product to Markdown format.
480
608
  *
@@ -502,6 +630,38 @@ export function export_odps_to_markdown(product_json: string): string;
502
630
  */
503
631
  export function export_odps_to_pdf(product_json: string, branding_json?: string | null): string;
504
632
 
633
+ /**
634
+ * Export ODPS YAML content to Markdown format.
635
+ *
636
+ * Accepts raw ODPS YAML content and exports it to Markdown.
637
+ *
638
+ * # Arguments
639
+ *
640
+ * * `odps_yaml` - ODPS YAML content as a string
641
+ *
642
+ * # Returns
643
+ *
644
+ * Markdown string, or JsValue error
645
+ */
646
+ export function export_odps_yaml_to_markdown(odps_yaml: string): string;
647
+
648
+ /**
649
+ * Export ODPS YAML content to PDF format with optional branding.
650
+ *
651
+ * Accepts raw ODPS YAML content (as you would find in an .odps.yaml file)
652
+ * and exports it to PDF.
653
+ *
654
+ * # Arguments
655
+ *
656
+ * * `odps_yaml` - ODPS YAML content as a string
657
+ * * `branding_json` - Optional JSON string containing BrandingConfig
658
+ *
659
+ * # Returns
660
+ *
661
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
662
+ */
663
+ export function export_odps_yaml_to_pdf(odps_yaml: string, branding_json?: string | null): string;
664
+
505
665
  /**
506
666
  * Export an OpenAPI specification to YAML or JSON content.
507
667
  *
@@ -1324,20 +1484,30 @@ export interface InitOutput {
1324
1484
  readonly detect_naming_conflicts: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1325
1485
  readonly export_cads_to_markdown: (a: number, b: number) => [number, number, number, number];
1326
1486
  readonly export_cads_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1487
+ readonly export_cads_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1488
+ readonly export_cads_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1327
1489
  readonly export_decision_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1328
1490
  readonly export_decision_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1329
1491
  readonly export_decision_to_markdown: (a: number, b: number) => [number, number, number, number];
1330
1492
  readonly export_decision_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1331
1493
  readonly export_decision_to_yaml: (a: number, b: number) => [number, number, number, number];
1494
+ readonly export_decision_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1495
+ readonly export_decision_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1332
1496
  readonly export_domain_config_to_yaml: (a: number, b: number) => [number, number, number, number];
1333
1497
  readonly export_knowledge_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1334
1498
  readonly export_knowledge_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1335
1499
  readonly export_knowledge_to_markdown: (a: number, b: number) => [number, number, number, number];
1336
1500
  readonly export_knowledge_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1337
1501
  readonly export_knowledge_to_yaml: (a: number, b: number) => [number, number, number, number];
1502
+ readonly export_knowledge_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1503
+ readonly export_knowledge_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1338
1504
  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];
1505
+ readonly export_odcs_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1506
+ readonly export_odcs_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1339
1507
  readonly export_odps_to_markdown: (a: number, b: number) => [number, number, number, number];
1340
1508
  readonly export_odps_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1509
+ readonly export_odps_yaml_to_markdown: (a: number, b: number) => [number, number, number, number];
1510
+ readonly export_odps_yaml_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1341
1511
  readonly export_openapi_spec: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1342
1512
  readonly export_table_to_markdown: (a: number, b: number) => [number, number, number, number];
1343
1513
  readonly export_table_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
@@ -1399,8 +1569,8 @@ export interface InitOutput {
1399
1569
  readonly validate_uuid: (a: number, b: number) => [number, number, number, number];
1400
1570
  readonly wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36: (a: number, b: number, c: any) => void;
1401
1571
  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;
1572
+ readonly wasm_bindgen__convert__closures________invoke__h381e7f4a5af2e4e7: (a: number, b: number, c: any) => void;
1573
+ readonly wasm_bindgen__closure__destroy__heef4666c14039408: (a: number, b: number) => void;
1404
1574
  readonly wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d: (a: number, b: number, c: any, d: any) => void;
1405
1575
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1406
1576
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -218,8 +218,8 @@ function wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36(arg0, arg
218
218
  wasm.wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36(arg0, arg1, arg2);
219
219
  }
220
220
 
221
- function wasm_bindgen__convert__closures________invoke__h6b3d4047df15ce98(arg0, arg1, arg2) {
222
- wasm.wasm_bindgen__convert__closures________invoke__h6b3d4047df15ce98(arg0, arg1, arg2);
221
+ function wasm_bindgen__convert__closures________invoke__h381e7f4a5af2e4e7(arg0, arg1, arg2) {
222
+ wasm.wasm_bindgen__convert__closures________invoke__h381e7f4a5af2e4e7(arg0, arg1, arg2);
223
223
  }
224
224
 
225
225
  function wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d(arg0, arg1, arg2, arg3) {
@@ -1087,6 +1087,83 @@ export function export_cads_to_pdf(asset_json, branding_json) {
1087
1087
  }
1088
1088
  }
1089
1089
 
1090
+ /**
1091
+ * Export CADS YAML content to Markdown format.
1092
+ *
1093
+ * Accepts raw CADS YAML content and exports it to Markdown.
1094
+ *
1095
+ * # Arguments
1096
+ *
1097
+ * * `cads_yaml` - CADS YAML content as a string
1098
+ *
1099
+ * # Returns
1100
+ *
1101
+ * Markdown string, or JsValue error
1102
+ * @param {string} cads_yaml
1103
+ * @returns {string}
1104
+ */
1105
+ export function export_cads_yaml_to_markdown(cads_yaml) {
1106
+ let deferred3_0;
1107
+ let deferred3_1;
1108
+ try {
1109
+ const ptr0 = passStringToWasm0(cads_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1110
+ const len0 = WASM_VECTOR_LEN;
1111
+ const ret = wasm.export_cads_yaml_to_markdown(ptr0, len0);
1112
+ var ptr2 = ret[0];
1113
+ var len2 = ret[1];
1114
+ if (ret[3]) {
1115
+ ptr2 = 0; len2 = 0;
1116
+ throw takeFromExternrefTable0(ret[2]);
1117
+ }
1118
+ deferred3_0 = ptr2;
1119
+ deferred3_1 = len2;
1120
+ return getStringFromWasm0(ptr2, len2);
1121
+ } finally {
1122
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1123
+ }
1124
+ }
1125
+
1126
+ /**
1127
+ * Export CADS YAML content to PDF format with optional branding.
1128
+ *
1129
+ * Accepts raw CADS YAML content (as you would find in a .cads.yaml file)
1130
+ * and exports it to PDF.
1131
+ *
1132
+ * # Arguments
1133
+ *
1134
+ * * `cads_yaml` - CADS YAML content as a string
1135
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1136
+ *
1137
+ * # Returns
1138
+ *
1139
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1140
+ * @param {string} cads_yaml
1141
+ * @param {string | null} [branding_json]
1142
+ * @returns {string}
1143
+ */
1144
+ export function export_cads_yaml_to_pdf(cads_yaml, branding_json) {
1145
+ let deferred4_0;
1146
+ let deferred4_1;
1147
+ try {
1148
+ const ptr0 = passStringToWasm0(cads_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1149
+ const len0 = WASM_VECTOR_LEN;
1150
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1151
+ var len1 = WASM_VECTOR_LEN;
1152
+ const ret = wasm.export_cads_yaml_to_pdf(ptr0, len0, ptr1, len1);
1153
+ var ptr3 = ret[0];
1154
+ var len3 = ret[1];
1155
+ if (ret[3]) {
1156
+ ptr3 = 0; len3 = 0;
1157
+ throw takeFromExternrefTable0(ret[2]);
1158
+ }
1159
+ deferred4_0 = ptr3;
1160
+ deferred4_1 = len3;
1161
+ return getStringFromWasm0(ptr3, len3);
1162
+ } finally {
1163
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1164
+ }
1165
+ }
1166
+
1090
1167
  /**
1091
1168
  * Export a decisions index to YAML format.
1092
1169
  *
@@ -1265,6 +1342,83 @@ export function export_decision_to_yaml(decision_json) {
1265
1342
  }
1266
1343
  }
1267
1344
 
1345
+ /**
1346
+ * Export Decision YAML content to Markdown format.
1347
+ *
1348
+ * Accepts raw Decision YAML content and exports it to Markdown.
1349
+ *
1350
+ * # Arguments
1351
+ *
1352
+ * * `decision_yaml` - Decision YAML content as a string
1353
+ *
1354
+ * # Returns
1355
+ *
1356
+ * Markdown string, or JsValue error
1357
+ * @param {string} decision_yaml
1358
+ * @returns {string}
1359
+ */
1360
+ export function export_decision_yaml_to_markdown(decision_yaml) {
1361
+ let deferred3_0;
1362
+ let deferred3_1;
1363
+ try {
1364
+ const ptr0 = passStringToWasm0(decision_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1365
+ const len0 = WASM_VECTOR_LEN;
1366
+ const ret = wasm.export_decision_yaml_to_markdown(ptr0, len0);
1367
+ var ptr2 = ret[0];
1368
+ var len2 = ret[1];
1369
+ if (ret[3]) {
1370
+ ptr2 = 0; len2 = 0;
1371
+ throw takeFromExternrefTable0(ret[2]);
1372
+ }
1373
+ deferred3_0 = ptr2;
1374
+ deferred3_1 = len2;
1375
+ return getStringFromWasm0(ptr2, len2);
1376
+ } finally {
1377
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1378
+ }
1379
+ }
1380
+
1381
+ /**
1382
+ * Export Decision YAML content to PDF format with optional branding.
1383
+ *
1384
+ * Accepts raw Decision YAML content (as you would find in a .madr.yaml file)
1385
+ * and exports it to PDF.
1386
+ *
1387
+ * # Arguments
1388
+ *
1389
+ * * `decision_yaml` - Decision YAML content as a string
1390
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1391
+ *
1392
+ * # Returns
1393
+ *
1394
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1395
+ * @param {string} decision_yaml
1396
+ * @param {string | null} [branding_json]
1397
+ * @returns {string}
1398
+ */
1399
+ export function export_decision_yaml_to_pdf(decision_yaml, branding_json) {
1400
+ let deferred4_0;
1401
+ let deferred4_1;
1402
+ try {
1403
+ const ptr0 = passStringToWasm0(decision_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1404
+ const len0 = WASM_VECTOR_LEN;
1405
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1406
+ var len1 = WASM_VECTOR_LEN;
1407
+ const ret = wasm.export_decision_yaml_to_pdf(ptr0, len0, ptr1, len1);
1408
+ var ptr3 = ret[0];
1409
+ var len3 = ret[1];
1410
+ if (ret[3]) {
1411
+ ptr3 = 0; len3 = 0;
1412
+ throw takeFromExternrefTable0(ret[2]);
1413
+ }
1414
+ deferred4_0 = ptr3;
1415
+ deferred4_1 = len3;
1416
+ return getStringFromWasm0(ptr3, len3);
1417
+ } finally {
1418
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1419
+ }
1420
+ }
1421
+
1268
1422
  /**
1269
1423
  * Export a domain config to YAML format.
1270
1424
  *
@@ -1477,6 +1631,83 @@ export function export_knowledge_to_yaml(article_json) {
1477
1631
  }
1478
1632
  }
1479
1633
 
1634
+ /**
1635
+ * Export Knowledge Article YAML content to Markdown format.
1636
+ *
1637
+ * Accepts raw Knowledge Article YAML content and exports it to Markdown.
1638
+ *
1639
+ * # Arguments
1640
+ *
1641
+ * * `knowledge_yaml` - Knowledge Article YAML content as a string
1642
+ *
1643
+ * # Returns
1644
+ *
1645
+ * Markdown string, or JsValue error
1646
+ * @param {string} knowledge_yaml
1647
+ * @returns {string}
1648
+ */
1649
+ export function export_knowledge_yaml_to_markdown(knowledge_yaml) {
1650
+ let deferred3_0;
1651
+ let deferred3_1;
1652
+ try {
1653
+ const ptr0 = passStringToWasm0(knowledge_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1654
+ const len0 = WASM_VECTOR_LEN;
1655
+ const ret = wasm.export_knowledge_yaml_to_markdown(ptr0, len0);
1656
+ var ptr2 = ret[0];
1657
+ var len2 = ret[1];
1658
+ if (ret[3]) {
1659
+ ptr2 = 0; len2 = 0;
1660
+ throw takeFromExternrefTable0(ret[2]);
1661
+ }
1662
+ deferred3_0 = ptr2;
1663
+ deferred3_1 = len2;
1664
+ return getStringFromWasm0(ptr2, len2);
1665
+ } finally {
1666
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1667
+ }
1668
+ }
1669
+
1670
+ /**
1671
+ * Export Knowledge Article YAML content to PDF format with optional branding.
1672
+ *
1673
+ * Accepts raw Knowledge Article YAML content (as you would find in a .kb.yaml file)
1674
+ * and exports it to PDF.
1675
+ *
1676
+ * # Arguments
1677
+ *
1678
+ * * `knowledge_yaml` - Knowledge Article YAML content as a string
1679
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1680
+ *
1681
+ * # Returns
1682
+ *
1683
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1684
+ * @param {string} knowledge_yaml
1685
+ * @param {string | null} [branding_json]
1686
+ * @returns {string}
1687
+ */
1688
+ export function export_knowledge_yaml_to_pdf(knowledge_yaml, branding_json) {
1689
+ let deferred4_0;
1690
+ let deferred4_1;
1691
+ try {
1692
+ const ptr0 = passStringToWasm0(knowledge_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1693
+ const len0 = WASM_VECTOR_LEN;
1694
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1695
+ var len1 = WASM_VECTOR_LEN;
1696
+ const ret = wasm.export_knowledge_yaml_to_pdf(ptr0, len0, ptr1, len1);
1697
+ var ptr3 = ret[0];
1698
+ var len3 = ret[1];
1699
+ if (ret[3]) {
1700
+ ptr3 = 0; len3 = 0;
1701
+ throw takeFromExternrefTable0(ret[2]);
1702
+ }
1703
+ deferred4_0 = ptr3;
1704
+ deferred4_1 = len3;
1705
+ return getStringFromWasm0(ptr3, len3);
1706
+ } finally {
1707
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1708
+ }
1709
+ }
1710
+
1480
1711
  /**
1481
1712
  * Export raw markdown content to PDF format with optional branding.
1482
1713
  *
@@ -1523,6 +1754,83 @@ export function export_markdown_to_pdf(title, content, filename, branding_json)
1523
1754
  }
1524
1755
  }
1525
1756
 
1757
+ /**
1758
+ * Export ODCS YAML content to Markdown format.
1759
+ *
1760
+ * Accepts raw ODCS YAML content and exports it to Markdown.
1761
+ *
1762
+ * # Arguments
1763
+ *
1764
+ * * `odcs_yaml` - ODCS YAML content as a string
1765
+ *
1766
+ * # Returns
1767
+ *
1768
+ * Markdown string, or JsValue error
1769
+ * @param {string} odcs_yaml
1770
+ * @returns {string}
1771
+ */
1772
+ export function export_odcs_yaml_to_markdown(odcs_yaml) {
1773
+ let deferred3_0;
1774
+ let deferred3_1;
1775
+ try {
1776
+ const ptr0 = passStringToWasm0(odcs_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1777
+ const len0 = WASM_VECTOR_LEN;
1778
+ const ret = wasm.export_odcs_yaml_to_markdown(ptr0, len0);
1779
+ var ptr2 = ret[0];
1780
+ var len2 = ret[1];
1781
+ if (ret[3]) {
1782
+ ptr2 = 0; len2 = 0;
1783
+ throw takeFromExternrefTable0(ret[2]);
1784
+ }
1785
+ deferred3_0 = ptr2;
1786
+ deferred3_1 = len2;
1787
+ return getStringFromWasm0(ptr2, len2);
1788
+ } finally {
1789
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1790
+ }
1791
+ }
1792
+
1793
+ /**
1794
+ * Export ODCS YAML content to PDF format with optional branding.
1795
+ *
1796
+ * Accepts raw ODCS YAML content (as you would find in an .odcs.yaml file)
1797
+ * and exports it to PDF.
1798
+ *
1799
+ * # Arguments
1800
+ *
1801
+ * * `odcs_yaml` - ODCS YAML content as a string
1802
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1803
+ *
1804
+ * # Returns
1805
+ *
1806
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1807
+ * @param {string} odcs_yaml
1808
+ * @param {string | null} [branding_json]
1809
+ * @returns {string}
1810
+ */
1811
+ export function export_odcs_yaml_to_pdf(odcs_yaml, branding_json) {
1812
+ let deferred4_0;
1813
+ let deferred4_1;
1814
+ try {
1815
+ const ptr0 = passStringToWasm0(odcs_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1816
+ const len0 = WASM_VECTOR_LEN;
1817
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1818
+ var len1 = WASM_VECTOR_LEN;
1819
+ const ret = wasm.export_odcs_yaml_to_pdf(ptr0, len0, ptr1, len1);
1820
+ var ptr3 = ret[0];
1821
+ var len3 = ret[1];
1822
+ if (ret[3]) {
1823
+ ptr3 = 0; len3 = 0;
1824
+ throw takeFromExternrefTable0(ret[2]);
1825
+ }
1826
+ deferred4_0 = ptr3;
1827
+ deferred4_1 = len3;
1828
+ return getStringFromWasm0(ptr3, len3);
1829
+ } finally {
1830
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1831
+ }
1832
+ }
1833
+
1526
1834
  /**
1527
1835
  * Export an ODPS Data Product to Markdown format.
1528
1836
  *
@@ -1595,6 +1903,83 @@ export function export_odps_to_pdf(product_json, branding_json) {
1595
1903
  }
1596
1904
  }
1597
1905
 
1906
+ /**
1907
+ * Export ODPS YAML content to Markdown format.
1908
+ *
1909
+ * Accepts raw ODPS YAML content and exports it to Markdown.
1910
+ *
1911
+ * # Arguments
1912
+ *
1913
+ * * `odps_yaml` - ODPS YAML content as a string
1914
+ *
1915
+ * # Returns
1916
+ *
1917
+ * Markdown string, or JsValue error
1918
+ * @param {string} odps_yaml
1919
+ * @returns {string}
1920
+ */
1921
+ export function export_odps_yaml_to_markdown(odps_yaml) {
1922
+ let deferred3_0;
1923
+ let deferred3_1;
1924
+ try {
1925
+ const ptr0 = passStringToWasm0(odps_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1926
+ const len0 = WASM_VECTOR_LEN;
1927
+ const ret = wasm.export_odps_yaml_to_markdown(ptr0, len0);
1928
+ var ptr2 = ret[0];
1929
+ var len2 = ret[1];
1930
+ if (ret[3]) {
1931
+ ptr2 = 0; len2 = 0;
1932
+ throw takeFromExternrefTable0(ret[2]);
1933
+ }
1934
+ deferred3_0 = ptr2;
1935
+ deferred3_1 = len2;
1936
+ return getStringFromWasm0(ptr2, len2);
1937
+ } finally {
1938
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1939
+ }
1940
+ }
1941
+
1942
+ /**
1943
+ * Export ODPS YAML content to PDF format with optional branding.
1944
+ *
1945
+ * Accepts raw ODPS YAML content (as you would find in an .odps.yaml file)
1946
+ * and exports it to PDF.
1947
+ *
1948
+ * # Arguments
1949
+ *
1950
+ * * `odps_yaml` - ODPS YAML content as a string
1951
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1952
+ *
1953
+ * # Returns
1954
+ *
1955
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1956
+ * @param {string} odps_yaml
1957
+ * @param {string | null} [branding_json]
1958
+ * @returns {string}
1959
+ */
1960
+ export function export_odps_yaml_to_pdf(odps_yaml, branding_json) {
1961
+ let deferred4_0;
1962
+ let deferred4_1;
1963
+ try {
1964
+ const ptr0 = passStringToWasm0(odps_yaml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1965
+ const len0 = WASM_VECTOR_LEN;
1966
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1967
+ var len1 = WASM_VECTOR_LEN;
1968
+ const ret = wasm.export_odps_yaml_to_pdf(ptr0, len0, ptr1, len1);
1969
+ var ptr3 = ret[0];
1970
+ var len3 = ret[1];
1971
+ if (ret[3]) {
1972
+ ptr3 = 0; len3 = 0;
1973
+ throw takeFromExternrefTable0(ret[2]);
1974
+ }
1975
+ deferred4_0 = ptr3;
1976
+ deferred4_1 = len3;
1977
+ return getStringFromWasm0(ptr3, len3);
1978
+ } finally {
1979
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1980
+ }
1981
+ }
1982
+
1598
1983
  /**
1599
1984
  * Export an OpenAPI specification to YAML or JSON content.
1600
1985
  *
@@ -3905,14 +4290,14 @@ function __wbg_get_imports() {
3905
4290
  const ret = getStringFromWasm0(arg0, arg1);
3906
4291
  return ret;
3907
4292
  };
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);
4293
+ imports.wbg.__wbindgen_cast_750b0dd544a6e43a = function(arg0, arg1) {
4294
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 627, function: Function { arguments: [Externref], shim_idx: 628, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4295
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he59d4bc392497fcb, wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36);
3911
4296
  return ret;
3912
4297
  };
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);
4298
+ imports.wbg.__wbindgen_cast_f35763093fdb4376 = function(arg0, arg1) {
4299
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 390, function: Function { arguments: [Ref(NamedExternref("IDBVersionChangeEvent"))], shim_idx: 391, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4300
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__heef4666c14039408, wasm_bindgen__convert__closures________invoke__h381e7f4a5af2e4e7);
3916
4301
  return ret;
3917
4302
  };
3918
4303
  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.1",
8
+ "version": "1.14.3",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",