electric-coop-api 0.1.78 → 0.1.80
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/Notification.d.ts +2 -2
- package/dist/esm/models/Notification.js +2 -2
- package/dist/esm/models/PaginatedAdminNotifications.d.ts +3 -3
- package/dist/esm/models/PaginatedAdminNotifications.js +3 -3
- package/dist/models/Notification.d.ts +2 -2
- package/dist/models/Notification.js +2 -2
- package/dist/models/PaginatedAdminNotifications.d.ts +3 -3
- package/dist/models/PaginatedAdminNotifications.js +3 -3
- package/package.json +1 -1
- package/src/models/Notification.ts +4 -4
- package/src/models/PaginatedAdminNotifications.ts +10 -10
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.80
|
|
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.80 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -50,7 +50,7 @@ export function NotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'message': json['message'],
|
|
51
51
|
'data': json['data'] == null ? undefined : json['data'],
|
|
52
52
|
'read': json['read'],
|
|
53
|
-
'readAt': json['readAt'] == null ? undefined : json['readAt'],
|
|
53
|
+
'readAt': json['readAt'] == null ? undefined : (new Date(json['readAt'])),
|
|
54
54
|
'createdAt': (new Date(json['createdAt'])),
|
|
55
55
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
56
56
|
};
|
|
@@ -71,7 +71,7 @@ export function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
71
71
|
'message': value['message'],
|
|
72
72
|
'data': value['data'],
|
|
73
73
|
'read': value['read'],
|
|
74
|
-
'readAt': value['readAt'],
|
|
74
|
+
'readAt': value['readAt'] == null ? undefined : ((value['readAt']).toISOString()),
|
|
75
75
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
76
76
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
77
77
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginationMetaDto } from './PaginationMetaDto';
|
|
13
|
-
import type {
|
|
13
|
+
import type { Notification } from './Notification';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -31,10 +31,10 @@ export interface PaginatedAdminNotifications {
|
|
|
31
31
|
error?: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {Array<
|
|
34
|
+
* @type {Array<Notification>}
|
|
35
35
|
* @memberof PaginatedAdminNotifications
|
|
36
36
|
*/
|
|
37
|
-
data: Array<
|
|
37
|
+
data: Array<Notification>;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {PaginationMetaDto}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { PaginationMetaDtoFromJSON, PaginationMetaDtoToJSON, } from './PaginationMetaDto';
|
|
15
|
-
import {
|
|
15
|
+
import { NotificationFromJSON, NotificationToJSON, } from './Notification';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the PaginatedAdminNotifications interface.
|
|
18
18
|
*/
|
|
@@ -35,7 +35,7 @@ export function PaginatedAdminNotificationsFromJSONTyped(json, ignoreDiscriminat
|
|
|
35
35
|
return {
|
|
36
36
|
'success': json['success'],
|
|
37
37
|
'error': json['error'] == null ? undefined : json['error'],
|
|
38
|
-
'data': (json['data'].map(
|
|
38
|
+
'data': (json['data'].map(NotificationFromJSON)),
|
|
39
39
|
'meta': PaginationMetaDtoFromJSON(json['meta']),
|
|
40
40
|
};
|
|
41
41
|
}
|
|
@@ -49,7 +49,7 @@ export function PaginatedAdminNotificationsToJSONTyped(value, ignoreDiscriminato
|
|
|
49
49
|
return {
|
|
50
50
|
'success': value['success'],
|
|
51
51
|
'error': value['error'],
|
|
52
|
-
'data': (value['data'].map(
|
|
52
|
+
'data': (value['data'].map(NotificationToJSON)),
|
|
53
53
|
'meta': PaginationMetaDtoToJSON(value['meta']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@ function NotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'message': json['message'],
|
|
58
58
|
'data': json['data'] == null ? undefined : json['data'],
|
|
59
59
|
'read': json['read'],
|
|
60
|
-
'readAt': json['readAt'] == null ? undefined : json['readAt'],
|
|
60
|
+
'readAt': json['readAt'] == null ? undefined : (new Date(json['readAt'])),
|
|
61
61
|
'createdAt': (new Date(json['createdAt'])),
|
|
62
62
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
63
63
|
};
|
|
@@ -78,7 +78,7 @@ function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
78
|
'message': value['message'],
|
|
79
79
|
'data': value['data'],
|
|
80
80
|
'read': value['read'],
|
|
81
|
-
'readAt': value['readAt'],
|
|
81
|
+
'readAt': value['readAt'] == null ? undefined : ((value['readAt']).toISOString()),
|
|
82
82
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
83
83
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
84
84
|
};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { PaginationMetaDto } from './PaginationMetaDto';
|
|
13
|
-
import type {
|
|
13
|
+
import type { Notification } from './Notification';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -31,10 +31,10 @@ export interface PaginatedAdminNotifications {
|
|
|
31
31
|
error?: string;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @type {Array<
|
|
34
|
+
* @type {Array<Notification>}
|
|
35
35
|
* @memberof PaginatedAdminNotifications
|
|
36
36
|
*/
|
|
37
|
-
data: Array<
|
|
37
|
+
data: Array<Notification>;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {PaginationMetaDto}
|
|
@@ -19,7 +19,7 @@ exports.PaginatedAdminNotificationsFromJSONTyped = PaginatedAdminNotificationsFr
|
|
|
19
19
|
exports.PaginatedAdminNotificationsToJSON = PaginatedAdminNotificationsToJSON;
|
|
20
20
|
exports.PaginatedAdminNotificationsToJSONTyped = PaginatedAdminNotificationsToJSONTyped;
|
|
21
21
|
const PaginationMetaDto_1 = require("./PaginationMetaDto");
|
|
22
|
-
const
|
|
22
|
+
const Notification_1 = require("./Notification");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the PaginatedAdminNotifications interface.
|
|
25
25
|
*/
|
|
@@ -42,7 +42,7 @@ function PaginatedAdminNotificationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
return {
|
|
43
43
|
'success': json['success'],
|
|
44
44
|
'error': json['error'] == null ? undefined : json['error'],
|
|
45
|
-
'data': (json['data'].map(
|
|
45
|
+
'data': (json['data'].map(Notification_1.NotificationFromJSON)),
|
|
46
46
|
'meta': (0, PaginationMetaDto_1.PaginationMetaDtoFromJSON)(json['meta']),
|
|
47
47
|
};
|
|
48
48
|
}
|
|
@@ -56,7 +56,7 @@ function PaginatedAdminNotificationsToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
56
56
|
return {
|
|
57
57
|
'success': value['success'],
|
|
58
58
|
'error': value['error'],
|
|
59
|
-
'data': (value['data'].map(
|
|
59
|
+
'data': (value['data'].map(Notification_1.NotificationToJSON)),
|
|
60
60
|
'meta': (0, PaginationMetaDto_1.PaginationMetaDtoToJSON)(value['meta']),
|
|
61
61
|
};
|
|
62
62
|
}
|
package/package.json
CHANGED
|
@@ -77,10 +77,10 @@ export interface Notification {
|
|
|
77
77
|
read: boolean;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
|
-
* @type {
|
|
80
|
+
* @type {Date}
|
|
81
81
|
* @memberof Notification
|
|
82
82
|
*/
|
|
83
|
-
readAt?:
|
|
83
|
+
readAt?: Date;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {Date}
|
|
@@ -130,7 +130,7 @@ export function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
130
130
|
'message': json['message'],
|
|
131
131
|
'data': json['data'] == null ? undefined : json['data'],
|
|
132
132
|
'read': json['read'],
|
|
133
|
-
'readAt': json['readAt'] == null ? undefined : json['readAt'],
|
|
133
|
+
'readAt': json['readAt'] == null ? undefined : (new Date(json['readAt'])),
|
|
134
134
|
'createdAt': (new Date(json['createdAt'])),
|
|
135
135
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
136
136
|
};
|
|
@@ -155,7 +155,7 @@ export function NotificationToJSONTyped(value?: Notification | null, ignoreDiscr
|
|
|
155
155
|
'message': value['message'],
|
|
156
156
|
'data': value['data'],
|
|
157
157
|
'read': value['read'],
|
|
158
|
-
'readAt': value['readAt'],
|
|
158
|
+
'readAt': value['readAt'] == null ? undefined : ((value['readAt']).toISOString()),
|
|
159
159
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
160
160
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
161
161
|
};
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
PaginationMetaDtoToJSON,
|
|
21
21
|
PaginationMetaDtoToJSONTyped,
|
|
22
22
|
} from './PaginationMetaDto';
|
|
23
|
-
import type {
|
|
23
|
+
import type { Notification } from './Notification';
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './
|
|
25
|
+
NotificationFromJSON,
|
|
26
|
+
NotificationFromJSONTyped,
|
|
27
|
+
NotificationToJSON,
|
|
28
|
+
NotificationToJSONTyped,
|
|
29
|
+
} from './Notification';
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
@@ -48,10 +48,10 @@ export interface PaginatedAdminNotifications {
|
|
|
48
48
|
error?: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {Array<
|
|
51
|
+
* @type {Array<Notification>}
|
|
52
52
|
* @memberof PaginatedAdminNotifications
|
|
53
53
|
*/
|
|
54
|
-
data: Array<
|
|
54
|
+
data: Array<Notification>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {PaginationMetaDto}
|
|
@@ -82,7 +82,7 @@ export function PaginatedAdminNotificationsFromJSONTyped(json: any, ignoreDiscri
|
|
|
82
82
|
|
|
83
83
|
'success': json['success'],
|
|
84
84
|
'error': json['error'] == null ? undefined : json['error'],
|
|
85
|
-
'data': ((json['data'] as Array<any>).map(
|
|
85
|
+
'data': ((json['data'] as Array<any>).map(NotificationFromJSON)),
|
|
86
86
|
'meta': PaginationMetaDtoFromJSON(json['meta']),
|
|
87
87
|
};
|
|
88
88
|
}
|
|
@@ -100,7 +100,7 @@ export function PaginatedAdminNotificationsToJSONTyped(value?: PaginatedAdminNot
|
|
|
100
100
|
|
|
101
101
|
'success': value['success'],
|
|
102
102
|
'error': value['error'],
|
|
103
|
-
'data': ((value['data'] as Array<any>).map(
|
|
103
|
+
'data': ((value['data'] as Array<any>).map(NotificationToJSON)),
|
|
104
104
|
'meta': PaginationMetaDtoToJSON(value['meta']),
|
|
105
105
|
};
|
|
106
106
|
}
|