kui-crm 0.0.592 → 0.0.594

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/index.d.ts CHANGED
@@ -429,6 +429,7 @@ declare type ApartmentResourceModel = {
429
429
  comment?: string;
430
430
  meters_max_count?: number;
431
431
  meters_current_count?: number;
432
+ app_name?: string;
432
433
  };
433
434
  declare type ApartmentResourcesResponse = ApartmentResourceModel[];
434
435
 
@@ -863,71 +864,6 @@ declare type ContractTermAcceptationModel = {
863
864
  comment: string;
864
865
  };
865
866
 
866
- declare type RoommateParams = {};
867
- declare type RentalInspectionParams = {
868
- id: number;
869
- rental_contract_id?: string;
870
- date: string;
871
- is_ok?: boolean;
872
- is_fixed?: boolean;
873
- note: string;
874
- };
875
- declare type ClosingRentalContractFields = {
876
- have_closing_transfer_inspection?: boolean;
877
- have_closing_inspection_date_eq_contract_end_date?: boolean;
878
- have_last_meters_filled?: boolean;
879
- have_closing_impairments?: boolean;
880
- have_closed_last_period?: boolean;
881
- have_calculated_deposit?: boolean;
882
- };
883
- declare type RentalContractModel = {
884
- id: number;
885
- renter: CounterpartyModel;
886
- owner: LiteUserModel;
887
- renter_id: number;
888
- number: string;
889
- apartment: ApartmentLinkModel;
890
- owner_id?: string;
891
- sign_date: string;
892
- start_date: string;
893
- end_date?: string;
894
- close_date?: string;
895
- month_payment: string;
896
- day_of_payment?: number;
897
- termination_showing_days?: number;
898
- termination_penalty: string;
899
- initial_commission: string;
900
- security_payment: string;
901
- auto_prolongate: boolean;
902
- installment: number;
903
- rental_type: RentalTypes;
904
- roommates_ids?: RoommateParams[];
905
- status?: ContractStatuses;
906
- inspections?: RentalInspectionParams[];
907
- service_contract_id?: number;
908
- next_inspection: string | null;
909
- planned_leave_date: string;
910
- inspection_interval_month?: number;
911
- allowable_price_deviation?: number;
912
- renter_payment_status: RentalPaymentStatuses;
913
- notification_period: number;
914
- allowed_pets?: boolean;
915
- allowed_children?: boolean;
916
- allowed_smoking?: boolean;
917
- utility_payers?: UtilityPayerModel[];
918
- closing_conditions: ClosingRentalContractFields;
919
- first_appraisal_interval_month: number;
920
- estate_agent?: ClientLiteModel;
921
- edit_condition?: EditConditions;
922
- activate_condition?: ActivateConditions;
923
- planned_leave_date_setted_at?: string;
924
- roommates: LiteUserModel[];
925
- public_offer_status?: OfferSignStatuses;
926
- terms_acceptation?: ContractTermAcceptationModel;
927
- representative?: ClientLinkModel | null;
928
- is_transferred_by_tenant?: boolean;
929
- };
930
-
931
867
  declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
