electric-coop-api 0.1.39 → 0.1.41
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 +3 -2
- package/README.md +2 -2
- package/dist/apis/MetersApi.d.ts +57 -5
- package/dist/apis/MetersApi.js +85 -1
- package/dist/esm/apis/MetersApi.d.ts +57 -5
- package/dist/esm/apis/MetersApi.js +86 -2
- package/dist/esm/models/MeterReadingPreviewSuccessResponse.d.ts +45 -0
- package/dist/esm/models/{MeterCurrentBillSuccessResponse.js → MeterReadingPreviewSuccessResponse.js} +11 -11
- package/dist/esm/models/PreviewMeterReadingDto.d.ts +32 -0
- package/dist/esm/models/PreviewMeterReadingDto.js +43 -0
- package/dist/esm/models/SubmitMeterReadingDto.d.ts +44 -0
- package/dist/esm/models/SubmitMeterReadingDto.js +51 -0
- package/dist/esm/models/index.d.ts +3 -2
- package/dist/esm/models/index.js +3 -2
- package/dist/models/MeterReadingPreviewSuccessResponse.d.ts +45 -0
- package/dist/models/MeterReadingPreviewSuccessResponse.js +57 -0
- package/dist/models/PreviewMeterReadingDto.d.ts +32 -0
- package/dist/models/PreviewMeterReadingDto.js +50 -0
- package/dist/models/SubmitMeterReadingDto.d.ts +44 -0
- package/dist/models/SubmitMeterReadingDto.js +58 -0
- package/dist/models/index.d.ts +3 -2
- package/dist/models/index.js +3 -2
- package/package.json +1 -1
- package/src/apis/MetersApi.ts +169 -8
- package/src/models/MeterReadingPreviewSuccessResponse.ts +91 -0
- package/src/models/PreviewMeterReadingDto.ts +66 -0
- package/src/models/SubmitMeterReadingDto.ts +84 -0
- package/src/models/index.ts +3 -2
- package/dist/esm/models/MeterCurrentBillResponseDto.d.ts +0 -88
- package/dist/esm/models/MeterCurrentBillResponseDto.js +0 -77
- package/dist/esm/models/MeterCurrentBillSuccessResponse.d.ts +0 -45
- package/dist/models/MeterCurrentBillResponseDto.d.ts +0 -88
- package/dist/models/MeterCurrentBillResponseDto.js +0 -84
- package/dist/models/MeterCurrentBillSuccessResponse.d.ts +0 -45
- package/dist/models/MeterCurrentBillSuccessResponse.js +0 -57
- package/src/models/MeterCurrentBillResponseDto.ts +0 -162
- package/src/models/MeterCurrentBillSuccessResponse.ts +0 -91
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubmitMeterReadingDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SubmitMeterReadingDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubmitMeterReadingDto
|
|
22
|
+
*/
|
|
23
|
+
billingPeriod: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof SubmitMeterReadingDto
|
|
28
|
+
*/
|
|
29
|
+
dueDate: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SubmitMeterReadingDto
|
|
34
|
+
*/
|
|
35
|
+
currentReading: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubmitMeterReadingDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSubmitMeterReadingDto(value: object): value is SubmitMeterReadingDto;
|
|
41
|
+
export declare function SubmitMeterReadingDtoFromJSON(json: any): SubmitMeterReadingDto;
|
|
42
|
+
export declare function SubmitMeterReadingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitMeterReadingDto;
|
|
43
|
+
export declare function SubmitMeterReadingDtoToJSON(json: any): SubmitMeterReadingDto;
|
|
44
|
+
export declare function SubmitMeterReadingDtoToJSONTyped(value?: SubmitMeterReadingDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Electric Cooperative Consumer Portal API
|
|
5
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the SubmitMeterReadingDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfSubmitMeterReadingDto(value) {
|
|
18
|
+
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('dueDate' in value) || value['dueDate'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('currentReading' in value) || value['currentReading'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function SubmitMeterReadingDtoFromJSON(json) {
|
|
27
|
+
return SubmitMeterReadingDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function SubmitMeterReadingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'billingPeriod': json['billingPeriod'],
|
|
35
|
+
'dueDate': (new Date(json['dueDate'])),
|
|
36
|
+
'currentReading': json['currentReading'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function SubmitMeterReadingDtoToJSON(json) {
|
|
40
|
+
return SubmitMeterReadingDtoToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function SubmitMeterReadingDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'billingPeriod': value['billingPeriod'],
|
|
48
|
+
'dueDate': ((value['dueDate']).toISOString()),
|
|
49
|
+
'currentReading': value['currentReading'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -63,12 +63,11 @@ export * from './LastReadingDto';
|
|
|
63
63
|
export * from './LinkConsumerAccountDto';
|
|
64
64
|
export * from './LoginDto';
|
|
65
65
|
export * from './LogoutDto';
|
|
66
|
-
export * from './MeterCurrentBillResponseDto';
|
|
67
|
-
export * from './MeterCurrentBillSuccessResponse';
|
|
68
66
|
export * from './MeterLookup';
|
|
69
67
|
export * from './MeterLookupResponseDto';
|
|
70
68
|
export * from './MeterReadingHistoryResponseDto';
|
|
71
69
|
export * from './MeterReadingHistorySuccessResponse';
|
|
70
|
+
export * from './MeterReadingPreviewSuccessResponse';
|
|
72
71
|
export * from './Notification';
|
|
73
72
|
export * from './NotificationMarkedAsRead';
|
|
74
73
|
export * from './NotificationTypeEnum';
|
|
@@ -78,6 +77,7 @@ export * from './PaginatedNotifications';
|
|
|
78
77
|
export * from './PaginatedResponseDto';
|
|
79
78
|
export * from './PaginationMetaDto';
|
|
80
79
|
export * from './PreviewBillDto';
|
|
80
|
+
export * from './PreviewMeterReadingDto';
|
|
81
81
|
export * from './Rate';
|
|
82
82
|
export * from './RateAdjustment';
|
|
83
83
|
export * from './RateAdjustmentChargeDto';
|
|
@@ -105,6 +105,7 @@ export * from './ServiceRequestStatsDto';
|
|
|
105
105
|
export * from './ServiceRequestStatusEnum';
|
|
106
106
|
export * from './ServiceRequestTypeEnum';
|
|
107
107
|
export * from './StaffUsersPaginatedResponse';
|
|
108
|
+
export * from './SubmitMeterReadingDto';
|
|
108
109
|
export * from './Tenant';
|
|
109
110
|
export * from './TenantStatusEnum';
|
|
110
111
|
export * from './UpdateBillDto';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -65,12 +65,11 @@ export * from './LastReadingDto';
|
|
|
65
65
|
export * from './LinkConsumerAccountDto';
|
|
66
66
|
export * from './LoginDto';
|
|
67
67
|
export * from './LogoutDto';
|
|
68
|
-
export * from './MeterCurrentBillResponseDto';
|
|
69
|
-
export * from './MeterCurrentBillSuccessResponse';
|
|
70
68
|
export * from './MeterLookup';
|
|
71
69
|
export * from './MeterLookupResponseDto';
|
|
72
70
|
export * from './MeterReadingHistoryResponseDto';
|
|
73
71
|
export * from './MeterReadingHistorySuccessResponse';
|
|
72
|
+
export * from './MeterReadingPreviewSuccessResponse';
|
|
74
73
|
export * from './Notification';
|
|
75
74
|
export * from './NotificationMarkedAsRead';
|
|
76
75
|
export * from './NotificationTypeEnum';
|
|
@@ -80,6 +79,7 @@ export * from './PaginatedNotifications';
|
|
|
80
79
|
export * from './PaginatedResponseDto';
|
|
81
80
|
export * from './PaginationMetaDto';
|
|
82
81
|
export * from './PreviewBillDto';
|
|
82
|
+
export * from './PreviewMeterReadingDto';
|
|
83
83
|
export * from './Rate';
|
|
84
84
|
export * from './RateAdjustment';
|
|
85
85
|
export * from './RateAdjustmentChargeDto';
|
|
@@ -107,6 +107,7 @@ export * from './ServiceRequestStatsDto';
|
|
|
107
107
|
export * from './ServiceRequestStatusEnum';
|
|
108
108
|
export * from './ServiceRequestTypeEnum';
|
|
109
109
|
export * from './StaffUsersPaginatedResponse';
|
|
110
|
+
export * from './SubmitMeterReadingDto';
|
|
110
111
|
export * from './Tenant';
|
|
111
112
|
export * from './TenantStatusEnum';
|
|
112
113
|
export * from './UpdateBillDto';
|
|
@@ -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 { BillCalculationResultDto } from './BillCalculationResultDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MeterReadingPreviewSuccessResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MeterReadingPreviewSuccessResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof MeterReadingPreviewSuccessResponse
|
|
23
|
+
*/
|
|
24
|
+
success: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MeterReadingPreviewSuccessResponse
|
|
29
|
+
*/
|
|
30
|
+
error?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {BillCalculationResultDto}
|
|
34
|
+
* @memberof MeterReadingPreviewSuccessResponse
|
|
35
|
+
*/
|
|
36
|
+
data: BillCalculationResultDto;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MeterReadingPreviewSuccessResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfMeterReadingPreviewSuccessResponse(value: object): value is MeterReadingPreviewSuccessResponse;
|
|
42
|
+
export declare function MeterReadingPreviewSuccessResponseFromJSON(json: any): MeterReadingPreviewSuccessResponse;
|
|
43
|
+
export declare function MeterReadingPreviewSuccessResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeterReadingPreviewSuccessResponse;
|
|
44
|
+
export declare function MeterReadingPreviewSuccessResponseToJSON(json: any): MeterReadingPreviewSuccessResponse;
|
|
45
|
+
export declare function MeterReadingPreviewSuccessResponseToJSONTyped(value?: MeterReadingPreviewSuccessResponse | 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.instanceOfMeterReadingPreviewSuccessResponse = instanceOfMeterReadingPreviewSuccessResponse;
|
|
17
|
+
exports.MeterReadingPreviewSuccessResponseFromJSON = MeterReadingPreviewSuccessResponseFromJSON;
|
|
18
|
+
exports.MeterReadingPreviewSuccessResponseFromJSONTyped = MeterReadingPreviewSuccessResponseFromJSONTyped;
|
|
19
|
+
exports.MeterReadingPreviewSuccessResponseToJSON = MeterReadingPreviewSuccessResponseToJSON;
|
|
20
|
+
exports.MeterReadingPreviewSuccessResponseToJSONTyped = MeterReadingPreviewSuccessResponseToJSONTyped;
|
|
21
|
+
const BillCalculationResultDto_1 = require("./BillCalculationResultDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MeterReadingPreviewSuccessResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMeterReadingPreviewSuccessResponse(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 MeterReadingPreviewSuccessResponseFromJSON(json) {
|
|
33
|
+
return MeterReadingPreviewSuccessResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function MeterReadingPreviewSuccessResponseFromJSONTyped(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, BillCalculationResultDto_1.BillCalculationResultDtoFromJSON)(json['data']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function MeterReadingPreviewSuccessResponseToJSON(json) {
|
|
46
|
+
return MeterReadingPreviewSuccessResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function MeterReadingPreviewSuccessResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'success': value['success'],
|
|
54
|
+
'error': value['error'],
|
|
55
|
+
'data': (0, BillCalculationResultDto_1.BillCalculationResultDtoToJSON)(value['data']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PreviewMeterReadingDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PreviewMeterReadingDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PreviewMeterReadingDto
|
|
22
|
+
*/
|
|
23
|
+
currentReading: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PreviewMeterReadingDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPreviewMeterReadingDto(value: object): value is PreviewMeterReadingDto;
|
|
29
|
+
export declare function PreviewMeterReadingDtoFromJSON(json: any): PreviewMeterReadingDto;
|
|
30
|
+
export declare function PreviewMeterReadingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreviewMeterReadingDto;
|
|
31
|
+
export declare function PreviewMeterReadingDtoToJSON(json: any): PreviewMeterReadingDto;
|
|
32
|
+
export declare function PreviewMeterReadingDtoToJSONTyped(value?: PreviewMeterReadingDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfPreviewMeterReadingDto = instanceOfPreviewMeterReadingDto;
|
|
17
|
+
exports.PreviewMeterReadingDtoFromJSON = PreviewMeterReadingDtoFromJSON;
|
|
18
|
+
exports.PreviewMeterReadingDtoFromJSONTyped = PreviewMeterReadingDtoFromJSONTyped;
|
|
19
|
+
exports.PreviewMeterReadingDtoToJSON = PreviewMeterReadingDtoToJSON;
|
|
20
|
+
exports.PreviewMeterReadingDtoToJSONTyped = PreviewMeterReadingDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PreviewMeterReadingDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPreviewMeterReadingDto(value) {
|
|
25
|
+
if (!('currentReading' in value) || value['currentReading'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PreviewMeterReadingDtoFromJSON(json) {
|
|
30
|
+
return PreviewMeterReadingDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PreviewMeterReadingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'currentReading': json['currentReading'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PreviewMeterReadingDtoToJSON(json) {
|
|
41
|
+
return PreviewMeterReadingDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PreviewMeterReadingDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'currentReading': value['currentReading'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Electric Cooperative Consumer Portal API
|
|
3
|
+
* Multi-tenant SaaS platform for Philippine electric cooperatives
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubmitMeterReadingDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SubmitMeterReadingDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubmitMeterReadingDto
|
|
22
|
+
*/
|
|
23
|
+
billingPeriod: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof SubmitMeterReadingDto
|
|
28
|
+
*/
|
|
29
|
+
dueDate: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof SubmitMeterReadingDto
|
|
34
|
+
*/
|
|
35
|
+
currentReading: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SubmitMeterReadingDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSubmitMeterReadingDto(value: object): value is SubmitMeterReadingDto;
|
|
41
|
+
export declare function SubmitMeterReadingDtoFromJSON(json: any): SubmitMeterReadingDto;
|
|
42
|
+
export declare function SubmitMeterReadingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitMeterReadingDto;
|
|
43
|
+
export declare function SubmitMeterReadingDtoToJSON(json: any): SubmitMeterReadingDto;
|
|
44
|
+
export declare function SubmitMeterReadingDtoToJSONTyped(value?: SubmitMeterReadingDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfSubmitMeterReadingDto = instanceOfSubmitMeterReadingDto;
|
|
17
|
+
exports.SubmitMeterReadingDtoFromJSON = SubmitMeterReadingDtoFromJSON;
|
|
18
|
+
exports.SubmitMeterReadingDtoFromJSONTyped = SubmitMeterReadingDtoFromJSONTyped;
|
|
19
|
+
exports.SubmitMeterReadingDtoToJSON = SubmitMeterReadingDtoToJSON;
|
|
20
|
+
exports.SubmitMeterReadingDtoToJSONTyped = SubmitMeterReadingDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubmitMeterReadingDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubmitMeterReadingDto(value) {
|
|
25
|
+
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('dueDate' in value) || value['dueDate'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('currentReading' in value) || value['currentReading'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SubmitMeterReadingDtoFromJSON(json) {
|
|
34
|
+
return SubmitMeterReadingDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SubmitMeterReadingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'billingPeriod': json['billingPeriod'],
|
|
42
|
+
'dueDate': (new Date(json['dueDate'])),
|
|
43
|
+
'currentReading': json['currentReading'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SubmitMeterReadingDtoToJSON(json) {
|
|
47
|
+
return SubmitMeterReadingDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SubmitMeterReadingDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'billingPeriod': value['billingPeriod'],
|
|
55
|
+
'dueDate': ((value['dueDate']).toISOString()),
|
|
56
|
+
'currentReading': value['currentReading'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -63,12 +63,11 @@ export * from './LastReadingDto';
|
|
|
63
63
|
export * from './LinkConsumerAccountDto';
|
|
64
64
|
export * from './LoginDto';
|
|
65
65
|
export * from './LogoutDto';
|
|
66
|
-
export * from './MeterCurrentBillResponseDto';
|
|
67
|
-
export * from './MeterCurrentBillSuccessResponse';
|
|
68
66
|
export * from './MeterLookup';
|
|
69
67
|
export * from './MeterLookupResponseDto';
|
|
70
68
|
export * from './MeterReadingHistoryResponseDto';
|
|
71
69
|
export * from './MeterReadingHistorySuccessResponse';
|
|
70
|
+
export * from './MeterReadingPreviewSuccessResponse';
|
|
72
71
|
export * from './Notification';
|
|
73
72
|
export * from './NotificationMarkedAsRead';
|
|
74
73
|
export * from './NotificationTypeEnum';
|
|
@@ -78,6 +77,7 @@ export * from './PaginatedNotifications';
|
|
|
78
77
|
export * from './PaginatedResponseDto';
|
|
79
78
|
export * from './PaginationMetaDto';
|
|
80
79
|
export * from './PreviewBillDto';
|
|
80
|
+
export * from './PreviewMeterReadingDto';
|
|
81
81
|
export * from './Rate';
|
|
82
82
|
export * from './RateAdjustment';
|
|
83
83
|
export * from './RateAdjustmentChargeDto';
|
|
@@ -105,6 +105,7 @@ export * from './ServiceRequestStatsDto';
|
|
|
105
105
|
export * from './ServiceRequestStatusEnum';
|
|
106
106
|
export * from './ServiceRequestTypeEnum';
|
|
107
107
|
export * from './StaffUsersPaginatedResponse';
|
|
108
|
+
export * from './SubmitMeterReadingDto';
|
|
108
109
|
export * from './Tenant';
|
|
109
110
|
export * from './TenantStatusEnum';
|
|
110
111
|
export * from './UpdateBillDto';
|
package/dist/models/index.js
CHANGED
|
@@ -81,12 +81,11 @@ __exportStar(require("./LastReadingDto"), exports);
|
|
|
81
81
|
__exportStar(require("./LinkConsumerAccountDto"), exports);
|
|
82
82
|
__exportStar(require("./LoginDto"), exports);
|
|
83
83
|
__exportStar(require("./LogoutDto"), exports);
|
|
84
|
-
__exportStar(require("./MeterCurrentBillResponseDto"), exports);
|
|
85
|
-
__exportStar(require("./MeterCurrentBillSuccessResponse"), exports);
|
|
86
84
|
__exportStar(require("./MeterLookup"), exports);
|
|
87
85
|
__exportStar(require("./MeterLookupResponseDto"), exports);
|
|
88
86
|
__exportStar(require("./MeterReadingHistoryResponseDto"), exports);
|
|
89
87
|
__exportStar(require("./MeterReadingHistorySuccessResponse"), exports);
|
|
88
|
+
__exportStar(require("./MeterReadingPreviewSuccessResponse"), exports);
|
|
90
89
|
__exportStar(require("./Notification"), exports);
|
|
91
90
|
__exportStar(require("./NotificationMarkedAsRead"), exports);
|
|
92
91
|
__exportStar(require("./NotificationTypeEnum"), exports);
|
|
@@ -96,6 +95,7 @@ __exportStar(require("./PaginatedNotifications"), exports);
|
|
|
96
95
|
__exportStar(require("./PaginatedResponseDto"), exports);
|
|
97
96
|
__exportStar(require("./PaginationMetaDto"), exports);
|
|
98
97
|
__exportStar(require("./PreviewBillDto"), exports);
|
|
98
|
+
__exportStar(require("./PreviewMeterReadingDto"), exports);
|
|
99
99
|
__exportStar(require("./Rate"), exports);
|
|
100
100
|
__exportStar(require("./RateAdjustment"), exports);
|
|
101
101
|
__exportStar(require("./RateAdjustmentChargeDto"), exports);
|
|
@@ -123,6 +123,7 @@ __exportStar(require("./ServiceRequestStatsDto"), exports);
|
|
|
123
123
|
__exportStar(require("./ServiceRequestStatusEnum"), exports);
|
|
124
124
|
__exportStar(require("./ServiceRequestTypeEnum"), exports);
|
|
125
125
|
__exportStar(require("./StaffUsersPaginatedResponse"), exports);
|
|
126
|
+
__exportStar(require("./SubmitMeterReadingDto"), exports);
|
|
126
127
|
__exportStar(require("./Tenant"), exports);
|
|
127
128
|
__exportStar(require("./TenantStatusEnum"), exports);
|
|
128
129
|
__exportStar(require("./UpdateBillDto"), exports);
|