All files / common enums.ts

90.87% Statements 797/877
100% Branches 27/27
9.43% Functions 5/53
90.87% Lines 797/877

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 8781x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 65x 65x 225x 225x 225x 225x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x 30x 5x 5x 5x 1x 1x                                                   1x 1x 1x                                   1x 1x 1x                               1x 1x 1x                               1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
import { option, Button, MenuAssets } from "./models";
 
export enum statusMaster {
  "Draft" = "0",
  "Active" = "200",
  "Deleted" = "400",
}
 
export enum statusInvestment {
  "Draft" = 0,
  "Active" = 200,
  "Deleted" = 400,
}
 
export enum statusProject {
  "DRAFT" = "0",
  "COMING" = "50",
  "OPEN" = "100",
  "COMPLETE" = "200",
  "ALLOCATION" = "201",
  "CLOSED" = "202",
  "REJECTED" = "400",
}
 
export enum statusProperty {
  "Draft" = "0",
  "Active" = "200",
}
 
export enum statusPublish {
  "Draft" = "0",
  "Active" = "200",
  "Deactive" = "400",
}
 
export enum statusOwnedProperty {
  "Available" = "0",
  "Pending" = "50",
  "Owned" = "200",
}
 
export enum houseType {
  House = "H",
  Townhouse = "T",
  Condo = "C",
  Villa = "V",
}
 
export enum projectType {
  "Stocks" = "S",
  "Bond" = "B",
  "Sukuk" = "U",
}
 
export enum projectKind {
  "Villa" = "V",
}
 
export enum certificateType {
  "Freehold/ Sertifikat Hak Milik (SHM)" = "SHM",
  "Leasehold/ Sertifikat Hak Guna Bangunan (HGB)" = "HGB",
  "Girik or Akta Jual Beli" = "AJB",
}
 
function convertToOptions(param: any): option[] {
  return Object.keys(param).map((label) => {
    return {
      label,
      value: param[label],
    };
  });
}
 
export const projectTypeOptions: option[] = convertToOptions(projectType);
 
export const propertyPublishOptions: option[] = convertToOptions(statusPublish);
 
export const propertyOwnedOptions: option[] =
  convertToOptions(statusOwnedProperty);
 
export const projectKindOptions: option[] = convertToOptions(projectKind);
 
export const houseTypeOptions: option[] = convertToOptions(houseType);
 
export const certificateOptions: option[] = convertToOptions(certificateType);
 
export const statusOptions: option[] = convertToOptions(statusMaster);
 
export const statusInvestmentOptions: option[] =
  convertToOptions(statusInvestment);
 
export const statusPropertyOptions: option[] = convertToOptions(statusProperty);
 
