procesamiento 2.0.10 → 2.0.12

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.
@@ -148,6 +148,7 @@ export declare function emergeAppProcesamiento<T extends Constructor<AppConsiste
148
148
  } & {
149
149
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
150
150
  };
151
+ specialSqlDefaultExpressions: Record<string, string>;
151
152
  i18n: {
152
153
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
153
154
  } & {
@@ -165,6 +166,7 @@ export declare function emergeAppProcesamiento<T extends Constructor<AppConsiste
165
166
  } & {
166
167
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
167
168
  };
169
+ activeSkinFiles: Set<string>;
168
170
  /* mixin-patch: generateBaseTableDef: ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition) & ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition); */
169
171
  /* mixin-patch: cargarGenerados: ((client: import("pg-promise-strict").Client) => Promise<string>) & ((client: import("pg-promise-strict").Client) => Promise<string>); */
170
172
  /* mixin-patch: getTableDefFunction: ((tableDef: import("backend-plus").TableDefinition) => import("backend-plus").TableDefinitionFunction) & ((tableDef: import("backend-plus").TableDefinition) => import("backend-plus").TableDefinitionFunction); */
@@ -221,7 +223,13 @@ export declare function emergeAppProcesamiento<T extends Constructor<AppConsiste
221
223
  message: string;
222
224
  fun: () => Promise<void>;
223
225
  }) => void); */
224
- /* mixin-patch: shutdownBackend: (() => Promise<void>) & (() => Promise<void>); */
226
+ /* mixin-patch: shutdownBackend: ((opts?: {
227
+ skipTurnOff?: boolean;
228
+ onlyTurnOff?: boolean;
229
+ }) => Promise<void>) & ((opts?: {
230
+ skipTurnOff?: boolean;
231
+ onlyTurnOff?: boolean;
232
+ }) => Promise<void>); */
225
233
  /* mixin-patch: setLog: ((opts: {
226
234
  until: string;
227
235
  results?: boolean;
@@ -238,6 +246,7 @@ export declare function emergeAppProcesamiento<T extends Constructor<AppConsiste
238
246
  prepareTransformationSql: string[];
239
247
  endTransformationSql: string[];
240
248
  }>); */
249
+ /* mixin-patch: transformInput: (<T_1>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T_1) => T_1) & (<T_1>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T_1) => T_1); */
241
250
  };
242
251
  } & T;
243
252
  export declare var AppProcesamiento: {
@@ -387,6 +396,7 @@ export declare var AppProcesamiento: {
387
396
  } & {
388
397
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
389
398
  };
399
+ specialSqlDefaultExpressions: Record<string, string>;
390
400
  i18n: {
391
401
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
392
402
  } & {
@@ -404,6 +414,7 @@ export declare var AppProcesamiento: {
404
414
  } & {
405
415
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
406
416
  };
417
+ activeSkinFiles: Set<string>;
407
418
  /* mixin-patch: generateBaseTableDef: ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition) & ((tablaDatos: import("consistencias").TablaDatos) => import("backend-plus").TableDefinition); */
408
419
  /* mixin-patch: cargarGenerados: ((client: import("pg-promise-strict").Client) => Promise<string>) & ((client: import("pg-promise-strict").Client) => Promise<string>); */
409
420
  /* mixin-patch: getTableDefFunction: ((tableDef: import("backend-plus").TableDefinition) => import("backend-plus").TableDefinitionFunction) & ((tableDef: import("backend-plus").TableDefinition) => import("backend-plus").TableDefinitionFunction); */
@@ -460,7 +471,13 @@ export declare var AppProcesamiento: {
460
471
  message: string;
461
472
  fun: () => Promise<void>;
462
473
  }) => void); */
463
- /* mixin-patch: shutdownBackend: (() => Promise<void>) & (() => Promise<void>); */
474
+ /* mixin-patch: shutdownBackend: ((opts?: {
475
+ skipTurnOff?: boolean;
476
+ onlyTurnOff?: boolean;
477
+ }) => Promise<void>) & ((opts?: {
478
+ skipTurnOff?: boolean;
479
+ onlyTurnOff?: boolean;
480
+ }) => Promise<void>); */
464
481
  /* mixin-patch: setLog: ((opts: {
465
482
  until: string;
466
483
  results?: boolean;
@@ -477,6 +494,7 @@ export declare var AppProcesamiento: {
477
494
  prepareTransformationSql: string[];
478
495
  endTransformationSql: string[];
479
496
  }>); */
