kui-crm 0.0.238 → 0.0.240

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
@@ -479,6 +479,21 @@ declare type HeatingMetersResponse = MetersResponseBody<SingleMeterParams>;
479
479
  declare type MetersResponse = WaterMetersResponse | ElectricityMetersResponse | GasMetersResponse | HeatingMetersResponse;
480
480
  declare type MeterModel = WaterMeterParams | ElectricityMeterParams | SingleMeterParams;
481
481
 
482
+ declare type ClientRoles = "landlord" | "tenant" | "landlord_tenant";
483
+ declare type ClientLiteModel = {
484
+ id: number;
485
+ role: ClientRoles;
486
+ email: string;
487
+ first_name: string;
488
+ last_name: string;
489
+ middle_name: string;
490
+ full_name: string;
491
+ phone: string;
492
+ contract_number: string;
493
+ apartment_address: string;
494
+ client_type?: ClientTypes;
495
+ };
496
+
482
497
  declare type RoommateParams = {};
483
498
  declare type RentalInspectionParams = {
484
499
  id: number;
@@ -532,6 +547,8 @@ declare type RentalContractModel = {
532
547
  utility_payers?: UtilityPayerModel[];
533
548
  closing_conditions: ClosingRentalContractFields;
534
549
  first_appraisal_interval_month: number;
550
+ estate_agent?: ClientLiteModel;
551
+ can_activate?: boolean;
535
552
  };
536
553
 
537
554
  declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
@@ -596,6 +613,7 @@ declare type ServiceContractModel = {
596
613
  close_date?: string | null;
597
614
  planned_end_date?: string | null;
598
615
  closing_conditions: ClosingServiceContractFields;
616
+ can_activate?: boolean;
599
617
  };
600
618
  declare type ServiceContractListModel = {
601
619
  id: number;
@@ -616,21 +634,6 @@ declare type ApiTokenAuthResponse = {
616
634
  token: string;
617
635
  };
618
636
 
619
- declare type ClientRoles = "landlord" | "tenant" | "landlord_tenant";
620
- declare type ClientLiteModel = {
621
- id: number;
622
- role: ClientRoles;
623
- email: string;
624
- first_name: string;
625
- last_name: string;
626
- middle_name: string;
627
- full_name: string;
628
- phone: string;
629
- contract_number: string;
630
- apartment_address: string;
631
- client_type?: ClientTypes;
632
- };
633
-
634
637
  declare type InspectionRoomPhotoTypes = "kitchen" | "bathroom" | "room" | "bedroom" | "entrance" | "others" | "toilet" | "combined_bathroom" | "keys" | "additional" | "parking";
635
638
  declare type TransferInspectionTypes = "maroom_tenant" | "tenant_maroom" | "maroom_landlord";
636
639
  declare type InspectionFillingParams = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-crm",
3
- "version": "0.0.238",
3
+ "version": "0.0.240",
4
4
  "description": "crm complex fields",
5
5
  "main": "./cjs/index.js",
6
6
  "types": "./index.d.ts",
package/types/index.d.ts CHANGED
@@ -497,6 +497,21 @@ declare type InspectionBasedOnParams = {
497
497
  type: InspectionTypes;
498
498
  };
499
499
 
500
+ declare type ClientRoles = "landlord" | "tenant" | "landlord_tenant";
501
+ declare type ClientLiteModel = {
502
+ id: number;
503
+ role: ClientRoles;
504
+ email: string;
505
+ first_name: string;
506
+ last_name: string;
507
+ middle_name: string;
508
+ full_name: string;
509
+ phone: string;
510
+ contract_number: string;
511
+ apartment_address: string;
512
+ client_type?: ClientTypes;
513
+ };
514
+
500
515
  declare type RoommateParams = {};
501
516
  declare type RentalInspectionParams = {
502
517
  id: number;
@@ -550,6 +565,8 @@ declare type RentalContractModel = {
550
565
  utility_payers?: UtilityPayerModel[];
551
566
  closing_conditions: ClosingRentalContractFields;
552
567
  first_appraisal_interval_month: number;
568
+ estate_agent?: ClientLiteModel;
569
+ can_activate?: boolean;
553
570
  };
554
571
 
555
572
  declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
@@ -614,6 +631,7 @@ declare type ServiceContractModel = {
614
631
  close_date?: string | null;
615
632
  planned_end_date?: string | null;
616
633
  closing_conditions: ClosingServiceContractFields;
634
+ can_activate?: boolean;
617
635
  };
618
636
  declare type ServiceContractListModel = {
619
637
  id: number;
@@ -626,21 +644,6 @@ declare type ServiceContractListModel = {
626
644
  rental_type: RentalTypes;
627
645
  };
628
646
 
629
- declare type ClientRoles = "landlord" | "tenant" | "landlord_tenant";
630
- declare type ClientLiteModel = {
631
- id: number;
632
- role: ClientRoles;
633
- email: string;
634
- first_name: string;
635
- last_name: string;
636
- middle_name: string;
637
- full_name: string;
638
- phone: string;
639
- contract_number: string;
640
- apartment_address: string;
641
- client_type?: ClientTypes;
642
- };
643
-
644
647
  declare type ImpairmentTypes = "damages" | "wear_tear";
645
648
  declare type PeriodStatus = "new" | "closed" | "overdue";
646
649
  declare type FillingTypes = "finish" | "furniture" | "appliance" | "accessorie";
package/utils/index.d.ts CHANGED
@@ -226,6 +226,21 @@ declare type ApartmentPaymentInfoParams = {
226
226
  };
227
227
  declare type ApartmentDescriptionParams = ApartmentMainInfoParams & ApartmentSecurityInfoParams & ApartmentTelecommunicationInfoParams & ApartmentDetailInfoParams & ApartmentHouseInfoParams & MaxMetersInfoParams;
228
228
 
229
+ declare type ClientRoles = "landlord" | "tenant" | "landlord_tenant";
230
+ declare type ClientLiteModel = {
231
+ id: number;
232
+ role: ClientRoles;
233
+ email: string;
234
+ first_name: string;
235
+ last_name: string;
236
+ middle_name: string;
237
+ full_name: string;
238
+ phone: string;
239
+ contract_number: string;
240
+ apartment_address: string;
241
+ client_type?: ClientTypes;
242
+ };
243
+
229
244
  declare type RoommateParams = {};
230
245
  declare type RentalInspectionParams = {
231
246
  id: number;
@@ -279,6 +294,8 @@ declare type RentalContractModel = {
279
294
  utility_payers?: UtilityPayerModel[];
280
295
  closing_conditions: ClosingRentalContractFields;
281
296
  first_appraisal_interval_month: number;
297
+ estate_agent?: ClientLiteModel;
298
+ can_activate?: boolean;
282
299
  };
283
300
 
284
301
  declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
@@ -343,6 +360,7 @@ declare type ServiceContractModel = {
343
360
  close_date?: string | null;
344
361
  planned_end_date?: string | null;
345
362
  closing_conditions: ClosingServiceContractFields;
363
+ can_activate?: boolean;
346
364
  };
347
365
 
348
366
  declare type PeriodStatus = "new" | "closed" | "overdue";