kui-crm_actions 0.0.146 → 0.0.147

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
@@ -527,7 +527,7 @@ type InspectionFillingFormParams = {
527
527
  } & Omit<InspectionFillingParams, "images">
528
528
 
529
529
  type FillingListInfoStepFields = {
530
- fillingList: InspectionFillingFormParams[]
530
+ fillingList: InspectionFillingParams[]
531
531
  }
532
532
 
533
533
 
@@ -540,13 +540,17 @@ type InventoryInspectionFormFields = CommonInspectionFormFields &
540
540
  FillingListInfoStepFields &
541
541
  InspectionRoomsImagesFields
542
542
 
543
+ type InventoryInspectionPostFormFields = {
544
+ fillingList: InspectionFillingFormParams[]
545
+ } & Omit<InventoryInspectionFormFields, "fillingList">
546
+
543
547
  declare const inspectionsRequests: {
544
548
  getInspectionTypes(apartmentId: number): Promise<InspectionTypes[] | undefined>;
545
549
  createInspection(apartmentId: number, body: any, loader: Loader): Promise<number | undefined>;
546
550
  createInitialInspection(data: InitialInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
547
551
  createRegularInspection(data: RegularInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
548
552
  createTransferInspection(data: TransferInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
549
- createInventoryInspection(data: InventoryInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
553
+ createInventoryInspection(data: InventoryInspectionPostFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
550
554
  getRoomParams(rooms: InspectionRoomImagesParams[]): {
551
555
  purpose: kui_crm.InspectionRoomPhotoTypes;
552
556
  comment: string;
@@ -577,7 +581,7 @@ declare const inspectionsRequestBody: {
577
581
  };
578
582
  }[];
579
583
  };
580
- getPostBodyInventoryInspection(inspection: InventoryInspectionFormFields, roomsImages: InspectionRoomPhotoRequest[], fillingFiles: FileBodyRequest[], metersFiles: FileBodyRequest[], contractFile?: FileBodyRequest | null | undefined): InventoryInspectionPostBody;
584
+ getPostBodyInventoryInspection(inspection: InventoryInspectionPostFormFields, roomsImages: InspectionRoomPhotoRequest[], fillingFiles: FileBodyRequest[], metersFiles: FileBodyRequest[], contractFile?: FileBodyRequest | null | undefined): InventoryInspectionPostBody;
581
585
  getInventoryInspectionMeters(meters: InspectionMeterFields[], metersFiles: FileBodyRequest[], metersImages?: ImageBodyRequest[][] | undefined): {
582
586
  meters: {
583
587
  passport: FileBodyRequest;