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.
Files changed (116) hide show
  1. package/.openapi-generator/FILES +4 -13
  2. package/README.md +2 -2
  3. package/dist/apis/AdminComplaintsApi.d.ts +25 -1
  4. package/dist/apis/AdminComplaintsApi.js +38 -0
  5. package/dist/apis/AdminNotificationsApi.d.ts +99 -5
  6. package/dist/apis/AdminNotificationsApi.js +149 -2
  7. package/dist/apis/index.d.ts +0 -2
  8. package/dist/apis/index.js +0 -2
  9. package/dist/esm/apis/AdminComplaintsApi.d.ts +25 -1
  10. package/dist/esm/apis/AdminComplaintsApi.js +39 -1
  11. package/dist/esm/apis/AdminNotificationsApi.d.ts +99 -5
  12. package/dist/esm/apis/AdminNotificationsApi.js +150 -3
  13. package/dist/esm/apis/index.d.ts +0 -2
  14. package/dist/esm/apis/index.js +0 -2
  15. package/dist/esm/models/AdminNotificationMarkedAsRead.d.ts +45 -0
  16. package/dist/esm/models/{RatesSuccessResponse.js → AdminNotificationMarkedAsRead.js} +11 -11
  17. package/dist/esm/models/AdminNotificationUnreadCount.d.ts +45 -0
  18. package/dist/esm/models/{RateAdjustmentsSuccessResponse.js → AdminNotificationUnreadCount.js} +11 -11
  19. package/dist/esm/models/AuditLogEntityTypeEnum.d.ts +5 -0
  20. package/dist/esm/models/AuditLogEntityTypeEnum.js +6 -1
  21. package/dist/esm/models/CreateAdminComplaintDto.d.ts +64 -0
  22. package/dist/esm/models/CreateAdminComplaintDto.js +61 -0
  23. package/dist/esm/models/NotificationTypeEnum.d.ts +5 -0
  24. package/dist/esm/models/NotificationTypeEnum.js +6 -1
  25. package/dist/esm/models/PaginatedAdminNotifications.d.ts +52 -0
  26. package/dist/esm/models/PaginatedAdminNotifications.js +55 -0
  27. package/dist/esm/models/index.d.ts +4 -11
  28. package/dist/esm/models/index.js +4 -11
  29. package/dist/models/AdminNotificationMarkedAsRead.d.ts +45 -0
  30. package/dist/models/AdminNotificationMarkedAsRead.js +57 -0
  31. package/dist/models/AdminNotificationUnreadCount.d.ts +45 -0
  32. package/dist/models/AdminNotificationUnreadCount.js +57 -0
  33. package/dist/models/AuditLogEntityTypeEnum.d.ts +5 -0
  34. package/dist/models/AuditLogEntityTypeEnum.js +6 -1
  35. package/dist/models/CreateAdminComplaintDto.d.ts +64 -0
  36. package/dist/models/CreateAdminComplaintDto.js +68 -0
  37. package/dist/models/NotificationTypeEnum.d.ts +5 -0
  38. package/dist/models/NotificationTypeEnum.js +6 -1
  39. package/dist/models/PaginatedAdminNotifications.d.ts +52 -0
  40. package/dist/models/PaginatedAdminNotifications.js +62 -0
  41. package/dist/models/index.d.ts +4 -11
  42. package/dist/models/index.js +4 -11
  43. package/package.json +1 -1
  44. package/src/apis/AdminComplaintsApi.ts +69 -0
  45. package/src/apis/AdminNotificationsApi.ts +256 -4
  46. package/src/apis/index.ts +0 -2
  47. package/src/models/AdminNotificationMarkedAsRead.ts +91 -0
  48. package/src/models/AdminNotificationUnreadCount.ts +91 -0
  49. package/src/models/AuditLogEntityTypeEnum.ts +6 -1
  50. package/src/models/CreateAdminComplaintDto.ts +126 -0
  51. package/src/models/NotificationTypeEnum.ts +6 -1
  52. package/src/models/PaginatedAdminNotifications.ts +107 -0
  53. package/src/models/index.ts +4 -11
  54. package/dist/apis/RateAdjustmentsApi.d.ts +0 -150
  55. package/dist/apis/RateAdjustmentsApi.js +0 -227
  56. package/dist/apis/RatesApi.d.ts +0 -94
  57. package/dist/apis/RatesApi.js +0 -140
  58. package/dist/esm/apis/RateAdjustmentsApi.d.ts +0 -150
  59. package/dist/esm/apis/RateAdjustmentsApi.js +0 -223
  60. package/dist/esm/apis/RatesApi.d.ts +0 -94
  61. package/dist/esm/apis/RatesApi.js +0 -136
  62. package/dist/esm/models/ApproveRateAdjustmentDto.d.ts +0 -32
  63. package/dist/esm/models/ApproveRateAdjustmentDto.js +0 -41
  64. package/dist/esm/models/CreateRateAdjustmentDto.d.ts +0 -52
  65. package/dist/esm/models/CreateRateAdjustmentDto.js +0 -57
  66. package/dist/esm/models/Rate.d.ts +0 -172
  67. package/dist/esm/models/Rate.js +0 -135
  68. package/dist/esm/models/RateAdjustment.d.ts +0 -143
  69. package/dist/esm/models/RateAdjustment.js +0 -100
  70. package/dist/esm/models/RateAdjustmentChargeDto.d.ts +0 -45
  71. package/dist/esm/models/RateAdjustmentChargeDto.js +0 -52
  72. package/dist/esm/models/RateAdjustmentStatusEnum.d.ts +0 -27
  73. package/dist/esm/models/RateAdjustmentStatusEnum.js +0 -45
  74. package/dist/esm/models/RateAdjustmentsSuccessResponse.d.ts +0 -45
  75. package/dist/esm/models/RateChargeTypeEnum.d.ts +0 -40
  76. package/dist/esm/models/RateChargeTypeEnum.js +0 -58
  77. package/dist/esm/models/RateStatusEnum.d.ts +0 -26
  78. package/dist/esm/models/RateStatusEnum.js +0 -44
  79. package/dist/esm/models/RatesSuccessResponse.d.ts +0 -45
  80. package/dist/esm/models/RejectRateAdjustmentDto.d.ts +0 -32
  81. package/dist/esm/models/RejectRateAdjustmentDto.js +0 -43
  82. package/dist/models/ApproveRateAdjustmentDto.d.ts +0 -32
  83. package/dist/models/ApproveRateAdjustmentDto.js +0 -48
  84. package/dist/models/CreateRateAdjustmentDto.d.ts +0 -52
  85. package/dist/models/CreateRateAdjustmentDto.js +0 -64
  86. package/dist/models/Rate.d.ts +0 -172
  87. package/dist/models/Rate.js +0 -142
  88. package/dist/models/RateAdjustment.d.ts +0 -143
  89. package/dist/models/RateAdjustment.js +0 -107
  90. package/dist/models/RateAdjustmentChargeDto.d.ts +0 -45
  91. package/dist/models/RateAdjustmentChargeDto.js +0 -59
  92. package/dist/models/RateAdjustmentStatusEnum.d.ts +0 -27
  93. package/dist/models/RateAdjustmentStatusEnum.js +0 -53
  94. package/dist/models/RateAdjustmentsSuccessResponse.d.ts +0 -45
  95. package/dist/models/RateAdjustmentsSuccessResponse.js +0 -57
  96. package/dist/models/RateChargeTypeEnum.d.ts +0 -40
  97. package/dist/models/RateChargeTypeEnum.js +0 -66
  98. package/dist/models/RateStatusEnum.d.ts +0 -26
  99. package/dist/models/RateStatusEnum.js +0 -52
  100. package/dist/models/RatesSuccessResponse.d.ts +0 -45
  101. package/dist/models/RatesSuccessResponse.js +0 -57
  102. package/dist/models/RejectRateAdjustmentDto.d.ts +0 -32
  103. package/dist/models/RejectRateAdjustmentDto.js +0 -50
  104. package/src/apis/RateAdjustmentsApi.ts +0 -395
  105. package/src/apis/RatesApi.ts +0 -224
  106. package/src/models/ApproveRateAdjustmentDto.ts +0 -65
  107. package/src/models/CreateRateAdjustmentDto.ts +0 -110
  108. package/src/models/Rate.ts +0 -289
  109. package/src/models/RateAdjustment.ts +0 -243
  110. package/src/models/RateAdjustmentChargeDto.ts +0 -94
  111. package/src/models/RateAdjustmentStatusEnum.ts +0 -55
  112. package/src/models/RateAdjustmentsSuccessResponse.ts +0 -91
  113. package/src/models/RateChargeTypeEnum.ts +0 -68
  114. package/src/models/RateStatusEnum.ts +0 -54
  115. package/src/models/RatesSuccessResponse.ts +0 -91
  116. package/src/models/RejectRateAdjustmentDto.ts +0 -66
