@arekstasko/plantcare-api-client 1.1.4 → 1.1.6
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 +18 -18
- package/dist/index.d.cts +159 -161
- package/dist/index.d.ts +159 -161
- package/dist/index.js +18 -18
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1159,6 +1159,12 @@ var Client = /*#__PURE__*/ function() {
|
|
|
1159
1159
|
]);
|
|
1160
1160
|
return Client;
|
|
1161
1161
|
}();
|
|
1162
|
+
var PlantType = /* @__PURE__ */ function(PlantType2) {
|
|
1163
|
+
PlantType2[PlantType2["_0"] = 0] = "_0";
|
|
1164
|
+
PlantType2[PlantType2["_1"] = 1] = "_1";
|
|
1165
|
+
PlantType2[PlantType2["_2"] = 2] = "_2";
|
|
1166
|
+
return PlantType2;
|
|
1167
|
+
}(PlantType || {});
|
|
1162
1168
|
var CallingConventions = /* @__PURE__ */ function(CallingConventions2) {
|
|
1163
1169
|
CallingConventions2[CallingConventions2["_1"] = 1] = "_1";
|
|
1164
1170
|
CallingConventions2[CallingConventions2["_2"] = 2] = "_2";
|
|
@@ -1206,12 +1212,6 @@ var GenericParameterAttributes = /* @__PURE__ */ function(GenericParameterAttrib
|
|
|
1206
1212
|
GenericParameterAttributes2[GenericParameterAttributes2["_28"] = 28] = "_28";
|
|
1207
1213
|
return GenericParameterAttributes2;
|
|
1208
1214
|
}(GenericParameterAttributes || {});
|
|
1209
|
-
var LayoutKind = /* @__PURE__ */ function(LayoutKind2) {
|
|
1210
|
-
LayoutKind2[LayoutKind2["_0"] = 0] = "_0";
|
|
1211
|
-
LayoutKind2[LayoutKind2["_2"] = 2] = "_2";
|
|
1212
|
-
LayoutKind2[LayoutKind2["_3"] = 3] = "_3";
|
|
1213
|
-
return LayoutKind2;
|
|
1214
|
-
}(LayoutKind || {});
|
|
1215
1215
|
var MemberTypes = /* @__PURE__ */ function(MemberTypes2) {
|
|
1216
1216
|
MemberTypes2[MemberTypes2["_1"] = 1] = "_1";
|
|
1217
1217
|
MemberTypes2[MemberTypes2["_2"] = 2] = "_2";
|
|
@@ -1280,12 +1280,6 @@ var ParameterAttributes = /* @__PURE__ */ function(ParameterAttributes2) {
|
|
|
1280
1280
|
ParameterAttributes2[ParameterAttributes2["_61440"] = 61440] = "_61440";
|
|
1281
1281
|
return ParameterAttributes2;
|
|
1282
1282
|
}(ParameterAttributes || {});
|
|
1283
|
-
var PlantType = /* @__PURE__ */ function(PlantType2) {
|
|
1284
|
-
PlantType2[PlantType2["_0"] = 0] = "_0";
|
|
1285
|
-
PlantType2[PlantType2["_1"] = 1] = "_1";
|
|
1286
|
-
PlantType2[PlantType2["_2"] = 2] = "_2";
|
|
1287
|
-
return PlantType2;
|
|
1288
|
-
}(PlantType || {});
|
|
1289
1283
|
var PropertyAttributes = /* @__PURE__ */ function(PropertyAttributes2) {
|
|
1290
1284
|
PropertyAttributes2[PropertyAttributes2["_0"] = 0] = "_0";
|
|
1291
1285
|
PropertyAttributes2[PropertyAttributes2["_512"] = 512] = "_512";
|
|
@@ -1297,12 +1291,6 @@ var PropertyAttributes = /* @__PURE__ */ function(PropertyAttributes2) {
|
|
|
1297
1291
|
PropertyAttributes2[PropertyAttributes2["_62464"] = 62464] = "_62464";
|
|
1298
1292
|
return PropertyAttributes2;
|
|
1299
1293
|
}(PropertyAttributes || {});
|
|
1300
|
-
var SecurityRuleSet = /* @__PURE__ */ function(SecurityRuleSet2) {
|
|
1301
|
-
SecurityRuleSet2[SecurityRuleSet2["_0"] = 0] = "_0";
|
|
1302
|
-
SecurityRuleSet2[SecurityRuleSet2["_1"] = 1] = "_1";
|
|
1303
|
-
SecurityRuleSet2[SecurityRuleSet2["_2"] = 2] = "_2";
|
|
1304
|
-
return SecurityRuleSet2;
|
|
1305
|
-
}(SecurityRuleSet || {});
|
|
1306
1294
|
var TypeAttributes = /* @__PURE__ */ function(TypeAttributes2) {
|
|
1307
1295
|
TypeAttributes2[TypeAttributes2["_0"] = 0] = "_0";
|
|
1308
1296
|
TypeAttributes2[TypeAttributes2["_1"] = 1] = "_1";
|
|
@@ -1332,6 +1320,18 @@ var TypeAttributes = /* @__PURE__ */ function(TypeAttributes2) {
|
|
|
1332
1320
|
TypeAttributes2[TypeAttributes2["_12582912"] = 12582912] = "_12582912";
|
|
1333
1321
|
return TypeAttributes2;
|
|
1334
1322
|
}(TypeAttributes || {});
|
|
1323
|
+
var LayoutKind = /* @__PURE__ */ function(LayoutKind2) {
|
|
1324
|
+
LayoutKind2[LayoutKind2["_0"] = 0] = "_0";
|
|
1325
|
+
LayoutKind2[LayoutKind2["_2"] = 2] = "_2";
|
|
1326
|
+
LayoutKind2[LayoutKind2["_3"] = 3] = "_3";
|
|
1327
|
+
return LayoutKind2;
|
|
1328
|
+
}(LayoutKind || {});
|
|
1329
|
+
var SecurityRuleSet = /* @__PURE__ */ function(SecurityRuleSet2) {
|
|
1330
|
+
SecurityRuleSet2[SecurityRuleSet2["_0"] = 0] = "_0";
|
|
1331
|
+
SecurityRuleSet2[SecurityRuleSet2["_1"] = 1] = "_1";
|
|
1332
|
+
SecurityRuleSet2[SecurityRuleSet2["_2"] = 2] = "_2";
|
|
1333
|
+
return SecurityRuleSet2;
|
|
1334
|
+
}(SecurityRuleSet || {});
|
|
1335
1335
|
var ApiException = /*#__PURE__*/ function(Error1) {
|
|
1336
1336
|
_inherits(ApiException, Error1);
|
|
1337
1337
|
function ApiException(message, status, response, headers, result) {
|
package/dist/index.d.cts
CHANGED
|
@@ -16,8 +16,8 @@ declare class Client {
|
|
|
16
16
|
* @param toDate (optional)
|
|
17
17
|
* @return OK
|
|
18
18
|
*/
|
|
19
|
-
humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<
|
|
20
|
-
protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<
|
|
19
|
+
humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<HumidityMeasurement[]>;
|
|
20
|
+
protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<HumidityMeasurement[]>;
|
|
21
21
|
/**
|
|
22
22
|
* @param fromDate (optional)
|
|
23
23
|
* @param toDate (optional)
|
|
@@ -34,13 +34,13 @@ declare class Client {
|
|
|
34
34
|
/**
|
|
35
35
|
* @return OK
|
|
36
36
|
*/
|
|
37
|
-
modulesAll(cancelToken?: CancelToken): Promise<
|
|
38
|
-
protected processModulesAll(response: AxiosResponse): Promise<
|
|
37
|
+
modulesAll(cancelToken?: CancelToken): Promise<Module[]>;
|
|
38
|
+
protected processModulesAll(response: AxiosResponse): Promise<Module[]>;
|
|
39
39
|
/**
|
|
40
40
|
* @return OK
|
|
41
41
|
*/
|
|
42
|
-
modulesGET(id: number, cancelToken?: CancelToken): Promise<
|
|
43
|
-
protected processModulesGET(response: AxiosResponse): Promise<
|
|
42
|
+
modulesGET(id: number, cancelToken?: CancelToken): Promise<Module>;
|
|
43
|
+
protected processModulesGET(response: AxiosResponse): Promise<Module>;
|
|
44
44
|
/**
|
|
45
45
|
* @param body (optional)
|
|
46
46
|
* @return OK
|
|
@@ -62,8 +62,8 @@ declare class Client {
|
|
|
62
62
|
/**
|
|
63
63
|
* @return OK
|
|
64
64
|
*/
|
|
65
|
-
placesAll(cancelToken?: CancelToken): Promise<
|
|
66
|
-
protected processPlacesAll(response: AxiosResponse): Promise<
|
|
65
|
+
placesAll(cancelToken?: CancelToken): Promise<Place[]>;
|
|
66
|
+
protected processPlacesAll(response: AxiosResponse): Promise<Place[]>;
|
|
67
67
|
/**
|
|
68
68
|
* @param body (optional)
|
|
69
69
|
* @return OK
|
|
@@ -85,13 +85,13 @@ declare class Client {
|
|
|
85
85
|
/**
|
|
86
86
|
* @return OK
|
|
87
87
|
*/
|
|
88
|
-
plantsAll(cancelToken?: CancelToken): Promise<
|
|
89
|
-
protected processPlantsAll(response: AxiosResponse): Promise<
|
|
88
|
+
plantsAll(cancelToken?: CancelToken): Promise<Plant[]>;
|
|
89
|
+
protected processPlantsAll(response: AxiosResponse): Promise<Plant[]>;
|
|
90
90
|
/**
|
|
91
91
|
* @return OK
|
|
92
92
|
*/
|
|
93
|
-
plantsGET(id: number, cancelToken?: CancelToken): Promise<
|
|
94
|
-
protected processPlantsGET(response: AxiosResponse): Promise<
|
|
93
|
+
plantsGET(id: number, cancelToken?: CancelToken): Promise<Plant>;
|
|
94
|
+
protected processPlantsGET(response: AxiosResponse): Promise<Plant>;
|
|
95
95
|
}
|
|
96
96
|
interface AddHumidityMeasurementCommand {
|
|
97
97
|
moduleId?: number;
|
|
@@ -99,6 +99,84 @@ interface AddHumidityMeasurementCommand {
|
|
|
99
99
|
measurementDate?: Date;
|
|
100
100
|
error?: string | undefined;
|
|
101
101
|
}
|
|
102
|
+
interface CreatePlaceCommand {
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
userId?: number | undefined;
|
|
105
|
+
}
|
|
106
|
+
interface UpdatePlaceCommand {
|
|
107
|
+
id?: number;
|
|
108
|
+
userId?: number | undefined;
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
}
|
|
111
|
+
interface CreatePlantCommand {
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
userId?: number;
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
placeId?: number;
|
|
116
|
+
type?: PlantType;
|
|
117
|
+
moduleId?: number | undefined;
|
|
118
|
+
}
|
|
119
|
+
interface UpdatePlantCommand {
|
|
120
|
+
id?: number;
|
|
121
|
+
userId?: number;
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
description?: string | undefined;
|
|
124
|
+
placeId?: number;
|
|
125
|
+
type?: PlantType;
|
|
126
|
+
moduleId?: number | undefined;
|
|
127
|
+
}
|
|
128
|
+
interface AverageHumidity {
|
|
129
|
+
date?: string | undefined;
|
|
130
|
+
humidity?: number;
|
|
131
|
+
}
|
|
132
|
+
interface CreateModuleRequest {
|
|
133
|
+
name?: string | undefined;
|
|
134
|
+
}
|
|
135
|
+
declare enum PlantType {
|
|
136
|
+
_0 = 0,
|
|
137
|
+
_1 = 1,
|
|
138
|
+
_2 = 2
|
|
139
|
+
}
|
|
140
|
+
interface HumidityMeasurement {
|
|
141
|
+
humidity?: number;
|
|
142
|
+
date?: Date;
|
|
143
|
+
}
|
|
144
|
+
interface Module {
|
|
145
|
+
id?: number;
|
|
146
|
+
isAvailable?: boolean;
|
|
147
|
+
requiredMoistureLevel?: number | undefined;
|
|
148
|
+
criticalMoistureLevel?: number | undefined;
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
}
|
|
151
|
+
interface Place {
|
|
152
|
+
id?: number;
|
|
153
|
+
name?: string | undefined;
|
|
154
|
+
}
|
|
155
|
+
interface Plant {
|
|
156
|
+
id?: number;
|
|
157
|
+
placeId?: number;
|
|
158
|
+
moduleId?: number;
|
|
159
|
+
name?: string | undefined;
|
|
160
|
+
description?: string | undefined;
|
|
161
|
+
type?: PlantType;
|
|
162
|
+
}
|
|
163
|
+
interface Exception {
|
|
164
|
+
targetSite?: MethodBase;
|
|
165
|
+
readonly message?: string | undefined;
|
|
166
|
+
readonly data?: {
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
} | undefined;
|
|
169
|
+
innerException?: Exception;
|
|
170
|
+
helpLink?: string | undefined;
|
|
171
|
+
source?: string | undefined;
|
|
172
|
+
hResult?: number;
|
|
173
|
+
readonly stackTrace?: string | undefined;
|
|
174
|
+
}
|
|
175
|
+
interface IntPtr {
|
|
176
|
+
}
|
|
177
|
+
interface ModuleHandle {
|
|
178
|
+
readonly mdStreamVersion?: number;
|
|
179
|
+
}
|
|
102
180
|
interface Assembly {
|
|
103
181
|
readonly definedTypes?: TypeInfo[] | undefined;
|
|
104
182
|
readonly exportedTypes?: Type[] | undefined;
|
|
@@ -113,16 +191,12 @@ interface Assembly {
|
|
|
113
191
|
readonly isFullyTrusted?: boolean;
|
|
114
192
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
115
193
|
readonly escapedCodeBase?: string | undefined;
|
|
116
|
-
manifestModule?:
|
|
117
|
-
readonly modules?:
|
|
194
|
+
manifestModule?: Module2;
|
|
195
|
+
readonly modules?: Module2[] | undefined;
|
|
118
196
|
readonly globalAssemblyCache?: boolean;
|
|
119
197
|
readonly hostContext?: number;
|
|
120
198
|
securityRuleSet?: SecurityRuleSet;
|
|
121
199
|
}
|
|
122
|
-
interface AverageHumidity {
|
|
123
|
-
date?: string | undefined;
|
|
124
|
-
humidity?: number;
|
|
125
|
-
}
|
|
126
200
|
declare enum CallingConventions {
|
|
127
201
|
_1 = 1,
|
|
128
202
|
_2 = 2,
|
|
@@ -134,7 +208,7 @@ interface ConstructorInfo {
|
|
|
134
208
|
readonly name?: string | undefined;
|
|
135
209
|
declaringType?: Type;
|
|
136
210
|
reflectedType?: Type;
|
|
137
|
-
module?:
|
|
211
|
+
module?: Module2;
|
|
138
212
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
139
213
|
readonly isCollectible?: boolean;
|
|
140
214
|
readonly metadataToken?: number;
|
|
@@ -164,21 +238,6 @@ interface ConstructorInfo {
|
|
|
164
238
|
readonly isSecurityTransparent?: boolean;
|
|
165
239
|
memberType?: MemberTypes;
|
|
166
240
|
}
|
|
167
|
-
interface CreateModuleRequest {
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
}
|
|
170
|
-
interface CreatePlaceCommand {
|
|
171
|
-
name?: string | undefined;
|
|
172
|
-
userId?: number | undefined;
|
|
173
|
-
}
|
|
174
|
-
interface CreatePlantCommand {
|
|
175
|
-
name?: string | undefined;
|
|
176
|
-
userId?: number;
|
|
177
|
-
description?: string | undefined;
|
|
178
|
-
placeId?: number;
|
|
179
|
-
type?: PlantType;
|
|
180
|
-
moduleId?: number | undefined;
|
|
181
|
-
}
|
|
182
241
|
interface CustomAttributeData {
|
|
183
242
|
attributeType?: Type;
|
|
184
243
|
constructor?: ConstructorInfo;
|
|
@@ -204,7 +263,7 @@ interface EventInfo {
|
|
|
204
263
|
readonly name?: string | undefined;
|
|
205
264
|
declaringType?: Type;
|
|
206
265
|
reflectedType?: Type;
|
|
207
|
-
module?:
|
|
266
|
+
module?: Module2;
|
|
208
267
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
209
268
|
readonly isCollectible?: boolean;
|
|
210
269
|
readonly metadataToken?: number;
|
|
@@ -217,18 +276,6 @@ interface EventInfo {
|
|
|
217
276
|
readonly isMulticast?: boolean;
|
|
218
277
|
eventHandlerType?: Type;
|
|
219
278
|
}
|
|
220
|
-
interface Exception {
|
|
221
|
-
targetSite?: MethodBase;
|
|
222
|
-
readonly message?: string | undefined;
|
|
223
|
-
readonly data?: {
|
|
224
|
-
[key: string]: any;
|
|
225
|
-
} | undefined;
|
|
226
|
-
innerException?: Exception;
|
|
227
|
-
helpLink?: string | undefined;
|
|
228
|
-
source?: string | undefined;
|
|
229
|
-
hResult?: number;
|
|
230
|
-
readonly stackTrace?: string | undefined;
|
|
231
|
-
}
|
|
232
279
|
declare enum FieldAttributes {
|
|
233
280
|
_0 = 0,
|
|
234
281
|
_1 = 1,
|
|
@@ -254,7 +301,7 @@ interface FieldInfo {
|
|
|
254
301
|
readonly name?: string | undefined;
|
|
255
302
|
declaringType?: Type;
|
|
256
303
|
reflectedType?: Type;
|
|
257
|
-
module?:
|
|
304
|
+
module?: Module2;
|
|
258
305
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
259
306
|
readonly isCollectible?: boolean;
|
|
260
307
|
readonly metadataToken?: number;
|
|
@@ -288,46 +335,14 @@ declare enum GenericParameterAttributes {
|
|
|
288
335
|
_16 = 16,
|
|
289
336
|
_28 = 28
|
|
290
337
|
}
|
|
291
|
-
interface GetModuleResponse {
|
|
292
|
-
id?: number;
|
|
293
|
-
isAvailable?: boolean;
|
|
294
|
-
requiredMoistureLevel?: number | undefined;
|
|
295
|
-
criticalMoistureLevel?: number | undefined;
|
|
296
|
-
name?: string | undefined;
|
|
297
|
-
}
|
|
298
|
-
interface GetPlacesResponse {
|
|
299
|
-
id?: number;
|
|
300
|
-
name?: string | undefined;
|
|
301
|
-
}
|
|
302
|
-
interface GetPlantResponse {
|
|
303
|
-
id?: number;
|
|
304
|
-
placeId?: number;
|
|
305
|
-
moduleId?: number;
|
|
306
|
-
name?: string | undefined;
|
|
307
|
-
description?: string | undefined;
|
|
308
|
-
type?: PlantType;
|
|
309
|
-
}
|
|
310
338
|
interface ICustomAttributeProvider {
|
|
311
339
|
}
|
|
312
|
-
interface IHumidityMeasurement {
|
|
313
|
-
id?: number;
|
|
314
|
-
moduleId?: number;
|
|
315
|
-
humidity?: number;
|
|
316
|
-
measurementDate?: Date;
|
|
317
|
-
}
|
|
318
|
-
interface IntPtr {
|
|
319
|
-
}
|
|
320
|
-
declare enum LayoutKind {
|
|
321
|
-
_0 = 0,
|
|
322
|
-
_2 = 2,
|
|
323
|
-
_3 = 3
|
|
324
|
-
}
|
|
325
340
|
interface MemberInfo {
|
|
326
341
|
memberType?: MemberTypes;
|
|
327
342
|
readonly name?: string | undefined;
|
|
328
343
|
declaringType?: Type;
|
|
329
344
|
reflectedType?: Type;
|
|
330
|
-
module?:
|
|
345
|
+
module?: Module2;
|
|
331
346
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
332
347
|
readonly isCollectible?: boolean;
|
|
333
348
|
readonly metadataToken?: number;
|
|
@@ -372,7 +387,7 @@ interface MethodBase {
|
|
|
372
387
|
readonly name?: string | undefined;
|
|
373
388
|
declaringType?: Type;
|
|
374
389
|
reflectedType?: Type;
|
|
375
|
-
module?:
|
|
390
|
+
module?: Module2;
|
|
376
391
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
377
392
|
readonly isCollectible?: boolean;
|
|
378
393
|
readonly metadataToken?: number;
|
|
@@ -421,7 +436,7 @@ interface MethodInfo {
|
|
|
421
436
|
readonly name?: string | undefined;
|
|
422
437
|
declaringType?: Type;
|
|
423
438
|
reflectedType?: Type;
|
|
424
|
-
module?:
|
|
439
|
+
module?: Module2;
|
|
425
440
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
426
441
|
readonly isCollectible?: boolean;
|
|
427
442
|
readonly metadataToken?: number;
|
|
@@ -454,7 +469,7 @@ interface MethodInfo {
|
|
|
454
469
|
returnType?: Type;
|
|
455
470
|
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
|
456
471
|
}
|
|
457
|
-
interface
|
|
472
|
+
interface Module2 {
|
|
458
473
|
assembly?: Assembly;
|
|
459
474
|
readonly fullyQualifiedName?: string | undefined;
|
|
460
475
|
readonly name?: string | undefined;
|
|
@@ -465,9 +480,6 @@ interface Module {
|
|
|
465
480
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
466
481
|
readonly metadataToken?: number;
|
|
467
482
|
}
|
|
468
|
-
interface ModuleHandle {
|
|
469
|
-
readonly mdStreamVersion?: number;
|
|
470
|
-
}
|
|
471
483
|
declare enum ParameterAttributes {
|
|
472
484
|
_0 = 0,
|
|
473
485
|
_1 = 1,
|
|
@@ -498,11 +510,6 @@ interface ParameterInfo {
|
|
|
498
510
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
499
511
|
readonly metadataToken?: number;
|
|
500
512
|
}
|
|
501
|
-
declare enum PlantType {
|
|
502
|
-
_0 = 0,
|
|
503
|
-
_1 = 1,
|
|
504
|
-
_2 = 2
|
|
505
|
-
}
|
|
506
513
|
declare enum PropertyAttributes {
|
|
507
514
|
_0 = 0,
|
|
508
515
|
_512 = 512,
|
|
@@ -517,7 +524,7 @@ interface PropertyInfo {
|
|
|
517
524
|
readonly name?: string | undefined;
|
|
518
525
|
declaringType?: Type;
|
|
519
526
|
reflectedType?: Type;
|
|
520
|
-
module?:
|
|
527
|
+
module?: Module2;
|
|
521
528
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
522
529
|
readonly isCollectible?: boolean;
|
|
523
530
|
readonly metadataToken?: number;
|
|
@@ -530,25 +537,35 @@ interface PropertyInfo {
|
|
|
530
537
|
getMethod?: MethodInfo;
|
|
531
538
|
setMethod?: MethodInfo;
|
|
532
539
|
}
|
|
533
|
-
|
|
534
|
-
value?: IntPtr;
|
|
535
|
-
}
|
|
536
|
-
interface RuntimeMethodHandle {
|
|
537
|
-
value?: IntPtr;
|
|
538
|
-
}
|
|
539
|
-
interface RuntimeTypeHandle {
|
|
540
|
-
value?: IntPtr;
|
|
541
|
-
}
|
|
542
|
-
declare enum SecurityRuleSet {
|
|
540
|
+
declare enum TypeAttributes {
|
|
543
541
|
_0 = 0,
|
|
544
542
|
_1 = 1,
|
|
545
|
-
_2 = 2
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
543
|
+
_2 = 2,
|
|
544
|
+
_3 = 3,
|
|
545
|
+
_4 = 4,
|
|
546
|
+
_5 = 5,
|
|
547
|
+
_6 = 6,
|
|
548
|
+
_7 = 7,
|
|
549
|
+
_8 = 8,
|
|
550
|
+
_16 = 16,
|
|
551
|
+
_24 = 24,
|
|
552
|
+
_32 = 32,
|
|
553
|
+
_128 = 128,
|
|
554
|
+
_256 = 256,
|
|
555
|
+
_1024 = 1024,
|
|
556
|
+
_2048 = 2048,
|
|
557
|
+
_4096 = 4096,
|
|
558
|
+
_8192 = 8192,
|
|
559
|
+
_16384 = 16384,
|
|
560
|
+
_65536 = 65536,
|
|
561
|
+
_131072 = 131072,
|
|
562
|
+
_196608 = 196608,
|
|
563
|
+
_262144 = 262144,
|
|
564
|
+
_264192 = 264192,
|
|
565
|
+
_1048576 = 1048576,
|
|
566
|
+
_12582912 = 12582912
|
|
550
567
|
}
|
|
551
|
-
interface
|
|
568
|
+
interface TypeInfo {
|
|
552
569
|
readonly name?: string | undefined;
|
|
553
570
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
554
571
|
readonly isCollectible?: boolean;
|
|
@@ -559,7 +576,7 @@ interface Type {
|
|
|
559
576
|
readonly assemblyQualifiedName?: string | undefined;
|
|
560
577
|
readonly fullName?: string | undefined;
|
|
561
578
|
assembly?: Assembly;
|
|
562
|
-
module?:
|
|
579
|
+
module?: Module2;
|
|
563
580
|
readonly isNested?: boolean;
|
|
564
581
|
declaringType?: Type;
|
|
565
582
|
declaringMethod?: MethodBase;
|
|
@@ -622,36 +639,40 @@ interface Type {
|
|
|
622
639
|
readonly isSerializable?: boolean;
|
|
623
640
|
readonly containsGenericParameters?: boolean;
|
|
624
641
|
readonly isVisible?: boolean;
|
|
642
|
+
readonly genericTypeParameters?: Type[] | undefined;
|
|
643
|
+
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
644
|
+
readonly declaredEvents?: EventInfo[] | undefined;
|
|
645
|
+
readonly declaredFields?: FieldInfo[] | undefined;
|
|
646
|
+
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
647
|
+
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
648
|
+
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
649
|
+
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
650
|
+
readonly implementedInterfaces?: Type[] | undefined;
|
|
625
651
|
}
|
|
626
|
-
declare enum
|
|
652
|
+
declare enum LayoutKind {
|
|
627
653
|
_0 = 0,
|
|
628
|
-
_1 = 1,
|
|
629
654
|
_2 = 2,
|
|
630
|
-
_3 = 3
|
|
631
|
-
_4 = 4,
|
|
632
|
-
_5 = 5,
|
|
633
|
-
_6 = 6,
|
|
634
|
-
_7 = 7,
|
|
635
|
-
_8 = 8,
|
|
636
|
-
_16 = 16,
|
|
637
|
-
_24 = 24,
|
|
638
|
-
_32 = 32,
|
|
639
|
-
_128 = 128,
|
|
640
|
-
_256 = 256,
|
|
641
|
-
_1024 = 1024,
|
|
642
|
-
_2048 = 2048,
|
|
643
|
-
_4096 = 4096,
|
|
644
|
-
_8192 = 8192,
|
|
645
|
-
_16384 = 16384,
|
|
646
|
-
_65536 = 65536,
|
|
647
|
-
_131072 = 131072,
|
|
648
|
-
_196608 = 196608,
|
|
649
|
-
_262144 = 262144,
|
|
650
|
-
_264192 = 264192,
|
|
651
|
-
_1048576 = 1048576,
|
|
652
|
-
_12582912 = 12582912
|
|
655
|
+
_3 = 3
|
|
653
656
|
}
|
|
654
|
-
interface
|
|
657
|
+
interface StructLayoutAttribute {
|
|
658
|
+
readonly typeId?: any | undefined;
|
|
659
|
+
value?: LayoutKind;
|
|
660
|
+
}
|
|
661
|
+
interface RuntimeFieldHandle {
|
|
662
|
+
value?: IntPtr;
|
|
663
|
+
}
|
|
664
|
+
interface RuntimeMethodHandle {
|
|
665
|
+
value?: IntPtr;
|
|
666
|
+
}
|
|
667
|
+
interface RuntimeTypeHandle {
|
|
668
|
+
value?: IntPtr;
|
|
669
|
+
}
|
|
670
|
+
declare enum SecurityRuleSet {
|
|
671
|
+
_0 = 0,
|
|
672
|
+
_1 = 1,
|
|
673
|
+
_2 = 2
|
|
674
|
+
}
|
|
675
|
+
interface Type {
|
|
655
676
|
readonly name?: string | undefined;
|
|
656
677
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
657
678
|
readonly isCollectible?: boolean;
|
|
@@ -662,7 +683,7 @@ interface TypeInfo {
|
|
|
662
683
|
readonly assemblyQualifiedName?: string | undefined;
|
|
663
684
|
readonly fullName?: string | undefined;
|
|
664
685
|
assembly?: Assembly;
|
|
665
|
-
module?:
|
|
686
|
+
module?: Module2;
|
|
666
687
|
readonly isNested?: boolean;
|
|
667
688
|
declaringType?: Type;
|
|
668
689
|
declaringMethod?: MethodBase;
|
|
@@ -725,29 +746,6 @@ interface TypeInfo {
|
|
|
725
746
|
readonly isSerializable?: boolean;
|
|
726
747
|
readonly containsGenericParameters?: boolean;
|
|
727
748
|
readonly isVisible?: boolean;
|
|
728
|
-
readonly genericTypeParameters?: Type[] | undefined;
|
|
729
|
-
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
730
|
-
readonly declaredEvents?: EventInfo[] | undefined;
|
|
731
|
-
readonly declaredFields?: FieldInfo[] | undefined;
|
|
732
|
-
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
733
|
-
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
734
|
-
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
735
|
-
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
736
|
-
readonly implementedInterfaces?: Type[] | undefined;
|
|
737
|
-
}
|
|
738
|
-
interface UpdatePlaceCommand {
|
|
739
|
-
id?: number;
|
|
740
|
-
userId?: number | undefined;
|
|
741
|
-
name?: string | undefined;
|
|
742
|
-
}
|
|
743
|
-
interface UpdatePlantCommand {
|
|
744
|
-
id?: number;
|
|
745
|
-
userId?: number;
|
|
746
|
-
name?: string | undefined;
|
|
747
|
-
description?: string | undefined;
|
|
748
|
-
placeId?: number;
|
|
749
|
-
type?: PlantType;
|
|
750
|
-
moduleId?: number | undefined;
|
|
751
749
|
}
|
|
752
750
|
declare class ApiException extends Error {
|
|
753
751
|
message: string;
|
|
@@ -764,4 +762,4 @@ declare class ApiException extends Error {
|
|
|
764
762
|
static isApiException(obj: any): obj is ApiException;
|
|
765
763
|
}
|
|
766
764
|
|
|
767
|
-
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
|
|
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 HumidityMeasurement, type ICustomAttributeProvider, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type Module2, type ModuleHandle, ParameterAttributes, type ParameterInfo, type Place, type Plant, 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
|
@@ -16,8 +16,8 @@ declare class Client {
|
|
|
16
16
|
* @param toDate (optional)
|
|
17
17
|
* @return OK
|
|
18
18
|
*/
|
|
19
|
-
humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<
|
|
20
|
-
protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<
|
|
19
|
+
humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<HumidityMeasurement[]>;
|
|
20
|
+
protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<HumidityMeasurement[]>;
|
|
21
21
|
/**
|
|
22
22
|
* @param fromDate (optional)
|
|
23
23
|
* @param toDate (optional)
|
|
@@ -34,13 +34,13 @@ declare class Client {
|
|
|
34
34
|
/**
|
|
35
35
|
* @return OK
|
|
36
36
|
*/
|
|
37
|
-
modulesAll(cancelToken?: CancelToken): Promise<
|
|
38
|
-
protected processModulesAll(response: AxiosResponse): Promise<
|
|
37
|
+
modulesAll(cancelToken?: CancelToken): Promise<Module[]>;
|
|
38
|
+
protected processModulesAll(response: AxiosResponse): Promise<Module[]>;
|
|
39
39
|
/**
|
|
40
40
|
* @return OK
|
|
41
41
|
*/
|
|
42
|
-
modulesGET(id: number, cancelToken?: CancelToken): Promise<
|
|
43
|
-
protected processModulesGET(response: AxiosResponse): Promise<
|
|
42
|
+
modulesGET(id: number, cancelToken?: CancelToken): Promise<Module>;
|
|
43
|
+
protected processModulesGET(response: AxiosResponse): Promise<Module>;
|
|
44
44
|
/**
|
|
45
45
|
* @param body (optional)
|
|
46
46
|
* @return OK
|
|
@@ -62,8 +62,8 @@ declare class Client {
|
|
|
62
62
|
/**
|
|
63
63
|
* @return OK
|
|
64
64
|
*/
|
|
65
|
-
placesAll(cancelToken?: CancelToken): Promise<
|
|
66
|
-
protected processPlacesAll(response: AxiosResponse): Promise<
|
|
65
|
+
placesAll(cancelToken?: CancelToken): Promise<Place[]>;
|
|
66
|
+
protected processPlacesAll(response: AxiosResponse): Promise<Place[]>;
|
|
67
67
|
/**
|
|
68
68
|
* @param body (optional)
|
|
69
69
|
* @return OK
|
|
@@ -85,13 +85,13 @@ declare class Client {
|
|
|
85
85
|
/**
|
|
86
86
|
* @return OK
|
|
87
87
|
*/
|
|
88
|
-
plantsAll(cancelToken?: CancelToken): Promise<
|
|
89
|
-
protected processPlantsAll(response: AxiosResponse): Promise<
|
|
88
|
+
plantsAll(cancelToken?: CancelToken): Promise<Plant[]>;
|
|
89
|
+
protected processPlantsAll(response: AxiosResponse): Promise<Plant[]>;
|
|
90
90
|
/**
|
|
91
91
|
* @return OK
|
|
92
92
|
*/
|
|
93
|
-
plantsGET(id: number, cancelToken?: CancelToken): Promise<
|
|
94
|
-
protected processPlantsGET(response: AxiosResponse): Promise<
|
|
93
|
+
plantsGET(id: number, cancelToken?: CancelToken): Promise<Plant>;
|
|
94
|
+
protected processPlantsGET(response: AxiosResponse): Promise<Plant>;
|
|
95
95
|
}
|
|
96
96
|
interface AddHumidityMeasurementCommand {
|
|
97
97
|
moduleId?: number;
|
|
@@ -99,6 +99,84 @@ interface AddHumidityMeasurementCommand {
|
|
|
99
99
|
measurementDate?: Date;
|
|
100
100
|
error?: string | undefined;
|
|
101
101
|
}
|
|
102
|
+
interface CreatePlaceCommand {
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
userId?: number | undefined;
|
|
105
|
+
}
|
|
106
|
+
interface UpdatePlaceCommand {
|
|
107
|
+
id?: number;
|
|
108
|
+
userId?: number | undefined;
|
|
109
|
+
name?: string | undefined;
|
|
110
|
+
}
|
|
111
|
+
interface CreatePlantCommand {
|
|
112
|
+
name?: string | undefined;
|
|
113
|
+
userId?: number;
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
placeId?: number;
|
|
116
|
+
type?: PlantType;
|
|
117
|
+
moduleId?: number | undefined;
|
|
118
|
+
}
|
|
119
|
+
interface UpdatePlantCommand {
|
|
120
|
+
id?: number;
|
|
121
|
+
userId?: number;
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
description?: string | undefined;
|
|
124
|
+
placeId?: number;
|
|
125
|
+
type?: PlantType;
|
|
126
|
+
moduleId?: number | undefined;
|
|
127
|
+
}
|
|
128
|
+
interface AverageHumidity {
|
|
129
|
+
date?: string | undefined;
|
|
130
|
+
humidity?: number;
|
|
131
|
+
}
|
|
132
|
+
interface CreateModuleRequest {
|
|
133
|
+
name?: string | undefined;
|
|
134
|
+
}
|
|
135
|
+
declare enum PlantType {
|
|
136
|
+
_0 = 0,
|
|
137
|
+
_1 = 1,
|
|
138
|
+
_2 = 2
|
|
139
|
+
}
|
|
140
|
+
interface HumidityMeasurement {
|
|
141
|
+
humidity?: number;
|
|
142
|
+
date?: Date;
|
|
143
|
+
}
|
|
144
|
+
interface Module {
|
|
145
|
+
id?: number;
|
|
146
|
+
isAvailable?: boolean;
|
|
147
|
+
requiredMoistureLevel?: number | undefined;
|
|
148
|
+
criticalMoistureLevel?: number | undefined;
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
}
|
|
151
|
+
interface Place {
|
|
152
|
+
id?: number;
|
|
153
|
+
name?: string | undefined;
|
|
154
|
+
}
|
|
155
|
+
interface Plant {
|
|
156
|
+
id?: number;
|
|
157
|
+
placeId?: number;
|
|
158
|
+
moduleId?: number;
|
|
159
|
+
name?: string | undefined;
|
|
160
|
+
description?: string | undefined;
|
|
161
|
+
type?: PlantType;
|
|
162
|
+
}
|
|
163
|
+
interface Exception {
|
|
164
|
+
targetSite?: MethodBase;
|
|
165
|
+
readonly message?: string | undefined;
|
|
166
|
+
readonly data?: {
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
} | undefined;
|
|
169
|
+
innerException?: Exception;
|
|
170
|
+
helpLink?: string | undefined;
|
|
171
|
+
source?: string | undefined;
|
|
172
|
+
hResult?: number;
|
|
173
|
+
readonly stackTrace?: string | undefined;
|
|
174
|
+
}
|
|
175
|
+
interface IntPtr {
|
|
176
|
+
}
|
|
177
|
+
interface ModuleHandle {
|
|
178
|
+
readonly mdStreamVersion?: number;
|
|
179
|
+
}
|
|
102
180
|
interface Assembly {
|
|
103
181
|
readonly definedTypes?: TypeInfo[] | undefined;
|
|
104
182
|
readonly exportedTypes?: Type[] | undefined;
|
|
@@ -113,16 +191,12 @@ interface Assembly {
|
|
|
113
191
|
readonly isFullyTrusted?: boolean;
|
|
114
192
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
115
193
|
readonly escapedCodeBase?: string | undefined;
|
|
116
|
-
manifestModule?:
|
|
117
|
-
readonly modules?:
|
|
194
|
+
manifestModule?: Module2;
|
|
195
|
+
readonly modules?: Module2[] | undefined;
|
|
118
196
|
readonly globalAssemblyCache?: boolean;
|
|
119
197
|
readonly hostContext?: number;
|
|
120
198
|
securityRuleSet?: SecurityRuleSet;
|
|
121
199
|
}
|
|
122
|
-
interface AverageHumidity {
|
|
123
|
-
date?: string | undefined;
|
|
124
|
-
humidity?: number;
|
|
125
|
-
}
|
|
126
200
|
declare enum CallingConventions {
|
|
127
201
|
_1 = 1,
|
|
128
202
|
_2 = 2,
|
|
@@ -134,7 +208,7 @@ interface ConstructorInfo {
|
|
|
134
208
|
readonly name?: string | undefined;
|
|
135
209
|
declaringType?: Type;
|
|
136
210
|
reflectedType?: Type;
|
|
137
|
-
module?:
|
|
211
|
+
module?: Module2;
|
|
138
212
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
139
213
|
readonly isCollectible?: boolean;
|
|
140
214
|
readonly metadataToken?: number;
|
|
@@ -164,21 +238,6 @@ interface ConstructorInfo {
|
|
|
164
238
|
readonly isSecurityTransparent?: boolean;
|
|
165
239
|
memberType?: MemberTypes;
|
|
166
240
|
}
|
|
167
|
-
interface CreateModuleRequest {
|
|
168
|
-
name?: string | undefined;
|
|
169
|
-
}
|
|
170
|
-
interface CreatePlaceCommand {
|
|
171
|
-
name?: string | undefined;
|
|
172
|
-
userId?: number | undefined;
|
|
173
|
-
}
|
|
174
|
-
interface CreatePlantCommand {
|
|
175
|
-
name?: string | undefined;
|
|
176
|
-
userId?: number;
|
|
177
|
-
description?: string | undefined;
|
|
178
|
-
placeId?: number;
|
|
179
|
-
type?: PlantType;
|
|
180
|
-
moduleId?: number | undefined;
|
|
181
|
-
}
|
|
182
241
|
interface CustomAttributeData {
|
|
183
242
|
attributeType?: Type;
|
|
184
243
|
constructor?: ConstructorInfo;
|
|
@@ -204,7 +263,7 @@ interface EventInfo {
|
|
|
204
263
|
readonly name?: string | undefined;
|
|
205
264
|
declaringType?: Type;
|
|
206
265
|
reflectedType?: Type;
|
|
207
|
-
module?:
|
|
266
|
+
module?: Module2;
|
|
208
267
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
209
268
|
readonly isCollectible?: boolean;
|
|
210
269
|
readonly metadataToken?: number;
|
|
@@ -217,18 +276,6 @@ interface EventInfo {
|
|
|
217
276
|
readonly isMulticast?: boolean;
|
|
218
277
|
eventHandlerType?: Type;
|
|
219
278
|
}
|
|
220
|
-
interface Exception {
|
|
221
|
-
targetSite?: MethodBase;
|
|
222
|
-
readonly message?: string | undefined;
|
|
223
|
-
readonly data?: {
|
|
224
|
-
[key: string]: any;
|
|
225
|
-
} | undefined;
|
|
226
|
-
innerException?: Exception;
|
|
227
|
-
helpLink?: string | undefined;
|
|
228
|
-
source?: string | undefined;
|
|
229
|
-
hResult?: number;
|
|
230
|
-
readonly stackTrace?: string | undefined;
|
|
231
|
-
}
|
|
232
279
|
declare enum FieldAttributes {
|
|
233
280
|
_0 = 0,
|
|
234
281
|
_1 = 1,
|
|
@@ -254,7 +301,7 @@ interface FieldInfo {
|
|
|
254
301
|
readonly name?: string | undefined;
|
|
255
302
|
declaringType?: Type;
|
|
256
303
|
reflectedType?: Type;
|
|
257
|
-
module?:
|
|
304
|
+
module?: Module2;
|
|
258
305
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
259
306
|
readonly isCollectible?: boolean;
|
|
260
307
|
readonly metadataToken?: number;
|
|
@@ -288,46 +335,14 @@ declare enum GenericParameterAttributes {
|
|
|
288
335
|
_16 = 16,
|
|
289
336
|
_28 = 28
|
|
290
337
|
}
|
|
291
|
-
interface GetModuleResponse {
|
|
292
|
-
id?: number;
|
|
293
|
-
isAvailable?: boolean;
|
|
294
|
-
requiredMoistureLevel?: number | undefined;
|
|
295
|
-
criticalMoistureLevel?: number | undefined;
|
|
296
|
-
name?: string | undefined;
|
|
297
|
-
}
|
|
298
|
-
interface GetPlacesResponse {
|
|
299
|
-
id?: number;
|
|
300
|
-
name?: string | undefined;
|
|
301
|
-
}
|
|
302
|
-
interface GetPlantResponse {
|
|
303
|
-
id?: number;
|
|
304
|
-
placeId?: number;
|
|
305
|
-
moduleId?: number;
|
|
306
|
-
name?: string | undefined;
|
|
307
|
-
description?: string | undefined;
|
|
308
|
-
type?: PlantType;
|
|
309
|
-
}
|
|
310
338
|
interface ICustomAttributeProvider {
|
|
311
339
|
}
|
|
312
|
-
interface IHumidityMeasurement {
|
|
313
|
-
id?: number;
|
|
314
|
-
moduleId?: number;
|
|
315
|
-
humidity?: number;
|
|
316
|
-
measurementDate?: Date;
|
|
317
|
-
}
|
|
318
|
-
interface IntPtr {
|
|
319
|
-
}
|
|
320
|
-
declare enum LayoutKind {
|
|
321
|
-
_0 = 0,
|
|
322
|
-
_2 = 2,
|
|
323
|
-
_3 = 3
|
|
324
|
-
}
|
|
325
340
|
interface MemberInfo {
|
|
326
341
|
memberType?: MemberTypes;
|
|
327
342
|
readonly name?: string | undefined;
|
|
328
343
|
declaringType?: Type;
|
|
329
344
|
reflectedType?: Type;
|
|
330
|
-
module?:
|
|
345
|
+
module?: Module2;
|
|
331
346
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
332
347
|
readonly isCollectible?: boolean;
|
|
333
348
|
readonly metadataToken?: number;
|
|
@@ -372,7 +387,7 @@ interface MethodBase {
|
|
|
372
387
|
readonly name?: string | undefined;
|
|
373
388
|
declaringType?: Type;
|
|
374
389
|
reflectedType?: Type;
|
|
375
|
-
module?:
|
|
390
|
+
module?: Module2;
|
|
376
391
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
377
392
|
readonly isCollectible?: boolean;
|
|
378
393
|
readonly metadataToken?: number;
|
|
@@ -421,7 +436,7 @@ interface MethodInfo {
|
|
|
421
436
|
readonly name?: string | undefined;
|
|
422
437
|
declaringType?: Type;
|
|
423
438
|
reflectedType?: Type;
|
|
424
|
-
module?:
|
|
439
|
+
module?: Module2;
|
|
425
440
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
426
441
|
readonly isCollectible?: boolean;
|
|
427
442
|
readonly metadataToken?: number;
|
|
@@ -454,7 +469,7 @@ interface MethodInfo {
|
|
|
454
469
|
returnType?: Type;
|
|
455
470
|
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
|
456
471
|
}
|
|
457
|
-
interface
|
|
472
|
+
interface Module2 {
|
|
458
473
|
assembly?: Assembly;
|
|
459
474
|
readonly fullyQualifiedName?: string | undefined;
|
|
460
475
|
readonly name?: string | undefined;
|
|
@@ -465,9 +480,6 @@ interface Module {
|
|
|
465
480
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
466
481
|
readonly metadataToken?: number;
|
|
467
482
|
}
|
|
468
|
-
interface ModuleHandle {
|
|
469
|
-
readonly mdStreamVersion?: number;
|
|
470
|
-
}
|
|
471
483
|
declare enum ParameterAttributes {
|
|
472
484
|
_0 = 0,
|
|
473
485
|
_1 = 1,
|
|
@@ -498,11 +510,6 @@ interface ParameterInfo {
|
|
|
498
510
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
499
511
|
readonly metadataToken?: number;
|
|
500
512
|
}
|
|
501
|
-
declare enum PlantType {
|
|
502
|
-
_0 = 0,
|
|
503
|
-
_1 = 1,
|
|
504
|
-
_2 = 2
|
|
505
|
-
}
|
|
506
513
|
declare enum PropertyAttributes {
|
|
507
514
|
_0 = 0,
|
|
508
515
|
_512 = 512,
|
|
@@ -517,7 +524,7 @@ interface PropertyInfo {
|
|
|
517
524
|
readonly name?: string | undefined;
|
|
518
525
|
declaringType?: Type;
|
|
519
526
|
reflectedType?: Type;
|
|
520
|
-
module?:
|
|
527
|
+
module?: Module2;
|
|
521
528
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
522
529
|
readonly isCollectible?: boolean;
|
|
523
530
|
readonly metadataToken?: number;
|
|
@@ -530,25 +537,35 @@ interface PropertyInfo {
|
|
|
530
537
|
getMethod?: MethodInfo;
|
|
531
538
|
setMethod?: MethodInfo;
|
|
532
539
|
}
|
|
533
|
-
|
|
534
|
-
value?: IntPtr;
|
|
535
|
-
}
|
|
536
|
-
interface RuntimeMethodHandle {
|
|
537
|
-
value?: IntPtr;
|
|
538
|
-
}
|
|
539
|
-
interface RuntimeTypeHandle {
|
|
540
|
-
value?: IntPtr;
|
|
541
|
-
}
|
|
542
|
-
declare enum SecurityRuleSet {
|
|
540
|
+
declare enum TypeAttributes {
|
|
543
541
|
_0 = 0,
|
|
544
542
|
_1 = 1,
|
|
545
|
-
_2 = 2
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
543
|
+
_2 = 2,
|
|
544
|
+
_3 = 3,
|
|
545
|
+
_4 = 4,
|
|
546
|
+
_5 = 5,
|
|
547
|
+
_6 = 6,
|
|
548
|
+
_7 = 7,
|
|
549
|
+
_8 = 8,
|
|
550
|
+
_16 = 16,
|
|
551
|
+
_24 = 24,
|
|
552
|
+
_32 = 32,
|
|
553
|
+
_128 = 128,
|
|
554
|
+
_256 = 256,
|
|
555
|
+
_1024 = 1024,
|
|
556
|
+
_2048 = 2048,
|
|
557
|
+
_4096 = 4096,
|
|
558
|
+
_8192 = 8192,
|
|
559
|
+
_16384 = 16384,
|
|
560
|
+
_65536 = 65536,
|
|
561
|
+
_131072 = 131072,
|
|
562
|
+
_196608 = 196608,
|
|
563
|
+
_262144 = 262144,
|
|
564
|
+
_264192 = 264192,
|
|
565
|
+
_1048576 = 1048576,
|
|
566
|
+
_12582912 = 12582912
|
|
550
567
|
}
|
|
551
|
-
interface
|
|
568
|
+
interface TypeInfo {
|
|
552
569
|
readonly name?: string | undefined;
|
|
553
570
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
554
571
|
readonly isCollectible?: boolean;
|
|
@@ -559,7 +576,7 @@ interface Type {
|
|
|
559
576
|
readonly assemblyQualifiedName?: string | undefined;
|
|
560
577
|
readonly fullName?: string | undefined;
|
|
561
578
|
assembly?: Assembly;
|
|
562
|
-
module?:
|
|
579
|
+
module?: Module2;
|
|
563
580
|
readonly isNested?: boolean;
|
|
564
581
|
declaringType?: Type;
|
|
565
582
|
declaringMethod?: MethodBase;
|
|
@@ -622,36 +639,40 @@ interface Type {
|
|
|
622
639
|
readonly isSerializable?: boolean;
|
|
623
640
|
readonly containsGenericParameters?: boolean;
|
|
624
641
|
readonly isVisible?: boolean;
|
|
642
|
+
readonly genericTypeParameters?: Type[] | undefined;
|
|
643
|
+
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
644
|
+
readonly declaredEvents?: EventInfo[] | undefined;
|
|
645
|
+
readonly declaredFields?: FieldInfo[] | undefined;
|
|
646
|
+
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
647
|
+
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
648
|
+
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
649
|
+
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
650
|
+
readonly implementedInterfaces?: Type[] | undefined;
|
|
625
651
|
}
|
|
626
|
-
declare enum
|
|
652
|
+
declare enum LayoutKind {
|
|
627
653
|
_0 = 0,
|
|
628
|
-
_1 = 1,
|
|
629
654
|
_2 = 2,
|
|
630
|
-
_3 = 3
|
|
631
|
-
_4 = 4,
|
|
632
|
-
_5 = 5,
|
|
633
|
-
_6 = 6,
|
|
634
|
-
_7 = 7,
|
|
635
|
-
_8 = 8,
|
|
636
|
-
_16 = 16,
|
|
637
|
-
_24 = 24,
|
|
638
|
-
_32 = 32,
|
|
639
|
-
_128 = 128,
|
|
640
|
-
_256 = 256,
|
|
641
|
-
_1024 = 1024,
|
|
642
|
-
_2048 = 2048,
|
|
643
|
-
_4096 = 4096,
|
|
644
|
-
_8192 = 8192,
|
|
645
|
-
_16384 = 16384,
|
|
646
|
-
_65536 = 65536,
|
|
647
|
-
_131072 = 131072,
|
|
648
|
-
_196608 = 196608,
|
|
649
|
-
_262144 = 262144,
|
|
650
|
-
_264192 = 264192,
|
|
651
|
-
_1048576 = 1048576,
|
|
652
|
-
_12582912 = 12582912
|
|
655
|
+
_3 = 3
|
|
653
656
|
}
|
|
654
|
-
interface
|
|
657
|
+
interface StructLayoutAttribute {
|
|
658
|
+
readonly typeId?: any | undefined;
|
|
659
|
+
value?: LayoutKind;
|
|
660
|
+
}
|
|
661
|
+
interface RuntimeFieldHandle {
|
|
662
|
+
value?: IntPtr;
|
|
663
|
+
}
|
|
664
|
+
interface RuntimeMethodHandle {
|
|
665
|
+
value?: IntPtr;
|
|
666
|
+
}
|
|
667
|
+
interface RuntimeTypeHandle {
|
|
668
|
+
value?: IntPtr;
|
|
669
|
+
}
|
|
670
|
+
declare enum SecurityRuleSet {
|
|
671
|
+
_0 = 0,
|
|
672
|
+
_1 = 1,
|
|
673
|
+
_2 = 2
|
|
674
|
+
}
|
|
675
|
+
interface Type {
|
|
655
676
|
readonly name?: string | undefined;
|
|
656
677
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
657
678
|
readonly isCollectible?: boolean;
|
|
@@ -662,7 +683,7 @@ interface TypeInfo {
|
|
|
662
683
|
readonly assemblyQualifiedName?: string | undefined;
|
|
663
684
|
readonly fullName?: string | undefined;
|
|
664
685
|
assembly?: Assembly;
|
|
665
|
-
module?:
|
|
686
|
+
module?: Module2;
|
|
666
687
|
readonly isNested?: boolean;
|
|
667
688
|
declaringType?: Type;
|
|
668
689
|
declaringMethod?: MethodBase;
|
|
@@ -725,29 +746,6 @@ interface TypeInfo {
|
|
|
725
746
|
readonly isSerializable?: boolean;
|
|
726
747
|
readonly containsGenericParameters?: boolean;
|
|
727
748
|
readonly isVisible?: boolean;
|
|
728
|
-
readonly genericTypeParameters?: Type[] | undefined;
|
|
729
|
-
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
730
|
-
readonly declaredEvents?: EventInfo[] | undefined;
|
|
731
|
-
readonly declaredFields?: FieldInfo[] | undefined;
|
|
732
|
-
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
733
|
-
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
734
|
-
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
735
|
-
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
736
|
-
readonly implementedInterfaces?: Type[] | undefined;
|
|
737
|
-
}
|
|
738
|
-
interface UpdatePlaceCommand {
|
|
739
|
-
id?: number;
|
|
740
|
-
userId?: number | undefined;
|
|
741
|
-
name?: string | undefined;
|
|
742
|
-
}
|
|
743
|
-
interface UpdatePlantCommand {
|
|
744
|
-
id?: number;
|
|
745
|
-
userId?: number;
|
|
746
|
-
name?: string | undefined;
|
|
747
|
-
description?: string | undefined;
|
|
748
|
-
placeId?: number;
|
|
749
|
-
type?: PlantType;
|
|
750
|
-
moduleId?: number | undefined;
|
|
751
749
|
}
|
|
752
750
|
declare class ApiException extends Error {
|
|
753
751
|
message: string;
|
|
@@ -764,4 +762,4 @@ declare class ApiException extends Error {
|
|
|
764
762
|
static isApiException(obj: any): obj is ApiException;
|
|
765
763
|
}
|
|
766
764
|
|
|
767
|
-
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
|
|
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 HumidityMeasurement, type ICustomAttributeProvider, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type Module2, type ModuleHandle, ParameterAttributes, type ParameterInfo, type Place, type Plant, 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.js
CHANGED
|
@@ -1051,6 +1051,12 @@ var Client = /*#__PURE__*/ function() {
|
|
|
1051
1051
|
]);
|
|
1052
1052
|
return Client;
|
|
1053
1053
|
}();
|
|
1054
|
+
var PlantType = /* @__PURE__ */ function(PlantType2) {
|
|
1055
|
+
PlantType2[PlantType2["_0"] = 0] = "_0";
|
|
1056
|
+
PlantType2[PlantType2["_1"] = 1] = "_1";
|
|
1057
|
+
PlantType2[PlantType2["_2"] = 2] = "_2";
|
|
1058
|
+
return PlantType2;
|
|
1059
|
+
}(PlantType || {});
|
|
1054
1060
|
var CallingConventions = /* @__PURE__ */ function(CallingConventions2) {
|
|
1055
1061
|
CallingConventions2[CallingConventions2["_1"] = 1] = "_1";
|
|
1056
1062
|
CallingConventions2[CallingConventions2["_2"] = 2] = "_2";
|
|
@@ -1098,12 +1104,6 @@ var GenericParameterAttributes = /* @__PURE__ */ function(GenericParameterAttrib
|
|
|
1098
1104
|
GenericParameterAttributes2[GenericParameterAttributes2["_28"] = 28] = "_28";
|
|
1099
1105
|
return GenericParameterAttributes2;
|
|
1100
1106
|
}(GenericParameterAttributes || {});
|
|
1101
|
-
var LayoutKind = /* @__PURE__ */ function(LayoutKind2) {
|
|
1102
|
-
LayoutKind2[LayoutKind2["_0"] = 0] = "_0";
|
|
1103
|
-
LayoutKind2[LayoutKind2["_2"] = 2] = "_2";
|
|
1104
|
-
LayoutKind2[LayoutKind2["_3"] = 3] = "_3";
|
|
1105
|
-
return LayoutKind2;
|
|
1106
|
-
}(LayoutKind || {});
|
|
1107
1107
|
var MemberTypes = /* @__PURE__ */ function(MemberTypes2) {
|
|
1108
1108
|
MemberTypes2[MemberTypes2["_1"] = 1] = "_1";
|
|
1109
1109
|
MemberTypes2[MemberTypes2["_2"] = 2] = "_2";
|
|
@@ -1172,12 +1172,6 @@ var ParameterAttributes = /* @__PURE__ */ function(ParameterAttributes2) {
|
|
|
1172
1172
|
ParameterAttributes2[ParameterAttributes2["_61440"] = 61440] = "_61440";
|
|
1173
1173
|
return ParameterAttributes2;
|
|
1174
1174
|
}(ParameterAttributes || {});
|
|
1175
|
-
var PlantType = /* @__PURE__ */ function(PlantType2) {
|
|
1176
|
-
PlantType2[PlantType2["_0"] = 0] = "_0";
|
|
1177
|
-
PlantType2[PlantType2["_1"] = 1] = "_1";
|
|
1178
|
-
PlantType2[PlantType2["_2"] = 2] = "_2";
|
|
1179
|
-
return PlantType2;
|
|
1180
|
-
}(PlantType || {});
|
|
1181
1175
|
var PropertyAttributes = /* @__PURE__ */ function(PropertyAttributes2) {
|
|
1182
1176
|
PropertyAttributes2[PropertyAttributes2["_0"] = 0] = "_0";
|
|
1183
1177
|
PropertyAttributes2[PropertyAttributes2["_512"] = 512] = "_512";
|
|
@@ -1189,12 +1183,6 @@ var PropertyAttributes = /* @__PURE__ */ function(PropertyAttributes2) {
|
|
|
1189
1183
|
PropertyAttributes2[PropertyAttributes2["_62464"] = 62464] = "_62464";
|
|
1190
1184
|
return PropertyAttributes2;
|
|
1191
1185
|
}(PropertyAttributes || {});
|
|
1192
|
-
var SecurityRuleSet = /* @__PURE__ */ function(SecurityRuleSet2) {
|
|
1193
|
-
SecurityRuleSet2[SecurityRuleSet2["_0"] = 0] = "_0";
|
|
1194
|
-
SecurityRuleSet2[SecurityRuleSet2["_1"] = 1] = "_1";
|
|
1195
|
-
SecurityRuleSet2[SecurityRuleSet2["_2"] = 2] = "_2";
|
|
1196
|
-
return SecurityRuleSet2;
|
|
1197
|
-
}(SecurityRuleSet || {});
|
|
1198
1186
|
var TypeAttributes = /* @__PURE__ */ function(TypeAttributes2) {
|
|
1199
1187
|
TypeAttributes2[TypeAttributes2["_0"] = 0] = "_0";
|
|
1200
1188
|
TypeAttributes2[TypeAttributes2["_1"] = 1] = "_1";
|
|
@@ -1224,6 +1212,18 @@ var TypeAttributes = /* @__PURE__ */ function(TypeAttributes2) {
|
|
|
1224
1212
|
TypeAttributes2[TypeAttributes2["_12582912"] = 12582912] = "_12582912";
|
|
1225
1213
|
return TypeAttributes2;
|
|
1226
1214
|
}(TypeAttributes || {});
|
|
1215
|
+
var LayoutKind = /* @__PURE__ */ function(LayoutKind2) {
|
|
1216
|
+
LayoutKind2[LayoutKind2["_0"] = 0] = "_0";
|
|
1217
|
+
LayoutKind2[LayoutKind2["_2"] = 2] = "_2";
|
|
1218
|
+
LayoutKind2[LayoutKind2["_3"] = 3] = "_3";
|
|
1219
|
+
return LayoutKind2;
|
|
1220
|
+
}(LayoutKind || {});
|
|
1221
|
+
var SecurityRuleSet = /* @__PURE__ */ function(SecurityRuleSet2) {
|
|
1222
|
+
SecurityRuleSet2[SecurityRuleSet2["_0"] = 0] = "_0";
|
|
1223
|
+
SecurityRuleSet2[SecurityRuleSet2["_1"] = 1] = "_1";
|
|
1224
|
+
SecurityRuleSet2[SecurityRuleSet2["_2"] = 2] = "_2";
|
|
1225
|
+
return SecurityRuleSet2;
|
|
1226
|
+
}(SecurityRuleSet || {});
|
|
1227
1227
|
var ApiException = /*#__PURE__*/ function(Error1) {
|
|
1228
1228
|
"use strict";
|
|
1229
1229
|
_inherits(ApiException, Error1);
|