@arekstasko/plantcare-api-client 1.1.3 → 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 -158
- package/dist/index.d.ts +159 -158
- 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,45 +337,14 @@ declare enum GenericParameterAttributes {
|
|
|
288
337
|
_16 = 16,
|
|
289
338
|
_28 = 28
|
|
290
339
|
}
|
|
291
|
-
interface GetModuleResponse {
|
|
292
|
-
id?: number;
|
|
293
|
-
requiredMoistureLevel?: number | undefined;
|
|
294
|
-
criticalMoistureLevel?: number | undefined;
|
|
295
|
-
name?: string | undefined;
|
|
296
|
-
}
|
|
297
|
-
interface GetPlacesResponse {
|
|
298
|
-
id?: number;
|
|
299
|
-
name?: string | undefined;
|
|
300
|
-
}
|
|
301
|
-
interface GetPlantResponse {
|
|
302
|
-
id?: number;
|
|
303
|
-
placeId?: number;
|
|
304
|
-
moduleId?: number;
|
|
305
|
-
name?: string | undefined;
|
|
306
|
-
description?: string | undefined;
|
|
307
|
-
type?: PlantType;
|
|
308
|
-
}
|
|
309
340
|
interface ICustomAttributeProvider {
|
|
310
341
|
}
|
|
311
|
-
interface IHumidityMeasurement {
|
|
312
|
-
id?: number;
|
|
313
|
-
moduleId?: number;
|
|
314
|
-
humidity?: number;
|
|
315
|
-
measurementDate?: Date;
|
|
316
|
-
}
|
|
317
|
-
interface IntPtr {
|
|
318
|
-
}
|
|
319
|
-
declare enum LayoutKind {
|
|
320
|
-
_0 = 0,
|
|
321
|
-
_2 = 2,
|
|
322
|
-
_3 = 3
|
|
323
|
-
}
|
|
324
342
|
interface MemberInfo {
|
|
325
343
|
memberType?: MemberTypes;
|
|
326
344
|
readonly name?: string | undefined;
|
|
327
345
|
declaringType?: Type;
|
|
328
346
|
reflectedType?: Type;
|
|
329
|
-
module?:
|
|
347
|
+
module?: Module2;
|
|
330
348
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
331
349
|
readonly isCollectible?: boolean;
|
|
332
350
|
readonly metadataToken?: number;
|
|
@@ -371,7 +389,7 @@ interface MethodBase {
|
|
|
371
389
|
readonly name?: string | undefined;
|
|
372
390
|
declaringType?: Type;
|
|
373
391
|
reflectedType?: Type;
|
|
374
|
-
module?:
|
|
392
|
+
module?: Module2;
|
|
375
393
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
376
394
|
readonly isCollectible?: boolean;
|
|
377
395
|
readonly metadataToken?: number;
|
|
@@ -420,7 +438,7 @@ interface MethodInfo {
|
|
|
420
438
|
readonly name?: string | undefined;
|
|
421
439
|
declaringType?: Type;
|
|
422
440
|
reflectedType?: Type;
|
|
423
|
-
module?:
|
|
441
|
+
module?: Module2;
|
|
424
442
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
425
443
|
readonly isCollectible?: boolean;
|
|
426
444
|
readonly metadataToken?: number;
|
|
@@ -453,7 +471,7 @@ interface MethodInfo {
|
|
|
453
471
|
returnType?: Type;
|
|
454
472
|
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
|
455
473
|
}
|
|
456
|
-
interface
|
|
474
|
+
interface Module2 {
|
|
457
475
|
assembly?: Assembly;
|
|
458
476
|
readonly fullyQualifiedName?: string | undefined;
|
|
459
477
|
readonly name?: string | undefined;
|
|
@@ -464,9 +482,6 @@ interface Module {
|
|
|
464
482
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
465
483
|
readonly metadataToken?: number;
|
|
466
484
|
}
|
|
467
|
-
interface ModuleHandle {
|
|
468
|
-
readonly mdStreamVersion?: number;
|
|
469
|
-
}
|
|
470
485
|
declare enum ParameterAttributes {
|
|
471
486
|
_0 = 0,
|
|
472
487
|
_1 = 1,
|
|
@@ -497,11 +512,6 @@ interface ParameterInfo {
|
|
|
497
512
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
498
513
|
readonly metadataToken?: number;
|
|
499
514
|
}
|
|
500
|
-
declare enum PlantType {
|
|
501
|
-
_0 = 0,
|
|
502
|
-
_1 = 1,
|
|
503
|
-
_2 = 2
|
|
504
|
-
}
|
|
505
515
|
declare enum PropertyAttributes {
|
|
506
516
|
_0 = 0,
|
|
507
517
|
_512 = 512,
|
|
@@ -516,7 +526,7 @@ interface PropertyInfo {
|
|
|
516
526
|
readonly name?: string | undefined;
|
|
517
527
|
declaringType?: Type;
|
|
518
528
|
reflectedType?: Type;
|
|
519
|
-
module?:
|
|
529
|
+
module?: Module2;
|
|
520
530
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
521
531
|
readonly isCollectible?: boolean;
|
|
522
532
|
readonly metadataToken?: number;
|
|
@@ -529,25 +539,35 @@ interface PropertyInfo {
|
|
|
529
539
|
getMethod?: MethodInfo;
|
|
530
540
|
setMethod?: MethodInfo;
|
|
531
541
|
}
|
|
532
|
-
|
|
533
|
-
value?: IntPtr;
|
|
534
|
-
}
|
|
535
|
-
interface RuntimeMethodHandle {
|
|
536
|
-
value?: IntPtr;
|
|
537
|
-
}
|
|
538
|
-
interface RuntimeTypeHandle {
|
|
539
|
-
value?: IntPtr;
|
|
540
|
-
}
|
|
541
|
-
declare enum SecurityRuleSet {
|
|
542
|
+
declare enum TypeAttributes {
|
|
542
543
|
_0 = 0,
|
|
543
544
|
_1 = 1,
|
|
544
|
-
_2 = 2
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
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
|
|
549
569
|
}
|
|
550
|
-
interface
|
|
570
|
+
interface TypeInfo {
|
|
551
571
|
readonly name?: string | undefined;
|
|
552
572
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
553
573
|
readonly isCollectible?: boolean;
|
|
@@ -558,7 +578,7 @@ interface Type {
|
|
|
558
578
|
readonly assemblyQualifiedName?: string | undefined;
|
|
559
579
|
readonly fullName?: string | undefined;
|
|
560
580
|
assembly?: Assembly;
|
|
561
|
-
module?:
|
|
581
|
+
module?: Module2;
|
|
562
582
|
readonly isNested?: boolean;
|
|
563
583
|
declaringType?: Type;
|
|
564
584
|
declaringMethod?: MethodBase;
|
|
@@ -621,36 +641,40 @@ interface Type {
|
|
|
621
641
|
readonly isSerializable?: boolean;
|
|
622
642
|
readonly containsGenericParameters?: boolean;
|
|
623
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;
|
|
624
653
|
}
|
|
625
|
-
declare enum
|
|
654
|
+
declare enum LayoutKind {
|
|
626
655
|
_0 = 0,
|
|
627
|
-
_1 = 1,
|
|
628
656
|
_2 = 2,
|
|
629
|
-
_3 = 3
|
|
630
|
-
_4 = 4,
|
|
631
|
-
_5 = 5,
|
|
632
|
-
_6 = 6,
|
|
633
|
-
_7 = 7,
|
|
634
|
-
_8 = 8,
|
|
635
|
-
_16 = 16,
|
|
636
|
-
_24 = 24,
|
|
637
|
-
_32 = 32,
|
|
638
|
-
_128 = 128,
|
|
639
|
-
_256 = 256,
|
|
640
|
-
_1024 = 1024,
|
|
641
|
-
_2048 = 2048,
|
|
642
|
-
_4096 = 4096,
|
|
643
|
-
_8192 = 8192,
|
|
644
|
-
_16384 = 16384,
|
|
645
|
-
_65536 = 65536,
|
|
646
|
-
_131072 = 131072,
|
|
647
|
-
_196608 = 196608,
|
|
648
|
-
_262144 = 262144,
|
|
649
|
-
_264192 = 264192,
|
|
650
|
-
_1048576 = 1048576,
|
|
651
|
-
_12582912 = 12582912
|
|
657
|
+
_3 = 3
|
|
652
658
|
}
|
|
653
|
-
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 {
|
|
654
678
|
readonly name?: string | undefined;
|
|
655
679
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
656
680
|
readonly isCollectible?: boolean;
|
|
@@ -661,7 +685,7 @@ interface TypeInfo {
|
|
|
661
685
|
readonly assemblyQualifiedName?: string | undefined;
|
|
662
686
|
readonly fullName?: string | undefined;
|
|
663
687
|
assembly?: Assembly;
|
|
664
|
-
module?:
|
|
688
|
+
module?: Module2;
|
|
665
689
|
readonly isNested?: boolean;
|
|
666
690
|
declaringType?: Type;
|
|
667
691
|
declaringMethod?: MethodBase;
|
|
@@ -724,29 +748,6 @@ interface TypeInfo {
|
|
|
724
748
|
readonly isSerializable?: boolean;
|
|
725
749
|
readonly containsGenericParameters?: boolean;
|
|
726
750
|
readonly isVisible?: boolean;
|
|
727
|
-
readonly genericTypeParameters?: Type[] | undefined;
|
|
728
|
-
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
729
|
-
readonly declaredEvents?: EventInfo[] | undefined;
|
|
730
|
-
readonly declaredFields?: FieldInfo[] | undefined;
|
|
731
|
-
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
732
|
-
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
733
|
-
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
734
|
-
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
735
|
-
readonly implementedInterfaces?: Type[] | undefined;
|
|
736
|
-
}
|
|
737
|
-
interface UpdatePlaceCommand {
|
|
738
|
-
id?: number;
|
|
739
|
-
userId?: number | undefined;
|
|
740
|
-
name?: string | undefined;
|
|
741
|
-
}
|
|
742
|
-
interface UpdatePlantCommand {
|
|
743
|
-
id?: number;
|
|
744
|
-
userId?: number;
|
|
745
|
-
name?: string | undefined;
|
|
746
|
-
description?: string | undefined;
|
|
747
|
-
placeId?: number;
|
|
748
|
-
type?: PlantType;
|
|
749
|
-
moduleId?: number | undefined;
|
|
750
751
|
}
|
|
751
752
|
declare class ApiException extends Error {
|
|
752
753
|
message: string;
|
|
@@ -763,4 +764,4 @@ declare class ApiException extends Error {
|
|
|
763
764
|
static isApiException(obj: any): obj is ApiException;
|
|
764
765
|
}
|
|
765
766
|
|
|
766
|
-
export { type AddHumidityMeasurementCommand, ApiException, type Assembly, type AverageHumidity, CallingConventions, Client, type ConstructorInfo, type CreateModuleRequest, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type
|
|
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,45 +337,14 @@ declare enum GenericParameterAttributes {
|
|
|
288
337
|
_16 = 16,
|
|
289
338
|
_28 = 28
|
|
290
339
|
}
|
|
291
|
-
interface GetModuleResponse {
|
|
292
|
-
id?: number;
|
|
293
|
-
requiredMoistureLevel?: number | undefined;
|
|
294
|
-
criticalMoistureLevel?: number | undefined;
|
|
295
|
-
name?: string | undefined;
|
|
296
|
-
}
|
|
297
|
-
interface GetPlacesResponse {
|
|
298
|
-
id?: number;
|
|
299
|
-
name?: string | undefined;
|
|
300
|
-
}
|
|
301
|
-
interface GetPlantResponse {
|
|
302
|
-
id?: number;
|
|
303
|
-
placeId?: number;
|
|
304
|
-
moduleId?: number;
|
|
305
|
-
name?: string | undefined;
|
|
306
|
-
description?: string | undefined;
|
|
307
|
-
type?: PlantType;
|
|
308
|
-
}
|
|
309
340
|
interface ICustomAttributeProvider {
|
|
310
341
|
}
|
|
311
|
-
interface IHumidityMeasurement {
|
|
312
|
-
id?: number;
|
|
313
|
-
moduleId?: number;
|
|
314
|
-
humidity?: number;
|
|
315
|
-
measurementDate?: Date;
|
|
316
|
-
}
|
|
317
|
-
interface IntPtr {
|
|
318
|
-
}
|
|
319
|
-
declare enum LayoutKind {
|
|
320
|
-
_0 = 0,
|
|
321
|
-
_2 = 2,
|
|
322
|
-
_3 = 3
|
|
323
|
-
}
|
|
324
342
|
interface MemberInfo {
|
|
325
343
|
memberType?: MemberTypes;
|
|
326
344
|
readonly name?: string | undefined;
|
|
327
345
|
declaringType?: Type;
|
|
328
346
|
reflectedType?: Type;
|
|
329
|
-
module?:
|
|
347
|
+
module?: Module2;
|
|
330
348
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
331
349
|
readonly isCollectible?: boolean;
|
|
332
350
|
readonly metadataToken?: number;
|
|
@@ -371,7 +389,7 @@ interface MethodBase {
|
|
|
371
389
|
readonly name?: string | undefined;
|
|
372
390
|
declaringType?: Type;
|
|
373
391
|
reflectedType?: Type;
|
|
374
|
-
module?:
|
|
392
|
+
module?: Module2;
|
|
375
393
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
376
394
|
readonly isCollectible?: boolean;
|
|
377
395
|
readonly metadataToken?: number;
|
|
@@ -420,7 +438,7 @@ interface MethodInfo {
|
|
|
420
438
|
readonly name?: string | undefined;
|
|
421
439
|
declaringType?: Type;
|
|
422
440
|
reflectedType?: Type;
|
|
423
|
-
module?:
|
|
441
|
+
module?: Module2;
|
|
424
442
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
425
443
|
readonly isCollectible?: boolean;
|
|
426
444
|
readonly metadataToken?: number;
|
|
@@ -453,7 +471,7 @@ interface MethodInfo {
|
|
|
453
471
|
returnType?: Type;
|
|
454
472
|
returnTypeCustomAttributes?: ICustomAttributeProvider;
|
|
455
473
|
}
|
|
456
|
-
interface
|
|
474
|
+
interface Module2 {
|
|
457
475
|
assembly?: Assembly;
|
|
458
476
|
readonly fullyQualifiedName?: string | undefined;
|
|
459
477
|
readonly name?: string | undefined;
|
|
@@ -464,9 +482,6 @@ interface Module {
|
|
|
464
482
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
465
483
|
readonly metadataToken?: number;
|
|
466
484
|
}
|
|
467
|
-
interface ModuleHandle {
|
|
468
|
-
readonly mdStreamVersion?: number;
|
|
469
|
-
}
|
|
470
485
|
declare enum ParameterAttributes {
|
|
471
486
|
_0 = 0,
|
|
472
487
|
_1 = 1,
|
|
@@ -497,11 +512,6 @@ interface ParameterInfo {
|
|
|
497
512
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
498
513
|
readonly metadataToken?: number;
|
|
499
514
|
}
|
|
500
|
-
declare enum PlantType {
|
|
501
|
-
_0 = 0,
|
|
502
|
-
_1 = 1,
|
|
503
|
-
_2 = 2
|
|
504
|
-
}
|
|
505
515
|
declare enum PropertyAttributes {
|
|
506
516
|
_0 = 0,
|
|
507
517
|
_512 = 512,
|
|
@@ -516,7 +526,7 @@ interface PropertyInfo {
|
|
|
516
526
|
readonly name?: string | undefined;
|
|
517
527
|
declaringType?: Type;
|
|
518
528
|
reflectedType?: Type;
|
|
519
|
-
module?:
|
|
529
|
+
module?: Module2;
|
|
520
530
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
521
531
|
readonly isCollectible?: boolean;
|
|
522
532
|
readonly metadataToken?: number;
|
|
@@ -529,25 +539,35 @@ interface PropertyInfo {
|
|
|
529
539
|
getMethod?: MethodInfo;
|
|
530
540
|
setMethod?: MethodInfo;
|
|
531
541
|
}
|
|
532
|
-
|
|
533
|
-
value?: IntPtr;
|
|
534
|
-
}
|
|
535
|
-
interface RuntimeMethodHandle {
|
|
536
|
-
value?: IntPtr;
|
|
537
|
-
}
|
|
538
|
-
interface RuntimeTypeHandle {
|
|
539
|
-
value?: IntPtr;
|
|
540
|
-
}
|
|
541
|
-
declare enum SecurityRuleSet {
|
|
542
|
+
declare enum TypeAttributes {
|
|
542
543
|
_0 = 0,
|
|
543
544
|
_1 = 1,
|
|
544
|
-
_2 = 2
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
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
|
|
549
569
|
}
|
|
550
|
-
interface
|
|
570
|
+
interface TypeInfo {
|
|
551
571
|
readonly name?: string | undefined;
|
|
552
572
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
553
573
|
readonly isCollectible?: boolean;
|
|
@@ -558,7 +578,7 @@ interface Type {
|
|
|
558
578
|
readonly assemblyQualifiedName?: string | undefined;
|
|
559
579
|
readonly fullName?: string | undefined;
|
|
560
580
|
assembly?: Assembly;
|
|
561
|
-
module?:
|
|
581
|
+
module?: Module2;
|
|
562
582
|
readonly isNested?: boolean;
|
|
563
583
|
declaringType?: Type;
|
|
564
584
|
declaringMethod?: MethodBase;
|
|
@@ -621,36 +641,40 @@ interface Type {
|
|
|
621
641
|
readonly isSerializable?: boolean;
|
|
622
642
|
readonly containsGenericParameters?: boolean;
|
|
623
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;
|
|
624
653
|
}
|
|
625
|
-
declare enum
|
|
654
|
+
declare enum LayoutKind {
|
|
626
655
|
_0 = 0,
|
|
627
|
-
_1 = 1,
|
|
628
656
|
_2 = 2,
|
|
629
|
-
_3 = 3
|
|
630
|
-
_4 = 4,
|
|
631
|
-
_5 = 5,
|
|
632
|
-
_6 = 6,
|
|
633
|
-
_7 = 7,
|
|
634
|
-
_8 = 8,
|
|
635
|
-
_16 = 16,
|
|
636
|
-
_24 = 24,
|
|
637
|
-
_32 = 32,
|
|
638
|
-
_128 = 128,
|
|
639
|
-
_256 = 256,
|
|
640
|
-
_1024 = 1024,
|
|
641
|
-
_2048 = 2048,
|
|
642
|
-
_4096 = 4096,
|
|
643
|
-
_8192 = 8192,
|
|
644
|
-
_16384 = 16384,
|
|
645
|
-
_65536 = 65536,
|
|
646
|
-
_131072 = 131072,
|
|
647
|
-
_196608 = 196608,
|
|
648
|
-
_262144 = 262144,
|
|
649
|
-
_264192 = 264192,
|
|
650
|
-
_1048576 = 1048576,
|
|
651
|
-
_12582912 = 12582912
|
|
657
|
+
_3 = 3
|
|
652
658
|
}
|
|
653
|
-
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 {
|
|
654
678
|
readonly name?: string | undefined;
|
|
655
679
|
readonly customAttributes?: CustomAttributeData[] | undefined;
|
|
656
680
|
readonly isCollectible?: boolean;
|
|
@@ -661,7 +685,7 @@ interface TypeInfo {
|
|
|
661
685
|
readonly assemblyQualifiedName?: string | undefined;
|
|
662
686
|
readonly fullName?: string | undefined;
|
|
663
687
|
assembly?: Assembly;
|
|
664
|
-
module?:
|
|
688
|
+
module?: Module2;
|
|
665
689
|
readonly isNested?: boolean;
|
|
666
690
|
declaringType?: Type;
|
|
667
691
|
declaringMethod?: MethodBase;
|
|
@@ -724,29 +748,6 @@ interface TypeInfo {
|
|
|
724
748
|
readonly isSerializable?: boolean;
|
|
725
749
|
readonly containsGenericParameters?: boolean;
|
|
726
750
|
readonly isVisible?: boolean;
|
|
727
|
-
readonly genericTypeParameters?: Type[] | undefined;
|
|
728
|
-
readonly declaredConstructors?: ConstructorInfo[] | undefined;
|
|
729
|
-
readonly declaredEvents?: EventInfo[] | undefined;
|
|
730
|
-
readonly declaredFields?: FieldInfo[] | undefined;
|
|
731
|
-
readonly declaredMembers?: MemberInfo[] | undefined;
|
|
732
|
-
readonly declaredMethods?: MethodInfo[] | undefined;
|
|
733
|
-
readonly declaredNestedTypes?: TypeInfo[] | undefined;
|
|
734
|
-
readonly declaredProperties?: PropertyInfo[] | undefined;
|
|
735
|
-
readonly implementedInterfaces?: Type[] | undefined;
|
|
736
|
-
}
|
|
737
|
-
interface UpdatePlaceCommand {
|
|
738
|
-
id?: number;
|
|
739
|
-
userId?: number | undefined;
|
|
740
|
-
name?: string | undefined;
|
|
741
|
-
}
|
|
742
|
-
interface UpdatePlantCommand {
|
|
743
|
-
id?: number;
|
|
744
|
-
userId?: number;
|
|
745
|
-
name?: string | undefined;
|
|
746
|
-
description?: string | undefined;
|
|
747
|
-
placeId?: number;
|
|
748
|
-
type?: PlantType;
|
|
749
|
-
moduleId?: number | undefined;
|
|
750
751
|
}
|
|
751
752
|
declare class ApiException extends Error {
|
|
752
753
|
message: string;
|
|
@@ -763,4 +764,4 @@ declare class ApiException extends Error {
|
|
|
763
764
|
static isApiException(obj: any): obj is ApiException;
|
|
764
765
|
}
|
|
765
766
|
|
|
766
|
-
export { type AddHumidityMeasurementCommand, ApiException, type Assembly, type AverageHumidity, CallingConventions, Client, type ConstructorInfo, type CreateModuleRequest, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type
|
|
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);
|