@arekstasko/plantcare-api-client 1.1.1 → 1.1.3
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/index.cjs +462 -342
- package/dist/index.d.cts +38 -113
- package/dist/index.d.ts +38 -113
- package/dist/index.js +450 -342
- package/package.json +4 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,178 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
humidityMeasurements(body?: AddHumidityMeasurementCommand | undefined): Promise<boolean>;
|
|
7
|
-
/**
|
|
8
|
-
* @param id (optional)
|
|
9
|
-
* @param fromDate (optional)
|
|
10
|
-
* @param toDate (optional)
|
|
11
|
-
* @return OK
|
|
12
|
-
*/
|
|
13
|
-
humidityMeasurementsAll(id?: number | undefined, fromDate?: Date | undefined, toDate?: Date | undefined): Promise<IHumidityMeasurement[]>;
|
|
14
|
-
/**
|
|
15
|
-
* @param fromDate (optional)
|
|
16
|
-
* @param toDate (optional)
|
|
17
|
-
* @return OK
|
|
18
|
-
*/
|
|
19
|
-
average(id: number, fromDate?: Date | undefined, toDate?: Date | undefined): Promise<AverageHumidity[]>;
|
|
20
|
-
/**
|
|
21
|
-
* @param body (optional)
|
|
22
|
-
* @return OK
|
|
23
|
-
*/
|
|
24
|
-
modulesPOST(body?: CreateModuleRequest | undefined): Promise<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* @return OK
|
|
27
|
-
*/
|
|
28
|
-
modulesAll(): Promise<GetModuleResponse[]>;
|
|
29
|
-
/**
|
|
30
|
-
* @return OK
|
|
31
|
-
*/
|
|
32
|
-
modulesGET(id: number): Promise<GetModuleResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* @param body (optional)
|
|
35
|
-
* @return OK
|
|
36
|
-
*/
|
|
37
|
-
placesPOST(body?: CreatePlaceCommand | undefined): Promise<boolean>;
|
|
38
|
-
/**
|
|
39
|
-
* @param id (optional)
|
|
40
|
-
* @return OK
|
|
41
|
-
*/
|
|
42
|
-
placesDELETE(id?: number | undefined): Promise<boolean>;
|
|
43
|
-
/**
|
|
44
|
-
* @param body (optional)
|
|
45
|
-
* @return OK
|
|
46
|
-
*/
|
|
47
|
-
placesPUT(body?: UpdatePlaceCommand | undefined): Promise<boolean>;
|
|
48
|
-
/**
|
|
49
|
-
* @return OK
|
|
50
|
-
*/
|
|
51
|
-
placesAll(): Promise<GetPlacesResponse[]>;
|
|
52
|
-
/**
|
|
53
|
-
* @param body (optional)
|
|
54
|
-
* @return OK
|
|
55
|
-
*/
|
|
56
|
-
plantsPOST(body?: CreatePlantCommand | undefined): Promise<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* @param id (optional)
|
|
59
|
-
* @return OK
|
|
60
|
-
*/
|
|
61
|
-
plantsDELETE(id?: number | undefined): Promise<boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* @param body (optional)
|
|
64
|
-
* @return OK
|
|
65
|
-
*/
|
|
66
|
-
plantsPUT(body?: UpdatePlantCommand | undefined): Promise<boolean>;
|
|
67
|
-
/**
|
|
68
|
-
* @return OK
|
|
69
|
-
*/
|
|
70
|
-
plantsAll(): Promise<GetPlantResponse[]>;
|
|
71
|
-
/**
|
|
72
|
-
* @return OK
|
|
73
|
-
*/
|
|
74
|
-
plantsGET(id: number): Promise<GetPlantResponse>;
|
|
75
|
-
}
|
|
76
|
-
declare class Client implements IClient {
|
|
77
|
-
private http;
|
|
78
|
-
private baseUrl;
|
|
1
|
+
import { AxiosInstance, CancelToken, AxiosResponse } from 'axios';
|
|
2
|
+
|
|
3
|
+
declare class Client {
|
|
4
|
+
protected instance: AxiosInstance;
|
|
5
|
+
protected baseUrl: string;
|
|
79
6
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
80
|
-
constructor(baseUrl?: string,
|
|
81
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
82
|
-
});
|
|
7
|
+
constructor(baseUrl?: string, instance?: AxiosInstance);
|
|
83
8
|
/**
|
|
84
9
|
* @param body (optional)
|
|
85
10
|
* @return OK
|
|
86
11
|
*/
|
|
87
|
-
humidityMeasurements(body
|
|
88
|
-
protected processHumidityMeasurements(response:
|
|
12
|
+
humidityMeasurements(body: AddHumidityMeasurementCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
13
|
+
protected processHumidityMeasurements(response: AxiosResponse): Promise<boolean>;
|
|
89
14
|
/**
|
|
90
|
-
* @param id (optional)
|
|
91
15
|
* @param fromDate (optional)
|
|
92
16
|
* @param toDate (optional)
|
|
93
17
|
* @return OK
|
|
94
18
|
*/
|
|
95
|
-
humidityMeasurementsAll(id
|
|
96
|
-
protected processHumidityMeasurementsAll(response:
|
|
19
|
+
humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<IHumidityMeasurement[]>;
|
|
20
|
+
protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<IHumidityMeasurement[]>;
|
|
97
21
|
/**
|
|
98
22
|
* @param fromDate (optional)
|
|
99
23
|
* @param toDate (optional)
|
|
100
24
|
* @return OK
|
|
101
25
|
*/
|
|
102
|
-
average(id: number, fromDate
|
|
103
|
-
protected processAverage(response:
|
|
26
|
+
average(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<AverageHumidity[]>;
|
|
27
|
+
protected processAverage(response: AxiosResponse): Promise<AverageHumidity[]>;
|
|
104
28
|
/**
|
|
105
29
|
* @param body (optional)
|
|
106
30
|
* @return OK
|
|
107
31
|
*/
|
|
108
|
-
modulesPOST(body
|
|
109
|
-
protected processModulesPOST(response:
|
|
32
|
+
modulesPOST(body: CreateModuleRequest | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
33
|
+
protected processModulesPOST(response: AxiosResponse): Promise<boolean>;
|
|
110
34
|
/**
|
|
111
35
|
* @return OK
|
|
112
36
|
*/
|
|
113
|
-
modulesAll(): Promise<GetModuleResponse[]>;
|
|
114
|
-
protected processModulesAll(response:
|
|
37
|
+
modulesAll(cancelToken?: CancelToken): Promise<GetModuleResponse[]>;
|
|
38
|
+
protected processModulesAll(response: AxiosResponse): Promise<GetModuleResponse[]>;
|
|
115
39
|
/**
|
|
116
40
|
* @return OK
|
|
117
41
|
*/
|
|
118
|
-
modulesGET(id: number): Promise<GetModuleResponse>;
|
|
119
|
-
protected processModulesGET(response:
|
|
42
|
+
modulesGET(id: number, cancelToken?: CancelToken): Promise<GetModuleResponse>;
|
|
43
|
+
protected processModulesGET(response: AxiosResponse): Promise<GetModuleResponse>;
|
|
120
44
|
/**
|
|
121
45
|
* @param body (optional)
|
|
122
46
|
* @return OK
|
|
123
47
|
*/
|
|
124
|
-
placesPOST(body
|
|
125
|
-
protected processPlacesPOST(response:
|
|
48
|
+
placesPOST(body: CreatePlaceCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
49
|
+
protected processPlacesPOST(response: AxiosResponse): Promise<boolean>;
|
|
126
50
|
/**
|
|
127
51
|
* @param id (optional)
|
|
128
52
|
* @return OK
|
|
129
53
|
*/
|
|
130
|
-
placesDELETE(id
|
|
131
|
-
protected processPlacesDELETE(response:
|
|
54
|
+
placesDELETE(id: number | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
55
|
+
protected processPlacesDELETE(response: AxiosResponse): Promise<boolean>;
|
|
132
56
|
/**
|
|
133
57
|
* @param body (optional)
|
|
134
58
|
* @return OK
|
|
135
59
|
*/
|
|
136
|
-
placesPUT(body
|
|
137
|
-
protected processPlacesPUT(response:
|
|
60
|
+
placesPUT(body: UpdatePlaceCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
61
|
+
protected processPlacesPUT(response: AxiosResponse): Promise<boolean>;
|
|
138
62
|
/**
|
|
139
63
|
* @return OK
|
|
140
64
|
*/
|
|
141
|
-
placesAll(): Promise<GetPlacesResponse[]>;
|
|
142
|
-
protected processPlacesAll(response:
|
|
65
|
+
placesAll(cancelToken?: CancelToken): Promise<GetPlacesResponse[]>;
|
|
66
|
+
protected processPlacesAll(response: AxiosResponse): Promise<GetPlacesResponse[]>;
|
|
143
67
|
/**
|
|
144
68
|
* @param body (optional)
|
|
145
69
|
* @return OK
|
|
146
70
|
*/
|
|
147
|
-
plantsPOST(body
|
|
148
|
-
protected processPlantsPOST(response:
|
|
71
|
+
plantsPOST(body: CreatePlantCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
72
|
+
protected processPlantsPOST(response: AxiosResponse): Promise<boolean>;
|
|
149
73
|
/**
|
|
150
74
|
* @param id (optional)
|
|
151
75
|
* @return OK
|
|
152
76
|
*/
|
|
153
|
-
plantsDELETE(id
|
|
154
|
-
protected processPlantsDELETE(response:
|
|
77
|
+
plantsDELETE(id: number | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
78
|
+
protected processPlantsDELETE(response: AxiosResponse): Promise<boolean>;
|
|
155
79
|
/**
|
|
156
80
|
* @param body (optional)
|
|
157
81
|
* @return OK
|
|
158
82
|
*/
|
|
159
|
-
plantsPUT(body
|
|
160
|
-
protected processPlantsPUT(response:
|
|
83
|
+
plantsPUT(body: UpdatePlantCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
84
|
+
protected processPlantsPUT(response: AxiosResponse): Promise<boolean>;
|
|
161
85
|
/**
|
|
162
86
|
* @return OK
|
|
163
87
|
*/
|
|
164
|
-
plantsAll(): Promise<GetPlantResponse[]>;
|
|
165
|
-
protected processPlantsAll(response:
|
|
88
|
+
plantsAll(cancelToken?: CancelToken): Promise<GetPlantResponse[]>;
|
|
89
|
+
protected processPlantsAll(response: AxiosResponse): Promise<GetPlantResponse[]>;
|
|
166
90
|
/**
|
|
167
91
|
* @return OK
|
|
168
92
|
*/
|
|
169
|
-
plantsGET(id: number): Promise<GetPlantResponse>;
|
|
170
|
-
protected processPlantsGET(response:
|
|
93
|
+
plantsGET(id: number, cancelToken?: CancelToken): Promise<GetPlantResponse>;
|
|
94
|
+
protected processPlantsGET(response: AxiosResponse): Promise<GetPlantResponse>;
|
|
171
95
|
}
|
|
172
96
|
interface AddHumidityMeasurementCommand {
|
|
173
97
|
moduleId?: number;
|
|
174
98
|
humidity?: number;
|
|
175
99
|
measurementDate?: Date;
|
|
100
|
+
error?: string | undefined;
|
|
176
101
|
}
|
|
177
102
|
interface Assembly {
|
|
178
103
|
readonly definedTypes?: TypeInfo[] | undefined;
|
|
@@ -838,4 +763,4 @@ declare class ApiException extends Error {
|
|
|
838
763
|
static isApiException(obj: any): obj is ApiException;
|
|
839
764
|
}
|
|
840
765
|
|
|
841
|
-
export { type AddHumidityMeasurementCommand, ApiException, type Assembly, type AverageHumidity, CallingConventions, Client, type ConstructorInfo, type CreateModuleRequest, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type GetModuleResponse, type GetPlacesResponse, type GetPlantResponse, type
|
|
766
|
+
export { type AddHumidityMeasurementCommand, ApiException, type Assembly, type AverageHumidity, CallingConventions, Client, type ConstructorInfo, type CreateModuleRequest, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type GetModuleResponse, type GetPlacesResponse, type GetPlantResponse, type ICustomAttributeProvider, type IHumidityMeasurement, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type ModuleHandle, ParameterAttributes, type ParameterInfo, PlantType, PropertyAttributes, type PropertyInfo, type RuntimeFieldHandle, type RuntimeMethodHandle, type RuntimeTypeHandle, SecurityRuleSet, type StructLayoutAttribute, type Type, TypeAttributes, type TypeInfo, type UpdatePlaceCommand, type UpdatePlantCommand };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,178 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
humidityMeasurements(body?: AddHumidityMeasurementCommand | undefined): Promise<boolean>;
|
|
7
|
-
/**
|
|
8
|
-
* @param id (optional)
|
|
9
|
-
* @param fromDate (optional)
|
|
10
|
-
* @param toDate (optional)
|
|
11
|
-
* @return OK
|
|
12
|
-
*/
|
|
13
|
-
humidityMeasurementsAll(id?: number | undefined, fromDate?: Date | undefined, toDate?: Date | undefined): Promise<IHumidityMeasurement[]>;
|
|
14
|
-
/**
|
|
15
|
-
* @param fromDate (optional)
|
|
16
|
-
* @param toDate (optional)
|
|
17
|
-
* @return OK
|
|
18
|
-
*/
|
|
19
|
-
average(id: number, fromDate?: Date | undefined, toDate?: Date | undefined): Promise<AverageHumidity[]>;
|
|
20
|
-
/**
|
|
21
|
-
* @param body (optional)
|
|
22
|
-
* @return OK
|
|
23
|
-
*/
|
|
24
|
-
modulesPOST(body?: CreateModuleRequest | undefined): Promise<boolean>;
|
|
25
|
-
/**
|
|
26
|
-
* @return OK
|
|
27
|
-
*/
|
|
28
|
-
modulesAll(): Promise<GetModuleResponse[]>;
|
|
29
|
-
/**
|
|
30
|
-
* @return OK
|
|
31
|
-
*/
|
|
32
|
-
modulesGET(id: number): Promise<GetModuleResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* @param body (optional)
|
|
35
|
-
* @return OK
|
|
36
|
-
*/
|
|
37
|
-
placesPOST(body?: CreatePlaceCommand | undefined): Promise<boolean>;
|
|
38
|
-
/**
|
|
39
|
-
* @param id (optional)
|
|
40
|
-
* @return OK
|
|
41
|
-
*/
|
|
42
|
-
placesDELETE(id?: number | undefined): Promise<boolean>;
|
|
43
|
-
/**
|
|
44
|
-
* @param body (optional)
|
|
45
|
-
* @return OK
|
|
46
|
-
*/
|
|
47
|
-
placesPUT(body?: UpdatePlaceCommand | undefined): Promise<boolean>;
|
|
48
|
-
/**
|
|
49
|
-
* @return OK
|
|
50
|
-
*/
|
|
51
|
-
placesAll(): Promise<GetPlacesResponse[]>;
|
|
52
|
-
/**
|
|
53
|
-
* @param body (optional)
|
|
54
|
-
* @return OK
|
|
55
|
-
*/
|
|
56
|
-
plantsPOST(body?: CreatePlantCommand | undefined): Promise<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* @param id (optional)
|
|
59
|
-
* @return OK
|
|
60
|
-
*/
|
|
61
|
-
plantsDELETE(id?: number | undefined): Promise<boolean>;
|
|
62
|
-
/**
|
|
63
|
-
* @param body (optional)
|
|
64
|
-
* @return OK
|
|
65
|
-
*/
|
|
66
|
-
plantsPUT(body?: UpdatePlantCommand | undefined): Promise<boolean>;
|
|
67
|
-
/**
|
|
68
|
-
* @return OK
|
|
69
|
-
*/
|
|
70
|
-
plantsAll(): Promise<GetPlantResponse[]>;
|
|
71
|
-
/**
|
|
72
|
-
* @return OK
|
|
73
|
-
*/
|
|
74
|
-
plantsGET(id: number): Promise<GetPlantResponse>;
|
|
75
|
-
}
|
|
76
|
-
declare class Client implements IClient {
|
|
77
|
-
private http;
|
|
78
|
-
private baseUrl;
|
|
1
|
+
import { AxiosInstance, CancelToken, AxiosResponse } from 'axios';
|
|
2
|
+
|
|
3
|
+
declare class Client {
|
|
4
|
+
protected instance: AxiosInstance;
|
|
5
|
+
protected baseUrl: string;
|
|
79
6
|
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
80
|
-
constructor(baseUrl?: string,
|
|
81
|
-
fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
82
|
-
});
|
|
7
|
+
constructor(baseUrl?: string, instance?: AxiosInstance);
|
|
83
8
|
/**
|
|
84
9
|
* @param body (optional)
|
|
85
10
|
* @return OK
|
|
86
11
|
*/
|
|
87
|
-
humidityMeasurements(body
|
|
88
|
-
protected processHumidityMeasurements(response:
|
|
12
|
+
humidityMeasurements(body: AddHumidityMeasurementCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
13
|
+
protected processHumidityMeasurements(response: AxiosResponse): Promise<boolean>;
|
|
89
14
|
/**
|
|
90
|
-
* @param id (optional)
|
|
91
15
|
* @param fromDate (optional)
|
|
92
16
|
* @param toDate (optional)
|
|
93
17
|
* @return OK
|
|
94
18
|
*/
|
|
95
|
-
humidityMeasurementsAll(id
|
|
96
|
-
protected processHumidityMeasurementsAll(response:
|
|
19
|
+
humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<IHumidityMeasurement[]>;
|
|
20
|
+
protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<IHumidityMeasurement[]>;
|
|
97
21
|
/**
|
|
98
22
|
* @param fromDate (optional)
|
|
99
23
|
* @param toDate (optional)
|
|
100
24
|
* @return OK
|
|
101
25
|
*/
|
|
102
|
-
average(id: number, fromDate
|
|
103
|
-
protected processAverage(response:
|
|
26
|
+
average(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<AverageHumidity[]>;
|
|
27
|
+
protected processAverage(response: AxiosResponse): Promise<AverageHumidity[]>;
|
|
104
28
|
/**
|
|
105
29
|
* @param body (optional)
|
|
106
30
|
* @return OK
|
|
107
31
|
*/
|
|
108
|
-
modulesPOST(body
|
|
109
|
-
protected processModulesPOST(response:
|
|
32
|
+
modulesPOST(body: CreateModuleRequest | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
33
|
+
protected processModulesPOST(response: AxiosResponse): Promise<boolean>;
|
|
110
34
|
/**
|
|
111
35
|
* @return OK
|
|
112
36
|
*/
|
|
113
|
-
modulesAll(): Promise<GetModuleResponse[]>;
|
|
114
|
-
protected processModulesAll(response:
|
|
37
|
+
modulesAll(cancelToken?: CancelToken): Promise<GetModuleResponse[]>;
|
|
38
|
+
protected processModulesAll(response: AxiosResponse): Promise<GetModuleResponse[]>;
|
|
115
39
|
/**
|
|
116
40
|
* @return OK
|
|
117
41
|
*/
|
|
118
|
-
modulesGET(id: number): Promise<GetModuleResponse>;
|
|
119
|
-
protected processModulesGET(response:
|
|
42
|
+
modulesGET(id: number, cancelToken?: CancelToken): Promise<GetModuleResponse>;
|
|
43
|
+
protected processModulesGET(response: AxiosResponse): Promise<GetModuleResponse>;
|
|
120
44
|
/**
|
|
121
45
|
* @param body (optional)
|
|
122
46
|
* @return OK
|
|
123
47
|
*/
|
|
124
|
-
placesPOST(body
|
|
125
|
-
protected processPlacesPOST(response:
|
|
48
|
+
placesPOST(body: CreatePlaceCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
49
|
+
protected processPlacesPOST(response: AxiosResponse): Promise<boolean>;
|
|
126
50
|
/**
|
|
127
51
|
* @param id (optional)
|
|
128
52
|
* @return OK
|
|
129
53
|
*/
|
|
130
|
-
placesDELETE(id
|
|
131
|
-
protected processPlacesDELETE(response:
|
|
54
|
+
placesDELETE(id: number | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
55
|
+
protected processPlacesDELETE(response: AxiosResponse): Promise<boolean>;
|
|
132
56
|
/**
|
|
133
57
|
* @param body (optional)
|
|
134
58
|
* @return OK
|
|
135
59
|
*/
|
|
136
|
-
placesPUT(body
|
|
137
|
-
protected processPlacesPUT(response:
|
|
60
|
+
placesPUT(body: UpdatePlaceCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
61
|
+
protected processPlacesPUT(response: AxiosResponse): Promise<boolean>;
|
|
138
62
|
/**
|
|
139
63
|
* @return OK
|
|
140
64
|
*/
|
|
141
|
-
placesAll(): Promise<GetPlacesResponse[]>;
|
|
142
|
-
protected processPlacesAll(response:
|
|
65
|
+
placesAll(cancelToken?: CancelToken): Promise<GetPlacesResponse[]>;
|
|
66
|
+
protected processPlacesAll(response: AxiosResponse): Promise<GetPlacesResponse[]>;
|
|
143
67
|
/**
|
|
144
68
|
* @param body (optional)
|
|
145
69
|
* @return OK
|
|
146
70
|
*/
|
|
147
|
-
plantsPOST(body
|
|
148
|
-
protected processPlantsPOST(response:
|
|
71
|
+
plantsPOST(body: CreatePlantCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
72
|
+
protected processPlantsPOST(response: AxiosResponse): Promise<boolean>;
|
|
149
73
|
/**
|
|
150
74
|
* @param id (optional)
|
|
151
75
|
* @return OK
|
|
152
76
|
*/
|
|
153
|
-
plantsDELETE(id
|
|
154
|
-
protected processPlantsDELETE(response:
|
|
77
|
+
plantsDELETE(id: number | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
78
|
+
protected processPlantsDELETE(response: AxiosResponse): Promise<boolean>;
|
|
155
79
|
/**
|
|
156
80
|
* @param body (optional)
|
|
157
81
|
* @return OK
|
|
158
82
|
*/
|
|
159
|
-
plantsPUT(body
|
|
160
|
-
protected processPlantsPUT(response:
|
|
83
|
+
plantsPUT(body: UpdatePlantCommand | undefined, cancelToken?: CancelToken): Promise<boolean>;
|
|
84
|
+
protected processPlantsPUT(response: AxiosResponse): Promise<boolean>;
|
|
161
85
|
/**
|
|
162
86
|
* @return OK
|
|
163
87
|
*/
|
|
164
|
-
plantsAll(): Promise<GetPlantResponse[]>;
|
|
165
|
-
protected processPlantsAll(response:
|
|
88
|
+
plantsAll(cancelToken?: CancelToken): Promise<GetPlantResponse[]>;
|
|
89
|
+
protected processPlantsAll(response: AxiosResponse): Promise<GetPlantResponse[]>;
|
|
166
90
|
/**
|
|
167
91
|
* @return OK
|
|
168
92
|
*/
|
|
169
|
-
plantsGET(id: number): Promise<GetPlantResponse>;
|
|
170
|
-
protected processPlantsGET(response:
|
|
93
|
+
plantsGET(id: number, cancelToken?: CancelToken): Promise<GetPlantResponse>;
|
|
94
|
+
protected processPlantsGET(response: AxiosResponse): Promise<GetPlantResponse>;
|
|
171
95
|
}
|
|
172
96
|
interface AddHumidityMeasurementCommand {
|
|
173
97
|
moduleId?: number;
|
|
174
98
|
humidity?: number;
|
|
175
99
|
measurementDate?: Date;
|
|
100
|
+
error?: string | undefined;
|
|
176
101
|
}
|
|
177
102
|
interface Assembly {
|
|
178
103
|
readonly definedTypes?: TypeInfo[] | undefined;
|
|
@@ -838,4 +763,4 @@ declare class ApiException extends Error {
|
|
|
838
763
|
static isApiException(obj: any): obj is ApiException;
|
|
839
764
|
}
|
|
840
765
|
|
|
841
|
-
export { type AddHumidityMeasurementCommand, ApiException, type Assembly, type AverageHumidity, CallingConventions, Client, type ConstructorInfo, type CreateModuleRequest, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type GetModuleResponse, type GetPlacesResponse, type GetPlantResponse, type
|
|
766
|
+
export { type AddHumidityMeasurementCommand, ApiException, type Assembly, type AverageHumidity, CallingConventions, Client, type ConstructorInfo, type CreateModuleRequest, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type GetModuleResponse, type GetPlacesResponse, type GetPlantResponse, type ICustomAttributeProvider, type IHumidityMeasurement, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type ModuleHandle, ParameterAttributes, type ParameterInfo, PlantType, PropertyAttributes, type PropertyInfo, type RuntimeFieldHandle, type RuntimeMethodHandle, type RuntimeTypeHandle, SecurityRuleSet, type StructLayoutAttribute, type Type, TypeAttributes, type TypeInfo, type UpdatePlaceCommand, type UpdatePlantCommand };
|