alizarin 0.2.1-alpha.83

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.
Files changed (57) hide show
  1. package/LICENSE.txt +661 -0
  2. package/README.md +160 -0
  3. package/dist/_wasm.d.ts +23 -0
  4. package/dist/alizarin.full.js +799 -0
  5. package/dist/alizarin.full.js.map +1 -0
  6. package/dist/alizarin.inline-full.js +4 -0
  7. package/dist/alizarin.inline.js +4 -0
  8. package/dist/alizarin.js +47 -0
  9. package/dist/alizarin.js.map +1 -0
  10. package/dist/alizarin_bg.wasm +0 -0
  11. package/dist/backend.d.ts +74 -0
  12. package/dist/cards.d.ts +21 -0
  13. package/dist/client.d.ts +86 -0
  14. package/dist/collectionMutator.d.ts +155 -0
  15. package/dist/csvModelLoader.d.ts +59 -0
  16. package/dist/full.d.ts +3 -0
  17. package/dist/graphManager.d.ts +259 -0
  18. package/dist/interfaces.d.ts +145 -0
  19. package/dist/main-r-MmUiQf.js +12355 -0
  20. package/dist/main-r-MmUiQf.js.map +1 -0
  21. package/dist/main.d.ts +28 -0
  22. package/dist/nodeConfig.d.ts +61 -0
  23. package/dist/pseudos.d.ts +118 -0
  24. package/dist/rdm.d.ts +68 -0
  25. package/dist/renderers.d.ts +65 -0
  26. package/dist/semantic.d.ts +35 -0
  27. package/dist/static-types.d.ts +172 -0
  28. package/dist/staticStore.d.ts +60 -0
  29. package/dist/tracing/index.d.ts +172 -0
  30. package/dist/utils.d.ts +43 -0
  31. package/dist/validation/index.d.ts +734 -0
  32. package/dist/validation/index.js +1194 -0
  33. package/dist/validation/index.js.map +1 -0
  34. package/dist/validation/validators/graphLoading.d.ts +69 -0
  35. package/dist/validation/validators/index.d.ts +1 -0
  36. package/dist/viewModels/BooleanViewModel.d.ts +17 -0
  37. package/dist/viewModels/ConceptListViewModel.d.ts +15 -0
  38. package/dist/viewModels/ConceptValueViewModel.d.ts +28 -0
  39. package/dist/viewModels/DateViewModel.d.ts +16 -0
  40. package/dist/viewModels/DomainValueListViewModel.d.ts +15 -0
  41. package/dist/viewModels/DomainValueViewModel.d.ts +17 -0
  42. package/dist/viewModels/EDTFViewModel.d.ts +13 -0
  43. package/dist/viewModels/GeoJSONViewModel.d.ts +26 -0
  44. package/dist/viewModels/NodeViewModel.d.ts +15 -0
  45. package/dist/viewModels/NonLocalizedStringViewModel.d.ts +13 -0
  46. package/dist/viewModels/NumberViewModel.d.ts +14 -0
  47. package/dist/viewModels/ResourceInstanceListViewModel.d.ts +25 -0
  48. package/dist/viewModels/ResourceInstanceViewModel.d.ts +62 -0
  49. package/dist/viewModels/StringViewModel.d.ts +17 -0
  50. package/dist/viewModels/UrlViewModel.d.ts +22 -0
  51. package/dist/viewModels/cacheEntries.d.ts +73 -0
  52. package/dist/viewModels/getViewModel.d.ts +4 -0
  53. package/dist/viewModels/index.d.ts +20 -0
  54. package/dist/viewModels/types.d.ts +15 -0
  55. package/dist/viewModels.d.ts +1 -0
  56. package/dist/wasmTiming.d.ts +11 -0
  57. package/package.json +93 -0