932
868
  declare type FixedCostModel = {
933
869
  name: string;
@@ -1024,6 +960,71 @@ declare type ServiceContractListModel = {
1024
960
  rental_type: RentalTypes;
1025
961
  };
1026
962
 
963
+ declare type RoommateParams = {};
964
+ declare type RentalInspectionParams = {
965
+ id: number;
966
+ rental_contract_id?: string;
967
+ date: string;
968
+ is_ok?: boolean;
969
+ is_fixed?: boolean;
970
+ note: string;
971
+ };
972
+ declare type ClosingRentalContractFields = {
973
+ have_closing_transfer_inspection?: boolean;
974
+ have_closing_inspection_date_eq_contract_end_date?: boolean;
975
+ have_last_meters_filled?: boolean;
976
+ have_closing_impairments?: boolean;
977
+ have_closed_last_period?: boolean;
978
+ have_calculated_deposit?: boolean;
979
+ };
980
+ declare type RentalContractModel = {
981
+ id: number;
982
+ renter: CounterpartyModel;
983
+ owner: LiteUserModel;
984
+ renter_id: number;
985
+ number: string;
986
+ apartment: ApartmentLinkModel;
987
+ owner_id?: string;
988
+ sign_date: string;
989
+ start_date: string;
990
+ end_date?: string;
991
+ close_date?: string;
992
+ month_payment: string;
993
+ day_of_payment?: number;
994
+ termination_showing_days?: number;
995
+ termination_penalty: string;
996
+ initial_commission: string;
997
+ security_payment: string;
998
+ auto_prolongate: boolean;
999
+ installment: number;
1000
+ rental_type: RentalTypes;
1001
+ roommates_ids?: RoommateParams[];
1002
+ inspections?: RentalInspectionParams[];
1003
+ service_contract_id?: number;
1004
+ next_inspection: string | null;
1005
+ planned_leave_date: string;
1006
+ inspection_interval_month?: number;
1007
+ allowable_price_deviation?: number;
1008
+ renter_payment_status: RentalPaymentStatuses;
1009
+ notification_period: number;
1010
+ allowed_pets?: boolean;
1011
+ allowed_children?: boolean;
1012
+ allowed_smoking?: boolean;
1013
+ utility_payers?: UtilityPayerModel[];
1014
+ closing_conditions: ClosingRentalContractFields;
1015
+ first_appraisal_interval_month: number;
1016
+ estate_agent?: ClientLiteModel;
1017
+ edit_condition?: EditConditions;
1018
+ activate_condition?: ActivateConditions;
1019
+ planned_leave_date_setted_at?: string;
1020
+ roommates: LiteUserModel[];
1021
+ public_offer_status?: OfferSignStatuses;
1022
+ terms_acceptation?: ContractTermAcceptationModel;
1023
+ representative?: ClientLinkModel | null;
1024
+ is_transferred_by_tenant?: boolean;
1025
+ state: ServiceContractStatusStateModel;
1026
+ };
1027
+
1027
1028
  declare type SignInParams = {
1028
1029
  phone: string;
1029
1030
  password: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-crm",
3
- "version": "0.0.592",
3
+ "version": "0.0.594",
4
4
  "description": "crm complex fields",
5
5
  "main": "./cjs/index.js",
6
6
  "types": "./index.d.ts",
package/types/index.d.ts CHANGED
@@ -586,71 +586,6 @@ declare type ContractTermAcceptationModel = {
586
586
  comment: string;
587
587
  };
588
588
 
589
- declare type RoommateParams = {};
590
- declare type RentalInspectionParams = {
591
- id: number;
592
- rental_contract_id?: string;
593
- date: string;
594
- is_ok?: boolean;
595
- is_fixed?: boolean;
596
- note: string;
597
- };
598
- declare type ClosingRentalContractFields = {
599
- have_closing_transfer_inspection?: boolean;
600
- have_closing_inspection_date_eq_contract_end_date?: boolean;
601
- have_last_meters_filled?: boolean;
602
- have_closing_impairments?: boolean;
603
- have_closed_last_period?: boolean;
604
- have_calculated_deposit?: boolean;
605
- };
606
- declare type RentalContractModel = {
607
- id: number;
608
- renter: CounterpartyModel;
609
- owner: LiteUserModel;
610
- renter_id: number;
611
- number: string;
612
- apartment: ApartmentLinkModel;
613
- owner_id?: string;
614
- sign_date: string;
615
- start_date: string;
616
- end_date?: string;
617
- close_date?: string;
618
- month_payment: string;
619
- day_of_payment?: number;
620
- termination_showing_days?: number;
621
- termination_penalty: string;
622
- initial_commission: string;
623
- security_payment: string;
624
- auto_prolongate: boolean;
625
- installment: number;
626
- rental_type: RentalTypes;
627
- roommates_ids?: RoommateParams[];
628
- status?: ContractStatuses;
629
- inspections?: RentalInspectionParams[];
630
- service_contract_id?: number;
631
- next_inspection: string | null;
632
- planned_leave_date: string;
633
- inspection_interval_month?: number;
634
- allowable_price_deviation?: number;
635
- renter_payment_status: RentalPaymentStatuses;
636
- notification_period: number;
637
- allowed_pets?: boolean;
638
- allowed_children?: boolean;
639
- allowed_smoking?: boolean;
640
- utility_payers?: UtilityPayerModel[];
641
- closing_conditions: ClosingRentalContractFields;
642
- first_appraisal_interval_month: number;
643
- estate_agent?: ClientLiteModel;
644
- edit_condition?: EditConditions;
645
- activate_condition?: ActivateConditions;
646
- planned_leave_date_setted_at?: string;
647
- roommates: LiteUserModel[];
648
- public_offer_status?: OfferSignStatuses;
649
- terms_acceptation?: ContractTermAcceptationModel;
650
- representative?: ClientLinkModel | null;
651
- is_transferred_by_tenant?: boolean;
652
- };
653
-
654
589
  declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
655
590
  declare type FixedCostModel = {
656
591
  name: string;
@@ -747,6 +682,71 @@ declare type ServiceContractListModel = {
747
682
  rental_type: RentalTypes;
748
683
  };
749
684
 
685
+ declare type RoommateParams = {};
686
+ declare type RentalInspectionParams = {
687
+ id: number;
688
+ rental_contract_id?: string;
689
+ date: string;
690
+ is_ok?: boolean;
691
+ is_fixed?: boolean;
692
+ note: string;
693
+ };
694
+ declare type ClosingRentalContractFields = {
695
+ have_closing_transfer_inspection?: boolean;
696
+ have_closing_inspection_date_eq_contract_end_date?: boolean;
697
+ have_last_meters_filled?: boolean;
698
+ have_closing_impairments?: boolean;
699
+ have_closed_last_period?: boolean;
700
+ have_calculated_deposit?: boolean;
701
+ };
702
+ declare type RentalContractModel = {
703
+ id: number;
704
+ renter: CounterpartyModel;
705
+ owner: LiteUserModel;
706
+ renter_id: number;
707
+ number: string;
708
+ apartment: ApartmentLinkModel;
709
+ owner_id?: string;
710
+ sign_date: string;
711
+ start_date: string;
712
+ end_date?: string;
713
+ close_date?: string;
714
+ month_payment: string;
715
+ day_of_payment?: number;
716
+ termination_showing_days?: number;
717
+ termination_penalty: string;
718
+ initial_commission: string;
719
+ security_payment: string;
720
+ auto_prolongate: boolean;
721
+ installment: number;
722
+ rental_type: RentalTypes;
723
+ roommates_ids?: RoommateParams[];
724
+ inspections?: RentalInspectionParams[];
725
+ service_contract_id?: number;
726
+ next_inspection: string | null;
727
+ planned_leave_date: string;
728
+ inspection_interval_month?: number;
729
+ allowable_price_deviation?: number;
730
+ renter_payment_status: RentalPaymentStatuses;
731
+ notification_period: number;
732
+ allowed_pets?: boolean;
733
+ allowed_children?: boolean;
734
+ allowed_smoking?: boolean;
735
+ utility_payers?: UtilityPayerModel[];
736
+ closing_conditions: ClosingRentalContractFields;
737
+ first_appraisal_interval_month: number;
738
+ estate_agent?: ClientLiteModel;
739
+ edit_condition?: EditConditions;
740
+ activate_condition?: ActivateConditions;
741
+ planned_leave_date_setted_at?: string;
742
+ roommates: LiteUserModel[];
743
+ public_offer_status?: OfferSignStatuses;
744
+ terms_acceptation?: ContractTermAcceptationModel;
745
+ representative?: ClientLinkModel | null;
746
+ is_transferred_by_tenant?: boolean;
747
+ state: ServiceContractStatusStateModel;
748
+ };
749
+
750
750
  declare type ImpairmentTypes = "damages" | "wear_tear";
751
751
  declare type PeriodStatus = "new" | "closed" | "overdue";
752
752
  declare type FillingTypes = "finish" | "furniture" | "appliance" | "accessorie";
@@ -1257,6 +1257,7 @@ declare type ApartmentResourceModel = {
1257
1257
  comment?: string;
1258
1258
  meters_max_count?: number;
1259
1259
  meters_current_count?: number;
1260
+ app_name?: string;
1260
1261
  };
1261
1262
  declare type ApartmentResourcesResponse = ApartmentResourceModel[];
1262
1263
 
package/utils/index.d.ts CHANGED
@@ -24,7 +24,6 @@ declare type ClientTypes = "personal" | "company";
24
24
  declare type RentalStatuses = "Rented out" | "Closed" | "Open";
25
25
  declare type RentalPaymentStatuses = "rent_overdue" | "major_overdue" | "minor_overdue" | "rent_due" | "major_due" | "minor_due" | "all_paid";
26
26
  declare type PaymentStatuses = "paid" | "unpaid" | "overdue" | null;
27
- declare type ContractStatuses = "Closed" | "Rented out" | "New" | "Pending" | "Open" | "Closing" | "Archived";
28
27
  declare type TaxResidenceType = "resident" | "not_resident";
29
28
  declare type RentalTypes = "short" | "medium" | "long" | "any";
30
29
  declare type DocumentVisibilityAPIVariants = "everybody" | "renter" | "owner" | "nobody";
@@ -353,71 +352,6 @@ declare type ContractTermAcceptationModel = {
353
352
  comment: string;
354
353
  };
355
354
 
356
- declare type RoommateParams = {};
357
- declare type RentalInspectionParams = {
358
- id: number;
359
- rental_contract_id?: string;
360
- date: string;
361
- is_ok?: boolean;
362
- is_fixed?: boolean;
363
- note: string;
364
- };
365
- declare type ClosingRentalContractFields = {
366
- have_closing_transfer_inspection?: boolean;
367
- have_closing_inspection_date_eq_contract_end_date?: boolean;
368
- have_last_meters_filled?: boolean;
369
- have_closing_impairments?: boolean;
370
- have_closed_last_period?: boolean;
371
- have_calculated_deposit?: boolean;
372
- };
373
- declare type RentalContractModel = {
374
- id: number;
375
- renter: CounterpartyModel;
376
- owner: LiteUserModel;
377
- renter_id: number;
378
- number: string;
379
- apartment: ApartmentLinkModel;
380
- owner_id?: string;
381
- sign_date: string;
382
- start_date: string;
383
- end_date?: string;
384
- close_date?: string;
385
- month_payment: string;
386
- day_of_payment?: number;
387
- termination_showing_days?: number;
388
- termination_penalty: string;
389
- initial_commission: string;
390
- security_payment: string;
391
- auto_prolongate: boolean;
392
- installment: number;
393
- rental_type: RentalTypes;
394
- roommates_ids?: RoommateParams[];
395
- status?: ContractStatuses;
396
- inspections?: RentalInspectionParams[];
397
- service_contract_id?: number;
398
- next_inspection: string | null;
399
- planned_leave_date: string;
400
- inspection_interval_month?: number;
401
- allowable_price_deviation?: number;
402
- renter_payment_status: RentalPaymentStatuses;
403
- notification_period: number;
404
- allowed_pets?: boolean;
405
- allowed_children?: boolean;
406
- allowed_smoking?: boolean;
407
- utility_payers?: UtilityPayerModel[];
408
- closing_conditions: ClosingRentalContractFields;
409
- first_appraisal_interval_month: number;
410
- estate_agent?: ClientLiteModel;
411
- edit_condition?: EditConditions;
412
- activate_condition?: ActivateConditions;
413
- planned_leave_date_setted_at?: string;
414
- roommates: LiteUserModel[];
415
- public_offer_status?: OfferSignStatuses;
416
- terms_acceptation?: ContractTermAcceptationModel;
417
- representative?: ClientLinkModel | null;
418
- is_transferred_by_tenant?: boolean;
419
- };
420
-
421
355
  declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
422
356
  declare type FixedCostModel = {
423
357
  name: string;
@@ -504,6 +438,71 @@ declare type ServiceContractSubStatuses = "negotiation" | "appraisal" | "offer"
504
438
  declare type ServiceContractFlags = "new" | "expiring_soon" | "overdue" | "n/a" | "attention" | "problem" | "vip" | "dispute";
505
439
  declare type ServiceContractStatusStateModel = StatusStateModel<ServiceContractSubStatuses, ServiceContractFlags[]>;
506
440
 
441
+ declare type RoommateParams = {};
442
+ declare type RentalInspectionParams = {
443
+ id: number;
444
+ rental_contract_id?: string;
445
+ date: string;
446
+ is_ok?: boolean;
447
+ is_fixed?: boolean;
448
+ note: string;
449
+ };
450
+ declare type ClosingRentalContractFields = {
451
+ have_closing_transfer_inspection?: boolean;
452
+ have_closing_inspection_date_eq_contract_end_date?: boolean;
453
+ have_last_meters_filled?: boolean;
454
+ have_closing_impairments?: boolean;
455
+ have_closed_last_period?: boolean;
456
+ have_calculated_deposit?: boolean;
457
+ };
458
+ declare type RentalContractModel = {
459
+ id: number;
460
+ renter: CounterpartyModel;
461
+ owner: LiteUserModel;
462
+ renter_id: number;
463
+ number: string;
464
+ apartment: ApartmentLinkModel;
465
+ owner_id?: string;
466
+ sign_date: string;
467
+ start_date: string;
468
+ end_date?: string;
469
+ close_date?: string;
470
+ month_payment: string;
471
+ day_of_payment?: number;
472
+ termination_showing_days?: number;
473
+ termination_penalty: string;
474
+ initial_commission: string;
475
+ security_payment: string;
476
+ auto_prolongate: boolean;
477
+ installment: number;
478
+ rental_type: RentalTypes;
479
+ roommates_ids?: RoommateParams[];
480
+ inspections?: RentalInspectionParams[];
481
+ service_contract_id?: number;
482
+ next_inspection: string | null;
483
+ planned_leave_date: string;
484
+ inspection_interval_month?: number;
485
+ allowable_price_deviation?: number;
486
+ renter_payment_status: RentalPaymentStatuses;
487
+ notification_period: number;
488
+ allowed_pets?: boolean;
489
+ allowed_children?: boolean;
490
+ allowed_smoking?: boolean;
491
+ utility_payers?: UtilityPayerModel[];
492
+ closing_conditions: ClosingRentalContractFields;
493
+ first_appraisal_interval_month: number;
494
+ estate_agent?: ClientLiteModel;
495
+ edit_condition?: EditConditions;
496
+ activate_condition?: ActivateConditions;
497
+ planned_leave_date_setted_at?: string;
498
+ roommates: LiteUserModel[];
499
+ public_offer_status?: OfferSignStatuses;
500
+ terms_acceptation?: ContractTermAcceptationModel;
501
+ representative?: ClientLinkModel | null;
502
+ is_transferred_by_tenant?: boolean;
503
+ state: ServiceContractStatusStateModel;
504
+ };
505
+
507
506
  declare type PeriodStatus = "new" | "closed" | "overdue";
508
507
  declare type ParkingTypes = "public" | "house" | "underground" | "multi_level";
509
508
  declare type TVTypes = "no" | "cable" | "satellite" | "smart_tv";