export const locationOptions: String[] = [
  "Jakarta Pusat",
  "Jakarta Barat",
  "Jakarta Selatan",
  "Jakarta Timur",
  "Jakarta Utara",
  "Kepulauan Seribu",
  "Tangerang",
  "Tangerang Selatan",
  "Bogor",
  "Depok",
  "Bekasi",
  "Medan",
  "Deli Serdang",
  "Tebing Tinggi",
  "Binjai",
  "Langkat",
  "Serdang Bedagai",
  "Pematang Siantar",
  "Simalungun",
  "Asahan",
  "Batu Bara",
  "Tanjung Balai",
  "Labuhan Batu",
  "Labuhan Batu Utara",
  "Labuhan Batu Selatan",
  "Karo",
  "Dairi",
  "Pakpak Bharat",
  "Toba Samosir",
  "Samosir",
  "Tapanuli Utara",
  "Humbang Hasundutan",
  "Sibolga",
  "Tapanuli Tengah",
  "Padang Sidempuan",
  "Tapanuli Selatan",
  "Padang Lawas Utara",
  "Padang Lawas",
  "Gunungsitoli",
  "Nias Barat",
  "Nias Utara",
  "Nias",
  "Nias Selatan",
  "Mandailing Natal",
  "Banda Aceh",
  "Aceh Besar",
  "Sabang",
  "Aceh Barat",
  "Aceh Jaya",
  "Nagan Raya",
  "Aceh Selatan",
  "Aceh Barat Daya",
  "Simeulue",
  "Pidie",
  "Pidie Jaya",
  "Bireuen",
  "Lhokseumawe",
  "Aceh Utara",
  "Langsa",
  "Aceh Timur",
  "Aceh Tamiang",
  "Aceh Tengah",
  "Bener Meriah",
  "Aceh Tenggara",
  "Gayo Lues",
  "Aceh Singkil",
  "Subulussalam",
  "Padang",
  "Kepulauan Mentawai",
  "Pariaman",
  "Padang Pariaman",
  "Pesisir Selatan",
  "Bukittinggi",
  "Agam",
  "Payakumbuh",
  "Lima Puluh Koto/Kota",
  "Pasaman",
  "Pasaman Barat",
  "Padang Panjang",
  "Tanah Datar",
  "Solok",
  "Sawah Lunto",
  "Sijunjung (Sawah Lunto Sijunjung)",
  "Dharmasraya",
  "Solok Selatan",
  "Pekanbaru",
  "Pelalawan",
  "Kampar",
  "Rokan Hulu",
  "Siak",
  "Bengkalis",
  "Kepulauan Meranti",
  "Dumai",
  "Rokan Hilir",
  "Tanjung Pinang",
  "Bintan",
  "Indragiri Hilir",
  "Indragiri Hulu",
  "Batam",
  "Kuantan Singingi",
  "Karimun",
  "Natuna",
  "Kepulauan Anambas",
  "Lingga",
  "Palembang",
  "Ogan Komering Ilir",
  "Ogan Ilir",
  "Musi Banyuasin",
  "Musi Rawas",
  "Banyuasin",
  "Prabumulih",
  "Muara Enim",
  "Penukal Abab Lematang Ilir",
  "Lahat",
  "Empat Lawang",
  "Pagar Alam",
  "Lubuk Linggau",
  "Musi Rawas Utara",
  "Ogan Komering Ulu",
  "Ogan Komering Ulu Timur",
  "Ogan Komering Ulu Selatan",
  "Pangkal Pinang",
  "Bangka",
  "Bangka Barat",
  "Belitung",
  "Belitung Timur",
  "Bangka Tengah",
  "Bangka Selatan",
  "Metro",
  "Lampung Tengah",
  "Lampung Timur",
  "Tulang Bawang Barat",
  "Lampung Utara",
  "Tulang Bawang",
  "Mesuji",
  "Way Kanan",
  "Lampung Barat",
  "Pesisir Barat",
  "Bandar Lampung",
  "Lampung Selatan",
  "Pesawaran",
  "Pringsewu",
  "Tanggamus",
  "Jambi",
  "Muaro Jambi",
  "Tanjung Jabung Barat",
  "Tanjung Jabung Timur",
  "Batang Hari",
  "Sungaipenuh",
  "Kerinci",
  "Bungo",
  "Tebo",
  "Merangin",
  "Sarolangun",
  "Bengkulu",
  "Bengkulu Utara",
  "Bengkulu Tengah",
  "Bengkulu Selatan",
  "Muko Muko",
  "Seluma",
  "Kaur",
  "Rejang Lebong",
  "Lebong",
  "Kepahiang",
  "Bandung",
  "Bandung Barat",
  "Cimahi",
  "Purwakarta",
  "Subang",
  "Karawang",
  "Serang",
  "Pandeglang",
  "Lebak",
  "Cilegon",
  "Sukabumi",
  "Cianjur",
  "Garut",
  "Cirebon",
  "Indramayu",
  "Sumedang",
  "Majalengka",
  "Kuningan",
  "Tasikmalaya",
  "Ciamis",
  "Pangandaran",
  "Banjar",
  "Semarang",
  "Salatiga",
  "Pekalongan",
  "Batang",
  "Kendal",
  "Tegal",
  "Brebes",
  "Pemalang",
  "Banyumas",
  "Cilacap",
  "Purbalingga",
  "Banjarnegara",
  "Purworejo",
  "Kebumen",
  "Yogyakarta",
  "Bantul",
  "Sleman",
  "Kulon Progo",
  "Gunung Kidul",
  "Magelang",
  "Temanggung",
  "Wonosobo",
  "Surakarta (Solo)",
  "Sukoharjo",
  "Karanganyar",
  "Sragen",
  "Boyolali",
  "Klaten",
  "Wonogiri",
  "Grobogan",
  "Blora",
  "Pati",
  "Rembang",
  "Kudus",
  "Jepara",
  "Demak",
  "Surabaya",
  "Gresik",
  "Sidoarjo",
  "Mojokerto",
  "Jombang",
  "Bojonegoro",
  "Lamongan",
  "Tuban",
  "Madiun",
  "Magetan",
  "Ngawi",
  "Ponorogo",
  "Pacitan",
  "Kediri",
  "Nganjuk",
  "Malang",
  "Batu",
  "Blitar",
  "Trenggalek",
  "Tulungagung",
  "Pasuruan",
  "Probolinggo",
  "Lumajang",
  "Jember",
  "Bondowoso",
  "Situbondo",
  "Banyuwangi",
  "Bangkalan",
  "Sampang",
  "Pamekasan",
  "Sumenep",
  "Banjarmasin",
  "Barito Kuala",
  "Banjarbaru",
  "Tanah Laut",
  "Tapin",
  "Hulu Sungai Selatan",
  "Hulu Sungai Tengah",
  "Hulu Sungai Utara",
  "Tabalong",
  "Balangan",
  "Kotabaru",
  "Tanah Bumbu",
  "Palangka Raya",
  "Kapuas",
  "Barito Timur",
  "Barito Selatan",
  "Barito Utara",
  "Murung Raya",
  "Kotawaringin Barat",
  "Lamandau",
  "Sukamara",
  "Seruyan",
  "Kotawaringin Timur",
  "Katingan",
  "Gunung Mas",
  "Pulang Pisau",
  "Samarinda",
  "Kutai Kartanegara",
  "Bontang",
  "Kutai Timur",
  "Kutai Barat",
  "Mahakam Ulu",
  "Balikpapan",
  "Penajam Paser Utara",
  "Paser",
  "Tarakan",
  "Tana Tidung",
  "Malinau",
  "Bulungan (Bulongan)",
  "Berau",
  "Nunukan",
  "Pontianak",
  "Kubu Raya",
  "Mempawah",
  "Landak",
  "Sanggau",
  "Sintang",
  "Melawi",
  "Kapuas Hulu",
  "Ketapang",
  "Kayong Utara",
  "Singkawang",
  "Sambas",
  "Bengkayang",
  "Sekadau",
  "Denpasar",
  "Badung",
  "Gianyar",
  "Bangli",
  "Klungkung",
  "Karangasem",
  "Buleleng",
  "Tabanan",
  "Jembrana",
  "Mataram",
  "Lombok Barat",
  "Lombok Tengah",
  "Lombok Timur",
  "Lombok Utara",
  "Bima",
  "Dompu",
  "Sumbawa",
  "Sumbawa Barat",
  "Kupang",
  "Sabu Raijua",
  "Timor Tengah Selatan",
  "Timor Tengah Utara",
  "Belu",
  "Malaka",
  "Alor",
  "Rote Ndao",
  "Sikka",
  "Flores Timur",
  "Ende",
  "Ngada",
  "Nagekeo",
  "Manggarai",
  "Manggarai Timur",
  "Lembata",
  "Manggarai Barat",
  "Sumba Timur",
  "Sumba Barat",
  "Sumba Barat Daya",
  "Sumba Tengah",
  "Makassar",
  "Gowa",
  "Bone",
  "Maros",
  "Pangkajene Kepulauan",
  "Barru",
  "Soppeng",
  "Wajo",
  "Parepare",
  "Pinrang",
  "Polewali Mandar",
  "Mamuju",
  "Mamasa",
  "Majene",
  "Mamuju Utara",
  "Sidenreng Rappang/Rapang",
  "Sinjai",
  "Enrekang",
  "Tana Toraja",
  "Toraja Utara",
  "Luwu Utara",
  "Palopo",
  "Luwu",
  "Luwu Timur",
  "Takalar",
  "Jeneponto",
  "Bantaeng",
  "Bulukumba",
  "Selayar (Kepulauan Selayar)",
  "Kendari",
  "Konawe",
  "Konawe Utara",
  "Kolaka",
  "Muna",
  "Buton Utara",
  "Bau-Bau",
  "Buton Selatan",
  "Buton",
  "Buton Tengah",
  "Bombana",
  "Wakatobi",
  "Konawe Selatan",
  "Kolaka Utara",
  "Palu",
  "Sigi",
  "Donggala",
  "Parigi Moutong",
  "Toli-Toli",
  "Buol",
  "Poso",
  "Tojo Una-Una",
  "Banggai",
  "Banggai Kepulauan",
  "Morowali",
  "Manado",
  "Minahasa Utara",
  "Minahasa",
  "Tomohon",
  "Bitung",
  "Kotamobagu",
  "Bolaang Mongondow (Bolmong)",
  "Bolaang Mongondow Utara",
  "Bolaang Mongondow Selatan",
  "Bolaang Mongondow Timur",
  "Kepulauan Sangihe",
  "Kepulauan Siau Tagulandang Biaro (Sitaro)",
  "Kepulauan Talaud",
  "Minahasa Selatan",
  "Minahasa Tenggara",
  "Gorontalo",
  "Boalemo",
  "Pohuwato",
  "Bone Bolango",
  "Gorontalo Utara",
  "Ambon",
  "Buru Selatan",
  "Buru",
  "Maluku Barat Daya",
  "Maluku Tenggara Barat",
  "Maluku Tengah",
  "Seram Bagian Timur",
  "Seram Bagian Barat",
  "Maluku Tenggara",
  "Tual",
  "Kepulauan Aru",
  "Ternate",
  "Halmahera Utara",
  "Halmahera Barat",
  "Halmahera Selatan",
  "Pulau Morotai",
  "Pulau Taliabu",
  "Tidore Kepulauan",
  "Halmahera Tengah",
  "Halmahera Timur",
  "Kepulauan Sula",
  "Biak Numfor",
  "Supiori",
  "Kepulauan Yapen (Yapen Waropen)",
  "Waropen",
  "Manokwari",
  "Pegunungan Arfak",
  "Manokwari Selatan",
  "Tambrauw",
  "Sorong",
  "Sorong Selatan",
  "Maybrat",
  "Raja Ampat",
  "Teluk Bintuni",
  "Teluk Wondama",
  "Fakfak",
  "Kaimana",
  "Paniai",
  "Deiyai (Deliyai)",
  "Intan Jaya",
  "Nabire",
  "Dogiyai",
  "Puncak Jaya",
  "Puncak",
  "Yahukimo",
  "Jayapura",
  "Sarmi",
  "Tolikara",
  "Mamberamo Raya",
  "Keerom",
  "Jayawijaya",
  "Lanny Jaya",
  "Nduga",
  "Mamberamo Tengah",
  "Pegunungan Bintang",
  "Yalimo",
  "Merauke",
  "Boven Digoel",
  "Asmat",
  "Mappi",
  "Mimika",
];
 
