@voxgig/apidef 6.3.7 → 6.3.9

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 (48) hide show
  1. package/dist/apidef.d.ts +3 -2
  2. package/dist/apidef.js +35 -5
  3. package/dist/apidef.js.map +1 -1
  4. package/dist/builder/entity/entity.d.ts +2 -1
  5. package/dist/builder/entity/entity.js +63 -0
  6. package/dist/builder/entity/entity.js.map +1 -1
  7. package/dist/builder/entity/info.js.map +1 -1
  8. package/dist/builder/entity.js.map +1 -1
  9. package/dist/builder/flow/flowHeuristic01.js.map +1 -1
  10. package/dist/builder/flow.js.map +1 -1
  11. package/dist/guide/guide.js +49 -6
  12. package/dist/guide/guide.js.map +1 -1
  13. package/dist/guide/heuristic01.js +99 -89
  14. package/dist/guide/heuristic01.js.map +1 -1
  15. package/dist/parse.js +151 -18
  16. package/dist/parse.js.map +1 -1
  17. package/dist/resolver.js.map +1 -1
  18. package/dist/transform/args.js.map +1 -1
  19. package/dist/transform/clean.js.map +1 -1
  20. package/dist/transform/entity.js.map +1 -1
  21. package/dist/transform/field.js +14 -0
  22. package/dist/transform/field.js.map +1 -1
  23. package/dist/transform/flow.js.map +1 -1
  24. package/dist/transform/flowstep.js.map +1 -1
  25. package/dist/transform/operation.js.map +1 -1
  26. package/dist/transform/select.js.map +1 -1
  27. package/dist/transform/top.d.ts +2 -1
  28. package/dist/transform/top.js +32 -2
  29. package/dist/transform/top.js.map +1 -1
  30. package/dist/transform.d.ts +8 -7
  31. package/dist/transform.js.map +1 -1
  32. package/dist/tsconfig.tsbuildinfo +1 -1
  33. package/dist/types.d.ts +97 -84
  34. package/dist/types.js.map +1 -1
  35. package/dist/utility.d.ts +6 -1
  36. package/dist/utility.js +205 -16
  37. package/dist/utility.js.map +1 -1
  38. package/package.json +8 -8
  39. package/src/apidef.ts +38 -4
  40. package/src/builder/entity/entity.ts +70 -1
  41. package/src/guide/guide.ts +50 -6
  42. package/src/guide/heuristic01.ts +37 -28
  43. package/src/parse.ts +161 -20
  44. package/src/transform/field.ts +16 -1
  45. package/src/transform/top.ts +37 -2
  46. package/src/tsconfig.json +1 -0
  47. package/src/types.ts +5 -0
  48. package/src/utility.ts +226 -16
package/dist/types.d.ts CHANGED
@@ -36,8 +36,8 @@ declare const ControlShape: {
36
36
  generate: boolean;
37
37
  };
38
38
  };
