electric-coop-api 0.1.17 → 0.1.19
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 +2 -2
- package/dist/esm/models/ConsumerBasicInfoDto.d.ts +21 -2
- package/dist/esm/models/ConsumerBasicInfoDto.js +13 -2
- package/dist/models/ConsumerBasicInfoDto.d.ts +21 -2
- package/dist/models/ConsumerBasicInfoDto.js +13 -2
- package/package.json +1 -1
- package/src/models/ConsumerBasicInfoDto.ts +40 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.19
|
|
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.19 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -9,12 +9,19 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ConsumerTypeEnum } from './ConsumerTypeEnum';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
15
16
|
* @interface ConsumerBasicInfoDto
|
|
16
17
|
*/
|
|
17
18
|
export interface ConsumerBasicInfoDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConsumerBasicInfoDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
18
25
|
/**
|
|
19
26
|
*
|
|
20
27
|
* @type {string}
|
|
@@ -29,10 +36,22 @@ export interface ConsumerBasicInfoDto {
|
|
|
29
36
|
name: string;
|
|
30
37
|
/**
|
|
31
38
|
*
|
|
32
|
-
* @type {
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ConsumerBasicInfoDto
|
|
41
|
+
*/
|
|
42
|
+
meterNumber?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ConsumerBasicInfoDto
|
|
47
|
+
*/
|
|
48
|
+
address: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ConsumerTypeEnum}
|
|
33
52
|
* @memberof ConsumerBasicInfoDto
|
|
34
53
|
*/
|
|
35
|
-
|
|
54
|
+
type: ConsumerTypeEnum;
|
|
36
55
|
}
|
|
37
56
|
/**
|
|
38
57
|
* Check if a given object implements the ConsumerBasicInfoDto interface.
|
|
@@ -11,15 +11,20 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ConsumerTypeEnumFromJSON, ConsumerTypeEnumToJSON, } from './ConsumerTypeEnum';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the ConsumerBasicInfoDto interface.
|
|
16
17
|
*/
|
|
17
18
|
export function instanceOfConsumerBasicInfoDto(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
18
21
|
if (!('accountNumber' in value) || value['accountNumber'] === undefined)
|
|
19
22
|
return false;
|
|
20
23
|
if (!('name' in value) || value['name'] === undefined)
|
|
21
24
|
return false;
|
|
22
|
-
if (!('
|
|
25
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
23
28
|
return false;
|
|
24
29
|
return true;
|
|
25
30
|
}
|
|
@@ -31,9 +36,12 @@ export function ConsumerBasicInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
36
|
return json;
|
|
32
37
|
}
|
|
33
38
|
return {
|
|
39
|
+
'id': json['id'],
|
|
34
40
|
'accountNumber': json['accountNumber'],
|
|
35
41
|
'name': json['name'],
|
|
36
|
-
'meterNumber': json['meterNumber'],
|
|
42
|
+
'meterNumber': json['meterNumber'] == null ? undefined : json['meterNumber'],
|
|
43
|
+
'address': json['address'],
|
|
44
|
+
'type': ConsumerTypeEnumFromJSON(json['type']),
|
|
37
45
|
};
|
|
38
46
|
}
|
|
39
47
|
export function ConsumerBasicInfoDtoToJSON(json) {
|
|
@@ -44,8 +52,11 @@ export function ConsumerBasicInfoDtoToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
44
52
|
return value;
|
|
45
53
|
}
|
|
46
54
|
return {
|
|
55
|
+
'id': value['id'],
|
|
47
56
|
'accountNumber': value['accountNumber'],
|
|
48
57
|
'name': value['name'],
|
|
49
58
|
'meterNumber': value['meterNumber'],
|
|
59
|
+
'address': value['address'],
|
|
60
|
+
'type': ConsumerTypeEnumToJSON(value['type']),
|
|
50
61
|
};
|
|
51
62
|
}
|
|
@@ -9,12 +9,19 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ConsumerTypeEnum } from './ConsumerTypeEnum';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
15
16
|
* @interface ConsumerBasicInfoDto
|
|
16
17
|
*/
|
|
17
18
|
export interface ConsumerBasicInfoDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ConsumerBasicInfoDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
18
25
|
/**
|
|
19
26
|
*
|
|
20
27
|
* @type {string}
|
|
@@ -29,10 +36,22 @@ export interface ConsumerBasicInfoDto {
|
|
|
29
36
|
name: string;
|
|
30
37
|
/**
|
|
31
38
|
*
|
|
32
|
-
* @type {
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ConsumerBasicInfoDto
|
|
41
|
+
*/
|
|
42
|
+
meterNumber?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ConsumerBasicInfoDto
|
|
47
|
+
*/
|
|
48
|
+
address: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ConsumerTypeEnum}
|
|
33
52
|
* @memberof ConsumerBasicInfoDto
|
|
34
53
|
*/
|
|
35
|
-
|
|
54
|
+
type: ConsumerTypeEnum;
|
|
36
55
|
}
|
|
37
56
|
/**
|
|
38
57
|
* Check if a given object implements the ConsumerBasicInfoDto interface.
|
|
@@ -18,15 +18,20 @@ exports.ConsumerBasicInfoDtoFromJSON = ConsumerBasicInfoDtoFromJSON;
|
|
|
18
18
|
exports.ConsumerBasicInfoDtoFromJSONTyped = ConsumerBasicInfoDtoFromJSONTyped;
|
|
19
19
|
exports.ConsumerBasicInfoDtoToJSON = ConsumerBasicInfoDtoToJSON;
|
|
20
20
|
exports.ConsumerBasicInfoDtoToJSONTyped = ConsumerBasicInfoDtoToJSONTyped;
|
|
21
|
+
const ConsumerTypeEnum_1 = require("./ConsumerTypeEnum");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the ConsumerBasicInfoDto interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfConsumerBasicInfoDto(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
25
28
|
if (!('accountNumber' in value) || value['accountNumber'] === undefined)
|
|
26
29
|
return false;
|
|
27
30
|
if (!('name' in value) || value['name'] === undefined)
|
|
28
31
|
return false;
|
|
29
|
-
if (!('
|
|
32
|
+
if (!('address' in value) || value['address'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
35
|
return false;
|
|
31
36
|
return true;
|
|
32
37
|
}
|
|
@@ -38,9 +43,12 @@ function ConsumerBasicInfoDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
43
|
return json;
|
|
39
44
|
}
|
|
40
45
|
return {
|
|
46
|
+
'id': json['id'],
|
|
41
47
|
'accountNumber': json['accountNumber'],
|
|
42
48
|
'name': json['name'],
|
|
43
|
-
'meterNumber': json['meterNumber'],
|
|
49
|
+
'meterNumber': json['meterNumber'] == null ? undefined : json['meterNumber'],
|
|
50
|
+
'address': json['address'],
|
|
51
|
+
'type': (0, ConsumerTypeEnum_1.ConsumerTypeEnumFromJSON)(json['type']),
|
|
44
52
|
};
|
|
45
53
|
}
|
|
46
54
|
function ConsumerBasicInfoDtoToJSON(json) {
|
|
@@ -51,8 +59,11 @@ function ConsumerBasicInfoDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
59
|
return value;
|
|
52
60
|
}
|
|
53
61
|
return {
|
|
62
|
+
'id': value['id'],
|
|
54
63
|
'accountNumber': value['accountNumber'],
|
|
55
64
|
'name': value['name'],
|
|
56
65
|
'meterNumber': value['meterNumber'],
|
|
66
|
+
'address': value['address'],
|
|
67
|
+
'type': (0, ConsumerTypeEnum_1.ConsumerTypeEnumToJSON)(value['type']),
|
|
57
68
|
};
|
|
58
69
|
}
|
package/package.json
CHANGED
|
@@ -13,12 +13,26 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ConsumerTypeEnum } from './ConsumerTypeEnum';
|
|
17
|
+
import {
|
|
18
|
+
ConsumerTypeEnumFromJSON,
|
|
19
|
+
ConsumerTypeEnumFromJSONTyped,
|
|
20
|
+
ConsumerTypeEnumToJSON,
|
|
21
|
+
ConsumerTypeEnumToJSONTyped,
|
|
22
|
+
} from './ConsumerTypeEnum';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
19
27
|
* @interface ConsumerBasicInfoDto
|
|
20
28
|
*/
|
|
21
29
|
export interface ConsumerBasicInfoDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ConsumerBasicInfoDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
22
36
|
/**
|
|
23
37
|
*
|
|
24
38
|
* @type {string}
|
|
@@ -33,19 +47,35 @@ export interface ConsumerBasicInfoDto {
|
|
|
33
47
|
name: string;
|
|
34
48
|
/**
|
|
35
49
|
*
|
|
36
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ConsumerBasicInfoDto
|
|
52
|
+
*/
|
|
53
|
+
meterNumber?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
37
57
|
* @memberof ConsumerBasicInfoDto
|
|
38
58
|
*/
|
|
39
|
-
|
|
59
|
+
address: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {ConsumerTypeEnum}
|
|
63
|
+
* @memberof ConsumerBasicInfoDto
|
|
64
|
+
*/
|
|
65
|
+
type: ConsumerTypeEnum;
|
|
40
66
|
}
|
|
41
67
|
|
|
68
|
+
|
|
69
|
+
|
|
42
70
|
/**
|
|
43
71
|
* Check if a given object implements the ConsumerBasicInfoDto interface.
|
|
44
72
|
*/
|
|
45
73
|
export function instanceOfConsumerBasicInfoDto(value: object): value is ConsumerBasicInfoDto {
|
|
74
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
46
75
|
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
47
76
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
-
if (!('
|
|
77
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
78
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
49
79
|
return true;
|
|
50
80
|
}
|
|
51
81
|
|
|
@@ -59,9 +89,12 @@ export function ConsumerBasicInfoDtoFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
59
89
|
}
|
|
60
90
|
return {
|
|
61
91
|
|
|
92
|
+
'id': json['id'],
|
|
62
93
|
'accountNumber': json['accountNumber'],
|
|
63
94
|
'name': json['name'],
|
|
64
|
-
'meterNumber': json['meterNumber'],
|
|
95
|
+
'meterNumber': json['meterNumber'] == null ? undefined : json['meterNumber'],
|
|
96
|
+
'address': json['address'],
|
|
97
|
+
'type': ConsumerTypeEnumFromJSON(json['type']),
|
|
65
98
|
};
|
|
66
99
|
}
|
|
67
100
|
|
|
@@ -76,9 +109,12 @@ export function ConsumerBasicInfoDtoToJSONTyped(value?: ConsumerBasicInfoDto | n
|
|
|
76
109
|
|
|
77
110
|
return {
|
|
78
111
|
|
|
112
|
+
'id': value['id'],
|
|
79
113
|
'accountNumber': value['accountNumber'],
|
|
80
114
|
'name': value['name'],
|
|
81
115
|
'meterNumber': value['meterNumber'],
|
|
116
|
+
'address': value['address'],
|
|
117
|
+
'type': ConsumerTypeEnumToJSON(value['type']),
|
|
82
118
|
};
|
|
83
119
|
}
|
|
84
120
|
|