dmencu 0.1.7 → 0.1.11

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