electric-coop-api 0.1.78 → 0.1.79

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.78
1
+ ## electric-coop-api@0.1.79
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.78 --save
39
+ npm install electric-coop-api@0.1.79 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaginationMetaDto } from './PaginationMetaDto';
13
- import type { PaginatedResponseDto } from './PaginatedResponseDto';
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<PaginatedResponseDto>}
34
+ * @type {Array<Notification>}
35
35
  * @memberof PaginatedAdminNotifications
36
36
  */
37
- data: Array<PaginatedResponseDto>;
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 { PaginatedResponseDtoFromJSON, PaginatedResponseDtoToJSON, } from './PaginatedResponseDto';
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(PaginatedResponseDtoFromJSON)),
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(PaginatedResponseDtoToJSON)),
52
+ 'data': (value['data'].map(NotificationToJSON)),
53
53
  'meta': PaginationMetaDtoToJSON(value['meta']),
54
54
  };
55
55
  }
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaginationMetaDto } from './PaginationMetaDto';
13
- import type { PaginatedResponseDto } from './PaginatedResponseDto';
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<PaginatedResponseDto>}
34
+ * @type {Array<Notification>}
35
35
  * @memberof PaginatedAdminNotifications
36
36
  */
37
- data: Array<PaginatedResponseDto>;
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 PaginatedResponseDto_1 = require("./PaginatedResponseDto");
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(PaginatedResponseDto_1.PaginatedResponseDtoFromJSON)),
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(PaginatedResponseDto_1.PaginatedResponseDtoToJSON)),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electric-coop-api",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "OpenAPI client for electric-coop-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -20,13 +20,13 @@ import {
20
20
  PaginationMetaDtoToJSON,
21
21
  PaginationMetaDtoToJSONTyped,
22
22
  } from './PaginationMetaDto';
23
- import type { PaginatedResponseDto } from './PaginatedResponseDto';
23
+ import type { Notification } from './Notification';
24
24
  import {
25
- PaginatedResponseDtoFromJSON,
26
- PaginatedResponseDtoFromJSONTyped,
27
- PaginatedResponseDtoToJSON,
28
- PaginatedResponseDtoToJSONTyped,
29
- } from './PaginatedResponseDto';
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<PaginatedResponseDto>}
51
+ * @type {Array<Notification>}
52
52
  * @memberof PaginatedAdminNotifications
53
53
  */
54
- data: Array<PaginatedResponseDto>;
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(PaginatedResponseDtoFromJSON)),
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(PaginatedResponseDtoToJSON)),
103
+ 'data': ((value['data'] as Array<any>).map(NotificationToJSON)),
104
104
  'meta': PaginationMetaDtoToJSON(value['meta']),
105
105
  };
106
106
  }