@ampeco/public-api-mcp 3.99.2 → 3.100.0
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/generated/build-stats.json +6 -6
- package/dist/generated/endpoints.json +49 -131
- package/dist/generated/response-schemas.json +98 -232
- package/dist/generated/schemas.d.ts +24 -76
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +11 -21
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/schemas.ts +11 -21
- package/package.json +1 -1
|
@@ -699,6 +699,7 @@ export const chargePointCreateDeprecatedBody = z.object({
|
|
|
699
699
|
partnerAccessType: z.enum(["privateViewPrivateUse", "privateViewPublicUse", "publicViewPrivateUse"]).optional(),
|
|
700
700
|
capabilities: z.array(z.enum(["REMOTE_START_STOP_CAPABLE", "METER_VALUES", "STOP_TRANSACTION_ON_EV_DISCONNECT"])).optional(),
|
|
701
701
|
managedByOperator: z.boolean().optional(),
|
|
702
|
+
uptimeTrackingEnabled: z.boolean().optional(),
|
|
702
703
|
tags: z.array(z.string()).optional(),
|
|
703
704
|
templateId: z.number().int(),
|
|
704
705
|
evses: z.record(z.object({
|
|
@@ -734,6 +735,7 @@ export const chargePointUpdateDeprecatedBody = z.object({
|
|
|
734
735
|
partnerAccessType: z.enum(["privateViewPrivateUse", "privateViewPublicUse", "publicViewPrivateUse"]).optional(),
|
|
735
736
|
capabilities: z.array(z.enum(["REMOTE_START_STOP_CAPABLE", "METER_VALUES", "STOP_TRANSACTION_ON_EV_DISCONNECT"])).optional(),
|
|
736
737
|
managedByOperator: z.boolean().optional(),
|
|
738
|
+
uptimeTrackingEnabled: z.boolean().optional(),
|
|
737
739
|
tags: z.array(z.string()).optional(),
|
|
738
740
|
evses: z.record(z.object({
|
|
739
741
|
tariffGroupId: z.number().int().optional(),
|
|
@@ -855,7 +857,8 @@ export const chargePointCreateBody = z.object({
|
|
|
855
857
|
lastUpdatedAt: z.string().datetime().optional(),
|
|
856
858
|
ocppConnectedChargePointId: z.number().int().optional(),
|
|
857
859
|
communicationMode: z.enum(["none", "direct_ocpp", "via_ocpp_connected_charge_point"]).optional(),
|
|
858
|
-
electricityCostReimbursementIntegrationId: z.number().int().optional()
|
|
860
|
+
electricityCostReimbursementIntegrationId: z.number().int().optional(),
|
|
861
|
+
installationAndMaintenanceCompanyId: z.number().int().optional()
|
|
859
862
|
});
|
|
860
863
|
|
|
861
864
|
// GET /public-api/resources/charge-points/v2.0/{chargePoint}
|
|
@@ -872,6 +875,7 @@ export const chargePointUpdateBody = z.object({
|
|
|
872
875
|
chargingZoneId: z.number().int().optional(),
|
|
873
876
|
electricityRateId: z.number().int().optional(),
|
|
874
877
|
electricityCostReimbursementIntegrationId: z.number().int().optional(),
|
|
878
|
+
installationAndMaintenanceCompanyId: z.number().int().optional(),
|
|
875
879
|
subscription: z.object({
|
|
876
880
|
required: z.boolean().optional(),
|
|
877
881
|
planIds: z.array(z.number().int()).optional()
|
|
@@ -1071,18 +1075,6 @@ export const personalSmartChargingPreferencesUpdateBody = z.union([z.object({
|
|
|
1071
1075
|
postCode: z.string(),
|
|
1072
1076
|
priceThreshold: z.number().optional()
|
|
1073
1077
|
})
|
|
1074
|
-
}), z.object({
|
|
1075
|
-
enabled: z.boolean().optional(),
|
|
1076
|
-
type: z.enum(["energi_elspot"]),
|
|
1077
|
-
integrationId: z.number().int().optional(),
|
|
1078
|
-
preferences: z.object({
|
|
1079
|
-
location: z.enum(["GB1"]),
|
|
1080
|
-
targetCharge: z.object({
|
|
1081
|
-
departureTime: z.string(),
|
|
1082
|
-
preconditioningTime: z.number().int().optional(),
|
|
1083
|
-
targetChargeKwh: z.number()
|
|
1084
|
-
})
|
|
1085
|
-
}).optional()
|
|
1086
1078
|
}), z.object({
|
|
1087
1079
|
enabled: z.boolean().optional(),
|
|
1088
1080
|
type: z.enum(["nordpool"]),
|
|
@@ -1835,7 +1827,7 @@ export const createFlexibilityAssetBody = z.object({
|
|
|
1835
1827
|
downwardRegulationLimit: z.number().int().optional(),
|
|
1836
1828
|
upwardRegulationLimit: z.number().int().optional(),
|
|
1837
1829
|
integrationId: z.number(),
|
|
1838
|
-
integrationParameters: z.record(z.
|
|
1830
|
+
integrationParameters: z.record(z.unknown()).optional(),
|
|
1839
1831
|
status: z.enum(["enabled", "disabled"]),
|
|
1840
1832
|
endsAt: z.string().datetime().optional()
|
|
1841
1833
|
});
|
|
@@ -1850,7 +1842,7 @@ export const updateFlexibilityAssetBody = z.object({
|
|
|
1850
1842
|
downwardRegulationLimit: z.number().int().optional(),
|
|
1851
1843
|
upwardRegulationLimit: z.number().int().optional(),
|
|
1852
1844
|
integrationId: z.number().optional(),
|
|
1853
|
-
integrationParameters: z.record(z.
|
|
1845
|
+
integrationParameters: z.record(z.unknown()).optional()
|
|
1854
1846
|
});
|
|
1855
1847
|
|
|
1856
1848
|
// GET /public-api/resources/flexibility-assets/v1.0/{flexibilityAsset}/historical-time-series
|
|
@@ -2382,12 +2374,12 @@ export const updateParkingSpaceBody = z.object({
|
|
|
2382
2374
|
|
|
2383
2375
|
// POST /public-api/resources/partner-contracts/v1.0
|
|
2384
2376
|
export const partnerContractCreateBody = z.object({
|
|
2385
|
-
id: z.number().int().optional(),
|
|
2386
2377
|
title: z.string(),
|
|
2387
2378
|
partnerId: z.number().int(),
|
|
2388
2379
|
startDate: z.string().datetime(),
|
|
2389
2380
|
endDate: z.string().datetime().optional(),
|
|
2390
2381
|
autoRenewal: z.boolean().optional(),
|
|
2382
|
+
externalId: z.string().max(255).optional(),
|
|
2391
2383
|
accessAndPermissions: z.object({
|
|
2392
2384
|
sessionsRemoteControl: z.boolean().optional(),
|
|
2393
2385
|
startReservation: z.boolean().optional(),
|
|
@@ -2411,20 +2403,19 @@ export const partnerContractCreateBody = z.object({
|
|
|
2411
2403
|
perChargePoint: z.number().optional(),
|
|
2412
2404
|
perAcEvse: z.number().optional(),
|
|
2413
2405
|
perDcEvse: z.number().optional()
|
|
2414
|
-
}).optional()
|
|
2415
|
-
lastUpdatedAt: z.string().datetime().optional()
|
|
2406
|
+
}).optional()
|
|
2416
2407
|
});
|
|
2417
2408
|
|
|
2418
2409
|
// GET /public-api/resources/partner-contracts/v1.0/{partnerContract}
|
|
2419
2410
|
|
|
2420
2411
|
// PUT /public-api/resources/partner-contracts/v1.0/{partnerContract}
|
|
2421
2412
|
export const partnerContractUpdateBody = z.object({
|
|
2422
|
-
id: z.number().int().optional(),
|
|
2423
2413
|
title: z.string(),
|
|
2424
2414
|
partnerId: z.number().int(),
|
|
2425
2415
|
startDate: z.string().datetime(),
|
|
2426
2416
|
endDate: z.string().datetime().optional(),
|
|
2427
2417
|
autoRenewal: z.boolean().optional(),
|
|
2418
|
+
externalId: z.string().max(255).optional(),
|
|
2428
2419
|
accessAndPermissions: z.object({
|
|
2429
2420
|
sessionsRemoteControl: z.boolean().optional(),
|
|
2430
2421
|
startReservation: z.boolean().optional(),
|
|
@@ -2448,8 +2439,7 @@ export const partnerContractUpdateBody = z.object({
|
|
|
2448
2439
|
perChargePoint: z.number().optional(),
|
|
2449
2440
|
perAcEvse: z.number().optional(),
|
|
2450
2441
|
perDcEvse: z.number().optional()
|
|
2451
|
-
}).optional()
|
|
2452
|
-
lastUpdatedAt: z.string().datetime().optional()
|
|
2442
|
+
}).optional()
|
|
2453
2443
|
});
|
|
2454
2444
|
|
|
2455
2445
|
// DELETE /public-api/resources/partner-contracts/v1.0/{partnerContract}
|
package/package.json
CHANGED