export const salutationOptions: String[] = ["MR", "MRS", "MS"];
 
export let btnAssetment: Button[] = [
  {
    to: "customer-management",
    title: "Management Assets",
  },
  {
    to: "",
    title: "Customer Document",
  },
  {
    to: "customer-banks",
    title: "Customer Bank",
  },
  {
    to: "",
    title: "Transaction Log",
  },
];
 
export let optionManageAssets: MenuAssets[] = [
  {
    title: "Property",
    sub: [
      {
        title: "'s Progress",
        to: "customer-progress",
        icon: "cached",
      },
      {
        title: "'s Transaction",
        to: "customer-transaction",
        icon: "receipt_long",
      },
      {
        title: "'s Mortgage",
        to: "customer-mortgage",
        icon: "mortgage.svg",
      },
    ],
  },
  {
    title: "Investment",
    sub: [
      {
        title: "'s Progress",
        to: "customer-progress",
        icon: "cached",
      },
      {
        title: "'s Transaction",
        to: "customer-transaction",
        icon: "receipt_long",
      },
    ],
  },
];
 
export const progress: String[] = [
  "Enquiry Made",
  "Call with Briix Representative",
  "Documents Sent by Admin",
  "Documents Reviewed by User",
  "Documents Signed",
  "Documents Delivered",
  "Documents Verified",
  "Payment Pending",
  "Property Owned",
];
 
