@arekstasko/plantcare-api-client 1.1.5 → 1.1.7

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.d.cts CHANGED
@@ -16,8 +16,8 @@ declare class Client {
16
16
  * @param toDate (optional)
17
17
  * @return OK
18
18
  */
19
- humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<IHumidityMeasurement[]>;
20
- protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<IHumidityMeasurement[]>;
19
+ humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<HumidityMeasurement[]>;
20
+ protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<HumidityMeasurement[]>;
21
21
  /**
22
22
  * @param fromDate (optional)
23
23
  * @param toDate (optional)
@@ -96,6 +96,7 @@ declare class Client {
96
96
  interface AddHumidityMeasurementCommand {
97
97
  moduleId?: number;
98
98
  humidity?: number;
99
+ batteryLevel?: number;
99
100
  measurementDate?: Date;
100
101
  error?: string | undefined;
101
102
  }
@@ -137,11 +138,10 @@ declare enum PlantType {
137
138
  _1 = 1,
138
139
  _2 = 2
139
140
  }
140
- interface IHumidityMeasurement {
141
- id?: number;
142
- moduleId?: number;
141
+ interface HumidityMeasurement {
143
142
  humidity?: number;
144
- measurementDate?: Date;
143
+ batteryLevel?: number;
144
+ date?: Date;
145
145
  }
146
146
  interface Module {
147
147
  id?: number;
@@ -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 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 };
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 HumidityMeasurement, type ICustomAttributeProvider, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type Module2, type ModuleHandle, ParameterAttributes, type ParameterInfo, type Place, type Plant, PlantType, PropertyAttributes, type PropertyInfo, type RuntimeFieldHandle, type RuntimeMethodHandle, type RuntimeTypeHandle, SecurityRuleSet, type StructLayoutAttribute, type Type, TypeAttributes, type TypeInfo, type UpdatePlaceCommand, type UpdatePlantCommand };
package/dist/index.d.ts CHANGED
@@ -16,8 +16,8 @@ declare class Client {
16
16
  * @param toDate (optional)
17
17
  * @return OK
18
18
  */
19
- humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<IHumidityMeasurement[]>;
20
- protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<IHumidityMeasurement[]>;
19
+ humidityMeasurementsAll(id: number, fromDate: Date | undefined, toDate: Date | undefined, cancelToken?: CancelToken): Promise<HumidityMeasurement[]>;
20
+ protected processHumidityMeasurementsAll(response: AxiosResponse): Promise<HumidityMeasurement[]>;
21
21
  /**
22
22
  * @param fromDate (optional)
23
23
  * @param toDate (optional)
@@ -96,6 +96,7 @@ declare class Client {
96
96
  interface AddHumidityMeasurementCommand {
97
97
  moduleId?: number;
98
98
  humidity?: number;
99
+ batteryLevel?: number;
99
100
  measurementDate?: Date;
100
101
  error?: string | undefined;
101
102
  }
@@ -137,11 +138,10 @@ declare enum PlantType {
137
138
  _1 = 1,
138
139
  _2 = 2
139
140
  }
140
- interface IHumidityMeasurement {
141
- id?: number;
142
- moduleId?: number;
141
+ interface HumidityMeasurement {
143
142
  humidity?: number;
144
- measurementDate?: Date;
143
+ batteryLevel?: number;
144
+ date?: Date;
145
145
  }
146
146
  interface Module {
147
147
  id?: number;
@@ -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 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 };
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 HumidityMeasurement, type ICustomAttributeProvider, type IntPtr, LayoutKind, type MemberInfo, MemberTypes, MethodAttributes, type MethodBase, MethodImplAttributes, type MethodInfo, type Module, type Module2, type ModuleHandle, ParameterAttributes, type ParameterInfo, type Place, type Plant, PlantType, PropertyAttributes, type PropertyInfo, type RuntimeFieldHandle, type RuntimeMethodHandle, type RuntimeTypeHandle, SecurityRuleSet, type StructLayoutAttribute, type Type, TypeAttributes, type TypeInfo, type UpdatePlaceCommand, type UpdatePlantCommand };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arekstasko/plantcare-api-client",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",