@arekstasko/plantcare-api-client 1.1.4 → 1.1.5
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 -159
- package/dist/index.d.ts +159 -159
- 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
|
@@ -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,86 @@ 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 IHumidityMeasurement {
|
|
141
|
+
id?: number;
|
|
142
|
+
moduleId?: number;
|
|
143
|
+
humidity?: number;
|
|
144
|
+
measurementDate?: Date;
|
|
145
|
+
}
|
|
146
|
+
interface Module {
|
|
147
|
+
id?: number;
|
|
148
|
+
isAvailable?: boolean;
|
|
149
|
+
requiredMoistureLevel?: number | undefined;
|
|
150
|
+
criticalMoistureLevel?: number | undefined;
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
interface Place {
|
|
154
|
+
id?: number;
|
|
155
|
+
name?: string | undefined;
|
|
156
|
+
}
|
|
157
|
+
interface Plant {
|
|
158
|
+
id?: number;
|
|
159
|
+
placeId?: number;
|
|
160
|
+
moduleId?: number;
|
|
161
|
+
name?: string | undefined;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
type?: PlantType;
|
|
164
|
+
}
|
|
165
|
+
interface Exception {
|
|
166
|
+
targetSite?: MethodBase;
|
|
167
|
+
readonly message?: string | undefined;
|
|
168
|
+
readonly data?: {
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
} | undefined;
|
|
171
|
+
innerException?: Exception;
|
|
172
|
+
helpLink?: string | undefined;
|
|
173
|
+
source?: string | undefined;
|
|
174
|
+
hResult?: number;
|
|
175
|
+
readonly stackTrace?: string | undefined;
|
|
176
|
+
}
|
|
177
|
+
interface IntPtr {
|
|
178
|
+
}
|
|
179
|
+
interface ModuleHandle {
|
|
180
|
+
readonly mdStreamVersion?: number;
|
|
181
|
+
}
|
|
102
182
|
interface Assembly {
|
|
103
183
|
readonly definedTypes?: TypeInfo[] | undefined;
|
|
104
184
|
readonly exportedTypes?: Type[] | undefined;
|
|
@@ -113,16 +193,12 @@ interface Assembly {
|
|
|
113
193
|
readonly isFullyTrusted?: boolean;
|
|
114
194
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
115
195
|
readonly escapedCodeBase?: string | undefined;
|
|
116
|
-
manifestModule?:
|
|
117
|
-
readonly modules?:
|
|
196
|
+
manifestModule?: Module2;
|
|
197
|
+
readonly modules?: Module2[] | undefined;
|
|
118
198
|
readonly globalAssemblyCache?: boolean;
|
|
119
199
|
readonly hostContext?: number;
|
|
120
200
|
securityRuleSet?: SecurityRuleSet;
|
|
121
201
|
}
|
|
122
|
-
interface AverageHumidity {
|
|
123
|
-
date?: string | undefined;
|
|
124
|
-
humidity?: number;
|
|
125
|
-
}
|
|
126
202
|
declare enum CallingConventions {
|
|
127
203
|
_1 = 1,
|
|
128
204
|
_2 = 2,
|
|
@@ -134,7 +210,7 @@ interface ConstructorInfo {
|
|
|
134
210
|
readonly name?: string | undefined;
|
|
135
211
|
declaringType?: Type;
|
|
136
212
|
reflectedType?: Type;
|
|
137
|
-
module?:
|
|
213
|
+
module?: Module2;
|
|
138
214
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
139
215
|
readonly isCollectible?: boolean;
|
|
140
216
|
readonly metadataToken?: number;
|
|
@@ -164,21 +240,6 @@ interface ConstructorInfo {
|
|
|
164
240
|
readonly isSecurityTransparent?: boolean;
|
|
165
241
|
memberType?: MemberTypes;
|
|
166
242
|
}
|
|
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
243
|
interface CustomAttributeData {
|
|
183
244
|
attributeType?: Type;
|
|
184
245
|
constructor?: ConstructorInfo;
|
|
@@ -204,7 +265,7 @@ interface EventInfo {
|
|
|
204
265
|
readonly name?: string | undefined;
|
|
205
266
|
declaringType?: Type;
|
|
206
267
|
reflectedType?: Type;
|
|
207
|
-
module?:
|
|
268
|
+
module?: Module2;
|
|
208
269
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
209
270
|
readonly isCollectible?: boolean;
|
|
210
271
|
readonly metadataToken?: number;
|
|
@@ -217,18 +278,6 @@ interface EventInfo {
|
|
|
217
278
|
readonly isMulticast?: boolean;
|
|
218
279
|
eventHandlerType?: Type;
|
|
219
280
|
}
|
|
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
281
|
declare enum FieldAttributes {
|
|
233
282
|
_0 = 0,
|
|
234
283
|
_1 = 1,
|
|
@@ -254,7 +303,7 @@ interface FieldInfo {
|
|
|
254
303
|
readonly name?: string | undefined;
|
|
255
304
|
declaringType?: Type;
|
|
256
305
|
reflectedType?: Type;
|
|
257
|
-
module?:
|
|
306
|
+
module?: Module2;
|
|
258
307
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
259
308
|
readonly isCollectible?: boolean;
|
|
260
309
|
readonly metadataToken?: number;
|
|
@@ -288,46 +337,14 @@ declare enum GenericParameterAttributes {
|
|
|
288
337
|
_16 = 16,
|
|
289
338
|
_28 = 28
|
|
290
339
|
}
|
|
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
340
|
interface ICustomAttributeProvider {
|
|
311
341
|
}
|
|
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
342
|
interface MemberInfo {
|
|
326
343
|
memberType?: MemberTypes;
|
|
327
344
|
readonly name?: string | undefined;
|
|
328
345
|
declaringType?: Type;
|
|
329
346
|
reflectedType?: Type;
|
|
330
|
-
module?:
|
|
347
|
+
module?: Module2;
|
|
331
348
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
332
349
|
readonly isCollectible?: boolean;
|
|
333
350
|
readonly metadataToken?: number;
|
|
@@ -372,7 +389,7 @@ interface MethodBase {
|
|
|
372
389
|
readonly name?: string | undefined;
|
|
373
390
|
declaringType?: Type;
|
|
374
391
|
reflectedType?: Type;
|
|
375
|
-
module?:
|
|
392
|
+
module?: Module2;
|
|
376
393
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
377
394
|
readonly isCollectible?: boolean;
|
|
378
395
|
readonly metadataToken?: number;
|
|
@@ -421,7 +438,7 @@ interface MethodInfo {
|
|
|
421
438
|
readonly name?: string | undefined;
|
|
422
439
|
declaringType?: Type;
|
|
423
440
|
reflectedType?: Type;
|
|
424
|
-
module?:
|
|
441
|
+
module?: Module2;
|
|
425
442
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
426
443
|
readonly isCollectible?: boolean;
|
|
427
444
|
readonly metadataToken?: number;
|
|
@@ -454,7 +471,7 @@ interface MethodInfo {
|
|
|
454
471
|
returnType?: Type;
|
|
455
472
|
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
|
456
473
|
}
|
|
457
|
-
interface
|
|
474
|
+
interface Module2 {
|
|
458
475
|
assembly?: Assembly;
|
|
459
476
|
readonly fullyQualifiedName?: string | undefined;
|
|
460
477
|
readonly name?: string | undefined;
|
|
@@ -465,9 +482,6 @@ interface Module {
|
|
|
465
482
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
466
483
|
readonly metadataToken?: number;
|
|
467
484
|
}
|
|
468
|
-
interface ModuleHandle {
|
|
469
|
-
readonly mdStreamVersion?: number;
|
|
470
|
-
}
|
|
471
485
|
declare enum ParameterAttributes {
|
|
472
486
|
_0 = 0,
|
|
473
487
|
_1 = 1,
|
|
@@ -498,11 +512,6 @@ interface ParameterInfo {
|
|
|
498
512
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
499
513
|
readonly metadataToken?: number;
|
|
500
514
|
}
|
|
501
|
-
declare enum PlantType {
|
|
502
|
-
_0 = 0,
|
|
503
|
-
_1 = 1,
|
|
504
|
-
_2 = 2
|
|
505
|
-
}
|
|
506
515
|
declare enum PropertyAttributes {
|
|
507
516
|
_0 = 0,
|
|
508
517
|
_512 = 512,
|
|
@@ -517,7 +526,7 @@ interface PropertyInfo {
|
|
|
517
526
|
readonly name?: string | undefined;
|
|
518
527
|
declaringType?: Type;
|
|
519
528
|
reflectedType?: Type;
|
|
520
|
-
module?:
|
|
529
|
+
module?: Module2;
|
|
521
530
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
522
531
|
readonly isCollectible?: boolean;
|
|
523
532
|
readonly metadataToken?: number;
|
|
@@ -530,25 +539,35 @@ interface PropertyInfo {
|
|
|
530
539
|
getMethod?: MethodInfo;
|
|
531
540
|
setMethod?: MethodInfo;
|
|
532
541
|
}
|
|
533
|
-
|
|
534
|
-
value?: IntPtr;
|
|
535
|
-
}
|
|
536
|
-
interface RuntimeMethodHandle {
|
|
537
|
-
value?: IntPtr;
|
|
538
|
-
}
|
|
539
|
-
interface RuntimeTypeHandle {
|
|
540
|
-
value?: IntPtr;
|
|
541
|
-
}
|
|
542
|
-
declare enum SecurityRuleSet {
|
|
542
|
+
declare enum TypeAttributes {
|
|
543
543
|
_0 = 0,
|
|
544
544
|
_1 = 1,
|
|
545
|
-
_2 = 2
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
545
|
+
_2 = 2,
|
|
546
|
+
_3 = 3,
|
|
547
|
+
_4 = 4,
|
|
548
|
+
_5 = 5,
|
|
549
|
+
_6 = 6,
|
|
550
|
+
_7 = 7,
|
|
551
|
+
_8 = 8,
|
|
552
|
+
_16 = 16,
|
|
553
|
+
_24 = 24,
|
|
554
|
+
_32 = 32,
|
|
555
|
+
_128 = 128,
|
|
556
|
+
_256 = 256,
|
|
557
|
+
_1024 = 1024,
|
|
558
|
+
_2048 = 2048,
|
|
559
|
+
_4096 = 4096,
|
|
560
|
+
_8192 = 8192,
|
|
561
|
+
_16384 = 16384,
|
|
562
|
+
_65536 = 65536,
|
|
563
|
+
_131072 = 131072,
|
|
564
|
+
_196608 = 196608,
|
|
565
|
+
_262144 = 262144,
|
|
566
|
+
_264192 = 264192,
|
|
567
|
+
_1048576 = 1048576,
|
|
568
|
+
_12582912 = 12582912
|
|
550
569
|
}
|
|
551
|
-
interface
|
|
570
|
+
interface TypeInfo {
|
|
552
571
|
readonly name?: string | undefined;
|
|
553
572
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
554
573
|
readonly isCollectible?: boolean;
|
|
@@ -559,7 +578,7 @@ interface Type {
|
|
|
559
578
|
readonly assemblyQualifiedName?: string | undefined;
|
|
560
579
|
readonly fullName?: string | undefined;
|
|
561
580
|
assembly?: Assembly;
|
|
562
|
-
module?:
|
|
581
|
+
module?: Module2;
|
|
563
582
|
readonly isNested?: boolean;
|
|
564
583
|
declaringType?: Type;
|
|
565
584
|
declaringMethod?: MethodBase;
|
|
@@ -622,36 +641,40 @@ interface Type {
|
|
|
622
641
|
readonly isSerializable?: boolean;
|
|
623
642
|
readonly containsGenericParameters?: boolean;
|
|
624
643
|
readonly isVisible?: boolean;
|
|
644
|
+
readonly genericTypeParameters?: Type[] | undefined;
|
|
645
|
+
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
646
|
+
readonly declaredEvents?: EventInfo[] | undefined;
|
|
647
|
+
readonly declaredFields?: FieldInfo[] | undefined;
|
|
648
|
+
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
649
|
+
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
650
|
+
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
651
|
+
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
652
|
+
readonly implementedInterfaces?: Type[] | undefined;
|
|
625
653
|
}
|
|
626
|
-
declare enum
|
|
654
|
+
declare enum LayoutKind {
|
|
627
655
|
_0 = 0,
|
|
628
|
-
_1 = 1,
|
|
629
656
|
_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
|
|
657
|
+
_3 = 3
|
|
653
658
|
}
|
|
654
|
-
interface
|
|
659
|
+
interface StructLayoutAttribute {
|
|
660
|
+
readonly typeId?: any | undefined;
|
|
661
|
+
value?: LayoutKind;
|
|
662
|
+
}
|
|
663
|
+
interface RuntimeFieldHandle {
|
|
664
|
+
value?: IntPtr;
|
|
665
|
+
}
|
|
666
|
+
interface RuntimeMethodHandle {
|
|
667
|
+
value?: IntPtr;
|
|
668
|
+
}
|
|
669
|
+
interface RuntimeTypeHandle {
|
|
670
|
+
value?: IntPtr;
|
|
671
|
+
}
|
|
672
|
+
declare enum SecurityRuleSet {
|
|
673
|
+
_0 = 0,
|
|
674
|
+
_1 = 1,
|
|
675
|
+
_2 = 2
|
|
676
|
+
}
|
|
677
|
+
interface Type {
|
|
655
678
|
readonly name?: string | undefined;
|
|
656
679
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
657
680
|
readonly isCollectible?: boolean;
|
|
@@ -662,7 +685,7 @@ interface TypeInfo {
|
|
|
662
685
|
readonly assemblyQualifiedName?: string | undefined;
|
|
663
686
|
readonly fullName?: string | undefined;
|
|
664
687
|
assembly?: Assembly;
|
|
665
|
-
module?:
|
|
688
|
+
module?: Module2;
|
|
666
689
|
readonly isNested?: boolean;
|
|
667
690
|
declaringType?: Type;
|
|
668
691
|
declaringMethod?: MethodBase;
|
|
@@ -725,29 +748,6 @@ interface TypeInfo {
|
|
|
725
748
|
readonly isSerializable?: boolean;
|
|
726
749
|
readonly containsGenericParameters?: boolean;
|
|
727
750
|
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
751
|
}
|
|
752
752
|
declare class ApiException extends Error {
|
|
753
753
|
message: string;
|
|
@@ -764,4 +764,4 @@ declare class ApiException extends Error {
|
|
|
764
764
|
static isApiException(obj: any): obj is ApiException;
|
|
765
765
|
}
|
|
766
766
|
|
|
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
|
|
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 ICustomAttributeProvider, type IHumidityMeasurement, 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
|
@@ -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,86 @@ 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 IHumidityMeasurement {
|
|
141
|
+
id?: number;
|
|
142
|
+
moduleId?: number;
|
|
143
|
+
humidity?: number;
|
|
144
|
+
measurementDate?: Date;
|
|
145
|
+
}
|
|
146
|
+
interface Module {
|
|
147
|
+
id?: number;
|
|
148
|
+
isAvailable?: boolean;
|
|
149
|
+
requiredMoistureLevel?: number | undefined;
|
|
150
|
+
criticalMoistureLevel?: number | undefined;
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
}
|
|
153
|
+
interface Place {
|
|
154
|
+
id?: number;
|
|
155
|
+
name?: string | undefined;
|
|
156
|
+
}
|
|
157
|
+
interface Plant {
|
|
158
|
+
id?: number;
|
|
159
|
+
placeId?: number;
|
|
160
|
+
moduleId?: number;
|
|
161
|
+
name?: string | undefined;
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
type?: PlantType;
|
|
164
|
+
}
|
|
165
|
+
interface Exception {
|
|
166
|
+
targetSite?: MethodBase;
|
|
167
|
+
readonly message?: string | undefined;
|
|
168
|
+
readonly data?: {
|
|
169
|
+
[key: string]: any;
|
|
170
|
+
} | undefined;
|
|
171
|
+
innerException?: Exception;
|
|
172
|
+
helpLink?: string | undefined;
|
|
173
|
+
source?: string | undefined;
|
|
174
|
+
hResult?: number;
|
|
175
|
+
readonly stackTrace?: string | undefined;
|
|
176
|
+
}
|
|
177
|
+
interface IntPtr {
|
|
178
|
+
}
|
|
179
|
+
interface ModuleHandle {
|
|
180
|
+
readonly mdStreamVersion?: number;
|
|
181
|
+
}
|
|
102
182
|
interface Assembly {
|
|
103
183
|
readonly definedTypes?: TypeInfo[] | undefined;
|
|
104
184
|
readonly exportedTypes?: Type[] | undefined;
|
|
@@ -113,16 +193,12 @@ interface Assembly {
|
|
|
113
193
|
readonly isFullyTrusted?: boolean;
|
|
114
194
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
115
195
|
readonly escapedCodeBase?: string | undefined;
|
|
116
|
-
manifestModule?:
|
|
117
|
-
readonly modules?:
|
|
196
|
+
manifestModule?: Module2;
|
|
197
|
+
readonly modules?: Module2[] | undefined;
|
|
118
198
|
readonly globalAssemblyCache?: boolean;
|
|
119
199
|
readonly hostContext?: number;
|
|
120
200
|
securityRuleSet?: SecurityRuleSet;
|
|
121
201
|
}
|
|
122
|
-
interface AverageHumidity {
|
|
123
|
-
date?: string | undefined;
|
|
124
|
-
humidity?: number;
|
|
125
|
-
}
|
|
126
202
|
declare enum CallingConventions {
|
|
127
203
|
_1 = 1,
|
|
128
204
|
_2 = 2,
|
|
@@ -134,7 +210,7 @@ interface ConstructorInfo {
|
|
|
134
210
|
readonly name?: string | undefined;
|
|
135
211
|
declaringType?: Type;
|
|
136
212
|
reflectedType?: Type;
|
|
137
|
-
module?:
|
|
213
|
+
module?: Module2;
|
|
138
214
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
139
215
|
readonly isCollectible?: boolean;
|
|
140
216
|
readonly metadataToken?: number;
|
|
@@ -164,21 +240,6 @@ interface ConstructorInfo {
|
|
|
164
240
|
readonly isSecurityTransparent?: boolean;
|
|
165
241
|
memberType?: MemberTypes;
|
|
166
242
|
}
|
|
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
243
|
interface CustomAttributeData {
|
|
183
244
|
attributeType?: Type;
|
|
184
245
|
constructor?: ConstructorInfo;
|
|
@@ -204,7 +265,7 @@ interface EventInfo {
|
|
|
204
265
|
readonly name?: string | undefined;
|
|
205
266
|
declaringType?: Type;
|
|
206
267
|
reflectedType?: Type;
|
|
207
|
-
module?:
|
|
268
|
+
module?: Module2;
|
|
208
269
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
209
270
|
readonly isCollectible?: boolean;
|
|
210
271
|
readonly metadataToken?: number;
|
|
@@ -217,18 +278,6 @@ interface EventInfo {
|
|
|
217
278
|
readonly isMulticast?: boolean;
|
|
218
279
|
eventHandlerType?: Type;
|
|
219
280
|
}
|
|
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
281
|
declare enum FieldAttributes {
|
|
233
282
|
_0 = 0,
|
|
234
283
|
_1 = 1,
|
|
@@ -254,7 +303,7 @@ interface FieldInfo {
|
|
|
254
303
|
readonly name?: string | undefined;
|
|
255
304
|
declaringType?: Type;
|
|
256
305
|
reflectedType?: Type;
|
|
257
|
-
module?:
|
|
306
|
+
module?: Module2;
|
|
258
307
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
259
308
|
readonly isCollectible?: boolean;
|
|
260
309
|
readonly metadataToken?: number;
|
|
@@ -288,46 +337,14 @@ declare enum GenericParameterAttributes {
|
|
|
288
337
|
_16 = 16,
|
|
289
338
|
_28 = 28
|
|
290
339
|
}
|
|
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
340
|
interface ICustomAttributeProvider {
|
|
311
341
|
}
|
|
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
342
|
interface MemberInfo {
|
|
326
343
|
memberType?: MemberTypes;
|
|
327
344
|
readonly name?: string | undefined;
|
|
328
345
|
declaringType?: Type;
|
|
329
346
|
reflectedType?: Type;
|
|
330
|
-
module?:
|
|
347
|
+
module?: Module2;
|
|
331
348
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
332
349
|
readonly isCollectible?: boolean;
|
|
333
350
|
readonly metadataToken?: number;
|
|
@@ -372,7 +389,7 @@ interface MethodBase {
|
|
|
372
389
|
readonly name?: string | undefined;
|
|
373
390
|
declaringType?: Type;
|
|
374
391
|
reflectedType?: Type;
|
|
375
|
-
module?:
|
|
392
|
+
module?: Module2;
|
|
376
393
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
377
394
|
readonly isCollectible?: boolean;
|
|
378
395
|
readonly metadataToken?: number;
|
|
@@ -421,7 +438,7 @@ interface MethodInfo {
|
|
|
421
438
|
readonly name?: string | undefined;
|
|
422
439
|
declaringType?: Type;
|
|
423
440
|
reflectedType?: Type;
|
|
424
|
-
module?:
|
|
441
|
+
module?: Module2;
|
|
425
442
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
426
443
|
readonly isCollectible?: boolean;
|
|
427
444
|
readonly metadataToken?: number;
|
|
@@ -454,7 +471,7 @@ interface MethodInfo {
|
|
|
454
471
|
returnType?: Type;
|
|
455
472
|
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
|
456
473
|
}
|
|
457
|
-
interface
|
|
474
|
+
interface Module2 {
|
|
458
475
|
assembly?: Assembly;
|
|
459
476
|
readonly fullyQualifiedName?: string | undefined;
|
|
460
477
|
readonly name?: string | undefined;
|
|
@@ -465,9 +482,6 @@ interface Module {
|
|
|
465
482
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
466
483
|
readonly metadataToken?: number;
|
|
467
484
|
}
|
|
468
|
-
interface ModuleHandle {
|
|
469
|
-
readonly mdStreamVersion?: number;
|
|
470
|
-
}
|
|
471
485
|
declare enum ParameterAttributes {
|
|
472
486
|
_0 = 0,
|
|
473
487
|
_1 = 1,
|
|
@@ -498,11 +512,6 @@ interface ParameterInfo {
|
|
|
498
512
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
499
513
|
readonly metadataToken?: number;
|
|
500
514
|
}
|
|
501
|
-
declare enum PlantType {
|
|
502
|
-
_0 = 0,
|
|
503
|
-
_1 = 1,
|
|
504
|
-
_2 = 2
|
|
505
|
-
}
|
|
506
515
|
declare enum PropertyAttributes {
|
|
507
516
|
_0 = 0,
|
|
508
517
|
_512 = 512,
|
|
@@ -517,7 +526,7 @@ interface PropertyInfo {
|
|
|
517
526
|
readonly name?: string | undefined;
|
|
518
527
|
declaringType?: Type;
|
|
519
528
|
reflectedType?: Type;
|
|
520
|
-
module?:
|
|
529
|
+
module?: Module2;
|
|
521
530
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
522
531
|
readonly isCollectible?: boolean;
|
|
523
532
|
readonly metadataToken?: number;
|
|
@@ -530,25 +539,35 @@ interface PropertyInfo {
|
|
|
530
539
|
getMethod?: MethodInfo;
|
|
531
540
|
setMethod?: MethodInfo;
|
|
532
541
|
}
|
|
533
|
-
|
|
534
|
-
value?: IntPtr;
|
|
535
|
-
}
|
|
536
|
-
interface RuntimeMethodHandle {
|
|
537
|
-
value?: IntPtr;
|
|
538
|
-
}
|
|
539
|
-
interface RuntimeTypeHandle {
|
|
540
|
-
value?: IntPtr;
|
|
541
|
-
}
|
|
542
|
-
declare enum SecurityRuleSet {
|
|
542
|
+
declare enum TypeAttributes {
|
|
543
543
|
_0 = 0,
|
|
544
544
|
_1 = 1,
|
|
545
|
-
_2 = 2
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
545
|
+
_2 = 2,
|
|
546
|
+
_3 = 3,
|
|
547
|
+
_4 = 4,
|
|
548
|
+
_5 = 5,
|
|
549
|
+
_6 = 6,
|
|
550
|
+
_7 = 7,
|
|
551
|
+
_8 = 8,
|
|
552
|
+
_16 = 16,
|
|
553
|
+
_24 = 24,
|
|
554
|
+
_32 = 32,
|
|
555
|
+
_128 = 128,
|
|
556
|
+
_256 = 256,
|
|
557
|
+
_1024 = 1024,
|
|
558
|
+
_2048 = 2048,
|
|
559
|
+
_4096 = 4096,
|
|
560
|
+
_8192 = 8192,
|
|
561
|
+
_16384 = 16384,
|
|
562
|
+
_65536 = 65536,
|
|
563
|
+
_131072 = 131072,
|
|
564
|
+
_196608 = 196608,
|
|
565
|
+
_262144 = 262144,
|
|
566
|
+
_264192 = 264192,
|
|
567
|
+
_1048576 = 1048576,
|
|
568
|
+
_12582912 = 12582912
|
|
550
569
|
}
|
|
551
|
-
interface
|
|
570
|
+
interface TypeInfo {
|
|
552
571
|
readonly name?: string | undefined;
|
|
553
572
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
554
573
|
readonly isCollectible?: boolean;
|
|
@@ -559,7 +578,7 @@ interface Type {
|
|
|
559
578
|
readonly assemblyQualifiedName?: string | undefined;
|
|
560
579
|
readonly fullName?: string | undefined;
|
|
561
580
|
assembly?: Assembly;
|
|
562
|
-
module?:
|
|
581
|
+
module?: Module2;
|
|
563
582
|
readonly isNested?: boolean;
|
|
564
583
|
declaringType?: Type;
|
|
565
584
|
declaringMethod?: MethodBase;
|
|
@@ -622,36 +641,40 @@ interface Type {
|
|
|
622
641
|
readonly isSerializable?: boolean;
|
|
623
642
|
readonly containsGenericParameters?: boolean;
|
|
624
643
|
readonly isVisible?: boolean;
|
|
644
|
+
readonly genericTypeParameters?: Type[] | undefined;
|
|
645
|
+
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
646
|
+
readonly declaredEvents?: EventInfo[] | undefined;
|
|
647
|
+
readonly declaredFields?: FieldInfo[] | undefined;
|
|
648
|
+
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
649
|
+
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
650
|
+
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
651
|
+
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
652
|
+
readonly implementedInterfaces?: Type[] | undefined;
|
|
625
653
|
}
|
|
626
|
-
declare enum
|
|
654
|
+
declare enum LayoutKind {
|
|
627
655
|
_0 = 0,
|
|
628
|
-
_1 = 1,
|
|
629
656
|
_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
|
|
657
|
+
_3 = 3
|
|
653
658
|
}
|
|
654
|
-
interface
|
|
659
|
+
interface StructLayoutAttribute {
|
|
660
|
+
readonly typeId?: any | undefined;
|
|
661
|
+
value?: LayoutKind;
|
|
662
|
+
}
|
|
663
|
+
interface RuntimeFieldHandle {
|
|
664
|
+
value?: IntPtr;
|
|
665
|
+
}
|
|
666
|
+
interface RuntimeMethodHandle {
|
|
667
|
+
value?: IntPtr;
|
|
668
|
+
}
|
|
669
|
+
interface RuntimeTypeHandle {
|
|
670
|
+
value?: IntPtr;
|
|
671
|
+
}
|
|
672
|
+
declare enum SecurityRuleSet {
|
|
673
|
+
_0 = 0,
|
|
674
|
+
_1 = 1,
|
|
675
|
+
_2 = 2
|
|
676
|
+
}
|
|
677
|
+
interface Type {
|
|
655
678
|
readonly name?: string | undefined;
|
|
656
679
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
657
680
|
readonly isCollectible?: boolean;
|
|
@@ -662,7 +685,7 @@ interface TypeInfo {
|
|
|
662
685
|
readonly assemblyQualifiedName?: string | undefined;
|
|
663
686
|
readonly fullName?: string | undefined;
|
|
664
687
|
assembly?: Assembly;
|
|
665
|
-
module?:
|
|
688
|
+
module?: Module2;
|
|
666
689
|
readonly isNested?: boolean;
|
|
667
690
|
declaringType?: Type;
|
|
668
691
|
declaringMethod?: MethodBase;
|
|
@@ -725,29 +748,6 @@ interface TypeInfo {
|
|
|
725
748
|
readonly isSerializable?: boolean;
|
|
726
749
|
readonly containsGenericParameters?: boolean;
|
|
727
750
|
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
751
|
}
|
|
752
752
|
declare class ApiException extends Error {
|
|
753
753
|
message: string;
|
|
@@ -764,4 +764,4 @@ declare class ApiException extends Error {
|
|
|
764
764
|
static isApiException(obj: any): obj is ApiException;
|
|
765
765
|
}
|
|
766
766
|
|
|
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
|
|
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 ICustomAttributeProvider, type IHumidityMeasurement, 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);
|