backend-plus 2.1.3 → 2.1.5

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.
@@ -341,6 +341,7 @@ export interface TableDefinitions {
341
341
  [k: string]: TableDefinitionFunction
342
342
  }
343
343
  export interface ClientSetup {
344
+ config:AppConfigClientSetup
344
345
  setup:Record<string, any>
345
346
  procedures:ProcedureDef[]
346
347
  }
@@ -382,11 +383,8 @@ export interface AppConfigBin { // executable
382
383
  "zip-fixed-parameters":string // fixed parameters to pass to zipper
383
384
  }
384
385
 
385
- export interface AppConfig {
386
- package: {
387
- version: string
388
- }
389
- server: {
386
+ export interface AppConfigServer
387
+ {
390
388
  "base-url": string // rool path in the url
391
389
  port: number // port of the API services
392
390
  "session-store": string // strategies to store session info
@@ -396,7 +394,8 @@ export interface AppConfig {
396
394
  bitacoraSchema: string
397
395
  bitacoraTableName: string
398
396
  }
399
- db: {
397
+ export interface AppConfigDb
398
+ {
400
399
  motor: 'postgresql'
401
400
  database: string
402
401
  user: string
@@ -409,7 +408,8 @@ export interface AppConfig {
409
408
  no_login: boolean // if no login is needed. Used only for all public sites
410
409
  "downloadable-backup-path": string // OS path of the encrypted downloadable backup
411
410
  }
412
- login: {
411
+ export interface AppConfigLogin
412
+ {
413
413
  schema: string // schema of the user table
414
414
  table: string // user table
415
415
  userFieldname: string // fieldname in user table that stores the user name
@@ -437,7 +437,8 @@ export interface AppConfig {
437
437
  }
438
438
  "double-dragon": boolean // app user must match db user
439
439
  }
440
- install: {
440
+ export interface AppConfigInstall
441
+ {
441
442
  "table-data-dir": string // SO path to the .tab files in the db creation script
442
443
  dump: { // configuration of --dump-db, the db creation script
443
444
  "drop-his": boolean // include drop schema his in the db creation script
@@ -459,9 +460,29 @@ export interface AppConfig {
459
460
  }
460
461
  }
461
462
  }
462
- "client-setup": { // front-end config
463
+ export interface AppConfigClientSetup // front-end config
464
+ {
463
465
  title:string // title of the app (common sufix of the title bar)
466
+ lang:string
467
+ version?:string
468
+ menu?:boolean
469
+ "background-img"?:string
470
+ devel?:boolean
471
+ deviceWidthForMobile?:string
472
+ "initial-scale"?:string
473
+ "minimum-scale"?:string
474
+ "maximum-scale"?:string
475
+ "user-scalable"?:string
476
+ }
477
+ export interface AppConfig {
478
+ package: {
479
+ version: string
464
480
  }
481
+ server: AppConfigServer
482
+ db: AppConfigDb
483
+ login: AppConfigLogin
484
+ install: AppConfigInstall
485
+ "client-setup": AppConfigClientSetup
465
486
  log: {
466
487
  "serve-content": never
467
488
  req: {