@@ -0,0 +1,61 @@
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 { ComplaintPriorityEnumFromJSON, ComplaintPriorityEnumToJSON, } from './ComplaintPriorityEnum';
15
+ import { ComplaintTypeEnumFromJSON, ComplaintTypeEnumToJSON, } from './ComplaintTypeEnum';
16
+ /**
17
+ * Check if a given object implements the CreateAdminComplaintDto interface.
18
+ */
19
+ export function instanceOfCreateAdminComplaintDto(value) {
20
+ if (!('consumerId' in value) || value['consumerId'] === undefined)
21
+ return false;
22
+ if (!('type' in value) || value['type'] === undefined)
23
+ return false;
24
+ if (!('subject' in value) || value['subject'] === undefined)
25
+ return false;
26
+ if (!('description' in value) || value['description'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function CreateAdminComplaintDtoFromJSON(json) {
31
+ return CreateAdminComplaintDtoFromJSONTyped(json, false);
32
+ }
33
+ export function CreateAdminComplaintDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'consumerId': json['consumerId'],
39
+ 'type': ComplaintTypeEnumFromJSON(json['type']),
40
+ 'subject': json['subject'],
41
+ 'description': json['description'],
42
+ 'priority': json['priority'] == null ? undefined : ComplaintPriorityEnumFromJSON(json['priority']),
43
+ 'photos': json['photos'] == null ? undefined : json['photos'],
44
+ };
45
+ }
46
+ export function CreateAdminComplaintDtoToJSON(json) {
47
+ return CreateAdminComplaintDtoToJSONTyped(json, false);
48
+ }
49
+ export function CreateAdminComplaintDtoToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'consumerId': value['consumerId'],
55
+ 'type': ComplaintTypeEnumToJSON(value['type']),
56
+ 'subject': value['subject'],
57
+ 'description': value['description'],
58
+ 'priority': ComplaintPriorityEnumToJSON(value['priority']),
59
+ 'photos': value['photos'],
60
+ };
61
+ }
@@ -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;
@@ -18,7 +18,12 @@
18
18
  export const NotificationTypeEnum = {
19
19
  Bill: 'bill',
20
20
  Complaint: 'complaint',
21
- System: 'system'
21
+ System: 'system',
22
+ ServiceRequest: 'service_request',
23
+ WorkOrder: 'work_order',
24
+ Outage: 'outage',
25
+ Payment: 'payment',
26
+ MeterReading: 'meter_reading'
22
27
  };
