backend-plus 2.5.2-betha.22 → 2.5.2-betha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +263 -263
- package/for-client/my-localdb.js +2 -2
- package/for-client/my-websqldb.js +2 -2
- package/install/semver_to_decimal-fun.sql +11 -11
- package/lib/backend-plus.d.ts +7 -4
- package/lib/backend-plus.js +4 -2
- package/lib/table-def-adapt.js +364 -364
- package/lib/tables/table-tokens.js +28 -28
- package/package.json +137 -137
- package/unlogged/compatibilidad.js +161 -161
package/lib/backend-plus.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export interface ProcedureDef<T = any> {
|
|
|
56
56
|
forExport?:{
|
|
57
57
|
fileName?:string
|
|
58
58
|
csvFileName?:string
|
|
59
|
+
generarInmediato?:boolean
|
|
59
60
|
}
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -179,7 +180,7 @@ export type SequenceMadMaxDefinition = {
|
|
|
179
180
|
}
|
|
180
181
|
export type ExportMetadataDefinition={ /* TODO: define */ }
|
|
181
182
|
export type PostInputOptions='upperSpanish' | 'upperWithoutDiacritics' | 'parseDecimal'
|
|
182
|
-
export
|
|
183
|
+
export interface FieldDefinition extends EditableDbDefinition {
|
|
183
184
|
name:string
|
|
184
185
|
typeName:PgKnownTypes|'ARRAY:text'
|
|
185
186
|
label?:string
|
|
@@ -224,7 +225,7 @@ export type FieldDefinition = EditableDbDefinition & {
|
|
|
224
225
|
postInput?:PostInputOptions
|
|
225
226
|
sequence?: SequenceDefinition|SequenceMadMaxDefinition
|
|
226
227
|
}
|
|
227
|
-
export
|
|
228
|
+
export interface EditableDbDefinition {
|
|
228
229
|
editable?:boolean
|
|
229
230
|
allow?:{
|
|
230
231
|
update?:boolean
|
|
@@ -241,13 +242,15 @@ export type FieldsForConnect = (string | {source:string, target:string})[]
|
|
|
241
242
|
export type FieldsForConnectDetailTable = (string | {source:string, target:string, nullMeansAll?:boolean} | {value:any, target:string})[]
|
|
242
243
|
|
|
243
244
|
export type FkActions = 'no action'|'restrict'|'cascade'|'set null'|'set default';
|
|
244
|
-
export
|
|
245
|
+
export interface ForeignKey {
|
|
245
246
|
references:string,
|
|
246
247
|
fields:FieldsForConnect,
|
|
247
248
|
onUpdate?: FkActions,
|
|
248
249
|
onDelete?: FkActions,
|
|
249
250
|
displayAllFields?: boolean,
|
|
250
|
-
alias?:string,
|
|
251
|
+
alias?:string,
|
|
252
|
+
abr?:string,
|
|
253
|
+
label?:string,
|
|
251
254
|
displayFields?:string[],
|
|
252
255
|
consName?:string,
|
|
253
256
|
initiallyDeferred?:boolean
|
package/lib/backend-plus.js
CHANGED
|
@@ -3384,8 +3384,10 @@ AppBackend.prototype.exportacionesGenerico = async function exportacionesGeneric
|
|
|
3384
3384
|
}
|
|
3385
3385
|
}
|
|
3386
3386
|
}
|
|
3387
|
-
|
|
3388
|
-
|
|
3387
|
+
if (!procedureDef.forExport.generarInmediato) {
|
|
3388
|
+
await buscarGenerados(csvFileName);
|
|
3389
|
+
await buscarGenerados(fileName);
|
|
3390
|
+
}
|
|
3389
3391
|
if(hayGenerados.length>0){
|
|
3390
3392
|
return hayGenerados;
|
|
3391
3393
|
}
|