export enum status {
  "Available" = 0,
  "Call with Briix Representative" = 10,
  "Documents Sent by Admin" = 20,
  "Documents Reviewed by User" = 30,
  "Documents Signed" = 40,
  "Documents Delivered" = 50,
  "Documents Verified" = 60,
  "Payment Pending" = 70,
  "Property Owned" = 200,
  "Rejected" = 400,
}
 
export enum statsInvoice {
  "Unpaid" = 0,
  "In Progress" = 100,
  "Paid" = 200,
}
 
export enum statsWallet {
  "Pending" = 0,
  "Success" = 200,
  "Rejected" = 400,
}
 
export enum statsApproval {
  "Not Submit" = 0,
  "Waiting for Result" = 50,
  "Pending" = 100,
  "Approve" = 200,
  "Rejected" = 450,
}
 
export enum statsInvestment {
  "Unpaid" = 0,
  "Paid" = 200,
  "Submit" = 100,
  "Rejected" = 400,
}
 
export enum statusDividend {
  "Pending" = "0",
  "Completed" = "200",
  "Cancel" = "400",
}
 
export const statusDividendOptions: option[] = convertToOptions(statusDividend);
 
export const month: String[] = [
  "1st",
  "2nd",
  "3rd",
  "4th",
  "5th",
  "6th",
  "7th",
  "8th",
  "9th",
  "10th",
  "11th",
  "12th",
];
 
