electric-coop-api 0.1.23 → 0.1.24
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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.24
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install electric-coop-api@0.1.
|
|
39
|
+
npm install electric-coop-api@0.1.24 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -16,6 +16,48 @@ import type { BillStatusEnum } from './BillStatusEnum';
|
|
|
16
16
|
* @interface UpdateBillDto
|
|
17
17
|
*/
|
|
18
18
|
export interface UpdateBillDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateBillDto
|
|
23
|
+
*/
|
|
24
|
+
consumerId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateBillDto
|
|
29
|
+
*/
|
|
30
|
+
billingPeriod?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof UpdateBillDto
|
|
35
|
+
*/
|
|
36
|
+
dueDate?: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof UpdateBillDto
|
|
41
|
+
*/
|
|
42
|
+
readingDate?: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof UpdateBillDto
|
|
47
|
+
*/
|
|
48
|
+
previousReading?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof UpdateBillDto
|
|
53
|
+
*/
|
|
54
|
+
currentReading?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof UpdateBillDto
|
|
59
|
+
*/
|
|
60
|
+
consumption?: number;
|
|
19
61
|
/**
|
|
20
62
|
*
|
|
21
63
|
* @type {BillStatusEnum}
|
|
@@ -26,6 +26,13 @@ export function UpdateBillDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26
26
|
return json;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
+
'consumerId': json['consumerId'] == null ? undefined : json['consumerId'],
|
|
30
|
+
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
31
|
+
'dueDate': json['dueDate'] == null ? undefined : (new Date(json['dueDate'])),
|
|
32
|
+
'readingDate': json['readingDate'] == null ? undefined : (new Date(json['readingDate'])),
|
|
33
|
+
'previousReading': json['previousReading'] == null ? undefined : json['previousReading'],
|
|
34
|
+
'currentReading': json['currentReading'] == null ? undefined : json['currentReading'],
|
|
35
|
+
'consumption': json['consumption'] == null ? undefined : json['consumption'],
|
|
29
36
|
'status': json['status'] == null ? undefined : BillStatusEnumFromJSON(json['status']),
|
|
30
37
|
};
|
|
31
38
|
}
|
|
@@ -37,6 +44,13 @@ export function UpdateBillDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
37
44
|
return value;
|
|
38
45
|
}
|
|
39
46
|
return {
|
|
47
|
+
'consumerId': value['consumerId'],
|
|
48
|
+
'billingPeriod': value['billingPeriod'],
|
|
49
|
+
'dueDate': value['dueDate'] == null ? undefined : ((value['dueDate']).toISOString().substring(0, 10)),
|
|
50
|
+
'readingDate': value['readingDate'] == null ? undefined : ((value['readingDate']).toISOString().substring(0, 10)),
|
|
51
|
+
'previousReading': value['previousReading'],
|
|
52
|
+
'currentReading': value['currentReading'],
|
|
53
|
+
'consumption': value['consumption'],
|
|
40
54
|
'status': BillStatusEnumToJSON(value['status']),
|
|
41
55
|
};
|
|
42
56
|
}
|
|
@@ -16,6 +16,48 @@ import type { BillStatusEnum } from './BillStatusEnum';
|
|
|
16
16
|
* @interface UpdateBillDto
|
|
17
17
|
*/
|
|
18
18
|
export interface UpdateBillDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateBillDto
|
|
23
|
+
*/
|
|
24
|
+
consumerId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateBillDto
|
|
29
|
+
*/
|
|
30
|
+
billingPeriod?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof UpdateBillDto
|
|
35
|
+
*/
|
|
36
|
+
dueDate?: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof UpdateBillDto
|
|
41
|
+
*/
|
|
42
|
+
readingDate?: Date;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof UpdateBillDto
|
|
47
|
+
*/
|
|
48
|
+
previousReading?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof UpdateBillDto
|
|
53
|
+
*/
|
|
54
|
+
currentReading?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof UpdateBillDto
|
|
59
|
+
*/
|
|
60
|
+
consumption?: number;
|
|
19
61
|
/**
|
|
20
62
|
*
|
|
21
63
|
* @type {BillStatusEnum}
|
|
@@ -33,6 +33,13 @@ function UpdateBillDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
|
+
'consumerId': json['consumerId'] == null ? undefined : json['consumerId'],
|
|
37
|
+
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
38
|
+
'dueDate': json['dueDate'] == null ? undefined : (new Date(json['dueDate'])),
|
|
39
|
+
'readingDate': json['readingDate'] == null ? undefined : (new Date(json['readingDate'])),
|
|
40
|
+
'previousReading': json['previousReading'] == null ? undefined : json['previousReading'],
|
|
41
|
+
'currentReading': json['currentReading'] == null ? undefined : json['currentReading'],
|
|
42
|
+
'consumption': json['consumption'] == null ? undefined : json['consumption'],
|
|
36
43
|
'status': json['status'] == null ? undefined : (0, BillStatusEnum_1.BillStatusEnumFromJSON)(json['status']),
|
|
37
44
|
};
|
|
38
45
|
}
|
|
@@ -44,6 +51,13 @@ function UpdateBillDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
44
51
|
return value;
|
|
45
52
|
}
|
|
46
53
|
return {
|
|
54
|
+
'consumerId': value['consumerId'],
|
|
55
|
+
'billingPeriod': value['billingPeriod'],
|
|
56
|
+
'dueDate': value['dueDate'] == null ? undefined : ((value['dueDate']).toISOString().substring(0, 10)),
|
|
57
|
+
'readingDate': value['readingDate'] == null ? undefined : ((value['readingDate']).toISOString().substring(0, 10)),
|
|
58
|
+
'previousReading': value['previousReading'],
|
|
59
|
+
'currentReading': value['currentReading'],
|
|
60
|
+
'consumption': value['consumption'],
|
|
47
61
|
'status': (0, BillStatusEnum_1.BillStatusEnumToJSON)(value['status']),
|
|
48
62
|
};
|
|
49
63
|
}
|
package/package.json
CHANGED
|
@@ -27,6 +27,48 @@ import {
|
|
|
27
27
|
* @interface UpdateBillDto
|
|
28
28
|
*/
|
|
29
29
|
export interface UpdateBillDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateBillDto
|
|
34
|
+
*/
|
|
35
|
+
consumerId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateBillDto
|
|
40
|
+
*/
|
|
41
|
+
billingPeriod?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof UpdateBillDto
|
|
46
|
+
*/
|
|
47
|
+
dueDate?: Date;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof UpdateBillDto
|
|
52
|
+
*/
|
|
53
|
+
readingDate?: Date;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof UpdateBillDto
|
|
58
|
+
*/
|
|
59
|
+
previousReading?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UpdateBillDto
|
|
64
|
+
*/
|
|
65
|
+
currentReading?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UpdateBillDto
|
|
70
|
+
*/
|
|
71
|
+
consumption?: number;
|
|
30
72
|
/**
|
|
31
73
|
*
|
|
32
74
|
* @type {BillStatusEnum}
|
|
@@ -54,6 +96,13 @@ export function UpdateBillDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
54
96
|
}
|
|
55
97
|
return {
|
|
56
98
|
|
|
99
|
+
'consumerId': json['consumerId'] == null ? undefined : json['consumerId'],
|
|
100
|
+
'billingPeriod': json['billingPeriod'] == null ? undefined : json['billingPeriod'],
|
|
101
|
+
'dueDate': json['dueDate'] == null ? undefined : (new Date(json['dueDate'])),
|
|
102
|
+
'readingDate': json['readingDate'] == null ? undefined : (new Date(json['readingDate'])),
|
|
103
|
+
'previousReading': json['previousReading'] == null ? undefined : json['previousReading'],
|
|
104
|
+
'currentReading': json['currentReading'] == null ? undefined : json['currentReading'],
|
|
105
|
+
'consumption': json['consumption'] == null ? undefined : json['consumption'],
|
|
57
106
|
'status': json['status'] == null ? undefined : BillStatusEnumFromJSON(json['status']),
|
|
58
107
|
};
|
|
59
108
|
}
|
|
@@ -69,6 +118,13 @@ export function UpdateBillDtoToJSONTyped(value?: UpdateBillDto | null, ignoreDis
|
|
|
69
118
|
|
|
70
119
|
return {
|
|
71
120
|
|
|
121
|
+
'consumerId': value['consumerId'],
|
|
122
|
+
'billingPeriod': value['billingPeriod'],
|
|
123
|
+
'dueDate': value['dueDate'] == null ? undefined : ((value['dueDate']).toISOString().substring(0,10)),
|
|
124
|
+
'readingDate': value['readingDate'] == null ? undefined : ((value['readingDate']).toISOString().substring(0,10)),
|
|
125
|
+
'previousReading': value['previousReading'],
|
|
126
|
+
'currentReading': value['currentReading'],
|
|
127
|
+
'consumption': value['consumption'],
|
|
72
128
|
'status': BillStatusEnumToJSON(value['status']),
|
|
73
129
|
};
|
|
74
130
|
}
|