electric-coop-api 0.1.75 → 0.1.77
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 +1 -7
- package/README.md +2 -2
- package/dist/apis/AdminComplaintsApi.d.ts +25 -1
- package/dist/apis/AdminComplaintsApi.js +38 -0
- package/dist/apis/ReportsApi.d.ts +2 -2
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/esm/apis/AdminComplaintsApi.d.ts +25 -1
- package/dist/esm/apis/AdminComplaintsApi.js +39 -1
- package/dist/esm/apis/ReportsApi.d.ts +2 -2
- package/dist/esm/apis/index.d.ts +0 -1
- package/dist/esm/apis/index.js +0 -1
- package/dist/esm/models/AuditLogEntityTypeEnum.d.ts +5 -0
- package/dist/esm/models/AuditLogEntityTypeEnum.js +6 -1
- package/dist/esm/models/ComplaintTypeEnum.d.ts +1 -1
- package/dist/esm/models/ComplaintTypeEnum.js +1 -1
- package/dist/esm/models/CreateAdminComplaintDto.d.ts +64 -0
- package/dist/esm/models/CreateAdminComplaintDto.js +61 -0
- package/dist/esm/models/ResourceEnum.d.ts +0 -1
- package/dist/esm/models/ResourceEnum.js +0 -1
- package/dist/esm/models/UpdateComplaintDto.d.ts +7 -0
- package/dist/esm/models/UpdateComplaintDto.js +3 -0
- package/dist/esm/models/UserPermissionEnum.d.ts +0 -1
- package/dist/esm/models/UserPermissionEnum.js +0 -1
- package/dist/esm/models/index.d.ts +1 -6
- package/dist/esm/models/index.js +1 -6
- package/dist/models/AuditLogEntityTypeEnum.d.ts +5 -0
- package/dist/models/AuditLogEntityTypeEnum.js +6 -1
- package/dist/models/ComplaintTypeEnum.d.ts +1 -1
- package/dist/models/ComplaintTypeEnum.js +1 -1
- package/dist/models/CreateAdminComplaintDto.d.ts +64 -0
- package/dist/models/CreateAdminComplaintDto.js +68 -0
- package/dist/models/ResourceEnum.d.ts +0 -1
- package/dist/models/ResourceEnum.js +0 -1
- package/dist/models/UpdateComplaintDto.d.ts +7 -0
- package/dist/models/UpdateComplaintDto.js +3 -0
- package/dist/models/UserPermissionEnum.d.ts +0 -1
- package/dist/models/UserPermissionEnum.js +0 -1
- package/dist/models/index.d.ts +1 -6
- package/dist/models/index.js +1 -6
- package/package.json +1 -1
- package/src/apis/AdminComplaintsApi.ts +69 -0
- package/src/apis/ReportsApi.ts +2 -2
- package/src/apis/index.ts +0 -1
- package/src/models/AuditLogEntityTypeEnum.ts +6 -1
- package/src/models/ComplaintTypeEnum.ts +1 -1
- package/src/models/CreateAdminComplaintDto.ts +126 -0
- package/src/models/ResourceEnum.ts +0 -1
- package/src/models/UpdateComplaintDto.ts +15 -0
- package/src/models/UserPermissionEnum.ts +0 -1
- package/src/models/index.ts +1 -6
- package/dist/apis/AnalyticsApi.d.ts +0 -70
- package/dist/apis/AnalyticsApi.js +0 -102
- package/dist/esm/apis/AnalyticsApi.d.ts +0 -70
- package/dist/esm/apis/AnalyticsApi.js +0 -98
- package/dist/esm/models/AnalyticsKpiDto.d.ts +0 -59
- package/dist/esm/models/AnalyticsKpiDto.js +0 -63
- package/dist/esm/models/AnalyticsOverviewDto.d.ts +0 -75
- package/dist/esm/models/AnalyticsOverviewDto.js +0 -72
- package/dist/esm/models/AnalyticsOverviewSuccessResponse.d.ts +0 -45
- package/dist/esm/models/AnalyticsOverviewSuccessResponse.js +0 -50
- package/dist/esm/models/AnalyticsTrendsDto.d.ts +0 -51
- package/dist/esm/models/AnalyticsTrendsDto.js +0 -56
- package/dist/esm/models/AnalyticsTrendsSuccessResponse.d.ts +0 -45
- package/dist/esm/models/AnalyticsTrendsSuccessResponse.js +0 -50
- package/dist/esm/models/TrendDataPointDto.d.ts +0 -38
- package/dist/esm/models/TrendDataPointDto.js +0 -47
- package/dist/models/AnalyticsKpiDto.d.ts +0 -59
- package/dist/models/AnalyticsKpiDto.js +0 -71
- package/dist/models/AnalyticsOverviewDto.d.ts +0 -75
- package/dist/models/AnalyticsOverviewDto.js +0 -79
- package/dist/models/AnalyticsOverviewSuccessResponse.d.ts +0 -45
- package/dist/models/AnalyticsOverviewSuccessResponse.js +0 -57
- package/dist/models/AnalyticsTrendsDto.d.ts +0 -51
- package/dist/models/AnalyticsTrendsDto.js +0 -63
- package/dist/models/AnalyticsTrendsSuccessResponse.d.ts +0 -45
- package/dist/models/AnalyticsTrendsSuccessResponse.js +0 -57
- package/dist/models/TrendDataPointDto.d.ts +0 -38
- package/dist/models/TrendDataPointDto.js +0 -54
- package/src/apis/AnalyticsApi.ts +0 -156
- package/src/models/AnalyticsKpiDto.ts +0 -105
- package/src/models/AnalyticsOverviewDto.ts +0 -137
- package/src/models/AnalyticsOverviewSuccessResponse.ts +0 -91
- package/src/models/AnalyticsTrendsDto.ts +0 -101
- package/src/models/AnalyticsTrendsSuccessResponse.ts +0 -91
- package/src/models/TrendDataPointDto.ts +0 -75
package/.openapi-generator/FILES
CHANGED
|
@@ -13,7 +13,6 @@ src/apis/AdminNotificationsApi.ts
|
|
|
13
13
|
src/apis/AdminOutagesApi.ts
|
|
14
14
|
src/apis/AdminServiceRequestsApi.ts
|
|
15
15
|
src/apis/AdminWorkOrdersApi.ts
|
|
16
|
-
src/apis/AnalyticsApi.ts
|
|
17
16
|
src/apis/AuthApi.ts
|
|
18
17
|
src/apis/BillsApi.ts
|
|
19
18
|
src/apis/ComplaintsApi.ts
|
|
@@ -54,11 +53,6 @@ src/models/AdminUpdateWorkOrderResponse.ts
|
|
|
54
53
|
src/models/AdminWorkOrderResponse.ts
|
|
55
54
|
src/models/AdminWorkOrderStatsResponse.ts
|
|
56
55
|
src/models/AdminWorkOrdersPaginatedResponse.ts
|
|
57
|
-
src/models/AnalyticsKpiDto.ts
|
|
58
|
-
src/models/AnalyticsOverviewDto.ts
|
|
59
|
-
src/models/AnalyticsOverviewSuccessResponse.ts
|
|
60
|
-
src/models/AnalyticsTrendsDto.ts
|
|
61
|
-
src/models/AnalyticsTrendsSuccessResponse.ts
|
|
62
56
|
src/models/AnnualMonthSummaryDto.ts
|
|
63
57
|
src/models/AnnualSummaryReportDto.ts
|
|
64
58
|
src/models/AnnualSummaryReportSuccessResponse.ts
|
|
@@ -116,6 +110,7 @@ src/models/ConsumerTypeEnum.ts
|
|
|
116
110
|
src/models/ConsumersAdminPaginatedResponse.ts
|
|
117
111
|
src/models/ConsumersAdminUnBilledPaginatedResponse.ts
|
|
118
112
|
src/models/ConsumersSuccessResponse.ts
|
|
113
|
+
src/models/CreateAdminComplaintDto.ts
|
|
119
114
|
src/models/CreateBillDto.ts
|
|
120
115
|
src/models/CreateConsumerAccountDto.ts
|
|
121
116
|
src/models/CreateConsumerDto.ts
|
|
@@ -214,7 +209,6 @@ src/models/Tenant.ts
|
|
|
214
209
|
src/models/TenantSettingsResponseDto.ts
|
|
215
210
|
src/models/TenantSettingsSuccessResponse.ts
|
|
216
211
|
src/models/TenantStatusEnum.ts
|
|
217
|
-
src/models/TrendDataPointDto.ts
|
|
218
212
|
src/models/UpdateBillDto.ts
|
|
219
213
|
src/models/UpdateComplaintDto.ts
|
|
220
214
|
src/models/UpdateConsumerDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.77
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install electric-coop-api@0.1.
|
|
39
|
+
npm install electric-coop-api@0.1.77 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ComplaintPriorityEnum, ComplaintStatusEnum, ComplaintTypeEnum, ComplaintsAdminGetStatsResponse, ComplaintsAdminPaginatedResponse, ComplaintsSuccessResponse, UpdateComplaintDto } from '../models/index';
|
|
13
|
+
import type { ComplaintPriorityEnum, ComplaintStatusEnum, ComplaintTypeEnum, ComplaintsAdminGetStatsResponse, ComplaintsAdminPaginatedResponse, ComplaintsSuccessResponse, CreateAdminComplaintDto, UpdateComplaintDto } from '../models/index';
|
|
14
|
+
export interface CreateAdminComplaintRequest {
|
|
15
|
+
createAdminComplaintDto: CreateAdminComplaintDto;
|
|
16
|
+
}
|
|
14
17
|
export interface GetAdminComplaintByIdRequest {
|
|
15
18
|
id: string;
|
|
16
19
|
}
|
|
@@ -39,6 +42,19 @@ export interface UpdateAdminComplaintStatusRequest {
|
|
|
39
42
|
* @interface AdminComplaintsApiInterface
|
|
40
43
|
*/
|
|
41
44
|
export interface AdminComplaintsApiInterface {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Create complaint on behalf of consumer (admin)
|
|
48
|
+
* @param {CreateAdminComplaintDto} createAdminComplaintDto
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @memberof AdminComplaintsApiInterface
|
|
52
|
+
*/
|
|
53
|
+
createAdminComplaintRaw(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComplaintsSuccessResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Create complaint on behalf of consumer (admin)
|
|
56
|
+
*/
|
|
57
|
+
createAdminComplaint(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComplaintsSuccessResponse>;
|
|
42
58
|
/**
|
|
43
59
|
*
|
|
44
60
|
* @summary Get complaint by id (admin)
|
|
@@ -117,6 +133,14 @@ export interface AdminComplaintsApiInterface {
|
|
|
117
133
|
*
|
|
118
134
|
*/
|
|
119
135
|
export declare class AdminComplaintsApi extends runtime.BaseAPI implements AdminComplaintsApiInterface {
|
|
136
|
+
/**
|
|
137
|
+
* Create complaint on behalf of consumer (admin)
|
|
138
|
+
*/
|
|
139
|
+
createAdminComplaintRaw(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComplaintsSuccessResponse>>;
|
|
140
|
+
/**
|
|
141
|
+
* Create complaint on behalf of consumer (admin)
|
|
142
|
+
*/
|
|
143
|
+
createAdminComplaint(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComplaintsSuccessResponse>;
|
|
120
144
|
/**
|
|
121
145
|
* Get complaint by id (admin)
|
|
122
146
|
*/
|
|
@@ -29,6 +29,44 @@ const index_1 = require("../models/index");
|
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class AdminComplaintsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Create complaint on behalf of consumer (admin)
|
|
34
|
+
*/
|
|
35
|
+
createAdminComplaintRaw(requestParameters, initOverrides) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['createAdminComplaintDto'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('createAdminComplaintDto', 'Required parameter "createAdminComplaintDto" was null or undefined when calling createAdminComplaint().');
|
|
39
|
+
}
|
|
40
|
+
const queryParameters = {};
|
|
41
|
+
const headerParameters = {};
|
|
42
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("bearer", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
let urlPath = `/api/v1/admin/complaints`;
|
|
51
|
+
const response = yield this.request({
|
|
52
|
+
path: urlPath,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
headers: headerParameters,
|
|
55
|
+
query: queryParameters,
|
|
56
|
+
body: (0, index_1.CreateAdminComplaintDtoToJSON)(requestParameters['createAdminComplaintDto']),
|
|
57
|
+
}, initOverrides);
|
|
58
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ComplaintsSuccessResponseFromJSON)(jsonValue));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Create complaint on behalf of consumer (admin)
|
|
63
|
+
*/
|
|
64
|
+
createAdminComplaint(requestParameters, initOverrides) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const response = yield this.createAdminComplaintRaw(requestParameters, initOverrides);
|
|
67
|
+
return yield response.value();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
32
70
|
/**
|
|
33
71
|
* Get complaint by id (admin)
|
|
34
72
|
*/
|
|
@@ -47,7 +47,7 @@ export interface ReportsApiInterface {
|
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @summary Get consumer summary report for a billing period
|
|
50
|
-
* @param {string} billingPeriod Billing period in YYYY-MM format
|
|
50
|
+
* @param {string} billingPeriod Billing period in YYYY-MM format (cannot be a future month)
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
* @memberof ReportsApiInterface
|
|
@@ -74,7 +74,7 @@ export interface ReportsApiInterface {
|
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @summary Get revenue report for a billing period
|
|
77
|
-
* @param {string} billingPeriod Billing period in YYYY-MM format
|
|
77
|
+
* @param {string} billingPeriod Billing period in YYYY-MM format (cannot be a future month)
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
* @memberof ReportsApiInterface
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export * from './AdminNotificationsApi';
|
|
|
8
8
|
export * from './AdminOutagesApi';
|
|
9
9
|
export * from './AdminServiceRequestsApi';
|
|
10
10
|
export * from './AdminWorkOrdersApi';
|
|
11
|
-
export * from './AnalyticsApi';
|
|
12
11
|
export * from './AuthApi';
|
|
13
12
|
export * from './BillsApi';
|
|
14
13
|
export * from './ComplaintsApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -26,7 +26,6 @@ __exportStar(require("./AdminNotificationsApi"), exports);
|
|
|
26
26
|
__exportStar(require("./AdminOutagesApi"), exports);
|
|
27
27
|
__exportStar(require("./AdminServiceRequestsApi"), exports);
|
|
28
28
|
__exportStar(require("./AdminWorkOrdersApi"), exports);
|
|
29
|
-
__exportStar(require("./AnalyticsApi"), exports);
|
|
30
29
|
__exportStar(require("./AuthApi"), exports);
|
|
31
30
|
__exportStar(require("./BillsApi"), exports);
|
|
32
31
|
__exportStar(require("./ComplaintsApi"), exports);
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ComplaintPriorityEnum, ComplaintStatusEnum, ComplaintTypeEnum, ComplaintsAdminGetStatsResponse, ComplaintsAdminPaginatedResponse, ComplaintsSuccessResponse, UpdateComplaintDto } from '../models/index';
|
|
13
|
+
import type { ComplaintPriorityEnum, ComplaintStatusEnum, ComplaintTypeEnum, ComplaintsAdminGetStatsResponse, ComplaintsAdminPaginatedResponse, ComplaintsSuccessResponse, CreateAdminComplaintDto, UpdateComplaintDto } from '../models/index';
|
|
14
|
+
export interface CreateAdminComplaintRequest {
|
|
15
|
+
createAdminComplaintDto: CreateAdminComplaintDto;
|
|
16
|
+
}
|
|
14
17
|
export interface GetAdminComplaintByIdRequest {
|
|
15
18
|
id: string;
|
|
16
19
|
}
|
|
@@ -39,6 +42,19 @@ export interface UpdateAdminComplaintStatusRequest {
|
|
|
39
42
|
* @interface AdminComplaintsApiInterface
|
|
40
43
|
*/
|
|
41
44
|
export interface AdminComplaintsApiInterface {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Create complaint on behalf of consumer (admin)
|
|
48
|
+
* @param {CreateAdminComplaintDto} createAdminComplaintDto
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
* @memberof AdminComplaintsApiInterface
|
|
52
|
+
*/
|
|
53
|
+
createAdminComplaintRaw(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComplaintsSuccessResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Create complaint on behalf of consumer (admin)
|
|
56
|
+
*/
|
|
57
|
+
createAdminComplaint(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComplaintsSuccessResponse>;
|
|
42
58
|
/**
|
|
43
59
|
*
|
|
44
60
|
* @summary Get complaint by id (admin)
|
|
@@ -117,6 +133,14 @@ export interface AdminComplaintsApiInterface {
|
|
|
117
133
|
*
|
|
118
134
|
*/
|
|
119
135
|
export declare class AdminComplaintsApi extends runtime.BaseAPI implements AdminComplaintsApiInterface {
|
|
136
|
+
/**
|
|
137
|
+
* Create complaint on behalf of consumer (admin)
|
|
138
|
+
*/
|
|
139
|
+
createAdminComplaintRaw(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ComplaintsSuccessResponse>>;
|
|
140
|
+
/**
|
|
141
|
+
* Create complaint on behalf of consumer (admin)
|
|
142
|
+
*/
|
|
143
|
+
createAdminComplaint(requestParameters: CreateAdminComplaintRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ComplaintsSuccessResponse>;
|
|
120
144
|
/**
|
|
121
145
|
* Get complaint by id (admin)
|
|
122
146
|
*/
|
|
@@ -21,11 +21,49 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ComplaintsAdminGetStatsResponseFromJSON, ComplaintsAdminPaginatedResponseFromJSON, ComplaintsSuccessResponseFromJSON, UpdateComplaintDtoToJSON, } from '../models/index';
|
|
24
|
+
import { ComplaintsAdminGetStatsResponseFromJSON, ComplaintsAdminPaginatedResponseFromJSON, ComplaintsSuccessResponseFromJSON, CreateAdminComplaintDtoToJSON, UpdateComplaintDtoToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class AdminComplaintsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Create complaint on behalf of consumer (admin)
|
|
31
|
+
*/
|
|
32
|
+
createAdminComplaintRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['createAdminComplaintDto'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('createAdminComplaintDto', 'Required parameter "createAdminComplaintDto" was null or undefined when calling createAdminComplaint().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("bearer", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
let urlPath = `/api/v1/admin/complaints`;
|
|
48
|
+
const response = yield this.request({
|
|
49
|
+
path: urlPath,
|
|
50
|
+
method: 'POST',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
body: CreateAdminComplaintDtoToJSON(requestParameters['createAdminComplaintDto']),
|
|
54
|
+
}, initOverrides);
|
|
55
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ComplaintsSuccessResponseFromJSON(jsonValue));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Create complaint on behalf of consumer (admin)
|
|
60
|
+
*/
|
|
61
|
+
createAdminComplaint(requestParameters, initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const response = yield this.createAdminComplaintRaw(requestParameters, initOverrides);
|
|
64
|
+
return yield response.value();
|
|
65
|
+
});
|
|
66
|
+
}
|
|
29
67
|
/**
|
|
30
68
|
* Get complaint by id (admin)
|
|
31
69
|
*/
|
|
@@ -47,7 +47,7 @@ export interface ReportsApiInterface {
|
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @summary Get consumer summary report for a billing period
|
|
50
|
-
* @param {string} billingPeriod Billing period in YYYY-MM format
|
|
50
|
+
* @param {string} billingPeriod Billing period in YYYY-MM format (cannot be a future month)
|
|
51
51
|
* @param {*} [options] Override http request option.
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
* @memberof ReportsApiInterface
|
|
@@ -74,7 +74,7 @@ export interface ReportsApiInterface {
|
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @summary Get revenue report for a billing period
|
|
77
|
-
* @param {string} billingPeriod Billing period in YYYY-MM format
|
|
77
|
+
* @param {string} billingPeriod Billing period in YYYY-MM format (cannot be a future month)
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
* @memberof ReportsApiInterface
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export * from './AdminNotificationsApi';
|
|
|
8
8
|
export * from './AdminOutagesApi';
|
|
9
9
|
export * from './AdminServiceRequestsApi';
|
|
10
10
|
export * from './AdminWorkOrdersApi';
|
|
11
|
-
export * from './AnalyticsApi';
|
|
12
11
|
export * from './AuthApi';
|
|
13
12
|
export * from './BillsApi';
|
|
14
13
|
export * from './ComplaintsApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -10,7 +10,6 @@ export * from './AdminNotificationsApi';
|
|
|
10
10
|
export * from './AdminOutagesApi';
|
|
11
11
|
export * from './AdminServiceRequestsApi';
|
|
12
12
|
export * from './AdminWorkOrdersApi';
|
|
13
|
-
export * from './AnalyticsApi';
|
|
14
13
|
export * from './AuthApi';
|
|
15
14
|
export * from './BillsApi';
|
|
16
15
|
export * from './ComplaintsApi';
|
|
@@ -19,6 +19,11 @@ export declare const AuditLogEntityTypeEnum: {
|
|
|
19
19
|
readonly User: "user";
|
|
20
20
|
readonly ConsumerAccount: "consumer_account";
|
|
21
21
|
readonly ServiceRequest: "service_request";
|
|
22
|
+
readonly Complaint: "complaint";
|
|
23
|
+
readonly Consumer: "consumer";
|
|
24
|
+
readonly RateAdjustment: "rate_adjustment";
|
|
25
|
+
readonly Bill: "bill";
|
|
26
|
+
readonly Settings: "settings";
|
|
22
27
|
};
|
|
23
28
|
export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
|
|
24
29
|
export declare function instanceOfAuditLogEntityTypeEnum(value: any): boolean;
|
|
@@ -20,7 +20,12 @@ export const AuditLogEntityTypeEnum = {
|
|
|
20
20
|
WorkOrder: 'work_order',
|
|
21
21
|
User: 'user',
|
|
22
22
|
ConsumerAccount: 'consumer_account',
|
|
23
|
-
ServiceRequest: 'service_request'
|
|
23
|
+
ServiceRequest: 'service_request',
|
|
24
|
+
Complaint: 'complaint',
|
|
25
|
+
Consumer: 'consumer',
|
|
26
|
+
RateAdjustment: 'rate_adjustment',
|
|
27
|
+
Bill: 'bill',
|
|
28
|
+
Settings: 'settings'
|
|
24
29
|
};
|
|
25
30
|
export function instanceOfAuditLogEntityTypeEnum(value) {
|
|
26
31
|
for (const key in AuditLogEntityTypeEnum) {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
export declare const ComplaintTypeEnum: {
|
|
17
17
|
readonly Outage: "outage";
|
|
18
18
|
readonly Billing: "billing";
|
|
19
|
-
readonly
|
|
19
|
+
readonly ServiceConcern: "service_concern";
|
|
20
20
|
readonly Technical: "technical";
|
|
21
21
|
readonly Other: "other";
|
|
22
22
|
};
|
|
@@ -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;
|
|
@@ -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
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ComplaintStatusEnum } from './ComplaintStatusEnum';
|
|
13
13
|
import type { ComplaintPriorityEnum } from './ComplaintPriorityEnum';
|
|
14
|
+
import type { ComplaintTypeEnum } from './ComplaintTypeEnum';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -23,6 +24,12 @@ export interface UpdateComplaintDto {
|
|
|
23
24
|
* @memberof UpdateComplaintDto
|
|
24
25
|
*/
|
|
25
26
|
status?: ComplaintStatusEnum;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {ComplaintTypeEnum}
|
|
30
|
+
* @memberof UpdateComplaintDto
|
|
31
|
+
*/
|
|
32
|
+
type?: ComplaintTypeEnum;
|
|
26
33
|
/**
|
|
27
34
|
*
|
|
28
35
|
* @type {string}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { ComplaintStatusEnumFromJSON, ComplaintStatusEnumToJSON, } from './ComplaintStatusEnum';
|
|
15
15
|
import { ComplaintPriorityEnumFromJSON, ComplaintPriorityEnumToJSON, } from './ComplaintPriorityEnum';
|
|
16
|
+
import { ComplaintTypeEnumFromJSON, ComplaintTypeEnumToJSON, } from './ComplaintTypeEnum';
|
|
16
17
|
/**
|
|
17
18
|
* Check if a given object implements the UpdateComplaintDto interface.
|
|
18
19
|
*/
|
|
@@ -28,6 +29,7 @@ export function UpdateComplaintDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
29
|
}
|
|
29
30
|
return {
|
|
30
31
|
'status': json['status'] == null ? undefined : ComplaintStatusEnumFromJSON(json['status']),
|
|
32
|
+
'type': json['type'] == null ? undefined : ComplaintTypeEnumFromJSON(json['type']),
|
|
31
33
|
'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
|
|
32
34
|
'resolutionNotes': json['resolutionNotes'] == null ? undefined : json['resolutionNotes'],
|
|
33
35
|
'adminNotes': json['adminNotes'] == null ? undefined : json['adminNotes'],
|
|
@@ -43,6 +45,7 @@ export function UpdateComplaintDtoToJSONTyped(value, ignoreDiscriminator = false
|
|
|
43
45
|
}
|
|
44
46
|
return {
|
|
45
47
|
'status': ComplaintStatusEnumToJSON(value['status']),
|
|
48
|
+
'type': ComplaintTypeEnumToJSON(value['type']),
|
|
46
49
|
'assignedTo': value['assignedTo'],
|
|
47
50
|
'resolutionNotes': value['resolutionNotes'],
|
|
48
51
|
'adminNotes': value['adminNotes'],
|
|
@@ -64,7 +64,6 @@ export declare const UserPermissionEnum: {
|
|
|
64
64
|
readonly Technical: "technical.*";
|
|
65
65
|
readonly Billing: "billing.*";
|
|
66
66
|
readonly Reports: "reports.*";
|
|
67
|
-
readonly Analytics: "analytics.*";
|
|
68
67
|
readonly SettingsView: "settings.view";
|
|
69
68
|
readonly SettingsEdit: "settings.edit";
|
|
70
69
|
readonly Settings: "settings.*";
|
|
@@ -19,11 +19,6 @@ export * from './AdminUpdateWorkOrderResponse';
|
|
|
19
19
|
export * from './AdminWorkOrderResponse';
|
|
20
20
|
export * from './AdminWorkOrderStatsResponse';
|
|
21
21
|
export * from './AdminWorkOrdersPaginatedResponse';
|
|
22
|
-
export * from './AnalyticsKpiDto';
|
|
23
|
-
export * from './AnalyticsOverviewDto';
|
|
24
|
-
export * from './AnalyticsOverviewSuccessResponse';
|
|
25
|
-
export * from './AnalyticsTrendsDto';
|
|
26
|
-
export * from './AnalyticsTrendsSuccessResponse';
|
|
27
22
|
export * from './AnnualMonthSummaryDto';
|
|
28
23
|
export * from './AnnualSummaryReportDto';
|
|
29
24
|
export * from './AnnualSummaryReportSuccessResponse';
|
|
@@ -81,6 +76,7 @@ export * from './ConsumerTypeEnum';
|
|
|
81
76
|
export * from './ConsumersAdminPaginatedResponse';
|
|
82
77
|
export * from './ConsumersAdminUnBilledPaginatedResponse';
|
|
83
78
|
export * from './ConsumersSuccessResponse';
|
|
79
|
+
export * from './CreateAdminComplaintDto';
|
|
84
80
|
export * from './CreateBillDto';
|
|
85
81
|
export * from './CreateConsumerAccountDto';
|
|
86
82
|
export * from './CreateConsumerDto';
|
|
@@ -179,7 +175,6 @@ export * from './Tenant';
|
|
|
179
175
|
export * from './TenantSettingsResponseDto';
|
|
180
176
|
export * from './TenantSettingsSuccessResponse';
|
|
181
177
|
export * from './TenantStatusEnum';
|
|
182
|
-
export * from './TrendDataPointDto';
|
|
183
178
|
export * from './UpdateBillDto';
|
|
184
179
|
export * from './UpdateComplaintDto';
|
|
185
180
|
export * from './UpdateConsumerDto';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -21,11 +21,6 @@ export * from './AdminUpdateWorkOrderResponse';
|
|
|
21
21
|
export * from './AdminWorkOrderResponse';
|
|
22
22
|
export * from './AdminWorkOrderStatsResponse';
|
|
23
23
|
export * from './AdminWorkOrdersPaginatedResponse';
|
|
24
|
-
export * from './AnalyticsKpiDto';
|
|
25
|
-
export * from './AnalyticsOverviewDto';
|
|
26
|
-
export * from './AnalyticsOverviewSuccessResponse';
|
|
27
|
-
export * from './AnalyticsTrendsDto';
|
|
28
|
-
export * from './AnalyticsTrendsSuccessResponse';
|
|
29
24
|
export * from './AnnualMonthSummaryDto';
|
|
30
25
|
export * from './AnnualSummaryReportDto';
|
|
31
26
|
export * from './AnnualSummaryReportSuccessResponse';
|
|
@@ -83,6 +78,7 @@ export * from './ConsumerTypeEnum';
|
|
|
83
78
|
export * from './ConsumersAdminPaginatedResponse';
|
|
84
79
|
export * from './ConsumersAdminUnBilledPaginatedResponse';
|
|
85
80
|
export * from './ConsumersSuccessResponse';
|
|
81
|
+
export * from './CreateAdminComplaintDto';
|
|
86
82
|
export * from './CreateBillDto';
|
|
87
83
|
export * from './CreateConsumerAccountDto';
|
|
88
84
|
export * from './CreateConsumerDto';
|
|
@@ -181,7 +177,6 @@ export * from './Tenant';
|
|
|
181
177
|
export * from './TenantSettingsResponseDto';
|
|
182
178
|
export * from './TenantSettingsSuccessResponse';
|
|
183
179
|
export * from './TenantStatusEnum';
|
|
184
|
-
export * from './TrendDataPointDto';
|
|
185
180
|
export * from './UpdateBillDto';
|
|
186
181
|
export * from './UpdateComplaintDto';
|
|
187
182
|
export * from './UpdateConsumerDto';
|
|
@@ -19,6 +19,11 @@ export declare const AuditLogEntityTypeEnum: {
|
|
|
19
19
|
readonly User: "user";
|
|
20
20
|
readonly ConsumerAccount: "consumer_account";
|
|
21
21
|
readonly ServiceRequest: "service_request";
|
|
22
|
+
readonly Complaint: "complaint";
|
|
23
|
+
readonly Consumer: "consumer";
|
|
24
|
+
readonly RateAdjustment: "rate_adjustment";
|
|
25
|
+
readonly Bill: "bill";
|
|
26
|
+
readonly Settings: "settings";
|
|
22
27
|
};
|
|
23
28
|
export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
|
|
24
29
|
export declare function instanceOfAuditLogEntityTypeEnum(value: any): boolean;
|
|
@@ -28,7 +28,12 @@ exports.AuditLogEntityTypeEnum = {
|
|
|
28
28
|
WorkOrder: 'work_order',
|
|
29
29
|
User: 'user',
|
|
30
30
|
ConsumerAccount: 'consumer_account',
|
|
31
|
-
ServiceRequest: 'service_request'
|
|
31
|
+
ServiceRequest: 'service_request',
|
|
32
|
+
Complaint: 'complaint',
|
|
33
|
+
Consumer: 'consumer',
|
|
34
|
+
RateAdjustment: 'rate_adjustment',
|
|
35
|
+
Bill: 'bill',
|
|
36
|
+
Settings: 'settings'
|
|
32
37
|
};
|
|
33
38
|
function instanceOfAuditLogEntityTypeEnum(value) {
|
|
34
39
|
for (const key in exports.AuditLogEntityTypeEnum) {
|