@itcase/types-pps 1.1.108 → 1.1.110
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/dist/generated/enums/Survey/SurveyQuestionTypeEnum.d.ts +10 -2
- package/dist/generated/enums/Survey/SurveyQuestionTypeEnum.js +9 -1
- package/dist/generated/enums/Type/Type02BEnum.d.ts +8 -0
- package/dist/generated/enums/Type/Type02BEnum.js +13 -0
- package/dist/generated/enums/Type/index.d.ts +1 -0
- package/dist/generated/enums/Type/index.js +6 -0
- package/dist/generated/enums/index.d.ts +1 -0
- package/dist/generated/enums/index.js +3 -1
- package/dist/generated/restRoutes.d.ts +129 -39
- package/dist/generated/types/Bio/BioRowChangeRequest.d.ts +4 -1
- package/dist/generated/types/Bio/PatchedBioRowChangeRequest.d.ts +4 -1
- package/dist/generated/types/Entomophage/Entomophage.d.ts +4 -2
- package/dist/generated/types/Entomophage/EntomophageChangeRequest.d.ts +4 -1
- package/dist/generated/types/Entomophage/EntomophageField.d.ts +3 -0
- package/dist/generated/types/Entomophage/EntomophagePest.d.ts +11 -0
- package/dist/generated/types/Entomophage/EntomophagePestChangeRequest.d.ts +10 -0
- package/dist/generated/types/Entomophage/PatchedEntomophageChangeRequest.d.ts +4 -1
- package/dist/generated/types/Entomophage/index.d.ts +2 -0
- package/dist/generated/types/Hotbed/Hotbed.d.ts +11 -2
- package/dist/generated/types/Hotbed/HotbedApp.d.ts +10 -1
- package/dist/generated/types/Hotbed/HotbedChangeRequest.d.ts +15 -3
- package/dist/generated/types/Hotbed/HotbedHistory.d.ts +11 -0
- package/dist/generated/types/Hotbed/HotbedHistory.js +3 -0
- package/dist/generated/types/{Plant/PaginatedPlantInBlockList.d.ts → Hotbed/PaginatedHotbedHistoryList.d.ts} +3 -3
- package/dist/generated/types/Hotbed/PaginatedHotbedHistoryList.js +3 -0
- package/dist/generated/types/Hotbed/PatchedHotbedChangeRequest.d.ts +14 -2
- package/dist/generated/types/Hotbed/_HotbedPestField.d.ts +45 -0
- package/dist/generated/types/Hotbed/_HotbedPestField.js +3 -0
- package/dist/generated/types/Hotbed/index.d.ts +3 -0
- package/dist/generated/types/Plant/index.d.ts +0 -2
- package/dist/generated/types/Report/ReportBlockIncident.d.ts +4 -2
- package/dist/generated/types/Report/ReportBlockPestsIncident.d.ts +2 -0
- package/dist/generated/types/Report/ReportBlockPollination.d.ts +1 -1
- package/dist/generated/types/Report/ReportBlockPollinationZones.d.ts +1 -1
- package/dist/generated/types/Report/ReportCellPollination.d.ts +1 -1
- package/dist/generated/types/Report/ReportRowIncident.d.ts +2 -0
- package/dist/generated/types/Report/ReportRowPestsIncident.d.ts +2 -0
- package/dist/generated/types/Report/ReportRowPollination.d.ts +1 -1
- package/dist/generated/types/Report/ReportRowPollinationCells.d.ts +1 -1
- package/dist/generated/types/Report/ReportZoneIncident.d.ts +2 -0
- package/dist/generated/types/Report/ReportZonePestsIncident.d.ts +2 -0
- package/dist/generated/types/Report/ReportZonePollination.d.ts +1 -1
- package/dist/generated/types/Report/ReportZonePollinationRows.d.ts +1 -1
- package/dist/generated/types/Survey/PatchedSurveyQuestionRequest.d.ts +3 -0
- package/dist/generated/types/Survey/SurveyQuestion.d.ts +3 -2
- package/dist/generated/types/Survey/SurveyQuestionAnswer.d.ts +4 -5
- package/dist/generated/types/Survey/SurveyQuestionAnswerChange.d.ts +1 -0
- package/dist/generated/types/Survey/SurveyQuestionOption.d.ts +15 -0
- package/dist/generated/types/Survey/SurveyQuestionOption.js +3 -0
- package/dist/generated/types/Survey/SurveyQuestionRequest.d.ts +3 -0
- package/dist/generated/types/Survey/index.d.ts +1 -0
- package/dist/generated/types/Turnover/PatchedTurnoverChangeRequest.d.ts +0 -5
- package/dist/generated/types/Turnover/Turnover.d.ts +14 -1
- package/dist/generated/types/Turnover/TurnoverChangeRequest.d.ts +0 -5
- package/dist/generated/types/index.d.ts +4 -4
- package/package.json +2 -2
- package/dist/generated/types/Plant/PlantInBlock.d.ts +0 -18
- /package/dist/generated/types/{Plant/PaginatedPlantInBlockList.js → Entomophage/EntomophagePest.js} +0 -0
- /package/dist/generated/types/{Plant/PlantInBlock.js → Entomophage/EntomophagePestChangeRequest.js} +0 -0
|
@@ -24,7 +24,10 @@ export interface BioRowChangeRequest {
|
|
|
24
24
|
* @pattern ^-?\d{0,11}(?:\.\d{0,4})?$
|
|
25
25
|
*/
|
|
26
26
|
square?: string | null;
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Статус биоряда
|
|
29
|
+
* Если не указан при создании, то будет установлен статус "Рабочий"
|
|
30
|
+
*/
|
|
28
31
|
status?: BioRowStatusRequest;
|
|
29
32
|
/** Оборот */
|
|
30
33
|
turnover?: number | null;
|
|
@@ -24,7 +24,10 @@ export interface PatchedBioRowChangeRequest {
|
|
|
24
24
|
* @pattern ^-?\d{0,11}(?:\.\d{0,4})?$
|
|
25
25
|
*/
|
|
26
26
|
square?: string | null;
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Статус биоряда
|
|
29
|
+
* Если не указан при создании, то будет установлен статус "Рабочий"
|
|
30
|
+
*/
|
|
28
31
|
status?: BioRowStatusRequest;
|
|
29
32
|
/** Оборот */
|
|
30
33
|
turnover?: number | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatorField, EntomophageInputRate, EntomophageStage, FacilityField,
|
|
1
|
+
import { BlankEnum, CreatorField, EntomophageInputRate, EntomophagePest, EntomophageStage, FacilityField, TaskTemplateField, Type02BEnum } from '../../../index';
|
|
2
2
|
export interface Entomophage {
|
|
3
3
|
id: number;
|
|
4
4
|
/**
|
|
@@ -45,7 +45,7 @@ export interface Entomophage {
|
|
|
45
45
|
* @maxLength 255
|
|
46
46
|
*/
|
|
47
47
|
name_short: string;
|
|
48
|
-
pests?:
|
|
48
|
+
pests?: EntomophagePest[];
|
|
49
49
|
/**
|
|
50
50
|
* Сортировка
|
|
51
51
|
* Чем меньше значение, тем выше отображается в списке
|
|
@@ -55,4 +55,6 @@ export interface Entomophage {
|
|
|
55
55
|
sort?: number;
|
|
56
56
|
stages: EntomophageStage[];
|
|
57
57
|
tasktemplate: TaskTemplateField | null;
|
|
58
|
+
/** Тип */
|
|
59
|
+
type?: BlankEnum | Type02BEnum;
|
|
58
60
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BlankEnum, EntomophagePestChangeRequest, Type02BEnum } from '../../../index';
|
|
1
2
|
export interface EntomophageChangeRequest {
|
|
2
3
|
/**
|
|
3
4
|
* Показывать
|
|
@@ -35,7 +36,7 @@ export interface EntomophageChangeRequest {
|
|
|
35
36
|
* @maxLength 255
|
|
36
37
|
*/
|
|
37
38
|
name_short: string;
|
|
38
|
-
pests?:
|
|
39
|
+
pests?: EntomophagePestChangeRequest[];
|
|
39
40
|
/**
|
|
40
41
|
* Сортировка
|
|
41
42
|
* Чем меньше значение, тем выше отображается в списке
|
|
@@ -45,4 +46,6 @@ export interface EntomophageChangeRequest {
|
|
|
45
46
|
sort?: number;
|
|
46
47
|
/** Шаблон проекта */
|
|
47
48
|
tasktemplate?: number | null;
|
|
49
|
+
/** Тип */
|
|
50
|
+
type?: BlankEnum | Type02BEnum;
|
|
48
51
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BlankEnum, Type02BEnum } from '../../../index';
|
|
1
2
|
export interface EntomophageField {
|
|
2
3
|
id: number;
|
|
3
4
|
/**
|
|
@@ -30,4 +31,6 @@ export interface EntomophageField {
|
|
|
30
31
|
* @max 32767
|
|
31
32
|
*/
|
|
32
33
|
sort?: number;
|
|
34
|
+
/** Тип */
|
|
35
|
+
type?: BlankEnum | Type02BEnum;
|
|
33
36
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BlankEnum, EntomophagePestChangeRequest, Type02BEnum } from '../../../index';
|
|
1
2
|
export interface PatchedEntomophageChangeRequest {
|
|
2
3
|
/**
|
|
3
4
|
* Показывать
|
|
@@ -35,7 +36,7 @@ export interface PatchedEntomophageChangeRequest {
|
|
|
35
36
|
* @maxLength 255
|
|
36
37
|
*/
|
|
37
38
|
name_short?: string;
|
|
38
|
-
pests?:
|
|
39
|
+
pests?: EntomophagePestChangeRequest[];
|
|
39
40
|
/**
|
|
40
41
|
* Сортировка
|
|
41
42
|
* Чем меньше значение, тем выше отображается в списке
|
|
@@ -45,4 +46,6 @@ export interface PatchedEntomophageChangeRequest {
|
|
|
45
46
|
sort?: number;
|
|
46
47
|
/** Шаблон проекта */
|
|
47
48
|
tasktemplate?: number | null;
|
|
49
|
+
/** Тип */
|
|
50
|
+
type?: BlankEnum | Type02BEnum;
|
|
48
51
|
}
|
|
@@ -22,6 +22,8 @@ export { EntomophageMonitoringStatus } from './EntomophageMonitoringStatus';
|
|
|
22
22
|
export { EntomophageMonitoringStatusRequest } from './EntomophageMonitoringStatusRequest';
|
|
23
23
|
export { EntomophageOrder } from './EntomophageOrder';
|
|
24
24
|
export { EntomophageOrderChangeRequest } from './EntomophageOrderChangeRequest';
|
|
25
|
+
export { EntomophagePest } from './EntomophagePest';
|
|
26
|
+
export { EntomophagePestChangeRequest } from './EntomophagePestChangeRequest';
|
|
25
27
|
export { EntomophageStage } from './EntomophageStage';
|
|
26
28
|
export { EntomophageStageChangeRequest } from './EntomophageStageChangeRequest';
|
|
27
29
|
export { EntomophageStageField } from './EntomophageStageField';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatorField, FacilityField, HotbedStatus, PlaceCellField, TurnoverField } from '../../../index';
|
|
1
|
+
import { _HotbedPestField, CreatorField, FacilityField, HotbedStatus, PlaceCellField, TurnoverField } from '../../../index';
|
|
2
2
|
export interface Hotbed {
|
|
3
3
|
id: number;
|
|
4
4
|
/** Создано автоматически */
|
|
@@ -15,9 +15,11 @@ export interface Hotbed {
|
|
|
15
15
|
frontend_data?: any;
|
|
16
16
|
/**
|
|
17
17
|
* Название
|
|
18
|
+
* Если пустое, будет заполнено автоматически по формату "номер блока • № номер в обороте • вредитель". Например, "1.2.3•№456•Белокрылка"
|
|
18
19
|
* @maxLength 255
|
|
19
20
|
*/
|
|
20
|
-
name
|
|
21
|
+
name?: string;
|
|
22
|
+
pest: _HotbedPestField | null;
|
|
21
23
|
/**
|
|
22
24
|
* Сортировка
|
|
23
25
|
* Чем меньше значение, тем выше отображается в списке
|
|
@@ -33,4 +35,11 @@ export interface Hotbed {
|
|
|
33
35
|
square?: string | null;
|
|
34
36
|
status: HotbedStatus | null;
|
|
35
37
|
turnover: TurnoverField | null;
|
|
38
|
+
/**
|
|
39
|
+
* Номер в обороте
|
|
40
|
+
* Если пустое, будет заполнено автоматически
|
|
41
|
+
* @min 0
|
|
42
|
+
* @max 32767
|
|
43
|
+
*/
|
|
44
|
+
turnover_number?: number | null;
|
|
36
45
|
}
|
|
@@ -3,9 +3,11 @@ export interface HotbedApp {
|
|
|
3
3
|
cells: number[];
|
|
4
4
|
/**
|
|
5
5
|
* Название
|
|
6
|
+
* Если пустое, будет заполнено автоматически по формату "номер блока • № номер в обороте • вредитель". Например, "1.2.3•№456•Белокрылка"
|
|
6
7
|
* @maxLength 255
|
|
7
8
|
*/
|
|
8
|
-
name
|
|
9
|
+
name?: string;
|
|
10
|
+
pest: number | null;
|
|
9
11
|
/**
|
|
10
12
|
* Площадь, м2
|
|
11
13
|
* @format decimal
|
|
@@ -15,4 +17,11 @@ export interface HotbedApp {
|
|
|
15
17
|
status: string | null;
|
|
16
18
|
/** Оборот */
|
|
17
19
|
turnover?: number | null;
|
|
20
|
+
/**
|
|
21
|
+
* Номер в обороте
|
|
22
|
+
* Если пустое, будет заполнено автоматически
|
|
23
|
+
* @min 0
|
|
24
|
+
* @max 32767
|
|
25
|
+
*/
|
|
26
|
+
turnover_number?: number | null;
|
|
18
27
|
}
|
|
@@ -7,10 +7,12 @@ export interface HotbedChangeRequest {
|
|
|
7
7
|
frontend_data?: any;
|
|
8
8
|
/**
|
|
9
9
|
* Название
|
|
10
|
-
*
|
|
10
|
+
* Если пустое, будет заполнено автоматически по формату "номер блока • № номер в обороте • вредитель". Например, "1.2.3•№456•Белокрылка"
|
|
11
11
|
* @maxLength 255
|
|
12
12
|
*/
|
|
13
|
-
name
|
|
13
|
+
name?: string;
|
|
14
|
+
/** Вредитель */
|
|
15
|
+
pest?: number | null;
|
|
14
16
|
/**
|
|
15
17
|
* Сортировка
|
|
16
18
|
* Чем меньше значение, тем выше отображается в списке
|
|
@@ -24,8 +26,18 @@ export interface HotbedChangeRequest {
|
|
|
24
26
|
* @pattern ^-?\d{0,11}(?:\.\d{0,4})?$
|
|
25
27
|
*/
|
|
26
28
|
square?: string | null;
|
|
27
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Статус очага
|
|
31
|
+
* Если не указан при создании, то будет установлен статус "Рабочий"
|
|
32
|
+
*/
|
|
28
33
|
status?: HotbedStatusRequest;
|
|
29
34
|
/** Оборот */
|
|
30
35
|
turnover?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Номер в обороте
|
|
38
|
+
* Если пустое, будет заполнено автоматически
|
|
39
|
+
* @min 0
|
|
40
|
+
* @max 32767
|
|
41
|
+
*/
|
|
42
|
+
turnover_number?: number | null;
|
|
31
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface
|
|
1
|
+
import { HotbedHistory } from '../../../index';
|
|
2
|
+
export interface PaginatedHotbedHistoryList {
|
|
3
3
|
/** @example 123 */
|
|
4
4
|
count: number;
|
|
5
5
|
/**
|
|
@@ -12,5 +12,5 @@ export interface PaginatedPlantInBlockList {
|
|
|
12
12
|
* @example "http://api.example.org/accounts/?offset=200&limit=100"
|
|
13
13
|
*/
|
|
14
14
|
previous?: string | null;
|
|
15
|
-
results:
|
|
15
|
+
results: HotbedHistory[];
|
|
16
16
|
}
|
|
@@ -7,10 +7,12 @@ export interface PatchedHotbedChangeRequest {
|
|
|
7
7
|
frontend_data?: any;
|
|
8
8
|
/**
|
|
9
9
|
* Название
|
|
10
|
-
*
|
|
10
|
+
* Если пустое, будет заполнено автоматически по формату "номер блока • № номер в обороте • вредитель". Например, "1.2.3•№456•Белокрылка"
|
|
11
11
|
* @maxLength 255
|
|
12
12
|
*/
|
|
13
13
|
name?: string;
|
|
14
|
+
/** Вредитель */
|
|
15
|
+
pest?: number | null;
|
|
14
16
|
/**
|
|
15
17
|
* Сортировка
|
|
16
18
|
* Чем меньше значение, тем выше отображается в списке
|
|
@@ -24,8 +26,18 @@ export interface PatchedHotbedChangeRequest {
|
|
|
24
26
|
* @pattern ^-?\d{0,11}(?:\.\d{0,4})?$
|
|
25
27
|
*/
|
|
26
28
|
square?: string | null;
|
|
27
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Статус очага
|
|
31
|
+
* Если не указан при создании, то будет установлен статус "Рабочий"
|
|
32
|
+
*/
|
|
28
33
|
status?: HotbedStatusRequest;
|
|
29
34
|
/** Оборот */
|
|
30
35
|
turnover?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Номер в обороте
|
|
38
|
+
* Если пустое, будет заполнено автоматически
|
|
39
|
+
* @min 0
|
|
40
|
+
* @max 32767
|
|
41
|
+
*/
|
|
42
|
+
turnover_number?: number | null;
|
|
31
43
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface _HotbedPestField {
|
|
2
|
+
id: number;
|
|
3
|
+
/**
|
|
4
|
+
* Показывать
|
|
5
|
+
* Если отключёно, элемент не будет отображаться на сайте
|
|
6
|
+
*/
|
|
7
|
+
active?: boolean;
|
|
8
|
+
/** Цвет */
|
|
9
|
+
color?: string;
|
|
10
|
+
/** Цвет ч/б */
|
|
11
|
+
color_monochrome?: string;
|
|
12
|
+
/** Цвет ч/б текста */
|
|
13
|
+
color_monochrome_text?: string;
|
|
14
|
+
/** Цвет текста */
|
|
15
|
+
color_text?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Количество для степени поражения "Высокая"
|
|
18
|
+
* Допустимый ввод, например, ">13" или ">=17"
|
|
19
|
+
*/
|
|
20
|
+
damage_count_high?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Количество для степени поражения "Низкая"
|
|
23
|
+
* Допустимый ввод, например, "<3" или "<=5"
|
|
24
|
+
*/
|
|
25
|
+
damage_count_low?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Количество для степени поражения "Средняя"
|
|
28
|
+
* Допустимый ввод, например, "7-11"
|
|
29
|
+
*/
|
|
30
|
+
damage_count_middle?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Название
|
|
33
|
+
* @maxLength 255
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/** Причина для удаления */
|
|
37
|
+
reason_for_deletion?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Сортировка
|
|
40
|
+
* Чем меньше значение, тем выше отображается в списке
|
|
41
|
+
* @min -32768
|
|
42
|
+
* @max 32767
|
|
43
|
+
*/
|
|
44
|
+
sort?: number;
|
|
45
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export { _HotbedPestField } from './_HotbedPestField';
|
|
1
2
|
export { Hotbed } from './Hotbed';
|
|
2
3
|
export { HotbedApp } from './HotbedApp';
|
|
3
4
|
export { HotbedChangeRequest } from './HotbedChangeRequest';
|
|
5
|
+
export { HotbedHistory } from './HotbedHistory';
|
|
4
6
|
export { HotbedStatus } from './HotbedStatus';
|
|
5
7
|
export { HotbedStatusRequest } from './HotbedStatusRequest';
|
|
6
8
|
export { PaginatedHotbedAppList } from './PaginatedHotbedAppList';
|
|
9
|
+
export { PaginatedHotbedHistoryList } from './PaginatedHotbedHistoryList';
|
|
7
10
|
export { PaginatedHotbedList } from './PaginatedHotbedList';
|
|
8
11
|
export { PaginatedHotbedStatusList } from './PaginatedHotbedStatusList';
|
|
9
12
|
export { PatchedHotbedChangeRequest } from './PatchedHotbedChangeRequest';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { PaginatedPlantInBlockList } from './PaginatedPlantInBlockList';
|
|
2
1
|
export { PaginatedPlantList } from './PaginatedPlantList';
|
|
3
2
|
export { PaginatedPlantStatusList } from './PaginatedPlantStatusList';
|
|
4
3
|
export { PatchedPlantChangeRequest } from './PatchedPlantChangeRequest';
|
|
@@ -7,6 +6,5 @@ export { Plant } from './Plant';
|
|
|
7
6
|
export { PlantChangeRequest } from './PlantChangeRequest';
|
|
8
7
|
export { PlantDetail } from './PlantDetail';
|
|
9
8
|
export { PlantField } from './PlantField';
|
|
10
|
-
export { PlantInBlock } from './PlantInBlock';
|
|
11
9
|
export { PlantStatus } from './PlantStatus';
|
|
12
10
|
export { PlantStatusRequest } from './PlantStatusRequest';
|
|
@@ -8,7 +8,7 @@ export interface ReportBlockIncident {
|
|
|
8
8
|
* @min 0
|
|
9
9
|
* @max 2147483647
|
|
10
10
|
*/
|
|
11
|
-
block_plants_count
|
|
11
|
+
block_plants_count?: number | null;
|
|
12
12
|
/**
|
|
13
13
|
* @min 0
|
|
14
14
|
* @max 2147483647
|
|
@@ -27,5 +27,7 @@ export interface ReportBlockIncident {
|
|
|
27
27
|
* @format decimal
|
|
28
28
|
* @pattern ^-?\d{0,3}(?:\.\d{0,3})?$
|
|
29
29
|
*/
|
|
30
|
-
percent
|
|
30
|
+
percent?: string | null;
|
|
31
|
+
/** Оборот */
|
|
32
|
+
turnover?: number | null;
|
|
31
33
|
}
|
|
@@ -23,7 +23,7 @@ export interface ReportCellPollination {
|
|
|
23
23
|
inspection_plan: number;
|
|
24
24
|
/**
|
|
25
25
|
* @format decimal
|
|
26
|
-
* @pattern ^-?\d{0,
|
|
26
|
+
* @pattern ^-?\d{0,6}(?:\.\d{0,3})?$
|
|
27
27
|
*/
|
|
28
28
|
percent: string;
|
|
29
29
|
pollinationpoint: ReportCellPollinationPollinationpoint;
|
|
@@ -21,7 +21,7 @@ export interface ReportRowPollinationCells {
|
|
|
21
21
|
inspection_plan: number;
|
|
22
22
|
/**
|
|
23
23
|
* @format decimal
|
|
24
|
-
* @pattern ^-?\d{0,
|
|
24
|
+
* @pattern ^-?\d{0,6}(?:\.\d{0,3})?$
|
|
25
25
|
*/
|
|
26
26
|
percent: string;
|
|
27
27
|
pollinationpoint: ReportCellPollinationPollinationpoint;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SurveyQuestionTypeEnum } from '../../../index';
|
|
1
2
|
export interface PatchedSurveyQuestionRequest {
|
|
2
3
|
/**
|
|
3
4
|
* Показывать
|
|
@@ -18,4 +19,6 @@ export interface PatchedSurveyQuestionRequest {
|
|
|
18
19
|
* @max 32767
|
|
19
20
|
*/
|
|
20
21
|
sort?: number;
|
|
22
|
+
/** Тип */
|
|
23
|
+
type?: SurveyQuestionTypeEnum;
|
|
21
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SurveyQuestionTypeEnum } from '../../../index';
|
|
1
|
+
import { SurveyQuestionOption, SurveyQuestionTypeEnum } from '../../../index';
|
|
2
2
|
export interface SurveyQuestion {
|
|
3
3
|
id: number;
|
|
4
4
|
/**
|
|
@@ -6,6 +6,7 @@ export interface SurveyQuestion {
|
|
|
6
6
|
* Если отключёно, элемент не будет отображаться на сайте
|
|
7
7
|
*/
|
|
8
8
|
active?: boolean;
|
|
9
|
+
options: SurveyQuestionOption[];
|
|
9
10
|
/** Вопрос */
|
|
10
11
|
question: string;
|
|
11
12
|
/** Обязательный */
|
|
@@ -18,5 +19,5 @@ export interface SurveyQuestion {
|
|
|
18
19
|
*/
|
|
19
20
|
sort?: number;
|
|
20
21
|
/** Тип */
|
|
21
|
-
type
|
|
22
|
+
type?: SurveyQuestionTypeEnum;
|
|
22
23
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { CreatorField, SurveyQuestionTypeEnum } from '../../../index';
|
|
2
2
|
export interface SurveyQuestionAnswer {
|
|
3
3
|
id: number;
|
|
4
|
-
/**
|
|
5
|
-
* Ответ
|
|
6
|
-
* @maxLength 255
|
|
7
|
-
*/
|
|
4
|
+
/** Ответ */
|
|
8
5
|
answer?: string;
|
|
9
6
|
/**
|
|
10
7
|
* Версия приложения
|
|
@@ -19,6 +16,8 @@ export interface SurveyQuestionAnswer {
|
|
|
19
16
|
* @format date-time
|
|
20
17
|
*/
|
|
21
18
|
dt_create: string;
|
|
19
|
+
/** Выбранные варианты */
|
|
20
|
+
options?: number[];
|
|
22
21
|
/** Вопрос */
|
|
23
22
|
question: string;
|
|
24
23
|
/** Обязательный */
|
|
@@ -26,5 +25,5 @@ export interface SurveyQuestionAnswer {
|
|
|
26
25
|
/** Вопрос */
|
|
27
26
|
surveyquestion: number;
|
|
28
27
|
/** Тип */
|
|
29
|
-
type
|
|
28
|
+
type?: SurveyQuestionTypeEnum;
|
|
30
29
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface SurveyQuestionOption {
|
|
2
|
+
id: number;
|
|
3
|
+
/**
|
|
4
|
+
* Название
|
|
5
|
+
* @maxLength 255
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Сортировка
|
|
10
|
+
* Чем меньше значение, тем выше отображается в списке
|
|
11
|
+
* @min -32768
|
|
12
|
+
* @max 32767
|
|
13
|
+
*/
|
|
14
|
+
sort?: number;
|
|
15
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SurveyQuestionTypeEnum } from '../../../index';
|
|
1
2
|
export interface SurveyQuestionRequest {
|
|
2
3
|
/**
|
|
3
4
|
* Показывать
|
|
@@ -18,4 +19,6 @@ export interface SurveyQuestionRequest {
|
|
|
18
19
|
* @max 32767
|
|
19
20
|
*/
|
|
20
21
|
sort?: number;
|
|
22
|
+
/** Тип */
|
|
23
|
+
type?: SurveyQuestionTypeEnum;
|
|
21
24
|
}
|
|
@@ -8,5 +8,6 @@ export { SurveyQuestion } from './SurveyQuestion';
|
|
|
8
8
|
export { SurveyQuestionAnswer } from './SurveyQuestionAnswer';
|
|
9
9
|
export { SurveyQuestionAnswerChange } from './SurveyQuestionAnswerChange';
|
|
10
10
|
export { SurveyQuestionAnswerChangeRequest } from './SurveyQuestionAnswerChangeRequest';
|
|
11
|
+
export { SurveyQuestionOption } from './SurveyQuestionOption';
|
|
11
12
|
export { SurveyQuestionRequest } from './SurveyQuestionRequest';
|
|
12
13
|
export { SurveyRequest } from './SurveyRequest';
|
|
@@ -18,11 +18,6 @@ export interface PatchedTurnoverChangeRequest {
|
|
|
18
18
|
* @format date-time
|
|
19
19
|
*/
|
|
20
20
|
dt_end?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Дата/время окончания (фактическое)
|
|
23
|
-
* @format date-time
|
|
24
|
-
*/
|
|
25
|
-
dt_end_actual?: string | null;
|
|
26
21
|
/** Тепличный комплекс */
|
|
27
22
|
facility?: number;
|
|
28
23
|
hybrids?: number[];
|