@offenedatenmodellierung/data-modelling-sdk 1.14.0 → 1.14.2

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,65 @@ 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
+
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
+
288
347
  /**
289
348
  * Export a decisions index to YAML format.
290
349
  *
@@ -352,6 +411,38 @@ export function export_decision_to_pdf(decision_json: string, branding_json?: st
352
411
  */
353
412
  export function export_decision_to_yaml(decision_json: string): string;
354
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
+
355
446
  /**
356
447
  * Export a domain config to YAML format.
357
448
  *
@@ -432,6 +523,38 @@ export function export_knowledge_to_pdf(article_json: string, branding_json?: st
432
523
  */
433
524
  export function export_knowledge_to_yaml(article_json: string): string;
434
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
+
435
558
  /**
436
559
  * Export raw markdown content to PDF format with optional branding.
437
560
  *
@@ -448,6 +571,97 @@ export function export_knowledge_to_yaml(article_json: string): string;
448
571
  */
449
572
  export function export_markdown_to_pdf(title: string, content: string, filename: string, branding_json?: string | null): string;
450
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
+
606
+ /**
607
+ * Export an ODPS Data Product to Markdown format.
608
+ *
609
+ * # Arguments
610
+ *
611
+ * * `product_json` - JSON string containing ODPSDataProduct
612
+ *
613
+ * # Returns
614
+ *
615
+ * Markdown string, or JsValue error
616
+ */
617
+ export function export_odps_to_markdown(product_json: string): string;
618
+
619
+ /**
620
+ * Export an ODPS Data Product to PDF format with optional branding.
621
+ *
622
+ * # Arguments
623
+ *
624
+ * * `product_json` - JSON string containing ODPSDataProduct
625
+ * * `branding_json` - Optional JSON string containing BrandingConfig
626
+ *
627
+ * # Returns
628
+ *
629
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
630
+ */
631
+ export function export_odps_to_pdf(product_json: string, branding_json?: string | null): string;
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
+
451
665
  /**
452
666
  * Export an OpenAPI specification to YAML or JSON content.
453
667
  *
@@ -463,6 +677,33 @@ export function export_markdown_to_pdf(title: string, content: string, filename:
463
677
  */
464
678
  export function export_openapi_spec(content: string, source_format: string, target_format?: string | null): string;
465
679
 