39
- match(root?: any, ctx?: import("shape").Context): boolean;
40
- error(root?: any, ctx?: import("shape").Context): {
39
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
40
+ error: (root?: any, ctx?: import("shape").Context) => {
41
41
  shape: boolean;
42
42
  code: string;
43
43
  gname: string;
@@ -55,6 +55,7 @@ declare const ControlShape: {
55
55
  node: import("shape").Node<any>;
56
56
  value: any;
57
57
  path: string;
58
+ pathArr: (string | number)[];
58
59
  why: string;
59
60
  check: string;
60
61
  args: Record<string, any>;
@@ -73,8 +74,8 @@ declare const ControlShape: {
73
74
  message: string;
74
75
  stack?: string;
75
76
  }[];
76
- spec(): any;
77
- node(): import("shape").Node<{
77
+ spec: () => any;
78
+ node: () => import("shape").Node<{
78
79
  step: {
79
80
  parse: boolean;
80
81
  guide: boolean;
@@ -83,9 +84,9 @@ declare const ControlShape: {
83
84
  generate: boolean;
84
85
  };
85
86
  }>;
86
- stringify(...rest: any[]): string;
87
- jsonify(): any;
88
- toString(this: any): string;
87
+ stringify: (...rest: any[]) => string;
88
+ jsonify: () => any;
89
+ toString: (this: any) => string;
89
90
  shape: {
90
91
  shape$: symbol;
91
92
  v$: string;
@@ -125,8 +126,8 @@ declare const OpenControlShape: {
125
126
  generate: boolean;
126
127
  };
127
128
  };
128
- match(root?: any, ctx?: import("shape").Context): boolean;
129
- error(root?: any, ctx?: import("shape").Context): {
129
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
130
+ error: (root?: any, ctx?: import("shape").Context) => {
130
131
  shape: boolean;
131
132
  code: string;
132
133
  gname: string;
@@ -144,6 +145,7 @@ declare const OpenControlShape: {
144
145
  node: import("shape").Node<any>;
145
146
  value: any;
146
147
  path: string;
148
+ pathArr: (string | number)[];
147
149
  why: string;
148
150
  check: string;
149
151
  args: Record<string, any>;
@@ -162,8 +164,8 @@ declare const OpenControlShape: {
162
164
  message: string;
163
165
  stack?: string;
164
166
  }[];
165
- spec(): any;
166
- node(): import("shape").Node<{
167
+ spec: () => any;
168
+ node: () => import("shape").Node<{
167
169
  step: {
168
170
  parse: boolean;
169
171
  guide: boolean;
@@ -172,16 +174,16 @@ declare const OpenControlShape: {
172
174
  generate: boolean;
173
175
  };
174
176
  }>;
175
- stringify(...rest: any[]): string;
176
- jsonify(): any;
177
- toString(this: any): string;
177
+ stringify: (...rest: any[]) => string;
178
+ jsonify: () => any;
179
+ toString: (this: any) => string;
178
180
  shape: {
179
181
  shape$: symbol;
180
182
  v$: string;
181
183
  };
182
184
  };
183
- match(root?: any, ctx?: import("shape").Context): boolean;
184
- error(root?: any, ctx?: import("shape").Context): {
185
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
186
+ error: (root?: any, ctx?: import("shape").Context) => {
185
187
  shape: boolean;
186
188
  code: string;
187
189
  gname: string;
@@ -199,6 +201,7 @@ declare const OpenControlShape: {
199
201
  node: import("shape").Node<any>;
200
202
  value: any;
201
203
  path: string;
204
+ pathArr: (string | number)[];
202
205
  why: string;
203
206
  check: string;
204
207
  args: Record<string, any>;
@@ -217,8 +220,8 @@ declare const OpenControlShape: {
217
220
  message: string;
218
221
  stack?: string;
219
222
  }[];
220
- spec(): any;
221
- node(): import("shape").Node<{
223
+ spec: () => any;
224
+ node: () => import("shape").Node<{
222
225
  <V>(root?: V | undefined, ctx?: import("shape").Context): V & {
223
226
  step: {
224
227
  parse: boolean;
@@ -237,8 +240,8 @@ declare const OpenControlShape: {
237
240
  generate: boolean;
238
241
  };
239
242
  };
240
- match(root?: any, ctx?: import("shape").Context): boolean;
241
- error(root?: any, ctx?: import("shape").Context): {
243
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
244
+ error: (root?: any, ctx?: import("shape").Context) => {
242
245
  shape: boolean;
243
246
  code: string;
244
247
  gname: string;
@@ -256,6 +259,7 @@ declare const OpenControlShape: {
256
259
  node: import("shape").Node<any>;
257
260
  value: any;
258
261
  path: string;
262
+ pathArr: (string | number)[];
259
263
  why: string;
260
264
  check: string;
261
265
  args: Record<string, any>;
@@ -274,8 +278,8 @@ declare const OpenControlShape: {
274
278
  message: string;
275
279
  stack?: string;
276
280
  }[];
277
- spec(): any;
278
- node(): import("shape").Node<{
281
+ spec: () => any;
282
+ node: () => import("shape").Node<{
279
283
  step: {
280
284
  parse: boolean;
281
285
  guide: boolean;
@@ -284,17 +288,17 @@ declare const OpenControlShape: {
284
288
  generate: boolean;
285
289
  };
286
290
  }>;
287
- stringify(...rest: any[]): string;
288
- jsonify(): any;
289
- toString(this: any): string;
291
+ stringify: (...rest: any[]) => string;
292
+ jsonify: () => any;
293
+ toString: (this: any) => string;
290
294
  shape: {
291
295
  shape$: symbol;
292
296
  v$: string;
293
297
  };
294
298
  }>;
295
- stringify(...rest: any[]): string;
296
- jsonify(): any;
297
- toString(this: any): string;
299
+ stringify: (...rest: any[]) => string;
300
+ jsonify: () => any;
301
+ toString: (this: any) => string;
298
302
  shape: {
299
303
  shape$: symbol;
300
304
  v$: string;
@@ -332,8 +336,8 @@ declare const ModelShape: {
332
336
  };
333
337
  };
334
338
  };
335
- match(root?: any, ctx?: import("shape").Context): boolean;
336
- error(root?: any, ctx?: import("shape").Context): {
339
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
340
+ error: (root?: any, ctx?: import("shape").Context) => {
337
341
  shape: boolean;
338
342
  code: string;
339
343
  gname: string;
@@ -351,6 +355,7 @@ declare const ModelShape: {
351
355
  node: import("shape").Node<any>;
352
356
  value: any;
353
357
  path: string;
358
+ pathArr: (string | number)[];
354
359
  why: string;
355
360
  check: string;
356
361
  args: Record<string, any>;
@@ -369,8 +374,8 @@ declare const ModelShape: {
369
374
  message: string;
370
375
  stack?: string;
371
376
  }[];
372
- spec(): any;
373
- node(): import("shape").Node<{
377
+ spec: () => any;
378
+ node: () => import("shape").Node<{
374
379
  name: StringConstructor;
375
380
  def: StringConstructor;
376
381
  main: {
@@ -385,9 +390,9 @@ declare const ModelShape: {
385
390
  };
386
391
  };
387
392
  }>;
388
- stringify(...rest: any[]): string;
389
- jsonify(): any;
390
- toString(this: any): string;
393
+ stringify: (...rest: any[]) => string;
394
+ jsonify: () => any;
395
+ toString: (this: any) => string;
391
396
  shape: {
392
397
  shape$: symbol;
393
398
  v$: string;
@@ -439,8 +444,8 @@ declare const OpenModelShape: {
439
444
  };
440
445
  };
441
446
  };
442
- match(root?: any, ctx?: import("shape").Context): boolean;
443
- error(root?: any, ctx?: import("shape").Context): {
447
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
448
+ error: (root?: any, ctx?: import("shape").Context) => {
444
449
  shape: boolean;
445
450
  code: string;
446
451
  gname: string;
@@ -458,6 +463,7 @@ declare const OpenModelShape: {
458
463
  node: import("shape").Node<any>;
459
464
  value: any;
460
465
  path: string;
466
+ pathArr: (string | number)[];
461
467
  why: string;
462
468
  check: string;
463
469
  args: Record<string, any>;
@@ -476,8 +482,8 @@ declare const OpenModelShape: {
476
482
  message: string;
477
483
  stack?: string;
478
484
  }[];
479
- spec(): any;
480
- node(): import("shape").Node<{
485
+ spec: () => any;
486
+ node: () => import("shape").Node<{
481
487
  name: StringConstructor;
482
488
  def: StringConstructor;
483
489
  main: {
@@ -492,16 +498,16 @@ declare const OpenModelShape: {
492
498
  };
493
499
  };
494
500
  }>;
495
- stringify(...rest: any[]): string;
496
- jsonify(): any;
497
- toString(this: any): string;
501
+ stringify: (...rest: any[]) => string;
502
+ jsonify: () => any;
503
+ toString: (this: any) => string;
498
504
  shape: {
499
505
  shape$: symbol;
500
506
  v$: string;
501
507
  };
502
508
  };
503
- match(root?: any, ctx?: import("shape").Context): boolean;
504
- error(root?: any, ctx?: import("shape").Context): {
509
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
510
+ error: (root?: any, ctx?: import("shape").Context) => {
505
511
  shape: boolean;
506
512
  code: string;
507
513
  gname: string;
@@ -519,6 +525,7 @@ declare const OpenModelShape: {
519
525
  node: import("shape").Node<any>;
520
526
  value: any;
521
527
  path: string;
528
+ pathArr: (string | number)[];
522
529
  why: string;
523
530
  check: string;
524
531
  args: Record<string, any>;
@@ -537,8 +544,8 @@ declare const OpenModelShape: {
537
544
  message: string;
538
545
  stack?: string;
539
546
  }[];
540
- spec(): any;
541
- node(): import("shape").Node<{
547
+ spec: () => any;
548
+ node: () => import("shape").Node<{
542
549
  <V>(root?: V | undefined, ctx?: import("shape").Context): V & {
543
550
  name: string;
544
551
  def: string;
@@ -569,8 +576,8 @@ declare const OpenModelShape: {
569
576
  };
570
577
  };
571
578
  };
572
- match(root?: any, ctx?: import("shape").Context): boolean;
573
- error(root?: any, ctx?: import("shape").Context): {
579
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
580
+ error: (root?: any, ctx?: import("shape").Context) => {
574
581
  shape: boolean;
575
582
  code: string;
576
583
  gname: string;
@@ -588,6 +595,7 @@ declare const OpenModelShape: {
588
595
  node: import("shape").Node<any>;
589
596
  value: any;
590
597
  path: string;
598
+ pathArr: (string | number)[];
591
599
  why: string;
592
600
  check: string;
593
601
  args: Record<string, any>;
@@ -606,8 +614,8 @@ declare const OpenModelShape: {
606
614
  message: string;
607
615
  stack?: string;
608
616
  }[];
609
- spec(): any;
610
- node(): import("shape").Node<{
617
+ spec: () => any;
618
+ node: () => import("shape").Node<{
611
619
  name: StringConstructor;
612
620
  def: StringConstructor;
613
621
  main: {
@@ -622,17 +630,17 @@ declare const OpenModelShape: {
622
630
  };
623
631
  };
624
632
  }>;
625
- stringify(...rest: any[]): string;
626
- jsonify(): any;
627
- toString(this: any): string;
633
+ stringify: (...rest: any[]) => string;
634
+ jsonify: () => any;
635
+ toString: (this: any) => string;
628
636
  shape: {
629
637
  shape$: symbol;
630
638
  v$: string;
631
639
  };
632
640
  }>;
633
- stringify(...rest: any[]): string;
634
- jsonify(): any;
635
- toString(this: any): string;
641
+ stringify: (...rest: any[]) => string;
642
+ jsonify: () => any;
643
+ toString: (this: any) => string;
636
644
  shape: {
637
645
  shape$: symbol;
638
646
  v$: string;
@@ -678,8 +686,8 @@ declare const BuildShape: {
678
686
  };
679
687
  };
680
688
  };
681
- match(root?: any, ctx?: import("shape").Context): boolean;
682
- error(root?: any, ctx?: import("shape").Context): {
689
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
690
+ error: (root?: any, ctx?: import("shape").Context) => {
683
691
  shape: boolean;
684
692
  code: string;
685
693
  gname: string;
@@ -697,6 +705,7 @@ declare const BuildShape: {
697
705
  node: import("shape").Node<any>;
698
706
  value: any;
699
707
  path: string;
708
+ pathArr: (string | number)[];
700
709
  why: string;
701
710
  check: string;
702
711
  args: Record<string, any>;
@@ -715,8 +724,8 @@ declare const BuildShape: {
715
724
  message: string;
716
725
  stack?: string;
717
726
  }[];
718
- spec(): any;
719
- node(): import("shape").Node<{
727
+ spec: () => any;
728
+ node: () => import("shape").Node<{
720
729
  spec: {
721
730
  base: string;
722
731
  path: string;
@@ -735,9 +744,9 @@ declare const BuildShape: {
735
744
  };
736
745
  };
737
746
  }>;
738
- stringify(...rest: any[]): string;
739
- jsonify(): any;
740
- toString(this: any): string;
747
+ stringify: (...rest: any[]) => string;
748
+ jsonify: () => any;
749
+ toString: (this: any) => string;
741
750
  shape: {
742
751
  shape$: symbol;
743
752
  v$: string;
@@ -797,8 +806,8 @@ declare const OpenBuildShape: {
797
806
  };
798
807
  };
799
808
  };
800
- match(root?: any, ctx?: import("shape").Context): boolean;
801
- error(root?: any, ctx?: import("shape").Context): {
809
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
810
+ error: (root?: any, ctx?: import("shape").Context) => {
802
811
  shape: boolean;
803
812
  code: string;
804
813
  gname: string;
@@ -816,6 +825,7 @@ declare const OpenBuildShape: {
816
825
  node: import("shape").Node<any>;
817
826
  value: any;
818
827
  path: string;
828
+ pathArr: (string | number)[];
819
829
  why: string;
820
830
  check: string;
821
831
  args: Record<string, any>;
@@ -834,8 +844,8 @@ declare const OpenBuildShape: {
834
844
  message: string;
835
845
  stack?: string;
836
846
  }[];
837
- spec(): any;
838
- node(): import("shape").Node<{
847
+ spec: () => any;
848
+ node: () => import("shape").Node<{
839
849
  spec: {
840
850
  base: string;
841
851
  path: string;
@@ -854,16 +864,16 @@ declare const OpenBuildShape: {
854
864
  };
855
865
  };
856
866
  }>;
857
- stringify(...rest: any[]): string;
858
- jsonify(): any;
859
- toString(this: any): string;
867
+ stringify: (...rest: any[]) => string;
868
+ jsonify: () => any;
869
+ toString: (this: any) => string;
860
870
  shape: {
861
871
  shape$: symbol;
862
872
  v$: string;
863
873
  };
864
874
  };
865
- match(root?: any, ctx?: import("shape").Context): boolean;
866
- error(root?: any, ctx?: import("shape").Context): {
875
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
876
+ error: (root?: any, ctx?: import("shape").Context) => {
867
877
  shape: boolean;
868
878
  code: string;
869
879
  gname: string;
@@ -881,6 +891,7 @@ declare const OpenBuildShape: {
881
891
  node: import("shape").Node<any>;
882
892
  value: any;
883
893
  path: string;
894
+ pathArr: (string | number)[];
884
895
  why: string;
885
896
  check: string;
886
897
  args: Record<string, any>;
@@ -899,8 +910,8 @@ declare const OpenBuildShape: {
899
910
  message: string;
900
911
  stack?: string;
901
912
  }[];
902
- spec(): any;
903
- node(): import("shape").Node<{
913
+ spec: () => any;
914
+ node: () => import("shape").Node<{
904
915
  <V>(root?: V | undefined, ctx?: import("shape").Context): V & {
905
916
  spec: {
906
917
  base: string;
@@ -939,8 +950,8 @@ declare const OpenBuildShape: {
939
950
  };
940
951
  };
941
952
  };
942
- match(root?: any, ctx?: import("shape").Context): boolean;
943
- error(root?: any, ctx?: import("shape").Context): {
953
+ match: (root?: any, ctx?: import("shape").Context) => boolean;
954
+ error: (root?: any, ctx?: import("shape").Context) => {
944
955
  shape: boolean;
945
956
  code: string;
946
957
  gname: string;
@@ -958,6 +969,7 @@ declare const OpenBuildShape: {
958
969
  node: import("shape").Node<any>;
959
970
  value: any;
960
971
  path: string;
972
+ pathArr: (string | number)[];
961
973
  why: string;
962
974
  check: string;
963
975
  args: Record<string, any>;
@@ -976,8 +988,8 @@ declare const OpenBuildShape: {
976
988
  message: string;
977
989
  stack?: string;
978
990
  }[];
979
- spec(): any;
980
- node(): import("shape").Node<{
991
+ spec: () => any;
992
+ node: () => import("shape").Node<{
981
993
  spec: {
982
994
  base: string;
983
995
  path: string;
@@ -996,17 +1008,17 @@ declare const OpenBuildShape: {
996
1008
  };
997
1009
  };
998
1010
  }>;
999
- stringify(...rest: any[]): string;
1000
- jsonify(): any;
1001
- toString(this: any): string;
1011
+ stringify: (...rest: any[]) => string;
1012
+ jsonify: () => any;
1013
+ toString: (this: any) => string;
1002
1014
  shape: {
1003
1015
  shape$: symbol;
1004
1016
  v$: string;
1005
1017
  };
1006
1018
  }>;
1007
- stringify(...rest: any[]): string;
1008
- jsonify(): any;
1009
- toString(this: any): string;
1019
+ stringify: (...rest: any[]) => string;
1020
+ jsonify: () => any;
1021
+ toString: (this: any) => string;
1010
1022
  shape: {
1011
1023
  shape$: symbol;
1012
1024
  v$: string;
@@ -1056,6 +1068,7 @@ type Metrics = {
1056
1068
  };
1057
1069
  type ApiDefContext = {
1058
1070
  fs: any;
1071
+ fsInjected: boolean;
1059
1072
  log: any;
1060
1073
  spec: any;
1061
1074
  opts: any;
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,4CAA4C;;;AAK5C,iCAAwC;AAGxC,MAAM,GAAG,GAAG,KAAK,CAAA;AAqPf,kBAAG;AArNL,MAAM,YAAY,GAAG,IAAA,aAAK,EAAC;IACzB,IAAI,EAAE;QACJ,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,YAAY,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AE,EAAE;QACP,EAAE,EAAE,IAAA,WAAG,GAAE;QACT,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,EAAE;QACb,KAAK,EAAE;YACL,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;YACT,GAAG,EAAE,IAAI;SACV;KACF;CACF,CAAC,CAAA;AACF,MAAM,cAAc,GAAG,IAAA,aAAK,EAAC,IAAA,YAAI,EAAC,UAAU,CAAC,CAAC,CAAA;QAmK5C,cAAc"}
package/dist/utility.d.ts CHANGED
@@ -31,6 +31,8 @@ declare function formatJSONIC(val?: any, opts?: {
31
31
  maxlines?: number;
32
32
  exclude?: string[];
33
33
  }): string;
34
+ declare const VALID_CANON: Record<string, string>;
35
+ declare const CANON_ONE = "`$ONE`";
34
36
  declare function validator(torig: undefined | string | string[]): any;
35
37
  declare function transliterate(s: string): string;
36
38
  declare function canonize(s: string): string;
@@ -55,4 +57,7 @@ declare function getModelPath(model: any, path: string, flags?: {
55
57
  only_active?: boolean;
56
58
  }): any;
57
59
  export type { PathMatch };
58
- export { nom, getdlog, loadFile, formatJsonSrc, depluralize, setCustomPlurals, clearCustomPlurals, find, capture, pathMatch, makeWarner, formatJSONIC, validator, canonize, canonizeCmpName, stripSchemaNamespace, sanitizeSlug, slugToPascalCase, transliterate, cleanComponentName, ensureMinEntityName, inferFieldType, normalizeFieldName, debugpath, findPathsWithPrefix, writeFileSyncWarn, warnOnError, relativizePath, getModelPath, sortedKeys, sortedEntries, };
60
+ declare function isEntityWrapperProp(propSchema: any): boolean;
61
+ declare function envelopeProp(resprops: any, opname: string): string | null;
62
+ declare function closedBodyTransform(schema: any): Record<string, string> | null;
63
+ export { nom, getdlog, loadFile, formatJsonSrc, depluralize, setCustomPlurals, clearCustomPlurals, find, capture, pathMatch, makeWarner, formatJSONIC, validator, VALID_CANON, CANON_ONE, canonize, canonizeCmpName, stripSchemaNamespace, sanitizeSlug, slugToPascalCase, transliterate, cleanComponentName, ensureMinEntityName, inferFieldType, normalizeFieldName, debugpath, findPathsWithPrefix, writeFileSyncWarn, warnOnError, relativizePath, getModelPath, sortedKeys, sortedEntries, isEntityWrapperProp, envelopeProp, closedBodyTransform, };