electric-coop-api 0.1.49 → 0.1.52
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 +9 -0
- package/README.md +2 -2
- package/dist/apis/AdminAuditLogsApi.d.ts +84 -0
- package/dist/apis/AdminAuditLogsApi.js +123 -0
- package/dist/apis/AdminNotificationsApi.d.ts +50 -0
- package/dist/apis/AdminNotificationsApi.js +71 -0
- package/dist/apis/AdminWorkOrdersApi.d.ts +3 -1
- package/dist/apis/AdminWorkOrdersApi.js +3 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AdminAuditLogsApi.d.ts +84 -0
- package/dist/esm/apis/AdminAuditLogsApi.js +119 -0
- package/dist/esm/apis/AdminNotificationsApi.d.ts +50 -0
- package/dist/esm/apis/AdminNotificationsApi.js +67 -0
- package/dist/esm/apis/AdminWorkOrdersApi.d.ts +3 -1
- package/dist/esm/apis/AdminWorkOrdersApi.js +3 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/AdminAuditLogsPaginatedResponse.d.ts +52 -0
- package/dist/esm/models/AdminAuditLogsPaginatedResponse.js +55 -0
- package/dist/esm/models/AdminSendNotificationDto.d.ts +58 -0
- package/dist/esm/models/AdminSendNotificationDto.js +59 -0
- package/dist/esm/models/AdminSendNotificationResponse.d.ts +44 -0
- package/dist/esm/models/AdminSendNotificationResponse.js +49 -0
- package/dist/esm/models/AuditLog.d.ts +98 -0
- package/dist/esm/models/AuditLog.js +79 -0
- package/dist/esm/models/AuditLogEntityTypeFilterDto.d.ts +38 -0
- package/dist/esm/models/AuditLogEntityTypeFilterDto.js +47 -0
- package/dist/esm/models/AuditLogsFiltersResponseDto.d.ts +33 -0
- package/dist/esm/models/AuditLogsFiltersResponseDto.js +44 -0
- package/dist/esm/models/NotificationTargetEnum.d.ts +27 -0
- package/dist/esm/models/NotificationTargetEnum.js +45 -0
- package/dist/esm/models/UpdateWorkOrderDto.d.ts +6 -0
- package/dist/esm/models/UpdateWorkOrderDto.js +2 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AdminAuditLogsPaginatedResponse.d.ts +52 -0
- package/dist/models/AdminAuditLogsPaginatedResponse.js +62 -0
- package/dist/models/AdminSendNotificationDto.d.ts +58 -0
- package/dist/models/AdminSendNotificationDto.js +66 -0
- package/dist/models/AdminSendNotificationResponse.d.ts +44 -0
- package/dist/models/AdminSendNotificationResponse.js +56 -0
- package/dist/models/AuditLog.d.ts +98 -0
- package/dist/models/AuditLog.js +86 -0
- package/dist/models/AuditLogEntityTypeFilterDto.d.ts +38 -0
- package/dist/models/AuditLogEntityTypeFilterDto.js +54 -0
- package/dist/models/AuditLogsFiltersResponseDto.d.ts +33 -0
- package/dist/models/AuditLogsFiltersResponseDto.js +51 -0
- package/dist/models/NotificationTargetEnum.d.ts +27 -0
- package/dist/models/NotificationTargetEnum.js +53 -0
- package/dist/models/UpdateWorkOrderDto.d.ts +6 -0
- package/dist/models/UpdateWorkOrderDto.js +2 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AdminAuditLogsApi.ts +198 -0
- package/src/apis/AdminNotificationsApi.ts +111 -0
- package/src/apis/AdminWorkOrdersApi.ts +7 -1
- package/src/apis/index.ts +2 -0
- package/src/models/AdminAuditLogsPaginatedResponse.ts +107 -0
- package/src/models/AdminSendNotificationDto.ts +118 -0
- package/src/models/AdminSendNotificationResponse.ts +83 -0
- package/src/models/AuditLog.ts +161 -0
- package/src/models/AuditLogEntityTypeFilterDto.ts +75 -0
- package/src/models/AuditLogsFiltersResponseDto.ts +74 -0
- package/src/models/NotificationTargetEnum.ts +55 -0
- package/src/models/UpdateWorkOrderDto.ts +8 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AuditLogEntityTypeFilterDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AuditLogEntityTypeFilterDto {
|
|
18
|
+
/**
|
|
19
|
+
* Entity type name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuditLogEntityTypeFilterDto
|
|
22
|
+
*/
|
|
23
|
+
entityType: string;
|
|
24
|
+
/**
|
|
25
|
+
* Actions available for this entity type
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof AuditLogEntityTypeFilterDto
|
|
28
|
+
*/
|
|
29
|
+
actions: Array<string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AuditLogEntityTypeFilterDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAuditLogEntityTypeFilterDto(value: object): value is AuditLogEntityTypeFilterDto;
|
|
35
|
+
export declare function AuditLogEntityTypeFilterDtoFromJSON(json: any): AuditLogEntityTypeFilterDto;
|
|
36
|
+
export declare function AuditLogEntityTypeFilterDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogEntityTypeFilterDto;
|
|
37
|
+
export declare function AuditLogEntityTypeFilterDtoToJSON(json: any): AuditLogEntityTypeFilterDto;
|
|
38
|
+
export declare function AuditLogEntityTypeFilterDtoToJSONTyped(value?: AuditLogEntityTypeFilterDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the AuditLogEntityTypeFilterDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAuditLogEntityTypeFilterDto(value) {
|
|
18
|
+
if (!('entityType' in value) || value['entityType'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('actions' in value) || value['actions'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function AuditLogEntityTypeFilterDtoFromJSON(json) {
|
|
25
|
+
return AuditLogEntityTypeFilterDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AuditLogEntityTypeFilterDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'entityType': json['entityType'],
|
|
33
|
+
'actions': json['actions'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function AuditLogEntityTypeFilterDtoToJSON(json) {
|
|
37
|
+
return AuditLogEntityTypeFilterDtoToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AuditLogEntityTypeFilterDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'entityType': value['entityType'],
|
|
45
|
+
'actions': value['actions'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { AuditLogEntityTypeFilterDto } from './AuditLogEntityTypeFilterDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AuditLogsFiltersResponseDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AuditLogsFiltersResponseDto {
|
|
19
|
+
/**
|
|
20
|
+
* Distinct entity types and their available actions observed in the audit log
|
|
21
|
+
* @type {Array<AuditLogEntityTypeFilterDto>}
|
|
22
|
+
* @memberof AuditLogsFiltersResponseDto
|
|
23
|
+
*/
|
|
24
|
+
entityTypes: Array<AuditLogEntityTypeFilterDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AuditLogsFiltersResponseDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAuditLogsFiltersResponseDto(value: object): value is AuditLogsFiltersResponseDto;
|
|
30
|
+
export declare function AuditLogsFiltersResponseDtoFromJSON(json: any): AuditLogsFiltersResponseDto;
|
|
31
|
+
export declare function AuditLogsFiltersResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLogsFiltersResponseDto;
|
|
32
|
+
export declare function AuditLogsFiltersResponseDtoToJSON(json: any): AuditLogsFiltersResponseDto;
|
|
33
|
+
export declare function AuditLogsFiltersResponseDtoToJSONTyped(value?: AuditLogsFiltersResponseDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { AuditLogEntityTypeFilterDtoFromJSON, AuditLogEntityTypeFilterDtoToJSON, } from './AuditLogEntityTypeFilterDto';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AuditLogsFiltersResponseDto interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAuditLogsFiltersResponseDto(value) {
|
|
19
|
+
if (!('entityTypes' in value) || value['entityTypes'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AuditLogsFiltersResponseDtoFromJSON(json) {
|
|
24
|
+
return AuditLogsFiltersResponseDtoFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AuditLogsFiltersResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'entityTypes': (json['entityTypes'].map(AuditLogEntityTypeFilterDtoFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AuditLogsFiltersResponseDtoToJSON(json) {
|
|
35
|
+
return AuditLogsFiltersResponseDtoToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AuditLogsFiltersResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'entityTypes': (value['entityTypes'].map(AuditLogEntityTypeFilterDtoToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Who to send the notification to
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const NotificationTargetEnum: {
|
|
17
|
+
readonly All: "all";
|
|
18
|
+
readonly Consumers: "consumers";
|
|
19
|
+
readonly Admins: "admins";
|
|
20
|
+
readonly User: "user";
|
|
21
|
+
};
|
|
22
|
+
export type NotificationTargetEnum = typeof NotificationTargetEnum[keyof typeof NotificationTargetEnum];
|
|
23
|
+
export declare function instanceOfNotificationTargetEnum(value: any): boolean;
|
|
24
|
+
export declare function NotificationTargetEnumFromJSON(json: any): NotificationTargetEnum;
|
|
25
|
+
export declare function NotificationTargetEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTargetEnum;
|
|
26
|
+
export declare function NotificationTargetEnumToJSON(value?: NotificationTargetEnum | null): any;
|
|
27
|
+
export declare function NotificationTargetEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationTargetEnum;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Who to send the notification to
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const NotificationTargetEnum = {
|
|
19
|
+
All: 'all',
|
|
20
|
+
Consumers: 'consumers',
|
|
21
|
+
Admins: 'admins',
|
|
22
|
+
User: 'user'
|
|
23
|
+
};
|
|
24
|
+
export function instanceOfNotificationTargetEnum(value) {
|
|
25
|
+
for (const key in NotificationTargetEnum) {
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(NotificationTargetEnum, key)) {
|
|
27
|
+
if (NotificationTargetEnum[key] === value) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
export function NotificationTargetEnumFromJSON(json) {
|
|
35
|
+
return NotificationTargetEnumFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function NotificationTargetEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
export function NotificationTargetEnumToJSON(value) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
export function NotificationTargetEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
@@ -59,6 +59,12 @@ export interface UpdateWorkOrderDto {
|
|
|
59
59
|
* @memberof UpdateWorkOrderDto
|
|
60
60
|
*/
|
|
61
61
|
remarks?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Link or unlink a related outage
|
|
64
|
+
* @type {object}
|
|
65
|
+
* @memberof UpdateWorkOrderDto
|
|
66
|
+
*/
|
|
67
|
+
outageId?: object;
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
64
70
|
* Check if a given object implements the UpdateWorkOrderDto interface.
|
|
@@ -34,6 +34,7 @@ export function UpdateWorkOrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
|
|
35
35
|
'location': json['location'] == null ? undefined : json['location'],
|
|
36
36
|
'remarks': json['remarks'] == null ? undefined : json['remarks'],
|
|
37
|
+
'outageId': json['outageId'] == null ? undefined : json['outageId'],
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
export function UpdateWorkOrderDtoToJSON(json) {
|
|
@@ -51,5 +52,6 @@ export function UpdateWorkOrderDtoToJSONTyped(value, ignoreDiscriminator = false
|
|
|
51
52
|
'assignedTo': value['assignedTo'],
|
|
52
53
|
'location': value['location'],
|
|
53
54
|
'remarks': value['remarks'],
|
|
55
|
+
'outageId': value['outageId'],
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -3,10 +3,13 @@ export * from './AccountDto';
|
|
|
3
3
|
export * from './AccountList';
|
|
4
4
|
export * from './AccountListDto';
|
|
5
5
|
export * from './AdminAssignWorkOrderResponse';
|
|
6
|
+
export * from './AdminAuditLogsPaginatedResponse';
|
|
6
7
|
export * from './AdminCreateWorkOrderResponse';
|
|
7
8
|
export * from './AdminLoginDto';
|
|
8
9
|
export * from './AdminOutageStatsResponse';
|
|
9
10
|
export * from './AdminOutagesPaginatedResponse';
|
|
11
|
+
export * from './AdminSendNotificationDto';
|
|
12
|
+
export * from './AdminSendNotificationResponse';
|
|
10
13
|
export * from './AdminServiceRequestResponse';
|
|
11
14
|
export * from './AdminServiceRequestStatsResponse';
|
|
12
15
|
export * from './AdminServiceRequestsPaginatedResponse';
|
|
@@ -17,6 +20,9 @@ export * from './AdminWorkOrderStatsResponse';
|
|
|
17
20
|
export * from './AdminWorkOrdersPaginatedResponse';
|
|
18
21
|
export * from './ApproveRateAdjustmentDto';
|
|
19
22
|
export * from './AssignWorkOrderDto';
|
|
23
|
+
export * from './AuditLog';
|
|
24
|
+
export * from './AuditLogEntityTypeFilterDto';
|
|
25
|
+
export * from './AuditLogsFiltersResponseDto';
|
|
20
26
|
export * from './AuthAdminLoginResponse';
|
|
21
27
|
export * from './AuthConsumerAccountDto';
|
|
22
28
|
export * from './AuthLoginResponse';
|
|
@@ -86,6 +92,7 @@ export * from './MeterStatsResponseDto';
|
|
|
86
92
|
export * from './MeterStatsSuccessResponse';
|
|
87
93
|
export * from './Notification';
|
|
88
94
|
export * from './NotificationMarkedAsRead';
|
|
95
|
+
export * from './NotificationTargetEnum';
|
|
89
96
|
export * from './NotificationTypeEnum';
|
|
90
97
|
export * from './NotificationUnreadCount';
|
|
91
98
|
export * from './NotificationUnreadCountResponseDto';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -5,10 +5,13 @@ export * from './AccountDto';
|
|
|
5
5
|
export * from './AccountList';
|
|
6
6
|
export * from './AccountListDto';
|
|
7
7
|
export * from './AdminAssignWorkOrderResponse';
|
|
8
|
+
export * from './AdminAuditLogsPaginatedResponse';
|
|
8
9
|
export * from './AdminCreateWorkOrderResponse';
|
|
9
10
|
export * from './AdminLoginDto';
|
|
10
11
|
export * from './AdminOutageStatsResponse';
|
|
11
12
|
export * from './AdminOutagesPaginatedResponse';
|
|
13
|
+
export * from './AdminSendNotificationDto';
|
|
14
|
+
export * from './AdminSendNotificationResponse';
|
|
12
15
|
export * from './AdminServiceRequestResponse';
|
|
13
16
|
export * from './AdminServiceRequestStatsResponse';
|
|
14
17
|
export * from './AdminServiceRequestsPaginatedResponse';
|
|
@@ -19,6 +22,9 @@ export * from './AdminWorkOrderStatsResponse';
|
|
|
19
22
|
export * from './AdminWorkOrdersPaginatedResponse';
|
|
20
23
|
export * from './ApproveRateAdjustmentDto';
|
|
21
24
|
export * from './AssignWorkOrderDto';
|
|
25
|
+
export * from './AuditLog';
|
|
26
|
+
export * from './AuditLogEntityTypeFilterDto';
|
|
27
|
+
export * from './AuditLogsFiltersResponseDto';
|
|
22
28
|
export * from './AuthAdminLoginResponse';
|
|
23
29
|
export * from './AuthConsumerAccountDto';
|
|
24
30
|
export * from './AuthLoginResponse';
|
|
@@ -88,6 +94,7 @@ export * from './MeterStatsResponseDto';
|
|
|
88
94
|
export * from './MeterStatsSuccessResponse';
|
|
89
95
|
export * from './Notification';
|
|
90
96
|
export * from './NotificationMarkedAsRead';
|
|
97
|
+
export * from './NotificationTargetEnum';
|
|
91
98
|
export * from './NotificationTypeEnum';
|
|
92
99
|
export * from './NotificationUnreadCount';
|
|
93
100
|
export * from './NotificationUnreadCountResponseDto';
|
|
@@ -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 { AuditLog } from './AuditLog';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AdminAuditLogsPaginatedResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface AdminAuditLogsPaginatedResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof AdminAuditLogsPaginatedResponse
|
|
24
|
+
*/
|
|
25
|
+
success: boolean;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AdminAuditLogsPaginatedResponse
|
|
30
|
+
*/
|
|
31
|
+
error?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<AuditLog>}
|
|
35
|
+
* @memberof AdminAuditLogsPaginatedResponse
|
|
36
|
+
*/
|
|
37
|
+
data: Array<AuditLog>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PaginationMetaDto}
|
|
41
|
+
* @memberof AdminAuditLogsPaginatedResponse
|
|
42
|
+
*/
|
|
43
|
+
meta: PaginationMetaDto;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the AdminAuditLogsPaginatedResponse interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfAdminAuditLogsPaginatedResponse(value: object): value is AdminAuditLogsPaginatedResponse;
|
|
49
|
+
export declare function AdminAuditLogsPaginatedResponseFromJSON(json: any): AdminAuditLogsPaginatedResponse;
|
|
50
|
+
export declare function AdminAuditLogsPaginatedResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAuditLogsPaginatedResponse;
|
|
51
|
+
export declare function AdminAuditLogsPaginatedResponseToJSON(json: any): AdminAuditLogsPaginatedResponse;
|
|
52
|
+
export declare function AdminAuditLogsPaginatedResponseToJSONTyped(value?: AdminAuditLogsPaginatedResponse | 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.instanceOfAdminAuditLogsPaginatedResponse = instanceOfAdminAuditLogsPaginatedResponse;
|
|
17
|
+
exports.AdminAuditLogsPaginatedResponseFromJSON = AdminAuditLogsPaginatedResponseFromJSON;
|
|
18
|
+
exports.AdminAuditLogsPaginatedResponseFromJSONTyped = AdminAuditLogsPaginatedResponseFromJSONTyped;
|
|
19
|
+
exports.AdminAuditLogsPaginatedResponseToJSON = AdminAuditLogsPaginatedResponseToJSON;
|
|
20
|
+
exports.AdminAuditLogsPaginatedResponseToJSONTyped = AdminAuditLogsPaginatedResponseToJSONTyped;
|
|
21
|
+
const PaginationMetaDto_1 = require("./PaginationMetaDto");
|
|
22
|
+
const AuditLog_1 = require("./AuditLog");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AdminAuditLogsPaginatedResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAdminAuditLogsPaginatedResponse(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 AdminAuditLogsPaginatedResponseFromJSON(json) {
|
|
36
|
+
return AdminAuditLogsPaginatedResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AdminAuditLogsPaginatedResponseFromJSONTyped(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(AuditLog_1.AuditLogFromJSON)),
|
|
46
|
+
'meta': (0, PaginationMetaDto_1.PaginationMetaDtoFromJSON)(json['meta']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AdminAuditLogsPaginatedResponseToJSON(json) {
|
|
50
|
+
return AdminAuditLogsPaginatedResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AdminAuditLogsPaginatedResponseToJSONTyped(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(AuditLog_1.AuditLogToJSON)),
|
|
60
|
+
'meta': (0, PaginationMetaDto_1.PaginationMetaDtoToJSON)(value['meta']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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 { NotificationTargetEnum } from './NotificationTargetEnum';
|
|
13
|
+
import type { NotificationTypeEnum } from './NotificationTypeEnum';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AdminSendNotificationDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AdminSendNotificationDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AdminSendNotificationDto
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AdminSendNotificationDto
|
|
30
|
+
*/
|
|
31
|
+
message: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {NotificationTypeEnum}
|
|
35
|
+
* @memberof AdminSendNotificationDto
|
|
36
|
+
*/
|
|
37
|
+
type: NotificationTypeEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Who to send the notification to
|
|
40
|
+
* @type {NotificationTargetEnum}
|
|
41
|
+
* @memberof AdminSendNotificationDto
|
|
42
|
+
*/
|
|
43
|
+
target: NotificationTargetEnum;
|
|
44
|
+
/**
|
|
45
|
+
* Required when target is "user"
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AdminSendNotificationDto
|
|
48
|
+
*/
|
|
49
|
+
userId?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the AdminSendNotificationDto interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfAdminSendNotificationDto(value: object): value is AdminSendNotificationDto;
|
|
55
|
+
export declare function AdminSendNotificationDtoFromJSON(json: any): AdminSendNotificationDto;
|
|
56
|
+
export declare function AdminSendNotificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSendNotificationDto;
|
|
57
|
+
export declare function AdminSendNotificationDtoToJSON(json: any): AdminSendNotificationDto;
|
|
58
|
+
export declare function AdminSendNotificationDtoToJSONTyped(value?: AdminSendNotificationDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.instanceOfAdminSendNotificationDto = instanceOfAdminSendNotificationDto;
|
|
17
|
+
exports.AdminSendNotificationDtoFromJSON = AdminSendNotificationDtoFromJSON;
|
|
18
|
+
exports.AdminSendNotificationDtoFromJSONTyped = AdminSendNotificationDtoFromJSONTyped;
|
|
19
|
+
exports.AdminSendNotificationDtoToJSON = AdminSendNotificationDtoToJSON;
|
|
20
|
+
exports.AdminSendNotificationDtoToJSONTyped = AdminSendNotificationDtoToJSONTyped;
|
|
21
|
+
const NotificationTargetEnum_1 = require("./NotificationTargetEnum");
|
|
22
|
+
const NotificationTypeEnum_1 = require("./NotificationTypeEnum");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AdminSendNotificationDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAdminSendNotificationDto(value) {
|
|
27
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('target' in value) || value['target'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AdminSendNotificationDtoFromJSON(json) {
|
|
38
|
+
return AdminSendNotificationDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AdminSendNotificationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'title': json['title'],
|
|
46
|
+
'message': json['message'],
|
|
47
|
+
'type': (0, NotificationTypeEnum_1.NotificationTypeEnumFromJSON)(json['type']),
|
|
48
|
+
'target': (0, NotificationTargetEnum_1.NotificationTargetEnumFromJSON)(json['target']),
|
|
49
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AdminSendNotificationDtoToJSON(json) {
|
|
53
|
+
return AdminSendNotificationDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AdminSendNotificationDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'title': value['title'],
|
|
61
|
+
'message': value['message'],
|
|
62
|
+
'type': (0, NotificationTypeEnum_1.NotificationTypeEnumToJSON)(value['type']),
|
|
63
|
+
'target': (0, NotificationTargetEnum_1.NotificationTargetEnumToJSON)(value['target']),
|
|
64
|
+
'userId': value['userId'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminSendNotificationResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminSendNotificationResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AdminSendNotificationResponse
|
|
22
|
+
*/
|
|
23
|
+
success: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminSendNotificationResponse
|
|
28
|
+
*/
|
|
29
|
+
error?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {object}
|
|
33
|
+
* @memberof AdminSendNotificationResponse
|
|
34
|
+
*/
|
|
35
|
+
data: object;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminSendNotificationResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfAdminSendNotificationResponse(value: object): value is AdminSendNotificationResponse;
|
|
41
|
+
export declare function AdminSendNotificationResponseFromJSON(json: any): AdminSendNotificationResponse;
|
|
42
|
+
export declare function AdminSendNotificationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSendNotificationResponse;
|
|
43
|
+
export declare function AdminSendNotificationResponseToJSON(json: any): AdminSendNotificationResponse;
|
|
44
|
+
export declare function AdminSendNotificationResponseToJSONTyped(value?: AdminSendNotificationResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfAdminSendNotificationResponse = instanceOfAdminSendNotificationResponse;
|
|
17
|
+
exports.AdminSendNotificationResponseFromJSON = AdminSendNotificationResponseFromJSON;
|
|
18
|
+
exports.AdminSendNotificationResponseFromJSONTyped = AdminSendNotificationResponseFromJSONTyped;
|
|
19
|
+
exports.AdminSendNotificationResponseToJSON = AdminSendNotificationResponseToJSON;
|
|
20
|
+
exports.AdminSendNotificationResponseToJSONTyped = AdminSendNotificationResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminSendNotificationResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminSendNotificationResponse(value) {
|
|
25
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AdminSendNotificationResponseFromJSON(json) {
|
|
32
|
+
return AdminSendNotificationResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AdminSendNotificationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'success': json['success'],
|
|
40
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
41
|
+
'data': json['data'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function AdminSendNotificationResponseToJSON(json) {
|
|
45
|
+
return AdminSendNotificationResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AdminSendNotificationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'success': value['success'],
|
|
53
|
+
'error': value['error'],
|
|
54
|
+
'data': value['data'],
|
|
55
|
+
};
|
|
56
|
+
}
|