spotcharge-types 1.0.418 → 1.0.420
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/dist/models/api/consumer/charging-session.api.model.d.ts +32 -0
- package/dist/models/api/consumer/charging-session.api.model.d.ts.map +1 -1
- package/dist/models/api/consumer/index.d.ts +1 -1
- package/dist/models/api/consumer/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/models/api/consumer/charging-session.api.model.ts +36 -0
- package/src/models/api/consumer/index.ts +4 -0
|
@@ -13,8 +13,12 @@ export interface ChargingSessionApiModel {
|
|
|
13
13
|
sessionId: string;
|
|
14
14
|
/** consumer.bookings.id (uuid). Null on a later continuation charge. */
|
|
15
15
|
bookingId: string | null;
|
|
16
|
+
/** `consumer.bookings.booking_ref`. Null when the session has no booking. */
|
|
17
|
+
bookingRef: string | null;
|
|
16
18
|
/** Human invoice number on the PDF. */
|
|
17
19
|
invoiceNo: number;
|
|
20
|
+
/** OCPP idTag (`PUB_ORDER_…`). Charger logs store this as `order_id`. */
|
|
21
|
+
idTag: string;
|
|
18
22
|
status: ChargingSessionStatus;
|
|
19
23
|
stopReason: string | null;
|
|
20
24
|
customerName: string;
|
|
@@ -42,8 +46,12 @@ export interface ChargingSessionApiModel {
|
|
|
42
46
|
sgstRate: number;
|
|
43
47
|
igstRate: number;
|
|
44
48
|
lastSocPercent: number | null;
|
|
49
|
+
/** First SoC MeterValues on this session. Null until the charger sends SoC. */
|
|
50
|
+
startedSocPercent: number | null;
|
|
45
51
|
lastPowerKw: number | null;
|
|
46
52
|
cutoffAt: IsoDateTime | null;
|
|
53
|
+
/** Paid booking window start (`bookings.slot_starts_at`). Null when the session has no booking. */
|
|
54
|
+
slotStartsAt: IsoDateTime | null;
|
|
47
55
|
/** Paid booking window end (`bookings.slot_ends_at`). Null when the session has no booking. */
|
|
48
56
|
slotEndsAt: IsoDateTime | null;
|
|
49
57
|
startedAt: IsoDateTime | null;
|
|
@@ -89,4 +97,28 @@ export interface AdminChargingSessionListApiModel {
|
|
|
89
97
|
export interface AdminChargingSessionLiveListApiModel {
|
|
90
98
|
sessions: ChargingSessionApiModel[];
|
|
91
99
|
}
|
|
100
|
+
/** One IST calendar day of stopped-session totals. `date` is `YYYY-MM-DD`. */
|
|
101
|
+
export interface AdminDashboardConsumerSessionKpiDayApiModel {
|
|
102
|
+
date: string;
|
|
103
|
+
stoppedCount: number;
|
|
104
|
+
billedAmount: number;
|
|
105
|
+
energyKwh: number;
|
|
106
|
+
}
|
|
107
|
+
/** Snapshot that is not filtered by `from`/`to`. */
|
|
108
|
+
export interface AdminDashboardConsumerSessionCurrentApiModel {
|
|
109
|
+
/** Live sessions (`starting`/`charging`/`stopping`/`paused`). */
|
|
110
|
+
liveCount: number;
|
|
111
|
+
}
|
|
112
|
+
/** Stopped-session totals inside `from`/`to`. */
|
|
113
|
+
export interface AdminDashboardConsumerSessionPeriodApiModel {
|
|
114
|
+
stoppedCount: number;
|
|
115
|
+
billedAmountSum: number;
|
|
116
|
+
energyKwhSum: number;
|
|
117
|
+
}
|
|
118
|
+
/** GET /api/admin/dashboard/consumer-session-kpis */
|
|
119
|
+
export interface AdminDashboardConsumerSessionKpisApiModel {
|
|
120
|
+
current: AdminDashboardConsumerSessionCurrentApiModel;
|
|
121
|
+
period: AdminDashboardConsumerSessionPeriodApiModel;
|
|
122
|
+
daily: AdminDashboardConsumerSessionKpiDayApiModel[];
|
|
123
|
+
}
|
|
92
124
|
//# sourceMappingURL=charging-session.api.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charging-session.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/charging-session.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;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CAAC;CACjC;AAED,yEAAyE;AACzE,MAAM,WAAW,oCAAoC;IACnD,QAAQ,EAAE,uBAAuB,EAAE,CAAC;CACrC"}
|
|
1
|
+
{"version":3,"file":"charging-session.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/charging-session.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,qBAAqB,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IAC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@ -6,7 +6,7 @@ export { ConsumerFavoriteStationListItemApiModel, ConsumerFavoriteStationListApi
|
|
|
6
6
|
export { CONSUMER_DELETE_BLOCKED_CODE, DeleteConsumerBlockedReason, ConsumerDeleteEligibilityApiModel, DeleteConsumerMeResponse, } from './consumer-account-deletion.api.model';
|
|
7
7
|
export { ChargingSettingsApiModel, UpdateChargingSettingsRequest, } from './charging-settings.api.model';
|
|
8
8
|
export { ChargingBookingApiModel, ChargingBookingListApiModel, AdminChargingBookingListOrderBy, AdminChargingBookingListApiModel, AdminChargingBookingDetailApiModel, AdminChargingBookingPaymentSummaryApiModel, AppClientMetaApiModel, ChargingBookingCountApiModel, CreateChargingBookingRequest, QuoteChargingBookingRequest, QuoteChargingBookingApiModel, ChargingBookingQuoteLock, PayChargingBookingApiModel, PayChargingBookingRequest, CancelChargingBookingRequest, RescheduleChargingBookingRequest, ChargingBookingStartContextCode, ChargingBookingStartContextApiModel, StartChargingSessionApiModel, BookLaterSlotApiModel, BookLaterSlotListApiModel, ChargingBookingVehicleApiModel, } from './charging-booking.api.model';
|
|
9
|
-
export { ChargingSessionApiModel, ChargingSessionListApiModel, ChargingSessionListCursorApiModel, ChargingSessionTransactionApiModel, AdminChargingSessionListOrderBy, AdminChargingSessionListApiModel, AdminChargingSessionLiveListApiModel, } from './charging-session.api.model';
|
|
9
|
+
export { ChargingSessionApiModel, ChargingSessionListApiModel, ChargingSessionListCursorApiModel, ChargingSessionTransactionApiModel, AdminChargingSessionListOrderBy, AdminChargingSessionListApiModel, AdminChargingSessionLiveListApiModel, AdminDashboardConsumerSessionKpiDayApiModel, AdminDashboardConsumerSessionCurrentApiModel, AdminDashboardConsumerSessionPeriodApiModel, AdminDashboardConsumerSessionKpisApiModel, } from './charging-session.api.model';
|
|
10
10
|
export { ConsumerNotificationApiModel, ConsumerNotificationListApiModel, ConsumerNotificationListCursorApiModel, } from './consumer-notification.api.model';
|
|
11
11
|
export { AdminConsumerListOrderBy, AdminConsumerListItemApiModel, AdminConsumerListApiModel, AdminConsumerAccountApiModel, AdminConsumerDetailApiModel, AdminUpdateConsumerRequest, BlockConsumerRequest, AdjustConsumerWalletRequest, AdjustConsumerWalletResponse, AdminConsumerWalletTransactionListApiModel, } from './admin-consumer.api.model';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,uCAAuC,EACvC,mCAAmC,GACpC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,iCAAiC,EACjC,wBAAwB,GACzB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,+BAA+B,EAC/B,gCAAgC,EAChC,kCAAkC,EAClC,0CAA0C,EAC1C,qBAAqB,EACrB,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,mCAAmC,EACnC,4BAA4B,EAC5B,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,+BAA+B,EAC/B,gCAAgC,EAChC,oCAAoC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,uCAAuC,EACvC,mCAAmC,GACpC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,iCAAiC,EACjC,wBAAwB,GACzB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,+BAA+B,EAC/B,gCAAgC,EAChC,kCAAkC,EAClC,0CAA0C,EAC1C,qBAAqB,EACrB,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,mCAAmC,EACnC,4BAA4B,EAC5B,qBAAqB,EACrB,yBAAyB,EACzB,8BAA8B,GAC/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,kCAAkC,EAClC,+BAA+B,EAC/B,gCAAgC,EAChC,oCAAoC,EACpC,2CAA2C,EAC3C,4CAA4C,EAC5C,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,4BAA4B,EAC5B,gCAAgC,EAChC,sCAAsC,GACvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,4BAA4B,EAC5B,0CAA0C,GAC3C,MAAM,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -14,8 +14,12 @@ export interface ChargingSessionApiModel {
|
|
|
14
14
|
sessionId: string;
|
|
15
15
|
/** consumer.bookings.id (uuid). Null on a later continuation charge. */
|
|
16
16
|
bookingId: string | null;
|
|
17
|
+
/** `consumer.bookings.booking_ref`. Null when the session has no booking. */
|
|
18
|
+
bookingRef: string | null;
|
|
17
19
|
/** Human invoice number on the PDF. */
|
|
18
20
|
invoiceNo: number;
|
|
21
|
+
/** OCPP idTag (`PUB_ORDER_…`). Charger logs store this as `order_id`. */
|
|
22
|
+
idTag: string;
|
|
19
23
|
status: ChargingSessionStatus;
|
|
20
24
|
stopReason: string | null;
|
|
21
25
|
customerName: string;
|
|
@@ -43,8 +47,12 @@ export interface ChargingSessionApiModel {
|
|
|
43
47
|
sgstRate: number;
|
|
44
48
|
igstRate: number;
|
|
45
49
|
lastSocPercent: number | null;
|
|
50
|
+
/** First SoC MeterValues on this session. Null until the charger sends SoC. */
|
|
51
|
+
startedSocPercent: number | null;
|
|
46
52
|
lastPowerKw: number | null;
|
|
47
53
|
cutoffAt: IsoDateTime | null;
|
|
54
|
+
/** Paid booking window start (`bookings.slot_starts_at`). Null when the session has no booking. */
|
|
55
|
+
slotStartsAt: IsoDateTime | null;
|
|
48
56
|
/** Paid booking window end (`bookings.slot_ends_at`). Null when the session has no booking. */
|
|
49
57
|
slotEndsAt: IsoDateTime | null;
|
|
50
58
|
startedAt: IsoDateTime | null;
|
|
@@ -105,3 +113,31 @@ export interface AdminChargingSessionListApiModel {
|
|
|
105
113
|
export interface AdminChargingSessionLiveListApiModel {
|
|
106
114
|
sessions: ChargingSessionApiModel[];
|
|
107
115
|
}
|
|
116
|
+
|
|
117
|
+
/** One IST calendar day of stopped-session totals. `date` is `YYYY-MM-DD`. */
|
|
118
|
+
export interface AdminDashboardConsumerSessionKpiDayApiModel {
|
|
119
|
+
date: string;
|
|
120
|
+
stoppedCount: number;
|
|
121
|
+
billedAmount: number;
|
|
122
|
+
energyKwh: number;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** Snapshot that is not filtered by `from`/`to`. */
|
|
126
|
+
export interface AdminDashboardConsumerSessionCurrentApiModel {
|
|
127
|
+
/** Live sessions (`starting`/`charging`/`stopping`/`paused`). */
|
|
128
|
+
liveCount: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** Stopped-session totals inside `from`/`to`. */
|
|
132
|
+
export interface AdminDashboardConsumerSessionPeriodApiModel {
|
|
133
|
+
stoppedCount: number;
|
|
134
|
+
billedAmountSum: number;
|
|
135
|
+
energyKwhSum: number;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** GET /api/admin/dashboard/consumer-session-kpis */
|
|
139
|
+
export interface AdminDashboardConsumerSessionKpisApiModel {
|
|
140
|
+
current: AdminDashboardConsumerSessionCurrentApiModel;
|
|
141
|
+
period: AdminDashboardConsumerSessionPeriodApiModel;
|
|
142
|
+
daily: AdminDashboardConsumerSessionKpiDayApiModel[];
|
|
143
|
+
}
|
|
@@ -66,6 +66,10 @@ export {
|
|
|
66
66
|
AdminChargingSessionListOrderBy,
|
|
67
67
|
AdminChargingSessionListApiModel,
|
|
68
68
|
AdminChargingSessionLiveListApiModel,
|
|
69
|
+
AdminDashboardConsumerSessionKpiDayApiModel,
|
|
70
|
+
AdminDashboardConsumerSessionCurrentApiModel,
|
|
71
|
+
AdminDashboardConsumerSessionPeriodApiModel,
|
|
72
|
+
AdminDashboardConsumerSessionKpisApiModel,
|
|
69
73
|
} from './charging-session.api.model';
|
|
70
74
|
export {
|
|
71
75
|
ConsumerNotificationApiModel,
|