@epilot/metering-client 0.5.5 → 0.5.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/definition.js +1 -1
- package/dist/openapi.d.ts +198 -70
- package/dist/openapi.json +124 -63
- package/package.json +2 -3
- package/package-lock.json +0 -13534
package/dist/openapi.d.ts
CHANGED
|
@@ -12,17 +12,20 @@ declare namespace Components {
|
|
|
12
12
|
export type Forbidden = Schemas.ErrorResp;
|
|
13
13
|
export type InternalServerError = Schemas.ErrorResp;
|
|
14
14
|
export type InvalidRequest = Schemas.ErrorResp;
|
|
15
|
-
export type NotFound = Schemas.ErrorResp;
|
|
16
15
|
export type Unauthorized = Schemas.ErrorResp;
|
|
17
16
|
}
|
|
18
17
|
namespace Schemas {
|
|
18
|
+
export interface ActionLabel {
|
|
19
|
+
en?: string | null;
|
|
20
|
+
de?: string | null;
|
|
21
|
+
}
|
|
19
22
|
export interface BaseEntity {
|
|
20
23
|
/**
|
|
21
24
|
* Entity ID
|
|
22
25
|
* example:
|
|
23
26
|
* 3fa85f64-5717-4562-b3fc-2c963f66afa6
|
|
24
27
|
*/
|
|
25
|
-
_id: EntityId
|
|
28
|
+
_id: EntityId /* uuid */;
|
|
26
29
|
/**
|
|
27
30
|
* Title of the entity
|
|
28
31
|
* example:
|
|
@@ -81,10 +84,10 @@ declare namespace Components {
|
|
|
81
84
|
export interface Entity {
|
|
82
85
|
[name: string]: any;
|
|
83
86
|
}
|
|
84
|
-
export type EntityId = string;
|
|
87
|
+
export type EntityId = string; // uuid
|
|
85
88
|
export interface EntityItem {
|
|
86
89
|
[name: string]: any;
|
|
87
|
-
_id: EntityId
|
|
90
|
+
_id: EntityId /* uuid */;
|
|
88
91
|
/**
|
|
89
92
|
* Title of the entity
|
|
90
93
|
* example:
|
|
@@ -120,19 +123,9 @@ declare namespace Components {
|
|
|
120
123
|
_updated_at: string; // date-time
|
|
121
124
|
}
|
|
122
125
|
export interface EntityRelation {
|
|
123
|
-
|
|
124
|
-
* example:
|
|
125
|
-
* 9a2081a2-1615-44b8-b988-d757983290dd
|
|
126
|
-
*/
|
|
127
|
-
entity_id?: string;
|
|
126
|
+
entity_id?: EntityId /* uuid */;
|
|
128
127
|
_slug?: "contact" | "contract";
|
|
129
128
|
}
|
|
130
|
-
/**
|
|
131
|
-
* URL-friendly identifier for the entity schema
|
|
132
|
-
* example:
|
|
133
|
-
* contact
|
|
134
|
-
*/
|
|
135
|
-
export type EntitySlug = string;
|
|
136
129
|
export interface ErrorResp {
|
|
137
130
|
/**
|
|
138
131
|
* Error message
|
|
@@ -140,8 +133,14 @@ declare namespace Components {
|
|
|
140
133
|
message?: string;
|
|
141
134
|
}
|
|
142
135
|
export type Id = string;
|
|
136
|
+
export interface JourneyActions {
|
|
137
|
+
journey_id?: string | null;
|
|
138
|
+
action_label?: ActionLabel;
|
|
139
|
+
slug?: string | null;
|
|
140
|
+
rules?: Rule[] | null;
|
|
141
|
+
}
|
|
143
142
|
export interface Meter {
|
|
144
|
-
_id: EntityId
|
|
143
|
+
_id: EntityId /* uuid */;
|
|
145
144
|
/**
|
|
146
145
|
* Title of the entity
|
|
147
146
|
* example:
|
|
@@ -258,7 +257,7 @@ declare namespace Components {
|
|
|
258
257
|
};
|
|
259
258
|
}
|
|
260
259
|
export interface MeterCounter {
|
|
261
|
-
_id: EntityId
|
|
260
|
+
_id: EntityId /* uuid */;
|
|
262
261
|
/**
|
|
263
262
|
* Title of the entity
|
|
264
263
|
* example:
|
|
@@ -346,30 +345,26 @@ declare namespace Components {
|
|
|
346
345
|
* 240
|
|
347
346
|
*/
|
|
348
347
|
value: number;
|
|
349
|
-
/**
|
|
348
|
+
read_by?: /**
|
|
350
349
|
* The person who recorded the reading
|
|
351
350
|
* example:
|
|
352
351
|
* John Doe
|
|
353
352
|
*/
|
|
354
|
-
|
|
355
|
-
/**
|
|
353
|
+
ReadBy;
|
|
354
|
+
reason?: /**
|
|
356
355
|
* The reason for recording the reading
|
|
357
356
|
* example:
|
|
358
357
|
* Storing the feed-in record
|
|
359
358
|
*/
|
|
360
|
-
|
|
359
|
+
Reason;
|
|
361
360
|
/**
|
|
362
361
|
* The ID of the associated meter
|
|
363
|
-
* example:
|
|
364
|
-
* 1446829f-4b6f-474e-b978-3997d89a7928
|
|
365
362
|
*/
|
|
366
|
-
meter_id:
|
|
363
|
+
meter_id: EntityId /* uuid */;
|
|
367
364
|
/**
|
|
368
365
|
* The ID of the associated meter counter
|
|
369
|
-
* example:
|
|
370
|
-
* 991a1821-43bc-46b8-967d-64a3d87c31f8
|
|
371
366
|
*/
|
|
372
|
-
counter_id?:
|
|
367
|
+
counter_id?: EntityId /* uuid */;
|
|
373
368
|
/**
|
|
374
369
|
* The direction of the reading (feed-in or feed-out)
|
|
375
370
|
*/
|
|
@@ -401,7 +396,13 @@ declare namespace Components {
|
|
|
401
396
|
*/
|
|
402
397
|
maxNextReadingValue?: number;
|
|
403
398
|
}
|
|
404
|
-
|
|
399
|
+
/**
|
|
400
|
+
* The person who recorded the reading
|
|
401
|
+
* example:
|
|
402
|
+
* John Doe
|
|
403
|
+
*/
|
|
404
|
+
export type ReadBy = string | null;
|
|
405
|
+
export type ReadingStatus = "valid" | "in-validation" | "implausible" | null | "";
|
|
405
406
|
export interface ReadingWithMeter {
|
|
406
407
|
/**
|
|
407
408
|
* The MA-LO ID of the meter
|
|
@@ -437,18 +438,18 @@ declare namespace Components {
|
|
|
437
438
|
* 240
|
|
438
439
|
*/
|
|
439
440
|
value?: number;
|
|
440
|
-
/**
|
|
441
|
+
read_by?: /**
|
|
441
442
|
* The person who recorded the reading
|
|
442
443
|
* example:
|
|
443
444
|
* John Doe
|
|
444
445
|
*/
|
|
445
|
-
|
|
446
|
-
/**
|
|
446
|
+
ReadBy;
|
|
447
|
+
reason?: /**
|
|
447
448
|
* The reason for recording the reading
|
|
448
449
|
* example:
|
|
449
450
|
* Storing the feed-in record
|
|
450
451
|
*/
|
|
451
|
-
|
|
452
|
+
Reason;
|
|
452
453
|
/**
|
|
453
454
|
* If the value is not provided, the system will be set with the time the request is processed.
|
|
454
455
|
* example:
|
|
@@ -460,6 +461,17 @@ declare namespace Components {
|
|
|
460
461
|
*/
|
|
461
462
|
source?: Source;
|
|
462
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* The reason for recording the reading
|
|
466
|
+
* example:
|
|
467
|
+
* Storing the feed-in record
|
|
468
|
+
*/
|
|
469
|
+
export type Reason = string | null;
|
|
470
|
+
export interface Rule {
|
|
471
|
+
entity?: string | null;
|
|
472
|
+
attribute?: string | null;
|
|
473
|
+
attribute_value?: string | null;
|
|
474
|
+
}
|
|
463
475
|
export type Source = "ECP" | "ERP" | "360" | "journey-submission";
|
|
464
476
|
export type SubmissionMeterReading = {
|
|
465
477
|
/**
|
|
@@ -490,12 +502,12 @@ declare namespace Components {
|
|
|
490
502
|
* John Doe
|
|
491
503
|
*/
|
|
492
504
|
readBy?: string;
|
|
493
|
-
/**
|
|
505
|
+
reason?: /**
|
|
494
506
|
* The reason for recording the reading
|
|
495
507
|
* example:
|
|
496
508
|
* Storing the feed-in record
|
|
497
509
|
*/
|
|
498
|
-
|
|
510
|
+
Reason;
|
|
499
511
|
/**
|
|
500
512
|
* The MA-LO ID of the meter
|
|
501
513
|
* example:
|
|
@@ -589,6 +601,12 @@ declare namespace Paths {
|
|
|
589
601
|
}
|
|
590
602
|
}
|
|
591
603
|
namespace CreateMeterReadings {
|
|
604
|
+
namespace Parameters {
|
|
605
|
+
export type Async = boolean;
|
|
606
|
+
}
|
|
607
|
+
export interface QueryParameters {
|
|
608
|
+
async?: Parameters.Async;
|
|
609
|
+
}
|
|
592
610
|
export interface RequestBody {
|
|
593
611
|
readings?: Components.Schemas.MeterReading[];
|
|
594
612
|
}
|
|
@@ -712,7 +730,124 @@ declare namespace Paths {
|
|
|
712
730
|
namespace GetCustomerMeters {
|
|
713
731
|
namespace Responses {
|
|
714
732
|
export interface $200 {
|
|
715
|
-
data?:
|
|
733
|
+
data?: {
|
|
734
|
+
_id: Components.Schemas.EntityId /* uuid */;
|
|
735
|
+
/**
|
|
736
|
+
* Title of the entity
|
|
737
|
+
* example:
|
|
738
|
+
* Example Entity
|
|
739
|
+
*/
|
|
740
|
+
_title: string;
|
|
741
|
+
/**
|
|
742
|
+
* Organization ID the entity belongs to
|
|
743
|
+
* example:
|
|
744
|
+
* 123
|
|
745
|
+
*/
|
|
746
|
+
_org: string;
|
|
747
|
+
/**
|
|
748
|
+
* Array of entity tags
|
|
749
|
+
* example:
|
|
750
|
+
* [
|
|
751
|
+
* "example",
|
|
752
|
+
* "mock"
|
|
753
|
+
* ]
|
|
754
|
+
*/
|
|
755
|
+
_tags?: string[];
|
|
756
|
+
/**
|
|
757
|
+
* Creation timestamp of the entity
|
|
758
|
+
* example:
|
|
759
|
+
* 2021-02-09T12:41:43.662Z
|
|
760
|
+
*/
|
|
761
|
+
_created_at: string; // date-time
|
|
762
|
+
/**
|
|
763
|
+
* Last update timestamp of the entity
|
|
764
|
+
* example:
|
|
765
|
+
* 2021-02-09T12:41:43.662Z
|
|
766
|
+
*/
|
|
767
|
+
_updated_at: string; // date-time
|
|
768
|
+
/**
|
|
769
|
+
* The schema type of the meter
|
|
770
|
+
*/
|
|
771
|
+
_schema: "meter";
|
|
772
|
+
/**
|
|
773
|
+
* The MA-LO ID of the meter
|
|
774
|
+
* example:
|
|
775
|
+
* A09-123
|
|
776
|
+
*/
|
|
777
|
+
ma_lo_id?: string;
|
|
778
|
+
/**
|
|
779
|
+
* The type of the meter
|
|
780
|
+
*/
|
|
781
|
+
meter_type?: "three-phase-meter" | "bellow-gas-meter" | "rotary-piston-meter" | "smart-meter" | "performance-meter" | "maximum-meter" | "turbine-gas-meter" | "ultrasonic-gas-meter" | "alternating-current-meter" | "modern-metering-system" | "intelligent-measuring-system" | "electronic-meter";
|
|
782
|
+
/**
|
|
783
|
+
* The tariff type of the meter
|
|
784
|
+
* example:
|
|
785
|
+
* Peak load tariff
|
|
786
|
+
*/
|
|
787
|
+
tariff_type?: string;
|
|
788
|
+
/**
|
|
789
|
+
* The number of the meter
|
|
790
|
+
* example:
|
|
791
|
+
* J-1093-1AK
|
|
792
|
+
*/
|
|
793
|
+
meter_number?: string;
|
|
794
|
+
/**
|
|
795
|
+
* The sector to which the meter belongs
|
|
796
|
+
*/
|
|
797
|
+
sector?: "power" | "water" | "gas";
|
|
798
|
+
/**
|
|
799
|
+
* The location information of the meter
|
|
800
|
+
* example:
|
|
801
|
+
* [
|
|
802
|
+
* {
|
|
803
|
+
* "country": "Germany",
|
|
804
|
+
* "city": "Koln",
|
|
805
|
+
* "postal_code": 81475,
|
|
806
|
+
* "street": "Melatengürtel",
|
|
807
|
+
* "street_number": 71,
|
|
808
|
+
* "additional_info": "5. Etage",
|
|
809
|
+
* "_tags": [
|
|
810
|
+
* "billing",
|
|
811
|
+
* "delivery"
|
|
812
|
+
* ]
|
|
813
|
+
* }
|
|
814
|
+
* ]
|
|
815
|
+
*/
|
|
816
|
+
location?: {
|
|
817
|
+
[key: string]: any;
|
|
818
|
+
};
|
|
819
|
+
/**
|
|
820
|
+
* The usage purpose of the meter
|
|
821
|
+
* example:
|
|
822
|
+
* Domestic Usage
|
|
823
|
+
*/
|
|
824
|
+
used_for?: string;
|
|
825
|
+
/**
|
|
826
|
+
* The manufacturer of the meter
|
|
827
|
+
* example:
|
|
828
|
+
* Energy One
|
|
829
|
+
*/
|
|
830
|
+
manufacturer?: string;
|
|
831
|
+
/**
|
|
832
|
+
* The calibration date of the meter
|
|
833
|
+
* example:
|
|
834
|
+
* 2022-10-10T00:00:00.000Z
|
|
835
|
+
*/
|
|
836
|
+
calibration_date?: string;
|
|
837
|
+
/**
|
|
838
|
+
* The contract associated with the meter
|
|
839
|
+
*/
|
|
840
|
+
contract?: {
|
|
841
|
+
$relation?: Components.Schemas.EntityRelation[];
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* The customer associated with the meter
|
|
845
|
+
*/
|
|
846
|
+
customer?: {
|
|
847
|
+
$relation?: Components.Schemas.EntityRelation[];
|
|
848
|
+
};
|
|
849
|
+
journey_actions?: Components.Schemas.JourneyActions;
|
|
850
|
+
}[];
|
|
716
851
|
}
|
|
717
852
|
export type $400 = Components.Responses.InvalidRequest;
|
|
718
853
|
export type $401 = Components.Responses.Unauthorized;
|
|
@@ -769,7 +904,7 @@ declare namespace Paths {
|
|
|
769
904
|
}
|
|
770
905
|
namespace GetMeter {
|
|
771
906
|
namespace Parameters {
|
|
772
|
-
export type Id = Components.Schemas.EntityId
|
|
907
|
+
export type Id = Components.Schemas.EntityId /* uuid */;
|
|
773
908
|
}
|
|
774
909
|
export interface PathParameters {
|
|
775
910
|
id: Parameters.Id;
|
|
@@ -778,6 +913,7 @@ declare namespace Paths {
|
|
|
778
913
|
export interface $200 {
|
|
779
914
|
data?: {
|
|
780
915
|
entity?: Components.Schemas.Meter;
|
|
916
|
+
journey_actions?: Components.Schemas.JourneyActions;
|
|
781
917
|
relations?: Components.Schemas.EntityItem[];
|
|
782
918
|
};
|
|
783
919
|
}
|
|
@@ -789,18 +925,10 @@ declare namespace Paths {
|
|
|
789
925
|
}
|
|
790
926
|
namespace GetMeterCounters {
|
|
791
927
|
namespace Parameters {
|
|
792
|
-
|
|
793
|
-
* example:
|
|
794
|
-
* 1446829f-4b6f-474e-b978-3997d89a7928
|
|
795
|
-
*/
|
|
796
|
-
export type MeterId = string;
|
|
928
|
+
export type MeterId = Components.Schemas.EntityId /* uuid */;
|
|
797
929
|
}
|
|
798
930
|
export interface QueryParameters {
|
|
799
|
-
meter_id:
|
|
800
|
-
* example:
|
|
801
|
-
* 1446829f-4b6f-474e-b978-3997d89a7928
|
|
802
|
-
*/
|
|
803
|
-
Parameters.MeterId;
|
|
931
|
+
meter_id: Parameters.MeterId;
|
|
804
932
|
}
|
|
805
933
|
namespace Responses {
|
|
806
934
|
export interface $200 {
|
|
@@ -814,7 +942,7 @@ declare namespace Paths {
|
|
|
814
942
|
}
|
|
815
943
|
namespace GetMetersByContractId {
|
|
816
944
|
namespace Parameters {
|
|
817
|
-
export type ContractId = Components.Schemas.EntityId
|
|
945
|
+
export type ContractId = Components.Schemas.EntityId /* uuid */;
|
|
818
946
|
}
|
|
819
947
|
export interface PathParameters {
|
|
820
948
|
contract_id: Parameters.ContractId;
|
|
@@ -908,7 +1036,7 @@ declare namespace Paths {
|
|
|
908
1036
|
}
|
|
909
1037
|
namespace UpdateMeter {
|
|
910
1038
|
namespace Parameters {
|
|
911
|
-
export type Id = Components.Schemas.EntityId
|
|
1039
|
+
export type Id = Components.Schemas.EntityId /* uuid */;
|
|
912
1040
|
}
|
|
913
1041
|
export interface PathParameters {
|
|
914
1042
|
id: Parameters.Id;
|
|
@@ -975,7 +1103,7 @@ export interface OperationMethods {
|
|
|
975
1103
|
* Retrieves all meters related to a contract.
|
|
976
1104
|
*/
|
|
977
1105
|
'getMetersByContractId'(
|
|
978
|
-
parameters
|
|
1106
|
+
parameters?: Parameters<Paths.GetMetersByContractId.PathParameters> | null,
|
|
979
1107
|
data?: any,
|
|
980
1108
|
config?: AxiosRequestConfig
|
|
981
1109
|
): OperationResponse<Paths.GetMetersByContractId.Responses.$200>
|
|
@@ -985,7 +1113,7 @@ export interface OperationMethods {
|
|
|
985
1113
|
* Retrieves the details of a meter.
|
|
986
1114
|
*/
|
|
987
1115
|
'getMeter'(
|
|
988
|
-
parameters
|
|
1116
|
+
parameters?: Parameters<Paths.GetMeter.PathParameters> | null,
|
|
989
1117
|
data?: any,
|
|
990
1118
|
config?: AxiosRequestConfig
|
|
991
1119
|
): OperationResponse<Paths.GetMeter.Responses.$200>
|
|
@@ -995,7 +1123,7 @@ export interface OperationMethods {
|
|
|
995
1123
|
* Updates the details of a meter.
|
|
996
1124
|
*/
|
|
997
1125
|
'updateMeter'(
|
|
998
|
-
parameters
|
|
1126
|
+
parameters?: Parameters<Paths.UpdateMeter.PathParameters> | null,
|
|
999
1127
|
data?: Paths.UpdateMeter.RequestBody,
|
|
1000
1128
|
config?: AxiosRequestConfig
|
|
1001
1129
|
): OperationResponse<Paths.UpdateMeter.Responses.$200>
|
|
@@ -1015,7 +1143,7 @@ export interface OperationMethods {
|
|
|
1015
1143
|
* Retrieves the details of a meter counter.
|
|
1016
1144
|
*/
|
|
1017
1145
|
'getCounterDetails'(
|
|
1018
|
-
parameters
|
|
1146
|
+
parameters?: Parameters<Paths.GetCounterDetails.PathParameters> | null,
|
|
1019
1147
|
data?: any,
|
|
1020
1148
|
config?: AxiosRequestConfig
|
|
1021
1149
|
): OperationResponse<Paths.GetCounterDetails.Responses.$200>
|
|
@@ -1032,10 +1160,10 @@ export interface OperationMethods {
|
|
|
1032
1160
|
/**
|
|
1033
1161
|
* createMeterReadings - Create Meter Readings
|
|
1034
1162
|
*
|
|
1035
|
-
* Inserts multiple meter readings at once.
|
|
1163
|
+
* Inserts multiple meter readings at once. Limited to 100 readings per request.
|
|
1036
1164
|
*/
|
|
1037
1165
|
'createMeterReadings'(
|
|
1038
|
-
parameters?: Parameters<
|
|
1166
|
+
parameters?: Parameters<Paths.CreateMeterReadings.QueryParameters> | null,
|
|
1039
1167
|
data?: Paths.CreateMeterReadings.RequestBody,
|
|
1040
1168
|
config?: AxiosRequestConfig
|
|
1041
1169
|
): OperationResponse<Paths.CreateMeterReadings.Responses.$200>
|
|
@@ -1055,7 +1183,7 @@ export interface OperationMethods {
|
|
|
1055
1183
|
* Get allowed reading for the given meter
|
|
1056
1184
|
*/
|
|
1057
1185
|
'getAllowedReadingForMeter'(
|
|
1058
|
-
parameters
|
|
1186
|
+
parameters?: Parameters<Paths.GetAllowedReadingForMeter.PathParameters & Paths.GetAllowedReadingForMeter.QueryParameters> | null,
|
|
1059
1187
|
data?: any,
|
|
1060
1188
|
config?: AxiosRequestConfig
|
|
1061
1189
|
): OperationResponse<Paths.GetAllowedReadingForMeter.Responses.$200>
|
|
@@ -1078,7 +1206,7 @@ export interface OperationMethods {
|
|
|
1078
1206
|
*
|
|
1079
1207
|
*/
|
|
1080
1208
|
'getReadingsByInterval'(
|
|
1081
|
-
parameters
|
|
1209
|
+
parameters?: Parameters<Paths.GetReadingsByInterval.PathParameters & Paths.GetReadingsByInterval.QueryParameters> | null,
|
|
1082
1210
|
data?: any,
|
|
1083
1211
|
config?: AxiosRequestConfig
|
|
1084
1212
|
): OperationResponse<Paths.GetReadingsByInterval.Responses.$200>
|
|
@@ -1088,7 +1216,7 @@ export interface OperationMethods {
|
|
|
1088
1216
|
* Updates a meter reading.
|
|
1089
1217
|
*/
|
|
1090
1218
|
'updateMeterReading'(
|
|
1091
|
-
parameters
|
|
1219
|
+
parameters?: Parameters<Paths.UpdateMeterReading.PathParameters & Paths.UpdateMeterReading.QueryParameters> | null,
|
|
1092
1220
|
data?: Paths.UpdateMeterReading.RequestBody,
|
|
1093
1221
|
config?: AxiosRequestConfig
|
|
1094
1222
|
): OperationResponse<Paths.UpdateMeterReading.Responses.$200>
|
|
@@ -1098,7 +1226,7 @@ export interface OperationMethods {
|
|
|
1098
1226
|
* Deletes a meter reading.
|
|
1099
1227
|
*/
|
|
1100
1228
|
'deleteMeterReading'(
|
|
1101
|
-
parameters
|
|
1229
|
+
parameters?: Parameters<Paths.DeleteMeterReading.PathParameters & Paths.DeleteMeterReading.QueryParameters> | null,
|
|
1102
1230
|
data?: any,
|
|
1103
1231
|
config?: AxiosRequestConfig
|
|
1104
1232
|
): OperationResponse<Paths.DeleteMeterReading.Responses.$200>
|
|
@@ -1111,7 +1239,7 @@ export interface OperationMethods {
|
|
|
1111
1239
|
*
|
|
1112
1240
|
*/
|
|
1113
1241
|
'getDownSampleReadingsByInterval'(
|
|
1114
|
-
parameters
|
|
1242
|
+
parameters?: Parameters<Paths.GetDownSampleReadingsByInterval.PathParameters & Paths.GetDownSampleReadingsByInterval.QueryParameters> | null,
|
|
1115
1243
|
data?: any,
|
|
1116
1244
|
config?: AxiosRequestConfig
|
|
1117
1245
|
): OperationResponse<Paths.GetDownSampleReadingsByInterval.Responses.$200>
|
|
@@ -1137,7 +1265,7 @@ export interface PathsDictionary {
|
|
|
1137
1265
|
* Retrieves all meters related to a contract.
|
|
1138
1266
|
*/
|
|
1139
1267
|
'get'(
|
|
1140
|
-
parameters
|
|
1268
|
+
parameters?: Parameters<Paths.GetMetersByContractId.PathParameters> | null,
|
|
1141
1269
|
data?: any,
|
|
1142
1270
|
config?: AxiosRequestConfig
|
|
1143
1271
|
): OperationResponse<Paths.GetMetersByContractId.Responses.$200>
|
|
@@ -1149,7 +1277,7 @@ export interface PathsDictionary {
|
|
|
1149
1277
|
* Updates the details of a meter.
|
|
1150
1278
|
*/
|
|
1151
1279
|
'patch'(
|
|
1152
|
-
parameters
|
|
1280
|
+
parameters?: Parameters<Paths.UpdateMeter.PathParameters> | null,
|
|
1153
1281
|
data?: Paths.UpdateMeter.RequestBody,
|
|
1154
1282
|
config?: AxiosRequestConfig
|
|
1155
1283
|
): OperationResponse<Paths.UpdateMeter.Responses.$200>
|
|
@@ -1159,7 +1287,7 @@ export interface PathsDictionary {
|
|
|
1159
1287
|
* Retrieves the details of a meter.
|
|
1160
1288
|
*/
|
|
1161
1289
|
'get'(
|
|
1162
|
-
parameters
|
|
1290
|
+
parameters?: Parameters<Paths.GetMeter.PathParameters> | null,
|
|
1163
1291
|
data?: any,
|
|
1164
1292
|
config?: AxiosRequestConfig
|
|
1165
1293
|
): OperationResponse<Paths.GetMeter.Responses.$200>
|
|
@@ -1183,7 +1311,7 @@ export interface PathsDictionary {
|
|
|
1183
1311
|
* Retrieves the details of a meter counter.
|
|
1184
1312
|
*/
|
|
1185
1313
|
'get'(
|
|
1186
|
-
parameters
|
|
1314
|
+
parameters?: Parameters<Paths.GetCounterDetails.PathParameters> | null,
|
|
1187
1315
|
data?: any,
|
|
1188
1316
|
config?: AxiosRequestConfig
|
|
1189
1317
|
): OperationResponse<Paths.GetCounterDetails.Responses.$200>
|
|
@@ -1204,10 +1332,10 @@ export interface PathsDictionary {
|
|
|
1204
1332
|
/**
|
|
1205
1333
|
* createMeterReadings - Create Meter Readings
|
|
1206
1334
|
*
|
|
1207
|
-
* Inserts multiple meter readings at once.
|
|
1335
|
+
* Inserts multiple meter readings at once. Limited to 100 readings per request.
|
|
1208
1336
|
*/
|
|
1209
1337
|
'post'(
|
|
1210
|
-
parameters?: Parameters<
|
|
1338
|
+
parameters?: Parameters<Paths.CreateMeterReadings.QueryParameters> | null,
|
|
1211
1339
|
data?: Paths.CreateMeterReadings.RequestBody,
|
|
1212
1340
|
config?: AxiosRequestConfig
|
|
1213
1341
|
): OperationResponse<Paths.CreateMeterReadings.Responses.$200>
|
|
@@ -1231,7 +1359,7 @@ export interface PathsDictionary {
|
|
|
1231
1359
|
* Get allowed reading for the given meter
|
|
1232
1360
|
*/
|
|
1233
1361
|
'get'(
|
|
1234
|
-
parameters
|
|
1362
|
+
parameters?: Parameters<Paths.GetAllowedReadingForMeter.PathParameters & Paths.GetAllowedReadingForMeter.QueryParameters> | null,
|
|
1235
1363
|
data?: any,
|
|
1236
1364
|
config?: AxiosRequestConfig
|
|
1237
1365
|
): OperationResponse<Paths.GetAllowedReadingForMeter.Responses.$200>
|
|
@@ -1258,7 +1386,7 @@ export interface PathsDictionary {
|
|
|
1258
1386
|
*
|
|
1259
1387
|
*/
|
|
1260
1388
|
'get'(
|
|
1261
|
-
parameters
|
|
1389
|
+
parameters?: Parameters<Paths.GetReadingsByInterval.PathParameters & Paths.GetReadingsByInterval.QueryParameters> | null,
|
|
1262
1390
|
data?: any,
|
|
1263
1391
|
config?: AxiosRequestConfig
|
|
1264
1392
|
): OperationResponse<Paths.GetReadingsByInterval.Responses.$200>
|
|
@@ -1268,7 +1396,7 @@ export interface PathsDictionary {
|
|
|
1268
1396
|
* Updates a meter reading.
|
|
1269
1397
|
*/
|
|
1270
1398
|
'put'(
|
|
1271
|
-
parameters
|
|
1399
|
+
parameters?: Parameters<Paths.UpdateMeterReading.PathParameters & Paths.UpdateMeterReading.QueryParameters> | null,
|
|
1272
1400
|
data?: Paths.UpdateMeterReading.RequestBody,
|
|
1273
1401
|
config?: AxiosRequestConfig
|
|
1274
1402
|
): OperationResponse<Paths.UpdateMeterReading.Responses.$200>
|
|
@@ -1278,7 +1406,7 @@ export interface PathsDictionary {
|
|
|
1278
1406
|
* Deletes a meter reading.
|
|
1279
1407
|
*/
|
|
1280
1408
|
'delete'(
|
|
1281
|
-
parameters
|
|
1409
|
+
parameters?: Parameters<Paths.DeleteMeterReading.PathParameters & Paths.DeleteMeterReading.QueryParameters> | null,
|
|
1282
1410
|
data?: any,
|
|
1283
1411
|
config?: AxiosRequestConfig
|
|
1284
1412
|
): OperationResponse<Paths.DeleteMeterReading.Responses.$200>
|
|
@@ -1293,7 +1421,7 @@ export interface PathsDictionary {
|
|
|
1293
1421
|
*
|
|
1294
1422
|
*/
|
|
1295
1423
|
'get'(
|
|
1296
|
-
parameters
|
|
1424
|
+
parameters?: Parameters<Paths.GetDownSampleReadingsByInterval.PathParameters & Paths.GetDownSampleReadingsByInterval.QueryParameters> | null,
|
|
1297
1425
|
data?: any,
|
|
1298
1426
|
config?: AxiosRequestConfig
|
|
1299
1427
|
): OperationResponse<Paths.GetDownSampleReadingsByInterval.Responses.$200>
|