@@ -0,0 +1,734 @@
1
+ /**
2
+ * Alizarin Validation Module
3
+ *
4
+ * Provides validation utilities for Arches graph models and business data files.
5
+ * Ensures compatibility with Alizarin's loading requirements.
6
+ *
7
+ * @module validation
8
+ */
9
+ export { GraphLoadingValidator, validateGraphLoading, type ValidationResult, type ValidationResults, type ValidationSummary } from './validators/index.js';
10
+ export declare const schemas: {
11
+ graphModel: {
12
+ $schema: string;
13
+ title: string;
14
+ description: string;
15
+ type: string;
16
+ required: string[];
17
+ properties: {
18
+ graph: {
19
+ type: string;
20
+ items: {
21
+ $ref: string;
22
+ };
23
+ minItems: number;
24
+ maxItems: number;
25
+ };
26
+ };
27
+ definitions: {
28
+ uuid: {
29
+ type: string;
30
+ pattern: string;
31
+ };
32
+ multilingualString: {
33
+ type: string;
34
+ patternProperties: {
35
+ "^[a-z]{2}(-[A-Z]{2})?$": {
36
+ type: string;
37
+ };
38
+ };
39
+ additionalProperties: boolean;
40
+ minProperties: number;
41
+ };
42
+ graph: {
43
+ type: string;
44
+ required: string[];
45
+ properties: {
46
+ graphid: {
47
+ $ref: string;
48
+ };
49
+ name: {
50
+ $ref: string;
51
+ };
52
+ subtitle: {
53
+ $ref: string;
54
+ };
55
+ description: {
56
+ $ref: string;
57
+ };
58
+ author: {
59
+ type: string;
60
+ };
61
+ deploymentdate: {
62
+ type: string;
63
+ format: string;
64
+ };
65
+ version: {
66
+ type: string;
67
+ };
68
+ isresource: {
69
+ type: string;
70
+ };
71
+ iconclass: {
72
+ type: string;
73
+ };
74
+ color: {
75
+ type: string;
76
+ pattern: string;
77
+ };
78
+ ontology_id: {
79
+ oneOf: ({
80
+ type: string;
81
+ items?: undefined;
82
+ minItems?: undefined;
83
+ } | {
84
+ type: string;
85
+ items: {
86
+ type: string;
87
+ };
88
+ minItems: number;
89
+ })[];
90
+ };
91
+ template_id: {
92
+ $ref: string;
93
+ };
94
+ functions: {
95
+ type: string;
96
+ };
97
+ nodes: {
98
+ type: string;
99
+ items: {
100
+ $ref: string;
101
+ };
102
+ minItems: number;
103
+ };
104
+ nodegroups: {
105
+ type: string;
106
+ items: {
107
+ $ref: string;
108
+ };
109
+ minItems: number;
110
+ };
111
+ edges: {
112
+ type: string;
113
+ items: {
114
+ $ref: string;
115
+ };
116
+ };
117
+ cards: {
118
+ type: string;
119
+ items: {
120
+ $ref: string;
121
+ };
122
+ };
123
+ cards_x_nodes_x_widgets: {
124
+ type: string;
125
+ };
126
+ relatable_resource_model_ids: {
127
+ type: string;
128
+ };
129
+ resource_2_resource_constraints: {
130
+ type: string;
131
+ };
132
+ functions_x_graphs: {
133
+ type: string;
134
+ };
135
+ publication: {
136
+ type: string[];
137
+ };
138
+ };
139
+ };
140
+ node: {
141
+ type: string;
142
+ required: string[];
143
+ properties: {
144
+ nodeid: {
145
+ $ref: string;
146
+ };
147
+ name: {
148
+ type: string;
149
+ };
150
+ description: {
151
+ type: string;
152
+ };
153
+ datatype: {
154
+ type: string;
155
+ enum: string[];
156
+ };
157
+ istopnode: {
158
+ type: string;
159
+ };
160
+ nodegroup_id: {
161
+ oneOf: ({
162
+ $ref: string;
163
+ type?: undefined;
164
+ } | {
165
+ type: string;
166
+ $ref?: undefined;
167
+ })[];
168
+ };
169
+ config: {
170
+ type: string;
171
+ };
172
+ graph_id: {
173
+ $ref: string;
174
+ };
175
+ sortorder: {
176
+ type: string;
177
+ };
178
+ fieldname: {
179
+ type: string[];
180
+ };
181
+ exportable: {
182
+ type: string;
183
+ };
184
+ isrequired: {
185
+ type: string;
186
+ };
187
+ issearchable: {
188
+ type: string;
189
+ };
190
+ is_collector: {
191
+ type: string;
192
+ };
193
+ hascustomalias: {
194
+ type: string;
195
+ };
196
+ ontologyclass: {
197
+ oneOf: ({
198
+ type: string;
199
+ items?: undefined;
200
+ minItems?: undefined;
201
+ } | {
202
+ type: string;
203
+ items: {
204
+ type: string;
205
+ };
206
+ minItems: number;
207
+ })[];
208
+ };
209
+ alias: {
210
+ type: string[];
211
+ };
212
+ parentproperty: {
213
+ type: string[];
214
+ };
215
+ sourcebranchpublication_id: {
216
+ type: string[];
217
+ };
218
+ };
219
+ if: {
220
+ properties: {
221
+ istopnode: {
222
+ const: boolean;
223
+ };
224
+ };
225
+ };
226
+ then: {
227
+ properties: {
228
+ nodegroup_id: {
229
+ type: string;
230
+ };
231
+ };
232
+ required: string[];
233
+ };
234
+ else: {
235
+ properties: {
236
+ nodegroup_id: {
237
+ $ref: string;
238
+ };
239
+ };
240
+ required: string[];
241
+ };
242
+ };
243
+ nodegroup: {
244
+ type: string;
245
+ required: string[];
246
+ properties: {
247
+ nodegroupid: {
248
+ $ref: string;
249
+ };
250
+ cardinality: {
251
+ type: string[];
252
+ enum: string[];
253
+ };
254
+ parentnodegroup_id: {
255
+ oneOf: ({
256
+ $ref: string;
257
+ type?: undefined;
258
+ } | {
259
+ type: string;
260
+ $ref?: undefined;
261
+ })[];
262
+ };
263
+ legacygroupid: {
264
+ type: string[];
265
+ };
266
+ name: {
267
+ type: string;
268
+ };
269
+ sortorder: {
270
+ type: string;
271
+ };
272
+ };
273
+ };
274
+ edge: {
275
+ type: string;
276
+ required: string[];
277
+ properties: {
278
+ edgeid: {
279
+ $ref: string;
280
+ };
281
+ graph_id: {
282
+ $ref: string;
283
+ };
284
+ domainnode_id: {
285
+ $ref: string;
286
+ };
287
+ rangenode_id: {
288
+ $ref: string;
289
+ };
290
+ name: {
291
+ type: string[];
292
+ };
293
+ description: {
294
+ type: string[];
295
+ };
296
+ ontologyproperty: {
297
+ type: string[];
298
+ };
299
+ sortorder: {
300
+ type: string;
301
+ };
302
+ };
303
+ };
304
+ card: {
305
+ type: string;
306
+ required: string[];
307
+ properties: {
308
+ cardid: {
309
+ $ref: string;
310
+ };
311
+ nodegroup_id: {
312
+ $ref: string;
313
+ };
314
+ graph_id: {
315
+ $ref: string;
316
+ };
317
+ name: {
318
+ $ref: string;
319
+ };
320
+ description: {
321
+ type: string;
322
+ };
323
+ instructions: {
324
+ $ref: string;
325
+ };
326
+ helptext: {
327
+ $ref: string;
328
+ };
329
+ helptitle: {
330
+ $ref: string;
331
+ };
332
+ active: {
333
+ type: string;
334
+ };
335
+ visible: {
336
+ type: string;
337
+ };
338
+ sortorder: {
339
+ type: string;
340
+ };
341
+ helpenabled: {
342
+ type: string;
343
+ };
344
+ cssclass: {
345
+ type: string;
346
+ };
347
+ is_editable: {
348
+ type: string;
349
+ };
350
+ config: {
351
+ type: string[];
352
+ };
353
+ constraints: {
354
+ type: string;
355
+ };
356
+ };
357
+ };
358
+ };
359
+ allOf: ({
360
+ description: string;
361
+ if: {
362
+ properties: {
363
+ graph: {
364
+ type: string;
365
+ items: {
366
+ properties: {
367
+ nodes: {
368
+ type: string;
369
+ contains: {
370
+ properties: {
371
+ istopnode: {
372
+ const: boolean;
373
+ };
374
+ };
375
+ };
376
+ };
377
+ };
378
+ };
379
+ };
380
+ };
381
+ };
382
+ then: {
383
+ properties: {
384
+ graph: {
385
+ items: {
386
+ properties: {
387
+ nodes: {
388
+ items: {
389
+ if: {
390
+ properties: {
391
+ istopnode: {
392
+ const: boolean;
393
+ };
394
+ };
395
+ };
396
+ then: {
397
+ properties: {
398
+ nodegroup_id: {
399
+ type: string;
400
+ };
401
+ };
402
+ required: string[];
403
+ };
404
+ };
405
+ };
406
+ };
407
+ };
408
+ };
409
+ };
410
+ };
411
+ properties?: undefined;
412
+ additionalProperties?: undefined;
413
+ } | {
414
+ description: string;
415
+ properties: {
416
+ graph: {
417
+ items: {
418
+ type: string;
419
+ properties: {
420
+ nodes: {
421
+ type: string;
422
+ items: {
423
+ type: string;
424
+ properties: {
425
+ nodegroup_id: {
426
+ oneOf: ({
427
+ $ref: string;
428
+ type?: undefined;
429
+ } | {
430
+ type: string;
431
+ $ref?: undefined;
432
+ })[];
433
+ };
434
+ istopnode: {
435
+ type: string;
436
+ };
437
+ };
438
+ };
439
+ };
440
+ nodegroups: {
441
+ type: string;
442
+ items: {
443
+ type: string;
444
+ properties: {
445
+ nodegroupid: {
446
+ $ref: string;
447
+ };
448
+ };
449
+ };
450
+ };
451
+ };
452
+ };
453
+ };
454
+ };
455
+ additionalProperties: boolean;
456
+ if?: undefined;
457
+ then?: undefined;
458
+ })[];
459
+ };
460
+ businessData: {
461
+ $schema: string;
462
+ title: string;
463
+ description: string;
464
+ type: string;
465
+ required: string[];
466
+ properties: {
467
+ business_data: {
468
+ $ref: string;
469
+ };
470
+ };
471
+ definitions: {
472
+ uuid: {
473
+ type: string;
474
+ pattern: string;
475
+ };
476
+ businessData: {
477
+ type: string;
478
+ required: string[];
479
+ properties: {
480
+ resources: {
481
+ type: string;
482
+ items: {
483
+ $ref: string;
484
+ };
485
+ minItems: number;
486
+ };
487
+ };
488
+ };
489
+ resource: {
490
+ type: string;
491
+ required: string[];
492
+ properties: {
493
+ resourceid: {
494
+ $ref: string;
495
+ };
496
+ graph_id: {
497
+ $ref: string;
498
+ };
499
+ legacyid: {
500
+ type: string[];
501
+ };
502
+ tiles: {
503
+ type: string;
504
+ items: {
505
+ $ref: string;
506
+ };
507
+ minItems: number;
508
+ };
509
+ resourceinstance: {
510
+ $ref: string;
511
+ };
512
+ };
513
+ };
514
+ resourceInstance: {
515
+ type: string;
516
+ required: string[];
517
+ properties: {
518
+ resourceinstanceid: {
519
+ $ref: string;
520
+ };
521
+ graph_id: {
522
+ $ref: string;
523
+ };
524
+ legacyid: {
525
+ type: string;
526
+ minLength: number;
527
+ description: string;
528
+ };
529
+ createdtime: {
530
+ type: string;
531
+ format: string;
532
+ };
533
+ name: {
534
+ type: string;
535
+ minLength: number;
536
+ description: string;
537
+ };
538
+ displayname: {
539
+ type: string;
540
+ minLength: number;
541
+ description: string;
542
+ };
543
+ map_popup: {
544
+ type: string;
545
+ description: string;
546
+ };
547
+ provisional: {
548
+ type: string;
549
+ enum: string[];
550
+ };
551
+ descriptors: {
552
+ type: string;
553
+ required: string[];
554
+ properties: {
555
+ name: {
556
+ type: string;
557
+ minLength: number;
558
+ };
559
+ description: {
560
+ type: string;
561
+ minLength: number;
562
+ };
563
+ map_popup: {
564
+ type: string;
565
+ minLength: number;
566
+ };
567
+ displayname: {
568
+ type: string;
569
+ minLength: number;
570
+ };
571
+ };
572
+ additionalProperties: boolean;
573
+ description: string;
574
+ };
575
+ graph_publication_id: {
576
+ $ref: string;
577
+ };
578
+ publication_id: {
579
+ $ref: string;
580
+ };
581
+ };
582
+ };
583
+ tile: {
584
+ type: string;
585
+ required: string[];
586
+ properties: {
587
+ tileid: {
588
+ $ref: string;
589
+ };
590
+ nodegroup_id: {
591
+ $ref: string;
592
+ };
593
+ parenttile_id: {
594
+ oneOf: ({
595
+ $ref: string;
596
+ type?: undefined;
597
+ } | {
598
+ type: string;
599
+ $ref?: undefined;
600
+ })[];
601
+ };
602
+ resourceid: {
603
+ oneOf: ({
604
+ $ref: string;
605
+ type?: undefined;
606
+ } | {
607
+ type: string;
608
+ $ref?: undefined;
609
+ })[];
610
+ };
611
+ sortorder: {
612
+ type: string;
613
+ };
614
+ tiles: {
615
+ type: string;
616
+ items: {
617
+ $ref: string;
618
+ };
619
+ };
620
+ provisionaledits: {
621
+ type: string[];
622
+ };
623
+ data: {
624
+ type: string;
625
+ patternProperties: {
626
+ "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$": {
627
+ oneOf: ({
628
+ type: string;
629
+ properties?: undefined;
630
+ } | {
631
+ type: string;
632
+ properties: {
633
+ en: {
634
+ type: string;
635
+ required: string[];
636
+ properties: {
637
+ value: {
638
+ type: string;
639
+ };
640
+ direction: {
641
+ type: string;
642
+ enum: string[];
643
+ };
644
+ };
645
+ };
646
+ };
647
+ })[];
648
+ };
649
+ };
650
+ additionalProperties: boolean;
651
+ minProperties: number;
652
+ };
653
+ };
654
+ };
655
+ };
656
+ };
657
+ graphsRegistry: {
658
+ $schema: string;
659
+ title: string;
660
+ description: string;
661
+ type: string;
662
+ required: string[];
663
+ properties: {
664
+ models: {
665
+ type: string;
666
+ patternProperties: {
667
+ "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$": {
668
+ $ref: string;
669
+ };
670
+ };
671
+ additionalProperties: boolean;
672
+ minProperties: number;
673
+ };
674
+ };
675
+ definitions: {
676
+ uuid: {
677
+ type: string;
678
+ pattern: string;
679
+ };
680
+ multilingualString: {
681
+ type: string;
682
+ patternProperties: {
683
+ "^[a-z]{2}(-[A-Z]{2})?$": {
684
+ type: string;
685
+ };
686
+ };
687
+ additionalProperties: boolean;
688
+ minProperties: number;
689
+ };
690
+ modelReference: {
691
+ type: string;
692
+ required: string[];
693
+ properties: {
694
+ id: {
695
+ $ref: string;
696
+ };
697
+ name: {
698
+ $ref: string;
699
+ };
700
+ slug: {
701
+ type: string;
702
+ pattern: string;
703
+ minLength: number;
704
+ };
705
+ subtitle: {
706
+ $ref: string;
707
+ };
708
+ color: {
709
+ type: string;
710
+ pattern: string;
711
+ };
712
+ iconclass: {
713
+ type: string;
714
+ pattern: string;
715
+ };
716
+ };
717
+ };
718
+ };
719
+ };
720
+ };
721
+ /**
722
+ * Quick validation function for common use cases
723
+ *
724
+ * @example
725
+ * ```typescript
726
+ * import { quickValidate } from 'alizarin/validation';
727
+ *
728
+ * const result = quickValidate('./data');
729
+ * if (result.success) {
730
+ * console.log('All files are valid!');
731
+ * }
732
+ * ```
733
+ */
734
+ export { validateGraphLoading as quickValidate } from './validators/index.js';