export enum required {
  "This field cannot be empty",
}
export const mortgageP1: String[] = [
  "Property’s Value",
  "Deposit",
  "Levered",
  "Residual Owed",
  "Tenor (Years)",
  "Tenor (Months)",
  "Interest",
  "Annual Interest Payment",
  "Monthly Interest Payment",
  "Monthly Principal",
  "Total Monthly Payment",
];
 
export const mortgageP2: String[] = [
  "Estimated Avg. Net Daily Rate",
  "Days in Month",
  "Estimated Occupancy Rate",
  "Estimated Monthly Yield",
  "Estimated Monthly Ammotisation",
  "Estimated Net to You",
  "Subnote",
];
 
export const monthList: Array<any> = [
  { id: "1", label: "January", initial: "JAN" },
  { id: "2", label: "February", initial: "FEB" },
  { id: "3", label: "March", initial: "MAR" },
  { id: "4", label: "April", initial: "APR" },
  { id: "5", label: "May", initial: "MAY" },
  { id: "6", label: "June", initial: "JUN" },
  { id: "7", label: "July", initial: "JUL" },
  { id: "8", label: "August", initial: "AUG" },
  { id: "9", label: "September", initial: "SEP" },
  { id: "10", label: "October", initial: "OCT" },
  { id: "11", label: "November", initial: "NOV" },
  { id: "12", label: "December", initial: "DEC" },
];
 
function yearListGenerate(): Array<number> {
  let min = new Date().getFullYear();
  let max = min + 5;
  let years = [];
 
  for (let i = max; i >= min; i--) {
    years.push(i);
  }
  return years.sort();
}
 
export const statusGenerate = (
  param: number
): { name: string; color: string; textColor: string } => {
  switch (param) {
    case 0:
      return { name: "Available", color: "light-blue-1", textColor: "blue-5" };
      break;

    case 10:
    case 20:
    case 30:
    case 40:
    case 50:
    case 60:
    case 70:
      return { name: "Pending", color: "orange-1", textColor: "orange-9" };
      break;

    case 200:
      return { name: "Ownned", color: "grey-1", textColor: "grey-9" };
      break;

    default:
      return { name: "Available", color: "light-blue-1", textColor: "blue-9" };
      break;
  }
};
 
export const invoiceStatusGenerate = (
  param: number
): { name: string; color: string; textColor: string } => {
  switch (param) {
    case 0:
      return { name: "Unpaid", color: "orange-`", textColor: "orange-9" };

      case 100:
      return { name: "Partial Paid", color: "green-1", textColor: "green-9" };
    case 200:
      return { name: "Paid", color: "green-1", textColor: "green-9" };

    case 400:
      return { name: "Cancel", color: "red-1", textColor: "red-9" };

    default:
      return { name: "Unpaid", color: "orange-1", textColor: "orange-9" };
  }
};
 
export const statusPublishedGenerate = (
  param: number
): { name: string; color: string; textColor: string } => {
  switch (param) {
    case 0:
      return { name: "Draft", color: "light-grey-primary", textColor: "light-grey-1" };

    case 200:
      return { name: "Active", color: "lightblue", textColor: "blue-brand" };

    case 400:
      return { name: "Deactive", color: "red-1", textColor: "red-9" };

    default:
      return { name: "Draft", color: "light-grey-primary", textColor: "light-grey-1" };
  }
};
 
export const statusPropertyGenerate = (
  param: number
): { name: string; color: string; textColor: string } => {
  switch (param) {
    case 0:
      return { name: "Ground Bricking", color: "lightblue", textColor: "blue-brand" };

    case 100:
      return { name: "Development", color: "lightorange-brand", textColor: "orange-brand" };

    case 200:
      return { name: "Built", color: "lightgreen-brand", textColor: "green-brand" };

    default:
      return { name: "Ground Bricking", color: "light-blue-1", textColor: "blue-9" };
  }
};
 
export const yearList: Array<number> = yearListGenerate();
 
export enum icon{
  "Bathroom"="icon_bathroom.svg",
  "Bedroom"="icon_bedroom.svg",
  "Building Size"="icon_building_size.svg",
  "Car Lot"="icon_car_lot.svg",
  "Garden"="icon_garden.svg",
  "Gym"="icon_gym.svg",
  "Land Area"="icon_land_area.svg",
  "Pool"="icon_pool.svg"
}
 
export const iconOption: option[] = convertToOptions(icon);
 
export enum propertyStatus{
  'Groundbreaking'= '0',
  'Development'= '100',
  'Built' = '200'
}
export const propertyStatusOption: option[] = convertToOptions(propertyStatus);
 
export enum riskLevel{
  "Low"='0',
  "Medium"='200',
  "High"='400',
}
export const riskOption: option[] = convertToOptions(riskLevel);