@pattern-stack/codegen 0.20.2 → 0.21.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/CHANGELOG.md +48 -0
- package/dist/{chunk-3VEVGL74.js → chunk-3A34R6CI.js} +4 -4
- package/dist/{chunk-KK5A7B2T.js → chunk-524YKITE.js} +134 -20
- package/dist/chunk-524YKITE.js.map +1 -0
- package/dist/{chunk-VDL5CJ5C.js → chunk-6CJRZHV4.js} +4 -4
- package/dist/{chunk-COGHTKXY.js → chunk-7625PLY7.js} +4 -4
- package/dist/{chunk-QMN3LQR3.js → chunk-EEJC66ZF.js} +9 -9
- package/dist/{chunk-NR7QQ6ZI.js → chunk-G3IKPDTP.js} +2 -2
- package/dist/{chunk-BKP72EDW.js → chunk-GMRTI7AK.js} +12 -12
- package/dist/{chunk-E5FJWOMP.js → chunk-GV337QP3.js} +7 -7
- package/dist/{chunk-D44QFQJZ.js → chunk-MBFSG4KQ.js} +3 -3
- package/dist/{chunk-JGGZUP64.js → chunk-NXHL5YII.js} +7 -7
- package/dist/{chunk-E6PLM6QG.js → chunk-TKU6VYG3.js} +6 -6
- package/dist/{chunk-MVKW2BCR.js → chunk-YULGWXCY.js} +4 -4
- package/dist/{chunk-DB5UXJC3.js → chunk-YXI7K4MJ.js} +4 -4
- package/dist/runtime/base-classes/index.js +22 -22
- package/dist/runtime/shared/openapi/index.js +3 -3
- package/dist/runtime/subsystems/auth/auth.module.js +3 -3
- package/dist/runtime/subsystems/auth/index.js +15 -15
- package/dist/runtime/subsystems/bridge/bridge-delivery.drizzle-backend.js +3 -3
- package/dist/runtime/subsystems/bridge/bridge-outbox-drain-hook.js +4 -4
- package/dist/runtime/subsystems/bridge/bridge.module.js +15 -15
- package/dist/runtime/subsystems/bridge/index.js +24 -24
- package/dist/runtime/subsystems/cache/cache.module.js +2 -2
- package/dist/runtime/subsystems/cache/index.js +4 -4
- package/dist/runtime/subsystems/events/event-bus.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/events/events.module.js +3 -3
- package/dist/runtime/subsystems/events/index.js +5 -5
- package/dist/runtime/subsystems/index.js +85 -85
- package/dist/runtime/subsystems/jobs/index.js +27 -27
- package/dist/runtime/subsystems/jobs/job-orchestrator.bullmq-backend.js +5 -5
- package/dist/runtime/subsystems/jobs/job-orchestrator.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.js +2 -2
- package/dist/runtime/subsystems/jobs/job-worker.bullmq-backend.js +3 -3
- package/dist/runtime/subsystems/jobs/job-worker.js +2 -2
- package/dist/runtime/subsystems/jobs/job-worker.module.js +9 -9
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js +7 -7
- package/dist/runtime/subsystems/storage/index.js +1 -1
- package/dist/runtime/subsystems/storage/storage.module.js +1 -1
- package/dist/src/cli/index.js +80 -76
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.d.ts +111 -1
- package/dist/src/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-KK5A7B2T.js.map +0 -1
- /package/dist/{chunk-3VEVGL74.js.map → chunk-3A34R6CI.js.map} +0 -0
- /package/dist/{chunk-VDL5CJ5C.js.map → chunk-6CJRZHV4.js.map} +0 -0
- /package/dist/{chunk-COGHTKXY.js.map → chunk-7625PLY7.js.map} +0 -0
- /package/dist/{chunk-QMN3LQR3.js.map → chunk-EEJC66ZF.js.map} +0 -0
- /package/dist/{chunk-NR7QQ6ZI.js.map → chunk-G3IKPDTP.js.map} +0 -0
- /package/dist/{chunk-BKP72EDW.js.map → chunk-GMRTI7AK.js.map} +0 -0
- /package/dist/{chunk-E5FJWOMP.js.map → chunk-GV337QP3.js.map} +0 -0
- /package/dist/{chunk-D44QFQJZ.js.map → chunk-MBFSG4KQ.js.map} +0 -0
- /package/dist/{chunk-JGGZUP64.js.map → chunk-NXHL5YII.js.map} +0 -0
- /package/dist/{chunk-E6PLM6QG.js.map → chunk-TKU6VYG3.js.map} +0 -0
- /package/dist/{chunk-MVKW2BCR.js.map → chunk-YULGWXCY.js.map} +0 -0
- /package/dist/{chunk-DB5UXJC3.js.map → chunk-YXI7K4MJ.js.map} +0 -0
package/dist/src/index.d.ts
CHANGED
|
@@ -32,6 +32,13 @@ interface ParsedField {
|
|
|
32
32
|
sortable?: boolean;
|
|
33
33
|
filterable?: boolean;
|
|
34
34
|
visible?: boolean;
|
|
35
|
+
placeholder?: string;
|
|
36
|
+
help?: string;
|
|
37
|
+
format?: Record<string, unknown>;
|
|
38
|
+
/** Curated/displayed field (qField `isKeyField` parity, ADR-040). */
|
|
39
|
+
keyField?: boolean;
|
|
40
|
+
/** Sort position within the key-field set (qField `keyFieldOrder`). */
|
|
41
|
+
keyFieldOrder?: number;
|
|
35
42
|
};
|
|
36
43
|
}
|
|
37
44
|
interface ParsedRelationship {
|
|
@@ -379,6 +386,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
379
386
|
ui_placeholder: z.ZodOptional<z.ZodString>;
|
|
380
387
|
ui_help: z.ZodOptional<z.ZodString>;
|
|
381
388
|
ui_format: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
389
|
+
ui_key_field: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
+
ui_key_field_order: z.ZodOptional<z.ZodNumber>;
|
|
382
391
|
} & {
|
|
383
392
|
measure: z.ZodOptional<z.ZodBoolean>;
|
|
384
393
|
analytics_aggregation: z.ZodOptional<z.ZodEnum<["sum", "min", "max", "count", "count_distinct", "average", "median", "percentile", "sum_boolean"]>>;
|
|
@@ -442,6 +451,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
442
451
|
ui_placeholder?: string | undefined;
|
|
443
452
|
ui_help?: string | undefined;
|
|
444
453
|
ui_format?: Record<string, unknown> | undefined;
|
|
454
|
+
ui_key_field?: boolean | undefined;
|
|
455
|
+
ui_key_field_order?: number | undefined;
|
|
445
456
|
max_length?: number | undefined;
|
|
446
457
|
min_length?: number | undefined;
|
|
447
458
|
choices?: string[] | undefined;
|
|
@@ -485,6 +496,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
485
496
|
ui_placeholder?: string | undefined;
|
|
486
497
|
ui_help?: string | undefined;
|
|
487
498
|
ui_format?: Record<string, unknown> | undefined;
|
|
499
|
+
ui_key_field?: boolean | undefined;
|
|
500
|
+
ui_key_field_order?: number | undefined;
|
|
488
501
|
max_length?: number | undefined;
|
|
489
502
|
min_length?: number | undefined;
|
|
490
503
|
choices?: string[] | undefined;
|
|
@@ -528,6 +541,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
528
541
|
ui_placeholder?: string | undefined;
|
|
529
542
|
ui_help?: string | undefined;
|
|
530
543
|
ui_format?: Record<string, unknown> | undefined;
|
|
544
|
+
ui_key_field?: boolean | undefined;
|
|
545
|
+
ui_key_field_order?: number | undefined;
|
|
531
546
|
max_length?: number | undefined;
|
|
532
547
|
min_length?: number | undefined;
|
|
533
548
|
choices?: string[] | undefined;
|
|
@@ -571,6 +586,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
571
586
|
ui_placeholder?: string | undefined;
|
|
572
587
|
ui_help?: string | undefined;
|
|
573
588
|
ui_format?: Record<string, unknown> | undefined;
|
|
589
|
+
ui_key_field?: boolean | undefined;
|
|
590
|
+
ui_key_field_order?: number | undefined;
|
|
574
591
|
max_length?: number | undefined;
|
|
575
592
|
min_length?: number | undefined;
|
|
576
593
|
choices?: string[] | undefined;
|
|
@@ -614,6 +631,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
614
631
|
ui_placeholder?: string | undefined;
|
|
615
632
|
ui_help?: string | undefined;
|
|
616
633
|
ui_format?: Record<string, unknown> | undefined;
|
|
634
|
+
ui_key_field?: boolean | undefined;
|
|
635
|
+
ui_key_field_order?: number | undefined;
|
|
617
636
|
max_length?: number | undefined;
|
|
618
637
|
min_length?: number | undefined;
|
|
619
638
|
choices?: string[] | undefined;
|
|
@@ -657,6 +676,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
657
676
|
ui_placeholder?: string | undefined;
|
|
658
677
|
ui_help?: string | undefined;
|
|
659
678
|
ui_format?: Record<string, unknown> | undefined;
|
|
679
|
+
ui_key_field?: boolean | undefined;
|
|
680
|
+
ui_key_field_order?: number | undefined;
|
|
660
681
|
max_length?: number | undefined;
|
|
661
682
|
min_length?: number | undefined;
|
|
662
683
|
choices?: string[] | undefined;
|
|
@@ -700,6 +721,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
700
721
|
ui_placeholder?: string | undefined;
|
|
701
722
|
ui_help?: string | undefined;
|
|
702
723
|
ui_format?: Record<string, unknown> | undefined;
|
|
724
|
+
ui_key_field?: boolean | undefined;
|
|
725
|
+
ui_key_field_order?: number | undefined;
|
|
703
726
|
max_length?: number | undefined;
|
|
704
727
|
min_length?: number | undefined;
|
|
705
728
|
choices?: string[] | undefined;
|
|
@@ -743,6 +766,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
743
766
|
ui_placeholder?: string | undefined;
|
|
744
767
|
ui_help?: string | undefined;
|
|
745
768
|
ui_format?: Record<string, unknown> | undefined;
|
|
769
|
+
ui_key_field?: boolean | undefined;
|
|
770
|
+
ui_key_field_order?: number | undefined;
|
|
746
771
|
max_length?: number | undefined;
|
|
747
772
|
min_length?: number | undefined;
|
|
748
773
|
choices?: string[] | undefined;
|
|
@@ -786,6 +811,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
786
811
|
ui_placeholder?: string | undefined;
|
|
787
812
|
ui_help?: string | undefined;
|
|
788
813
|
ui_format?: Record<string, unknown> | undefined;
|
|
814
|
+
ui_key_field?: boolean | undefined;
|
|
815
|
+
ui_key_field_order?: number | undefined;
|
|
789
816
|
max_length?: number | undefined;
|
|
790
817
|
min_length?: number | undefined;
|
|
791
818
|
choices?: string[] | undefined;
|
|
@@ -829,6 +856,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
829
856
|
ui_placeholder?: string | undefined;
|
|
830
857
|
ui_help?: string | undefined;
|
|
831
858
|
ui_format?: Record<string, unknown> | undefined;
|
|
859
|
+
ui_key_field?: boolean | undefined;
|
|
860
|
+
ui_key_field_order?: number | undefined;
|
|
832
861
|
max_length?: number | undefined;
|
|
833
862
|
min_length?: number | undefined;
|
|
834
863
|
choices?: string[] | undefined;
|
|
@@ -872,6 +901,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
872
901
|
ui_placeholder?: string | undefined;
|
|
873
902
|
ui_help?: string | undefined;
|
|
874
903
|
ui_format?: Record<string, unknown> | undefined;
|
|
904
|
+
ui_key_field?: boolean | undefined;
|
|
905
|
+
ui_key_field_order?: number | undefined;
|
|
875
906
|
max_length?: number | undefined;
|
|
876
907
|
min_length?: number | undefined;
|
|
877
908
|
choices?: string[] | undefined;
|
|
@@ -915,6 +946,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
915
946
|
ui_placeholder?: string | undefined;
|
|
916
947
|
ui_help?: string | undefined;
|
|
917
948
|
ui_format?: Record<string, unknown> | undefined;
|
|
949
|
+
ui_key_field?: boolean | undefined;
|
|
950
|
+
ui_key_field_order?: number | undefined;
|
|
918
951
|
max_length?: number | undefined;
|
|
919
952
|
min_length?: number | undefined;
|
|
920
953
|
choices?: string[] | undefined;
|
|
@@ -958,6 +991,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
958
991
|
ui_placeholder?: string | undefined;
|
|
959
992
|
ui_help?: string | undefined;
|
|
960
993
|
ui_format?: Record<string, unknown> | undefined;
|
|
994
|
+
ui_key_field?: boolean | undefined;
|
|
995
|
+
ui_key_field_order?: number | undefined;
|
|
961
996
|
max_length?: number | undefined;
|
|
962
997
|
min_length?: number | undefined;
|
|
963
998
|
choices?: string[] | undefined;
|
|
@@ -1001,6 +1036,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1001
1036
|
ui_placeholder?: string | undefined;
|
|
1002
1037
|
ui_help?: string | undefined;
|
|
1003
1038
|
ui_format?: Record<string, unknown> | undefined;
|
|
1039
|
+
ui_key_field?: boolean | undefined;
|
|
1040
|
+
ui_key_field_order?: number | undefined;
|
|
1004
1041
|
max_length?: number | undefined;
|
|
1005
1042
|
min_length?: number | undefined;
|
|
1006
1043
|
choices?: string[] | undefined;
|
|
@@ -1044,6 +1081,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1044
1081
|
ui_placeholder?: string | undefined;
|
|
1045
1082
|
ui_help?: string | undefined;
|
|
1046
1083
|
ui_format?: Record<string, unknown> | undefined;
|
|
1084
|
+
ui_key_field?: boolean | undefined;
|
|
1085
|
+
ui_key_field_order?: number | undefined;
|
|
1047
1086
|
max_length?: number | undefined;
|
|
1048
1087
|
min_length?: number | undefined;
|
|
1049
1088
|
choices?: string[] | undefined;
|
|
@@ -1087,6 +1126,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1087
1126
|
ui_placeholder?: string | undefined;
|
|
1088
1127
|
ui_help?: string | undefined;
|
|
1089
1128
|
ui_format?: Record<string, unknown> | undefined;
|
|
1129
|
+
ui_key_field?: boolean | undefined;
|
|
1130
|
+
ui_key_field_order?: number | undefined;
|
|
1090
1131
|
max_length?: number | undefined;
|
|
1091
1132
|
min_length?: number | undefined;
|
|
1092
1133
|
choices?: string[] | undefined;
|
|
@@ -1130,6 +1171,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1130
1171
|
ui_placeholder?: string | undefined;
|
|
1131
1172
|
ui_help?: string | undefined;
|
|
1132
1173
|
ui_format?: Record<string, unknown> | undefined;
|
|
1174
|
+
ui_key_field?: boolean | undefined;
|
|
1175
|
+
ui_key_field_order?: number | undefined;
|
|
1133
1176
|
max_length?: number | undefined;
|
|
1134
1177
|
min_length?: number | undefined;
|
|
1135
1178
|
choices?: string[] | undefined;
|
|
@@ -1173,6 +1216,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1173
1216
|
ui_placeholder?: string | undefined;
|
|
1174
1217
|
ui_help?: string | undefined;
|
|
1175
1218
|
ui_format?: Record<string, unknown> | undefined;
|
|
1219
|
+
ui_key_field?: boolean | undefined;
|
|
1220
|
+
ui_key_field_order?: number | undefined;
|
|
1176
1221
|
max_length?: number | undefined;
|
|
1177
1222
|
min_length?: number | undefined;
|
|
1178
1223
|
choices?: string[] | undefined;
|
|
@@ -1216,6 +1261,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1216
1261
|
ui_placeholder?: string | undefined;
|
|
1217
1262
|
ui_help?: string | undefined;
|
|
1218
1263
|
ui_format?: Record<string, unknown> | undefined;
|
|
1264
|
+
ui_key_field?: boolean | undefined;
|
|
1265
|
+
ui_key_field_order?: number | undefined;
|
|
1219
1266
|
max_length?: number | undefined;
|
|
1220
1267
|
min_length?: number | undefined;
|
|
1221
1268
|
choices?: string[] | undefined;
|
|
@@ -1259,6 +1306,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1259
1306
|
ui_placeholder?: string | undefined;
|
|
1260
1307
|
ui_help?: string | undefined;
|
|
1261
1308
|
ui_format?: Record<string, unknown> | undefined;
|
|
1309
|
+
ui_key_field?: boolean | undefined;
|
|
1310
|
+
ui_key_field_order?: number | undefined;
|
|
1262
1311
|
max_length?: number | undefined;
|
|
1263
1312
|
min_length?: number | undefined;
|
|
1264
1313
|
choices?: string[] | undefined;
|
|
@@ -1302,6 +1351,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1302
1351
|
ui_placeholder?: string | undefined;
|
|
1303
1352
|
ui_help?: string | undefined;
|
|
1304
1353
|
ui_format?: Record<string, unknown> | undefined;
|
|
1354
|
+
ui_key_field?: boolean | undefined;
|
|
1355
|
+
ui_key_field_order?: number | undefined;
|
|
1305
1356
|
max_length?: number | undefined;
|
|
1306
1357
|
min_length?: number | undefined;
|
|
1307
1358
|
choices?: string[] | undefined;
|
|
@@ -1345,6 +1396,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
1345
1396
|
ui_placeholder?: string | undefined;
|
|
1346
1397
|
ui_help?: string | undefined;
|
|
1347
1398
|
ui_format?: Record<string, unknown> | undefined;
|
|
1399
|
+
ui_key_field?: boolean | undefined;
|
|
1400
|
+
ui_key_field_order?: number | undefined;
|
|
1348
1401
|
max_length?: number | undefined;
|
|
1349
1402
|
min_length?: number | undefined;
|
|
1350
1403
|
choices?: string[] | undefined;
|
|
@@ -2066,6 +2119,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2066
2119
|
ui_placeholder?: string | undefined;
|
|
2067
2120
|
ui_help?: string | undefined;
|
|
2068
2121
|
ui_format?: Record<string, unknown> | undefined;
|
|
2122
|
+
ui_key_field?: boolean | undefined;
|
|
2123
|
+
ui_key_field_order?: number | undefined;
|
|
2069
2124
|
max_length?: number | undefined;
|
|
2070
2125
|
min_length?: number | undefined;
|
|
2071
2126
|
choices?: string[] | undefined;
|
|
@@ -2277,6 +2332,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2277
2332
|
ui_placeholder?: string | undefined;
|
|
2278
2333
|
ui_help?: string | undefined;
|
|
2279
2334
|
ui_format?: Record<string, unknown> | undefined;
|
|
2335
|
+
ui_key_field?: boolean | undefined;
|
|
2336
|
+
ui_key_field_order?: number | undefined;
|
|
2280
2337
|
max_length?: number | undefined;
|
|
2281
2338
|
min_length?: number | undefined;
|
|
2282
2339
|
choices?: string[] | undefined;
|
|
@@ -2488,6 +2545,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2488
2545
|
ui_placeholder?: string | undefined;
|
|
2489
2546
|
ui_help?: string | undefined;
|
|
2490
2547
|
ui_format?: Record<string, unknown> | undefined;
|
|
2548
|
+
ui_key_field?: boolean | undefined;
|
|
2549
|
+
ui_key_field_order?: number | undefined;
|
|
2491
2550
|
max_length?: number | undefined;
|
|
2492
2551
|
min_length?: number | undefined;
|
|
2493
2552
|
choices?: string[] | undefined;
|
|
@@ -2699,6 +2758,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2699
2758
|
ui_placeholder?: string | undefined;
|
|
2700
2759
|
ui_help?: string | undefined;
|
|
2701
2760
|
ui_format?: Record<string, unknown> | undefined;
|
|
2761
|
+
ui_key_field?: boolean | undefined;
|
|
2762
|
+
ui_key_field_order?: number | undefined;
|
|
2702
2763
|
max_length?: number | undefined;
|
|
2703
2764
|
min_length?: number | undefined;
|
|
2704
2765
|
choices?: string[] | undefined;
|
|
@@ -2910,6 +2971,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
2910
2971
|
ui_placeholder?: string | undefined;
|
|
2911
2972
|
ui_help?: string | undefined;
|
|
2912
2973
|
ui_format?: Record<string, unknown> | undefined;
|
|
2974
|
+
ui_key_field?: boolean | undefined;
|
|
2975
|
+
ui_key_field_order?: number | undefined;
|
|
2913
2976
|
max_length?: number | undefined;
|
|
2914
2977
|
min_length?: number | undefined;
|
|
2915
2978
|
choices?: string[] | undefined;
|
|
@@ -3121,6 +3184,8 @@ declare const EntityDefinitionSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
3121
3184
|
ui_placeholder?: string | undefined;
|
|
3122
3185
|
ui_help?: string | undefined;
|
|
3123
3186
|
ui_format?: Record<string, unknown> | undefined;
|
|
3187
|
+
ui_key_field?: boolean | undefined;
|
|
3188
|
+
ui_key_field_order?: number | undefined;
|
|
3124
3189
|
max_length?: number | undefined;
|
|
3125
3190
|
min_length?: number | undefined;
|
|
3126
3191
|
choices?: string[] | undefined;
|
|
@@ -4469,6 +4534,51 @@ interface OrchestrationProjectContext {
|
|
|
4469
4534
|
}
|
|
4470
4535
|
declare function validateOrchestrationProject(ctx: OrchestrationProjectContext): AnalysisIssue[];
|
|
4471
4536
|
|
|
4537
|
+
/**
|
|
4538
|
+
* Frontend emitter — field UI-metadata derivation (ADR-038, FE-3).
|
|
4539
|
+
*
|
|
4540
|
+
* Ports the UI-inference helpers from the deleted `templates/entity/new/prompt.js`
|
|
4541
|
+
* (`inferUiType`, `inferUiImportance`, `formatLabel`, the entity_ref skip rules,
|
|
4542
|
+
* the choices/FK handling) into pure functions over `ParsedField`. The fields
|
|
4543
|
+
* emitter (`emit-fields.ts`) consumes these to build the `FieldMeta` objects the
|
|
4544
|
+
* old `fields.ejs.t` template emitted — same output contract.
|
|
4545
|
+
*
|
|
4546
|
+
* Naming for FK `reference` and belongs_to rows comes from the registry, never
|
|
4547
|
+
* re-pluralized here (the one place pts/prompt.js diverged; FE-1/FE-3 unify on
|
|
4548
|
+
* the registry).
|
|
4549
|
+
*/
|
|
4550
|
+
|
|
4551
|
+
/**
|
|
4552
|
+
* The EAV `field_definitions.data_type` vocabulary → frontend `FieldType`
|
|
4553
|
+
* rendering contract. This is the rallying point for external-system field
|
|
4554
|
+
* types: an EAV row's `data_type` maps through this table to the same
|
|
4555
|
+
* rendering vocabulary native columns use, so one renderer serves both.
|
|
4556
|
+
*
|
|
4557
|
+
* Notes:
|
|
4558
|
+
* - `picklist` AND `multipicklist` both map to `enum` — multi-select rendering
|
|
4559
|
+
* is a consumer-side concern (the renderer checks the EAV row's cardinality,
|
|
4560
|
+
* not the FieldType).
|
|
4561
|
+
* - `string` maps to `text`; EAV has no textarea heuristic (no `max_length`).
|
|
4562
|
+
*
|
|
4563
|
+
* The same constant is emitted into the generated `fields/field-meta.ts` (see
|
|
4564
|
+
* `buildFieldMetaTypeFile`) so consumer apps get it locally, rendered from
|
|
4565
|
+
* THIS object — the two cannot drift.
|
|
4566
|
+
*/
|
|
4567
|
+
declare const EAV_DATA_TYPE_TO_FIELD_TYPE: {
|
|
4568
|
+
readonly string: "text";
|
|
4569
|
+
readonly integer: "number";
|
|
4570
|
+
readonly decimal: "number";
|
|
4571
|
+
readonly boolean: "boolean";
|
|
4572
|
+
readonly date: "date";
|
|
4573
|
+
readonly datetime: "datetime";
|
|
4574
|
+
readonly json: "json";
|
|
4575
|
+
readonly reference: "reference";
|
|
4576
|
+
readonly picklist: "enum";
|
|
4577
|
+
readonly multipicklist: "enum";
|
|
4578
|
+
};
|
|
4579
|
+
/** The EAV `field_definitions.data_type` vocabulary. */
|
|
4580
|
+
type EavDataType = keyof typeof EAV_DATA_TYPE_TO_FIELD_TYPE;
|
|
4581
|
+
|
|
4472
4582
|
/**
|
|
4473
4583
|
* Entity Codegen & Domain Analyzer
|
|
4474
4584
|
*
|
|
@@ -4513,4 +4623,4 @@ declare function validateEntities(entitiesDir: string): {
|
|
|
4513
4623
|
errors: string[];
|
|
4514
4624
|
};
|
|
4515
4625
|
|
|
4516
|
-
export { ActivityPattern, type AnalysisIssue, type AnalysisResult, type AnalyzeDomainOptions, type AnyPatternDefinition, BASE_JUNCTION_FIELD_NAMES, BaseJunctionFields, BasePattern, type CodegenManifest, type DomainGraph, type DomainStatistics, type EntityNode, IntegratedPattern, type JunctionDefinition, JunctionDefinitionSchema, JunctionPattern, KnowledgePattern, type LoadAppPatternsResult, type ManifestEntity, type ManifestField, type ManifestRelationship, type ManifestSuggestion, MetadataPattern, type OrchestrationPatternDefinition, type OrchestrationProjectContext, type OrchestrationRegistrySpec, type OutputFormat, type ParsedEntity, type ParsedEvent, type ParsedField, type ParsedIntegration, type ParsedProviderIntegration, type ParsedQuery, type ParsedRelationship, type ParsedRelationshipDefinition, type ParsedTypeDirection, type PathHop, type PatternColumnContribution, type PatternDefinition, type PatternKind, type PatternProjectContext, type RelationshipEdge, type Severity, type TransitivePath, type TransitiveSuggestion, analyzeDomain, buildDomainGraph, checkConsistency, computeStatistics, defineOrchestrationPattern, definePattern, findCircularDependencies, findOrphanEntities, formatConsole, formatJson, formatMarkdown, formatMermaidGraph, getAllOrchestrationPatterns, getAllPatternNames, getAppPatternNames, getLibraryPatternNames, getOrchestrationPattern, getOrchestrationPatternNames, getPattern, getRelatedEntities, isDomainPattern, isOrchestrationPattern, isPatternDefinition, loadAppPatterns, loadEntities, loadEntityFromYaml, loadJunctionFromYaml, loadRelationshipFromYaml, loadRelationships, registerLibraryPattern, safeValidateJunctionDefinition, validateEntities, validateJunctionDefinition, validateOrchestrationProject, validatePatternComposition, validatePatternProject };
|
|
4626
|
+
export { ActivityPattern, type AnalysisIssue, type AnalysisResult, type AnalyzeDomainOptions, type AnyPatternDefinition, BASE_JUNCTION_FIELD_NAMES, BaseJunctionFields, BasePattern, type CodegenManifest, type DomainGraph, type DomainStatistics, EAV_DATA_TYPE_TO_FIELD_TYPE, type EavDataType, type EntityNode, IntegratedPattern, type JunctionDefinition, JunctionDefinitionSchema, JunctionPattern, KnowledgePattern, type LoadAppPatternsResult, type ManifestEntity, type ManifestField, type ManifestRelationship, type ManifestSuggestion, MetadataPattern, type OrchestrationPatternDefinition, type OrchestrationProjectContext, type OrchestrationRegistrySpec, type OutputFormat, type ParsedEntity, type ParsedEvent, type ParsedField, type ParsedIntegration, type ParsedProviderIntegration, type ParsedQuery, type ParsedRelationship, type ParsedRelationshipDefinition, type ParsedTypeDirection, type PathHop, type PatternColumnContribution, type PatternDefinition, type PatternKind, type PatternProjectContext, type RelationshipEdge, type Severity, type TransitivePath, type TransitiveSuggestion, analyzeDomain, buildDomainGraph, checkConsistency, computeStatistics, defineOrchestrationPattern, definePattern, findCircularDependencies, findOrphanEntities, formatConsole, formatJson, formatMarkdown, formatMermaidGraph, getAllOrchestrationPatterns, getAllPatternNames, getAppPatternNames, getLibraryPatternNames, getOrchestrationPattern, getOrchestrationPatternNames, getPattern, getRelatedEntities, isDomainPattern, isOrchestrationPattern, isPatternDefinition, loadAppPatterns, loadEntities, loadEntityFromYaml, loadJunctionFromYaml, loadRelationshipFromYaml, loadRelationships, registerLibraryPattern, safeValidateJunctionDefinition, validateEntities, validateJunctionDefinition, validateOrchestrationProject, validatePatternComposition, validatePatternProject };
|
package/dist/src/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
BASE_JUNCTION_FIELD_NAMES,
|
|
4
4
|
BaseJunctionFields,
|
|
5
5
|
BasePattern,
|
|
6
|
+
EAV_DATA_TYPE_TO_FIELD_TYPE,
|
|
6
7
|
IntegratedPattern,
|
|
7
8
|
JunctionDefinitionSchema,
|
|
8
9
|
JunctionPattern,
|
|
@@ -44,7 +45,7 @@ import {
|
|
|
44
45
|
validateOrchestrationProject,
|
|
45
46
|
validatePatternComposition,
|
|
46
47
|
validatePatternProject
|
|
47
|
-
} from "../chunk-
|
|
48
|
+
} from "../chunk-524YKITE.js";
|
|
48
49
|
import "../chunk-KVOWSC5S.js";
|
|
49
50
|
import "../chunk-QFUIE37H.js";
|
|
50
51
|
import "../chunk-FFUDEIFF.js";
|
|
@@ -72,6 +73,7 @@ export {
|
|
|
72
73
|
BASE_JUNCTION_FIELD_NAMES,
|
|
73
74
|
BaseJunctionFields,
|
|
74
75
|
BasePattern,
|
|
76
|
+
EAV_DATA_TYPE_TO_FIELD_TYPE,
|
|
75
77
|
IntegratedPattern,
|
|
76
78
|
JunctionDefinitionSchema,
|
|
77
79
|
JunctionPattern,
|