@arekstasko/plantcare-api-client 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,836 @@
1
+ interface IClient {
2
+ /**
3
+ * @param body (optional)
4
+ * @return OK
5
+ */
6
+ humidityMeasurements(body?: AddHumidityMeasurementCommand | undefined): Promise<boolean>;
7
+ /**
8
+ * @param id (optional)
9
+ * @param fromDate (optional)
10
+ * @param toDate (optional)
11
+ * @return OK
12
+ */
13
+ humidityMeasurementsAll(id?: number | undefined, fromDate?: Date | undefined, toDate?: Date | undefined): Promise<IHumidityMeasurement[]>;
14
+ /**
15
+ * @param body (optional)
16
+ * @return OK
17
+ */
18
+ status(body?: SetModuleStatusCommand | undefined): Promise<boolean>;
19
+ /**
20
+ * @param body (optional)
21
+ * @return OK
22
+ */
23
+ modules(body?: CreateModuleCommand | undefined): Promise<boolean>;
24
+ /**
25
+ * @return OK
26
+ */
27
+ modulesAll(): Promise<IPlant[]>;
28
+ /**
29
+ * @param body (optional)
30
+ * @return OK
31
+ */
32
+ placesPOST(body?: CreatePlaceCommand | undefined): Promise<boolean>;
33
+ /**
34
+ * @param id (optional)
35
+ * @return OK
36
+ */
37
+ placesDELETE(id?: number | undefined): Promise<boolean>;
38
+ /**
39
+ * @param body (optional)
40
+ * @return OK
41
+ */
42
+ placesPUT(body?: UpdatePlaceCommand | undefined): Promise<boolean>;
43
+ /**
44
+ * @return OK
45
+ */
46
+ placesAll(): Promise<GetPlacesResponse[]>;
47
+ /**
48
+ * @param body (optional)
49
+ * @return OK
50
+ */
51
+ plantsPOST(body?: CreatePlantCommand | undefined): Promise<boolean>;
52
+ /**
53
+ * @param id (optional)
54
+ * @return OK
55
+ */
56
+ plantsDELETE(id?: number | undefined): Promise<boolean>;
57
+ /**
58
+ * @param body (optional)
59
+ * @return OK
60
+ */
61
+ plantsPUT(body?: UpdatePlantCommand | undefined): Promise<boolean>;
62
+ /**
63
+ * @return OK
64
+ */
65
+ plantsAll(): Promise<GetPlantResponse[]>;
66
+ /**
67
+ * @return OK
68
+ */
69
+ anonymous(id: number): Promise<GetPlantResponse>;
70
+ }
71
+ declare class Client implements IClient {
72
+ private http;
73
+ private baseUrl;
74
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
75
+ constructor(baseUrl?: string, http?: {
76
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
77
+ });
78
+ /**
79
+ * @param body (optional)
80
+ * @return OK
81
+ */
82
+ humidityMeasurements(body?: AddHumidityMeasurementCommand | undefined): Promise<boolean>;
83
+ protected processHumidityMeasurements(response: Response): Promise<boolean>;
84
+ /**
85
+ * @param id (optional)
86
+ * @param fromDate (optional)
87
+ * @param toDate (optional)
88
+ * @return OK
89
+ */
90
+ humidityMeasurementsAll(id?: number | undefined, fromDate?: Date | undefined, toDate?: Date | undefined): Promise<IHumidityMeasurement[]>;
91
+ protected processHumidityMeasurementsAll(response: Response): Promise<IHumidityMeasurement[]>;
92
+ /**
93
+ * @param body (optional)
94
+ * @return OK
95
+ */
96
+ status(body?: SetModuleStatusCommand | undefined): Promise<boolean>;
97
+ protected processStatus(response: Response): Promise<boolean>;
98
+ /**
99
+ * @param body (optional)
100
+ * @return OK
101
+ */
102
+ modules(body?: CreateModuleCommand | undefined): Promise<boolean>;
103
+ protected processModules(response: Response): Promise<boolean>;
104
+ /**
105
+ * @return OK
106
+ */
107
+ modulesAll(): Promise<IPlant[]>;
108
+ protected processModulesAll(response: Response): Promise<IPlant[]>;
109
+ /**
110
+ * @param body (optional)
111
+ * @return OK
112
+ */
113
+ placesPOST(body?: CreatePlaceCommand | undefined): Promise<boolean>;
114
+ protected processPlacesPOST(response: Response): Promise<boolean>;
115
+ /**
116
+ * @param id (optional)
117
+ * @return OK
118
+ */
119
+ placesDELETE(id?: number | undefined): Promise<boolean>;
120
+ protected processPlacesDELETE(response: Response): Promise<boolean>;
121
+ /**
122
+ * @param body (optional)
123
+ * @return OK
124
+ */
125
+ placesPUT(body?: UpdatePlaceCommand | undefined): Promise<boolean>;
126
+ protected processPlacesPUT(response: Response): Promise<boolean>;
127
+ /**
128
+ * @return OK
129
+ */
130
+ placesAll(): Promise<GetPlacesResponse[]>;
131
+ protected processPlacesAll(response: Response): Promise<GetPlacesResponse[]>;
132
+ /**
133
+ * @param body (optional)
134
+ * @return OK
135
+ */
136
+ plantsPOST(body?: CreatePlantCommand | undefined): Promise<boolean>;
137
+ protected processPlantsPOST(response: Response): Promise<boolean>;
138
+ /**
139
+ * @param id (optional)
140
+ * @return OK
141
+ */
142
+ plantsDELETE(id?: number | undefined): Promise<boolean>;
143
+ protected processPlantsDELETE(response: Response): Promise<boolean>;
144
+ /**
145
+ * @param body (optional)
146
+ * @return OK
147
+ */
148
+ plantsPUT(body?: UpdatePlantCommand | undefined): Promise<boolean>;
149
+ protected processPlantsPUT(response: Response): Promise<boolean>;
150
+ /**
151
+ * @return OK
152
+ */
153
+ plantsAll(): Promise<GetPlantResponse[]>;
154
+ protected processPlantsAll(response: Response): Promise<GetPlantResponse[]>;
155
+ /**
156
+ * @return OK
157
+ */
158
+ anonymous(id: number): Promise<GetPlantResponse>;
159
+ protected processAnonymous(response: Response): Promise<GetPlantResponse>;
160
+ }
161
+ interface AddHumidityMeasurementCommand {
162
+ moduleId?: number;
163
+ humidity?: number;
164
+ measurementDate?: Date;
165
+ }
166
+ interface Assembly {
167
+ readonly definedTypes?: TypeInfo[] | undefined;
168
+ readonly exportedTypes?: Type[] | undefined;
169
+ readonly codeBase?: string | undefined;
170
+ entryPoint?: MethodInfo;
171
+ readonly fullName?: string | undefined;
172
+ readonly imageRuntimeVersion?: string | undefined;
173
+ readonly isDynamic?: boolean;
174
+ readonly location?: string | undefined;
175
+ readonly reflectionOnly?: boolean;
176
+ readonly isCollectible?: boolean;
177
+ readonly isFullyTrusted?: boolean;
178
+ readonly customAttributes?: CustomAttributeData[] | undefined;
179
+ readonly escapedCodeBase?: string | undefined;
180
+ manifestModule?: Module;
181
+ readonly modules?: Module[] | undefined;
182
+ readonly globalAssemblyCache?: boolean;
183
+ readonly hostContext?: number;
184
+ securityRuleSet?: SecurityRuleSet;
185
+ }
186
+ declare enum CallingConventions {
187
+ _1 = 1,
188
+ _2 = 2,
189
+ _3 = 3,
190
+ _32 = 32,
191
+ _64 = 64
192
+ }
193
+ interface ConstructorInfo {
194
+ readonly name?: string | undefined;
195
+ declaringType?: Type;
196
+ reflectedType?: Type;
197
+ module?: Module;
198
+ readonly customAttributes?: CustomAttributeData[] | undefined;
199
+ readonly isCollectible?: boolean;
200
+ readonly metadataToken?: number;
201
+ attributes?: MethodAttributes;
202
+ methodImplementationFlags?: MethodImplAttributes;
203
+ callingConvention?: CallingConventions;
204
+ readonly isAbstract?: boolean;
205
+ readonly isConstructor?: boolean;
206
+ readonly isFinal?: boolean;
207
+ readonly isHideBySig?: boolean;
208
+ readonly isSpecialName?: boolean;
209
+ readonly isStatic?: boolean;
210
+ readonly isVirtual?: boolean;
211
+ readonly isAssembly?: boolean;
212
+ readonly isFamily?: boolean;
213
+ readonly isFamilyAndAssembly?: boolean;
214
+ readonly isFamilyOrAssembly?: boolean;
215
+ readonly isPrivate?: boolean;
216
+ readonly isPublic?: boolean;
217
+ readonly isConstructedGenericMethod?: boolean;
218
+ readonly isGenericMethod?: boolean;
219
+ readonly isGenericMethodDefinition?: boolean;
220
+ readonly containsGenericParameters?: boolean;
221
+ methodHandle?: RuntimeMethodHandle;
222
+ readonly isSecurityCritical?: boolean;
223
+ readonly isSecuritySafeCritical?: boolean;
224
+ readonly isSecurityTransparent?: boolean;
225
+ memberType?: MemberTypes;
226
+ }
227
+ interface CreateModuleCommand {
228
+ name?: string | undefined;
229
+ userId?: number;
230
+ address?: string | undefined;
231
+ }
232
+ interface CreatePlaceCommand {
233
+ name?: string | undefined;
234
+ userId?: number | undefined;
235
+ }
236
+ interface CreatePlantCommand {
237
+ name?: string | undefined;
238
+ userId?: number;
239
+ description?: string | undefined;
240
+ placeId?: number;
241
+ type?: PlantType;
242
+ moduleId?: number | undefined;
243
+ }
244
+ interface CustomAttributeData {
245
+ attributeType?: Type;
246
+ constructor?: ConstructorInfo;
247
+ readonly constructorArguments?: CustomAttributeTypedArgument[] | undefined;
248
+ readonly namedArguments?: CustomAttributeNamedArgument[] | undefined;
249
+ }
250
+ interface CustomAttributeNamedArgument {
251
+ memberInfo?: MemberInfo;
252
+ typedValue?: CustomAttributeTypedArgument;
253
+ readonly memberName?: string | undefined;
254
+ readonly isField?: boolean;
255
+ }
256
+ interface CustomAttributeTypedArgument {
257
+ argumentType?: Type;
258
+ value?: any | undefined;
259
+ }
260
+ declare enum EventAttributes {
261
+ _0 = 0,
262
+ _512 = 512,
263
+ _1024 = 1024
264
+ }
265
+ interface EventInfo {
266
+ readonly name?: string | undefined;
267
+ declaringType?: Type;
268
+ reflectedType?: Type;
269
+ module?: Module;
270
+ readonly customAttributes?: CustomAttributeData[] | undefined;
271
+ readonly isCollectible?: boolean;
272
+ readonly metadataToken?: number;
273
+ memberType?: MemberTypes;
274
+ attributes?: EventAttributes;
275
+ readonly isSpecialName?: boolean;
276
+ addMethod?: MethodInfo;
277
+ removeMethod?: MethodInfo;
278
+ raiseMethod?: MethodInfo;
279
+ readonly isMulticast?: boolean;
280
+ eventHandlerType?: Type;
281
+ }
282
+ interface Exception {
283
+ targetSite?: MethodBase;
284
+ readonly message?: string | undefined;
285
+ readonly data?: {
286
+ [key: string]: any;
287
+ } | undefined;
288
+ innerException?: Exception;
289
+ helpLink?: string | undefined;
290
+ source?: string | undefined;
291
+ hResult?: number;
292
+ readonly stackTrace?: string | undefined;
293
+ }
294
+ declare enum FieldAttributes {
295
+ _0 = 0,
296
+ _1 = 1,
297
+ _2 = 2,
298
+ _3 = 3,
299
+ _4 = 4,
300
+ _5 = 5,
301
+ _6 = 6,
302
+ _7 = 7,
303
+ _16 = 16,
304
+ _32 = 32,
305
+ _64 = 64,
306
+ _128 = 128,
307
+ _256 = 256,
308
+ _512 = 512,
309
+ _1024 = 1024,
310
+ _4096 = 4096,
311
+ _8192 = 8192,
312
+ _32768 = 32768,
313
+ _38144 = 38144
314
+ }
315
+ interface FieldInfo {
316
+ readonly name?: string | undefined;
317
+ declaringType?: Type;
318
+ reflectedType?: Type;
319
+ module?: Module;
320
+ readonly customAttributes?: CustomAttributeData[] | undefined;
321
+ readonly isCollectible?: boolean;
322
+ readonly metadataToken?: number;
323
+ memberType?: MemberTypes;
324
+ attributes?: FieldAttributes;
325
+ fieldType?: Type;
326
+ readonly isInitOnly?: boolean;
327
+ readonly isLiteral?: boolean;
328
+ readonly isNotSerialized?: boolean;
329
+ readonly isPinvokeImpl?: boolean;
330
+ readonly isSpecialName?: boolean;
331
+ readonly isStatic?: boolean;
332
+ readonly isAssembly?: boolean;
333
+ readonly isFamily?: boolean;
334
+ readonly isFamilyAndAssembly?: boolean;
335
+ readonly isFamilyOrAssembly?: boolean;
336
+ readonly isPrivate?: boolean;
337
+ readonly isPublic?: boolean;
338
+ readonly isSecurityCritical?: boolean;
339
+ readonly isSecuritySafeCritical?: boolean;
340
+ readonly isSecurityTransparent?: boolean;
341
+ fieldHandle?: RuntimeFieldHandle;
342
+ }
343
+ declare enum GenericParameterAttributes {
344
+ _0 = 0,
345
+ _1 = 1,
346
+ _2 = 2,
347
+ _3 = 3,
348
+ _4 = 4,
349
+ _8 = 8,
350
+ _16 = 16,
351
+ _28 = 28
352
+ }
353
+ interface GetPlacesResponse {
354
+ id?: number;
355
+ name?: string | undefined;
356
+ }
357
+ interface GetPlantResponse {
358
+ id?: number;
359
+ placeId?: number;
360
+ moduleId?: number;
361
+ name?: string | undefined;
362
+ description?: string | undefined;
363
+ type?: PlantType;
364
+ }
365
+ interface ICustomAttributeProvider {
366
+ }
367
+ interface IHumidityMeasurement {
368
+ id?: number;
369
+ moduleId?: number;
370
+ humidity?: number;
371
+ measurementDate?: Date;
372
+ }
373
+ interface IPlant {
374
+ userId?: number;
375
+ id?: number;
376
+ placeId?: number;
377
+ moduleId?: number;
378
+ name?: string | undefined;
379
+ description?: string | undefined;
380
+ type?: PlantType;
381
+ }
382
+ interface IntPtr {
383
+ }
384
+ declare enum LayoutKind {
385
+ _0 = 0,
386
+ _2 = 2,
387
+ _3 = 3
388
+ }
389
+ interface MemberInfo {
390
+ memberType?: MemberTypes;
391
+ readonly name?: string | undefined;
392
+ declaringType?: Type;
393
+ reflectedType?: Type;
394
+ module?: Module;
395
+ readonly customAttributes?: CustomAttributeData[] | undefined;
396
+ readonly isCollectible?: boolean;
397
+ readonly metadataToken?: number;
398
+ }
399
+ declare enum MemberTypes {
400
+ _1 = 1,
401
+ _2 = 2,
402
+ _4 = 4,
403
+ _8 = 8,
404
+ _16 = 16,
405
+ _32 = 32,
406
+ _64 = 64,
407
+ _128 = 128,
408
+ _191 = 191
409
+ }
410
+ declare enum MethodAttributes {
411
+ _0 = 0,
412
+ _1 = 1,
413
+ _2 = 2,
414
+ _3 = 3,
415
+ _4 = 4,
416
+ _5 = 5,
417
+ _6 = 6,
418
+ _7 = 7,
419
+ _8 = 8,
420
+ _16 = 16,
421
+ _32 = 32,
422
+ _64 = 64,
423
+ _128 = 128,
424
+ _256 = 256,
425
+ _512 = 512,
426
+ _1024 = 1024,
427
+ _2048 = 2048,
428
+ _4096 = 4096,
429
+ _8192 = 8192,
430
+ _16384 = 16384,
431
+ _32768 = 32768,
432
+ _53248 = 53248
433
+ }
434
+ interface MethodBase {
435
+ memberType?: MemberTypes;
436
+ readonly name?: string | undefined;
437
+ declaringType?: Type;
438
+ reflectedType?: Type;
439
+ module?: Module;
440
+ readonly customAttributes?: CustomAttributeData[] | undefined;
441
+ readonly isCollectible?: boolean;
442
+ readonly metadataToken?: number;
443
+ attributes?: MethodAttributes;
444
+ methodImplementationFlags?: MethodImplAttributes;
445
+ callingConvention?: CallingConventions;
446
+ readonly isAbstract?: boolean;
447
+ readonly isConstructor?: boolean;
448
+ readonly isFinal?: boolean;
449
+ readonly isHideBySig?: boolean;
450
+ readonly isSpecialName?: boolean;
451
+ readonly isStatic?: boolean;
452
+ readonly isVirtual?: boolean;
453
+ readonly isAssembly?: boolean;
454
+ readonly isFamily?: boolean;
455
+ readonly isFamilyAndAssembly?: boolean;
456
+ readonly isFamilyOrAssembly?: boolean;
457
+ readonly isPrivate?: boolean;
458
+ readonly isPublic?: boolean;
459
+ readonly isConstructedGenericMethod?: boolean;
460
+ readonly isGenericMethod?: boolean;
461
+ readonly isGenericMethodDefinition?: boolean;
462
+ readonly containsGenericParameters?: boolean;
463
+ methodHandle?: RuntimeMethodHandle;
464
+ readonly isSecurityCritical?: boolean;
465
+ readonly isSecuritySafeCritical?: boolean;
466
+ readonly isSecurityTransparent?: boolean;
467
+ }
468
+ declare enum MethodImplAttributes {
469
+ _0 = 0,
470
+ _1 = 1,
471
+ _2 = 2,
472
+ _3 = 3,
473
+ _4 = 4,
474
+ _8 = 8,
475
+ _16 = 16,
476
+ _32 = 32,
477
+ _64 = 64,
478
+ _128 = 128,
479
+ _256 = 256,
480
+ _512 = 512,
481
+ _4096 = 4096,
482
+ _65535 = 65535
483
+ }
484
+ interface MethodInfo {
485
+ readonly name?: string | undefined;
486
+ declaringType?: Type;
487
+ reflectedType?: Type;
488
+ module?: Module;
489
+ readonly customAttributes?: CustomAttributeData[] | undefined;
490
+ readonly isCollectible?: boolean;
491
+ readonly metadataToken?: number;
492
+ attributes?: MethodAttributes;
493
+ methodImplementationFlags?: MethodImplAttributes;
494
+ callingConvention?: CallingConventions;
495
+ readonly isAbstract?: boolean;
496
+ readonly isConstructor?: boolean;
497
+ readonly isFinal?: boolean;
498
+ readonly isHideBySig?: boolean;
499
+ readonly isSpecialName?: boolean;
500
+ readonly isStatic?: boolean;
501
+ readonly isVirtual?: boolean;
502
+ readonly isAssembly?: boolean;
503
+ readonly isFamily?: boolean;
504
+ readonly isFamilyAndAssembly?: boolean;
505
+ readonly isFamilyOrAssembly?: boolean;
506
+ readonly isPrivate?: boolean;
507
+ readonly isPublic?: boolean;
508
+ readonly isConstructedGenericMethod?: boolean;
509
+ readonly isGenericMethod?: boolean;
510
+ readonly isGenericMethodDefinition?: boolean;
511
+ readonly containsGenericParameters?: boolean;
512
+ methodHandle?: RuntimeMethodHandle;
513
+ readonly isSecurityCritical?: boolean;
514
+ readonly isSecuritySafeCritical?: boolean;
515
+ readonly isSecurityTransparent?: boolean;
516
+ memberType?: MemberTypes;
517
+ returnParameter?: ParameterInfo;
518
+ returnType?: Type;
519
+ returnTypeCustomAttributes?: ICustomAttributeProvider;
520
+ }
521
+ interface Module {
522
+ assembly?: Assembly;
523
+ readonly fullyQualifiedName?: string | undefined;
524
+ readonly name?: string | undefined;
525
+ readonly mdStreamVersion?: number;
526
+ readonly moduleVersionId?: string;
527
+ readonly scopeName?: string | undefined;
528
+ moduleHandle?: ModuleHandle;
529
+ readonly customAttributes?: CustomAttributeData[] | undefined;
530
+ readonly metadataToken?: number;
531
+ }
532
+ interface ModuleHandle {
533
+ readonly mdStreamVersion?: number;
534
+ }
535
+ declare enum ParameterAttributes {
536
+ _0 = 0,
537
+ _1 = 1,
538
+ _2 = 2,
539
+ _4 = 4,
540
+ _8 = 8,
541
+ _16 = 16,
542
+ _4096 = 4096,
543
+ _8192 = 8192,
544
+ _16384 = 16384,
545
+ _32768 = 32768,
546
+ _61440 = 61440
547
+ }
548
+ interface ParameterInfo {
549
+ attributes?: ParameterAttributes;
550
+ member?: MemberInfo;
551
+ readonly name?: string | undefined;
552
+ parameterType?: Type;
553
+ readonly position?: number;
554
+ readonly isIn?: boolean;
555
+ readonly isLcid?: boolean;
556
+ readonly isOptional?: boolean;
557
+ readonly isOut?: boolean;
558
+ readonly isRetval?: boolean;
559
+ readonly defaultValue?: any | undefined;
560
+ readonly rawDefaultValue?: any | undefined;
561
+ readonly hasDefaultValue?: boolean;
562
+ readonly customAttributes?: CustomAttributeData[] | undefined;
563
+ readonly metadataToken?: number;
564
+ }
565
+ declare enum PlantType {
566
+ _0 = 0,
567
+ _1 = 1,
568
+ _2 = 2
569
+ }
570
+ declare enum PropertyAttributes {
571
+ _0 = 0,
572
+ _512 = 512,
573
+ _1024 = 1024,
574
+ _4096 = 4096,
575
+ _8192 = 8192,
576
+ _16384 = 16384,
577
+ _32768 = 32768,
578
+ _62464 = 62464
579
+ }
580
+ interface PropertyInfo {
581
+ readonly name?: string | undefined;
582
+ declaringType?: Type;
583
+ reflectedType?: Type;
584
+ module?: Module;
585
+ readonly customAttributes?: CustomAttributeData[] | undefined;
586
+ readonly isCollectible?: boolean;
587
+ readonly metadataToken?: number;
588
+ memberType?: MemberTypes;
589
+ propertyType?: Type;
590
+ attributes?: PropertyAttributes;
591
+ readonly isSpecialName?: boolean;
592
+ readonly canRead?: boolean;
593
+ readonly canWrite?: boolean;
594
+ getMethod?: MethodInfo;
595
+ setMethod?: MethodInfo;
596
+ }
597
+ interface RuntimeFieldHandle {
598
+ value?: IntPtr;
599
+ }
600
+ interface RuntimeMethodHandle {
601
+ value?: IntPtr;
602
+ }
603
+ interface RuntimeTypeHandle {
604
+ value?: IntPtr;
605
+ }
606
+ declare enum SecurityRuleSet {
607
+ _0 = 0,
608
+ _1 = 1,
609
+ _2 = 2
610
+ }
611
+ interface SetModuleStatusCommand {
612
+ userId?: number | undefined;
613
+ moduleId?: number;
614
+ status?: boolean;
615
+ }
616
+ interface StructLayoutAttribute {
617
+ readonly typeId?: any | undefined;
618
+ value?: LayoutKind;
619
+ }
620
+ interface Type {
621
+ readonly name?: string | undefined;
622
+ readonly customAttributes?: CustomAttributeData[] | undefined;
623
+ readonly isCollectible?: boolean;
624
+ readonly metadataToken?: number;
625
+ readonly isInterface?: boolean;
626
+ memberType?: MemberTypes;
627
+ readonly namespace?: string | undefined;
628
+ readonly assemblyQualifiedName?: string | undefined;
629
+ readonly fullName?: string | undefined;
630
+ assembly?: Assembly;
631
+ module?: Module;
632
+ readonly isNested?: boolean;
633
+ declaringType?: Type;
634
+ declaringMethod?: MethodBase;
635
+ reflectedType?: Type;
636
+ underlyingSystemType?: Type;
637
+ readonly isTypeDefinition?: boolean;
638
+ readonly isArray?: boolean;
639
+ readonly isByRef?: boolean;
640
+ readonly isPointer?: boolean;
641
+ readonly isConstructedGenericType?: boolean;
642
+ readonly isGenericParameter?: boolean;
643
+ readonly isGenericTypeParameter?: boolean;
644
+ readonly isGenericMethodParameter?: boolean;
645
+ readonly isGenericType?: boolean;
646
+ readonly isGenericTypeDefinition?: boolean;
647
+ readonly isSZArray?: boolean;
648
+ readonly isVariableBoundArray?: boolean;
649
+ readonly isByRefLike?: boolean;
650
+ readonly isFunctionPointer?: boolean;
651
+ readonly isUnmanagedFunctionPointer?: boolean;
652
+ readonly hasElementType?: boolean;
653
+ readonly genericTypeArguments?: Type[] | undefined;
654
+ readonly genericParameterPosition?: number;
655
+ genericParameterAttributes?: GenericParameterAttributes;
656
+ attributes?: TypeAttributes;
657
+ readonly isAbstract?: boolean;
658
+ readonly isImport?: boolean;
659
+ readonly isSealed?: boolean;
660
+ readonly isSpecialName?: boolean;
661
+ readonly isClass?: boolean;
662
+ readonly isNestedAssembly?: boolean;
663
+ readonly isNestedFamANDAssem?: boolean;
664
+ readonly isNestedFamily?: boolean;
665
+ readonly isNestedFamORAssem?: boolean;
666
+ readonly isNestedPrivate?: boolean;
667
+ readonly isNestedPublic?: boolean;
668
+ readonly isNotPublic?: boolean;
669
+ readonly isPublic?: boolean;
670
+ readonly isAutoLayout?: boolean;
671
+ readonly isExplicitLayout?: boolean;
672
+ readonly isLayoutSequential?: boolean;
673
+ readonly isAnsiClass?: boolean;
674
+ readonly isAutoClass?: boolean;
675
+ readonly isUnicodeClass?: boolean;
676
+ readonly isCOMObject?: boolean;
677
+ readonly isContextful?: boolean;
678
+ readonly isEnum?: boolean;
679
+ readonly isMarshalByRef?: boolean;
680
+ readonly isPrimitive?: boolean;
681
+ readonly isValueType?: boolean;
682
+ readonly isSignatureType?: boolean;
683
+ readonly isSecurityCritical?: boolean;
684
+ readonly isSecuritySafeCritical?: boolean;
685
+ readonly isSecurityTransparent?: boolean;
686
+ structLayoutAttribute?: StructLayoutAttribute;
687
+ typeInitializer?: ConstructorInfo;
688
+ typeHandle?: RuntimeTypeHandle;
689
+ readonly guid?: string;
690
+ baseType?: Type;
691
+ readonly isSerializable?: boolean;
692
+ readonly containsGenericParameters?: boolean;
693
+ readonly isVisible?: boolean;
694
+ }
695
+ declare enum TypeAttributes {
696
+ _0 = 0,
697
+ _1 = 1,
698
+ _2 = 2,
699
+ _3 = 3,
700
+ _4 = 4,
701
+ _5 = 5,
702
+ _6 = 6,
703
+ _7 = 7,
704
+ _8 = 8,
705
+ _16 = 16,
706
+ _24 = 24,
707
+ _32 = 32,
708
+ _128 = 128,
709
+ _256 = 256,
710
+ _1024 = 1024,
711
+ _2048 = 2048,
712
+ _4096 = 4096,
713
+ _8192 = 8192,
714
+ _16384 = 16384,
715
+ _65536 = 65536,
716
+ _131072 = 131072,
717
+ _196608 = 196608,
718
+ _262144 = 262144,
719
+ _264192 = 264192,
720
+ _1048576 = 1048576,
721
+ _12582912 = 12582912
722
+ }
723
+ interface TypeInfo {
724
+ readonly name?: string | undefined;
725
+ readonly customAttributes?: CustomAttributeData[] | undefined;
726
+ readonly isCollectible?: boolean;
727
+ readonly metadataToken?: number;
728
+ readonly isInterface?: boolean;
729
+ memberType?: MemberTypes;
730
+ readonly namespace?: string | undefined;
731
+ readonly assemblyQualifiedName?: string | undefined;
732
+ readonly fullName?: string | undefined;
733
+ assembly?: Assembly;
734
+ module?: Module;
735
+ readonly isNested?: boolean;
736
+ declaringType?: Type;
737
+ declaringMethod?: MethodBase;
738
+ reflectedType?: Type;
739
+ underlyingSystemType?: Type;
740
+ readonly isTypeDefinition?: boolean;
741
+ readonly isArray?: boolean;
742
+ readonly isByRef?: boolean;
743
+ readonly isPointer?: boolean;
744
+ readonly isConstructedGenericType?: boolean;
745
+ readonly isGenericParameter?: boolean;
746
+ readonly isGenericTypeParameter?: boolean;
747
+ readonly isGenericMethodParameter?: boolean;
748
+ readonly isGenericType?: boolean;
749
+ readonly isGenericTypeDefinition?: boolean;
750
+ readonly isSZArray?: boolean;
751
+ readonly isVariableBoundArray?: boolean;
752
+ readonly isByRefLike?: boolean;
753
+ readonly isFunctionPointer?: boolean;
754
+ readonly isUnmanagedFunctionPointer?: boolean;
755
+ readonly hasElementType?: boolean;
756
+ readonly genericTypeArguments?: Type[] | undefined;
757
+ readonly genericParameterPosition?: number;
758
+ genericParameterAttributes?: GenericParameterAttributes;
759
+ attributes?: TypeAttributes;
760
+ readonly isAbstract?: boolean;
761
+ readonly isImport?: boolean;
762
+ readonly isSealed?: boolean;
763
+ readonly isSpecialName?: boolean;
764
+ readonly isClass?: boolean;
765
+ readonly isNestedAssembly?: boolean;
766
+ readonly isNestedFamANDAssem?: boolean;
767
+ readonly isNestedFamily?: boolean;
768
+ readonly isNestedFamORAssem?: boolean;
769
+ readonly isNestedPrivate?: boolean;
770
+ readonly isNestedPublic?: boolean;
771
+ readonly isNotPublic?: boolean;
772
+ readonly isPublic?: boolean;
773
+ readonly isAutoLayout?: boolean;
774
+ readonly isExplicitLayout?: boolean;
775
+ readonly isLayoutSequential?: boolean;
776
+ readonly isAnsiClass?: boolean;
777
+ readonly isAutoClass?: boolean;
778
+ readonly isUnicodeClass?: boolean;
779
+ readonly isCOMObject?: boolean;
780
+ readonly isContextful?: boolean;
781
+ readonly isEnum?: boolean;
782
+ readonly isMarshalByRef?: boolean;
783
+ readonly isPrimitive?: boolean;
784
+ readonly isValueType?: boolean;
785
+ readonly isSignatureType?: boolean;
786
+ readonly isSecurityCritical?: boolean;
787
+ readonly isSecuritySafeCritical?: boolean;
788
+ readonly isSecurityTransparent?: boolean;
789
+ structLayoutAttribute?: StructLayoutAttribute;
790
+ typeInitializer?: ConstructorInfo;
791
+ typeHandle?: RuntimeTypeHandle;
792
+ readonly guid?: string;
793
+ baseType?: Type;
794
+ readonly isSerializable?: boolean;
795
+ readonly containsGenericParameters?: boolean;
796
+ readonly isVisible?: boolean;
797
+ readonly genericTypeParameters?: Type[] | undefined;
798
+ readonly declaredConstructors?: ConstructorInfo[] | undefined;
799
+ readonly declaredEvents?: EventInfo[] | undefined;
800
+ readonly declaredFields?: FieldInfo[] | undefined;
801
+ readonly declaredMembers?: MemberInfo[] | undefined;
802
+ readonly declaredMethods?: MethodInfo[] | undefined;
803
+ readonly declaredNestedTypes?: TypeInfo[] | undefined;
804
+ readonly declaredProperties?: PropertyInfo[] | undefined;
805
+ readonly implementedInterfaces?: Type[] | undefined;
806
+ }
807
+ interface UpdatePlaceCommand {
808
+ id?: number;
809
+ userId?: number | undefined;
810
+ name?: string | undefined;
811
+ }
812
+ interface UpdatePlantCommand {
813
+ id?: number;
814
+ userId?: number;
815
+ name?: string | undefined;
816
+ description?: string | undefined;
817
+ placeId?: number;
818
+ type?: PlantType;
819
+ moduleId?: number | undefined;
820
+ }
821
+ declare class ApiException extends Error {
822
+ message: string;
823
+ status: number;
824
+ response: string;
825
+ headers: {
826
+ [key: string]: any;
827
+ };
828
+ result: any;
829
+ constructor(message: string, status: number, response: string, headers: {
830
+ [key: string]: any;
831
+ }, result: any);
832
+ protected isApiException: boolean;
833
+ static isApiException(obj: any): obj is ApiException;
834
+ }
835
+
836
+ export { type AddHumidityMeasurementCommand, ApiException, type Assembly, CallingConventions, Client, type ConstructorInfo, type CreateModuleCommand, type CreatePlaceCommand, type CreatePlantCommand, type CustomAttributeData, type CustomAttributeNamedArgument, type CustomAttributeTypedArgument, EventAttributes, type EventInfo, type Exception, FieldAttributes, type FieldInfo, GenericParameterAttributes, type GetPlacesResponse, type GetPlantResponse, type IClient, type ICustomAttributeProvider, type IHumidityMeasurement, type IPlant, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type ModuleHandle, ParameterAttributes, type ParameterInfo, PlantType, PropertyAttributes, type PropertyInfo, type RuntimeFieldHandle, type RuntimeMethodHandle, type RuntimeTypeHandle, SecurityRuleSet, type SetModuleStatusCommand, type StructLayoutAttribute, type Type, TypeAttributes, type TypeInfo, type UpdatePlaceCommand, type UpdatePlantCommand };