electric-coop-api 0.1.76 → 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 +4 -13
- package/README.md +2 -2
- package/dist/apis/AdminComplaintsApi.d.ts +25 -1
- package/dist/apis/AdminComplaintsApi.js +38 -0
- 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/AdminComplaintsApi.d.ts +25 -1
- package/dist/esm/apis/AdminComplaintsApi.js +39 -1
- 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 +5 -0
- package/dist/esm/models/AuditLogEntityTypeEnum.js +6 -1
- package/dist/esm/models/CreateAdminComplaintDto.d.ts +64 -0
- package/dist/esm/models/CreateAdminComplaintDto.js +61 -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 +4 -11
- package/dist/esm/models/index.js +4 -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 +5 -0
- package/dist/models/AuditLogEntityTypeEnum.js +6 -1
- package/dist/models/CreateAdminComplaintDto.d.ts +64 -0
- package/dist/models/CreateAdminComplaintDto.js +68 -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 +4 -11
- package/dist/models/index.js +4 -11
- package/package.json +1 -1
- package/src/apis/AdminComplaintsApi.ts +69 -0
- 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 +6 -1
- package/src/models/CreateAdminComplaintDto.ts +126 -0
- package/src/models/NotificationTypeEnum.ts +6 -1
- package/src/models/PaginatedAdminNotifications.ts +107 -0
- package/src/models/index.ts +4 -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,68 @@
|
|
|
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.instanceOfCreateAdminComplaintDto = instanceOfCreateAdminComplaintDto;
|
|
17
|
+
exports.CreateAdminComplaintDtoFromJSON = CreateAdminComplaintDtoFromJSON;
|
|
18
|
+
exports.CreateAdminComplaintDtoFromJSONTyped = CreateAdminComplaintDtoFromJSONTyped;
|
|
19
|
+
exports.CreateAdminComplaintDtoToJSON = CreateAdminComplaintDtoToJSON;
|
|
20
|
+
exports.CreateAdminComplaintDtoToJSONTyped = CreateAdminComplaintDtoToJSONTyped;
|
|
21
|
+
const ComplaintPriorityEnum_1 = require("./ComplaintPriorityEnum");
|
|
22
|
+
const ComplaintTypeEnum_1 = require("./ComplaintTypeEnum");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CreateAdminComplaintDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCreateAdminComplaintDto(value) {
|
|
27
|
+
if (!('consumerId' in value) || value['consumerId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CreateAdminComplaintDtoFromJSON(json) {
|
|
38
|
+
return CreateAdminComplaintDtoFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CreateAdminComplaintDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'consumerId': json['consumerId'],
|
|
46
|
+
'type': (0, ComplaintTypeEnum_1.ComplaintTypeEnumFromJSON)(json['type']),
|
|
47
|
+
'subject': json['subject'],
|
|
48
|
+
'description': json['description'],
|
|
49
|
+
'priority': json['priority'] == null ? undefined : (0, ComplaintPriorityEnum_1.ComplaintPriorityEnumFromJSON)(json['priority']),
|
|
50
|
+
'photos': json['photos'] == null ? undefined : json['photos'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function CreateAdminComplaintDtoToJSON(json) {
|
|
54
|
+
return CreateAdminComplaintDtoToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function CreateAdminComplaintDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'consumerId': value['consumerId'],
|
|
62
|
+
'type': (0, ComplaintTypeEnum_1.ComplaintTypeEnumToJSON)(value['type']),
|
|
63
|
+
'subject': value['subject'],
|
|
64
|
+
'description': value['description'],
|
|
65
|
+
'priority': (0, ComplaintPriorityEnum_1.ComplaintPriorityEnumToJSON)(value['priority']),
|
|
66
|
+
'photos': value['photos'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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';
|
|
@@ -76,11 +77,11 @@ export * from './ConsumerTypeEnum';
|
|
|
76
77
|
export * from './ConsumersAdminPaginatedResponse';
|
|
77
78
|
export * from './ConsumersAdminUnBilledPaginatedResponse';
|
|
78
79
|
export * from './ConsumersSuccessResponse';
|
|
80
|
+
export * from './CreateAdminComplaintDto';
|
|
79
81
|
export * from './CreateBillDto';
|
|
80
82
|
export * from './CreateConsumerAccountDto';
|
|
81
83
|
export * from './CreateConsumerDto';
|
|
82
84
|
export * from './CreateOutageDto';
|
|
83
|
-
export * from './CreateRateAdjustmentDto';
|
|
84
85
|
export * from './CreateRateDisplayVersionDto';
|
|
85
86
|
export * from './CreateServiceRequestDto';
|
|
86
87
|
export * from './CreateUserDto';
|
|
@@ -130,6 +131,7 @@ export * from './OutageSeverityEnum';
|
|
|
130
131
|
export * from './OutageStatsDto';
|
|
131
132
|
export * from './OutageStatusEnum';
|
|
132
133
|
export * from './OutagesSuccessResponse';
|
|
134
|
+
export * from './PaginatedAdminNotifications';
|
|
133
135
|
export * from './PaginatedNotifications';
|
|
134
136
|
export * from './PaginatedResponseDto';
|
|
135
137
|
export * from './PaginationMetaDto';
|
|
@@ -137,27 +139,18 @@ export * from './PerformanceReportSuccessResponse';
|
|
|
137
139
|
export * from './PickTypeClass';
|
|
138
140
|
export * from './PreviewBillDto';
|
|
139
141
|
export * from './PreviewMeterReadingDto';
|
|
140
|
-
export * from './Rate';
|
|
141
|
-
export * from './RateAdjustment';
|
|
142
|
-
export * from './RateAdjustmentChargeDto';
|
|
143
|
-
export * from './RateAdjustmentStatusEnum';
|
|
144
|
-
export * from './RateAdjustmentsSuccessResponse';
|
|
145
142
|
export * from './RateCategoryDto';
|
|
146
143
|
export * from './RateChargeDto';
|
|
147
|
-
export * from './RateChargeTypeEnum';
|
|
148
144
|
export * from './RateDisplay';
|
|
149
145
|
export * from './RateDisplayStructureDto';
|
|
150
146
|
export * from './RateDisplayStructureResponse';
|
|
151
147
|
export * from './RateDisplayVersionResponse';
|
|
152
148
|
export * from './RateDisplaysSuccessResponse';
|
|
153
149
|
export * from './RateSectionDto';
|
|
154
|
-
export * from './RateStatusEnum';
|
|
155
|
-
export * from './RatesSuccessResponse';
|
|
156
150
|
export * from './ReadingHistoryItemDto';
|
|
157
151
|
export * from './RefreshTokenDto';
|
|
158
152
|
export * from './RefreshTokenResponse';
|
|
159
153
|
export * from './RefreshTokenResponseDto';
|
|
160
|
-
export * from './RejectRateAdjustmentDto';
|
|
161
154
|
export * from './ResourceEnum';
|
|
162
155
|
export * from './RevenueByStatusDto';
|
|
163
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);
|
|
@@ -94,11 +95,11 @@ __exportStar(require("./ConsumerTypeEnum"), exports);
|
|
|
94
95
|
__exportStar(require("./ConsumersAdminPaginatedResponse"), exports);
|
|
95
96
|
__exportStar(require("./ConsumersAdminUnBilledPaginatedResponse"), exports);
|
|
96
97
|
__exportStar(require("./ConsumersSuccessResponse"), exports);
|
|
98
|
+
__exportStar(require("./CreateAdminComplaintDto"), exports);
|
|
97
99
|
__exportStar(require("./CreateBillDto"), exports);
|
|
98
100
|
__exportStar(require("./CreateConsumerAccountDto"), exports);
|
|
99
101
|
__exportStar(require("./CreateConsumerDto"), exports);
|
|
100
102
|
__exportStar(require("./CreateOutageDto"), exports);
|
|
101
|
-
__exportStar(require("./CreateRateAdjustmentDto"), exports);
|
|
102
103
|
__exportStar(require("./CreateRateDisplayVersionDto"), exports);
|
|
103
104
|
__exportStar(require("./CreateServiceRequestDto"), exports);
|
|
104
105
|
__exportStar(require("./CreateUserDto"), exports);
|
|
@@ -148,6 +149,7 @@ __exportStar(require("./OutageSeverityEnum"), exports);
|
|
|
148
149
|
__exportStar(require("./OutageStatsDto"), exports);
|
|
149
150
|
__exportStar(require("./OutageStatusEnum"), exports);
|
|
150
151
|
__exportStar(require("./OutagesSuccessResponse"), exports);
|
|
152
|
+
__exportStar(require("./PaginatedAdminNotifications"), exports);
|
|
151
153
|
__exportStar(require("./PaginatedNotifications"), exports);
|
|
152
154
|
__exportStar(require("./PaginatedResponseDto"), exports);
|
|
153
155
|
__exportStar(require("./PaginationMetaDto"), exports);
|
|
@@ -155,27 +157,18 @@ __exportStar(require("./PerformanceReportSuccessResponse"), exports);
|
|
|
155
157
|
__exportStar(require("./PickTypeClass"), exports);
|
|
156
158
|
__exportStar(require("./PreviewBillDto"), exports);
|
|
157
159
|
__exportStar(require("./PreviewMeterReadingDto"), exports);
|
|
158
|
-
__exportStar(require("./Rate"), exports);
|
|
159
|
-
__exportStar(require("./RateAdjustment"), exports);
|
|
160
|
-
__exportStar(require("./RateAdjustmentChargeDto"), exports);
|
|
161
|
-
__exportStar(require("./RateAdjustmentStatusEnum"), exports);
|
|
162
|
-
__exportStar(require("./RateAdjustmentsSuccessResponse"), exports);
|
|
163
160
|
__exportStar(require("./RateCategoryDto"), exports);
|
|
164
161
|
__exportStar(require("./RateChargeDto"), exports);
|
|
165
|
-
__exportStar(require("./RateChargeTypeEnum"), exports);
|
|
166
162
|
__exportStar(require("./RateDisplay"), exports);
|
|
167
163
|
__exportStar(require("./RateDisplayStructureDto"), exports);
|
|
168
164
|
__exportStar(require("./RateDisplayStructureResponse"), exports);
|
|
169
165
|
__exportStar(require("./RateDisplayVersionResponse"), exports);
|
|
170
166
|
__exportStar(require("./RateDisplaysSuccessResponse"), exports);
|
|
171
167
|
__exportStar(require("./RateSectionDto"), exports);
|
|
172
|
-
__exportStar(require("./RateStatusEnum"), exports);
|
|
173
|
-
__exportStar(require("./RatesSuccessResponse"), exports);
|
|
174
168
|
__exportStar(require("./ReadingHistoryItemDto"), exports);
|
|
175
169
|
__exportStar(require("./RefreshTokenDto"), exports);
|
|
176
170
|
__exportStar(require("./RefreshTokenResponse"), exports);
|
|
177
171
|
__exportStar(require("./RefreshTokenResponseDto"), exports);
|
|
178
|
-
__exportStar(require("./RejectRateAdjustmentDto"), exports);
|
|
179
172
|
__exportStar(require("./ResourceEnum"), exports);
|
|
180
173
|
__exportStar(require("./RevenueByStatusDto"), exports);
|
|
181
174
|
__exportStar(require("./RevenueReportDto"), exports);
|
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
ComplaintsAdminGetStatsResponse,
|
|
22
22
|
ComplaintsAdminPaginatedResponse,
|
|
23
23
|
ComplaintsSuccessResponse,
|
|
24
|
+
CreateAdminComplaintDto,
|
|
24
25
|
ErrorResponseDto,
|
|
25
26
|
UpdateComplaintDto,
|
|
26
27
|
} from '../models/index';
|
|
@@ -37,12 +38,18 @@ import {
|
|
|
37
38
|
ComplaintsAdminPaginatedResponseToJSON,
|
|
38
39
|
ComplaintsSuccessResponseFromJSON,
|
|
39
40
|
ComplaintsSuccessResponseToJSON,
|
|
41
|
+
CreateAdminComplaintDtoFromJSON,
|
|
42
|
+
CreateAdminComplaintDtoToJSON,
|
|
40
43
|
ErrorResponseDtoFromJSON,
|
|
41
44
|
ErrorResponseDtoToJSON,
|
|
42
45
|
UpdateComplaintDtoFromJSON,
|
|
43
46
|
UpdateComplaintDtoToJSON,
|
|
44
47
|
} from '../models/index';
|
|
45
48
|
|
|
49
|
+
export interface CreateAdminComplaintRequest {
|
|
50
|
+
createAdminComplaintDto: CreateAdminComplaintDto;
|
|
51
|
+
}
|
|
52
|
+
|
|
46
53
|
export interface GetAdminComplaintByIdRequest {
|
|
47
54
|
id: string;
|
|
48
55
|
}
|
|
@@ -75,6 +82,21 @@ export interface UpdateAdminComplaintStatusRequest {
|
|
|
75
82
|
* @interface AdminComplaintsApiInterface
|
|
76
83
|
*/
|
|
77
84
|
export interface AdminComplaintsApiInterface {
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @summary Create complaint on behalf of consumer (admin)
|
|
88
|
+
* @param {CreateAdminComplaintDto} createAdminComplaintDto
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
* @memberof AdminComplaintsApiInterface
|
|
92
|
+
*/
|
|
93
|
+
createAdminComplaintRaw(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComplaintsSuccessResponse>>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Create complaint on behalf of consumer (admin)
|
|
97
|
+
*/
|
|
98
|
+
createAdminComplaint(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComplaintsSuccessResponse>;
|
|
99
|
+
|
|
78
100
|
/**
|
|
79
101
|
*
|
|
80
102
|
* @summary Get complaint by id (admin)
|
|
@@ -165,6 +187,53 @@ export interface AdminComplaintsApiInterface {
|
|
|
165
187
|
*/
|
|
166
188
|
export class AdminComplaintsApi extends runtime.BaseAPI implements AdminComplaintsApiInterface {
|
|
167
189
|
|
|
190
|
+
/**
|
|
191
|
+
* Create complaint on behalf of consumer (admin)
|
|
192
|
+
*/
|
|
193
|
+
async createAdminComplaintRaw(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComplaintsSuccessResponse>> {
|
|
194
|
+
if (requestParameters['createAdminComplaintDto'] == null) {
|
|
195
|
+
throw new runtime.RequiredError(
|
|
196
|
+
'createAdminComplaintDto',
|
|
197
|
+
'Required parameter "createAdminComplaintDto" was null or undefined when calling createAdminComplaint().'
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
const queryParameters: any = {};
|
|
202
|
+
|
|
203
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
204
|
+
|
|
205
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
206
|
+
|
|
207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
208
|
+
const token = this.configuration.accessToken;
|
|
209
|
+
const tokenString = await token("bearer", []);
|
|
210
|
+
|
|
211
|
+
if (tokenString) {
|
|
212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
let urlPath = `/api/v1/admin/complaints`;
|
|
217
|
+
|
|
218
|
+
const response = await this.request({
|
|
219
|
+
path: urlPath,
|
|
220
|
+
method: 'POST',
|
|
221
|
+
headers: headerParameters,
|
|
222
|
+
query: queryParameters,
|
|
223
|
+
body: CreateAdminComplaintDtoToJSON(requestParameters['createAdminComplaintDto']),
|
|
224
|
+
}, initOverrides);
|
|
225
|
+
|
|
226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ComplaintsSuccessResponseFromJSON(jsonValue));
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Create complaint on behalf of consumer (admin)
|
|
231
|
+
*/
|
|
232
|
+
async createAdminComplaint(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComplaintsSuccessResponse> {
|
|
233
|
+
const response = await this.createAdminComplaintRaw(requestParameters, initOverrides);
|
|
234
|
+
return await response.value();
|
|
235
|
+
}
|
|
236
|
+
|
|
168
237
|
/**
|
|
169
238
|
* Get complaint by id (admin)
|
|
170
239
|
*/
|