@offenedatenmodellierung/data-modelling-sdk 1.14.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.
- package/LICENSE +21 -0
- package/README.md +457 -0
- package/data_modelling_sdk.d.ts +1348 -0
- package/data_modelling_sdk.js +3773 -0
- package/data_modelling_sdk_bg.wasm +0 -0
- package/package.json +35 -0
|
@@ -0,0 +1,1348 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Add an article to a knowledge index.
|
|
6
|
+
*
|
|
7
|
+
* # Arguments
|
|
8
|
+
*
|
|
9
|
+
* * `index_json` - JSON string containing KnowledgeIndex
|
|
10
|
+
* * `article_json` - JSON string containing KnowledgeArticle
|
|
11
|
+
* * `filename` - Filename for the article YAML file
|
|
12
|
+
*
|
|
13
|
+
* # Returns
|
|
14
|
+
*
|
|
15
|
+
* JSON string containing updated KnowledgeIndex, or JsValue error
|
|
16
|
+
*/
|
|
17
|
+
export function add_article_to_knowledge_index(index_json: string, article_json: string, filename: string): string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Add a CADS node to a domain in a DataModel.
|
|
21
|
+
*
|
|
22
|
+
* # Arguments
|
|
23
|
+
*
|
|
24
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
25
|
+
* * `domain_id` - Domain UUID as string
|
|
26
|
+
* * `node_json` - JSON string containing CADSNode
|
|
27
|
+
*
|
|
28
|
+
* # Returns
|
|
29
|
+
*
|
|
30
|
+
* JSON string containing updated DataModel, or JsValue error
|
|
31
|
+
*/
|
|
32
|
+
export function add_cads_node_to_domain(workspace_json: string, domain_id: string, node_json: string): string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Add a decision to an index.
|
|
36
|
+
*
|
|
37
|
+
* # Arguments
|
|
38
|
+
*
|
|
39
|
+
* * `index_json` - JSON string containing DecisionIndex
|
|
40
|
+
* * `decision_json` - JSON string containing Decision
|
|
41
|
+
* * `filename` - Filename for the decision YAML file
|
|
42
|
+
*
|
|
43
|
+
* # Returns
|
|
44
|
+
*
|
|
45
|
+
* JSON string containing updated DecisionIndex, or JsValue error
|
|
46
|
+
*/
|
|
47
|
+
export function add_decision_to_index(index_json: string, decision_json: string, filename: string): string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Add a domain reference to a workspace.
|
|
51
|
+
*
|
|
52
|
+
* # Arguments
|
|
53
|
+
*
|
|
54
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
55
|
+
* * `domain_id` - Domain UUID as string
|
|
56
|
+
* * `domain_name` - Domain name
|
|
57
|
+
*
|
|
58
|
+
* # Returns
|
|
59
|
+
*
|
|
60
|
+
* JSON string containing updated Workspace, or JsValue error
|
|
61
|
+
*/
|
|
62
|
+
export function add_domain_to_workspace(workspace_json: string, domain_id: string, domain_name: string): string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Add an entity reference to a domain config.
|
|
66
|
+
*
|
|
67
|
+
* # Arguments
|
|
68
|
+
*
|
|
69
|
+
* * `config_json` - JSON string containing DomainConfig
|
|
70
|
+
* * `entity_type` - Entity type: "system", "table", "product", "asset", "process", "decision"
|
|
71
|
+
* * `entity_id` - Entity UUID as string
|
|
72
|
+
*
|
|
73
|
+
* # Returns
|
|
74
|
+
*
|
|
75
|
+
* JSON string containing updated DomainConfig, or JsValue error
|
|
76
|
+
*/
|
|
77
|
+
export function add_entity_to_domain_config(config_json: string, entity_type: string, entity_id: string): string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Add an ODCS node to a domain in a DataModel.
|
|
81
|
+
*
|
|
82
|
+
* # Arguments
|
|
83
|
+
*
|
|
84
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
85
|
+
* * `domain_id` - Domain UUID as string
|
|
86
|
+
* * `node_json` - JSON string containing ODCSNode
|
|
87
|
+
*
|
|
88
|
+
* # Returns
|
|
89
|
+
*
|
|
90
|
+
* JSON string containing updated DataModel, or JsValue error
|
|
91
|
+
*/
|
|
92
|
+
export function add_odcs_node_to_domain(workspace_json: string, domain_id: string, node_json: string): string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Add a relationship to a workspace.
|
|
96
|
+
*
|
|
97
|
+
* # Arguments
|
|
98
|
+
*
|
|
99
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
100
|
+
* * `relationship_json` - JSON string containing Relationship
|
|
101
|
+
*
|
|
102
|
+
* # Returns
|
|
103
|
+
*
|
|
104
|
+
* JSON string containing updated Workspace, or JsValue error
|
|
105
|
+
*/
|
|
106
|
+
export function add_relationship_to_workspace(workspace_json: string, relationship_json: string): string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Add a system to a domain in a DataModel.
|
|
110
|
+
*
|
|
111
|
+
* # Arguments
|
|
112
|
+
*
|
|
113
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
114
|
+
* * `domain_id` - Domain UUID as string
|
|
115
|
+
* * `system_json` - JSON string containing System
|
|
116
|
+
*
|
|
117
|
+
* # Returns
|
|
118
|
+
*
|
|
119
|
+
* JSON string containing updated DataModel, or JsValue error
|
|
120
|
+
*/
|
|
121
|
+
export function add_system_to_domain(workspace_json: string, domain_id: string, system_json: string): string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Analyze an OpenAPI component for conversion feasibility.
|
|
125
|
+
*
|
|
126
|
+
* # Arguments
|
|
127
|
+
*
|
|
128
|
+
* * `openapi_content` - OpenAPI YAML or JSON content as a string
|
|
129
|
+
* * `component_name` - Name of the schema component to analyze
|
|
130
|
+
*
|
|
131
|
+
* # Returns
|
|
132
|
+
*
|
|
133
|
+
* JSON string containing ConversionReport, or JsValue error
|
|
134
|
+
*/
|
|
135
|
+
export function analyze_openapi_conversion(openapi_content: string, component_name: string): string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Check for circular dependencies in relationships.
|
|
139
|
+
*
|
|
140
|
+
* # Arguments
|
|
141
|
+
*
|
|
142
|
+
* * `relationships_json` - JSON string containing array of existing relationships
|
|
143
|
+
* * `source_table_id` - Source table ID (UUID string) of the new relationship
|
|
144
|
+
* * `target_table_id` - Target table ID (UUID string) of the new relationship
|
|
145
|
+
*
|
|
146
|
+
* # Returns
|
|
147
|
+
*
|
|
148
|
+
* JSON string with result: `{"has_cycle": true/false, "cycle_path": [...]}` or error
|
|
149
|
+
*/
|
|
150
|
+
export function check_circular_dependency(relationships_json: string, source_table_id: string, target_table_id: string): string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Convert an OpenAPI schema component to an ODCS table.
|
|
154
|
+
*
|
|
155
|
+
* # Arguments
|
|
156
|
+
*
|
|
157
|
+
* * `openapi_content` - OpenAPI YAML or JSON content as a string
|
|
158
|
+
* * `component_name` - Name of the schema component to convert
|
|
159
|
+
* * `table_name` - Optional desired ODCS table name (uses component_name if None)
|
|
160
|
+
*
|
|
161
|
+
* # Returns
|
|
162
|
+
*
|
|
163
|
+
* JSON string containing ODCS Table, or JsValue error
|
|
164
|
+
*/
|
|
165
|
+
export function convert_openapi_to_odcs(openapi_content: string, component_name: string, table_name?: string | null): string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Convert any format to ODCS v3.1.0 YAML format.
|
|
169
|
+
*
|
|
170
|
+
* # Arguments
|
|
171
|
+
*
|
|
172
|
+
* * `input` - Format-specific content as a string
|
|
173
|
+
* * `format` - Optional format identifier. If None, attempts auto-detection.
|
|
174
|
+
* Supported formats: "sql", "json_schema", "avro", "protobuf", "odcl", "odcs", "cads", "odps", "domain"
|
|
175
|
+
*
|
|
176
|
+
* # Returns
|
|
177
|
+
*
|
|
178
|
+
* ODCS v3.1.0 YAML string, or JsValue error
|
|
179
|
+
*/
|
|
180
|
+
export function convert_to_odcs(input: string, format?: string | null): string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Create a new decision with required fields.
|
|
184
|
+
*
|
|
185
|
+
* # Arguments
|
|
186
|
+
*
|
|
187
|
+
* * `number` - Decision number (ADR-0001, ADR-0002, etc.)
|
|
188
|
+
* * `title` - Short title describing the decision
|
|
189
|
+
* * `context` - Problem statement and context
|
|
190
|
+
* * `decision` - The decision that was made
|
|
191
|
+
*
|
|
192
|
+
* # Returns
|
|
193
|
+
*
|
|
194
|
+
* JSON string containing Decision, or JsValue error
|
|
195
|
+
*/
|
|
196
|
+
export function create_decision(number: number, title: string, context: string, decision: string): string;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Create a new empty decision index.
|
|
200
|
+
*
|
|
201
|
+
* # Returns
|
|
202
|
+
*
|
|
203
|
+
* JSON string containing DecisionIndex, or JsValue error
|
|
204
|
+
*/
|
|
205
|
+
export function create_decision_index(): string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Create a new business domain.
|
|
209
|
+
*
|
|
210
|
+
* # Arguments
|
|
211
|
+
*
|
|
212
|
+
* * `name` - Domain name
|
|
213
|
+
*
|
|
214
|
+
* # Returns
|
|
215
|
+
*
|
|
216
|
+
* JSON string containing Domain, or JsValue error
|
|
217
|
+
*/
|
|
218
|
+
export function create_domain(name: string): string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Create a new domain configuration.
|
|
222
|
+
*
|
|
223
|
+
* # Arguments
|
|
224
|
+
*
|
|
225
|
+
* * `name` - Domain name
|
|
226
|
+
* * `workspace_id` - Workspace UUID as string
|
|
227
|
+
*
|
|
228
|
+
* # Returns
|
|
229
|
+
*
|
|
230
|
+
* JSON string containing DomainConfig, or JsValue error
|
|
231
|
+
*/
|
|
232
|
+
export function create_domain_config(name: string, workspace_id: string): string;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Create a new knowledge article with required fields.
|
|
236
|
+
*
|
|
237
|
+
* # Arguments
|
|
238
|
+
*
|
|
239
|
+
* * `number` - Article number (1, 2, 3, etc. - will be formatted as KB-0001)
|
|
240
|
+
* * `title` - Article title
|
|
241
|
+
* * `summary` - Brief summary of the article
|
|
242
|
+
* * `content` - Full article content in Markdown
|
|
243
|
+
* * `author` - Article author (email or name)
|
|
244
|
+
*
|
|
245
|
+
* # Returns
|
|
246
|
+
*
|
|
247
|
+
* JSON string containing KnowledgeArticle, or JsValue error
|
|
248
|
+
*/
|
|
249
|
+
export function create_knowledge_article(number: number, title: string, summary: string, content: string, author: string): string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Create a new empty knowledge index.
|
|
253
|
+
*
|
|
254
|
+
* # Returns
|
|
255
|
+
*
|
|
256
|
+
* JSON string containing KnowledgeIndex, or JsValue error
|
|
257
|
+
*/
|
|
258
|
+
export function create_knowledge_index(): string;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Create a new workspace.
|
|
262
|
+
*
|
|
263
|
+
* # Arguments
|
|
264
|
+
*
|
|
265
|
+
* * `name` - Workspace name
|
|
266
|
+
* * `owner_id` - Owner UUID as string
|
|
267
|
+
*
|
|
268
|
+
* # Returns
|
|
269
|
+
*
|
|
270
|
+
* JSON string containing Workspace, or JsValue error
|
|
271
|
+
*/
|
|
272
|
+
export function create_workspace(name: string, owner_id: string): string;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Detect naming conflicts between existing and new tables.
|
|
276
|
+
*
|
|
277
|
+
* # Arguments
|
|
278
|
+
*
|
|
279
|
+
* * `existing_tables_json` - JSON string containing array of existing tables
|
|
280
|
+
* * `new_tables_json` - JSON string containing array of new tables
|
|
281
|
+
*
|
|
282
|
+
* # Returns
|
|
283
|
+
*
|
|
284
|
+
* JSON string containing array of naming conflicts
|
|
285
|
+
*/
|
|
286
|
+
export function detect_naming_conflicts(existing_tables_json: string, new_tables_json: string): string;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Export a decisions index to YAML format.
|
|
290
|
+
*
|
|
291
|
+
* # Arguments
|
|
292
|
+
*
|
|
293
|
+
* * `index_json` - JSON string containing DecisionIndex
|
|
294
|
+
*
|
|
295
|
+
* # Returns
|
|
296
|
+
*
|
|
297
|
+
* DecisionIndex YAML format string, or JsValue error
|
|
298
|
+
*/
|
|
299
|
+
export function export_decision_index_to_yaml(index_json: string): string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Export a decision to branded Markdown format.
|
|
303
|
+
*
|
|
304
|
+
* # Arguments
|
|
305
|
+
*
|
|
306
|
+
* * `decision_json` - JSON string containing Decision
|
|
307
|
+
* * `branding_json` - Optional JSON string containing MarkdownBrandingConfig
|
|
308
|
+
*
|
|
309
|
+
* # Returns
|
|
310
|
+
*
|
|
311
|
+
* Branded Markdown string, or JsValue error
|
|
312
|
+
*/
|
|
313
|
+
export function export_decision_to_branded_markdown(decision_json: string, branding_json?: string | null): string;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Export a decision to Markdown format (MADR template).
|
|
317
|
+
*
|
|
318
|
+
* # Arguments
|
|
319
|
+
*
|
|
320
|
+
* * `decision_json` - JSON string containing Decision
|
|
321
|
+
*
|
|
322
|
+
* # Returns
|
|
323
|
+
*
|
|
324
|
+
* Decision Markdown string, or JsValue error
|
|
325
|
+
*/
|
|
326
|
+
export function export_decision_to_markdown(decision_json: string): string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Export a decision to PDF format with optional branding.
|
|
330
|
+
*
|
|
331
|
+
* # Arguments
|
|
332
|
+
*
|
|
333
|
+
* * `decision_json` - JSON string containing Decision
|
|
334
|
+
* * `branding_json` - Optional JSON string containing BrandingConfig
|
|
335
|
+
*
|
|
336
|
+
* # Returns
|
|
337
|
+
*
|
|
338
|
+
* JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
|
|
339
|
+
*/
|
|
340
|
+
export function export_decision_to_pdf(decision_json: string, branding_json?: string | null): string;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Export a decision to YAML format.
|
|
344
|
+
*
|
|
345
|
+
* # Arguments
|
|
346
|
+
*
|
|
347
|
+
* * `decision_json` - JSON string containing Decision
|
|
348
|
+
*
|
|
349
|
+
* # Returns
|
|
350
|
+
*
|
|
351
|
+
* Decision YAML format string, or JsValue error
|
|
352
|
+
*/
|
|
353
|
+
export function export_decision_to_yaml(decision_json: string): string;
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Export a domain config to YAML format.
|
|
357
|
+
*
|
|
358
|
+
* # Arguments
|
|
359
|
+
*
|
|
360
|
+
* * `config_json` - JSON string containing DomainConfig
|
|
361
|
+
*
|
|
362
|
+
* # Returns
|
|
363
|
+
*
|
|
364
|
+
* DomainConfig YAML format string, or JsValue error
|
|
365
|
+
*/
|
|
366
|
+
export function export_domain_config_to_yaml(config_json: string): string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Export a knowledge index to YAML format.
|
|
370
|
+
*
|
|
371
|
+
* # Arguments
|
|
372
|
+
*
|
|
373
|
+
* * `index_json` - JSON string containing KnowledgeIndex
|
|
374
|
+
*
|
|
375
|
+
* # Returns
|
|
376
|
+
*
|
|
377
|
+
* KnowledgeIndex YAML format string, or JsValue error
|
|
378
|
+
*/
|
|
379
|
+
export function export_knowledge_index_to_yaml(index_json: string): string;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Export a knowledge article to branded Markdown format.
|
|
383
|
+
*
|
|
384
|
+
* # Arguments
|
|
385
|
+
*
|
|
386
|
+
* * `article_json` - JSON string containing KnowledgeArticle
|
|
387
|
+
* * `branding_json` - Optional JSON string containing MarkdownBrandingConfig
|
|
388
|
+
*
|
|
389
|
+
* # Returns
|
|
390
|
+
*
|
|
391
|
+
* Branded Markdown string, or JsValue error
|
|
392
|
+
*/
|
|
393
|
+
export function export_knowledge_to_branded_markdown(article_json: string, branding_json?: string | null): string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Export a knowledge article to Markdown format.
|
|
397
|
+
*
|
|
398
|
+
* # Arguments
|
|
399
|
+
*
|
|
400
|
+
* * `article_json` - JSON string containing KnowledgeArticle
|
|
401
|
+
*
|
|
402
|
+
* # Returns
|
|
403
|
+
*
|
|
404
|
+
* KnowledgeArticle Markdown string, or JsValue error
|
|
405
|
+
*/
|
|
406
|
+
export function export_knowledge_to_markdown(article_json: string): string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Export a knowledge article to PDF format with optional branding.
|
|
410
|
+
*
|
|
411
|
+
* # Arguments
|
|
412
|
+
*
|
|
413
|
+
* * `article_json` - JSON string containing KnowledgeArticle
|
|
414
|
+
* * `branding_json` - Optional JSON string containing BrandingConfig
|
|
415
|
+
*
|
|
416
|
+
* # Returns
|
|
417
|
+
*
|
|
418
|
+
* JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
|
|
419
|
+
*/
|
|
420
|
+
export function export_knowledge_to_pdf(article_json: string, branding_json?: string | null): string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Export a knowledge article to YAML format.
|
|
424
|
+
*
|
|
425
|
+
* # Arguments
|
|
426
|
+
*
|
|
427
|
+
* * `article_json` - JSON string containing KnowledgeArticle
|
|
428
|
+
*
|
|
429
|
+
* # Returns
|
|
430
|
+
*
|
|
431
|
+
* KnowledgeArticle YAML format string, or JsValue error
|
|
432
|
+
*/
|
|
433
|
+
export function export_knowledge_to_yaml(article_json: string): string;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Export raw markdown content to PDF format with optional branding.
|
|
437
|
+
*
|
|
438
|
+
* # Arguments
|
|
439
|
+
*
|
|
440
|
+
* * `title` - Document title
|
|
441
|
+
* * `content` - Markdown content
|
|
442
|
+
* * `filename` - Output filename suggestion
|
|
443
|
+
* * `branding_json` - Optional JSON string containing BrandingConfig
|
|
444
|
+
*
|
|
445
|
+
* # Returns
|
|
446
|
+
*
|
|
447
|
+
* JSON string containing PdfExportResult (with base64-encoded PDF), or JsValue error
|
|
448
|
+
*/
|
|
449
|
+
export function export_markdown_to_pdf(title: string, content: string, filename: string, branding_json?: string | null): string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Export an OpenAPI specification to YAML or JSON content.
|
|
453
|
+
*
|
|
454
|
+
* # Arguments
|
|
455
|
+
*
|
|
456
|
+
* * `content` - OpenAPI content as a string
|
|
457
|
+
* * `source_format` - Source format ("yaml" or "json")
|
|
458
|
+
* * `target_format` - Optional target format for conversion (None to keep original)
|
|
459
|
+
*
|
|
460
|
+
* # Returns
|
|
461
|
+
*
|
|
462
|
+
* OpenAPI content in requested format, or JsValue error
|
|
463
|
+
*/
|
|
464
|
+
export function export_openapi_spec(content: string, source_format: string, target_format?: string | null): string;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Export a data model to AVRO schema.
|
|
468
|
+
*
|
|
469
|
+
* # Arguments
|
|
470
|
+
*
|
|
471
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
472
|
+
*
|
|
473
|
+
* # Returns
|
|
474
|
+
*
|
|
475
|
+
* AVRO schema JSON string, or JsValue error
|
|
476
|
+
*/
|
|
477
|
+
export function export_to_avro(workspace_json: string): string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Export a CADS asset to YAML format.
|
|
481
|
+
*
|
|
482
|
+
* # Arguments
|
|
483
|
+
*
|
|
484
|
+
* * `asset_json` - JSON string containing CADS asset
|
|
485
|
+
*
|
|
486
|
+
* # Returns
|
|
487
|
+
*
|
|
488
|
+
* CADS YAML format string, or JsValue error
|
|
489
|
+
*/
|
|
490
|
+
export function export_to_cads(asset_json: string): string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Export a Domain to YAML format.
|
|
494
|
+
*
|
|
495
|
+
* # Arguments
|
|
496
|
+
*
|
|
497
|
+
* * `domain_json` - JSON string containing Domain
|
|
498
|
+
*
|
|
499
|
+
* # Returns
|
|
500
|
+
*
|
|
501
|
+
* Domain YAML format string, or JsValue error
|
|
502
|
+
*/
|
|
503
|
+
export function export_to_domain(domain_json: string): string;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Export a data model to JSON Schema definition.
|
|
507
|
+
*
|
|
508
|
+
* # Arguments
|
|
509
|
+
*
|
|
510
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
511
|
+
*
|
|
512
|
+
* # Returns
|
|
513
|
+
*
|
|
514
|
+
* JSON Schema definition string, or JsValue error
|
|
515
|
+
*/
|
|
516
|
+
export function export_to_json_schema(workspace_json: string): string;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Export a workspace structure to ODCS YAML format.
|
|
520
|
+
*
|
|
521
|
+
* # Arguments
|
|
522
|
+
*
|
|
523
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
524
|
+
*
|
|
525
|
+
* # Returns
|
|
526
|
+
*
|
|
527
|
+
* ODCS YAML format string, or JsValue error
|
|
528
|
+
*/
|
|
529
|
+
export function export_to_odcs_yaml(workspace_json: string): string;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Export an ODPS data product to YAML format.
|
|
533
|
+
*
|
|
534
|
+
* # Arguments
|
|
535
|
+
*
|
|
536
|
+
* * `product_json` - JSON string containing ODPS data product
|
|
537
|
+
*
|
|
538
|
+
* # Returns
|
|
539
|
+
*
|
|
540
|
+
* ODPS YAML format string, or JsValue error
|
|
541
|
+
*/
|
|
542
|
+
export function export_to_odps(product_json: string): string;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Export a data model to Protobuf schema.
|
|
546
|
+
*
|
|
547
|
+
* # Arguments
|
|
548
|
+
*
|
|
549
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
550
|
+
*
|
|
551
|
+
* # Returns
|
|
552
|
+
*
|
|
553
|
+
* Protobuf schema text, or JsValue error
|
|
554
|
+
*/
|
|
555
|
+
export function export_to_protobuf(workspace_json: string): string;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* Export a data model to SQL CREATE TABLE statements.
|
|
559
|
+
*
|
|
560
|
+
* # Arguments
|
|
561
|
+
*
|
|
562
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
563
|
+
* * `dialect` - SQL dialect ("postgresql", "mysql", "sqlserver", "databricks")
|
|
564
|
+
*
|
|
565
|
+
* # Returns
|
|
566
|
+
*
|
|
567
|
+
* SQL CREATE TABLE statements, or JsValue error
|
|
568
|
+
*/
|
|
569
|
+
export function export_to_sql(workspace_json: string, dialect: string): string;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Export a workspace to YAML format.
|
|
573
|
+
*
|
|
574
|
+
* # Arguments
|
|
575
|
+
*
|
|
576
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
577
|
+
*
|
|
578
|
+
* # Returns
|
|
579
|
+
*
|
|
580
|
+
* Workspace YAML format string, or JsValue error
|
|
581
|
+
*/
|
|
582
|
+
export function export_workspace_to_yaml(workspace_json: string): string;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Filter Data Flow nodes and relationships by tag.
|
|
586
|
+
*
|
|
587
|
+
* # Arguments
|
|
588
|
+
*
|
|
589
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
590
|
+
* * `tag` - Tag to filter by
|
|
591
|
+
*
|
|
592
|
+
* # Returns
|
|
593
|
+
*
|
|
594
|
+
* JSON string containing object with `nodes` and `relationships` arrays, or JsValue error
|
|
595
|
+
*/
|
|
596
|
+
export function filter_by_tags(workspace_json: string, tag: string): string;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Filter Data Flow nodes (tables) by infrastructure type.
|
|
600
|
+
*
|
|
601
|
+
* # Arguments
|
|
602
|
+
*
|
|
603
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
604
|
+
* * `infrastructure_type` - Infrastructure type string (e.g., "Kafka", "PostgreSQL")
|
|
605
|
+
*
|
|
606
|
+
* # Returns
|
|
607
|
+
*
|
|
608
|
+
* JSON string containing array of matching tables, or JsValue error
|
|
609
|
+
*/
|
|
610
|
+
export function filter_nodes_by_infrastructure_type(workspace_json: string, infrastructure_type: string): string;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Filter Data Flow nodes (tables) by owner.
|
|
614
|
+
*
|
|
615
|
+
* # Arguments
|
|
616
|
+
*
|
|
617
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
618
|
+
* * `owner` - Owner name to filter by (case-sensitive exact match)
|
|
619
|
+
*
|
|
620
|
+
* # Returns
|
|
621
|
+
*
|
|
622
|
+
* JSON string containing array of matching tables, or JsValue error
|
|
623
|
+
*/
|
|
624
|
+
export function filter_nodes_by_owner(workspace_json: string, owner: string): string;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Filter Data Flow relationships by infrastructure type.
|
|
628
|
+
*
|
|
629
|
+
* # Arguments
|
|
630
|
+
*
|
|
631
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
632
|
+
* * `infrastructure_type` - Infrastructure type string (e.g., "Kafka", "PostgreSQL")
|
|
633
|
+
*
|
|
634
|
+
* # Returns
|
|
635
|
+
*
|
|
636
|
+
* JSON string containing array of matching relationships, or JsValue error
|
|
637
|
+
*/
|
|
638
|
+
export function filter_relationships_by_infrastructure_type(workspace_json: string, infrastructure_type: string): string;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Filter Data Flow relationships by owner.
|
|
642
|
+
*
|
|
643
|
+
* # Arguments
|
|
644
|
+
*
|
|
645
|
+
* * `workspace_json` - JSON string containing workspace/data model structure
|
|
646
|
+
* * `owner` - Owner name to filter by (case-sensitive exact match)
|
|
647
|
+
*
|
|
648
|
+
* # Returns
|
|
649
|
+
*
|
|
650
|
+
* JSON string containing array of matching relationships, or JsValue error
|
|
651
|
+
*/
|
|
652
|
+
export function filter_relationships_by_owner(workspace_json: string, owner: string): string;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Get default Markdown branding configuration.
|
|
656
|
+
*
|
|
657
|
+
* # Returns
|
|
658
|
+
*
|
|
659
|
+
* JSON string containing default MarkdownBrandingConfig
|
|
660
|
+
*/
|
|
661
|
+
export function get_default_markdown_branding(): string;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Get default PDF branding configuration.
|
|
665
|
+
*
|
|
666
|
+
* # Returns
|
|
667
|
+
*
|
|
668
|
+
* JSON string containing default BrandingConfig
|
|
669
|
+
*/
|
|
670
|
+
export function get_default_pdf_branding(): string;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Get the domain ID from a domain config JSON.
|
|
674
|
+
*
|
|
675
|
+
* # Arguments
|
|
676
|
+
*
|
|
677
|
+
* * `config_json` - JSON string containing DomainConfig
|
|
678
|
+
*
|
|
679
|
+
* # Returns
|
|
680
|
+
*
|
|
681
|
+
* Domain UUID as string, or JsValue error
|
|
682
|
+
*/
|
|
683
|
+
export function get_domain_config_id(config_json: string): string;
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* Get relationships for a source table from a workspace.
|
|
687
|
+
*
|
|
688
|
+
* # Arguments
|
|
689
|
+
*
|
|
690
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
691
|
+
* * `source_table_id` - Source table UUID as string
|
|
692
|
+
*
|
|
693
|
+
* # Returns
|
|
694
|
+
*
|
|
695
|
+
* JSON string containing array of Relationships, or JsValue error
|
|
696
|
+
*/
|
|
697
|
+
export function get_workspace_relationships_for_source(workspace_json: string, source_table_id: string): string;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Get relationships for a target table from a workspace.
|
|
701
|
+
*
|
|
702
|
+
* # Arguments
|
|
703
|
+
*
|
|
704
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
705
|
+
* * `target_table_id` - Target table UUID as string
|
|
706
|
+
*
|
|
707
|
+
* # Returns
|
|
708
|
+
*
|
|
709
|
+
* JSON string containing array of Relationships, or JsValue error
|
|
710
|
+
*/
|
|
711
|
+
export function get_workspace_relationships_for_target(workspace_json: string, target_table_id: string): string;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Import data model from AVRO schema.
|
|
715
|
+
*
|
|
716
|
+
* # Arguments
|
|
717
|
+
*
|
|
718
|
+
* * `avro_content` - AVRO schema JSON as a string
|
|
719
|
+
*
|
|
720
|
+
* # Returns
|
|
721
|
+
*
|
|
722
|
+
* JSON string containing ImportResult object, or JsValue error
|
|
723
|
+
*/
|
|
724
|
+
export function import_from_avro(avro_content: string): string;
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Import CADS YAML content and return a structured representation.
|
|
728
|
+
*
|
|
729
|
+
* # Arguments
|
|
730
|
+
*
|
|
731
|
+
* * `yaml_content` - CADS YAML content as a string
|
|
732
|
+
*
|
|
733
|
+
* # Returns
|
|
734
|
+
*
|
|
735
|
+
* JSON string containing CADS asset, or JsValue error
|
|
736
|
+
*/
|
|
737
|
+
export function import_from_cads(yaml_content: string): string;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Import Domain YAML content and return a structured representation.
|
|
741
|
+
*
|
|
742
|
+
* # Arguments
|
|
743
|
+
*
|
|
744
|
+
* * `yaml_content` - Domain YAML content as a string
|
|
745
|
+
*
|
|
746
|
+
* # Returns
|
|
747
|
+
*
|
|
748
|
+
* JSON string containing Domain, or JsValue error
|
|
749
|
+
*/
|
|
750
|
+
export function import_from_domain(yaml_content: string): string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* Import data model from JSON Schema definition.
|
|
754
|
+
*
|
|
755
|
+
* # Arguments
|
|
756
|
+
*
|
|
757
|
+
* * `json_schema_content` - JSON Schema definition as a string
|
|
758
|
+
*
|
|
759
|
+
* # Returns
|
|
760
|
+
*
|
|
761
|
+
* JSON string containing ImportResult object, or JsValue error
|
|
762
|
+
*/
|
|
763
|
+
export function import_from_json_schema(json_schema_content: string): string;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Import ODPS YAML content and return a structured representation.
|
|
767
|
+
*
|
|
768
|
+
* # Arguments
|
|
769
|
+
*
|
|
770
|
+
* * `yaml_content` - ODPS YAML content as a string
|
|
771
|
+
*
|
|
772
|
+
* # Returns
|
|
773
|
+
*
|
|
774
|
+
* JSON string containing ODPS data product, or JsValue error
|
|
775
|
+
*/
|
|
776
|
+
export function import_from_odps(yaml_content: string): string;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Import data model from Protobuf schema.
|
|
780
|
+
*
|
|
781
|
+
* # Arguments
|
|
782
|
+
*
|
|
783
|
+
* * `protobuf_content` - Protobuf schema text
|
|
784
|
+
*
|
|
785
|
+
* # Returns
|
|
786
|
+
*
|
|
787
|
+
* JSON string containing ImportResult object, or JsValue error
|
|
788
|
+
*/
|
|
789
|
+
export function import_from_protobuf(protobuf_content: string): string;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Import data model from SQL CREATE TABLE statements.
|
|
793
|
+
*
|
|
794
|
+
* # Arguments
|
|
795
|
+
*
|
|
796
|
+
* * `sql_content` - SQL CREATE TABLE statements
|
|
797
|
+
* * `dialect` - SQL dialect ("postgresql", "mysql", "sqlserver", "databricks")
|
|
798
|
+
*
|
|
799
|
+
* # Returns
|
|
800
|
+
*
|
|
801
|
+
* JSON string containing ImportResult object, or JsValue error
|
|
802
|
+
*/
|
|
803
|
+
export function import_from_sql(sql_content: string, dialect: string): string;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Import an OpenAPI specification from YAML or JSON content.
|
|
807
|
+
*
|
|
808
|
+
* # Arguments
|
|
809
|
+
*
|
|
810
|
+
* * `domain_id` - Domain UUID as string
|
|
811
|
+
* * `content` - OpenAPI YAML or JSON content as a string
|
|
812
|
+
* * `api_name` - Optional API name (extracted from info.title if not provided)
|
|
813
|
+
*
|
|
814
|
+
* # Returns
|
|
815
|
+
*
|
|
816
|
+
* JSON string containing OpenAPIModel, or JsValue error
|
|
817
|
+
*/
|
|
818
|
+
export function import_openapi_spec(domain_id: string, content: string, api_name?: string | null): string;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Check if the given YAML content is in legacy ODCL format.
|
|
822
|
+
*
|
|
823
|
+
* Returns true if the content is in ODCL format (Data Contract Specification
|
|
824
|
+
* or simple ODCL format), false if it's in ODCS v3.x format or invalid.
|
|
825
|
+
*
|
|
826
|
+
* # Arguments
|
|
827
|
+
*
|
|
828
|
+
* * `yaml_content` - YAML content to check
|
|
829
|
+
*
|
|
830
|
+
* # Returns
|
|
831
|
+
*
|
|
832
|
+
* Boolean indicating if the content is ODCL format
|
|
833
|
+
*/
|
|
834
|
+
export function is_odcl_format(yaml_content: string): boolean;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Load a model from browser storage (IndexedDB/localStorage).
|
|
838
|
+
*
|
|
839
|
+
* # Arguments
|
|
840
|
+
*
|
|
841
|
+
* * `db_name` - IndexedDB database name
|
|
842
|
+
* * `store_name` - Object store name
|
|
843
|
+
* * `workspace_path` - Workspace path to load from
|
|
844
|
+
*
|
|
845
|
+
* # Returns
|
|
846
|
+
*
|
|
847
|
+
* Promise that resolves to JSON string containing ModelLoadResult, or rejects with error
|
|
848
|
+
*/
|
|
849
|
+
export function load_model(db_name: string, store_name: string, workspace_path: string): Promise<any>;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Migrate DataFlow YAML to Domain schema format.
|
|
853
|
+
*
|
|
854
|
+
* # Arguments
|
|
855
|
+
*
|
|
856
|
+
* * `dataflow_yaml` - DataFlow YAML content as a string
|
|
857
|
+
* * `domain_name` - Optional domain name (defaults to "MigratedDomain")
|
|
858
|
+
*
|
|
859
|
+
* # Returns
|
|
860
|
+
*
|
|
861
|
+
* JSON string containing Domain, or JsValue error
|
|
862
|
+
*/
|
|
863
|
+
export function migrate_dataflow_to_domain(dataflow_yaml: string, domain_name?: string | null): string;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Parse a decisions index YAML file and return a structured representation.
|
|
867
|
+
*
|
|
868
|
+
* # Arguments
|
|
869
|
+
*
|
|
870
|
+
* * `yaml_content` - Decisions index YAML content as a string (decisions.yaml)
|
|
871
|
+
*
|
|
872
|
+
* # Returns
|
|
873
|
+
*
|
|
874
|
+
* JSON string containing DecisionIndex, or JsValue error
|
|
875
|
+
*/
|
|
876
|
+
export function parse_decision_index_yaml(yaml_content: string): string;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* Parse a decision YAML file and return a structured representation.
|
|
880
|
+
*
|
|
881
|
+
* # Arguments
|
|
882
|
+
*
|
|
883
|
+
* * `yaml_content` - Decision YAML content as a string (.madr.yaml)
|
|
884
|
+
*
|
|
885
|
+
* # Returns
|
|
886
|
+
*
|
|
887
|
+
* JSON string containing Decision, or JsValue error
|
|
888
|
+
*/
|
|
889
|
+
export function parse_decision_yaml(yaml_content: string): string;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* Parse domain config YAML content and return a structured representation.
|
|
893
|
+
*
|
|
894
|
+
* # Arguments
|
|
895
|
+
*
|
|
896
|
+
* * `yaml_content` - Domain config YAML content as a string
|
|
897
|
+
*
|
|
898
|
+
* # Returns
|
|
899
|
+
*
|
|
900
|
+
* JSON string containing DomainConfig, or JsValue error
|
|
901
|
+
*/
|
|
902
|
+
export function parse_domain_config_yaml(yaml_content: string): string;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Parse a knowledge index YAML file and return a structured representation.
|
|
906
|
+
*
|
|
907
|
+
* # Arguments
|
|
908
|
+
*
|
|
909
|
+
* * `yaml_content` - Knowledge index YAML content as a string (knowledge.yaml)
|
|
910
|
+
*
|
|
911
|
+
* # Returns
|
|
912
|
+
*
|
|
913
|
+
* JSON string containing KnowledgeIndex, or JsValue error
|
|
914
|
+
*/
|
|
915
|
+
export function parse_knowledge_index_yaml(yaml_content: string): string;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Parse a knowledge article YAML file and return a structured representation.
|
|
919
|
+
*
|
|
920
|
+
* # Arguments
|
|
921
|
+
*
|
|
922
|
+
* * `yaml_content` - Knowledge article YAML content as a string (.kb.yaml)
|
|
923
|
+
*
|
|
924
|
+
* # Returns
|
|
925
|
+
*
|
|
926
|
+
* JSON string containing KnowledgeArticle, or JsValue error
|
|
927
|
+
*/
|
|
928
|
+
export function parse_knowledge_yaml(yaml_content: string): string;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Import data model from legacy ODCL (Open Data Contract Language) YAML format.
|
|
932
|
+
*
|
|
933
|
+
* This function parses legacy ODCL formats including:
|
|
934
|
+
* - Data Contract Specification format (dataContractSpecification, models, definitions)
|
|
935
|
+
* - Simple ODCL format (name, columns)
|
|
936
|
+
*
|
|
937
|
+
* For ODCS v3.1.0/v3.0.x format, use `parse_odcs_yaml` instead.
|
|
938
|
+
*
|
|
939
|
+
* # Arguments
|
|
940
|
+
*
|
|
941
|
+
* * `yaml_content` - ODCL YAML content as a string
|
|
942
|
+
*
|
|
943
|
+
* # Returns
|
|
944
|
+
*
|
|
945
|
+
* JSON string containing ImportResult object, or JsValue error
|
|
946
|
+
*/
|
|
947
|
+
export function parse_odcl_yaml(yaml_content: string): string;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Parse ODCS YAML content and return a structured workspace representation.
|
|
951
|
+
*
|
|
952
|
+
* # Arguments
|
|
953
|
+
*
|
|
954
|
+
* * `yaml_content` - ODCS YAML content as a string
|
|
955
|
+
*
|
|
956
|
+
* # Returns
|
|
957
|
+
*
|
|
958
|
+
* JSON string containing ImportResult object, or JsValue error
|
|
959
|
+
*/
|
|
960
|
+
export function parse_odcs_yaml(yaml_content: string): string;
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Parse a tag string into a Tag enum.
|
|
964
|
+
*
|
|
965
|
+
* # Arguments
|
|
966
|
+
*
|
|
967
|
+
* * `tag_str` - Tag string (Simple, Pair, or List format)
|
|
968
|
+
*
|
|
969
|
+
* # Returns
|
|
970
|
+
*
|
|
971
|
+
* JSON string containing Tag, or JsValue error
|
|
972
|
+
*/
|
|
973
|
+
export function parse_tag(tag_str: string): string;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Parse workspace YAML content and return a structured representation.
|
|
977
|
+
*
|
|
978
|
+
* # Arguments
|
|
979
|
+
*
|
|
980
|
+
* * `yaml_content` - Workspace YAML content as a string
|
|
981
|
+
*
|
|
982
|
+
* # Returns
|
|
983
|
+
*
|
|
984
|
+
* JSON string containing Workspace, or JsValue error
|
|
985
|
+
*/
|
|
986
|
+
export function parse_workspace_yaml(yaml_content: string): string;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Remove a domain reference from a workspace.
|
|
990
|
+
*
|
|
991
|
+
* # Arguments
|
|
992
|
+
*
|
|
993
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
994
|
+
* * `domain_id` - Domain UUID as string to remove
|
|
995
|
+
*
|
|
996
|
+
* # Returns
|
|
997
|
+
*
|
|
998
|
+
* JSON string containing updated Workspace, or JsValue error
|
|
999
|
+
*/
|
|
1000
|
+
export function remove_domain_from_workspace(workspace_json: string, domain_id: string): string;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Remove an entity reference from a domain config.
|
|
1004
|
+
*
|
|
1005
|
+
* # Arguments
|
|
1006
|
+
*
|
|
1007
|
+
* * `config_json` - JSON string containing DomainConfig
|
|
1008
|
+
* * `entity_type` - Entity type: "system", "table", "product", "asset", "process", "decision"
|
|
1009
|
+
* * `entity_id` - Entity UUID as string to remove
|
|
1010
|
+
*
|
|
1011
|
+
* # Returns
|
|
1012
|
+
*
|
|
1013
|
+
* JSON string containing updated DomainConfig, or JsValue error
|
|
1014
|
+
*/
|
|
1015
|
+
export function remove_entity_from_domain_config(config_json: string, entity_type: string, entity_id: string): string;
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Remove a relationship from a workspace.
|
|
1019
|
+
*
|
|
1020
|
+
* # Arguments
|
|
1021
|
+
*
|
|
1022
|
+
* * `workspace_json` - JSON string containing Workspace
|
|
1023
|
+
* * `relationship_id` - Relationship UUID as string to remove
|
|
1024
|
+
*
|
|
1025
|
+
* # Returns
|
|
1026
|
+
*
|
|
1027
|
+
* JSON string containing updated Workspace, or JsValue error
|
|
1028
|
+
*/
|
|
1029
|
+
export function remove_relationship_from_workspace(workspace_json: string, relationship_id: string): string;
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Sanitize a description string.
|
|
1033
|
+
*
|
|
1034
|
+
* # Arguments
|
|
1035
|
+
*
|
|
1036
|
+
* * `desc` - Description string to sanitize
|
|
1037
|
+
*
|
|
1038
|
+
* # Returns
|
|
1039
|
+
*
|
|
1040
|
+
* Sanitized description string
|
|
1041
|
+
*/
|
|
1042
|
+
export function sanitize_description(desc: string): string;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Sanitize a SQL identifier by quoting it.
|
|
1046
|
+
*
|
|
1047
|
+
* # Arguments
|
|
1048
|
+
*
|
|
1049
|
+
* * `name` - SQL identifier to sanitize
|
|
1050
|
+
* * `dialect` - SQL dialect ("postgresql", "mysql", "sqlserver", etc.)
|
|
1051
|
+
*
|
|
1052
|
+
* # Returns
|
|
1053
|
+
*
|
|
1054
|
+
* Sanitized SQL identifier string
|
|
1055
|
+
*/
|
|
1056
|
+
export function sanitize_sql_identifier(name: string, dialect: string): string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Save a model to browser storage (IndexedDB/localStorage).
|
|
1060
|
+
*
|
|
1061
|
+
* # Arguments
|
|
1062
|
+
*
|
|
1063
|
+
* * `db_name` - IndexedDB database name
|
|
1064
|
+
* * `store_name` - Object store name
|
|
1065
|
+
* * `workspace_path` - Workspace path to save to
|
|
1066
|
+
* * `model_json` - JSON string containing DataModel to save
|
|
1067
|
+
*
|
|
1068
|
+
* # Returns
|
|
1069
|
+
*
|
|
1070
|
+
* Promise that resolves to success message, or rejects with error
|
|
1071
|
+
*/
|
|
1072
|
+
export function save_model(db_name: string, store_name: string, workspace_path: string, model_json: string): Promise<any>;
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Search knowledge articles by title, summary, or content.
|
|
1076
|
+
*
|
|
1077
|
+
* # Arguments
|
|
1078
|
+
*
|
|
1079
|
+
* * `articles_json` - JSON string containing array of KnowledgeArticle
|
|
1080
|
+
* * `query` - Search query string (case-insensitive)
|
|
1081
|
+
*
|
|
1082
|
+
* # Returns
|
|
1083
|
+
*
|
|
1084
|
+
* JSON string containing array of matching KnowledgeArticle, or JsValue error
|
|
1085
|
+
*/
|
|
1086
|
+
export function search_knowledge_articles(articles_json: string, query: string): string;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Serialize a Tag enum to string format.
|
|
1090
|
+
*
|
|
1091
|
+
* # Arguments
|
|
1092
|
+
*
|
|
1093
|
+
* * `tag_json` - JSON string containing Tag
|
|
1094
|
+
*
|
|
1095
|
+
* # Returns
|
|
1096
|
+
*
|
|
1097
|
+
* Tag string (Simple, Pair, or List format), or JsValue error
|
|
1098
|
+
*/
|
|
1099
|
+
export function serialize_tag(tag_json: string): string;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Update domain config with new view positions.
|
|
1103
|
+
*
|
|
1104
|
+
* # Arguments
|
|
1105
|
+
*
|
|
1106
|
+
* * `config_json` - JSON string containing DomainConfig
|
|
1107
|
+
* * `positions_json` - JSON string containing view positions map
|
|
1108
|
+
*
|
|
1109
|
+
* # Returns
|
|
1110
|
+
*
|
|
1111
|
+
* JSON string containing updated DomainConfig, or JsValue error
|
|
1112
|
+
*/
|
|
1113
|
+
export function update_domain_view_positions(config_json: string, positions_json: string): string;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Validate a column name.
|
|
1117
|
+
*
|
|
1118
|
+
* # Arguments
|
|
1119
|
+
*
|
|
1120
|
+
* * `name` - Column name to validate
|
|
1121
|
+
*
|
|
1122
|
+
* # Returns
|
|
1123
|
+
*
|
|
1124
|
+
* JSON string with validation result: `{"valid": true}` or `{"valid": false, "error": "error message"}`
|
|
1125
|
+
*/
|
|
1126
|
+
export function validate_column_name(name: string): string;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Validate a data type string.
|
|
1130
|
+
*
|
|
1131
|
+
* # Arguments
|
|
1132
|
+
*
|
|
1133
|
+
* * `data_type` - Data type string to validate
|
|
1134
|
+
*
|
|
1135
|
+
* # Returns
|
|
1136
|
+
*
|
|
1137
|
+
* JSON string with validation result: `{"valid": true}` or `{"valid": false, "error": "error message"}`
|
|
1138
|
+
*/
|
|
1139
|
+
export function validate_data_type(data_type: string): string;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Validate a description string.
|
|
1143
|
+
*
|
|
1144
|
+
* # Arguments
|
|
1145
|
+
*
|
|
1146
|
+
* * `desc` - Description string to validate
|
|
1147
|
+
*
|
|
1148
|
+
* # Returns
|
|
1149
|
+
*
|
|
1150
|
+
* JSON string with validation result: `{"valid": true}` or `{"valid": false, "error": "error message"}`
|
|
1151
|
+
*/
|
|
1152
|
+
export function validate_description(desc: string): string;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Validate that source and target tables are different (no self-reference).
|
|
1156
|
+
*
|
|
1157
|
+
* # Arguments
|
|
1158
|
+
*
|
|
1159
|
+
* * `source_table_id` - Source table ID (UUID string)
|
|
1160
|
+
* * `target_table_id` - Target table ID (UUID string)
|
|
1161
|
+
*
|
|
1162
|
+
* # Returns
|
|
1163
|
+
*
|
|
1164
|
+
* JSON string with validation result: `{"valid": true}` or `{"valid": false, "self_reference": {...}}`
|
|
1165
|
+
*/
|
|
1166
|
+
export function validate_no_self_reference(source_table_id: string, target_table_id: string): string;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Validate ODPS YAML content against the ODPS JSON Schema.
|
|
1170
|
+
*
|
|
1171
|
+
* # Arguments
|
|
1172
|
+
*
|
|
1173
|
+
* * `yaml_content` - ODPS YAML content as a string
|
|
1174
|
+
*
|
|
1175
|
+
* # Returns
|
|
1176
|
+
*
|
|
1177
|
+
* Empty string on success, or error message string
|
|
1178
|
+
*/
|
|
1179
|
+
export function validate_odps(yaml_content: string): void;
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Validate pattern exclusivity for a table (SCD pattern and Data Vault classification are mutually exclusive).
|
|
1183
|
+
*
|
|
1184
|
+
* # Arguments
|
|
1185
|
+
*
|
|
1186
|
+
* * `table_json` - JSON string containing table to validate
|
|
1187
|
+
*
|
|
1188
|
+
* # Returns
|
|
1189
|
+
*
|
|
1190
|
+
* JSON string with validation result: `{"valid": true}` or `{"valid": false, "violation": {...}}`
|
|
1191
|
+
*/
|
|
1192
|
+
export function validate_pattern_exclusivity(table_json: string): string;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* Validate a table name.
|
|
1196
|
+
*
|
|
1197
|
+
* # Arguments
|
|
1198
|
+
*
|
|
1199
|
+
* * `name` - Table name to validate
|
|
1200
|
+
*
|
|
1201
|
+
* # Returns
|
|
1202
|
+
*
|
|
1203
|
+
* JSON string with validation result: `{"valid": true}` or `{"valid": false, "error": "error message"}`
|
|
1204
|
+
*/
|
|
1205
|
+
export function validate_table_name(name: string): string;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* Validate a UUID string.
|
|
1209
|
+
*
|
|
1210
|
+
* # Arguments
|
|
1211
|
+
*
|
|
1212
|
+
* * `id` - UUID string to validate
|
|
1213
|
+
*
|
|
1214
|
+
* # Returns
|
|
1215
|
+
*
|
|
1216
|
+
* JSON string with validation result: `{"valid": true, "uuid": "..."}` or `{"valid": false, "error": "error message"}`
|
|
1217
|
+
*/
|
|
1218
|
+
export function validate_uuid(id: string): string;
|
|
1219
|
+
|
|
1220
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
1221
|
+
|
|
1222
|
+
export interface InitOutput {
|
|
1223
|
+
readonly memory: WebAssembly.Memory;
|
|
1224
|
+
readonly add_article_to_knowledge_index: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1225
|
+
readonly add_cads_node_to_domain: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1226
|
+
readonly add_decision_to_index: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1227
|
+
readonly add_domain_to_workspace: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1228
|
+
readonly add_entity_to_domain_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1229
|
+
readonly add_odcs_node_to_domain: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1230
|
+
readonly add_relationship_to_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1231
|
+
readonly add_system_to_domain: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1232
|
+
readonly analyze_openapi_conversion: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1233
|
+
readonly check_circular_dependency: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1234
|
+
readonly convert_openapi_to_odcs: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1235
|
+
readonly convert_to_odcs: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1236
|
+
readonly create_decision: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
|
|
1237
|
+
readonly create_decision_index: () => [number, number, number, number];
|
|
1238
|
+
readonly create_domain: (a: number, b: number) => [number, number, number, number];
|
|
1239
|
+
readonly create_domain_config: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1240
|
+
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];
|
|
1241
|
+
readonly create_knowledge_index: () => [number, number, number, number];
|
|
1242
|
+
readonly create_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1243
|
+
readonly detect_naming_conflicts: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1244
|
+
readonly export_decision_index_to_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1245
|
+
readonly export_decision_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1246
|
+
readonly export_decision_to_markdown: (a: number, b: number) => [number, number, number, number];
|
|
1247
|
+
readonly export_decision_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1248
|
+
readonly export_decision_to_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1249
|
+
readonly export_domain_config_to_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1250
|
+
readonly export_knowledge_index_to_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1251
|
+
readonly export_knowledge_to_branded_markdown: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1252
|
+
readonly export_knowledge_to_markdown: (a: number, b: number) => [number, number, number, number];
|
|
1253
|
+
readonly export_knowledge_to_pdf: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1254
|
+
readonly export_knowledge_to_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1255
|
+
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];
|
|
1256
|
+
readonly export_openapi_spec: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1257
|
+
readonly export_to_avro: (a: number, b: number) => [number, number, number, number];
|
|
1258
|
+
readonly export_to_cads: (a: number, b: number) => [number, number, number, number];
|
|
1259
|
+
readonly export_to_domain: (a: number, b: number) => [number, number, number, number];
|
|
1260
|
+
readonly export_to_json_schema: (a: number, b: number) => [number, number, number, number];
|
|
1261
|
+
readonly export_to_odcs_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1262
|
+
readonly export_to_odps: (a: number, b: number) => [number, number, number, number];
|
|
1263
|
+
readonly export_to_protobuf: (a: number, b: number) => [number, number, number, number];
|
|
1264
|
+
readonly export_to_sql: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1265
|
+
readonly export_workspace_to_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1266
|
+
readonly filter_by_tags: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1267
|
+
readonly filter_nodes_by_infrastructure_type: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1268
|
+
readonly filter_nodes_by_owner: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1269
|
+
readonly filter_relationships_by_infrastructure_type: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1270
|
+
readonly filter_relationships_by_owner: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1271
|
+
readonly get_default_markdown_branding: () => [number, number, number, number];
|
|
1272
|
+
readonly get_default_pdf_branding: () => [number, number, number, number];
|
|
1273
|
+
readonly get_domain_config_id: (a: number, b: number) => [number, number, number, number];
|
|
1274
|
+
readonly get_workspace_relationships_for_source: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1275
|
+
readonly get_workspace_relationships_for_target: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1276
|
+
readonly import_from_avro: (a: number, b: number) => [number, number, number, number];
|
|
1277
|
+
readonly import_from_cads: (a: number, b: number) => [number, number, number, number];
|
|
1278
|
+
readonly import_from_domain: (a: number, b: number) => [number, number, number, number];
|
|
1279
|
+
readonly import_from_json_schema: (a: number, b: number) => [number, number, number, number];
|
|
1280
|
+
readonly import_from_odps: (a: number, b: number) => [number, number, number, number];
|
|
1281
|
+
readonly import_from_protobuf: (a: number, b: number) => [number, number, number, number];
|
|
1282
|
+
readonly import_from_sql: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1283
|
+
readonly import_openapi_spec: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1284
|
+
readonly is_odcl_format: (a: number, b: number) => number;
|
|
1285
|
+
readonly load_model: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
1286
|
+
readonly migrate_dataflow_to_domain: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1287
|
+
readonly parse_decision_index_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1288
|
+
readonly parse_decision_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1289
|
+
readonly parse_domain_config_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1290
|
+
readonly parse_knowledge_index_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1291
|
+
readonly parse_knowledge_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1292
|
+
readonly parse_odcl_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1293
|
+
readonly parse_odcs_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1294
|
+
readonly parse_tag: (a: number, b: number) => [number, number, number, number];
|
|
1295
|
+
readonly parse_workspace_yaml: (a: number, b: number) => [number, number, number, number];
|
|
1296
|
+
readonly remove_domain_from_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1297
|
+
readonly remove_entity_from_domain_config: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
|
|
1298
|
+
readonly remove_relationship_from_workspace: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1299
|
+
readonly sanitize_description: (a: number, b: number) => [number, number];
|
|
1300
|
+
readonly sanitize_sql_identifier: (a: number, b: number, c: number, d: number) => [number, number];
|
|
1301
|
+
readonly save_model: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => any;
|
|
1302
|
+
readonly search_knowledge_articles: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1303
|
+
readonly serialize_tag: (a: number, b: number) => [number, number, number, number];
|
|
1304
|
+
readonly update_domain_view_positions: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1305
|
+
readonly validate_column_name: (a: number, b: number) => [number, number, number, number];
|
|
1306
|
+
readonly validate_data_type: (a: number, b: number) => [number, number, number, number];
|
|
1307
|
+
readonly validate_description: (a: number, b: number) => [number, number, number, number];
|
|
1308
|
+
readonly validate_no_self_reference: (a: number, b: number, c: number, d: number) => [number, number, number, number];
|
|
1309
|
+
readonly validate_odps: (a: number, b: number) => [number, number];
|
|
1310
|
+
readonly validate_pattern_exclusivity: (a: number, b: number) => [number, number, number, number];
|
|
1311
|
+
readonly validate_table_name: (a: number, b: number) => [number, number, number, number];
|
|
1312
|
+
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
|
+
readonly wasm_bindgen__convert__closures_____invoke__h3aa4f50d9cb64e36: (a: number, b: number, c: any) => void;
|
|
1316
|
+
readonly wasm_bindgen__closure__destroy__he59d4bc392497fcb: (a: number, b: number) => void;
|
|
1317
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7a1f4b234d01e50d: (a: number, b: number, c: any, d: any) => void;
|
|
1318
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1319
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1320
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
1321
|
+
readonly __externref_table_alloc: () => number;
|
|
1322
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
1323
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
1324
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1325
|
+
readonly __wbindgen_start: () => void;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
1332
|
+
* a precompiled `WebAssembly.Module`.
|
|
1333
|
+
*
|
|
1334
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
1335
|
+
*
|
|
1336
|
+
* @returns {InitOutput}
|
|
1337
|
+
*/
|
|
1338
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
1342
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
1343
|
+
*
|
|
1344
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
1345
|
+
*
|
|
1346
|
+
* @returns {Promise<InitOutput>}
|
|
1347
|
+
*/
|
|
1348
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|