@ampeco/public-api-mcp 3.104.2 → 3.105.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 +9 -9
- package/dist/generated/endpoints.json +832 -251
- package/dist/generated/response-schemas.json +2412 -956
- package/dist/generated/schemas.d.ts +457 -189
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +137 -62
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/schemas.ts +138 -62
- package/package.json +1 -1
|
@@ -247,6 +247,18 @@ export const electricityMeterReportConsumptionBody = z.object({
|
|
|
247
247
|
currentL3: z.number().int().optional()
|
|
248
248
|
});
|
|
249
249
|
|
|
250
|
+
// POST /public-api/actions/evse/v1.0/bulk-assign-tariff-group
|
|
251
|
+
export const evseBulkAssignTariffGroupsBody = z.object({
|
|
252
|
+
filters: z.object({
|
|
253
|
+
locationIds: z.array(z.number().int()).optional(),
|
|
254
|
+
partnerIds: z.array(z.number().int()).optional(),
|
|
255
|
+
evseIds: z.array(z.number().int()).optional(),
|
|
256
|
+
chargePointIds: z.array(z.number().int()).optional(),
|
|
257
|
+
tariffGroupIds: z.array(z.number().int()).optional()
|
|
258
|
+
}).optional(),
|
|
259
|
+
tariffGroupId: z.number().int()
|
|
260
|
+
});
|
|
261
|
+
|
|
250
262
|
// POST /public-api/actions/evse/v1.0/{evse}/start
|
|
251
263
|
export const evseStartChargingWithEvseIdBody = z.object({
|
|
252
264
|
userId: z.number().int().optional(),
|
|
@@ -577,16 +589,27 @@ export const bookingRequestCreateBody = z.union([z.object({
|
|
|
577
589
|
lastUpdatedAt: z.string().datetime().optional(),
|
|
578
590
|
userId: z.number().int(),
|
|
579
591
|
locationId: z.number().int(),
|
|
592
|
+
externalId: z.string().max(255).optional(),
|
|
593
|
+
startAt: z.string().datetime(),
|
|
594
|
+
endAt: z.string().datetime(),
|
|
580
595
|
evseId: z.number().int().optional(),
|
|
581
596
|
evseCriteria: z.object({
|
|
582
|
-
currentType: z.enum(["ac", "dc"]).optional(),
|
|
597
|
+
currentType: z.union([z.enum(["ac", "dc"]), z.null()]).optional(),
|
|
583
598
|
minPower: z.number().optional(),
|
|
584
599
|
maxPower: z.number().optional(),
|
|
585
|
-
connectorType: z.enum(["type1", "type2", "type3", "chademo", "ccs1", "ccs2", "schuko", "nacs", "cee16", "cee32", "j1772", "inductive", "nema-5-20", "type-e-french", "type-g-british", "type-j-swiss", "avcon", "gb-t-ac", "gb-t-dc", "chaoji", "nema-6-30", "nema-6-50"]).optional()
|
|
600
|
+
connectorType: z.union([z.enum(["type1", "type2", "type3", "chademo", "ccs1", "ccs2", "schuko", "nacs", "cee16", "cee32", "j1772", "inductive", "nema-5-20", "type-e-french", "type-g-british", "type-j-swiss", "avcon", "gb-t-ac", "gb-t-dc", "chaoji", "nema-6-30", "nema-6-50"]), z.null()]).optional()
|
|
586
601
|
}).optional(),
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
602
|
+
parkingSpaceCriteria: z.object({
|
|
603
|
+
vehicleWeightKg: z.number().int().min(1).optional(),
|
|
604
|
+
vehicleHeightCm: z.number().int().min(1).optional(),
|
|
605
|
+
vehicleLengthCm: z.number().int().min(1).optional(),
|
|
606
|
+
vehicleWidthCm: z.number().int().min(1).optional(),
|
|
607
|
+
vehicleType: z.union([z.enum(["two_and_three_wheel_vehicles_and_quadricycles", "passenger_vehicles", "passenger_vehicles_with_trailer", "light_duty_vans", "heavy_duty_tractor_units_without_trailer", "heavy_duty_trucks_without_articulation_point", "heavy_duty_trucks_with_trailer_attached", "buses_or_motor_coaches"]), z.null()]).optional(),
|
|
608
|
+
driveThroughRequired: z.boolean().optional(),
|
|
609
|
+
refrigerationOutletRequired: z.boolean().optional(),
|
|
610
|
+
dangerousGoodsAllowed: z.boolean().optional()
|
|
611
|
+
}).optional(),
|
|
612
|
+
authorizedTokenIds: z.array(z.number().int()).optional()
|
|
590
613
|
}), z.object({
|
|
591
614
|
id: z.number().int().optional(),
|
|
592
615
|
type: z.enum(["update"]),
|
|
@@ -596,9 +619,10 @@ export const bookingRequestCreateBody = z.union([z.object({
|
|
|
596
619
|
lastUpdatedAt: z.string().datetime().optional(),
|
|
597
620
|
bookingId: z.number().int(),
|
|
598
621
|
userId: z.number().int().optional(),
|
|
622
|
+
externalId: z.string().max(255).optional(),
|
|
599
623
|
startAt: z.string().datetime().optional(),
|
|
600
624
|
endAt: z.string().datetime().optional(),
|
|
601
|
-
|
|
625
|
+
authorizedTokenIds: z.array(z.number().int()).optional()
|
|
602
626
|
}), z.object({
|
|
603
627
|
id: z.number().int().optional(),
|
|
604
628
|
type: z.enum(["cancel"]),
|
|
@@ -2069,31 +2093,22 @@ export const locationUpdateDeprecatedBody = z.object({
|
|
|
2069
2093
|
// POST /public-api/resources/locations/v2.0
|
|
2070
2094
|
export const locationCreateBody = z.object({
|
|
2071
2095
|
id: z.number().int().optional(),
|
|
2096
|
+
externalId: z.string().optional(),
|
|
2072
2097
|
name: z.array(z.object({
|
|
2073
2098
|
locale: z.string().optional(),
|
|
2074
2099
|
translation: z.string().optional()
|
|
2075
2100
|
})),
|
|
2076
|
-
|
|
2101
|
+
description: z.array(z.object({
|
|
2077
2102
|
locale: z.string().optional(),
|
|
2078
2103
|
translation: z.string().optional()
|
|
2079
2104
|
})).optional(),
|
|
2080
|
-
|
|
2105
|
+
shortDescription: z.array(z.object({
|
|
2081
2106
|
locale: z.string().optional(),
|
|
2082
2107
|
translation: z.string().optional()
|
|
2083
2108
|
})).optional(),
|
|
2084
2109
|
additionalDescription: z.array(z.object({
|
|
2085
2110
|
locale: z.string().optional(),
|
|
2086
2111
|
translation: z.string().optional()
|
|
2087
|
-
})).optional(),
|
|
2088
|
-
locationImage: z.object({
|
|
2089
|
-
original: z.string(),
|
|
2090
|
-
thumbnail: z.string().optional(),
|
|
2091
|
-
mimeType: z.string()
|
|
2092
|
-
}).optional(),
|
|
2093
|
-
images: z.array(z.object({
|
|
2094
|
-
original: z.string(),
|
|
2095
|
-
thumbnail: z.string().optional(),
|
|
2096
|
-
mimeType: z.string()
|
|
2097
2112
|
})).optional(),
|
|
2098
2113
|
geoposition: z.object({
|
|
2099
2114
|
latitude: z.number().min(-90).max(90),
|
|
@@ -2112,6 +2127,20 @@ export const locationCreateBody = z.object({
|
|
|
2112
2127
|
state: z.union([z.enum(["AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY"]), z.enum(["NSW", "VIC", "QLD", "WA", "SA", "TAS", "ACT", "NT", "JBT", "CX", "NF", "CC", "AQ", "CSI", "ACI", "HM"]), z.enum(["AB", "BC", "MB", "NB", "NL", "NT", "NS", "NU", "ON", "PE", "QC", "SK", "YT"]), z.enum(["81", "84", "85", "67", "89", "71", "76", "95", "79"]), z.enum(["AB", "AR", "AG", "BC", "BH", "BN", "BT", "BV", "BR", "B", "BZ", "CL", "CS", "CT", "CV", "DB", "DJ", "GL", "GR", "GJ", "HR", "HD", "IL", "IS", "IF", "MM", "MH", "MS", "NT", "OT", "PH", "SM", "SJ", "SB", "SV", "TR", "TM", "TL", "VS", "VL", "VN"])]).optional(),
|
|
2113
2128
|
country: z.enum(["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "XK", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]),
|
|
2114
2129
|
postCode: z.string().optional(),
|
|
2130
|
+
timezone: z.string().optional(),
|
|
2131
|
+
parkingType: z.enum(["ALONG_MOTORWAY", "PARKING_GARAGE", "PARKING_LOT", "ON_DRIVEWAY", "ON_STREET", "UNDERGROUND_GARAGE"]).optional(),
|
|
2132
|
+
accessMethods: z.array(z.enum(["OPEN", "TOKEN", "LICENSE_PLATE", "ACCESS_CODE", "INTERCOM", "PARKING_TICKET"])).optional(),
|
|
2133
|
+
facilities: z.array(z.enum(["AIRPORT", "BIKE_SHARING", "BUS_STOP", "CAFE", "CARPOOL_PARKING", "FUEL_STATION", "HOTEL", "MALL", "METRO_STATION", "MUSEUM", "NATURE", "PARKING_LOT", "RECREATION_AREA", "RESTAURANT", "SPORT", "SUPERMARKET", "TAXI_STAND", "TRAIN_STATION", "TRAM_STOP", "WIFI"])).optional(),
|
|
2134
|
+
locationImage: z.object({
|
|
2135
|
+
original: z.string(),
|
|
2136
|
+
thumbnail: z.string().optional(),
|
|
2137
|
+
mimeType: z.string()
|
|
2138
|
+
}).optional(),
|
|
2139
|
+
images: z.array(z.object({
|
|
2140
|
+
original: z.string(),
|
|
2141
|
+
thumbnail: z.string().optional(),
|
|
2142
|
+
mimeType: z.string()
|
|
2143
|
+
})).optional(),
|
|
2115
2144
|
workingHours: z.object({
|
|
2116
2145
|
isAlwaysOpen: z.boolean().optional(),
|
|
2117
2146
|
stopSessionOutsideWorkingHours: z.boolean().optional(),
|
|
@@ -2147,10 +2176,6 @@ export const locationCreateBody = z.object({
|
|
|
2147
2176
|
})).optional()
|
|
2148
2177
|
}).optional()
|
|
2149
2178
|
}).optional(),
|
|
2150
|
-
timezone: z.string().optional(),
|
|
2151
|
-
externalId: z.string().optional(),
|
|
2152
|
-
roamingOperatorId: z.number().int().optional(),
|
|
2153
|
-
lastUpdatedAt: z.string().datetime().optional(),
|
|
2154
2179
|
chargingZones: z.array(z.object({
|
|
2155
2180
|
id: z.number().int().optional(),
|
|
2156
2181
|
name: z.string().optional(),
|
|
@@ -2168,7 +2193,7 @@ export const locationCreateBody = z.object({
|
|
|
2168
2193
|
})).optional()
|
|
2169
2194
|
}).optional()
|
|
2170
2195
|
})).optional(),
|
|
2171
|
-
|
|
2196
|
+
roamingOperatorId: z.number().int().optional(),
|
|
2172
2197
|
roaming: z.object({
|
|
2173
2198
|
owner: z.object({
|
|
2174
2199
|
name: z.string().optional()
|
|
@@ -2181,7 +2206,8 @@ export const locationCreateBody = z.object({
|
|
|
2181
2206
|
}).optional()
|
|
2182
2207
|
}).optional(),
|
|
2183
2208
|
tags: z.array(z.string()).optional(),
|
|
2184
|
-
|
|
2209
|
+
externalAppData: z.record(z.unknown()).optional(),
|
|
2210
|
+
lastUpdatedAt: z.string().datetime().optional()
|
|
2185
2211
|
});
|
|
2186
2212
|
|
|
2187
2213
|
// GET /public-api/resources/locations/v2.0/{location}
|
|
@@ -2191,31 +2217,22 @@ export const locationCreateBody = z.object({
|
|
|
2191
2217
|
// PATCH /public-api/resources/locations/v2.0/{location}
|
|
2192
2218
|
export const locationUpdateBody = z.object({
|
|
2193
2219
|
id: z.number().int().optional(),
|
|
2220
|
+
externalId: z.string().optional(),
|
|
2194
2221
|
name: z.array(z.object({
|
|
2195
2222
|
locale: z.string().optional(),
|
|
2196
2223
|
translation: z.string().optional()
|
|
2197
2224
|
})).optional(),
|
|
2198
|
-
|
|
2225
|
+
description: z.array(z.object({
|
|
2199
2226
|
locale: z.string().optional(),
|
|
2200
2227
|
translation: z.string().optional()
|
|
2201
2228
|
})).optional(),
|
|
2202
|
-
|
|
2229
|
+
shortDescription: z.array(z.object({
|
|
2203
2230
|
locale: z.string().optional(),
|
|
2204
2231
|
translation: z.string().optional()
|
|
2205
2232
|
})).optional(),
|
|
2206
2233
|
additionalDescription: z.array(z.object({
|
|
2207
2234
|
locale: z.string().optional(),
|
|
2208
2235
|
translation: z.string().optional()
|
|
2209
|
-
})).optional(),
|
|
2210
|
-
locationImage: z.object({
|
|
2211
|
-
original: z.string(),
|
|
2212
|
-
thumbnail: z.string().optional(),
|
|
2213
|
-
mimeType: z.string()
|
|
2214
|
-
}).optional(),
|
|
2215
|
-
images: z.array(z.object({
|
|
2216
|
-
original: z.string(),
|
|
2217
|
-
thumbnail: z.string().optional(),
|
|
2218
|
-
mimeType: z.string()
|
|
2219
2236
|
})).optional(),
|
|
2220
2237
|
geoposition: z.object({
|
|
2221
2238
|
latitude: z.number().min(-90).max(90),
|
|
@@ -2234,6 +2251,20 @@ export const locationUpdateBody = z.object({
|
|
|
2234
2251
|
state: z.union([z.enum(["AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY"]), z.enum(["NSW", "VIC", "QLD", "WA", "SA", "TAS", "ACT", "NT", "JBT", "CX", "NF", "CC", "AQ", "CSI", "ACI", "HM"]), z.enum(["AB", "BC", "MB", "NB", "NL", "NT", "NS", "NU", "ON", "PE", "QC", "SK", "YT"]), z.enum(["81", "84", "85", "67", "89", "71", "76", "95", "79"]), z.enum(["AB", "AR", "AG", "BC", "BH", "BN", "BT", "BV", "BR", "B", "BZ", "CL", "CS", "CT", "CV", "DB", "DJ", "GL", "GR", "GJ", "HR", "HD", "IL", "IS", "IF", "MM", "MH", "MS", "NT", "OT", "PH", "SM", "SJ", "SB", "SV", "TR", "TM", "TL", "VS", "VL", "VN"])]).optional(),
|
|
2235
2252
|
country: z.enum(["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "XK", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]).optional(),
|
|
2236
2253
|
postCode: z.string().optional(),
|
|
2254
|
+
timezone: z.string().optional(),
|
|
2255
|
+
parkingType: z.enum(["ALONG_MOTORWAY", "PARKING_GARAGE", "PARKING_LOT", "ON_DRIVEWAY", "ON_STREET", "UNDERGROUND_GARAGE"]).optional(),
|
|
2256
|
+
accessMethods: z.array(z.enum(["OPEN", "TOKEN", "LICENSE_PLATE", "ACCESS_CODE", "INTERCOM", "PARKING_TICKET"])).optional(),
|
|
2257
|
+
facilities: z.array(z.enum(["AIRPORT", "BIKE_SHARING", "BUS_STOP", "CAFE", "CARPOOL_PARKING", "FUEL_STATION", "HOTEL", "MALL", "METRO_STATION", "MUSEUM", "NATURE", "PARKING_LOT", "RECREATION_AREA", "RESTAURANT", "SPORT", "SUPERMARKET", "TAXI_STAND", "TRAIN_STATION", "TRAM_STOP", "WIFI"])).optional(),
|
|
2258
|
+
locationImage: z.object({
|
|
2259
|
+
original: z.string(),
|
|
2260
|
+
thumbnail: z.string().optional(),
|
|
2261
|
+
mimeType: z.string()
|
|
2262
|
+
}).optional(),
|
|
2263
|
+
images: z.array(z.object({
|
|
2264
|
+
original: z.string(),
|
|
2265
|
+
thumbnail: z.string().optional(),
|
|
2266
|
+
mimeType: z.string()
|
|
2267
|
+
})).optional(),
|
|
2237
2268
|
workingHours: z.object({
|
|
2238
2269
|
isAlwaysOpen: z.boolean().optional(),
|
|
2239
2270
|
stopSessionOutsideWorkingHours: z.boolean().optional(),
|
|
@@ -2269,10 +2300,6 @@ export const locationUpdateBody = z.object({
|
|
|
2269
2300
|
})).optional()
|
|
2270
2301
|
}).optional()
|
|
2271
2302
|
}).optional(),
|
|
2272
|
-
timezone: z.string().optional(),
|
|
2273
|
-
externalId: z.string().optional(),
|
|
2274
|
-
roamingOperatorId: z.number().int().optional(),
|
|
2275
|
-
lastUpdatedAt: z.string().datetime().optional(),
|
|
2276
2303
|
chargingZones: z.array(z.object({
|
|
2277
2304
|
id: z.number().int().optional(),
|
|
2278
2305
|
name: z.string().optional(),
|
|
@@ -2290,7 +2317,7 @@ export const locationUpdateBody = z.object({
|
|
|
2290
2317
|
})).optional()
|
|
2291
2318
|
}).optional()
|
|
2292
2319
|
})).optional(),
|
|
2293
|
-
|
|
2320
|
+
roamingOperatorId: z.number().int().optional(),
|
|
2294
2321
|
roaming: z.object({
|
|
2295
2322
|
owner: z.object({
|
|
2296
2323
|
name: z.string().optional()
|
|
@@ -2303,7 +2330,8 @@ export const locationUpdateBody = z.object({
|
|
|
2303
2330
|
}).optional()
|
|
2304
2331
|
}).optional(),
|
|
2305
2332
|
tags: z.array(z.string()).optional(),
|
|
2306
|
-
|
|
2333
|
+
externalAppData: z.record(z.unknown()).optional(),
|
|
2334
|
+
lastUpdatedAt: z.string().datetime().optional()
|
|
2307
2335
|
});
|
|
2308
2336
|
|
|
2309
2337
|
// GET /public-api/resources/locations/v2.0/{location}/charging-zones
|
|
@@ -2731,7 +2759,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2731
2759
|
id: z.number().int().optional(),
|
|
2732
2760
|
name: z.string(),
|
|
2733
2761
|
integrationId: z.number().int(),
|
|
2734
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2762
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2735
2763
|
operatorId: z.number().int(),
|
|
2736
2764
|
chargingZoneId: z.number().int().optional(),
|
|
2737
2765
|
chargePointId: z.number().int().optional(),
|
|
@@ -2758,7 +2786,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2758
2786
|
id: z.number().int().optional(),
|
|
2759
2787
|
name: z.string(),
|
|
2760
2788
|
integrationId: z.number().int(),
|
|
2761
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2789
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2762
2790
|
operatorId: z.number().int(),
|
|
2763
2791
|
chargingZoneId: z.number().int().optional(),
|
|
2764
2792
|
chargePointId: z.number().int().optional(),
|
|
@@ -2768,7 +2796,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2768
2796
|
id: z.number().int().optional(),
|
|
2769
2797
|
name: z.string(),
|
|
2770
2798
|
integrationId: z.number().int(),
|
|
2771
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2799
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2772
2800
|
operatorId: z.number().int(),
|
|
2773
2801
|
chargingZoneId: z.number().int().optional(),
|
|
2774
2802
|
chargePointId: z.number().int().optional(),
|
|
@@ -2780,7 +2808,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2780
2808
|
id: z.number().int().optional(),
|
|
2781
2809
|
name: z.string(),
|
|
2782
2810
|
integrationId: z.number().int(),
|
|
2783
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2811
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2784
2812
|
operatorId: z.number().int(),
|
|
2785
2813
|
chargingZoneId: z.number().int().optional(),
|
|
2786
2814
|
chargePointId: z.number().int().optional(),
|
|
@@ -2791,7 +2819,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2791
2819
|
id: z.number().int().optional(),
|
|
2792
2820
|
name: z.string(),
|
|
2793
2821
|
integrationId: z.number().int(),
|
|
2794
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2822
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2795
2823
|
operatorId: z.number().int(),
|
|
2796
2824
|
chargingZoneId: z.number().int().optional(),
|
|
2797
2825
|
chargePointId: z.number().int().optional(),
|
|
@@ -2801,7 +2829,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2801
2829
|
id: z.number().int().optional(),
|
|
2802
2830
|
name: z.string(),
|
|
2803
2831
|
integrationId: z.number().int(),
|
|
2804
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2832
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2805
2833
|
operatorId: z.number().int(),
|
|
2806
2834
|
chargingZoneId: z.number().int().optional(),
|
|
2807
2835
|
chargePointId: z.number().int().optional(),
|
|
@@ -2818,7 +2846,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2818
2846
|
id: z.number().int().optional(),
|
|
2819
2847
|
name: z.string(),
|
|
2820
2848
|
integrationId: z.number().int(),
|
|
2821
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2849
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2822
2850
|
operatorId: z.number().int(),
|
|
2823
2851
|
chargingZoneId: z.number().int().optional(),
|
|
2824
2852
|
chargePointId: z.number().int().optional(),
|
|
@@ -2828,7 +2856,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2828
2856
|
id: z.number().int().optional(),
|
|
2829
2857
|
name: z.string(),
|
|
2830
2858
|
integrationId: z.number().int(),
|
|
2831
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2859
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2832
2860
|
operatorId: z.number().int(),
|
|
2833
2861
|
invoiceFields: z.array(z.object({
|
|
2834
2862
|
field: z.string(),
|
|
@@ -2839,7 +2867,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2839
2867
|
id: z.number().int().optional(),
|
|
2840
2868
|
name: z.string(),
|
|
2841
2869
|
integrationId: z.number().int(),
|
|
2842
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2870
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2843
2871
|
operatorId: z.number().int(),
|
|
2844
2872
|
chargingZoneId: z.number().int().optional(),
|
|
2845
2873
|
chargePointId: z.number().int().optional(),
|
|
@@ -2863,7 +2891,7 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2863
2891
|
id: z.number().int().optional(),
|
|
2864
2892
|
name: z.string(),
|
|
2865
2893
|
integrationId: z.number().int(),
|
|
2866
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]),
|
|
2894
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2867
2895
|
operatorId: z.number().int(),
|
|
2868
2896
|
chargingZoneId: z.number().int().optional(),
|
|
2869
2897
|
chargePointId: z.number().int().optional(),
|
|
@@ -2886,6 +2914,33 @@ export const createPaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2886
2914
|
downloadUrl: z.string().optional()
|
|
2887
2915
|
}),
|
|
2888
2916
|
networkStatusMonitoringEnabled: z.boolean().optional()
|
|
2917
|
+
}), z.object({
|
|
2918
|
+
id: z.number().int().optional(),
|
|
2919
|
+
name: z.string(),
|
|
2920
|
+
integrationId: z.number().int(),
|
|
2921
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]),
|
|
2922
|
+
operatorId: z.number().int(),
|
|
2923
|
+
chargingZoneId: z.number().int().optional(),
|
|
2924
|
+
chargePointId: z.number().int().optional(),
|
|
2925
|
+
adminToken: z.string().optional(),
|
|
2926
|
+
isOnline: z.boolean().optional(),
|
|
2927
|
+
networkStatus: z.enum(["online", "offline", "unknown"]).optional(),
|
|
2928
|
+
phone: z.string(),
|
|
2929
|
+
defaultLanguage: z.string(),
|
|
2930
|
+
presentCardOnStopSession: z.boolean().optional(),
|
|
2931
|
+
info: z.array(z.object({
|
|
2932
|
+
locale: z.string().optional(),
|
|
2933
|
+
translation: z.string().optional()
|
|
2934
|
+
})),
|
|
2935
|
+
currencyCode: z.string().optional(),
|
|
2936
|
+
serialNumber: z.string().optional(),
|
|
2937
|
+
externalId: z.string().optional(),
|
|
2938
|
+
supportedLanguages: z.array(z.string()).optional(),
|
|
2939
|
+
bundle: z.object({
|
|
2940
|
+
version: z.string().optional(),
|
|
2941
|
+
downloadUrl: z.string().optional()
|
|
2942
|
+
}),
|
|
2943
|
+
networkStatusMonitoringEnabled: z.boolean().optional()
|
|
2889
2944
|
})]);
|
|
2890
2945
|
|
|
2891
2946
|
// GET /public-api/resources/payment-terminals/v1.0/{paymentTerminal}
|
|
@@ -2903,7 +2958,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2903
2958
|
id: z.number().int().optional(),
|
|
2904
2959
|
name: z.string().optional(),
|
|
2905
2960
|
integrationId: z.number().int().optional(),
|
|
2906
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
2961
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2907
2962
|
operatorId: z.number().int().optional(),
|
|
2908
2963
|
chargingZoneId: z.number().int().optional(),
|
|
2909
2964
|
chargePointId: z.number().int().optional(),
|
|
@@ -2924,7 +2979,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2924
2979
|
id: z.number().int().optional(),
|
|
2925
2980
|
name: z.string().optional(),
|
|
2926
2981
|
integrationId: z.number().int().optional(),
|
|
2927
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
2982
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2928
2983
|
operatorId: z.number().int().optional(),
|
|
2929
2984
|
chargingZoneId: z.number().int().optional(),
|
|
2930
2985
|
chargePointId: z.number().int().optional(),
|
|
@@ -2934,7 +2989,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2934
2989
|
id: z.number().int().optional(),
|
|
2935
2990
|
name: z.string().optional(),
|
|
2936
2991
|
integrationId: z.number().int().optional(),
|
|
2937
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
2992
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2938
2993
|
operatorId: z.number().int().optional(),
|
|
2939
2994
|
chargingZoneId: z.number().int().optional(),
|
|
2940
2995
|
chargePointId: z.number().int().optional(),
|
|
@@ -2946,7 +3001,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2946
3001
|
id: z.number().int().optional(),
|
|
2947
3002
|
name: z.string().optional(),
|
|
2948
3003
|
integrationId: z.number().int().optional(),
|
|
2949
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3004
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2950
3005
|
operatorId: z.number().int().optional(),
|
|
2951
3006
|
chargingZoneId: z.number().int().optional(),
|
|
2952
3007
|
chargePointId: z.number().int().optional(),
|
|
@@ -2957,7 +3012,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2957
3012
|
id: z.number().int().optional(),
|
|
2958
3013
|
name: z.string().optional(),
|
|
2959
3014
|
integrationId: z.number().int().optional(),
|
|
2960
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3015
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2961
3016
|
operatorId: z.number().int().optional(),
|
|
2962
3017
|
chargingZoneId: z.number().int().optional(),
|
|
2963
3018
|
chargePointId: z.number().int().optional(),
|
|
@@ -2967,7 +3022,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2967
3022
|
id: z.number().int().optional(),
|
|
2968
3023
|
name: z.string().optional(),
|
|
2969
3024
|
integrationId: z.number().int().optional(),
|
|
2970
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3025
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2971
3026
|
operatorId: z.number().int().optional(),
|
|
2972
3027
|
chargingZoneId: z.number().int().optional(),
|
|
2973
3028
|
chargePointId: z.number().int().optional(),
|
|
@@ -2984,7 +3039,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2984
3039
|
id: z.number().int().optional(),
|
|
2985
3040
|
name: z.string().optional(),
|
|
2986
3041
|
integrationId: z.number().int().optional(),
|
|
2987
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3042
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2988
3043
|
operatorId: z.number().int().optional(),
|
|
2989
3044
|
chargingZoneId: z.number().int().optional(),
|
|
2990
3045
|
chargePointId: z.number().int().optional(),
|
|
@@ -2994,13 +3049,13 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
2994
3049
|
id: z.number().int().optional(),
|
|
2995
3050
|
name: z.string().optional(),
|
|
2996
3051
|
integrationId: z.number().int().optional(),
|
|
2997
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3052
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
2998
3053
|
operatorId: z.number().int().optional()
|
|
2999
3054
|
}), z.object({
|
|
3000
3055
|
id: z.number().int().optional(),
|
|
3001
3056
|
name: z.string().optional(),
|
|
3002
3057
|
integrationId: z.number().int().optional(),
|
|
3003
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3058
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
3004
3059
|
operatorId: z.number().int().optional(),
|
|
3005
3060
|
chargingZoneId: z.number().int().optional(),
|
|
3006
3061
|
chargePointId: z.number().int().optional(),
|
|
@@ -3023,7 +3078,7 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
3023
3078
|
id: z.number().int().optional(),
|
|
3024
3079
|
name: z.string().optional(),
|
|
3025
3080
|
integrationId: z.number().int().optional(),
|
|
3026
|
-
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles"]).optional(),
|
|
3081
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
3027
3082
|
operatorId: z.number().int().optional(),
|
|
3028
3083
|
chargingZoneId: z.number().int().optional(),
|
|
3029
3084
|
chargePointId: z.number().int().optional(),
|
|
@@ -3040,6 +3095,27 @@ export const updatePaymentTerminalBody = z.union([z.union([z.object({
|
|
|
3040
3095
|
externalId: z.string().optional(),
|
|
3041
3096
|
supportedLanguages: z.array(z.string()).optional(),
|
|
3042
3097
|
networkStatusMonitoringEnabled: z.boolean().optional()
|
|
3098
|
+
}), z.object({
|
|
3099
|
+
id: z.number().int().optional(),
|
|
3100
|
+
name: z.string().optional(),
|
|
3101
|
+
integrationId: z.number().int().optional(),
|
|
3102
|
+
terminalType: z.enum(["Payter", "Valina", "Crane", "Ampeco", "Nayax", "Embedded", "Pax", "Windcave", "Web portal", "AdyenCastles", "Printec Castles", "Cardlink Castles"]).optional(),
|
|
3103
|
+
operatorId: z.number().int().optional(),
|
|
3104
|
+
chargingZoneId: z.number().int().optional(),
|
|
3105
|
+
chargePointId: z.number().int().optional(),
|
|
3106
|
+
adminToken: z.string().optional(),
|
|
3107
|
+
isOnline: z.boolean().optional(),
|
|
3108
|
+
networkStatus: z.enum(["online", "offline", "unknown"]).optional(),
|
|
3109
|
+
phone: z.string().optional(),
|
|
3110
|
+
defaultLanguage: z.string().optional(),
|
|
3111
|
+
presentCardOnStopSession: z.boolean().optional(),
|
|
3112
|
+
info: z.array(z.object({
|
|
3113
|
+
locale: z.string().optional(),
|
|
3114
|
+
translation: z.string().optional()
|
|
3115
|
+
})).optional(),
|
|
3116
|
+
serialNumber: z.string().optional(),
|
|
3117
|
+
externalId: z.string().optional(),
|
|
3118
|
+
supportedLanguages: z.array(z.string()).optional()
|
|
3043
3119
|
})]);
|
|
3044
3120
|
|
|
3045
3121
|
// GET /public-api/resources/provisioning-certificates/v2.0
|
package/package.json
CHANGED