backend-plus 2.6.4 → 2.6.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.
@@ -338,6 +338,9 @@ export type TableDefinition = EditableDbDefinition & {
338
338
  filterColumns?:{column:string, operator:string, value:any}[]
339
339
  gridAlias?:string /* front-end css my-table = gridAlias */
340
340
  lookupFields?:string[] /* fields that should be used in lookup dialogs; if not specified, fields with isName:true are used */
341
+ functionDef?:{
342
+ parameters?:ProcedureParameter[]
343
+ }
341
344
  }
342
345
  export interface DetailTable { table?: string, fields: FieldsForConnectDetailTable, abr: string, label?: string, refreshParent?:boolean, refreshFromParent?:boolean, wScreen?:string, condition?:string }
343
346
  export type TableDefinitionFunction = (context: ContextForDump, opts?:any) => TableDefinition;
@@ -85,7 +85,7 @@ ProcedureTables = [
85
85
  /**
86
86
  *
87
87
  * @param {*} context
88
- * @param {{table:string, fixedFields:{fieldName:string, value:any, range?:string, until?:string}[], paramfun:string[], pick:string, retrieveIgnoringWhere:boolean}} parameters * @param {{table:string, fixedFields:{fieldName:string, value:any, range?:string, until?:string}[], paramfun:string[], pick:string}} parameters
88
+ * @param {{table:string, fixedFields:{fieldName:string, value:any, range?:string, until?:string}[], paramfun:string[], pick:string, retrieveIgnoringWhere:boolean}} parameters
89
89
  */
90
90
  async function tableDatum(context, parameters){
91
91
  var be=context.be;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "backend-plus",
3
3
  "description": "Backend for the anti Pareto rule",
4
- "version": "2.6.4",
4
+ "version": "2.6.5",
5
5
  "author": "Codenautas <codenautas@googlegroups.com>",
6
6
  "license": "MIT",
7
7
  "repository": "codenautas/backend-plus",
@@ -645,7 +645,7 @@ myAjax.UriSearchToObjectParams={
645
645
  fc :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
646
646
  ff :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
647
647
  up :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
648
- pf :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return JSON.parse(x)} },
648
+ pf :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
649
649
  td :{ encode:function(x){ return json4all.toUrl(x); }, decode:function(x){ return json4all.parse(x)} },
650
650
  today :{ encode:function(x){ return JSON.stringify(x); }, decode:function(x){ return bestGlobals.date.iso((x+'').substr(0,10))} },
651
651
  section :{ showInMenu:true , encode:noChange , decode:noChange },