@lotics/cli 0.321.125 → 0.321.126
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/src/cli.js +97 -115
- package/dist/src/client.d.ts +2 -0
- package/docs/agent_surface.md +2 -1
- package/docs/app_architecture.md +3 -3
- package/docs/build.md +40 -32
- package/docs/cli_reference.md +2 -2
- package/docs/data_model.md +8 -1
- package/docs/design.md +91 -73
- package/docs/document_templates.md +13 -11
- package/docs/examples.md +429 -252
- package/docs/filters.md +2 -0
- package/docs/getting_started.md +3 -3
- package/docs/workflow_steps.md +2 -0
- package/docs/workflows.md +13 -9
- package/docs/working_in_a_workspace.md +1 -1
- package/package.json +3 -1
package/docs/examples.md
CHANGED
|
@@ -199,9 +199,7 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
199
199
|
}
|
|
200
200
|
]
|
|
201
201
|
},
|
|
202
|
-
{"type": "Record", "entity": "
|
|
203
|
-
{"type": "Record", "entity": "engineer", "add": ["name", "base"]},
|
|
204
|
-
{"type": "Record", "entity": "customer", "add": ["name", "credit_limit"]}
|
|
202
|
+
{"type": "Record", "entity": "engineer", "add": ["name", "base"]}
|
|
205
203
|
]
|
|
206
204
|
}
|
|
207
205
|
}
|
|
@@ -217,7 +215,7 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
217
215
|
|
|
218
216
|
**Not when.** The resource is not a row of the model (a free-text room name), or rows never compete for one — a `calendar` reads them by day.
|
|
219
217
|
|
|
220
|
-
**Its stages.** `service_visit` states no
|
|
218
|
+
**Its stages.** `service_visit` states no `Steps`: its status draws in the head.
|
|
221
219
|
|
|
222
220
|
```json
|
|
223
221
|
{
|
|
@@ -366,9 +364,7 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
366
364
|
"figure": false
|
|
367
365
|
}
|
|
368
366
|
},
|
|
369
|
-
{"type": "Record", "entity": "
|
|
370
|
-
{"type": "Record", "entity": "engineer", "add": ["name", "base"]},
|
|
371
|
-
{"type": "Record", "entity": "customer", "add": ["name", "credit_limit"]}
|
|
367
|
+
{"type": "Record", "entity": "engineer", "add": ["name", "base"]}
|
|
372
368
|
]
|
|
373
369
|
}
|
|
374
370
|
}
|
|
@@ -425,6 +421,18 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
425
421
|
"due": ["han_tra"],
|
|
426
422
|
"status": {"field": "trang_thai", "closed": ["da_tra", "huy"], "dates": {"da_tra": "ngay_tra"}}
|
|
427
423
|
}
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"ref": "dong_thue",
|
|
427
|
+
"title": "may",
|
|
428
|
+
"fields": {
|
|
429
|
+
"may": {"type": "link", "table": "may", "multi": false},
|
|
430
|
+
"tu_ngay": {"type": "date"},
|
|
431
|
+
"den_ngay": {"type": "date"},
|
|
432
|
+
"so_ngay": {"type": "lookup"},
|
|
433
|
+
"thanh_tien": {"type": "formula", "notation": {"style": "currency", "currency": "VND"}}
|
|
434
|
+
},
|
|
435
|
+
"records": {"subtitle": ["tu_ngay", "den_ngay"], "figure": "thanh_tien"}
|
|
428
436
|
}
|
|
429
437
|
],
|
|
430
438
|
"body": {
|
|
@@ -488,6 +496,12 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
488
496
|
]
|
|
489
497
|
}
|
|
490
498
|
]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"type": "Section",
|
|
502
|
+
"key": "dong_thue",
|
|
503
|
+
"title": "Máy trên phiếu",
|
|
504
|
+
"children": [{"type": "List", "entity": "dong_thue"}]
|
|
491
505
|
}
|
|
492
506
|
]
|
|
493
507
|
}
|
|
@@ -498,9 +512,9 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
498
512
|
|
|
499
513
|
## Roster
|
|
500
514
|
|
|
501
|
-
**The job.** See
|
|
515
|
+
**The job.** See which dentist works on each day of the week or the month, and open a dentist to read their appointments by day.
|
|
502
516
|
|
|
503
|
-
**Read.** `layout: "roster"` over the
|
|
517
|
+
**Read.** `layout: "roster"` over the dentists; the child List (`lich_truc`) is the rows that fill the days — one link back and a date on its line; a dentist's page lists their appointments as an `agenda`.
|
|
504
518
|
|
|
505
519
|
**Keys.** `reference/roster`
|
|
506
520
|
|
|
@@ -564,6 +578,33 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
564
578
|
"ke_hoach": {"type": "date"}
|
|
565
579
|
},
|
|
566
580
|
"records": {"subtitle": ["ngay", "ghe"], "mark": "ca"}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"ref": "lich_hen",
|
|
584
|
+
"title": "benh_nhan",
|
|
585
|
+
"fields": {
|
|
586
|
+
"benh_nhan": {"type": "link", "table": "benh_nhan", "multi": false},
|
|
587
|
+
"bat_dau": {"type": "date", "format": "datetime"},
|
|
588
|
+
"ket_thuc": {"type": "formula"},
|
|
589
|
+
"ghe": {"type": "link", "table": "ghe", "multi": false},
|
|
590
|
+
"nha_si": {"type": "link", "table": "nha_si", "multi": false},
|
|
591
|
+
"trang_thai": {
|
|
592
|
+
"type": "select",
|
|
593
|
+
"options": [
|
|
594
|
+
{"alias": "da_hen", "color": "blue"},
|
|
595
|
+
{"alias": "da_den", "color": "purple"},
|
|
596
|
+
{"alias": "dang_lam", "color": "orange"},
|
|
597
|
+
{"alias": "xong", "color": "green"},
|
|
598
|
+
{"alias": "huy", "color": "gray"}
|
|
599
|
+
]
|
|
600
|
+
},
|
|
601
|
+
"thanh_tien": {"type": "number", "notation": {"style": "currency", "currency": "VND"}}
|
|
602
|
+
},
|
|
603
|
+
"records": {
|
|
604
|
+
"subtitle": ["bat_dau", "ket_thuc"],
|
|
605
|
+
"figure": "thanh_tien",
|
|
606
|
+
"status": {"field": "trang_thai", "closed": ["xong", "huy"]}
|
|
607
|
+
}
|
|
567
608
|
}
|
|
568
609
|
],
|
|
569
610
|
"body": {
|
|
@@ -606,11 +647,16 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
606
647
|
"button": true
|
|
607
648
|
}
|
|
608
649
|
]
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"type": "Section",
|
|
653
|
+
"key": "lich_hen",
|
|
654
|
+
"title": "Lịch hẹn",
|
|
655
|
+
"children": [{"type": "List", "entity": "lich_hen", "layout": {"agenda": {}}, "edit": false}]
|
|
609
656
|
}
|
|
610
657
|
]
|
|
611
658
|
},
|
|
612
|
-
{"type": "Record", "entity": "lich_truc"}
|
|
613
|
-
{"type": "Record", "entity": "ghe", "add": ["ten", "phong"]}
|
|
659
|
+
{"type": "Record", "entity": "lich_truc"}
|
|
614
660
|
]
|
|
615
661
|
}
|
|
616
662
|
}
|
|
@@ -756,8 +802,7 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
756
802
|
"type": "Record",
|
|
757
803
|
"entity": "order_line",
|
|
758
804
|
"children": ["quantity", "shipped", {"type": "Check", "field": "settled", "on": ["update"]}]
|
|
759
|
-
}
|
|
760
|
-
{"type": "Record", "entity": "customer", "add": ["name", "credit_limit"]}
|
|
805
|
+
}
|
|
761
806
|
]
|
|
762
807
|
}
|
|
763
808
|
}
|
|
@@ -765,314 +810,414 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
765
810
|
|
|
766
811
|
## Party
|
|
767
812
|
|
|
768
|
-
**The job.** Keep each
|
|
813
|
+
**The job.** Keep each prospect as a person — who they are, what was said to them, and when to call back.
|
|
769
814
|
|
|
770
|
-
**Read.** `records.
|
|
815
|
+
**Read.** `records.khach_tiem_nang.party: "person"` and its `image` (the photo); a List with `layout: "timeline"` for the interactions on the record's page, and a Reading `by` the day a prospect converted.
|
|
771
816
|
|
|
772
817
|
**Keys.** `reference/records`, `reference/layouts`, `reference/list-node`, `reference/reading-node`
|
|
773
818
|
|
|
774
|
-
**Not when.** A list of
|
|
819
|
+
**Not when.** A list of people is not a job by itself: the person is a link on the desk whose rows name them, unless the job is the account itself.
|
|
775
820
|
|
|
776
|
-
**Its stages.** `
|
|
821
|
+
**Its stages.** `khach_tiem_nang` states Sections at its stages: its path reads down the page, each stage's Section under its step. `buoc_tiep` states no `Steps`: its status draws in the head.
|
|
777
822
|
|
|
778
823
|
```json
|
|
779
824
|
{
|
|
780
825
|
"tables": [
|
|
781
826
|
{
|
|
782
|
-
"ref": "
|
|
783
|
-
"title": "
|
|
827
|
+
"ref": "khach_tiem_nang",
|
|
828
|
+
"title": "ho_ten",
|
|
784
829
|
"fields": {
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"
|
|
788
|
-
"tier": {
|
|
830
|
+
"ho_ten": {"type": "text"},
|
|
831
|
+
"ten_cong_ty": {"type": "text"},
|
|
832
|
+
"vai_tro": {
|
|
789
833
|
"type": "select",
|
|
790
834
|
"options": [
|
|
791
|
-
{"alias": "
|
|
792
|
-
{"alias": "
|
|
793
|
-
{"alias": "
|
|
835
|
+
{"alias": "chu_doanh_nghiep", "color": "emerald"},
|
|
836
|
+
{"alias": "ke_toan_truong", "color": "blue"},
|
|
837
|
+
{"alias": "quan_ly", "color": "teal"},
|
|
838
|
+
{"alias": "nhan_vien", "color": "sky"},
|
|
839
|
+
{"alias": "chua_ro", "color": "zinc"}
|
|
794
840
|
]
|
|
795
841
|
},
|
|
796
|
-
"
|
|
797
|
-
"website": {"type": "text", "format": "link"},
|
|
798
|
-
"account_manager": {"type": "member"},
|
|
799
|
-
"credit_limit": {"type": "number", "notation": {"style": "currency", "currency": "USD"}},
|
|
800
|
-
"orders": {"type": "link", "table": "order", "multi": true},
|
|
801
|
-
"outstanding": {"type": "rollup"},
|
|
802
|
-
"papers_needed": {
|
|
842
|
+
"loai_hinh": {
|
|
803
843
|
"type": "select",
|
|
804
844
|
"options": [
|
|
805
|
-
{"alias": "
|
|
806
|
-
{"alias": "
|
|
807
|
-
{"alias": "
|
|
808
|
-
|
|
809
|
-
|
|
845
|
+
{"alias": "thuong_mai", "color": "blue"},
|
|
846
|
+
{"alias": "san_xuat", "color": "amber"},
|
|
847
|
+
{"alias": "dich_vu", "color": "violet"},
|
|
848
|
+
{"alias": "xay_dung", "color": "orange"},
|
|
849
|
+
{"alias": "ho_kinh_doanh", "color": "teal"},
|
|
850
|
+
{"alias": "chua_ro", "color": "zinc"}
|
|
851
|
+
]
|
|
810
852
|
},
|
|
811
|
-
"
|
|
853
|
+
"quy_mo": {
|
|
854
|
+
"type": "select",
|
|
855
|
+
"options": [
|
|
856
|
+
{"alias": "q_1_10", "color": "sky"},
|
|
857
|
+
{"alias": "q_11_50", "color": "blue"},
|
|
858
|
+
{"alias": "q_51_200", "color": "indigo"},
|
|
859
|
+
{"alias": "q_200", "color": "violet"},
|
|
860
|
+
{"alias": "chua_ro", "color": "zinc"}
|
|
861
|
+
]
|
|
862
|
+
},
|
|
863
|
+
"so_dien_thoai": {"type": "text"},
|
|
864
|
+
"zalo": {"type": "text"},
|
|
865
|
+
"email": {"type": "text"},
|
|
866
|
+
"trang_ca_nhan": {"type": "text", "format": "link"},
|
|
867
|
+
"anh": {"type": "files"},
|
|
868
|
+
"trang_thai": {
|
|
869
|
+
"type": "select",
|
|
870
|
+
"options": [
|
|
871
|
+
{"alias": "moi", "color": "gray"},
|
|
872
|
+
{"alias": "du_dieu_kien", "color": "blue"},
|
|
873
|
+
{"alias": "da_lien_he", "color": "amber"},
|
|
874
|
+
{"alias": "da_chuyen_doi", "color": "emerald"},
|
|
875
|
+
{"alias": "loai", "color": "red"}
|
|
876
|
+
]
|
|
877
|
+
},
|
|
878
|
+
"ly_do_loai": {
|
|
879
|
+
"type": "select",
|
|
880
|
+
"options": [
|
|
881
|
+
{"alias": "khong_phu_hop", "color": "orange"},
|
|
882
|
+
{"alias": "qua_nho", "color": "amber"},
|
|
883
|
+
{"alias": "chua_co_ngan_sach", "color": "yellow"},
|
|
884
|
+
{"alias": "sai_nguoi", "color": "blue"},
|
|
885
|
+
{"alias": "yeu_cau_dung", "color": "red"},
|
|
886
|
+
{"alias": "trung", "color": "zinc"}
|
|
887
|
+
]
|
|
888
|
+
},
|
|
889
|
+
"vi_sao_du_dieu_kien": {"type": "text"},
|
|
890
|
+
"phu_trach": {"type": "member"},
|
|
891
|
+
"nguon": {"type": "link", "table": "kenh", "multi": false},
|
|
892
|
+
"lien_he": {"type": "link", "table": "lien_he", "multi": false},
|
|
893
|
+
"cong_ty": {"type": "link", "table": "cong_ty", "multi": false},
|
|
894
|
+
"ngay_chuyen_doi": {"type": "date", "format": "datetime", "timezone": "Asia/Ho_Chi_Minh"},
|
|
895
|
+
"ghi_chu": {"type": "text", "format": "markdown"},
|
|
896
|
+
"tin_hieu": {"type": "link", "table": "tin_hieu", "multi": true},
|
|
897
|
+
"buoc_tiep": {"type": "link", "table": "buoc_tiep", "multi": true},
|
|
898
|
+
"tuong_tac": {"type": "link", "table": "tuong_tac", "multi": true},
|
|
899
|
+
"do_nong": {
|
|
900
|
+
"type": "formula",
|
|
901
|
+
"options": [
|
|
902
|
+
{"alias": "nong", "label": "Nóng", "color": "orange"},
|
|
903
|
+
{"alias": "nguoi", "label": "Nguội", "color": "sky"}
|
|
904
|
+
]
|
|
905
|
+
},
|
|
906
|
+
"han_buoc_tiep": {"type": "rollup"},
|
|
907
|
+
"khong_lien_he": {"type": "formula"}
|
|
812
908
|
},
|
|
813
909
|
"records": {
|
|
814
|
-
"subtitle": ["
|
|
815
|
-
"image": "
|
|
816
|
-
"party": "
|
|
817
|
-
"
|
|
818
|
-
"
|
|
910
|
+
"subtitle": ["ten_cong_ty"],
|
|
911
|
+
"image": "anh",
|
|
912
|
+
"party": "person",
|
|
913
|
+
"due": ["han_buoc_tiep"],
|
|
914
|
+
"status": {
|
|
915
|
+
"field": "trang_thai",
|
|
916
|
+
"closed": ["da_chuyen_doi", "loai"],
|
|
917
|
+
"dates": {"da_chuyen_doi": "ngay_chuyen_doi"}
|
|
918
|
+
}
|
|
819
919
|
}
|
|
820
920
|
},
|
|
821
921
|
{
|
|
822
|
-
"ref": "
|
|
823
|
-
"title": "
|
|
922
|
+
"ref": "tin_hieu",
|
|
923
|
+
"title": "tom_tat",
|
|
824
924
|
"fields": {
|
|
825
|
-
"
|
|
826
|
-
"
|
|
827
|
-
"
|
|
925
|
+
"tom_tat": {"type": "text"},
|
|
926
|
+
"noi_dung": {"type": "text", "format": "markdown"},
|
|
927
|
+
"anh_chup": {"type": "files"},
|
|
928
|
+
"lien_ket": {"type": "text", "format": "link"},
|
|
929
|
+
"kenh": {"type": "link", "table": "kenh", "multi": false},
|
|
930
|
+
"loai": {
|
|
828
931
|
"type": "select",
|
|
829
932
|
"options": [
|
|
830
|
-
{"alias": "
|
|
831
|
-
{"alias": "
|
|
832
|
-
{"alias": "
|
|
833
|
-
{"alias": "
|
|
834
|
-
{"alias": "
|
|
835
|
-
{"alias": "
|
|
933
|
+
{"alias": "hoi_dich_vu", "color": "emerald"},
|
|
934
|
+
{"alias": "than_phien", "color": "blue"},
|
|
935
|
+
{"alias": "tuyen_ke_toan", "color": "amber"},
|
|
936
|
+
{"alias": "moi_thanh_lap", "color": "violet"},
|
|
937
|
+
{"alias": "gioi_thieu", "color": "teal"},
|
|
938
|
+
{"alias": "danh_ba", "color": "zinc"},
|
|
939
|
+
{"alias": "nhieu", "color": "stone"}
|
|
836
940
|
]
|
|
837
941
|
},
|
|
838
|
-
"
|
|
839
|
-
"
|
|
840
|
-
"
|
|
841
|
-
"priority": {"type": "boolean"},
|
|
842
|
-
"lines": {"type": "link", "table": "order_line", "multi": true},
|
|
843
|
-
"payments": {"type": "link", "table": "payment", "multi": true},
|
|
844
|
-
"total": {"type": "rollup"},
|
|
845
|
-
"balance": {"type": "formula", "notation": {"style": "currency", "currency": "USD"}},
|
|
846
|
-
"units_ordered": {"type": "rollup"},
|
|
847
|
-
"units_shipped": {"type": "rollup"},
|
|
848
|
-
"units_picked": {"type": "rollup"},
|
|
849
|
-
"carrier": {"type": "text"},
|
|
850
|
-
"tracking_no": {"type": "text"},
|
|
851
|
-
"shipped_on": {"type": "date"},
|
|
852
|
-
"cancellation_reason": {"type": "text"},
|
|
853
|
-
"cancelled_by": {"type": "member"},
|
|
854
|
-
"replaced_by": {"type": "link", "table": "order", "multi": false},
|
|
855
|
-
"attachments": {"type": "files"},
|
|
856
|
-
"delivery_note": {"type": "files"},
|
|
857
|
-
"notes": {"type": "text", "format": "markdown"},
|
|
858
|
-
"paid_in_full": {"type": "formula"},
|
|
859
|
-
"reminder_ref": {"type": "text"}
|
|
942
|
+
"ngay_dang": {"type": "date", "timezone": "Asia/Ho_Chi_Minh"},
|
|
943
|
+
"ngay_xay_ra": {"type": "formula"},
|
|
944
|
+
"khach": {"type": "link", "table": "khach_tiem_nang", "multi": false}
|
|
860
945
|
},
|
|
861
|
-
"records": {
|
|
862
|
-
"subtitle": ["customer", "placed"],
|
|
863
|
-
"figure": "total",
|
|
864
|
-
"limits": {"units_shipped": "units_ordered", "units_picked": "units_ordered"},
|
|
865
|
-
"due": ["due_date"],
|
|
866
|
-
"status": {
|
|
867
|
-
"field": "stage",
|
|
868
|
-
"closed": ["received", "cancelled"],
|
|
869
|
-
"dates": {"shipped": "shipped_on"},
|
|
870
|
-
"history": "order_stage"
|
|
871
|
-
}
|
|
872
|
-
}
|
|
946
|
+
"records": {"subtitle": ["kenh", "ngay_xay_ra"], "image": "anh_chup"}
|
|
873
947
|
},
|
|
874
948
|
{
|
|
875
|
-
"ref": "
|
|
876
|
-
"title": "
|
|
949
|
+
"ref": "buoc_tiep",
|
|
950
|
+
"title": "vi_sao_luc_nay",
|
|
877
951
|
"fields": {
|
|
878
|
-
"
|
|
952
|
+
"vi_sao_luc_nay": {"type": "text"},
|
|
953
|
+
"viec": {
|
|
954
|
+
"type": "select",
|
|
955
|
+
"options": [
|
|
956
|
+
{"alias": "binh_luan", "color": "blue", "mark": {"kind": "icon", "name": "message-square"}},
|
|
957
|
+
{"alias": "nhan_facebook", "color": "violet", "mark": {"kind": "brand", "name": "facebook"}},
|
|
958
|
+
{"alias": "nhan_zalo", "color": "sky", "mark": {"kind": "brand", "name": "zalo"}},
|
|
959
|
+
{"alias": "goi_dien", "color": "teal", "mark": {"kind": "icon", "name": "phone"}},
|
|
960
|
+
{"alias": "gui_email", "color": "indigo", "mark": {"kind": "icon", "name": "mail"}},
|
|
961
|
+
{"alias": "gui_bang_gia", "color": "amber", "mark": {"kind": "icon", "name": "receipt"}}
|
|
962
|
+
]
|
|
963
|
+
},
|
|
964
|
+
"ban_nhap": {"type": "text", "format": "markdown"},
|
|
965
|
+
"han": {"type": "date", "format": "datetime", "timezone": "Asia/Ho_Chi_Minh"},
|
|
966
|
+
"tinh_trang": {
|
|
879
967
|
"type": "select",
|
|
880
968
|
"options": [
|
|
881
|
-
{"alias": "
|
|
882
|
-
{"alias": "
|
|
883
|
-
{"alias": "
|
|
969
|
+
{"alias": "cho", "color": "blue"},
|
|
970
|
+
{"alias": "xong", "color": "emerald"},
|
|
971
|
+
{"alias": "bo_qua", "color": "zinc"}
|
|
884
972
|
]
|
|
885
973
|
},
|
|
886
|
-
"
|
|
887
|
-
"received_on": {"type": "date"},
|
|
888
|
-
"file": {"type": "files"}
|
|
974
|
+
"khach": {"type": "link", "table": "khach_tiem_nang", "multi": false}
|
|
889
975
|
},
|
|
890
|
-
"records": {
|
|
976
|
+
"records": {
|
|
977
|
+
"subtitle": ["viec"],
|
|
978
|
+
"mark": "viec",
|
|
979
|
+
"due": ["han"],
|
|
980
|
+
"status": {"field": "tinh_trang", "closed": ["xong", "bo_qua"]}
|
|
981
|
+
}
|
|
891
982
|
},
|
|
892
983
|
{
|
|
893
|
-
"ref": "
|
|
894
|
-
"title": "
|
|
984
|
+
"ref": "tuong_tac",
|
|
985
|
+
"title": "tom_tat",
|
|
895
986
|
"fields": {
|
|
896
|
-
"
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
|
|
900
|
-
|
|
987
|
+
"tom_tat": {"type": "text"},
|
|
988
|
+
"thoi_diem": {"type": "date", "format": "datetime", "timezone": "Asia/Ho_Chi_Minh"},
|
|
989
|
+
"qua": {
|
|
990
|
+
"type": "select",
|
|
991
|
+
"options": [
|
|
992
|
+
{"alias": "goi_dien", "color": "teal", "mark": {"kind": "icon", "name": "phone"}},
|
|
993
|
+
{"alias": "zalo", "color": "sky", "mark": {"kind": "brand", "name": "zalo"}},
|
|
994
|
+
{"alias": "facebook", "color": "blue", "mark": {"kind": "brand", "name": "facebook"}},
|
|
995
|
+
{"alias": "email", "color": "indigo", "mark": {"kind": "icon", "name": "mail"}},
|
|
996
|
+
{"alias": "gap_truc_tiep", "color": "emerald", "mark": {"kind": "icon", "name": "users"}},
|
|
997
|
+
{"alias": "khac", "color": "zinc", "mark": {"kind": "icon", "name": "ellipsis"}}
|
|
998
|
+
]
|
|
999
|
+
},
|
|
1000
|
+
"huong": {
|
|
1001
|
+
"type": "select",
|
|
1002
|
+
"options": [{"alias": "minh_lien_he", "color": "blue"}, {"alias": "khach_lien_he", "color": "green"}]
|
|
1003
|
+
},
|
|
1004
|
+
"phan_hoi": {
|
|
1005
|
+
"type": "select",
|
|
1006
|
+
"options": [
|
|
1007
|
+
{"alias": "dang_cho", "color": "blue"},
|
|
1008
|
+
{"alias": "da_tra_loi", "color": "green"},
|
|
1009
|
+
{"alias": "quan_tam", "color": "amber"},
|
|
1010
|
+
{"alias": "khong_phu_hop", "color": "red"},
|
|
1011
|
+
{"alias": "khong_phan_hoi", "color": "zinc"},
|
|
1012
|
+
{"alias": "sai_so", "color": "stone"}
|
|
1013
|
+
]
|
|
1014
|
+
},
|
|
1015
|
+
"ghi_am": {"type": "files"},
|
|
1016
|
+
"man_hinh": {"type": "files"},
|
|
1017
|
+
"nguyen_van": {"type": "text", "format": "markdown"},
|
|
1018
|
+
"hen_lai": {"type": "date", "timezone": "Asia/Ho_Chi_Minh"},
|
|
1019
|
+
"nguoi_thuc_hien": {"type": "member"},
|
|
1020
|
+
"khach": {"type": "link", "table": "khach_tiem_nang", "multi": false}
|
|
1021
|
+
},
|
|
1022
|
+
"records": {"subtitle": ["qua", "phan_hoi"]}
|
|
901
1023
|
}
|
|
902
1024
|
],
|
|
903
1025
|
"body": {
|
|
904
1026
|
"type": "App",
|
|
905
|
-
"key": "
|
|
906
|
-
"name": "
|
|
907
|
-
"icon": "
|
|
1027
|
+
"key": "khach_tiem_nang",
|
|
1028
|
+
"name": "Khách tiềm năng",
|
|
1029
|
+
"icon": "radar",
|
|
908
1030
|
"color": "violet",
|
|
909
|
-
"rows": {
|
|
910
|
-
"customer": {"any": [{"member_of": "sales"}]},
|
|
911
|
-
"order": {"any": [{"member_of": "sales"}, {"member_of": "stores"}]},
|
|
912
|
-
"order_line": {"any": [{"member_of": "sales"}, {"member_of": "stores"}]},
|
|
913
|
-
"payment": {"any": [{"member_of": "sales"}, {"member_of": "stores"}]},
|
|
914
|
-
"touch": {"any": [{"member_of": "sales"}]},
|
|
915
|
-
"customer_paper": {"any": [{"member_of": "sales"}]},
|
|
916
|
-
"service_visit": {"any": [{"member_of": "sales"}, {"member_of": "stores"}, {"member_of": "field"}]}
|
|
917
|
-
},
|
|
918
1031
|
"children": [
|
|
919
1032
|
{
|
|
920
1033
|
"type": "List",
|
|
921
|
-
"entity": "
|
|
922
|
-
"columns": ["
|
|
923
|
-
"filters": ["
|
|
924
|
-
"
|
|
925
|
-
"
|
|
926
|
-
|
|
927
|
-
|
|
1034
|
+
"entity": "khach_tiem_nang",
|
|
1035
|
+
"columns": ["phu_trach", "han_buoc_tiep"],
|
|
1036
|
+
"filters": ["phu_trach"],
|
|
1037
|
+
"create": ["ho_ten", "trang_ca_nhan", "so_dien_thoai", "ten_cong_ty", "nguon"],
|
|
1038
|
+
"children": [
|
|
1039
|
+
{"type": "Reading", "key": "register_reading_0", "by": "phu_trach"},
|
|
1040
|
+
{
|
|
1041
|
+
"type": "Reading",
|
|
1042
|
+
"key": "register_reading_1",
|
|
1043
|
+
"label": "Khách chuyển đổi",
|
|
1044
|
+
"by": "ngay_chuyen_doi"
|
|
1045
|
+
}
|
|
1046
|
+
]
|
|
928
1047
|
}
|
|
929
1048
|
],
|
|
930
1049
|
"pages": [
|
|
931
1050
|
{
|
|
932
1051
|
"type": "Record",
|
|
933
|
-
"entity": "
|
|
934
|
-
"door": "drawer",
|
|
1052
|
+
"entity": "khach_tiem_nang",
|
|
935
1053
|
"children": [
|
|
936
|
-
{"type": "Section", "key": "contact", "title": "Contact", "children": ["phone", "website"]},
|
|
937
1054
|
{
|
|
938
|
-
"type": "
|
|
939
|
-
"key": "account",
|
|
940
|
-
"title": "Account",
|
|
1055
|
+
"type": "Steps",
|
|
941
1056
|
"children": [
|
|
942
|
-
"code",
|
|
943
|
-
"account_manager",
|
|
944
|
-
"credit_limit",
|
|
945
|
-
{
|
|
946
|
-
"type": "Act",
|
|
947
|
-
"key": "reassign",
|
|
948
|
-
"label": "Reassign",
|
|
949
|
-
"asks": [{"input": "to", "label": "Account manager", "type": "member", "required": true}],
|
|
950
|
-
"set": {"account_manager": {"input": "to"}},
|
|
951
|
-
"button": true
|
|
952
|
-
},
|
|
953
1057
|
{
|
|
954
|
-
"type": "
|
|
955
|
-
"key": "
|
|
956
|
-
"
|
|
957
|
-
"
|
|
958
|
-
"
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
"key": "reinstate",
|
|
965
|
-
"label": "Reinstate",
|
|
966
|
-
"when": {"tier": ["lapsed"]},
|
|
967
|
-
"asks": [
|
|
1058
|
+
"type": "Section",
|
|
1059
|
+
"key": "danh_gia",
|
|
1060
|
+
"title": "Đánh giá",
|
|
1061
|
+
"at": ["moi"],
|
|
1062
|
+
"children": [
|
|
1063
|
+
"vai_tro",
|
|
1064
|
+
"loai_hinh",
|
|
1065
|
+
"quy_mo",
|
|
1066
|
+
"vi_sao_du_dieu_kien",
|
|
1067
|
+
"do_nong",
|
|
968
1068
|
{
|
|
969
|
-
"
|
|
970
|
-
"
|
|
971
|
-
"
|
|
972
|
-
"
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
"
|
|
1069
|
+
"type": "List",
|
|
1070
|
+
"entity": "tin_hieu",
|
|
1071
|
+
"columns": ["loai", "noi_dung"],
|
|
1072
|
+
"create": ["tom_tat", "anh_chup", "loai", "noi_dung", "kenh", "lien_ket", "ngay_dang"]
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"type": "Act",
|
|
1076
|
+
"key": "danh_gia_dat",
|
|
1077
|
+
"label": "Đủ điều kiện",
|
|
1078
|
+
"when": {"trang_thai": ["moi"]},
|
|
1079
|
+
"requires": ["vi_sao_du_dieu_kien"],
|
|
1080
|
+
"set": {"trang_thai": "du_dieu_kien"},
|
|
1081
|
+
"button": true
|
|
982
1082
|
}
|
|
983
|
-
]
|
|
984
|
-
"set": {"tier": {"input": "back_to"}},
|
|
985
|
-
"button": true
|
|
986
|
-
}
|
|
987
|
-
]
|
|
988
|
-
},
|
|
989
|
-
{
|
|
990
|
-
"type": "Section",
|
|
991
|
-
"key": "orders",
|
|
992
|
-
"title": "Orders",
|
|
993
|
-
"children": [
|
|
994
|
-
{
|
|
995
|
-
"type": "Reading",
|
|
996
|
-
"key": "block_reading_0",
|
|
997
|
-
"label": "Order value",
|
|
998
|
-
"entity": "order",
|
|
999
|
-
"value": "total",
|
|
1000
|
-
"where": {"stage": ["confirmed", "picking", "shipped", "received"]},
|
|
1001
|
-
"by": "placed"
|
|
1083
|
+
]
|
|
1002
1084
|
},
|
|
1003
1085
|
{
|
|
1004
|
-
"type": "
|
|
1005
|
-
"
|
|
1006
|
-
"
|
|
1007
|
-
"
|
|
1008
|
-
"
|
|
1009
|
-
|
|
1086
|
+
"type": "Section",
|
|
1087
|
+
"key": "lien_he",
|
|
1088
|
+
"title": "Liên hệ",
|
|
1089
|
+
"at": ["du_dieu_kien"],
|
|
1090
|
+
"children": [
|
|
1091
|
+
"so_dien_thoai",
|
|
1092
|
+
"phu_trach",
|
|
1093
|
+
"trang_ca_nhan",
|
|
1094
|
+
"zalo",
|
|
1095
|
+
"email",
|
|
1096
|
+
{"field": "ghi_chu", "block": false},
|
|
1097
|
+
{
|
|
1098
|
+
"type": "List",
|
|
1099
|
+
"entity": "buoc_tiep",
|
|
1100
|
+
"columns": ["ban_nhap"],
|
|
1101
|
+
"create": ["vi_sao_luc_nay", "viec", "han", "ban_nhap"]
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"type": "List",
|
|
1105
|
+
"entity": "tuong_tac",
|
|
1106
|
+
"layout": "timeline",
|
|
1107
|
+
"create": ["tom_tat", "qua", "phan_hoi", "thoi_diem", "hen_lai"]
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"type": "Act",
|
|
1111
|
+
"key": "ghi_cuoc_goi",
|
|
1112
|
+
"label": "Ghi âm cuộc gọi",
|
|
1113
|
+
"when": {"trang_thai": ["du_dieu_kien"]},
|
|
1114
|
+
"fills": ["tom_tat", "phan_hoi"],
|
|
1115
|
+
"record": {
|
|
1116
|
+
"into": "tuong_tac",
|
|
1117
|
+
"audio": "ghi_am",
|
|
1118
|
+
"transcript": "nguyen_van",
|
|
1119
|
+
"at": "thoi_diem",
|
|
1120
|
+
"by": "nguoi_thuc_hien",
|
|
1121
|
+
"video": "man_hinh"
|
|
1122
|
+
},
|
|
1123
|
+
"button": true
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"type": "Act",
|
|
1127
|
+
"key": "da_lien_he",
|
|
1128
|
+
"label": "Đánh dấu đã liên hệ",
|
|
1129
|
+
"when": {"trang_thai": ["du_dieu_kien"]},
|
|
1130
|
+
"set": {"trang_thai": "da_lien_he"},
|
|
1131
|
+
"button": true
|
|
1132
|
+
}
|
|
1133
|
+
]
|
|
1010
1134
|
},
|
|
1011
1135
|
{
|
|
1012
|
-
"type": "
|
|
1013
|
-
"key": "
|
|
1014
|
-
"
|
|
1015
|
-
"
|
|
1016
|
-
"
|
|
1017
|
-
|
|
1018
|
-
|
|
1136
|
+
"type": "Section",
|
|
1137
|
+
"key": "chuyen_doi",
|
|
1138
|
+
"title": "Chuyển đổi",
|
|
1139
|
+
"at": ["da_lien_he"],
|
|
1140
|
+
"children": [
|
|
1141
|
+
"nguon",
|
|
1142
|
+
{"field": "lien_he", "edit": false},
|
|
1143
|
+
{"field": "cong_ty", "edit": false},
|
|
1144
|
+
{
|
|
1145
|
+
"type": "Act",
|
|
1146
|
+
"key": "chuyen_doi",
|
|
1147
|
+
"label": "Chuyển đổi",
|
|
1148
|
+
"when": {"trang_thai": ["da_lien_he"]},
|
|
1149
|
+
"workflow": "chuyen_doi_khach",
|
|
1150
|
+
"confirm": true,
|
|
1151
|
+
"button": true
|
|
1152
|
+
}
|
|
1153
|
+
]
|
|
1019
1154
|
},
|
|
1020
1155
|
{
|
|
1021
|
-
"type": "
|
|
1022
|
-
"key": "
|
|
1023
|
-
"
|
|
1024
|
-
"
|
|
1025
|
-
"
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1156
|
+
"type": "Section",
|
|
1157
|
+
"key": "loai",
|
|
1158
|
+
"title": "Loại",
|
|
1159
|
+
"at": ["loai"],
|
|
1160
|
+
"children": [
|
|
1161
|
+
"ly_do_loai",
|
|
1162
|
+
{
|
|
1163
|
+
"type": "Act",
|
|
1164
|
+
"key": "loai",
|
|
1165
|
+
"label": "Loại",
|
|
1166
|
+
"when": {"trang_thai": ["moi", "du_dieu_kien", "da_lien_he"]},
|
|
1167
|
+
"asks": ["ly_do_loai"],
|
|
1168
|
+
"set": {"trang_thai": "loai"},
|
|
1169
|
+
"danger": true,
|
|
1170
|
+
"button": true
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"type": "Act",
|
|
1174
|
+
"key": "mo_lai",
|
|
1175
|
+
"label": "Mở lại",
|
|
1176
|
+
"when": {"trang_thai": ["loai"]},
|
|
1177
|
+
"set": {"trang_thai": "moi"},
|
|
1178
|
+
"button": true
|
|
1179
|
+
}
|
|
1180
|
+
]
|
|
1039
1181
|
}
|
|
1040
1182
|
]
|
|
1041
1183
|
},
|
|
1042
|
-
{
|
|
1043
|
-
"type": "Section",
|
|
1044
|
-
"key": "contact_log",
|
|
1045
|
-
"title": "Contact log",
|
|
1046
|
-
"children": [{"type": "List", "entity": "touch", "layout": "timeline"}]
|
|
1047
|
-
},
|
|
1048
|
-
{"type": "Section", "key": "notes", "title": "Notes", "children": ["notes"]}
|
|
1184
|
+
{"type": "Check", "field": "khong_lien_he", "resolve": "da_lien_he"}
|
|
1049
1185
|
]
|
|
1050
1186
|
},
|
|
1187
|
+
{"type": "Record", "entity": "kenh", "add": ["ten", "loai"]},
|
|
1051
1188
|
{
|
|
1052
1189
|
"type": "Record",
|
|
1053
|
-
"entity": "
|
|
1190
|
+
"entity": "buoc_tiep",
|
|
1054
1191
|
"children": [
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
{"field": "cancellation_reason", "edit": false},
|
|
1064
|
-
{"field": "cancelled_by", "edit": false},
|
|
1065
|
-
{"field": "replaced_by", "edit": false},
|
|
1066
|
-
{"field": "attachments", "edit": false},
|
|
1067
|
-
"delivery_note",
|
|
1068
|
-
"notes",
|
|
1069
|
-
{"field": "reminder_ref", "edit": false},
|
|
1070
|
-
{"type": "Check", "field": "paid_in_full", "on": ["update"]}
|
|
1192
|
+
{
|
|
1193
|
+
"type": "Act",
|
|
1194
|
+
"key": "lam_xong",
|
|
1195
|
+
"label": "Đã làm",
|
|
1196
|
+
"when": {"tinh_trang": ["cho"]},
|
|
1197
|
+
"set": {"tinh_trang": "xong"},
|
|
1198
|
+
"button": true
|
|
1199
|
+
}
|
|
1071
1200
|
]
|
|
1072
1201
|
},
|
|
1073
|
-
{
|
|
1074
|
-
|
|
1075
|
-
|
|
1202
|
+
{
|
|
1203
|
+
"type": "Record",
|
|
1204
|
+
"entity": "tuong_tac",
|
|
1205
|
+
"children": [
|
|
1206
|
+
{
|
|
1207
|
+
"type": "Section",
|
|
1208
|
+
"key": "section",
|
|
1209
|
+
"children": [
|
|
1210
|
+
"thoi_diem",
|
|
1211
|
+
"huong",
|
|
1212
|
+
"hen_lai",
|
|
1213
|
+
"nguoi_thuc_hien",
|
|
1214
|
+
{"field": "khach", "edit": false},
|
|
1215
|
+
"ghi_am",
|
|
1216
|
+
{"field": "man_hinh", "block": true}
|
|
1217
|
+
]
|
|
1218
|
+
}
|
|
1219
|
+
]
|
|
1220
|
+
}
|
|
1076
1221
|
]
|
|
1077
1222
|
}
|
|
1078
1223
|
}
|
|
@@ -1490,7 +1635,12 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1490
1635
|
],
|
|
1491
1636
|
"row": {"figure": false}
|
|
1492
1637
|
},
|
|
1493
|
-
{
|
|
1638
|
+
{
|
|
1639
|
+
"type": "Record",
|
|
1640
|
+
"entity": "du_an",
|
|
1641
|
+
"add": ["ten_du_an", "chu_dau_tu", "so_can"],
|
|
1642
|
+
"children": [{"type": "Steps"}]
|
|
1643
|
+
}
|
|
1494
1644
|
]
|
|
1495
1645
|
}
|
|
1496
1646
|
}
|
|
@@ -1506,7 +1656,7 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1506
1656
|
|
|
1507
1657
|
**Not when.** Calls made and logged elsewhere — a `timeline` with its own add keeps the note.
|
|
1508
1658
|
|
|
1509
|
-
**Its stages.** `khach_tiem_nang` states Sections at its stages: its path reads down the page, each stage's Section under its step. `buoc_tiep` states no
|
|
1659
|
+
**Its stages.** `khach_tiem_nang` states Sections at its stages: its path reads down the page, each stage's Section under its step. `buoc_tiep` states no `Steps`: its status draws in the head.
|
|
1510
1660
|
|
|
1511
1661
|
```json
|
|
1512
1662
|
{
|
|
@@ -1628,7 +1778,8 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1628
1778
|
]
|
|
1629
1779
|
},
|
|
1630
1780
|
"ngay_dang": {"type": "date", "timezone": "Asia/Ho_Chi_Minh"},
|
|
1631
|
-
"ngay_xay_ra": {"type": "formula"}
|
|
1781
|
+
"ngay_xay_ra": {"type": "formula"},
|
|
1782
|
+
"khach": {"type": "link", "table": "khach_tiem_nang", "multi": false}
|
|
1632
1783
|
},
|
|
1633
1784
|
"records": {"subtitle": ["kenh", "ngay_xay_ra"], "image": "anh_chup"}
|
|
1634
1785
|
},
|
|
@@ -1657,7 +1808,8 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1657
1808
|
{"alias": "xong", "color": "emerald"},
|
|
1658
1809
|
{"alias": "bo_qua", "color": "zinc"}
|
|
1659
1810
|
]
|
|
1660
|
-
}
|
|
1811
|
+
},
|
|
1812
|
+
"khach": {"type": "link", "table": "khach_tiem_nang", "multi": false}
|
|
1661
1813
|
},
|
|
1662
1814
|
"records": {
|
|
1663
1815
|
"subtitle": ["viec"],
|
|
@@ -1683,6 +1835,10 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1683
1835
|
{"alias": "khac", "color": "zinc", "mark": {"kind": "icon", "name": "ellipsis"}}
|
|
1684
1836
|
]
|
|
1685
1837
|
},
|
|
1838
|
+
"huong": {
|
|
1839
|
+
"type": "select",
|
|
1840
|
+
"options": [{"alias": "minh_lien_he", "color": "blue"}, {"alias": "khach_lien_he", "color": "green"}]
|
|
1841
|
+
},
|
|
1686
1842
|
"phan_hoi": {
|
|
1687
1843
|
"type": "select",
|
|
1688
1844
|
"options": [
|
|
@@ -1698,7 +1854,8 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1698
1854
|
"man_hinh": {"type": "files"},
|
|
1699
1855
|
"nguyen_van": {"type": "text", "format": "markdown"},
|
|
1700
1856
|
"hen_lai": {"type": "date", "timezone": "Asia/Ho_Chi_Minh"},
|
|
1701
|
-
"nguoi_thuc_hien": {"type": "member"}
|
|
1857
|
+
"nguoi_thuc_hien": {"type": "member"},
|
|
1858
|
+
"khach": {"type": "link", "table": "khach_tiem_nang", "multi": false}
|
|
1702
1859
|
},
|
|
1703
1860
|
"records": {"subtitle": ["qua", "phan_hoi"]}
|
|
1704
1861
|
}
|
|
@@ -1879,6 +2036,25 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1879
2036
|
"button": true
|
|
1880
2037
|
}
|
|
1881
2038
|
]
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
"type": "Record",
|
|
2042
|
+
"entity": "tuong_tac",
|
|
2043
|
+
"children": [
|
|
2044
|
+
{
|
|
2045
|
+
"type": "Section",
|
|
2046
|
+
"key": "section",
|
|
2047
|
+
"children": [
|
|
2048
|
+
"thoi_diem",
|
|
2049
|
+
"huong",
|
|
2050
|
+
"hen_lai",
|
|
2051
|
+
"nguoi_thuc_hien",
|
|
2052
|
+
{"field": "khach", "edit": false},
|
|
2053
|
+
"ghi_am",
|
|
2054
|
+
{"field": "man_hinh", "block": true}
|
|
2055
|
+
]
|
|
2056
|
+
}
|
|
2057
|
+
]
|
|
1882
2058
|
}
|
|
1883
2059
|
]
|
|
1884
2060
|
}
|
|
@@ -1972,7 +2148,8 @@ each section says which its record takes under **Its stages**, so the form is co
|
|
|
1972
2148
|
},
|
|
1973
2149
|
"da_duyet": {"owner": {"group": "<id of the ke_toan group>"}, "within": 2}
|
|
1974
2150
|
}
|
|
1975
|
-
}
|
|
2151
|
+
},
|
|
2152
|
+
"tells": {"han_thanh_toan": {"role": "ke_toan"}}
|
|
1976
2153
|
}
|
|
1977
2154
|
}
|
|
1978
2155
|
],
|