23
28
  export function instanceOfNotificationTypeEnum(value) {
24
29
  for (const key in 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,55 @@
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 { PaginationMetaDtoFromJSON, PaginationMetaDtoToJSON, } from './PaginationMetaDto';
15
+ import { PaginatedResponseDtoFromJSON, PaginatedResponseDtoToJSON, } from './PaginatedResponseDto';
16
+ /**
17
+ * Check if a given object implements the PaginatedAdminNotifications interface.
18
+ */
19
+ export function instanceOfPaginatedAdminNotifications(value) {
20
+ if (!('success' in value) || value['success'] === undefined)
21
+ return false;
22
+ if (!('data' in value) || value['data'] === undefined)
23
+ return false;
24
+ if (!('meta' in value) || value['meta'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PaginatedAdminNotificationsFromJSON(json) {
29
+ return PaginatedAdminNotificationsFromJSONTyped(json, false);
30
+ }
31
+ export function PaginatedAdminNotificationsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'success': json['success'],
37
+ 'error': json['error'] == null ? undefined : json['error'],
38
+ 'data': (json['data'].map(PaginatedResponseDtoFromJSON)),
39
+ 'meta': PaginationMetaDtoFromJSON(json['meta']),
40
+ };
41
+ }
42
+ export function PaginatedAdminNotificationsToJSON(json) {
43
+ return PaginatedAdminNotificationsToJSONTyped(json, false);
44
+ }
45
+ export function PaginatedAdminNotificationsToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'success': value['success'],
51
+ 'error': value['error'],
52
+ 'data': (value['data'].map(PaginatedResponseDtoToJSON)),
53
+ 'meta': PaginationMetaDtoToJSON(value['meta']),
54
+ };
55
+ }
@@ -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';
@@ -9,6 +9,8 @@ export * from './AdminAuditLogsPaginatedResponse';
9
9
  export * from './AdminCreateServiceRequestResponse';
10
10
  export * from './AdminCreateWorkOrderResponse';
11
11
  export * from './AdminLoginDto';
12
+ export * from './AdminNotificationMarkedAsRead';
13
+ export * from './AdminNotificationUnreadCount';
12
14
  export * from './AdminOutageStatsResponse';
13
15
  export * from './AdminOutagesPaginatedResponse';
14
16
  export * from './AdminSendNotificationDto';
@@ -24,7 +26,6 @@ export * from './AdminWorkOrdersPaginatedResponse';
24
26
  export * from './AnnualMonthSummaryDto';
25
27
  export * from './AnnualSummaryReportDto';
26
28
  export * from './AnnualSummaryReportSuccessResponse';
27
- export * from './ApproveRateAdjustmentDto';
28
29
  export * from './AssignWorkOrderDto';
29
30
  export * from './AuditLog';
30
31
  export * from './AuditLogActionsResponseDto';
@@ -78,11 +79,11 @@ export * from './ConsumerTypeEnum';
78
79
  export * from './ConsumersAdminPaginatedResponse';
79
80
  export * from './ConsumersAdminUnBilledPaginatedResponse';
80
81
  export * from './ConsumersSuccessResponse';
82
+ export * from './CreateAdminComplaintDto';
81
83
  export * from './CreateBillDto';
82
84
  export * from './CreateConsumerAccountDto';
83
85
  export * from './CreateConsumerDto';
84
86
  export * from './CreateOutageDto';
85
- export * from './CreateRateAdjustmentDto';
86
87
  export * from './CreateRateDisplayVersionDto';
87
88
  export * from './CreateServiceRequestDto';
88
89
  export * from './CreateUserDto';
@@ -132,6 +133,7 @@ export * from './OutageSeverityEnum';
132
133
  export * from './OutageStatsDto';
133
134
  export * from './OutageStatusEnum';
134
135
  export * from './OutagesSuccessResponse';
136
+ export * from './PaginatedAdminNotifications';
135
137
  export * from './PaginatedNotifications';
136
138
  export * from './PaginatedResponseDto';
137
139
  export * from './PaginationMetaDto';
@@ -139,27 +141,18 @@ export * from './PerformanceReportSuccessResponse';
139
141
  export * from './PickTypeClass';
140
142
  export * from './PreviewBillDto';
141
143
  export * from './PreviewMeterReadingDto';
142
- export * from './Rate';
143
- export * from './RateAdjustment';
144
- export * from './RateAdjustmentChargeDto';
145
- export * from './RateAdjustmentStatusEnum';
146
- export * from './RateAdjustmentsSuccessResponse';
147
144
  export * from './RateCategoryDto';
148
145
  export * from './RateChargeDto';
149
- export * from './RateChargeTypeEnum';
150
146
  export * from './RateDisplay';
151
147
  export * from './RateDisplayStructureDto';
152
148
  export * from './RateDisplayStructureResponse';
153
149
  export * from './RateDisplayVersionResponse';
154
150
  export * from './RateDisplaysSuccessResponse';
155
151
  export * from './RateSectionDto';
156
- export * from './RateStatusEnum';
157
- export * from './RatesSuccessResponse';
158
152
  export * from './ReadingHistoryItemDto';
159
153
  export * from './RefreshTokenDto';
160
154
  export * from './RefreshTokenResponse';
161
155
  export * from './RefreshTokenResponseDto';
162
- export * from './RejectRateAdjustmentDto';
163
156
  export * from './ResourceEnum';
164
157
  export * from './RevenueByStatusDto';
165
158
  export * from './RevenueReportDto';
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Electric Cooperative Consumer Portal API
3
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Notification } from './Notification';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AdminNotificationMarkedAsRead
17
+ */
18
+ export interface AdminNotificationMarkedAsRead {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof AdminNotificationMarkedAsRead
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AdminNotificationMarkedAsRead
29
+ */
30
+ error?: string;
31
+ /**
32
+ *
33
+ * @type {Notification}
34
+ * @memberof AdminNotificationMarkedAsRead
35
+ */
36
+ data: Notification;
37
+ }
38
+ /**
39
+ * Check if a given object implements the AdminNotificationMarkedAsRead interface.
40
+ */
41
+ export declare function instanceOfAdminNotificationMarkedAsRead(value: object): value is AdminNotificationMarkedAsRead;
42
+ export declare function AdminNotificationMarkedAsReadFromJSON(json: any): AdminNotificationMarkedAsRead;
43
+ export declare function AdminNotificationMarkedAsReadFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNotificationMarkedAsRead;
44
+ export declare function AdminNotificationMarkedAsReadToJSON(json: any): AdminNotificationMarkedAsRead;
45
+ export declare function AdminNotificationMarkedAsReadToJSONTyped(value?: AdminNotificationMarkedAsRead | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Electric Cooperative Consumer Portal API
6
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAdminNotificationMarkedAsRead = instanceOfAdminNotificationMarkedAsRead;
17
+ exports.AdminNotificationMarkedAsReadFromJSON = AdminNotificationMarkedAsReadFromJSON;
18
+ exports.AdminNotificationMarkedAsReadFromJSONTyped = AdminNotificationMarkedAsReadFromJSONTyped;
19
+ exports.AdminNotificationMarkedAsReadToJSON = AdminNotificationMarkedAsReadToJSON;
20
+ exports.AdminNotificationMarkedAsReadToJSONTyped = AdminNotificationMarkedAsReadToJSONTyped;
21
+ const Notification_1 = require("./Notification");
22
+ /**
23
+ * Check if a given object implements the AdminNotificationMarkedAsRead interface.
24
+ */
25
+ function instanceOfAdminNotificationMarkedAsRead(value) {
26
+ if (!('success' in value) || value['success'] === undefined)
27
+ return false;
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AdminNotificationMarkedAsReadFromJSON(json) {
33
+ return AdminNotificationMarkedAsReadFromJSONTyped(json, false);
34
+ }
35
+ function AdminNotificationMarkedAsReadFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'success': json['success'],
41
+ 'error': json['error'] == null ? undefined : json['error'],
42
+ 'data': (0, Notification_1.NotificationFromJSON)(json['data']),
43
+ };
44
+ }
45
+ function AdminNotificationMarkedAsReadToJSON(json) {
46
+ return AdminNotificationMarkedAsReadToJSONTyped(json, false);
47
+ }
48
+ function AdminNotificationMarkedAsReadToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'success': value['success'],
54
+ 'error': value['error'],
55
+ 'data': (0, Notification_1.NotificationToJSON)(value['data']),
56
+ };
57
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Electric Cooperative Consumer Portal API
3
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { NotificationUnreadCountResponseDto } from './NotificationUnreadCountResponseDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AdminNotificationUnreadCount
17
+ */
18
+ export interface AdminNotificationUnreadCount {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof AdminNotificationUnreadCount
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AdminNotificationUnreadCount
29
+ */
30
+ error?: string;
31
+ /**
32
+ *
33
+ * @type {NotificationUnreadCountResponseDto}
34
+ * @memberof AdminNotificationUnreadCount
35
+ */
36
+ data: NotificationUnreadCountResponseDto;
37
+ }
38
+ /**
39
+ * Check if a given object implements the AdminNotificationUnreadCount interface.
40
+ */
41
+ export declare function instanceOfAdminNotificationUnreadCount(value: object): value is AdminNotificationUnreadCount;
42
+ export declare function AdminNotificationUnreadCountFromJSON(json: any): AdminNotificationUnreadCount;
43
+ export declare function AdminNotificationUnreadCountFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminNotificationUnreadCount;
44
+ export declare function AdminNotificationUnreadCountToJSON(json: any): AdminNotificationUnreadCount;
45
+ export declare function AdminNotificationUnreadCountToJSONTyped(value?: AdminNotificationUnreadCount | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Electric Cooperative Consumer Portal API
6
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAdminNotificationUnreadCount = instanceOfAdminNotificationUnreadCount;
17
+ exports.AdminNotificationUnreadCountFromJSON = AdminNotificationUnreadCountFromJSON;
18
+ exports.AdminNotificationUnreadCountFromJSONTyped = AdminNotificationUnreadCountFromJSONTyped;
19
+ exports.AdminNotificationUnreadCountToJSON = AdminNotificationUnreadCountToJSON;
20
+ exports.AdminNotificationUnreadCountToJSONTyped = AdminNotificationUnreadCountToJSONTyped;
21
+ const NotificationUnreadCountResponseDto_1 = require("./NotificationUnreadCountResponseDto");
22
+ /**
23
+ * Check if a given object implements the AdminNotificationUnreadCount interface.
24
+ */
25
+ function instanceOfAdminNotificationUnreadCount(value) {
26
+ if (!('success' in value) || value['success'] === undefined)
27
+ return false;
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AdminNotificationUnreadCountFromJSON(json) {
33
+ return AdminNotificationUnreadCountFromJSONTyped(json, false);
34
+ }
35
+ function AdminNotificationUnreadCountFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'success': json['success'],
41
+ 'error': json['error'] == null ? undefined : json['error'],
42
+ 'data': (0, NotificationUnreadCountResponseDto_1.NotificationUnreadCountResponseDtoFromJSON)(json['data']),
43
+ };
44
+ }
45
+ function AdminNotificationUnreadCountToJSON(json) {
46
+ return AdminNotificationUnreadCountToJSONTyped(json, false);
47
+ }
48
+ function AdminNotificationUnreadCountToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'success': value['success'],
54
+ 'error': value['error'],
55
+ 'data': (0, NotificationUnreadCountResponseDto_1.NotificationUnreadCountResponseDtoToJSON)(value['data']),
56
+ };
57
+ }
@@ -20,6 +20,11 @@ export declare const AuditLogEntityTypeEnum: {
20
20
  readonly ConsumerAccount: "consumer_account";
21
21
  readonly ServiceRequest: "service_request";
22
22
  readonly Complaint: "complaint";
23
+ readonly Consumer: "consumer";
24
+ readonly RateAdjustment: "rate_adjustment";
25
+ readonly RateDisplay: "rate_display";
26
+ readonly Bill: "bill";
27
+ readonly Settings: "settings";
23
28
  };
