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