497
+ /* mixin-patch: transformInput: (<T_1>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T_1) => T_1) & (<T>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T) => T); */
480
498
  };
481
499
  } & (new (...args: any[]) => {
482
500
  config: import("consistencias").ConsistenciasAppConfig;
@@ -564,6 +582,7 @@ export declare var AppProcesamiento: {
564
582
  } & {
565
583
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
566
584
  };
585
+ specialSqlDefaultExpressions: Record<string, string>;
567
586
  i18n: {
568
587
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
569
588
  } & {
@@ -573,6 +592,7 @@ export declare var AppProcesamiento: {
573
592
  } & {
574
593
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
575
594
  };
595
+ activeSkinFiles: Set<string>;
576
596
  }) & (new (...args: any[]) => {
577
597
  configStaticConfig(): void;
578
598
  getProcedures(): Promise<import("backend-plus").ProcedureDef<any>[]>;
@@ -632,15 +652,17 @@ export declare var AppProcesamiento: {
632
652
  } & {
633
653
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
634
654
  };
655
+ specialSqlDefaultExpressions: Record<string, string>;
635
656
  i18n: {
636
657
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
637
658
  } & {
638
659
  messages: Record<import("backend-plus").LangId, Record<string, string>>;
639
660
  };
661
+ activeSkinFiles: Set<string>;
640
662
  }) & (new (...args: any[]) => {
641
663
  configStaticConfig(): void;
642
664
  generateBaseTableDef(tablaDatos: import("consistencias").TablaDatos): import("backend-plus").TableDefinition;
643
- getProcedures(): Promise<import("backend-plus").ProcedureDef[]>;
665
+ getProcedures(): Promise<import("backend-plus").ProcedureDef<any>[]>;
644
666
  clientIncludes(req: Request, hideBEPlusInclusions: OptsClientPage): import("backend-plus").ClientModuleDefinition[];
645
667
  prepareGetTables(): void;
646
668
  tablasDatos: import("consistencias").TablaDatos[];
@@ -650,193 +672,33 @@ export declare var AppProcesamiento: {
650
672
  generateAndLoadTableDef(tablaDatos: import("consistencias").TablaDatos): import("backend-plus").TableDefinitionFunction;
651
673
  procedures: import("backend-plus").ProcedureDef[];
652
674
  procedure: {
653
- [key: string]: import("backend-plus").ProcedureDef;
675
+ [key: string]: import("backend-plus").ProcedureDef<any>;
654
676
  } & {
655
- [key: string]: import("backend-plus").ProcedureDef;
677
+ [key: string]: import("backend-plus").ProcedureDef<any>;
656
678
  };
657
679
  app: import("backend-plus").ExpressPlus;
658
680
  getTableDefinition: import("backend-plus").TableDefinitionsGetters;
659
681
  tableStructures: import("backend-plus").TableDefinitions;
660
- db: typeof import("pg-promise-strict");
661
- config: any;
682
+ db: import("backend-plus").MotorDb;
683
+ config: import("backend-plus").AppConfig;
662
684
  rootPath: string;
663
- caches: {
664
- procedures: {
665
- [k: string]: {
666
- timestamp: number;
667
- result: any;
668
- };
669
- };
670
- } & {
671
- procedures: {
672
- [k: string]: {
673
- timestamp: number;
674
- result: any;
675
- };
676
- };
677
- };
685
+ caches: import("backend-plus").Caches;
678
686
  fieldDomain: {
679
- [k: string]: Partial<import("backend-plus").EditableDbDefinition & {
680
- name: string;
681
- typeName: import("backend-plus").PgKnownTypes;
682
- label?: string | undefined;
683
- title?: string | undefined;
684
- nullable?: boolean | undefined;
685
- dbNullable?: boolean | undefined;
686
- defaultValue?: any;
687
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
688
- clientSide?: string | undefined;
689
- isName?: boolean | undefined;
690
- isPk?: number | undefined;
691
- serverSide?: boolean | undefined;
692
- inTable?: boolean | undefined;
693
- allowEmtpyText?: boolean | undefined;
694
- mobileInputType?: string | undefined;
695
- extraRow?: number | undefined;
696
- inexactNumber?: number | undefined;
697
- visible?: boolean | undefined;
698
- width?: number | undefined;
699
- references?: string | undefined;
700
- referencesField?: string | undefined;
701
- aggregate?: string | undefined;
702
- specialDefaultValue?: string | undefined;
703
- specialValueWhenInsert?: string | undefined;
704
- exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
705
- description?: string | undefined;
706
- dataLength?: number | undefined;
707
- options?: (string | {
708
- option: string | number;
709
- label: string;
710
- })[] | undefined;
711
- inView?: boolean | undefined;
712
- sortMethod?: string | undefined;
713
- generatedAs?: string | undefined;
714
- }> | Partial<import("backend-plus").EditableDbDefinition & {
715
- name: string;
716
- typeName: import("backend-plus").PgKnownTypes;
717
- label?: string | undefined;
718
- title?: string | undefined;
719
- nullable?: boolean | undefined;
720
- dbNullable?: boolean | undefined;
721
- defaultValue?: any;
722
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
723
- clientSide?: string | undefined;
724
- isName?: boolean | undefined;
725
- isPk?: number | undefined;
726
- serverSide?: boolean | undefined;
727
- inTable?: boolean | undefined;
728
- allowEmtpyText?: boolean | undefined;
729
- mobileInputType?: string | undefined;
730
- extraRow?: number | undefined;
731
- inexactNumber?: number | undefined;
732
- visible?: boolean | undefined;
733
- width?: number | undefined;
734
- references?: string | undefined;
735
- referencesField?: string | undefined;
736
- aggregate?: string | undefined;
737
- specialDefaultValue?: string | undefined;
738
- specialValueWhenInsert?: string | undefined;
739
- exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
740
- description?: string | undefined;
741
- dataLength?: number | undefined;
742
- options?: (string | {
743
- option: string | number;
744
- label: string;
745
- })[] | undefined;
746
- inView?: boolean | undefined;
747
- sortMethod?: string | undefined;
748
- generatedAs?: string | undefined;
749
- } & {
750
- sequence: import("backend-plus").SequenceDefinition;
751
- nullable: true;
752
- editable: false;
753
- }>;
687
+ [k: string]: Partial<import("backend-plus").FieldDefinition>;
754
688
  } & {
755
- [k: string]: Partial<import("backend-plus").EditableDbDefinition & {
756
- name: string;
757
- typeName: import("backend-plus").PgKnownTypes;
758
- label?: string | undefined;
759
- title?: string | undefined;
760
- nullable?: boolean | undefined;
761
- dbNullable?: boolean | undefined;
762
- defaultValue?: any;
763
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
764
- clientSide?: string | undefined;
765
- isName?: boolean | undefined;
766
- isPk?: number | undefined;
767
- serverSide?: boolean | undefined;
768
- inTable?: boolean | undefined;
769
- allowEmtpyText?: boolean | undefined;
770
- mobileInputType?: string | undefined;
771
- extraRow?: number | undefined;
772
- inexactNumber?: number | undefined;
773
- visible?: boolean | undefined;
774
- width?: number | undefined;
775
- references?: string | undefined;
776
- referencesField?: string | undefined;
777
- aggregate?: string | undefined;
778
- specialDefaultValue?: string | undefined;
779
- specialValueWhenInsert?: string | undefined;
780
- exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
781
- description?: string | undefined;
782
- dataLength?: number | undefined;
783
- options?: (string | {
784
- option: string | number;
785
- label: string;
786
- })[] | undefined;
787
- inView?: boolean | undefined;
788
- sortMethod?: string | undefined;
789
- generatedAs?: string | undefined;
790
- }> | Partial<import("backend-plus").EditableDbDefinition & {
791
- name: string;
792
- typeName: import("backend-plus").PgKnownTypes;
793
- label?: string | undefined;
794
- title?: string | undefined;
795
- nullable?: boolean | undefined;
796
- dbNullable?: boolean | undefined;
797
- defaultValue?: any;
798
- defaultDbValue?: "current_timestamp" | "current_user" | "session_user" | undefined;
799
- clientSide?: string | undefined;
800
- isName?: boolean | undefined;
801
- isPk?: number | undefined;
802
- serverSide?: boolean | undefined;
803
- inTable?: boolean | undefined;
804
- allowEmtpyText?: boolean | undefined;
805
- mobileInputType?: string | undefined;
806
- extraRow?: number | undefined;
807
- inexactNumber?: number | undefined;
808
- visible?: boolean | undefined;
809
- width?: number | undefined;
810
- references?: string | undefined;
811
- referencesField?: string | undefined;
812
- aggregate?: string | undefined;
813
- specialDefaultValue?: string | undefined;
814
- specialValueWhenInsert?: string | undefined;
815
- exportMetadata?: import("backend-plus").ExportMetadataDefinition | undefined;
816
- description?: string | undefined;
817
- dataLength?: number | undefined;
818
- options?: (string | {
819
- option: string | number;
820
- label: string;
821
- })[] | undefined;
822
- inView?: boolean | undefined;
823
- sortMethod?: string | undefined;
824
- generatedAs?: string | undefined;
825
- } & {
826
- sequence: import("backend-plus").SequenceDefinition;
827
- nullable: true;
828
- editable: false;
829
- }>;
689
+ [k: string]: Partial<import("backend-plus").FieldDefinition>;
830
690
  };
831
691
  exts: {
832
- img?: string[] | undefined;
692
+ img: string[];
693
+ normal: string[];
833
694
  } & {
834
- img?: string[] | undefined;
695
+ img: string[];
696
+ normal: string[];
835
697
  };
836
698
  optsGenericForAll: {
837
- allowedExts?: string[] | undefined;
699
+ allowedExts?: string[];
838
700
  } & {
839
- allowedExts?: string[] | undefined;
701
+ allowedExts?: string[];
840
702
  };
841
703
  sqls: {
842
704
  [k: string]: string;
@@ -850,6 +712,18 @@ export declare var AppProcesamiento: {
850
712
  };
851
713
  dbUserNameExpr: string;
852
714
  dbUserRolExpr: string;
715
+ specialValueWhenInsert: {
716
+ [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
717
+ } & {
718
+ [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
719
+ };
720
+ specialSqlDefaultExpressions: Record<string, string>;
721
+ i18n: {
722
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
723
+ } & {
724
+ messages: Record<import("backend-plus").LangId, Record<string, string>>;
725
+ };
726
+ activeSkinFiles: Set<string>;
853
727
  }) & {
854
728
  new (...args: any[]): {
855
729
  tablasDatos: import("consistencias").TablaDatos[];
@@ -899,6 +773,7 @@ export declare var AppProcesamiento: {
899
773
  specialValueWhenInsert: {
900
774
  [k: string]: (context: import("backend-plus").ProcedureContext, defField: import("backend-plus").FieldDefinition, parameters: object) => any;
901
775
  };
776
+ specialSqlDefaultExpressions: Record<string, string>;
902
777
  clearCaches(): void;
903
778
  start(opts?: import("backend-plus").StartOptions): Promise<void>;
904
779
  getTables(): import("backend-plus").TableItemDef[];
@@ -938,7 +813,10 @@ export declare var AppProcesamiento: {
938
813
  message: string;
939
814
  fun: () => Promise<void>;
940
815
  }): void;
941
- shutdownBackend(): Promise<void>;
816
+ shutdownBackend(opts?: {
817
+ skipTurnOff?: boolean;
818
+ onlyTurnOff?: boolean;
819
+ }): Promise<void>;
942
820
  setLog(opts: {
943
821
  until: string;
944
822
  results?: boolean;
@@ -948,6 +826,8 @@ export declare var AppProcesamiento: {
948
826
  prepareTransformationSql: string[];
949
827
  endTransformationSql: string[];
950
828
  }>;
829
+ activeSkinFiles: Set<string>;
830
+ transformInput: <T_1>(fieldDefinition: import("backend-plus").FieldDefinitionInternal, value: T_1) => T_1;
951
831
  };
952
832
  prefixTableName(tableName: string, prefix: string): string;
953
833
  } & typeof AppBackend;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "procesamiento",
3
3
  "description": "Módulo de Procesamiento",
4
- "version": "2.0.10",
4
+ "version": "2.0.12",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "contributors": [
7
7
  "Raquel N Salva <raquelzssalva@gmail.com>",
@@ -16,8 +16,8 @@
16
16
  "dist"
17
17
  ],
18
18
  "dependencies": {
19
- "consistencias": "^2.0.9",
20
- "datos-ext": "^1.0.19"
19
+ "consistencias": "^2.0.11",
20
+ "datos-ext": "^1.3.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "mixin-patch": "~0.4.1",
@@ -1 +0,0 @@
1
- {"root":["../../src/client/procesamiento.ts"],"version":"5.8.3"}
@@ -1 +0,0 @@
1
- {"root":["../../src/server/app-procesamiento.ts","../../src/server/def-config.ts","../../src/server/procedures-procesamiento.ts","../../src/server/server-procesamiento.ts","../../src/server/types-procesamiento.ts"],"errors":true,"version":"5.8.3"}