@saltcorn/data 0.9.0-beta.8 → 0.9.0-beta.9
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/dist/base-plugin/index.d.ts +320 -320
- package/dist/base-plugin/viewtemplates/feed.d.ts.map +1 -1
- package/dist/base-plugin/viewtemplates/feed.js +3 -2
- package/dist/base-plugin/viewtemplates/feed.js.map +1 -1
- package/dist/models/table.d.ts.map +1 -1
- package/dist/models/table.js +7 -1
- package/dist/models/table.js.map +1 -1
- package/package.json +7 -7
|
@@ -363,85 +363,7 @@ export const types: ({
|
|
|
363
363
|
show: {
|
|
364
364
|
isEdit: boolean;
|
|
365
365
|
description: string;
|
|
366
|
-
run: (
|
|
367
|
-
};
|
|
368
|
-
checkboxes: {
|
|
369
|
-
isEdit: boolean;
|
|
370
|
-
description: string;
|
|
371
|
-
run: (v: any) => any;
|
|
372
|
-
};
|
|
373
|
-
TrueFalse: {
|
|
374
|
-
isEdit: boolean;
|
|
375
|
-
description: string;
|
|
376
|
-
run: (v: any) => "" | "True" | "False";
|
|
377
|
-
};
|
|
378
|
-
edit: {
|
|
379
|
-
isEdit: boolean;
|
|
380
|
-
description: string;
|
|
381
|
-
configFields: {
|
|
382
|
-
name: string;
|
|
383
|
-
label: string;
|
|
384
|
-
type: string;
|
|
385
|
-
attributes: {
|
|
386
|
-
options: string[];
|
|
387
|
-
};
|
|
388
|
-
}[];
|
|
389
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
390
|
-
};
|
|
391
|
-
switch: {
|
|
392
|
-
isEdit: boolean;
|
|
393
|
-
description: string;
|
|
394
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
395
|
-
};
|
|
396
|
-
tristate: {
|
|
397
|
-
isEdit: boolean;
|
|
398
|
-
description: string;
|
|
399
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
attributes: object[];
|
|
403
|
-
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
404
|
-
read: (v: object) => boolean | null;
|
|
405
|
-
readFromDB: (v: object) => object;
|
|
406
|
-
listAs: (v: object) => object;
|
|
407
|
-
validate: () => boolean;
|
|
408
|
-
} | {
|
|
409
|
-
name: string;
|
|
410
|
-
sql_name: string;
|
|
411
|
-
js_type: string;
|
|
412
|
-
contract: () => Function;
|
|
413
|
-
attributes: object[];
|
|
414
|
-
fieldviews: {
|
|
415
|
-
show: {
|
|
416
|
-
isEdit: boolean;
|
|
417
|
-
description: string;
|
|
418
|
-
run: (d: any, req: any) => any;
|
|
419
|
-
};
|
|
420
|
-
showDay: {
|
|
421
|
-
isEdit: boolean;
|
|
422
|
-
description: string;
|
|
423
|
-
run: (d: any, req: any) => any;
|
|
424
|
-
};
|
|
425
|
-
format: {
|
|
426
|
-
isEdit: boolean;
|
|
427
|
-
description: string;
|
|
428
|
-
configFields: {
|
|
429
|
-
name: string;
|
|
430
|
-
label: string;
|
|
431
|
-
type: string;
|
|
432
|
-
sublabel: string;
|
|
433
|
-
}[];
|
|
434
|
-
run: (d: any, req: any, options: any) => any;
|
|
435
|
-
};
|
|
436
|
-
relative: {
|
|
437
|
-
isEdit: boolean;
|
|
438
|
-
description: string;
|
|
439
|
-
run: (d: any, req: any) => string;
|
|
440
|
-
};
|
|
441
|
-
yearsAgo: {
|
|
442
|
-
isEdit: boolean;
|
|
443
|
-
description: string;
|
|
444
|
-
run: (d: any, req: any) => string;
|
|
366
|
+
run: (s: any) => any;
|
|
445
367
|
};
|
|
446
368
|
edit: {
|
|
447
369
|
isEdit: boolean;
|
|
@@ -449,17 +371,9 @@ export const types: ({
|
|
|
449
371
|
description: string;
|
|
450
372
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
451
373
|
};
|
|
452
|
-
editDay: {
|
|
453
|
-
isEdit: boolean;
|
|
454
|
-
blockDisplay: boolean;
|
|
455
|
-
description: string;
|
|
456
|
-
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
presets: {
|
|
460
|
-
Now: () => Date;
|
|
461
374
|
};
|
|
462
|
-
|
|
375
|
+
attributes: object[];
|
|
376
|
+
read: (v: object) => object;
|
|
463
377
|
validate: () => boolean;
|
|
464
378
|
} | {
|
|
465
379
|
name: string;
|
|
@@ -577,11 +491,38 @@ export const types: ({
|
|
|
577
491
|
sql_name: string;
|
|
578
492
|
js_type: string;
|
|
579
493
|
contract: () => Function;
|
|
494
|
+
attributes: object[];
|
|
580
495
|
fieldviews: {
|
|
581
496
|
show: {
|
|
582
497
|
isEdit: boolean;
|
|
583
498
|
description: string;
|
|
584
|
-
run: (
|
|
499
|
+
run: (d: any, req: any) => any;
|
|
500
|
+
};
|
|
501
|
+
showDay: {
|
|
502
|
+
isEdit: boolean;
|
|
503
|
+
description: string;
|
|
504
|
+
run: (d: any, req: any) => any;
|
|
505
|
+
};
|
|
506
|
+
format: {
|
|
507
|
+
isEdit: boolean;
|
|
508
|
+
description: string;
|
|
509
|
+
configFields: {
|
|
510
|
+
name: string;
|
|
511
|
+
label: string;
|
|
512
|
+
type: string;
|
|
513
|
+
sublabel: string;
|
|
514
|
+
}[];
|
|
515
|
+
run: (d: any, req: any, options: any) => any;
|
|
516
|
+
};
|
|
517
|
+
relative: {
|
|
518
|
+
isEdit: boolean;
|
|
519
|
+
description: string;
|
|
520
|
+
run: (d: any, req: any) => string;
|
|
521
|
+
};
|
|
522
|
+
yearsAgo: {
|
|
523
|
+
isEdit: boolean;
|
|
524
|
+
description: string;
|
|
525
|
+
run: (d: any, req: any) => string;
|
|
585
526
|
};
|
|
586
527
|
edit: {
|
|
587
528
|
isEdit: boolean;
|
|
@@ -589,12 +530,107 @@ export const types: ({
|
|
|
589
530
|
description: string;
|
|
590
531
|
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
591
532
|
};
|
|
533
|
+
editDay: {
|
|
534
|
+
isEdit: boolean;
|
|
535
|
+
blockDisplay: boolean;
|
|
536
|
+
description: string;
|
|
537
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
presets: {
|
|
541
|
+
Now: () => Date;
|
|
542
|
+
};
|
|
543
|
+
read: (v: object, attrs: object) => object;
|
|
544
|
+
validate: () => boolean;
|
|
545
|
+
} | {
|
|
546
|
+
name: string;
|
|
547
|
+
sql_name: string;
|
|
548
|
+
js_type: string;
|
|
549
|
+
contract: () => Function;
|
|
550
|
+
fieldviews: {
|
|
551
|
+
show: {
|
|
552
|
+
isEdit: boolean;
|
|
553
|
+
description: string;
|
|
554
|
+
run: (v: any) => any;
|
|
555
|
+
};
|
|
556
|
+
checkboxes: {
|
|
557
|
+
isEdit: boolean;
|
|
558
|
+
description: string;
|
|
559
|
+
run: (v: any) => any;
|
|
560
|
+
};
|
|
561
|
+
TrueFalse: {
|
|
562
|
+
isEdit: boolean;
|
|
563
|
+
description: string;
|
|
564
|
+
run: (v: any) => "" | "True" | "False";
|
|
565
|
+
};
|
|
566
|
+
edit: {
|
|
567
|
+
isEdit: boolean;
|
|
568
|
+
description: string;
|
|
569
|
+
configFields: {
|
|
570
|
+
name: string;
|
|
571
|
+
label: string;
|
|
572
|
+
type: string;
|
|
573
|
+
attributes: {
|
|
574
|
+
options: string[];
|
|
575
|
+
};
|
|
576
|
+
}[];
|
|
577
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
578
|
+
};
|
|
579
|
+
switch: {
|
|
580
|
+
isEdit: boolean;
|
|
581
|
+
description: string;
|
|
582
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
583
|
+
};
|
|
584
|
+
tristate: {
|
|
585
|
+
isEdit: boolean;
|
|
586
|
+
description: string;
|
|
587
|
+
run: (nm: any, v: any, attrs: any, cls: any, required: any, field: any) => any;
|
|
588
|
+
};
|
|
592
589
|
};
|
|
593
590
|
attributes: object[];
|
|
594
|
-
|
|
591
|
+
readFromFormRecord: (rec: any, name: string) => boolean | null;
|
|
592
|
+
read: (v: object) => boolean | null;
|
|
593
|
+
readFromDB: (v: object) => object;
|
|
594
|
+
listAs: (v: object) => object;
|
|
595
595
|
validate: () => boolean;
|
|
596
596
|
})[];
|
|
597
597
|
export const viewtemplates: ({
|
|
598
|
+
name: string;
|
|
599
|
+
description: string;
|
|
600
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
601
|
+
run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
|
|
602
|
+
list_view: string;
|
|
603
|
+
show_view: string;
|
|
604
|
+
subtables: object;
|
|
605
|
+
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
606
|
+
getRowQuery: any;
|
|
607
|
+
}) => Promise<div>;
|
|
608
|
+
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
609
|
+
list_view: string;
|
|
610
|
+
show_view: any;
|
|
611
|
+
}) => Promise<object[]>;
|
|
612
|
+
display_state_form: ({ list_view, _omit_state_form }: {
|
|
613
|
+
list_view: string;
|
|
614
|
+
_omit_state_form: boolean;
|
|
615
|
+
}) => boolean;
|
|
616
|
+
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
617
|
+
table_id: any;
|
|
618
|
+
viewname: any;
|
|
619
|
+
configuration: {
|
|
620
|
+
columns: any;
|
|
621
|
+
default_state: any;
|
|
622
|
+
};
|
|
623
|
+
req: any;
|
|
624
|
+
}) => {
|
|
625
|
+
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
626
|
+
};
|
|
627
|
+
connectedObjects: ({ list_view, subtables }: {
|
|
628
|
+
list_view: any;
|
|
629
|
+
subtables: any;
|
|
630
|
+
}) => Promise<{
|
|
631
|
+
embeddedViews: import("../models/view")[];
|
|
632
|
+
}>;
|
|
633
|
+
} | {
|
|
598
634
|
name: string;
|
|
599
635
|
description: string;
|
|
600
636
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
@@ -657,158 +693,9 @@ export const viewtemplates: ({
|
|
|
657
693
|
} | {
|
|
658
694
|
name: string;
|
|
659
695
|
description: string;
|
|
696
|
+
get_state_fields: () => object[];
|
|
660
697
|
configuration_workflow: (req: object) => import("../models/workflow");
|
|
661
|
-
run: (table_id:
|
|
662
|
-
req: object;
|
|
663
|
-
res: object;
|
|
664
|
-
}, { editQuery }: {
|
|
665
|
-
editQuery: any;
|
|
666
|
-
}) => Promise<import("../models/form")>;
|
|
667
|
-
runMany: (table_id: number, viewname: string, { columns, layout, auto_save, split_paste }: {
|
|
668
|
-
columns: any;
|
|
669
|
-
layout: any;
|
|
670
|
-
}, state: State, extra: object, { editManyQuery, getRowQuery, optionsQuery }: {
|
|
671
|
-
editManyQuery: any;
|
|
672
|
-
getRowQuery: any;
|
|
673
|
-
optionsQuery: any;
|
|
674
|
-
}) => Promise<import("../models/form")[]>;
|
|
675
|
-
runPost: (table_id: number, viewname: string, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
676
|
-
columns: object[];
|
|
677
|
-
layout: Layout;
|
|
678
|
-
fixed: object;
|
|
679
|
-
view_when_done: boolean;
|
|
680
|
-
formula_destinations: object[];
|
|
681
|
-
}, state: object, body: any, { res, req, redirect }: {
|
|
682
|
-
res: object;
|
|
683
|
-
req: object;
|
|
684
|
-
redirect: string;
|
|
685
|
-
}, { tryInsertQuery, tryUpdateQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
686
|
-
tryInsertQuery: any;
|
|
687
|
-
tryUpdateQuery: any;
|
|
688
|
-
getRowQuery: any;
|
|
689
|
-
saveFileQuery: any;
|
|
690
|
-
optionsQuery: any;
|
|
691
|
-
getRowByIdQuery: any;
|
|
692
|
-
}, remote: any) => Promise<void>;
|
|
693
|
-
get_state_fields: (table_id: any, viewname: any, { columns }: {
|
|
694
|
-
columns: any;
|
|
695
|
-
}) => Promise<object[]>;
|
|
696
|
-
initial_config: Function;
|
|
697
|
-
display_state_form: boolean;
|
|
698
|
-
authorise_post: ({ body, table_id, req }: {
|
|
699
|
-
body: object;
|
|
700
|
-
table_id: string;
|
|
701
|
-
req: object;
|
|
702
|
-
}, { authorizePostQuery }: {
|
|
703
|
-
authorizePostQuery: any;
|
|
704
|
-
}) => Promise<boolean>;
|
|
705
|
-
authorise_get: ({ query, table_id, req }: {
|
|
706
|
-
query: object;
|
|
707
|
-
rest: any;
|
|
708
|
-
}, { authorizeGetQuery }: {
|
|
709
|
-
authorizeGetQuery: any;
|
|
710
|
-
}) => Promise<boolean>;
|
|
711
|
-
getStringsForI18n({ layout }: {
|
|
712
|
-
layout: Layout;
|
|
713
|
-
}): string[];
|
|
714
|
-
queries: ({ table_id, name, configuration: { columns, default_state, layout, auto_save, split_paste, destination_type, }, req, res, }: {
|
|
715
|
-
table_id: any;
|
|
716
|
-
name: any;
|
|
717
|
-
configuration: {
|
|
718
|
-
columns: any;
|
|
719
|
-
default_state: any;
|
|
720
|
-
layout: any;
|
|
721
|
-
auto_save: any;
|
|
722
|
-
split_paste: any;
|
|
723
|
-
destination_type: any;
|
|
724
|
-
};
|
|
725
|
-
req: any;
|
|
726
|
-
res: any;
|
|
727
|
-
}) => {
|
|
728
|
-
editQuery(state: any, mobileReferrer: any): Promise<import("../models/form")>;
|
|
729
|
-
editManyQuery(state: any, { limit, offset, orderBy, orderDesc, where }: {
|
|
730
|
-
limit: any;
|
|
731
|
-
offset: any;
|
|
732
|
-
orderBy: any;
|
|
733
|
-
orderDesc: any;
|
|
734
|
-
where: any;
|
|
735
|
-
}): Promise<{
|
|
736
|
-
table: import("../models/table") | null;
|
|
737
|
-
fields: import("../models/field")[];
|
|
738
|
-
rows: import("@saltcorn/db-common/internal").Row[];
|
|
739
|
-
}>;
|
|
740
|
-
tryInsertQuery(row: any): Promise<{
|
|
741
|
-
error: string;
|
|
742
|
-
} | {
|
|
743
|
-
success: any;
|
|
744
|
-
}>;
|
|
745
|
-
tryUpdateQuery(row: any, id: any): Promise<any>;
|
|
746
|
-
saveFileQuery(fieldVal: any, fieldId: any, fieldView: any, row: any): Promise<string | number>;
|
|
747
|
-
authorizePostQuery(body: any, table_id: any): Promise<boolean | "" | null | undefined>;
|
|
748
|
-
authorizeGetQuery(query: any, table_id: any): Promise<string | boolean | null | undefined>;
|
|
749
|
-
getRowQuery(table_id: any, view_select: any, row_id: any): Promise<import("@saltcorn/db-common/internal").Row[]>;
|
|
750
|
-
getRowByIdQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
751
|
-
actionQuery(): Promise<{
|
|
752
|
-
json: any;
|
|
753
|
-
}>;
|
|
754
|
-
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
755
|
-
updateMatchingQuery(where: any, updateVals: any, repeatFields: any, childRows: any): Promise<any[] | {
|
|
756
|
-
rowError: any;
|
|
757
|
-
inEditError?: undefined;
|
|
758
|
-
error?: undefined;
|
|
759
|
-
} | {
|
|
760
|
-
inEditError: any;
|
|
761
|
-
rowError?: undefined;
|
|
762
|
-
error?: undefined;
|
|
763
|
-
} | {
|
|
764
|
-
error: any;
|
|
765
|
-
rowError?: undefined;
|
|
766
|
-
inEditError?: undefined;
|
|
767
|
-
}>;
|
|
768
|
-
};
|
|
769
|
-
routes: {
|
|
770
|
-
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
771
|
-
columns: object[];
|
|
772
|
-
layout: any;
|
|
773
|
-
}, body: any, { req, res }: {
|
|
774
|
-
req: object;
|
|
775
|
-
res: any;
|
|
776
|
-
}, { actionQuery }: {
|
|
777
|
-
actionQuery: any;
|
|
778
|
-
}) => Promise<object>;
|
|
779
|
-
update_matching_rows: (table_id: any, viewname: any, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
780
|
-
columns: any;
|
|
781
|
-
layout: any;
|
|
782
|
-
fixed: any;
|
|
783
|
-
view_when_done: any;
|
|
784
|
-
formula_destinations: any;
|
|
785
|
-
auto_save: any;
|
|
786
|
-
destination_type: any;
|
|
787
|
-
dest_url_formula: any;
|
|
788
|
-
page_when_done: any;
|
|
789
|
-
}, body: any, { req, res, redirect }: {
|
|
790
|
-
req: any;
|
|
791
|
-
res: any;
|
|
792
|
-
redirect: any;
|
|
793
|
-
}, { updateMatchingQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
794
|
-
updateMatchingQuery: any;
|
|
795
|
-
getRowQuery: any;
|
|
796
|
-
saveFileQuery: any;
|
|
797
|
-
optionsQuery: any;
|
|
798
|
-
getRowByIdQuery: any;
|
|
799
|
-
}) => Promise<void>;
|
|
800
|
-
};
|
|
801
|
-
configCheck: (view: any) => Promise<{
|
|
802
|
-
errors: string[];
|
|
803
|
-
warnings: string[];
|
|
804
|
-
}>;
|
|
805
|
-
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
806
|
-
} | {
|
|
807
|
-
name: string;
|
|
808
|
-
description: string;
|
|
809
|
-
get_state_fields: () => object[];
|
|
810
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
811
|
-
run: (table_id: string, viewname: string, { columns, layout, page_title, page_title_formula }: {
|
|
698
|
+
run: (table_id: string, viewname: string, { columns, layout, page_title, page_title_formula }: {
|
|
812
699
|
columns: object[];
|
|
813
700
|
layout: object;
|
|
814
701
|
page_title?: string | undefined;
|
|
@@ -877,42 +764,6 @@ export const viewtemplates: ({
|
|
|
877
764
|
warnings: string[];
|
|
878
765
|
}>;
|
|
879
766
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
880
|
-
} | {
|
|
881
|
-
name: string;
|
|
882
|
-
description: string;
|
|
883
|
-
configuration_workflow: (req: object) => import("../models/workflow");
|
|
884
|
-
run: (table_id: string, viewname: string, { list_view, show_view, list_width, subtables }: {
|
|
885
|
-
list_view: string;
|
|
886
|
-
show_view: string;
|
|
887
|
-
subtables: object;
|
|
888
|
-
}, state: any, extraArgs: any, { getRowQuery }: {
|
|
889
|
-
getRowQuery: any;
|
|
890
|
-
}) => Promise<div>;
|
|
891
|
-
get_state_fields: (table_id: any, viewname: any, { list_view, show_view }: {
|
|
892
|
-
list_view: string;
|
|
893
|
-
show_view: any;
|
|
894
|
-
}) => Promise<object[]>;
|
|
895
|
-
display_state_form: ({ list_view, _omit_state_form }: {
|
|
896
|
-
list_view: string;
|
|
897
|
-
_omit_state_form: boolean;
|
|
898
|
-
}) => boolean;
|
|
899
|
-
queries: ({ table_id, viewname, configuration: { columns, default_state }, req, }: {
|
|
900
|
-
table_id: any;
|
|
901
|
-
viewname: any;
|
|
902
|
-
configuration: {
|
|
903
|
-
columns: any;
|
|
904
|
-
default_state: any;
|
|
905
|
-
};
|
|
906
|
-
req: any;
|
|
907
|
-
}) => {
|
|
908
|
-
getRowQuery(uniques: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
909
|
-
};
|
|
910
|
-
connectedObjects: ({ list_view, subtables }: {
|
|
911
|
-
list_view: any;
|
|
912
|
-
subtables: any;
|
|
913
|
-
}) => Promise<{
|
|
914
|
-
embeddedViews: import("../models/view")[];
|
|
915
|
-
}>;
|
|
916
767
|
} | {
|
|
917
768
|
name: string;
|
|
918
769
|
description: string;
|
|
@@ -953,48 +804,6 @@ export const viewtemplates: ({
|
|
|
953
804
|
countRowsQuery(state: any): Promise<number>;
|
|
954
805
|
};
|
|
955
806
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
956
|
-
} | {
|
|
957
|
-
name: string;
|
|
958
|
-
description: string;
|
|
959
|
-
get_state_fields: () => object[];
|
|
960
|
-
configuration_workflow: () => import("../models/workflow");
|
|
961
|
-
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
962
|
-
columns: object[];
|
|
963
|
-
layout: object;
|
|
964
|
-
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
965
|
-
distinctValuesQuery: any;
|
|
966
|
-
}) => Promise<Layout>;
|
|
967
|
-
initial_config: () => Promise<object>;
|
|
968
|
-
display_state_form: boolean;
|
|
969
|
-
getStringsForI18n({ layout }: {
|
|
970
|
-
layout: any;
|
|
971
|
-
}): string[];
|
|
972
|
-
routes: {
|
|
973
|
-
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
974
|
-
req: any;
|
|
975
|
-
res: any;
|
|
976
|
-
}, { actionQuery }: {
|
|
977
|
-
actionQuery: any;
|
|
978
|
-
}) => Promise<any>;
|
|
979
|
-
};
|
|
980
|
-
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
981
|
-
table_id: any;
|
|
982
|
-
viewname: any;
|
|
983
|
-
configuration: {
|
|
984
|
-
columns: any;
|
|
985
|
-
};
|
|
986
|
-
req: any;
|
|
987
|
-
res: any;
|
|
988
|
-
exttable_name: any;
|
|
989
|
-
}) => {
|
|
990
|
-
actionQuery(state: any, rndid: any): Promise<{
|
|
991
|
-
json: any;
|
|
992
|
-
}>;
|
|
993
|
-
distinctValuesQuery(state: any): Promise<{
|
|
994
|
-
distinct_values: {};
|
|
995
|
-
role: any;
|
|
996
|
-
}>;
|
|
997
|
-
};
|
|
998
807
|
} | {
|
|
999
808
|
name: string;
|
|
1000
809
|
description: string;
|
|
@@ -1095,6 +904,197 @@ export const viewtemplates: ({
|
|
|
1095
904
|
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1096
905
|
};
|
|
1097
906
|
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
907
|
+
} | {
|
|
908
|
+
name: string;
|
|
909
|
+
description: string;
|
|
910
|
+
configuration_workflow: (req: object) => import("../models/workflow");
|
|
911
|
+
run: (table_id: number, viewname: string, cfg: any, state: string, { res, req }: {
|
|
912
|
+
req: object;
|
|
913
|
+
res: object;
|
|
914
|
+
}, { editQuery }: {
|
|
915
|
+
editQuery: any;
|
|
916
|
+
}) => Promise<import("../models/form")>;
|
|
917
|
+
runMany: (table_id: number, viewname: string, { columns, layout, auto_save, split_paste }: {
|
|
918
|
+
columns: any;
|
|
919
|
+
layout: any;
|
|
920
|
+
}, state: State, extra: object, { editManyQuery, getRowQuery, optionsQuery }: {
|
|
921
|
+
editManyQuery: any;
|
|
922
|
+
getRowQuery: any;
|
|
923
|
+
optionsQuery: any;
|
|
924
|
+
}) => Promise<import("../models/form")[]>;
|
|
925
|
+
runPost: (table_id: number, viewname: string, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
926
|
+
columns: object[];
|
|
927
|
+
layout: Layout;
|
|
928
|
+
fixed: object;
|
|
929
|
+
view_when_done: boolean;
|
|
930
|
+
formula_destinations: object[];
|
|
931
|
+
}, state: object, body: any, { res, req, redirect }: {
|
|
932
|
+
res: object;
|
|
933
|
+
req: object;
|
|
934
|
+
redirect: string;
|
|
935
|
+
}, { tryInsertQuery, tryUpdateQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
936
|
+
tryInsertQuery: any;
|
|
937
|
+
tryUpdateQuery: any;
|
|
938
|
+
getRowQuery: any;
|
|
939
|
+
saveFileQuery: any;
|
|
940
|
+
optionsQuery: any;
|
|
941
|
+
getRowByIdQuery: any;
|
|
942
|
+
}, remote: any) => Promise<void>;
|
|
943
|
+
get_state_fields: (table_id: any, viewname: any, { columns }: {
|
|
944
|
+
columns: any;
|
|
945
|
+
}) => Promise<object[]>;
|
|
946
|
+
initial_config: Function;
|
|
947
|
+
display_state_form: boolean;
|
|
948
|
+
authorise_post: ({ body, table_id, req }: {
|
|
949
|
+
body: object;
|
|
950
|
+
table_id: string;
|
|
951
|
+
req: object;
|
|
952
|
+
}, { authorizePostQuery }: {
|
|
953
|
+
authorizePostQuery: any;
|
|
954
|
+
}) => Promise<boolean>;
|
|
955
|
+
authorise_get: ({ query, table_id, req }: {
|
|
956
|
+
query: object;
|
|
957
|
+
rest: any;
|
|
958
|
+
}, { authorizeGetQuery }: {
|
|
959
|
+
authorizeGetQuery: any;
|
|
960
|
+
}) => Promise<boolean>;
|
|
961
|
+
getStringsForI18n({ layout }: {
|
|
962
|
+
layout: Layout;
|
|
963
|
+
}): string[];
|
|
964
|
+
queries: ({ table_id, name, configuration: { columns, default_state, layout, auto_save, split_paste, destination_type, }, req, res, }: {
|
|
965
|
+
table_id: any;
|
|
966
|
+
name: any;
|
|
967
|
+
configuration: {
|
|
968
|
+
columns: any;
|
|
969
|
+
default_state: any;
|
|
970
|
+
layout: any;
|
|
971
|
+
auto_save: any;
|
|
972
|
+
split_paste: any;
|
|
973
|
+
destination_type: any;
|
|
974
|
+
};
|
|
975
|
+
req: any;
|
|
976
|
+
res: any;
|
|
977
|
+
}) => {
|
|
978
|
+
editQuery(state: any, mobileReferrer: any): Promise<import("../models/form")>;
|
|
979
|
+
editManyQuery(state: any, { limit, offset, orderBy, orderDesc, where }: {
|
|
980
|
+
limit: any;
|
|
981
|
+
offset: any;
|
|
982
|
+
orderBy: any;
|
|
983
|
+
orderDesc: any;
|
|
984
|
+
where: any;
|
|
985
|
+
}): Promise<{
|
|
986
|
+
table: import("../models/table") | null;
|
|
987
|
+
fields: import("../models/field")[];
|
|
988
|
+
rows: import("@saltcorn/db-common/internal").Row[];
|
|
989
|
+
}>;
|
|
990
|
+
tryInsertQuery(row: any): Promise<{
|
|
991
|
+
error: string;
|
|
992
|
+
} | {
|
|
993
|
+
success: any;
|
|
994
|
+
}>;
|
|
995
|
+
tryUpdateQuery(row: any, id: any): Promise<any>;
|
|
996
|
+
saveFileQuery(fieldVal: any, fieldId: any, fieldView: any, row: any): Promise<string | number>;
|
|
997
|
+
authorizePostQuery(body: any, table_id: any): Promise<boolean | "" | null | undefined>;
|
|
998
|
+
authorizeGetQuery(query: any, table_id: any): Promise<string | boolean | null | undefined>;
|
|
999
|
+
getRowQuery(table_id: any, view_select: any, row_id: any): Promise<import("@saltcorn/db-common/internal").Row[]>;
|
|
1000
|
+
getRowByIdQuery(id: any): Promise<import("@saltcorn/db-common/internal").Row | null>;
|
|
1001
|
+
actionQuery(): Promise<{
|
|
1002
|
+
json: any;
|
|
1003
|
+
}>;
|
|
1004
|
+
optionsQuery(reftable_name: any, type: any, attributes: any, where: any): Promise<any>;
|
|
1005
|
+
updateMatchingQuery(where: any, updateVals: any, repeatFields: any, childRows: any): Promise<any[] | {
|
|
1006
|
+
rowError: any;
|
|
1007
|
+
inEditError?: undefined;
|
|
1008
|
+
error?: undefined;
|
|
1009
|
+
} | {
|
|
1010
|
+
inEditError: any;
|
|
1011
|
+
rowError?: undefined;
|
|
1012
|
+
error?: undefined;
|
|
1013
|
+
} | {
|
|
1014
|
+
error: any;
|
|
1015
|
+
rowError?: undefined;
|
|
1016
|
+
inEditError?: undefined;
|
|
1017
|
+
}>;
|
|
1018
|
+
};
|
|
1019
|
+
routes: {
|
|
1020
|
+
run_action: (table_id: number, viewname: any, { columns, layout }: {
|
|
1021
|
+
columns: object[];
|
|
1022
|
+
layout: any;
|
|
1023
|
+
}, body: any, { req, res }: {
|
|
1024
|
+
req: object;
|
|
1025
|
+
res: any;
|
|
1026
|
+
}, { actionQuery }: {
|
|
1027
|
+
actionQuery: any;
|
|
1028
|
+
}) => Promise<object>;
|
|
1029
|
+
update_matching_rows: (table_id: any, viewname: any, { columns, layout, fixed, view_when_done, formula_destinations, auto_save, destination_type, dest_url_formula, page_when_done, }: {
|
|
1030
|
+
columns: any;
|
|
1031
|
+
layout: any;
|
|
1032
|
+
fixed: any;
|
|
1033
|
+
view_when_done: any;
|
|
1034
|
+
formula_destinations: any;
|
|
1035
|
+
auto_save: any;
|
|
1036
|
+
destination_type: any;
|
|
1037
|
+
dest_url_formula: any;
|
|
1038
|
+
page_when_done: any;
|
|
1039
|
+
}, body: any, { req, res, redirect }: {
|
|
1040
|
+
req: any;
|
|
1041
|
+
res: any;
|
|
1042
|
+
redirect: any;
|
|
1043
|
+
}, { updateMatchingQuery, getRowQuery, saveFileQuery, optionsQuery, getRowByIdQuery, }: {
|
|
1044
|
+
updateMatchingQuery: any;
|
|
1045
|
+
getRowQuery: any;
|
|
1046
|
+
saveFileQuery: any;
|
|
1047
|
+
optionsQuery: any;
|
|
1048
|
+
getRowByIdQuery: any;
|
|
1049
|
+
}) => Promise<void>;
|
|
1050
|
+
};
|
|
1051
|
+
configCheck: (view: any) => Promise<{
|
|
1052
|
+
errors: string[];
|
|
1053
|
+
warnings: string[];
|
|
1054
|
+
}>;
|
|
1055
|
+
connectedObjects: (configuration: any) => Promise<import("@saltcorn/types/base_types").ConnectedObjects>;
|
|
1056
|
+
} | {
|
|
1057
|
+
name: string;
|
|
1058
|
+
description: string;
|
|
1059
|
+
get_state_fields: () => object[];
|
|
1060
|
+
configuration_workflow: () => import("../models/workflow");
|
|
1061
|
+
run: (table_id: number, viewname: string, { columns, layout }: {
|
|
1062
|
+
columns: object[];
|
|
1063
|
+
layout: object;
|
|
1064
|
+
}, state: object, extra: object, { distinctValuesQuery }: {
|
|
1065
|
+
distinctValuesQuery: any;
|
|
1066
|
+
}) => Promise<Layout>;
|
|
1067
|
+
initial_config: () => Promise<object>;
|
|
1068
|
+
display_state_form: boolean;
|
|
1069
|
+
getStringsForI18n({ layout }: {
|
|
1070
|
+
layout: any;
|
|
1071
|
+
}): string[];
|
|
1072
|
+
routes: {
|
|
1073
|
+
run_action: (table_id: any, viewname: any, config: any, body: any, { req, res }: {
|
|
1074
|
+
req: any;
|
|
1075
|
+
res: any;
|
|
1076
|
+
}, { actionQuery }: {
|
|
1077
|
+
actionQuery: any;
|
|
1078
|
+
}) => Promise<any>;
|
|
1079
|
+
};
|
|
1080
|
+
queries: ({ table_id, viewname, configuration: { columns }, req, res, exttable_name, }: {
|
|
1081
|
+
table_id: any;
|
|
1082
|
+
viewname: any;
|
|
1083
|
+
configuration: {
|
|
1084
|
+
columns: any;
|
|
1085
|
+
};
|
|
1086
|
+
req: any;
|
|
1087
|
+
res: any;
|
|
1088
|
+
exttable_name: any;
|
|
1089
|
+
}) => {
|
|
1090
|
+
actionQuery(state: any, rndid: any): Promise<{
|
|
1091
|
+
json: any;
|
|
1092
|
+
}>;
|
|
1093
|
+
distinctValuesQuery(state: any): Promise<{
|
|
1094
|
+
distinct_values: {};
|
|
1095
|
+
role: any;
|
|
1096
|
+
}>;
|
|
1097
|
+
};
|
|
1098
1098
|
})[];
|
|
1099
1099
|
import fileviews = require("./fileviews");
|
|
1100
1100
|
import actions = require("./actions");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../base-plugin/viewtemplates/feed.js"],"names":[],"mappings":"AAiDA;;;GAGG;AACH,4CAHW,MAAM,GACJ,QAAQ,CAkUjB;AAqBJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BApBW,MAAM,YACN,MAAM;IAEO,SAAS,EAAtB,MAAM;IACK,WAAW;IACR,UAAU,EAAxB,OAAO;IACO,cAAc;IACf,mBAAmB,EAAhC,MAAM;IACQ,OAAO,EAArB,OAAO;IACM,eAAe,EAA5B,MAAM;IACQ,aAAa;IACb,eAAe,EAA7B,OAAO;IACO,iBAAiB;IACjB,oBAAoB;IACpB,kBAAkB,EAAhC,OAAO;IACC,IAAI;UACZ,MAAM;;IAEJ,YAAY,
|
|
1
|
+
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../base-plugin/viewtemplates/feed.js"],"names":[],"mappings":"AAiDA;;;GAGG;AACH,4CAHW,MAAM,GACJ,QAAQ,CAkUjB;AAqBJ;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,8BApBW,MAAM,YACN,MAAM;IAEO,SAAS,EAAtB,MAAM;IACK,WAAW;IACR,UAAU,EAAxB,OAAO;IACO,cAAc;IACf,mBAAmB,EAAhC,MAAM;IACQ,OAAO,EAArB,OAAO;IACM,eAAe,EAA5B,MAAM;IACQ,aAAa;IACb,eAAe,EAA7B,OAAO;IACO,iBAAiB;IACjB,oBAAoB;IACpB,kBAAkB,EAAhC,OAAO;IACC,IAAI;UACZ,MAAM;;IAEJ,YAAY,CAmOxB;AAzQD;;;;;;GAMG;AACH,2CANW,MAAM;IAGE,SAAS;IACf,QAAQ,KAAK,CAAC,CAY1B;;;2BA2PY,MAAM;kCAEN,MAAM;yCAMN,OAAO;AAElB;;;;GAIG;AACH;;wBAGC;AARD;;;;GAIG;AACH;;wBAGC;AACQ;;;;;;;;;;EAYP;AACgB,6HAIjB"}
|