dmencu 0.1.8 → 0.1.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.
@@ -1,5 +1,4 @@
1
1
  /// <reference types="backend-plus" />
2
- /// <reference types="express-serve-static-core" />
3
2
  import * as procesamiento from "procesamiento";
4
3
  import * as pg from "pg-promise-strict";
5
4
  import { Context, Request } from "./types-dmencu";
@@ -57,7 +56,7 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
57
56
  };
58
57
  createResourcesForCacheJson(parameters: any): {};
59
58
  getMenu(context: Context): {
60
- menu: BackendPlus.MenuInfoBase[];
59
+ menu: procesamiento.MenuInfoBase[];
61
60
  };
62
61
  prepareGetTables(): void;
63
62
  tablasDatos: procesamiento.TablaDatos[];
@@ -499,5 +498,1024 @@ export declare function emergeAppDmEncu<T extends procesamiento.Constructor<proc
499
498
  }) => Promise<boolean>);
500
499
  };
501
500
  } & T;
502
- export declare var AppDmEncu: any;
501
+ export declare var AppDmEncu: {
502
+ new (...args: any[]): {
503
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
504
+ checkDatabaseStructure(_client: Client): Promise<void>;
505
+ addSchrödingerServices(mainApp: procesamiento.Express, baseUrl: string): void;
506
+ addLoggedServices(): void;
507
+ postConfig(): Promise<void>;
508
+ configStaticConfig(): void;
509
+ clientIncludes(req: any, opts: any): (procesamiento.ClientModuleDefinition | {
510
+ type: string;
511
+ module: string;
512
+ modPath: string;
513
+ fileDevelopment: string;
514
+ file: string;
515
+ src?: undefined;
516
+ } | {
517
+ type: string;
518
+ module: string;
519
+ file: string;
520
+ modPath?: undefined;
521
+ fileDevelopment?: undefined;
522
+ src?: undefined;
523
+ } | {
524
+ type: string;
525
+ module: string;
526
+ modPath: string;
527
+ file: string;
528
+ fileDevelopment?: undefined;
529
+ src?: undefined;
530
+ } | {
531
+ type: string;
532
+ src: string;
533
+ module?: undefined;
534
+ modPath?: undefined;
535
+ fileDevelopment?: undefined;
536
+ file?: undefined;
537
+ } | {
538
+ type: string;
539
+ file: string;
540
+ module?: undefined;
541
+ modPath?: undefined;
542
+ fileDevelopment?: undefined;
543
+ src?: undefined;
544
+ })[];
545
+ refreshCaches(): Promise<void>;
546
+ getContext(req: Request): Context;
547
+ getContextForDump(): Context;
548
+ getClientSetupForSendToFrontEnd(req: Request): {
549
+ idper: string | undefined;
550
+ procedures: procesamiento.ProcedureDef[];
551
+ };
552
+ createResourcesForCacheJson(parameters: any): {};
553
+ getMenu(context: Context): {
554
+ menu: procesamiento.MenuInfoBase[];
555
+ };
556
+ prepareGetTables(): void;
557
+ tablasDatos: procesamiento.TablaDatos[];
558
+ procedures: procesamiento.ProcedureDef[];
559
+ procedure: {
560
+ [key: string]: procesamiento.ProcedureDef;
561
+ } & {
562
+ [key: string]: procesamiento.ProcedureDef;
563
+ } & {
564
+ [key: string]: procesamiento.ProcedureDef;
565
+ } & {
566
+ [key: string]: procesamiento.ProcedureDef;
567
+ } & {
568
+ [key: string]: procesamiento.ProcedureDef;
569
+ } & {
570
+ [key: string]: procesamiento.ProcedureDef;
571
+ } & {
572
+ [key: string]: procesamiento.ProcedureDef;
573
+ } & {
574
+ [key: string]: procesamiento.ProcedureDef;
575
+ } & {
576
+ [key: string]: procesamiento.ProcedureDef;
577
+ } & {
578
+ [key: string]: procesamiento.ProcedureDef;
579
+ } & {
580
+ [key: string]: procesamiento.ProcedureDef;
581
+ } & {
582
+ [key: string]: procesamiento.ProcedureDef;
583
+ } & {
584
+ [key: string]: procesamiento.ProcedureDef;
585
+ } & {
586
+ [key: string]: procesamiento.ProcedureDef;
587
+ } & {
588
+ [key: string]: procesamiento.ProcedureDef;
589
+ } & {
590
+ [key: string]: procesamiento.ProcedureDef;
591
+ } & {
592
+ [key: string]: procesamiento.ProcedureDef;
593
+ } & {
594
+ [key: string]: procesamiento.ProcedureDef;
595
+ };
596
+ app: procesamiento.ExpressPlus;
597
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
598
+ tableStructures: procesamiento.TableDefinitions;
599
+ db: typeof pg;
600
+ config: any;
601
+ rootPath: string;
602
+ caches: {
603
+ procedures: {
604
+ [k: string]: {
605
+ timestamp: number;
606
+ result: any;
607
+ };
608
+ };
609
+ } & {
610
+ procedures: {
611
+ [k: string]: {
612
+ timestamp: number;
613
+ result: any;
614
+ };
615
+ };
616
+ } & {
617
+ procedures: {
618
+ [k: string]: {
619
+ timestamp: number;
620
+ result: any;
621
+ };
622
+ };
623
+ } & {
624
+ procedures: {
625
+ [k: string]: {
626
+ timestamp: number;
627
+ result: any;
628
+ };
629
+ };
630
+ } & {
631
+ procedures: {
632
+ [k: string]: {
633
+ timestamp: number;
634
+ result: any;
635
+ };
636
+ };
637
+ } & {
638
+ procedures: {
639
+ [k: string]: {
640
+ timestamp: number;
641
+ result: any;
642
+ };
643
+ };
644
+ } & {
645
+ procedures: {
646
+ [k: string]: {
647
+ timestamp: number;
648
+ result: any;
649
+ };
650
+ };
651
+ } & {
652
+ procedures: {
653
+ [k: string]: {
654
+ timestamp: number;
655
+ result: any;
656
+ };
657
+ };
658
+ } & {
659
+ procedures: {
660
+ [k: string]: {
661
+ timestamp: number;
662
+ result: any;
663
+ };
664
+ };
665
+ } & {
666
+ procedures: {
667
+ [k: string]: {
668
+ timestamp: number;
669
+ result: any;
670
+ };
671
+ };
672
+ } & {
673
+ procedures: {
674
+ [k: string]: {
675
+ timestamp: number;
676
+ result: any;
677
+ };
678
+ };
679
+ } & {
680
+ procedures: {
681
+ [k: string]: {
682
+ timestamp: number;
683
+ result: any;
684
+ };
685
+ };
686
+ } & {
687
+ procedures: {
688
+ [k: string]: {
689
+ timestamp: number;
690
+ result: any;
691
+ };
692
+ };
693
+ } & {
694
+ procedures: {
695
+ [k: string]: {
696
+ timestamp: number;
697
+ result: any;
698
+ };
699
+ };
700
+ } & {
701
+ procedures: {
702
+ [k: string]: {
703
+ timestamp: number;
704
+ result: any;
705
+ };
706
+ };
707
+ } & {
708
+ procedures: {
709
+ [k: string]: {
710
+ timestamp: number;
711
+ result: any;
712
+ };
713
+ };
714
+ } & {
715
+ procedures: {
716
+ [k: string]: {
717
+ timestamp: number;
718
+ result: any;
719
+ };
720
+ };
721
+ } & {
722
+ procedures: {
723
+ [k: string]: {
724
+ timestamp: number;
725
+ result: any;
726
+ };
727
+ };
728
+ };
729
+ fieldDomain: {
730
+ [k: string]: Partial<procesamiento.FieldDefinition>;
731
+ } & {
732
+ [k: string]: Partial<procesamiento.FieldDefinition>;
733
+ } & {
734
+ [k: string]: Partial<procesamiento.FieldDefinition>;
735
+ } & {
736
+ [k: string]: Partial<procesamiento.FieldDefinition>;
737
+ } & {
738
+ [k: string]: Partial<procesamiento.FieldDefinition>;
739
+ } & {
740
+ [k: string]: Partial<procesamiento.FieldDefinition>;
741
+ } & {
742
+ [k: string]: Partial<procesamiento.FieldDefinition>;
743
+ } & {
744
+ [k: string]: Partial<procesamiento.FieldDefinition>;
745
+ } & {
746
+ [k: string]: Partial<procesamiento.FieldDefinition>;
747
+ } & {
748
+ [k: string]: Partial<procesamiento.FieldDefinition>;
749
+ } & {
750
+ [k: string]: Partial<procesamiento.FieldDefinition>;
751
+ } & {
752
+ [k: string]: Partial<procesamiento.FieldDefinition>;
753
+ } & {
754
+ [k: string]: Partial<procesamiento.FieldDefinition>;
755
+ } & {
756
+ [k: string]: Partial<procesamiento.FieldDefinition>;
757
+ } & {
758
+ [k: string]: Partial<procesamiento.FieldDefinition>;
759
+ } & {
760
+ [k: string]: Partial<procesamiento.FieldDefinition>;
761
+ } & {
762
+ [k: string]: Partial<procesamiento.FieldDefinition>;
763
+ } & {
764
+ [k: string]: Partial<procesamiento.FieldDefinition>;
765
+ };
766
+ exts: {
767
+ img?: string[] | undefined;
768
+ } & {
769
+ img?: string[] | undefined;
770
+ } & {
771
+ img?: string[] | undefined;
772
+ } & {
773
+ img?: string[] | undefined;
774
+ } & {
775
+ img?: string[] | undefined;
776
+ } & {
777
+ img?: string[] | undefined;
778
+ } & {
779
+ img?: string[] | undefined;
780
+ } & {
781
+ img?: string[] | undefined;
782
+ } & {
783
+ img?: string[] | undefined;
784
+ } & {
785
+ img?: string[] | undefined;
786
+ } & {
787
+ img?: string[] | undefined;
788
+ } & {
789
+ img?: string[] | undefined;
790
+ } & {
791
+ img?: string[] | undefined;
792
+ } & {
793
+ img?: string[] | undefined;
794
+ } & {
795
+ img?: string[] | undefined;
796
+ } & {
797
+ img?: string[] | undefined;
798
+ } & {
799
+ img?: string[] | undefined;
800
+ } & {
801
+ img: string[];
802
+ normal: string[];
803
+ };
804
+ optsGenericForAll: {
805
+ allowedExts?: string[] | undefined;
806
+ } & {
807
+ allowedExts?: string[] | undefined;
808
+ } & {
809
+ allowedExts?: string[] | undefined;
810
+ } & {
811
+ allowedExts?: string[] | undefined;
812
+ } & {
813
+ allowedExts?: string[] | undefined;
814
+ } & {
815
+ allowedExts?: string[] | undefined;
816
+ } & {
817
+ allowedExts?: string[] | undefined;
818
+ } & {
819
+ allowedExts?: string[] | undefined;
820
+ } & {
821
+ allowedExts?: string[] | undefined;
822
+ } & {
823
+ allowedExts?: string[] | undefined;
824
+ } & {
825
+ allowedExts?: string[] | undefined;
826
+ } & {
827
+ allowedExts?: string[] | undefined;
828
+ } & {
829
+ allowedExts?: string[] | undefined;
830
+ } & {
831
+ allowedExts?: string[] | undefined;
832
+ } & {
833
+ allowedExts?: string[] | undefined;
834
+ } & {
835
+ allowedExts?: string[] | undefined;
836
+ } & {
837
+ allowedExts?: string[] | undefined;
838
+ } & {
839
+ allowedExts?: string[] | undefined;
840
+ };
841
+ sqls: {
842
+ [k: string]: string;
843
+ } & {
844
+ [k: string]: string;
845
+ } & {
846
+ [k: string]: string;
847
+ } & {
848
+ [k: string]: string;
849
+ } & {
850
+ [k: string]: string;
851
+ } & {
852
+ [k: string]: string;
853
+ } & {
854
+ [k: string]: string;
855
+ } & {
856
+ [k: string]: string;
857
+ } & {
858
+ [k: string]: string;
859
+ } & {
860
+ [k: string]: string;
861
+ } & {
862
+ [k: string]: string;
863
+ } & {
864
+ [k: string]: string;
865
+ } & {
866
+ [k: string]: string;
867
+ } & {
868
+ [k: string]: string;
869
+ } & {
870
+ [k: string]: string;
871
+ } & {
872
+ [k: string]: string;
873
+ } & {
874
+ [k: string]: string;
875
+ } & {
876
+ [k: string]: string;
877
+ };
878
+ messages: {
879
+ [k: string]: string;
880
+ } & {
881
+ [k: string]: string;
882
+ } & {
883
+ [k: string]: string;
884
+ } & {
885
+ [k: string]: string;
886
+ } & {
887
+ [k: string]: string;
888
+ } & {
889
+ [k: string]: string;
890
+ } & {
891
+ [k: string]: string;
892
+ } & {
893
+ [k: string]: string;
894
+ } & {
895
+ [k: string]: string;
896
+ } & {
897
+ [k: string]: string;
898
+ } & {
899
+ [k: string]: string;
900
+ } & {
901
+ [k: string]: string;
902
+ } & {
903
+ [k: string]: string;
904
+ } & {
905
+ [k: string]: string;
906
+ } & {
907
+ [k: string]: string;
908
+ } & {
909
+ [k: string]: string;
910
+ } & {
911
+ [k: string]: string;
912
+ } & {
913
+ [k: string]: string;
914
+ };
915
+ dbUserNameExpr: string;
916
+ dbUserRolExpr: string;
917
+ specialValueWhenInsert: {
918
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
919
+ } & {
920
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
921
+ } & {
922
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
923
+ } & {
924
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
925
+ } & {
926
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
927
+ } & {
928
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
929
+ } & {
930
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
931
+ } & {
932
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
933
+ } & {
934
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
935
+ } & {
936
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
937
+ } & {
938
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
939
+ } & {
940
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
941
+ } & {
942
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
943
+ } & {
944
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
945
+ } & {
946
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
947
+ } & {
948
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
949
+ } & {
950
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
951
+ } & {
952
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
953
+ };
954
+ generateAndLoadTableDefs: (() => procesamiento.TableDefinitions) & (() => procesamiento.TableDefinitions);
955
+ generateBaseTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinition);
956
+ cargarGenerados: ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>) & ((client: procesamiento.Client) => Promise<string>);
957
+ getTableDefFunction: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
958
+ loadTableDef: ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction) & ((tableDef: procesamiento.TableDefinition) => procesamiento.TableDefinitionFunction);
959
+ generateAndLoadTableDef: ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction) & ((tablaDatos: procesamiento.TablaDatos) => procesamiento.TableDefinitionFunction);
960
+ getDbFunctions: ((opts: procesamiento.DumpOptions) => Promise<{
961
+ dumpText: string;
962
+ }[]>) & ((opts: procesamiento.DumpOptions) => Promise<{
963
+ dumpText: string;
964
+ }[]>);
965
+ clearCaches: (() => void) & (() => void);
966
+ start: ((opts?: procesamiento.StartOptions | undefined) => Promise<void>) & ((opts?: procesamiento.StartOptions | undefined) => Promise<void>);
967
+ getTables: (() => procesamiento.TableItemDef[]) & (() => procesamiento.TableItemDef[]);
968
+ appendToTableDefinition: ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void) & ((tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void) => void);
969
+ addUnloggedServices: ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void) & ((mainApp: procesamiento.ExpressPlus, baseUrl: string) => void);
970
+ inDbClient: (<T_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1>) => Promise<T_1>) & (<T>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T>) => Promise<T>);
971
+ inTransaction: (<T_2>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2>) => Promise<T_2>) & (<T_3>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_3>) => Promise<T_3>);
972
+ procedureDefCompleter: ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef) & ((procedureDef: procesamiento.ProcedureDef) => procesamiento.ProcedureDef);
973
+ tableDefAdapt: ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition) & ((tableDef: procesamiento.TableDefinition, context: procesamiento.Context) => procesamiento.TableDefinition);
974
+ pushApp: ((dirname: string) => void) & ((dirname: string) => void);
975
+ dumpDbSchemaPartial: ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
976
+ mainSql: string;
977
+ enancePart: string;
978
+ }>) & ((partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined) => Promise<{
979
+ mainSql: string;
980
+ enancePart: string;
981
+ }>);
982
+ configList: (() => (string | object)[]) & (() => (string | object)[]);
983
+ setStaticConfig: ((defConfigYamlString: string) => void) & ((defConfigYamlString: string) => void);
984
+ mainPage: ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
985
+ toHtmlDoc: () => string;
986
+ }) & ((req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined) => {
987
+ toHtmlDoc: () => string;
988
+ });
989
+ isThisProcedureAllowed: (<T_3_1>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
990
+ [key: string]: T_3_1;
991
+ }) => Promise<boolean>) & (<T_4>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
992
+ [key: string]: T_4;
993
+ }) => Promise<boolean>);
994
+ };
995
+ } & (new (...args: any[]) => {
996
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
997
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
998
+ configStaticConfig(): void;
999
+ tablasDatos: procesamiento.TablaDatos[];
1000
+ procedures: procesamiento.ProcedureDef[];
1001
+ procedure: {
1002
+ [key: string]: procesamiento.ProcedureDef;
1003
+ } & {
1004
+ [key: string]: procesamiento.ProcedureDef;
1005
+ } & {
1006
+ [key: string]: procesamiento.ProcedureDef;
1007
+ } & {
1008
+ [key: string]: procesamiento.ProcedureDef;
1009
+ } & {
1010
+ [key: string]: procesamiento.ProcedureDef;
1011
+ } & {
1012
+ [key: string]: procesamiento.ProcedureDef;
1013
+ } & {
1014
+ [key: string]: procesamiento.ProcedureDef;
1015
+ } & {
1016
+ [key: string]: procesamiento.ProcedureDef;
1017
+ };
1018
+ app: procesamiento.ExpressPlus;
1019
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1020
+ tableStructures: procesamiento.TableDefinitions;
1021
+ db: typeof pg;
1022
+ config: any;
1023
+ rootPath: string;
1024
+ caches: {
1025
+ procedures: {
1026
+ [k: string]: {
1027
+ timestamp: number;
1028
+ result: any;
1029
+ };
1030
+ };
1031
+ } & {
1032
+ procedures: {
1033
+ [k: string]: {
1034
+ timestamp: number;
1035
+ result: any;
1036
+ };
1037
+ };
1038
+ } & {
1039
+ procedures: {
1040
+ [k: string]: {
1041
+ timestamp: number;
1042
+ result: any;
1043
+ };
1044
+ };
1045
+ } & {
1046
+ procedures: {
1047
+ [k: string]: {
1048
+ timestamp: number;
1049
+ result: any;
1050
+ };
1051
+ };
1052
+ } & {
1053
+ procedures: {
1054
+ [k: string]: {
1055
+ timestamp: number;
1056
+ result: any;
1057
+ };
1058
+ };
1059
+ } & {
1060
+ procedures: {
1061
+ [k: string]: {
1062
+ timestamp: number;
1063
+ result: any;
1064
+ };
1065
+ };
1066
+ } & {
1067
+ procedures: {
1068
+ [k: string]: {
1069
+ timestamp: number;
1070
+ result: any;
1071
+ };
1072
+ };
1073
+ } & {
1074
+ procedures: {
1075
+ [k: string]: {
1076
+ timestamp: number;
1077
+ result: any;
1078
+ };
1079
+ };
1080
+ };
1081
+ fieldDomain: {
1082
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1083
+ } & {
1084
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1085
+ } & {
1086
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1087
+ } & {
1088
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1089
+ } & {
1090
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1091
+ } & {
1092
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1093
+ } & {
1094
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1095
+ } & {
1096
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1097
+ };
1098
+ exts: {
1099
+ img?: string[] | undefined;
1100
+ } & {
1101
+ img?: string[] | undefined;
1102
+ } & {
1103
+ img?: string[] | undefined;
1104
+ } & {
1105
+ img?: string[] | undefined;
1106
+ } & {
1107
+ img?: string[] | undefined;
1108
+ } & {
1109
+ img?: string[] | undefined;
1110
+ } & {
1111
+ img?: string[] | undefined;
1112
+ } & {
1113
+ img?: string[] | undefined;
1114
+ };
1115
+ optsGenericForAll: {
1116
+ allowedExts?: string[] | undefined;
1117
+ } & {
1118
+ allowedExts?: string[] | undefined;
1119
+ } & {
1120
+ allowedExts?: string[] | undefined;
1121
+ } & {
1122
+ allowedExts?: string[] | undefined;
1123
+ } & {
1124
+ allowedExts?: string[] | undefined;
1125
+ } & {
1126
+ allowedExts?: string[] | undefined;
1127
+ } & {
1128
+ allowedExts?: string[] | undefined;
1129
+ } & {
1130
+ allowedExts?: string[] | undefined;
1131
+ };
1132
+ sqls: {
1133
+ [k: string]: string;
1134
+ } & {
1135
+ [k: string]: string;
1136
+ } & {
1137
+ [k: string]: string;
1138
+ } & {
1139
+ [k: string]: string;
1140
+ } & {
1141
+ [k: string]: string;
1142
+ } & {
1143
+ [k: string]: string;
1144
+ } & {
1145
+ [k: string]: string;
1146
+ } & {
1147
+ [k: string]: string;
1148
+ };
1149
+ messages: {
1150
+ [k: string]: string;
1151
+ } & {
1152
+ [k: string]: string;
1153
+ } & {
1154
+ [k: string]: string;
1155
+ } & {
1156
+ [k: string]: string;
1157
+ } & {
1158
+ [k: string]: string;
1159
+ } & {
1160
+ [k: string]: string;
1161
+ } & {
1162
+ [k: string]: string;
1163
+ } & {
1164
+ [k: string]: string;
1165
+ };
1166
+ dbUserNameExpr: string;
1167
+ dbUserRolExpr: string;
1168
+ specialValueWhenInsert: {
1169
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1170
+ } & {
1171
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1172
+ } & {
1173
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1174
+ } & {
1175
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1176
+ } & {
1177
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1178
+ } & {
1179
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1180
+ } & {
1181
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1182
+ } & {
1183
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1184
+ };
1185
+ }) & (new (...args: any[]) => {
1186
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1187
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1188
+ configStaticConfig(): void;
1189
+ getMenu(): procesamiento.MenuDefinition;
1190
+ prepareGetTables(): void;
1191
+ generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1192
+ tablasDatos: procesamiento.TablaDatos[];
1193
+ procedures: procesamiento.ProcedureDef[];
1194
+ procedure: {
1195
+ [key: string]: procesamiento.ProcedureDef;
1196
+ } & {
1197
+ [key: string]: procesamiento.ProcedureDef;
1198
+ } & {
1199
+ [key: string]: procesamiento.ProcedureDef;
1200
+ } & {
1201
+ [key: string]: procesamiento.ProcedureDef;
1202
+ };
1203
+ app: procesamiento.ExpressPlus;
1204
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1205
+ tableStructures: procesamiento.TableDefinitions;
1206
+ db: typeof pg;
1207
+ config: any;
1208
+ rootPath: string;
1209
+ caches: {
1210
+ procedures: {
1211
+ [k: string]: {
1212
+ timestamp: number;
1213
+ result: any;
1214
+ };
1215
+ };
1216
+ } & {
1217
+ procedures: {
1218
+ [k: string]: {
1219
+ timestamp: number;
1220
+ result: any;
1221
+ };
1222
+ };
1223
+ } & {
1224
+ procedures: {
1225
+ [k: string]: {
1226
+ timestamp: number;
1227
+ result: any;
1228
+ };
1229
+ };
1230
+ } & {
1231
+ procedures: {
1232
+ [k: string]: {
1233
+ timestamp: number;
1234
+ result: any;
1235
+ };
1236
+ };
1237
+ };
1238
+ fieldDomain: {
1239
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1240
+ } & {
1241
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1242
+ } & {
1243
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1244
+ } & {
1245
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1246
+ };
1247
+ exts: {
1248
+ img?: string[] | undefined;
1249
+ } & {
1250
+ img?: string[] | undefined;
1251
+ } & {
1252
+ img?: string[] | undefined;
1253
+ } & {
1254
+ img?: string[] | undefined;
1255
+ };
1256
+ optsGenericForAll: {
1257
+ allowedExts?: string[] | undefined;
1258
+ } & {
1259
+ allowedExts?: string[] | undefined;
1260
+ } & {
1261
+ allowedExts?: string[] | undefined;
1262
+ } & {
1263
+ allowedExts?: string[] | undefined;
1264
+ };
1265
+ sqls: {
1266
+ [k: string]: string;
1267
+ } & {
1268
+ [k: string]: string;
1269
+ } & {
1270
+ [k: string]: string;
1271
+ } & {
1272
+ [k: string]: string;
1273
+ };
1274
+ messages: {
1275
+ [k: string]: string;
1276
+ } & {
1277
+ [k: string]: string;
1278
+ } & {
1279
+ [k: string]: string;
1280
+ } & {
1281
+ [k: string]: string;
1282
+ };
1283
+ dbUserNameExpr: string;
1284
+ dbUserRolExpr: string;
1285
+ specialValueWhenInsert: {
1286
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1287
+ } & {
1288
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1289
+ } & {
1290
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1291
+ } & {
1292
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1293
+ };
1294
+ }) & (new (...args: any[]) => {
1295
+ configStaticConfig(): void;
1296
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1297
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1298
+ generateAndLoadTableDefs(): procesamiento.TableDefinitions;
1299
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1300
+ prepareGetTables(): void;
1301
+ tablasDatos: procesamiento.TablaDatos[];
1302
+ cargarGenerados(client: procesamiento.Client): Promise<string>;
1303
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1304
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1305
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1306
+ procedures: procesamiento.ProcedureDef[];
1307
+ procedure: {
1308
+ [key: string]: procesamiento.ProcedureDef;
1309
+ } & {
1310
+ [key: string]: procesamiento.ProcedureDef;
1311
+ };
1312
+ app: procesamiento.ExpressPlus;
1313
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1314
+ tableStructures: procesamiento.TableDefinitions;
1315
+ db: typeof pg;
1316
+ config: any;
1317
+ rootPath: string;
1318
+ caches: {
1319
+ procedures: {
1320
+ [k: string]: {
1321
+ timestamp: number;
1322
+ result: any;
1323
+ };
1324
+ };
1325
+ } & {
1326
+ procedures: {
1327
+ [k: string]: {
1328
+ timestamp: number;
1329
+ result: any;
1330
+ };
1331
+ };
1332
+ };
1333
+ fieldDomain: {
1334
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1335
+ } & {
1336
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1337
+ };
1338
+ exts: {
1339
+ img?: string[] | undefined;
1340
+ } & {
1341
+ img?: string[] | undefined;
1342
+ };
1343
+ optsGenericForAll: {
1344
+ allowedExts?: string[] | undefined;
1345
+ } & {
1346
+ allowedExts?: string[] | undefined;
1347
+ };
1348
+ sqls: {
1349
+ [k: string]: string;
1350
+ } & {
1351
+ [k: string]: string;
1352
+ };
1353
+ messages: {
1354
+ [k: string]: string;
1355
+ } & {
1356
+ [k: string]: string;
1357
+ };
1358
+ dbUserNameExpr: string;
1359
+ dbUserRolExpr: string;
1360
+ specialValueWhenInsert: {
1361
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1362
+ } & {
1363
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1364
+ };
1365
+ }) & (new (...args: any[]) => {
1366
+ configStaticConfig(): void;
1367
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1368
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1369
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1370
+ prepareGetTables(): void;
1371
+ tablasDatos: procesamiento.TablaDatos[];
1372
+ cargarGenerados(client: procesamiento.Client): Promise<string>;
1373
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1374
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1375
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1376
+ procedures: procesamiento.ProcedureDef[];
1377
+ procedure: {
1378
+ [key: string]: procesamiento.ProcedureDef;
1379
+ } & {
1380
+ [key: string]: procesamiento.ProcedureDef;
1381
+ };
1382
+ app: procesamiento.ExpressPlus;
1383
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1384
+ tableStructures: procesamiento.TableDefinitions;
1385
+ db: typeof pg;
1386
+ config: any;
1387
+ rootPath: string;
1388
+ caches: {
1389
+ procedures: {
1390
+ [k: string]: {
1391
+ timestamp: number;
1392
+ result: any;
1393
+ };
1394
+ };
1395
+ } & {
1396
+ procedures: {
1397
+ [k: string]: {
1398
+ timestamp: number;
1399
+ result: any;
1400
+ };
1401
+ };
1402
+ };
1403
+ fieldDomain: {
1404
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1405
+ } & {
1406
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1407
+ };
1408
+ exts: {
1409
+ img?: string[] | undefined;
1410
+ } & {
1411
+ img?: string[] | undefined;
1412
+ };
1413
+ optsGenericForAll: {
1414
+ allowedExts?: string[] | undefined;
1415
+ } & {
1416
+ allowedExts?: string[] | undefined;
1417
+ };
1418
+ sqls: {
1419
+ [k: string]: string;
1420
+ } & {
1421
+ [k: string]: string;
1422
+ };
1423
+ messages: {
1424
+ [k: string]: string;
1425
+ } & {
1426
+ [k: string]: string;
1427
+ };
1428
+ dbUserNameExpr: string;
1429
+ dbUserRolExpr: string;
1430
+ specialValueWhenInsert: {
1431
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1432
+ } & {
1433
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1434
+ };
1435
+ }) & {
1436
+ new (...args: any[]): {
1437
+ tablasDatos: procesamiento.TablaDatos[];
1438
+ configStaticConfig(): void;
1439
+ cargarGenerados(client: procesamiento.Client): Promise<string>;
1440
+ postConfig(): Promise<void>;
1441
+ generateBaseTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinition;
1442
+ getTableDefFunction(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1443
+ loadTableDef(tableDef: procesamiento.TableDefinition): procesamiento.TableDefinitionFunction;
1444
+ generateAndLoadTableDef(tablaDatos: procesamiento.TablaDatos): procesamiento.TableDefinitionFunction;
1445
+ clientIncludes(req: procesamiento.Request, hideBEPlusInclusions: procesamiento.OptsClientPage): procesamiento.ClientModuleDefinition[];
1446
+ getMenu(): procesamiento.MenuDefinition;
1447
+ prepareGetTables(): void;
1448
+ checkDatabaseStructure(client: procesamiento.Client): Promise<void>;
1449
+ getDbFunctions(opts: procesamiento.DumpOptions): Promise<{
1450
+ dumpText: string;
1451
+ }[]>;
1452
+ procedures: procesamiento.ProcedureDef[];
1453
+ procedure: {
1454
+ [key: string]: procesamiento.ProcedureDef;
1455
+ };
1456
+ app: procesamiento.ExpressPlus;
1457
+ getTableDefinition: procesamiento.TableDefinitionsGetters;
1458
+ tableStructures: procesamiento.TableDefinitions;
1459
+ db: typeof pg;
1460
+ config: any;
1461
+ rootPath: string;
1462
+ caches: {
1463
+ procedures: {
1464
+ [k: string]: {
1465
+ timestamp: number;
1466
+ result: any;
1467
+ };
1468
+ };
1469
+ };
1470
+ fieldDomain: {
1471
+ [k: string]: Partial<procesamiento.FieldDefinition>;
1472
+ };
1473
+ exts: {
1474
+ img?: string[] | undefined;
1475
+ };
1476
+ optsGenericForAll: {
1477
+ allowedExts?: string[] | undefined;
1478
+ };
1479
+ sqls: {
1480
+ [k: string]: string;
1481
+ };
1482
+ messages: {
1483
+ [k: string]: string;
1484
+ };
1485
+ dbUserNameExpr: string;
1486
+ dbUserRolExpr: string;
1487
+ specialValueWhenInsert: {
1488
+ [k: string]: (context: procesamiento.ProcedureContext, defField: procesamiento.FieldDefinition, parameters: object) => any;
1489
+ };
1490
+ clearCaches(): void;
1491
+ start(opts?: procesamiento.StartOptions | undefined): Promise<void>;
1492
+ getTables(): procesamiento.TableItemDef[];
1493
+ appendToTableDefinition(tableName: string, appenderFunction: (tableDef: procesamiento.TableDefinition, context?: procesamiento.TableContext | undefined) => void): void;
1494
+ getContext(req: procesamiento.Request): procesamiento.Context;
1495
+ addSchrödingerServices(mainApp: procesamiento.ExpressPlus, baseUrl: string): void;
1496
+ addUnloggedServices(mainApp: procesamiento.ExpressPlus, baseUrl: string): void;
1497
+ addLoggedServices(): void;
1498
+ getProcedures(): Promise<procesamiento.ProcedureDef[]>;
1499
+ inDbClient<T_1_1>(req: procesamiento.Request | null, doThisWithDbClient: (client: procesamiento.Client) => Promise<T_1_1>): Promise<T_1_1>;
1500
+ inTransaction<T_2_1>(req: procesamiento.Request | null, doThisWithDbTransaction: (client: procesamiento.Client) => Promise<T_2_1>): Promise<T_2_1>;
1501
+ procedureDefCompleter(procedureDef: procesamiento.ProcedureDef): procesamiento.ProcedureDef;
1502
+ tableDefAdapt(tableDef: procesamiento.TableDefinition, context: procesamiento.Context): procesamiento.TableDefinition;
1503
+ pushApp(dirname: string): void;
1504
+ dumpDbSchemaPartial(partialTableStructures: procesamiento.TableDefinitions, opts?: procesamiento.DumpOptions | undefined): Promise<{
1505
+ mainSql: string;
1506
+ enancePart: string;
1507
+ }>;
1508
+ getContextForDump(): procesamiento.ContextForDump;
1509
+ getClientSetupForSendToFrontEnd(req: procesamiento.Request): procesamiento.ClientSetup;
1510
+ configList(): (string | object)[];
1511
+ setStaticConfig(defConfigYamlString: string): void;
1512
+ mainPage(req: {} | procesamiento.Request, offlineMode?: boolean | undefined, opts?: procesamiento.OptsClientPage | undefined): {
1513
+ toHtmlDoc: () => string;
1514
+ };
1515
+ isThisProcedureAllowed<T_3>(context: procesamiento.Context, procedureDef: procesamiento.ProcedureDef, params: {
1516
+ [key: string]: T_3;
1517
+ }): Promise<boolean>;
1518
+ };
1519
+ prefixTableName(tableName: string, prefix: string): string;
1520
+ } & typeof procesamiento.AppBackend;
503
1521
  export declare type AppAppDmEncuType = InstanceType<typeof AppDmEncu>;