spotcharge-types 1.0.310 → 1.0.312
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/charger.api.model.d.ts +3 -3
- package/dist/models/api/charger.api.model.d.ts.map +1 -1
- package/dist/models/api/index.d.ts +1 -0
- package/dist/models/api/index.d.ts.map +1 -1
- package/dist/models/api/index.js.map +1 -1
- package/dist/models/api/ocpi-roaming-location-detail.api.model.d.ts +67 -0
- package/dist/models/api/ocpi-roaming-location-detail.api.model.d.ts.map +1 -0
- package/dist/models/api/ocpi-roaming-location-detail.api.model.js +8 -0
- package/dist/models/api/ocpi-roaming-location-detail.api.model.js.map +1 -0
- package/package.json +1 -1
- package/src/models/api/charger.api.model.ts +3 -3
- package/src/models/api/index.ts +8 -0
- package/src/models/api/ocpi-roaming-location-detail.api.model.ts +68 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChargerAllowedMode, ChargerStatus, ChargerType } from "../../enum";
|
|
1
|
+
import { ChargerAllowedMode, ChargerOperationalState, ChargerPhysicalState, ChargerStatus, ChargerType } from "../../enum";
|
|
2
2
|
import { AddressApiModel } from "./address.api.model";
|
|
3
3
|
import { CreatedByModel } from "../created-by.model";
|
|
4
4
|
import { Timestamp } from "../timestamp";
|
|
@@ -12,8 +12,8 @@ export interface ChargerApiModel {
|
|
|
12
12
|
name: string;
|
|
13
13
|
chargerId: string;
|
|
14
14
|
connectorCount: number;
|
|
15
|
-
chargerPhysicalState:
|
|
16
|
-
chargerOperationalState:
|
|
15
|
+
chargerPhysicalState: ChargerPhysicalState;
|
|
16
|
+
chargerOperationalState: ChargerOperationalState;
|
|
17
17
|
type: ChargerType;
|
|
18
18
|
location: AddressApiModel;
|
|
19
19
|
connectors: Record<string, ConnectorModel>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charger.api.model.d.ts","sourceRoot":"","sources":["../../../src/models/api/charger.api.model.ts"],"names":[],"mappings":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E,cAAc,CAAC;IAC1B,SAAS,EAAE,cAAc,CAAC;IAC1B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE;QACF,GAAG,EAAE,MAAM,CAAC;QACZ,GAAG,EAAE,MAAM,CAAC;KACf,CAAC;IACF,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -35,6 +35,7 @@ export { ChargerReportApiModel } from './charger-report.api.model';
|
|
|
35
35
|
export { StationApiModel, StationChargerCounts, StationAmenities, StationPhotoModel } from './station.api.model';
|
|
36
36
|
export { StationSearchApiModel } from './station-search.api.model';
|
|
37
37
|
export { StationSearchSource } from '../../enum';
|
|
38
|
+
export { OcpiRoamingLocationDetailApiModel, OcpiRoamingLocationDetailResponseApiModel, OcpiRoamingLocationApiModel, OcpiRoamingPartnerTariffApiModel, OcpiRoamingConnectorApiModel, OcpiRoamingEvseApiModel, } from './ocpi-roaming-location-detail.api.model';
|
|
38
39
|
export { FleetVehicleSearchApiModel } from './fleet-vehicle-search.api.model';
|
|
39
40
|
export { ApiConsumerApiModel } from './api-consumer.api.model';
|
|
40
41
|
export { ConnectorApiModel } from './connector.api.model';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAC,eAAe,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAChE,OAAO,E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EAAC,wBAAwB,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAC,mBAAmB,EAAC,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAC,mBAAmB,EAAE,aAAa,EAAC,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAC,+BAA+B,EAAC,MAAM,wCAAwC,CAAC;AACvF,OAAO,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAC,sBAAsB,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AAC3J,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAC,2BAA2B,EAAC,MAAM,mCAAmC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/api/index.ts"],"names":[],"mappings":";;;AAoCA,mCAA+C;AAAvC,2GAAA,mBAAmB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/api/index.ts"],"names":[],"mappings":";;;AAoCA,mCAA+C;AAAvC,2GAAA,mBAAmB,OAAA;AA2B3B,yEAA2J;AAA3H,0IAAA,6BAA6B,OAAA;AAAE,4IAAA,+BAA+B,OAAA;AAAE,mIAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mobile-facing roaming location detail from GET /api/ocpi/roaming/locations/:id.
|
|
3
|
+
* Location fields mirror the Postgres partner-location mirror; tariffs are
|
|
4
|
+
* connector-referenced only (not all party tariffs).
|
|
5
|
+
*/
|
|
6
|
+
export interface OcpiRoamingPartnerTariffApiModel {
|
|
7
|
+
id: string;
|
|
8
|
+
tariffId: string;
|
|
9
|
+
currency: string;
|
|
10
|
+
pricePerKwh: number | null;
|
|
11
|
+
}
|
|
12
|
+
/** Minimal OCPI connector shape needed for partner detail display. */
|
|
13
|
+
export interface OcpiRoamingConnectorApiModel {
|
|
14
|
+
id: string;
|
|
15
|
+
standard?: string;
|
|
16
|
+
format?: string;
|
|
17
|
+
power_type?: string;
|
|
18
|
+
max_voltage?: number;
|
|
19
|
+
max_amperage?: number;
|
|
20
|
+
max_electric_power?: number;
|
|
21
|
+
tariff_ids?: string[];
|
|
22
|
+
}
|
|
23
|
+
export interface OcpiRoamingEvseApiModel {
|
|
24
|
+
uid: string;
|
|
25
|
+
evse_id?: string;
|
|
26
|
+
status?: string;
|
|
27
|
+
connectors?: OcpiRoamingConnectorApiModel[];
|
|
28
|
+
}
|
|
29
|
+
export interface OcpiRoamingLocationRawApiModel {
|
|
30
|
+
evses?: OcpiRoamingEvseApiModel[];
|
|
31
|
+
operator?: {
|
|
32
|
+
name?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface OcpiRoamingLocationApiModel {
|
|
36
|
+
id: string;
|
|
37
|
+
partyKey: string;
|
|
38
|
+
ownerCountryCode: string;
|
|
39
|
+
ownerPartyId: string;
|
|
40
|
+
locationId: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
address: string;
|
|
43
|
+
city: string;
|
|
44
|
+
state?: string;
|
|
45
|
+
postalCode?: string;
|
|
46
|
+
country: string;
|
|
47
|
+
coordinates: {
|
|
48
|
+
latitude: number;
|
|
49
|
+
longitude: number;
|
|
50
|
+
};
|
|
51
|
+
status: string;
|
|
52
|
+
evseCount: number;
|
|
53
|
+
connectorCount: number;
|
|
54
|
+
connectorTypes: string[];
|
|
55
|
+
publish: boolean;
|
|
56
|
+
raw: OcpiRoamingLocationRawApiModel;
|
|
57
|
+
lastUpdated: string;
|
|
58
|
+
}
|
|
59
|
+
export interface OcpiRoamingLocationDetailApiModel {
|
|
60
|
+
location: OcpiRoamingLocationApiModel;
|
|
61
|
+
tariffs: OcpiRoamingPartnerTariffApiModel[];
|
|
62
|
+
}
|
|
63
|
+
export interface OcpiRoamingLocationDetailResponseApiModel {
|
|
64
|
+
success: boolean;
|
|
65
|
+
data: OcpiRoamingLocationDetailApiModel;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=ocpi-roaming-location-detail.api.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ocpi-roaming-location-detail.api.model.d.ts","sourceRoot":"","sources":["../../../src/models/api/ocpi-roaming-location-detail.api.model.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,gCAAgC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,sEAAsE;AACtE,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,4BAA4B,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,8BAA8B;IAC7C,KAAK,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9B;AAED,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,8BAA8B,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,2BAA2B,CAAC;IACtC,OAAO,EAAE,gCAAgC,EAAE,CAAC;CAC7C;AAED,MAAM,WAAW,yCAAyC;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,iCAAiC,CAAC;CACzC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Mobile-facing roaming location detail from GET /api/ocpi/roaming/locations/:id.
|
|
4
|
+
* Location fields mirror the Postgres partner-location mirror; tariffs are
|
|
5
|
+
* connector-referenced only (not all party tariffs).
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
//# sourceMappingURL=ocpi-roaming-location-detail.api.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ocpi-roaming-location-detail.api.model.js","sourceRoot":"","sources":["../../../src/models/api/ocpi-roaming-location-detail.api.model.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ChargerAllowedMode,
|
|
1
|
+
import {ChargerAllowedMode, ChargerOperationalState, ChargerPhysicalState, ChargerStatus, ChargerType, PointType} from "../../enum";
|
|
2
2
|
import {AddressApiModel} from "./address.api.model";
|
|
3
3
|
import {CreatedByModel} from "../created-by.model";
|
|
4
4
|
import {Timestamp} from "../timestamp";
|
|
@@ -13,8 +13,8 @@ export interface ChargerApiModel {
|
|
|
13
13
|
name: string;
|
|
14
14
|
chargerId: string;
|
|
15
15
|
connectorCount: number;
|
|
16
|
-
chargerPhysicalState:
|
|
17
|
-
chargerOperationalState:
|
|
16
|
+
chargerPhysicalState: ChargerPhysicalState;
|
|
17
|
+
chargerOperationalState: ChargerOperationalState;
|
|
18
18
|
type: ChargerType;
|
|
19
19
|
location: AddressApiModel;
|
|
20
20
|
connectors: Record<string, ConnectorModel>;
|
package/src/models/api/index.ts
CHANGED
|
@@ -35,6 +35,14 @@ export {ChargerReportApiModel} from './charger-report.api.model';
|
|
|
35
35
|
export {StationApiModel, StationChargerCounts, StationAmenities, StationPhotoModel} from './station.api.model';
|
|
36
36
|
export {StationSearchApiModel} from './station-search.api.model';
|
|
37
37
|
export {StationSearchSource} from '../../enum';
|
|
38
|
+
export {
|
|
39
|
+
OcpiRoamingLocationDetailApiModel,
|
|
40
|
+
OcpiRoamingLocationDetailResponseApiModel,
|
|
41
|
+
OcpiRoamingLocationApiModel,
|
|
42
|
+
OcpiRoamingPartnerTariffApiModel,
|
|
43
|
+
OcpiRoamingConnectorApiModel,
|
|
44
|
+
OcpiRoamingEvseApiModel,
|
|
45
|
+
} from './ocpi-roaming-location-detail.api.model';
|
|
38
46
|
export {FleetVehicleSearchApiModel} from './fleet-vehicle-search.api.model';
|
|
39
47
|
export {ApiConsumerApiModel} from './api-consumer.api.model';
|
|
40
48
|
export {ConnectorApiModel} from './connector.api.model';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mobile-facing roaming location detail from GET /api/ocpi/roaming/locations/:id.
|
|
3
|
+
* Location fields mirror the Postgres partner-location mirror; tariffs are
|
|
4
|
+
* connector-referenced only (not all party tariffs).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export interface OcpiRoamingPartnerTariffApiModel {
|
|
8
|
+
id: string;
|
|
9
|
+
tariffId: string;
|
|
10
|
+
currency: string;
|
|
11
|
+
pricePerKwh: number | null;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** Minimal OCPI connector shape needed for partner detail display. */
|
|
15
|
+
export interface OcpiRoamingConnectorApiModel {
|
|
16
|
+
id: string;
|
|
17
|
+
standard?: string;
|
|
18
|
+
format?: string;
|
|
19
|
+
power_type?: string;
|
|
20
|
+
max_voltage?: number;
|
|
21
|
+
max_amperage?: number;
|
|
22
|
+
max_electric_power?: number;
|
|
23
|
+
tariff_ids?: string[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface OcpiRoamingEvseApiModel {
|
|
27
|
+
uid: string;
|
|
28
|
+
evse_id?: string;
|
|
29
|
+
status?: string;
|
|
30
|
+
connectors?: OcpiRoamingConnectorApiModel[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface OcpiRoamingLocationRawApiModel {
|
|
34
|
+
evses?: OcpiRoamingEvseApiModel[];
|
|
35
|
+
operator?: { name?: string };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface OcpiRoamingLocationApiModel {
|
|
39
|
+
id: string;
|
|
40
|
+
partyKey: string;
|
|
41
|
+
ownerCountryCode: string;
|
|
42
|
+
ownerPartyId: string;
|
|
43
|
+
locationId: string;
|
|
44
|
+
name?: string;
|
|
45
|
+
address: string;
|
|
46
|
+
city: string;
|
|
47
|
+
state?: string;
|
|
48
|
+
postalCode?: string;
|
|
49
|
+
country: string;
|
|
50
|
+
coordinates: { latitude: number; longitude: number };
|
|
51
|
+
status: string;
|
|
52
|
+
evseCount: number;
|
|
53
|
+
connectorCount: number;
|
|
54
|
+
connectorTypes: string[];
|
|
55
|
+
publish: boolean;
|
|
56
|
+
raw: OcpiRoamingLocationRawApiModel;
|
|
57
|
+
lastUpdated: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface OcpiRoamingLocationDetailApiModel {
|
|
61
|
+
location: OcpiRoamingLocationApiModel;
|
|
62
|
+
tariffs: OcpiRoamingPartnerTariffApiModel[];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface OcpiRoamingLocationDetailResponseApiModel {
|
|
66
|
+
success: boolean;
|
|
67
|
+
data: OcpiRoamingLocationDetailApiModel;
|
|
68
|
+
}
|