24
29
  export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
25
30
  export declare function instanceOfAuditLogEntityTypeEnum(value: any): boolean;
@@ -29,7 +29,12 @@ exports.AuditLogEntityTypeEnum = {
29
29
  User: 'user',
30
30
  ConsumerAccount: 'consumer_account',
31
31
  ServiceRequest: 'service_request',
32
- Complaint: 'complaint'
32
+ Complaint: 'complaint',
33
+ Consumer: 'consumer',
34
+ RateAdjustment: 'rate_adjustment',
35
+ RateDisplay: 'rate_display',
36
+ Bill: 'bill',
37
+ Settings: 'settings'
33
38
  };
34
39
  function instanceOfAuditLogEntityTypeEnum(value) {
35
40
  for (const key in exports.AuditLogEntityTypeEnum) {
@@ -0,0 +1,64 @@
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 { ComplaintPriorityEnum } from './ComplaintPriorityEnum';
13
+ import type { ComplaintTypeEnum } from './ComplaintTypeEnum';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CreateAdminComplaintDto
18
+ */
19
+ export interface CreateAdminComplaintDto {
20
+ /**
21
+ * Consumer ID to file the complaint on behalf of
22
+ * @type {string}
23
+ * @memberof CreateAdminComplaintDto
24
+ */
25
+ consumerId: string;
26
+ /**
27
+ *
28
+ * @type {ComplaintTypeEnum}
29
+ * @memberof CreateAdminComplaintDto
30
+ */
31
+ type: ComplaintTypeEnum;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CreateAdminComplaintDto
36
+ */
37
+ subject: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CreateAdminComplaintDto
42
+ */
43
+ description: string;
44
+ /**
45
+ *
46
+ * @type {ComplaintPriorityEnum}
47
+ * @memberof CreateAdminComplaintDto
48
+ */
49
+ priority?: ComplaintPriorityEnum;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof CreateAdminComplaintDto
54
+ */
55
+ photos?: Array<string>;
56
+ }
57
+ /**
58
+ * Check if a given object implements the CreateAdminComplaintDto interface.
59
+ */
60
+ export declare function instanceOfCreateAdminComplaintDto(value: object): value is CreateAdminComplaintDto;
61
+ export declare function CreateAdminComplaintDtoFromJSON(json: any): CreateAdminComplaintDto;
62
+ export declare function CreateAdminComplaintDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminComplaintDto;
63
+ export declare function CreateAdminComplaintDtoToJSON(json: any): CreateAdminComplaintDto;
64
+ export declare function CreateAdminComplaintDtoToJSONTyped(value?: CreateAdminComplaintDto | null, ignoreDiscriminator?: boolean): any;