680
+ /**
681
+ * Export an ODCS Table (Data Contract) to Markdown format.
682
+ *
683
+ * # Arguments
684
+ *
685
+ * * `table_json` - JSON string containing Table
686
+ *
687
+ * # Returns
688
+ *
689
+ * Markdown string, or JsValue error
690
+ */
691
+ export function export_table_to_markdown(table_json: string): string;
692
+
693
+ /**
694
+ * Export an ODCS Table (Data Contract) to PDF format with optional branding.
695
+ *
696
+ * # Arguments
697
+ *
698
+ * * `table_json` - JSON string containing Table
699
+ * * `branding_json` - Optional JSON string containing BrandingConfig
700
+ *
701
+ * # Returns
702
+ *
703
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
704
+ */
705
+ export function export_table_to_pdf(table_json: string, branding_json?: string | null): string;
706
+
466
707
  /**
467
708
  * Export a data model to AVRO schema.
468
709
  *
@@ -1241,19 +1482,35 @@ export interface InitOutput {
1241
1482
  readonly create_knowledge_index: () => [number, number, number, number];
1242
1483
  readonly create_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1243
1484
  readonly detect_naming_conflicts: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1485
+ readonly export_cads_to_markdown: (a: number, b: number) => [number, number, number, number];
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];
1244
1489
  readonly export_decision_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1245
1490
  readonly export_decision_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1246
1491
  readonly export_decision_to_markdown: (a: number, b: number) => [number, number, number, number];
1247
1492
  readonly export_decision_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1248
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];
1249
1496
  readonly export_domain_config_to_yaml: (a: number, b: number) => [number, number, number, number];
1250
1497
  readonly export_knowledge_index_to_yaml: (a: number, b: number) => [number, number, number, number];
1251
1498
  readonly export_knowledge_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1252
1499
  readonly export_knowledge_to_markdown: (a: number, b: number) => [number, number, number, number];
1253
1500
  readonly export_knowledge_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1254
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];
1255
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];
1507
+ readonly export_odps_to_markdown: (a: number, b: number) => [number, number, number, number];
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];
1256
1511
  readonly export_openapi_spec: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
1512
+ readonly export_table_to_markdown: (a: number, b: number) => [number, number, number, number];
1513
+ readonly export_table_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
1257
1514
  readonly export_to_avro: (a: number, b: number) => [number, number, number, number];
1258
1515
  readonly export_to_cads: (a: number, b: number) => [number, number, number, number];
1259
1516
  readonly export_to_domain: (a: number, b: number) => [number, number, number, number];
@@ -1310,8 +1567,8 @@ export interface InitOutput {
1310
1567
  readonly validate_pattern_exclusivity: (a: number, b: number) => [number, number, number, number];
1311
1568
  readonly validate_table_name: (a: number, b: number) => [number, number, number, number];
1312
1569
  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;
1570
+ readonly wasm_bindgen__convert__closures________invoke__h26bd98b12329b61c: (a: number, b: number, c: any) => void;
1571
+ readonly wasm_bindgen__closure__destroy__had1e850b6c34613d: (a: number, b: number) => void;
1315
1572
  readonly wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36: (a: number, b: number, c: any) => void;
1316
1573
  readonly wasm_bindgen__closure__destroy__he59d4bc392497fcb: (a: number, b: number) => void;
1317
1574
  readonly wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d: (a: number, b: number, c: any, d: any) => void;
@@ -214,8 +214,8 @@ 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);
217
+ function wasm_bindgen__convert__closures________invoke__h26bd98b12329b61c(arg0, arg1, arg2) {
218
+ wasm.wasm_bindgen__convert__closures________invoke__h26bd98b12329b61c(arg0, arg1, arg2);
219
219
  }
220
220
 
221
221
  function wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36(arg0, arg1, arg2) {
@@ -1015,6 +1015,155 @@ 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
+
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
+
1018
1167
  /**
1019
1168
  * Export a decisions index to YAML format.
1020
1169
  *
@@ -1193,6 +1342,83 @@ export function export_decision_to_yaml(decision_json) {
1193
1342
  }
1194
1343
  }
1195
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
+
1196
1422
  /**
1197
1423
  * Export a domain config to YAML format.
1198
1424
  *
@@ -1405,6 +1631,83 @@ export function export_knowledge_to_yaml(article_json) {
1405
1631
  }
1406
1632
  }
1407
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
+
1408
1711
  /**
1409
1712
  * Export raw markdown content to PDF format with optional branding.
1410
1713
  *
@@ -1451,6 +1754,232 @@ export function export_markdown_to_pdf(title, content, filename, branding_json)
1451
1754
  }
1452
1755
  }
1453
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
+
1834
+ /**
1835
+ * Export an ODPS Data Product to Markdown format.
1836
+ *
1837
+ * # Arguments
1838
+ *
1839
+ * * `product_json` - JSON string containing ODPSDataProduct
1840
+ *
1841
+ * # Returns
1842
+ *
1843
+ * Markdown string, or JsValue error
1844
+ * @param {string} product_json
1845
+ * @returns {string}
1846
+ */
1847
+ export function export_odps_to_markdown(product_json) {
1848
+ let deferred3_0;
1849
+ let deferred3_1;
1850
+ try {
1851
+ const ptr0 = passStringToWasm0(product_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1852
+ const len0 = WASM_VECTOR_LEN;
1853
+ const ret = wasm.export_odps_to_markdown(ptr0, len0);
1854
+ var ptr2 = ret[0];
1855
+ var len2 = ret[1];
1856
+ if (ret[3]) {
1857
+ ptr2 = 0; len2 = 0;
1858
+ throw takeFromExternrefTable0(ret[2]);
1859
+ }
1860
+ deferred3_0 = ptr2;
1861
+ deferred3_1 = len2;
1862
+ return getStringFromWasm0(ptr2, len2);
1863
+ } finally {
1864
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
1865
+ }
1866
+ }
1867
+
1868
+ /**
1869
+ * Export an ODPS Data Product to PDF format with optional branding.
1870
+ *
1871
+ * # Arguments
1872
+ *
1873
+ * * `product_json` - JSON string containing ODPSDataProduct
1874
+ * * `branding_json` - Optional JSON string containing BrandingConfig
1875
+ *
1876
+ * # Returns
1877
+ *
1878
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
1879
+ * @param {string} product_json
1880
+ * @param {string | null} [branding_json]
1881
+ * @returns {string}
1882
+ */
1883
+ export function export_odps_to_pdf(product_json, branding_json) {
1884
+ let deferred4_0;
1885
+ let deferred4_1;
1886
+ try {
1887
+ const ptr0 = passStringToWasm0(product_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1888
+ const len0 = WASM_VECTOR_LEN;
1889
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1890
+ var len1 = WASM_VECTOR_LEN;
1891
+ const ret = wasm.export_odps_to_pdf(ptr0, len0, ptr1, len1);
1892
+ var ptr3 = ret[0];
1893
+ var len3 = ret[1];
1894
+ if (ret[3]) {
1895
+ ptr3 = 0; len3 = 0;
1896
+ throw takeFromExternrefTable0(ret[2]);
1897
+ }
1898
+ deferred4_0 = ptr3;
1899
+ deferred4_1 = len3;
1900
+ return getStringFromWasm0(ptr3, len3);
1901
+ } finally {
1902
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1903
+ }
1904
+ }
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
+
1454
1983
  /**
1455
1984
  * Export an OpenAPI specification to YAML or JSON content.
1456
1985
  *
@@ -1493,6 +2022,78 @@ export function export_openapi_spec(content, source_format, target_format) {
1493
2022
  }
1494
2023
  }
1495
2024
 
2025
+ /**
2026
+ * Export an ODCS Table (Data Contract) to Markdown format.
2027
+ *
2028
+ * # Arguments
2029
+ *
2030
+ * * `table_json` - JSON string containing Table
2031
+ *
2032
+ * # Returns
2033
+ *
2034
+ * Markdown string, or JsValue error
2035
+ * @param {string} table_json
2036
+ * @returns {string}
2037
+ */
2038
+ export function export_table_to_markdown(table_json) {
2039
+ let deferred3_0;
2040
+ let deferred3_1;
2041
+ try {
2042
+ const ptr0 = passStringToWasm0(table_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2043
+ const len0 = WASM_VECTOR_LEN;
2044
+ const ret = wasm.export_table_to_markdown(ptr0, len0);
2045
+ var ptr2 = ret[0];
2046
+ var len2 = ret[1];
2047
+ if (ret[3]) {
2048
+ ptr2 = 0; len2 = 0;
2049
+ throw takeFromExternrefTable0(ret[2]);
2050
+ }
2051
+ deferred3_0 = ptr2;
2052
+ deferred3_1 = len2;
2053
+ return getStringFromWasm0(ptr2, len2);
2054
+ } finally {
2055
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
2056
+ }
2057
+ }
2058
+
2059
+ /**
2060
+ * Export an ODCS Table (Data Contract) to PDF format with optional branding.
2061
+ *
2062
+ * # Arguments
2063
+ *
2064
+ * * `table_json` - JSON string containing Table
2065
+ * * `branding_json` - Optional JSON string containing BrandingConfig
2066
+ *
2067
+ * # Returns
2068
+ *
2069
+ * JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
2070
+ * @param {string} table_json
2071
+ * @param {string | null} [branding_json]
2072
+ * @returns {string}
2073
+ */
2074
+ export function export_table_to_pdf(table_json, branding_json) {
2075
+ let deferred4_0;
2076
+ let deferred4_1;
2077
+ try {
2078
+ const ptr0 = passStringToWasm0(table_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2079
+ const len0 = WASM_VECTOR_LEN;
2080
+ var ptr1 = isLikeNone(branding_json) ? 0 : passStringToWasm0(branding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2081
+ var len1 = WASM_VECTOR_LEN;
2082
+ const ret = wasm.export_table_to_pdf(ptr0, len0, ptr1, len1);
2083
+ var ptr3 = ret[0];
2084
+ var len3 = ret[1];
2085
+ if (ret[3]) {
2086
+ ptr3 = 0; len3 = 0;
2087
+ throw takeFromExternrefTable0(ret[2]);
2088
+ }
2089
+ deferred4_0 = ptr3;
2090
+ deferred4_1 = len3;
2091
+ return getStringFromWasm0(ptr3, len3);
2092
+ } finally {
2093
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
2094
+ }
2095
+ }
2096
+
1496
2097
  /**
1497
2098
  * Export a data model to AVRO schema.
1498
2099
  *
@@ -3684,21 +4285,21 @@ function __wbg_get_imports() {
3684
4285
  const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
3685
4286
  return ret;
3686
4287
  }, arguments) };
4288
+ imports.wbg.__wbindgen_cast_1d017700d99254c4 = function(arg0, arg1) {
4289
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 450, function: Function { arguments: [Ref(NamedExternref("IDBVersionChangeEvent"))], shim_idx: 451, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4290
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__had1e850b6c34613d, wasm_bindgen__convert__closures________invoke__h26bd98b12329b61c);
4291
+ return ret;
4292
+ };
3687
4293
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
3688
4294
  // Cast intrinsic for `Ref(String) -> Externref`.
3689
4295
  const ret = getStringFromWasm0(arg0, arg1);
3690
4296
  return ret;
3691
4297
  };
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`.
4298
+ imports.wbg.__wbindgen_cast_93a0faaf4de90756 = function(arg0, arg1) {
4299
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 641, function: Function { arguments: [Externref], shim_idx: 642, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3694
4300
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__he59d4bc392497fcb, wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36);
3695
4301
  return ret;
3696
4302
  };
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);
3700
- return ret;
3701
- };
3702
4303
  imports.wbg.__wbindgen_init_externref_table = function() {
3703
4304
  const table = wasm.__wbindgen_externrefs;
3704
4305
  const offset = table.grow(4);
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.2",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",