@ampeco/public-api-mcp 3.245.3 → 3.247.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 +322 -59
- package/dist/generated/response-schemas.json +433 -120
- package/dist/generated/schemas.d.ts +216 -12
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +51 -7
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/schemas.ts +51 -7
- package/package.json +1 -1
|
@@ -5000,12 +5000,12 @@ export const updatePcIdBody = z.object({
|
|
|
5000
5000
|
// POST /public-api/resources/reimbursement-policies/v1.0
|
|
5001
5001
|
export const reimbursementPolicyCreateBody = z.object({
|
|
5002
5002
|
name: z.string().max(255),
|
|
5003
|
-
electricityRateSource: z.enum(["policy", "charge_point"]),
|
|
5004
5003
|
validityStartsOn: z.string(),
|
|
5005
5004
|
partnerId: z.number().int().optional(),
|
|
5006
5005
|
partnerContractId: z.number().int().optional(),
|
|
5007
5006
|
electricityRateId: z.number().int().optional(),
|
|
5008
5007
|
validityEndsOn: z.string().optional(),
|
|
5008
|
+
electricityRateSource: z.enum(["policy", "charge_point"]),
|
|
5009
5009
|
operatorId: z.number().int().optional()
|
|
5010
5010
|
});
|
|
5011
5011
|
|
|
@@ -5016,8 +5016,8 @@ export const reimbursementPolicyCreateBody = z.object({
|
|
|
5016
5016
|
// PATCH /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}
|
|
5017
5017
|
export const reimbursementPolicyUpdateBody = z.object({
|
|
5018
5018
|
name: z.string().max(255).optional(),
|
|
5019
|
-
electricityRateSource: z.enum(["policy", "charge_point"]).optional(),
|
|
5020
5019
|
validityStartsOn: z.string().optional(),
|
|
5020
|
+
electricityRateSource: z.enum(["policy", "charge_point"]).optional(),
|
|
5021
5021
|
partnerId: z.number().int().optional(),
|
|
5022
5022
|
partnerContractId: z.number().int().optional(),
|
|
5023
5023
|
electricityRateId: z.number().int().optional(),
|
|
@@ -5268,17 +5268,13 @@ export const sessionUpdateBody = z.object({
|
|
|
5268
5268
|
|
|
5269
5269
|
// POST /public-api/resources/sub-operators/v2.0
|
|
5270
5270
|
export const subOperatorCreateBody = z.object({
|
|
5271
|
-
name: z.string().max(255),
|
|
5272
5271
|
businessName: z.string().max(255),
|
|
5273
5272
|
externalId: z.string().max(255).optional(),
|
|
5274
5273
|
regNo: z.string().max(255).optional(),
|
|
5275
5274
|
taxNo: z.string().max(255).optional(),
|
|
5276
5275
|
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(),
|
|
5277
|
-
city: z.string().max(255).optional(),
|
|
5278
5276
|
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(),
|
|
5279
|
-
region: z.string().optional(),
|
|
5280
5277
|
postcode: z.string().max(255).optional(),
|
|
5281
|
-
address: z.string().max(255).optional(),
|
|
5282
5278
|
contactPerson: z.string().max(255).optional(),
|
|
5283
5279
|
phone: z.string().max(255).optional(),
|
|
5284
5280
|
email: z.string().max(255).optional(),
|
|
@@ -5290,7 +5286,27 @@ export const subOperatorCreateBody = z.object({
|
|
|
5290
5286
|
canControlTariffGroups: z.boolean().optional(),
|
|
5291
5287
|
canControlPartnersTariffsAndTariffGroups: z.boolean().optional()
|
|
5292
5288
|
}).optional(),
|
|
5293
|
-
partnerIds: z.array(z.number().int()).optional()
|
|
5289
|
+
partnerIds: z.array(z.number().int()).optional(),
|
|
5290
|
+
translatedName: z.array(z.object({
|
|
5291
|
+
locale: z.string(),
|
|
5292
|
+
translation: z.string().max(255)
|
|
5293
|
+
})).min(1).optional(),
|
|
5294
|
+
translatedAddress: z.array(z.object({
|
|
5295
|
+
locale: z.string(),
|
|
5296
|
+
translation: z.string().max(255)
|
|
5297
|
+
})).optional(),
|
|
5298
|
+
translatedCity: z.array(z.object({
|
|
5299
|
+
locale: z.string(),
|
|
5300
|
+
translation: z.string().max(255)
|
|
5301
|
+
})).optional(),
|
|
5302
|
+
translatedRegion: z.array(z.object({
|
|
5303
|
+
locale: z.string(),
|
|
5304
|
+
translation: z.string().max(255)
|
|
5305
|
+
})).optional(),
|
|
5306
|
+
name: z.string().max(255).optional(),
|
|
5307
|
+
city: z.string().max(255).optional(),
|
|
5308
|
+
region: z.string().optional(),
|
|
5309
|
+
address: z.string().max(255).optional()
|
|
5294
5310
|
});
|
|
5295
5311
|
|
|
5296
5312
|
// GET /public-api/resources/sub-operators/v2.0/{subOperator}
|
|
@@ -5299,6 +5315,22 @@ export const subOperatorCreateBody = z.object({
|
|
|
5299
5315
|
|
|
5300
5316
|
// PATCH /public-api/resources/sub-operators/v2.0/{subOperator}
|
|
5301
5317
|
export const subOperatorUpdateBody = z.object({
|
|
5318
|
+
translatedName: z.array(z.object({
|
|
5319
|
+
locale: z.string(),
|
|
5320
|
+
translation: z.string().max(255)
|
|
5321
|
+
})).min(1).optional(),
|
|
5322
|
+
translatedAddress: z.array(z.object({
|
|
5323
|
+
locale: z.string(),
|
|
5324
|
+
translation: z.string().max(255)
|
|
5325
|
+
})).optional(),
|
|
5326
|
+
translatedCity: z.array(z.object({
|
|
5327
|
+
locale: z.string(),
|
|
5328
|
+
translation: z.string().max(255)
|
|
5329
|
+
})).optional(),
|
|
5330
|
+
translatedRegion: z.array(z.object({
|
|
5331
|
+
locale: z.string(),
|
|
5332
|
+
translation: z.string().max(255)
|
|
5333
|
+
})).optional(),
|
|
5302
5334
|
name: z.string().max(255).optional(),
|
|
5303
5335
|
businessName: z.string().max(255).optional(),
|
|
5304
5336
|
externalId: z.string().max(255).optional(),
|
|
@@ -6444,6 +6476,12 @@ export const transactionsCreateBody = z.object({
|
|
|
6444
6476
|
operatorId: z.number().int().optional(),
|
|
6445
6477
|
sessionId: z.number().int().optional(),
|
|
6446
6478
|
paymentMethod: z.object({
|
|
6479
|
+
cardType: z.enum(["credit", "debit", "prepaid"]).optional(),
|
|
6480
|
+
bin: z.string().min(1).max(255).optional(),
|
|
6481
|
+
fingerprint: z.string().min(1).max(255).optional(),
|
|
6482
|
+
acquirerName: z.string().min(1).max(255).optional(),
|
|
6483
|
+
issuerName: z.string().min(1).max(255).optional(),
|
|
6484
|
+
issuerCode: z.string().min(1).max(255).optional(),
|
|
6447
6485
|
methodType: z.enum(["card", "bank_transfer", "wallet"]).optional(),
|
|
6448
6486
|
cardNetwork: z.enum(["visa", "mastercard", "paypal", "maestro", "amex", "bancontact", "cartes_bancaires", "diners_club", "discover", "interac", "jcb", "mada", "visa_electron", "unknown"]).optional(),
|
|
6449
6487
|
bankTransferType: z.enum(["pse", "sepa"]).optional(),
|
|
@@ -6495,6 +6533,12 @@ export const transactionsCreateBody = z.object({
|
|
|
6495
6533
|
export const transactionUpdateBody = z.object({
|
|
6496
6534
|
sessionId: z.number().int().optional(),
|
|
6497
6535
|
paymentMethod: z.object({
|
|
6536
|
+
cardType: z.enum(["credit", "debit", "prepaid"]).optional(),
|
|
6537
|
+
bin: z.string().min(1).max(255).optional(),
|
|
6538
|
+
fingerprint: z.string().min(1).max(255).optional(),
|
|
6539
|
+
acquirerName: z.string().min(1).max(255).optional(),
|
|
6540
|
+
issuerName: z.string().min(1).max(255).optional(),
|
|
6541
|
+
issuerCode: z.string().min(1).max(255).optional(),
|
|
6498
6542
|
methodType: z.enum(["card", "bank_transfer"]).optional(),
|
|
6499
6543
|
cardNetwork: z.enum(["visa", "mastercard", "paypal", "maestro", "amex", "bancontact", "cartes_bancaires", "diners_club", "discover", "interac", "jcb", "mada", "visa_electron", "unknown"]).optional(),
|
|
6500
6544
|
bankTransferType: z.enum(["pse", "sepa"]).optional(),
|
package/package.json
CHANGED