electric-coop-api 0.1.77 → 0.1.78
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/.openapi-generator/FILES +3 -13
- package/README.md +2 -2
- package/dist/apis/AdminNotificationsApi.d.ts +99 -5
- package/dist/apis/AdminNotificationsApi.js +149 -2
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/esm/apis/AdminNotificationsApi.d.ts +99 -5
- package/dist/esm/apis/AdminNotificationsApi.js +150 -3
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -2
- package/dist/esm/models/AdminNotificationMarkedAsRead.d.ts +45 -0
- package/dist/esm/models/{RatesSuccessResponse.js → AdminNotificationMarkedAsRead.js} +11 -11
- package/dist/esm/models/AdminNotificationUnreadCount.d.ts +45 -0
- package/dist/esm/models/{RateAdjustmentsSuccessResponse.js → AdminNotificationUnreadCount.js} +11 -11
- package/dist/esm/models/AuditLogEntityTypeEnum.d.ts +1 -0
- package/dist/esm/models/AuditLogEntityTypeEnum.js +1 -0
- package/dist/esm/models/NotificationTypeEnum.d.ts +5 -0
- package/dist/esm/models/NotificationTypeEnum.js +6 -1
- package/dist/esm/models/PaginatedAdminNotifications.d.ts +52 -0
- package/dist/esm/models/PaginatedAdminNotifications.js +55 -0
- package/dist/esm/models/index.d.ts +3 -11
- package/dist/esm/models/index.js +3 -11
- package/dist/models/AdminNotificationMarkedAsRead.d.ts +45 -0
- package/dist/models/AdminNotificationMarkedAsRead.js +57 -0
- package/dist/models/AdminNotificationUnreadCount.d.ts +45 -0
- package/dist/models/AdminNotificationUnreadCount.js +57 -0
- package/dist/models/AuditLogEntityTypeEnum.d.ts +1 -0
- package/dist/models/AuditLogEntityTypeEnum.js +1 -0
- package/dist/models/NotificationTypeEnum.d.ts +5 -0
- package/dist/models/NotificationTypeEnum.js +6 -1
- package/dist/models/PaginatedAdminNotifications.d.ts +52 -0
- package/dist/models/PaginatedAdminNotifications.js +62 -0
- package/dist/models/index.d.ts +3 -11
- package/dist/models/index.js +3 -11
- package/package.json +1 -1
- package/src/apis/AdminNotificationsApi.ts +256 -4
- package/src/apis/index.ts +0 -2
- package/src/models/AdminNotificationMarkedAsRead.ts +91 -0
- package/src/models/AdminNotificationUnreadCount.ts +91 -0
- package/src/models/AuditLogEntityTypeEnum.ts +1 -0
- package/src/models/NotificationTypeEnum.ts +6 -1
- package/src/models/PaginatedAdminNotifications.ts +107 -0
- package/src/models/index.ts +3 -11
- package/dist/apis/RateAdjustmentsApi.d.ts +0 -150
- package/dist/apis/RateAdjustmentsApi.js +0 -227
- package/dist/apis/RatesApi.d.ts +0 -94
- package/dist/apis/RatesApi.js +0 -140
- package/dist/esm/apis/RateAdjustmentsApi.d.ts +0 -150
- package/dist/esm/apis/RateAdjustmentsApi.js +0 -223
- package/dist/esm/apis/RatesApi.d.ts +0 -94
- package/dist/esm/apis/RatesApi.js +0 -136
- package/dist/esm/models/ApproveRateAdjustmentDto.d.ts +0 -32
- package/dist/esm/models/ApproveRateAdjustmentDto.js +0 -41
- package/dist/esm/models/CreateRateAdjustmentDto.d.ts +0 -52
- package/dist/esm/models/CreateRateAdjustmentDto.js +0 -57
- package/dist/esm/models/Rate.d.ts +0 -172
- package/dist/esm/models/Rate.js +0 -135
- package/dist/esm/models/RateAdjustment.d.ts +0 -143
- package/dist/esm/models/RateAdjustment.js +0 -100
- package/dist/esm/models/RateAdjustmentChargeDto.d.ts +0 -45
- package/dist/esm/models/RateAdjustmentChargeDto.js +0 -52
- package/dist/esm/models/RateAdjustmentStatusEnum.d.ts +0 -27
- package/dist/esm/models/RateAdjustmentStatusEnum.js +0 -45
- package/dist/esm/models/RateAdjustmentsSuccessResponse.d.ts +0 -45
- package/dist/esm/models/RateChargeTypeEnum.d.ts +0 -40
- package/dist/esm/models/RateChargeTypeEnum.js +0 -58
- package/dist/esm/models/RateStatusEnum.d.ts +0 -26
- package/dist/esm/models/RateStatusEnum.js +0 -44
- package/dist/esm/models/RatesSuccessResponse.d.ts +0 -45
- package/dist/esm/models/RejectRateAdjustmentDto.d.ts +0 -32
- package/dist/esm/models/RejectRateAdjustmentDto.js +0 -43
- package/dist/models/ApproveRateAdjustmentDto.d.ts +0 -32
- package/dist/models/ApproveRateAdjustmentDto.js +0 -48
- package/dist/models/CreateRateAdjustmentDto.d.ts +0 -52
- package/dist/models/CreateRateAdjustmentDto.js +0 -64
- package/dist/models/Rate.d.ts +0 -172
- package/dist/models/Rate.js +0 -142
- package/dist/models/RateAdjustment.d.ts +0 -143
- package/dist/models/RateAdjustment.js +0 -107
- package/dist/models/RateAdjustmentChargeDto.d.ts +0 -45
- package/dist/models/RateAdjustmentChargeDto.js +0 -59
- package/dist/models/RateAdjustmentStatusEnum.d.ts +0 -27
- package/dist/models/RateAdjustmentStatusEnum.js +0 -53
- package/dist/models/RateAdjustmentsSuccessResponse.d.ts +0 -45
- package/dist/models/RateAdjustmentsSuccessResponse.js +0 -57
- package/dist/models/RateChargeTypeEnum.d.ts +0 -40
- package/dist/models/RateChargeTypeEnum.js +0 -66
- package/dist/models/RateStatusEnum.d.ts +0 -26
- package/dist/models/RateStatusEnum.js +0 -52
- package/dist/models/RatesSuccessResponse.d.ts +0 -45
- package/dist/models/RatesSuccessResponse.js +0 -57
- package/dist/models/RejectRateAdjustmentDto.d.ts +0 -32
- package/dist/models/RejectRateAdjustmentDto.js +0 -50
- package/src/apis/RateAdjustmentsApi.ts +0 -395
- package/src/apis/RatesApi.ts +0 -224
- package/src/models/ApproveRateAdjustmentDto.ts +0 -65
- package/src/models/CreateRateAdjustmentDto.ts +0 -110
- package/src/models/Rate.ts +0 -289
- package/src/models/RateAdjustment.ts +0 -243
- package/src/models/RateAdjustmentChargeDto.ts +0 -94
- package/src/models/RateAdjustmentStatusEnum.ts +0 -55
- package/src/models/RateAdjustmentsSuccessResponse.ts +0 -91
- package/src/models/RateChargeTypeEnum.ts +0 -68
- package/src/models/RateStatusEnum.ts +0 -54
- package/src/models/RatesSuccessResponse.ts +0 -91
- package/src/models/RejectRateAdjustmentDto.ts +0 -66
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Notification } from './Notification';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminNotificationMarkedAsRead
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminNotificationMarkedAsRead {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof AdminNotificationMarkedAsRead
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminNotificationMarkedAsRead
|
|
29
|
+
*/
|
|
30
|
+
error?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Notification}
|
|
34
|
+
* @memberof AdminNotificationMarkedAsRead
|
|
35
|
+
*/
|
|
36
|
+
data: Notification;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AdminNotificationMarkedAsRead interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAdminNotificationMarkedAsRead(value: object): value is AdminNotificationMarkedAsRead;
|
|
42
|
+
export declare function AdminNotificationMarkedAsReadFromJSON(json: any): AdminNotificationMarkedAsRead;
|
|
43
|
+
export declare function AdminNotificationMarkedAsReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNotificationMarkedAsRead;
|
|
44
|
+
export declare function AdminNotificationMarkedAsReadToJSON(json: any): AdminNotificationMarkedAsRead;
|
|
45
|
+
export declare function AdminNotificationMarkedAsReadToJSONTyped(value?: AdminNotificationMarkedAsRead | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Electric Cooperative Consumer Portal API
|
|
6
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAdminNotificationMarkedAsRead = instanceOfAdminNotificationMarkedAsRead;
|
|
17
|
+
exports.AdminNotificationMarkedAsReadFromJSON = AdminNotificationMarkedAsReadFromJSON;
|
|
18
|
+
exports.AdminNotificationMarkedAsReadFromJSONTyped = AdminNotificationMarkedAsReadFromJSONTyped;
|
|
19
|
+
exports.AdminNotificationMarkedAsReadToJSON = AdminNotificationMarkedAsReadToJSON;
|
|
20
|
+
exports.AdminNotificationMarkedAsReadToJSONTyped = AdminNotificationMarkedAsReadToJSONTyped;
|
|
21
|
+
const Notification_1 = require("./Notification");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminNotificationMarkedAsRead interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminNotificationMarkedAsRead(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AdminNotificationMarkedAsReadFromJSON(json) {
|
|
33
|
+
return AdminNotificationMarkedAsReadFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AdminNotificationMarkedAsReadFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
42
|
+
'data': (0, Notification_1.NotificationFromJSON)(json['data']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AdminNotificationMarkedAsReadToJSON(json) {
|
|
46
|
+
return AdminNotificationMarkedAsReadToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AdminNotificationMarkedAsReadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'success': value['success'],
|
|
54
|
+
'error': value['error'],
|
|
55
|
+
'data': (0, Notification_1.NotificationToJSON)(value['data']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { NotificationUnreadCountResponseDto } from './NotificationUnreadCountResponseDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminNotificationUnreadCount
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminNotificationUnreadCount {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof AdminNotificationUnreadCount
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AdminNotificationUnreadCount
|
|
29
|
+
*/
|
|
30
|
+
error?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {NotificationUnreadCountResponseDto}
|
|
34
|
+
* @memberof AdminNotificationUnreadCount
|
|
35
|
+
*/
|
|
36
|
+
data: NotificationUnreadCountResponseDto;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AdminNotificationUnreadCount interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAdminNotificationUnreadCount(value: object): value is AdminNotificationUnreadCount;
|
|
42
|
+
export declare function AdminNotificationUnreadCountFromJSON(json: any): AdminNotificationUnreadCount;
|
|
43
|
+
export declare function AdminNotificationUnreadCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNotificationUnreadCount;
|
|
44
|
+
export declare function AdminNotificationUnreadCountToJSON(json: any): AdminNotificationUnreadCount;
|
|
45
|
+
export declare function AdminNotificationUnreadCountToJSONTyped(value?: AdminNotificationUnreadCount | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Electric Cooperative Consumer Portal API
|
|
6
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAdminNotificationUnreadCount = instanceOfAdminNotificationUnreadCount;
|
|
17
|
+
exports.AdminNotificationUnreadCountFromJSON = AdminNotificationUnreadCountFromJSON;
|
|
18
|
+
exports.AdminNotificationUnreadCountFromJSONTyped = AdminNotificationUnreadCountFromJSONTyped;
|
|
19
|
+
exports.AdminNotificationUnreadCountToJSON = AdminNotificationUnreadCountToJSON;
|
|
20
|
+
exports.AdminNotificationUnreadCountToJSONTyped = AdminNotificationUnreadCountToJSONTyped;
|
|
21
|
+
const NotificationUnreadCountResponseDto_1 = require("./NotificationUnreadCountResponseDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AdminNotificationUnreadCount interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAdminNotificationUnreadCount(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function AdminNotificationUnreadCountFromJSON(json) {
|
|
33
|
+
return AdminNotificationUnreadCountFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function AdminNotificationUnreadCountFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
42
|
+
'data': (0, NotificationUnreadCountResponseDto_1.NotificationUnreadCountResponseDtoFromJSON)(json['data']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AdminNotificationUnreadCountToJSON(json) {
|
|
46
|
+
return AdminNotificationUnreadCountToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AdminNotificationUnreadCountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'success': value['success'],
|
|
54
|
+
'error': value['error'],
|
|
55
|
+
'data': (0, NotificationUnreadCountResponseDto_1.NotificationUnreadCountResponseDtoToJSON)(value['data']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -22,6 +22,7 @@ export declare const AuditLogEntityTypeEnum: {
|
|
|
22
22
|
readonly Complaint: "complaint";
|
|
23
23
|
readonly Consumer: "consumer";
|
|
24
24
|
readonly RateAdjustment: "rate_adjustment";
|
|
25
|
+
readonly RateDisplay: "rate_display";
|
|
25
26
|
readonly Bill: "bill";
|
|
26
27
|
readonly Settings: "settings";
|
|
27
28
|
};
|
|
@@ -17,6 +17,11 @@ export declare const NotificationTypeEnum: {
|
|
|
17
17
|
readonly Bill: "bill";
|
|
18
18
|
readonly Complaint: "complaint";
|
|
19
19
|
readonly System: "system";
|
|
20
|
+
readonly ServiceRequest: "service_request";
|
|
21
|
+
readonly WorkOrder: "work_order";
|
|
22
|
+
readonly Outage: "outage";
|
|
23
|
+
readonly Payment: "payment";
|
|
24
|
+
readonly MeterReading: "meter_reading";
|
|
20
25
|
};
|
|
21
26
|
export type NotificationTypeEnum = typeof NotificationTypeEnum[keyof typeof NotificationTypeEnum];
|
|
22
27
|
export declare function instanceOfNotificationTypeEnum(value: any): boolean;
|
|
@@ -26,7 +26,12 @@ exports.NotificationTypeEnumToJSONTyped = NotificationTypeEnumToJSONTyped;
|
|
|
26
26
|
exports.NotificationTypeEnum = {
|
|
27
27
|
Bill: 'bill',
|
|
28
28
|
Complaint: 'complaint',
|
|
29
|
-
System: 'system'
|
|
29
|
+
System: 'system',
|
|
30
|
+
ServiceRequest: 'service_request',
|
|
31
|
+
WorkOrder: 'work_order',
|
|
32
|
+
Outage: 'outage',
|
|
33
|
+
Payment: 'payment',
|
|
34
|
+
MeterReading: 'meter_reading'
|
|
30
35
|
};
|
|
31
36
|
function instanceOfNotificationTypeEnum(value) {
|
|
32
37
|
for (const key in exports.NotificationTypeEnum) {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaginationMetaDto } from './PaginationMetaDto';
|
|
13
|
+
import type { PaginatedResponseDto } from './PaginatedResponseDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedAdminNotifications
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedAdminNotifications {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof PaginatedAdminNotifications
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PaginatedAdminNotifications
|
|
30
|
+
*/
|
|
31
|
+
error?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<PaginatedResponseDto>}
|
|
35
|
+
* @memberof PaginatedAdminNotifications
|
|
36
|
+
*/
|
|
37
|
+
data: Array<PaginatedResponseDto>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PaginationMetaDto}
|
|
41
|
+
* @memberof PaginatedAdminNotifications
|
|
42
|
+
*/
|
|
43
|
+
meta: PaginationMetaDto;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PaginatedAdminNotifications interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPaginatedAdminNotifications(value: object): value is PaginatedAdminNotifications;
|
|
49
|
+
export declare function PaginatedAdminNotificationsFromJSON(json: any): PaginatedAdminNotifications;
|
|
50
|
+
export declare function PaginatedAdminNotificationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAdminNotifications;
|
|
51
|
+
export declare function PaginatedAdminNotificationsToJSON(json: any): PaginatedAdminNotifications;
|
|
52
|
+
export declare function PaginatedAdminNotificationsToJSONTyped(value?: PaginatedAdminNotifications | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Electric Cooperative Consumer Portal API
|
|
6
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedAdminNotifications = instanceOfPaginatedAdminNotifications;
|
|
17
|
+
exports.PaginatedAdminNotificationsFromJSON = PaginatedAdminNotificationsFromJSON;
|
|
18
|
+
exports.PaginatedAdminNotificationsFromJSONTyped = PaginatedAdminNotificationsFromJSONTyped;
|
|
19
|
+
exports.PaginatedAdminNotificationsToJSON = PaginatedAdminNotificationsToJSON;
|
|
20
|
+
exports.PaginatedAdminNotificationsToJSONTyped = PaginatedAdminNotificationsToJSONTyped;
|
|
21
|
+
const PaginationMetaDto_1 = require("./PaginationMetaDto");
|
|
22
|
+
const PaginatedResponseDto_1 = require("./PaginatedResponseDto");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedAdminNotifications interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedAdminNotifications(value) {
|
|
27
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function PaginatedAdminNotificationsFromJSON(json) {
|
|
36
|
+
return PaginatedAdminNotificationsFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function PaginatedAdminNotificationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'success': json['success'],
|
|
44
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
45
|
+
'data': (json['data'].map(PaginatedResponseDto_1.PaginatedResponseDtoFromJSON)),
|
|
46
|
+
'meta': (0, PaginationMetaDto_1.PaginationMetaDtoFromJSON)(json['meta']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function PaginatedAdminNotificationsToJSON(json) {
|
|
50
|
+
return PaginatedAdminNotificationsToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function PaginatedAdminNotificationsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'success': value['success'],
|
|
58
|
+
'error': value['error'],
|
|
59
|
+
'data': (value['data'].map(PaginatedResponseDto_1.PaginatedResponseDtoToJSON)),
|
|
60
|
+
'meta': (0, PaginationMetaDto_1.PaginationMetaDtoToJSON)(value['meta']),
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export * from './AdminAuditLogsPaginatedResponse';
|
|
|
7
7
|
export * from './AdminCreateServiceRequestResponse';
|
|
8
8
|
export * from './AdminCreateWorkOrderResponse';
|
|
9
9
|
export * from './AdminLoginDto';
|
|
10
|
+
export * from './AdminNotificationMarkedAsRead';
|
|
11
|
+
export * from './AdminNotificationUnreadCount';
|
|
10
12
|
export * from './AdminOutageStatsResponse';
|
|
11
13
|
export * from './AdminOutagesPaginatedResponse';
|
|
12
14
|
export * from './AdminSendNotificationDto';
|
|
@@ -22,7 +24,6 @@ export * from './AdminWorkOrdersPaginatedResponse';
|
|
|
22
24
|
export * from './AnnualMonthSummaryDto';
|
|
23
25
|
export * from './AnnualSummaryReportDto';
|
|
24
26
|
export * from './AnnualSummaryReportSuccessResponse';
|
|
25
|
-
export * from './ApproveRateAdjustmentDto';
|
|
26
27
|
export * from './AssignWorkOrderDto';
|
|
27
28
|
export * from './AuditLog';
|
|
28
29
|
export * from './AuditLogActionsResponseDto';
|
|
@@ -81,7 +82,6 @@ export * from './CreateBillDto';
|
|
|
81
82
|
export * from './CreateConsumerAccountDto';
|
|
82
83
|
export * from './CreateConsumerDto';
|
|
83
84
|
export * from './CreateOutageDto';
|
|
84
|
-
export * from './CreateRateAdjustmentDto';
|
|
85
85
|
export * from './CreateRateDisplayVersionDto';
|
|
86
86
|
export * from './CreateServiceRequestDto';
|
|
87
87
|
export * from './CreateUserDto';
|
|
@@ -131,6 +131,7 @@ export * from './OutageSeverityEnum';
|
|
|
131
131
|
export * from './OutageStatsDto';
|
|
132
132
|
export * from './OutageStatusEnum';
|
|
133
133
|
export * from './OutagesSuccessResponse';
|
|
134
|
+
export * from './PaginatedAdminNotifications';
|
|
134
135
|
export * from './PaginatedNotifications';
|
|
135
136
|
export * from './PaginatedResponseDto';
|
|
136
137
|
export * from './PaginationMetaDto';
|
|
@@ -138,27 +139,18 @@ export * from './PerformanceReportSuccessResponse';
|
|
|
138
139
|
export * from './PickTypeClass';
|
|
139
140
|
export * from './PreviewBillDto';
|
|
140
141
|
export * from './PreviewMeterReadingDto';
|
|
141
|
-
export * from './Rate';
|
|
142
|
-
export * from './RateAdjustment';
|
|
143
|
-
export * from './RateAdjustmentChargeDto';
|
|
144
|
-
export * from './RateAdjustmentStatusEnum';
|
|
145
|
-
export * from './RateAdjustmentsSuccessResponse';
|
|
146
142
|
export * from './RateCategoryDto';
|
|
147
143
|
export * from './RateChargeDto';
|
|
148
|
-
export * from './RateChargeTypeEnum';
|
|
149
144
|
export * from './RateDisplay';
|
|
150
145
|
export * from './RateDisplayStructureDto';
|
|
151
146
|
export * from './RateDisplayStructureResponse';
|
|
152
147
|
export * from './RateDisplayVersionResponse';
|
|
153
148
|
export * from './RateDisplaysSuccessResponse';
|
|
154
149
|
export * from './RateSectionDto';
|
|
155
|
-
export * from './RateStatusEnum';
|
|
156
|
-
export * from './RatesSuccessResponse';
|
|
157
150
|
export * from './ReadingHistoryItemDto';
|
|
158
151
|
export * from './RefreshTokenDto';
|
|
159
152
|
export * from './RefreshTokenResponse';
|
|
160
153
|
export * from './RefreshTokenResponseDto';
|
|
161
|
-
export * from './RejectRateAdjustmentDto';
|
|
162
154
|
export * from './ResourceEnum';
|
|
163
155
|
export * from './RevenueByStatusDto';
|
|
164
156
|
export * from './RevenueReportDto';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,8 @@ __exportStar(require("./AdminAuditLogsPaginatedResponse"), exports);
|
|
|
25
25
|
__exportStar(require("./AdminCreateServiceRequestResponse"), exports);
|
|
26
26
|
__exportStar(require("./AdminCreateWorkOrderResponse"), exports);
|
|
27
27
|
__exportStar(require("./AdminLoginDto"), exports);
|
|
28
|
+
__exportStar(require("./AdminNotificationMarkedAsRead"), exports);
|
|
29
|
+
__exportStar(require("./AdminNotificationUnreadCount"), exports);
|
|
28
30
|
__exportStar(require("./AdminOutageStatsResponse"), exports);
|
|
29
31
|
__exportStar(require("./AdminOutagesPaginatedResponse"), exports);
|
|
30
32
|
__exportStar(require("./AdminSendNotificationDto"), exports);
|
|
@@ -40,7 +42,6 @@ __exportStar(require("./AdminWorkOrdersPaginatedResponse"), exports);
|
|
|
40
42
|
__exportStar(require("./AnnualMonthSummaryDto"), exports);
|
|
41
43
|
__exportStar(require("./AnnualSummaryReportDto"), exports);
|
|
42
44
|
__exportStar(require("./AnnualSummaryReportSuccessResponse"), exports);
|
|
43
|
-
__exportStar(require("./ApproveRateAdjustmentDto"), exports);
|
|
44
45
|
__exportStar(require("./AssignWorkOrderDto"), exports);
|
|
45
46
|
__exportStar(require("./AuditLog"), exports);
|
|
46
47
|
__exportStar(require("./AuditLogActionsResponseDto"), exports);
|
|
@@ -99,7 +100,6 @@ __exportStar(require("./CreateBillDto"), exports);
|
|
|
99
100
|
__exportStar(require("./CreateConsumerAccountDto"), exports);
|
|
100
101
|
__exportStar(require("./CreateConsumerDto"), exports);
|
|
101
102
|
__exportStar(require("./CreateOutageDto"), exports);
|
|
102
|
-
__exportStar(require("./CreateRateAdjustmentDto"), exports);
|
|
103
103
|
__exportStar(require("./CreateRateDisplayVersionDto"), exports);
|
|
104
104
|
__exportStar(require("./CreateServiceRequestDto"), exports);
|
|
105
105
|
__exportStar(require("./CreateUserDto"), exports);
|
|
@@ -149,6 +149,7 @@ __exportStar(require("./OutageSeverityEnum"), exports);
|
|
|
149
149
|
__exportStar(require("./OutageStatsDto"), exports);
|
|
150
150
|
__exportStar(require("./OutageStatusEnum"), exports);
|
|
151
151
|
__exportStar(require("./OutagesSuccessResponse"), exports);
|
|
152
|
+
__exportStar(require("./PaginatedAdminNotifications"), exports);
|
|
152
153
|
__exportStar(require("./PaginatedNotifications"), exports);
|
|
153
154
|
__exportStar(require("./PaginatedResponseDto"), exports);
|
|
154
155
|
__exportStar(require("./PaginationMetaDto"), exports);
|
|
@@ -156,27 +157,18 @@ __exportStar(require("./PerformanceReportSuccessResponse"), exports);
|
|
|
156
157
|
__exportStar(require("./PickTypeClass"), exports);
|
|
157
158
|
__exportStar(require("./PreviewBillDto"), exports);
|
|
158
159
|
__exportStar(require("./PreviewMeterReadingDto"), exports);
|
|
159
|
-
__exportStar(require("./Rate"), exports);
|
|
160
|
-
__exportStar(require("./RateAdjustment"), exports);
|
|
161
|
-
__exportStar(require("./RateAdjustmentChargeDto"), exports);
|
|
162
|
-
__exportStar(require("./RateAdjustmentStatusEnum"), exports);
|
|
163
|
-
__exportStar(require("./RateAdjustmentsSuccessResponse"), exports);
|
|
164
160
|
__exportStar(require("./RateCategoryDto"), exports);
|
|
165
161
|
__exportStar(require("./RateChargeDto"), exports);
|
|
166
|
-
__exportStar(require("./RateChargeTypeEnum"), exports);
|
|
167
162
|
__exportStar(require("./RateDisplay"), exports);
|
|
168
163
|
__exportStar(require("./RateDisplayStructureDto"), exports);
|
|
169
164
|
__exportStar(require("./RateDisplayStructureResponse"), exports);
|
|
170
165
|
__exportStar(require("./RateDisplayVersionResponse"), exports);
|
|
171
166
|
__exportStar(require("./RateDisplaysSuccessResponse"), exports);
|
|
172
167
|
__exportStar(require("./RateSectionDto"), exports);
|
|
173
|
-
__exportStar(require("./RateStatusEnum"), exports);
|
|
174
|
-
__exportStar(require("./RatesSuccessResponse"), exports);
|
|
175
168
|
__exportStar(require("./ReadingHistoryItemDto"), exports);
|
|
176
169
|
__exportStar(require("./RefreshTokenDto"), exports);
|
|
177
170
|
__exportStar(require("./RefreshTokenResponse"), exports);
|
|
178
171
|
__exportStar(require("./RefreshTokenResponseDto"), exports);
|
|
179
|
-
__exportStar(require("./RejectRateAdjustmentDto"), exports);
|
|
180
172
|
__exportStar(require("./ResourceEnum"), exports);
|
|
181
173
|
__exportStar(require("./RevenueByStatusDto"), exports);
|
|
182
174
|
__exportStar(require("./RevenueReportDto"), exports);
|