electric-coop-api 0.1.34 → 0.1.36
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/Consumer.d.ts +2 -2
- package/dist/esm/models/Consumer.js +2 -2
- package/dist/esm/models/UserPermissionEnum.d.ts +4 -0
- package/dist/esm/models/UserPermissionEnum.js +4 -0
- package/dist/models/Consumer.d.ts +2 -2
- package/dist/models/Consumer.js +2 -2
- package/dist/models/UserPermissionEnum.d.ts +4 -0
- package/dist/models/UserPermissionEnum.js +4 -0
- package/package.json +1 -1
- package/src/models/Consumer.ts +4 -4
- package/src/models/UserPermissionEnum.ts +4 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.36
|
|
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.36 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -71,7 +71,7 @@ export function ConsumerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
71
|
'address': json['address'],
|
|
72
72
|
'email': json['email'] == null ? undefined : json['email'],
|
|
73
73
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
74
|
-
'birthdate': json['birthdate'] == null ? undefined : json['birthdate'],
|
|
74
|
+
'birthdate': json['birthdate'] == null ? undefined : (new Date(json['birthdate'])),
|
|
75
75
|
'role': ConsumerRoleEnumFromJSON(json['role']),
|
|
76
76
|
'status': ConsumerStatusEnumFromJSON(json['status']),
|
|
77
77
|
'isPrimary': json['isPrimary'],
|
|
@@ -103,7 +103,7 @@ export function ConsumerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
103
103
|
'address': value['address'],
|
|
104
104
|
'email': value['email'],
|
|
105
105
|
'mobile': value['mobile'],
|
|
106
|
-
'birthdate': value['birthdate'],
|
|
106
|
+
'birthdate': value['birthdate'] == null ? undefined : ((value['birthdate']).toISOString()),
|
|
107
107
|
'role': ConsumerRoleEnumToJSON(value['role']),
|
|
108
108
|
'status': ConsumerStatusEnumToJSON(value['status']),
|
|
109
109
|
'isPrimary': value['isPrimary'],
|
|
@@ -18,7 +18,11 @@ export declare const UserPermissionEnum: {
|
|
|
18
18
|
readonly ConsumersView: "consumers.view";
|
|
19
19
|
readonly ConsumersCreate: "consumers.create";
|
|
20
20
|
readonly ConsumersEdit: "consumers.edit";
|
|
21
|
+
readonly ConsumersDelete: "consumers.delete";
|
|
21
22
|
readonly UsersView: "users.view";
|
|
23
|
+
readonly UsersCreate: "users.create";
|
|
24
|
+
readonly UsersEdit: "users.edit";
|
|
25
|
+
readonly Users: "users.*";
|
|
22
26
|
readonly BillsView: "bills.view";
|
|
23
27
|
readonly BillsCreate: "bills.create";
|
|
24
28
|
readonly Bills: "bills.*";
|
|
@@ -20,7 +20,11 @@ export const UserPermissionEnum = {
|
|
|
20
20
|
ConsumersView: 'consumers.view',
|
|
21
21
|
ConsumersCreate: 'consumers.create',
|
|
22
22
|
ConsumersEdit: 'consumers.edit',
|
|
23
|
+
ConsumersDelete: 'consumers.delete',
|
|
23
24
|
UsersView: 'users.view',
|
|
25
|
+
UsersCreate: 'users.create',
|
|
26
|
+
UsersEdit: 'users.edit',
|
|
27
|
+
Users: 'users.*',
|
|
24
28
|
BillsView: 'bills.view',
|
|
25
29
|
BillsCreate: 'bills.create',
|
|
26
30
|
Bills: 'bills.*',
|
package/dist/models/Consumer.js
CHANGED
|
@@ -78,7 +78,7 @@ function ConsumerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
78
78
|
'address': json['address'],
|
|
79
79
|
'email': json['email'] == null ? undefined : json['email'],
|
|
80
80
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
81
|
-
'birthdate': json['birthdate'] == null ? undefined : json['birthdate'],
|
|
81
|
+
'birthdate': json['birthdate'] == null ? undefined : (new Date(json['birthdate'])),
|
|
82
82
|
'role': (0, ConsumerRoleEnum_1.ConsumerRoleEnumFromJSON)(json['role']),
|
|
83
83
|
'status': (0, ConsumerStatusEnum_1.ConsumerStatusEnumFromJSON)(json['status']),
|
|
84
84
|
'isPrimary': json['isPrimary'],
|
|
@@ -110,7 +110,7 @@ function ConsumerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
110
110
|
'address': value['address'],
|
|
111
111
|
'email': value['email'],
|
|
112
112
|
'mobile': value['mobile'],
|
|
113
|
-
'birthdate': value['birthdate'],
|
|
113
|
+
'birthdate': value['birthdate'] == null ? undefined : ((value['birthdate']).toISOString()),
|
|
114
114
|
'role': (0, ConsumerRoleEnum_1.ConsumerRoleEnumToJSON)(value['role']),
|
|
115
115
|
'status': (0, ConsumerStatusEnum_1.ConsumerStatusEnumToJSON)(value['status']),
|
|
116
116
|
'isPrimary': value['isPrimary'],
|
|
@@ -18,7 +18,11 @@ export declare const UserPermissionEnum: {
|
|
|
18
18
|
readonly ConsumersView: "consumers.view";
|
|
19
19
|
readonly ConsumersCreate: "consumers.create";
|
|
20
20
|
readonly ConsumersEdit: "consumers.edit";
|
|
21
|
+
readonly ConsumersDelete: "consumers.delete";
|
|
21
22
|
readonly UsersView: "users.view";
|
|
23
|
+
readonly UsersCreate: "users.create";
|
|
24
|
+
readonly UsersEdit: "users.edit";
|
|
25
|
+
readonly Users: "users.*";
|
|
22
26
|
readonly BillsView: "bills.view";
|
|
23
27
|
readonly BillsCreate: "bills.create";
|
|
24
28
|
readonly Bills: "bills.*";
|
|
@@ -28,7 +28,11 @@ exports.UserPermissionEnum = {
|
|
|
28
28
|
ConsumersView: 'consumers.view',
|
|
29
29
|
ConsumersCreate: 'consumers.create',
|
|
30
30
|
ConsumersEdit: 'consumers.edit',
|
|
31
|
+
ConsumersDelete: 'consumers.delete',
|
|
31
32
|
UsersView: 'users.view',
|
|
33
|
+
UsersCreate: 'users.create',
|
|
34
|
+
UsersEdit: 'users.edit',
|
|
35
|
+
Users: 'users.*',
|
|
32
36
|
BillsView: 'bills.view',
|
|
33
37
|
BillsCreate: 'bills.create',
|
|
34
38
|
Bills: 'bills.*',
|
package/package.json
CHANGED
package/src/models/Consumer.ts
CHANGED
|
@@ -162,10 +162,10 @@ export interface Consumer {
|
|
|
162
162
|
mobile?: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
|
-
* @type {
|
|
165
|
+
* @type {Date}
|
|
166
166
|
* @memberof Consumer
|
|
167
167
|
*/
|
|
168
|
-
birthdate?:
|
|
168
|
+
birthdate?: Date;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {ConsumerRoleEnum}
|
|
@@ -255,7 +255,7 @@ export function ConsumerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
255
255
|
'address': json['address'],
|
|
256
256
|
'email': json['email'] == null ? undefined : json['email'],
|
|
257
257
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
258
|
-
'birthdate': json['birthdate'] == null ? undefined : json['birthdate'],
|
|
258
|
+
'birthdate': json['birthdate'] == null ? undefined : (new Date(json['birthdate'])),
|
|
259
259
|
'role': ConsumerRoleEnumFromJSON(json['role']),
|
|
260
260
|
'status': ConsumerStatusEnumFromJSON(json['status']),
|
|
261
261
|
'isPrimary': json['isPrimary'],
|
|
@@ -291,7 +291,7 @@ export function ConsumerToJSONTyped(value?: Consumer | null, ignoreDiscriminator
|
|
|
291
291
|
'address': value['address'],
|
|
292
292
|
'email': value['email'],
|
|
293
293
|
'mobile': value['mobile'],
|
|
294
|
-
'birthdate': value['birthdate'],
|
|
294
|
+
'birthdate': value['birthdate'] == null ? undefined : ((value['birthdate']).toISOString()),
|
|
295
295
|
'role': ConsumerRoleEnumToJSON(value['role']),
|
|
296
296
|
'status': ConsumerStatusEnumToJSON(value['status']),
|
|
297
297
|
'isPrimary': value['isPrimary'],
|
|
@@ -22,7 +22,11 @@ export const UserPermissionEnum = {
|
|
|
22
22
|
ConsumersView: 'consumers.view',
|
|
23
23
|
ConsumersCreate: 'consumers.create',
|
|
24
24
|
ConsumersEdit: 'consumers.edit',
|
|
25
|
+
ConsumersDelete: 'consumers.delete',
|
|
25
26
|
UsersView: 'users.view',
|
|
27
|
+
UsersCreate: 'users.create',
|
|
28
|
+
UsersEdit: 'users.edit',
|
|
29
|
+
Users: 'users.*',
|
|
26
30
|
BillsView: 'bills.view',
|
|
27
31
|
BillsCreate: 'bills.create',
|
|
28
32
|
Bills: 'bills.*',
|