kui-crm 0.0.181 → 0.0.183

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
@@ -4,6 +4,7 @@ import { DateTime } from 'luxon';
4
4
  import { PaginationRes as PaginationRes$1, Loader, SortingFilter, Paginator, MultistepForm as MultistepForm$1 } from 'kui-utils';
5
5
  import { UseFormReturn, FieldValues } from 'react-hook-form';
6
6
  import { InputWithControllerProps as InputWithControllerProps$2 } from 'kui-complex/InputWithController';
7
+ import { ResourceTypes as ResourceTypes$1, MeterTypes as MeterTypes$1, FileStore as FileStore$1, ObjectType as ObjectType$1, InputParams as InputParams$2 } from 'kui-crm';
7
8
  import { InputWithControllerProps as InputWithControllerProps$1 } from 'kui-complex/dist/InputWithController';
8
9
  import * as React$1 from 'react';
9
10
  import React__default, { ReactNode, DependencyList, RefObject, ReactElement, MutableRefObject } from 'react';
@@ -11,7 +12,6 @@ import * as kui_basic from 'kui-basic';
11
12
  import { GridSize, InputProps, ModalProps as ModalProps$1, ButtonProps, GridProps, TooltipProps, CaptionProps } from 'kui-basic';
12
13
  import * as yup from 'yup';
13
14
  import { UploadFileParams as UploadFileParams$1 } from 'kui-complex/dist/FileItem';
14
- import { ObjectType as ObjectType$1, ResourceTypes as ResourceTypes$1, MeterTypes as MeterTypes$1, FileStore as FileStore$1, InputParams as InputParams$2 } from 'kui-crm';
15
15
  import { InputFileProps } from 'kui-complex/InputFile';
16
16
  import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
17
17
  import { InputWithAddressAutocompleteProps } from 'kui-complex/dist/InputWithAddressAutocomplete';
@@ -332,12 +332,10 @@ declare type PostInspectionFillingListModel = {
332
332
  };
333
333
  declare type FillingListItemModel = {
334
334
  id: number;
335
- feature: FillingTagModel;
335
+ feature_name: string;
336
336
  description: string;
337
337
  serial_code: string;
338
338
  amount: number;
339
- photos: ImageModel[];
340
- instruction: DocumentModel[];
341
339
  is_absent: boolean;
342
340
  };
343
341
  declare type InspectionFillingModel = {
@@ -942,6 +940,23 @@ declare class ImageStore implements ImageStoreInterface {
942
940
  static initFromImageModel: (image: ImageModel) => ImageStore;
943
941
  }
944
942
 
943
+ type PartialMeterValuesFields$1 = {
944
+ value?: string | number | null
945
+ T1?: string | number | null
946
+ T2?: string | number | null
947
+ T3?: string | number | null
948
+ }
949
+
950
+ type PartialMeterInfoFields$1 = {
951
+ id: number
952
+ resource: ResourceTypes$1
953
+ type?: MeterTypes$1
954
+ number: string
955
+ images: FileStore$1[]
956
+ maxValue?: PartialMeterValuesFields$1
957
+ values: PartialMeterValuesFields$1
958
+ } & PartialMeterValuesFields$1
959
+
945
960
  declare type RenovationType = "capital" | "euro" | "designer" | "cosmetic" | "required";
946
961
  declare type RenovationStyle = "classic" | "scandinavian" | "loft" | "contemporary" | "minimalism" | "neoclassic" | "eco" | "provence" | "hi_tech" | "mediterranean" | "eclectic" | "ethno" | "gothic";
947
962
  declare type RoomType = "connected" | "separate";
@@ -1116,7 +1131,7 @@ declare type PartialMeterInfoParams = {
1116
1131
  images?: (ImageStore | UploadImageParams)[];
1117
1132
  };
1118
1133
  declare type InspectionPartialMetersInfoParams = {
1119
- meters: PartialMeterInfoParams[];
1134
+ meters: PartialMeterInfoFields$1[];
1120
1135
  };
1121
1136
  declare type ComparableObjectParams = {
1122
1137
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-crm",
3
- "version": "0.0.181",
3
+ "version": "0.0.183",
4
4
  "description": "crm complex fields",
5
5
  "main": "./cjs/index.js",
6
6
  "types": "./index.d.ts",
package/types/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { DateTime } from 'luxon';
2
2
  import { PaginationRes as PaginationRes$1, Loader } from 'kui-utils';
3
+ import { ResourceTypes as ResourceTypes$1, MeterTypes as MeterTypes$1, FileStore as FileStore$1 } from 'kui-crm';
3
4
  import { InputWithControllerProps } from 'kui-complex/dist/InputWithController';
4
5
  import { ReactNode } from 'react';
5
6
  import { GridSize } from 'kui-basic';
@@ -289,6 +290,23 @@ declare class ImageStore implements ImageStoreInterface {
289
290
  static initFromImageModel: (image: ImageModel) => ImageStore;
290
291
  }
291
292
 
293
+ type PartialMeterValuesFields = {
294
+ value?: string | number | null
295
+ T1?: string | number | null
296
+ T2?: string | number | null
297
+ T3?: string | number | null
298
+ }
299
+
300
+ type PartialMeterInfoFields = {
301
+ id: number
302
+ resource: ResourceTypes$1
303
+ type?: MeterTypes$1
304
+ number: string
305
+ images: FileStore$1[]
306
+ maxValue?: PartialMeterValuesFields
307
+ values: PartialMeterValuesFields
308
+ } & PartialMeterValuesFields
309
+
292
310
  declare type RenovationType = "capital" | "euro" | "designer" | "cosmetic" | "required";
293
311
  declare type RenovationStyle = "classic" | "scandinavian" | "loft" | "contemporary" | "minimalism" | "neoclassic" | "eco" | "provence" | "hi_tech" | "mediterranean" | "eclectic" | "ethno" | "gothic";
294
312
  declare type RoomType = "connected" | "separate";
@@ -463,7 +481,7 @@ declare type PartialMeterInfoParams = {
463
481
  images?: (ImageStore | UploadImageParams)[];
464
482
  };
465
483
  declare type InspectionPartialMetersInfoParams = {
466
- meters: PartialMeterInfoParams[];
484
+ meters: PartialMeterInfoFields[];
467
485
  };
468
486
  declare type ComparableObjectParams = {
469
487
  id: number;
@@ -1096,12 +1114,10 @@ declare type PostInspectionFillingListModel = {
1096
1114
  };
1097
1115
  declare type FillingListItemModel = {
1098
1116
  id: number;
1099
- feature: FillingTagModel;
1117
+ feature_name: string;
1100
1118
  description: string;
1101
1119
  serial_code: string;
1102
1120
  amount: number;
1103
- photos: ImageModel[];
1104
- instruction: DocumentModel[];
1105
1121
  is_absent: boolean;
1106
1122
  };
1107
1123
  declare type InspectionFillingModel = {