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,98 @@
|
|
|
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 AuditLog
|
|
16
|
+
*/
|
|
17
|
+
export interface AuditLog {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuditLog
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AuditLog
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof AuditLog
|
|
34
|
+
*/
|
|
35
|
+
updatedAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof AuditLog
|
|
40
|
+
*/
|
|
41
|
+
deletedAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AuditLog
|
|
46
|
+
*/
|
|
47
|
+
tenantId: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AuditLog
|
|
52
|
+
*/
|
|
53
|
+
userId: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AuditLog
|
|
58
|
+
*/
|
|
59
|
+
actorEmail?: string;
|
|
60
|
+
/**
|
|
61
|
+
* CREATE | UPDATE | ASSIGN | STATUS_CHANGE
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AuditLog
|
|
64
|
+
*/
|
|
65
|
+
action: string;
|
|
66
|
+
/**
|
|
67
|
+
* outage | work_order
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AuditLog
|
|
70
|
+
*/
|
|
71
|
+
entityType: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AuditLog
|
|
76
|
+
*/
|
|
77
|
+
entityId: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AuditLog
|
|
82
|
+
*/
|
|
83
|
+
entityLabel?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Before/after snapshot of changed fields
|
|
86
|
+
* @type {object}
|
|
87
|
+
* @memberof AuditLog
|
|
88
|
+
*/
|
|
89
|
+
changes?: object;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the AuditLog interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfAuditLog(value: object): value is AuditLog;
|
|
95
|
+
export declare function AuditLogFromJSON(json: any): AuditLog;
|
|
96
|
+
export declare function AuditLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditLog;
|
|
97
|
+
export declare function AuditLogToJSON(json: any): AuditLog;
|
|
98
|
+
export declare function AuditLogToJSONTyped(value?: AuditLog | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,86 @@
|
|
|
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.instanceOfAuditLog = instanceOfAuditLog;
|
|
17
|
+
exports.AuditLogFromJSON = AuditLogFromJSON;
|
|
18
|
+
exports.AuditLogFromJSONTyped = AuditLogFromJSONTyped;
|
|
19
|
+
exports.AuditLogToJSON = AuditLogToJSON;
|
|
20
|
+
exports.AuditLogToJSONTyped = AuditLogToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuditLog interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuditLog(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('action' in value) || value['action'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('entityType' in value) || value['entityType'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('entityId' in value) || value['entityId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function AuditLogFromJSON(json) {
|
|
44
|
+
return AuditLogFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuditLogFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
53
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
54
|
+
'deletedAt': json['deletedAt'] == null ? undefined : (new Date(json['deletedAt'])),
|
|
55
|
+
'tenantId': json['tenantId'],
|
|
56
|
+
'userId': json['userId'],
|
|
57
|
+
'actorEmail': json['actorEmail'] == null ? undefined : json['actorEmail'],
|
|
58
|
+
'action': json['action'],
|
|
59
|
+
'entityType': json['entityType'],
|
|
60
|
+
'entityId': json['entityId'],
|
|
61
|
+
'entityLabel': json['entityLabel'] == null ? undefined : json['entityLabel'],
|
|
62
|
+
'changes': json['changes'] == null ? undefined : json['changes'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function AuditLogToJSON(json) {
|
|
66
|
+
return AuditLogToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function AuditLogToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'id': value['id'],
|
|
74
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
75
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
76
|
+
'deletedAt': value['deletedAt'] == null ? undefined : ((value['deletedAt']).toISOString()),
|
|
77
|
+
'tenantId': value['tenantId'],
|
|
78
|
+
'userId': value['userId'],
|
|
79
|
+
'actorEmail': value['actorEmail'],
|
|
80
|
+
'action': value['action'],
|
|
81
|
+
'entityType': value['entityType'],
|
|
82
|
+
'entityId': value['entityId'],
|
|
83
|
+
'entityLabel': value['entityLabel'],
|
|
84
|
+
'changes': value['changes'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -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,54 @@
|
|
|
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.instanceOfAuditLogEntityTypeFilterDto = instanceOfAuditLogEntityTypeFilterDto;
|
|
17
|
+
exports.AuditLogEntityTypeFilterDtoFromJSON = AuditLogEntityTypeFilterDtoFromJSON;
|
|
18
|
+
exports.AuditLogEntityTypeFilterDtoFromJSONTyped = AuditLogEntityTypeFilterDtoFromJSONTyped;
|
|
19
|
+
exports.AuditLogEntityTypeFilterDtoToJSON = AuditLogEntityTypeFilterDtoToJSON;
|
|
20
|
+
exports.AuditLogEntityTypeFilterDtoToJSONTyped = AuditLogEntityTypeFilterDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AuditLogEntityTypeFilterDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAuditLogEntityTypeFilterDto(value) {
|
|
25
|
+
if (!('entityType' in value) || value['entityType'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('actions' in value) || value['actions'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AuditLogEntityTypeFilterDtoFromJSON(json) {
|
|
32
|
+
return AuditLogEntityTypeFilterDtoFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AuditLogEntityTypeFilterDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'entityType': json['entityType'],
|
|
40
|
+
'actions': json['actions'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AuditLogEntityTypeFilterDtoToJSON(json) {
|
|
44
|
+
return AuditLogEntityTypeFilterDtoToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AuditLogEntityTypeFilterDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'entityType': value['entityType'],
|
|
52
|
+
'actions': value['actions'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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,51 @@
|
|
|
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.instanceOfAuditLogsFiltersResponseDto = instanceOfAuditLogsFiltersResponseDto;
|
|
17
|
+
exports.AuditLogsFiltersResponseDtoFromJSON = AuditLogsFiltersResponseDtoFromJSON;
|
|
18
|
+
exports.AuditLogsFiltersResponseDtoFromJSONTyped = AuditLogsFiltersResponseDtoFromJSONTyped;
|
|
19
|
+
exports.AuditLogsFiltersResponseDtoToJSON = AuditLogsFiltersResponseDtoToJSON;
|
|
20
|
+
exports.AuditLogsFiltersResponseDtoToJSONTyped = AuditLogsFiltersResponseDtoToJSONTyped;
|
|
21
|
+
const AuditLogEntityTypeFilterDto_1 = require("./AuditLogEntityTypeFilterDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AuditLogsFiltersResponseDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAuditLogsFiltersResponseDto(value) {
|
|
26
|
+
if (!('entityTypes' in value) || value['entityTypes'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AuditLogsFiltersResponseDtoFromJSON(json) {
|
|
31
|
+
return AuditLogsFiltersResponseDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AuditLogsFiltersResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'entityTypes': (json['entityTypes'].map(AuditLogEntityTypeFilterDto_1.AuditLogEntityTypeFilterDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AuditLogsFiltersResponseDtoToJSON(json) {
|
|
42
|
+
return AuditLogsFiltersResponseDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AuditLogsFiltersResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'entityTypes': (value['entityTypes'].map(AuditLogEntityTypeFilterDto_1.AuditLogEntityTypeFilterDtoToJSON)),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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,53 @@
|
|
|
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.NotificationTargetEnum = void 0;
|
|
17
|
+
exports.instanceOfNotificationTargetEnum = instanceOfNotificationTargetEnum;
|
|
18
|
+
exports.NotificationTargetEnumFromJSON = NotificationTargetEnumFromJSON;
|
|
19
|
+
exports.NotificationTargetEnumFromJSONTyped = NotificationTargetEnumFromJSONTyped;
|
|
20
|
+
exports.NotificationTargetEnumToJSON = NotificationTargetEnumToJSON;
|
|
21
|
+
exports.NotificationTargetEnumToJSONTyped = NotificationTargetEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Who to send the notification to
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.NotificationTargetEnum = {
|
|
27
|
+
All: 'all',
|
|
28
|
+
Consumers: 'consumers',
|
|
29
|
+
Admins: 'admins',
|
|
30
|
+
User: 'user'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfNotificationTargetEnum(value) {
|
|
33
|
+
for (const key in exports.NotificationTargetEnum) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.NotificationTargetEnum, key)) {
|
|
35
|
+
if (exports.NotificationTargetEnum[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function NotificationTargetEnumFromJSON(json) {
|
|
43
|
+
return NotificationTargetEnumFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function NotificationTargetEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function NotificationTargetEnumToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function NotificationTargetEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -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.
|
|
@@ -41,6 +41,7 @@ function UpdateWorkOrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
|
|
42
42
|
'location': json['location'] == null ? undefined : json['location'],
|
|
43
43
|
'remarks': json['remarks'] == null ? undefined : json['remarks'],
|
|
44
|
+
'outageId': json['outageId'] == null ? undefined : json['outageId'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
function UpdateWorkOrderDtoToJSON(json) {
|
|
@@ -58,5 +59,6 @@ function UpdateWorkOrderDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
59
|
'assignedTo': value['assignedTo'],
|
|
59
60
|
'location': value['location'],
|
|
60
61
|
'remarks': value['remarks'],
|
|
62
|
+
'outageId': value['outageId'],
|
|
61
63
|
};
|
|
62
64
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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/models/index.js
CHANGED
|
@@ -21,10 +21,13 @@ __exportStar(require("./AccountDto"), exports);
|
|
|
21
21
|
__exportStar(require("./AccountList"), exports);
|
|
22
22
|
__exportStar(require("./AccountListDto"), exports);
|
|
23
23
|
__exportStar(require("./AdminAssignWorkOrderResponse"), exports);
|
|
24
|
+
__exportStar(require("./AdminAuditLogsPaginatedResponse"), exports);
|
|
24
25
|
__exportStar(require("./AdminCreateWorkOrderResponse"), exports);
|
|
25
26
|
__exportStar(require("./AdminLoginDto"), exports);
|
|
26
27
|
__exportStar(require("./AdminOutageStatsResponse"), exports);
|
|
27
28
|
__exportStar(require("./AdminOutagesPaginatedResponse"), exports);
|
|
29
|
+
__exportStar(require("./AdminSendNotificationDto"), exports);
|
|
30
|
+
__exportStar(require("./AdminSendNotificationResponse"), exports);
|
|
28
31
|
__exportStar(require("./AdminServiceRequestResponse"), exports);
|
|
29
32
|
__exportStar(require("./AdminServiceRequestStatsResponse"), exports);
|
|
30
33
|
__exportStar(require("./AdminServiceRequestsPaginatedResponse"), exports);
|
|
@@ -35,6 +38,9 @@ __exportStar(require("./AdminWorkOrderStatsResponse"), exports);
|
|
|
35
38
|
__exportStar(require("./AdminWorkOrdersPaginatedResponse"), exports);
|
|
36
39
|
__exportStar(require("./ApproveRateAdjustmentDto"), exports);
|
|
37
40
|
__exportStar(require("./AssignWorkOrderDto"), exports);
|
|
41
|
+
__exportStar(require("./AuditLog"), exports);
|
|
42
|
+
__exportStar(require("./AuditLogEntityTypeFilterDto"), exports);
|
|
43
|
+
__exportStar(require("./AuditLogsFiltersResponseDto"), exports);
|
|
38
44
|
__exportStar(require("./AuthAdminLoginResponse"), exports);
|
|
39
45
|
__exportStar(require("./AuthConsumerAccountDto"), exports);
|
|
40
46
|
__exportStar(require("./AuthLoginResponse"), exports);
|
|
@@ -104,6 +110,7 @@ __exportStar(require("./MeterStatsResponseDto"), exports);
|
|
|
104
110
|
__exportStar(require("./MeterStatsSuccessResponse"), exports);
|
|
105
111
|
__exportStar(require("./Notification"), exports);
|
|
106
112
|
__exportStar(require("./NotificationMarkedAsRead"), exports);
|
|
113
|
+
__exportStar(require("./NotificationTargetEnum"), exports);
|
|
107
114
|
__exportStar(require("./NotificationTypeEnum"), exports);
|
|
108
115
|
__exportStar(require("./NotificationUnreadCount"), exports);
|
|
109
116
|
__exportStar(require("./NotificationUnreadCountResponseDto"), exports);
|