@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
|
@@ -4539,12 +4539,12 @@ export const updatePcIdBody = z.object({
|
|
|
4539
4539
|
// POST /public-api/resources/reimbursement-policies/v1.0
|
|
4540
4540
|
export const reimbursementPolicyCreateBody = z.object({
|
|
4541
4541
|
name: z.string().max(255),
|
|
4542
|
-
electricityRateSource: z.enum(["policy", "charge_point"]),
|
|
4543
4542
|
validityStartsOn: z.string(),
|
|
4544
4543
|
partnerId: z.number().int().optional(),
|
|
4545
4544
|
partnerContractId: z.number().int().optional(),
|
|
4546
4545
|
electricityRateId: z.number().int().optional(),
|
|
4547
4546
|
validityEndsOn: z.string().optional(),
|
|
4547
|
+
electricityRateSource: z.enum(["policy", "charge_point"]),
|
|
4548
4548
|
operatorId: z.number().int().optional()
|
|
4549
4549
|
});
|
|
4550
4550
|
// GET /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}
|
|
@@ -4552,8 +4552,8 @@ export const reimbursementPolicyCreateBody = z.object({
|
|
|
4552
4552
|
// PATCH /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}
|
|
4553
4553
|
export const reimbursementPolicyUpdateBody = z.object({
|
|
4554
4554
|
name: z.string().max(255).optional(),
|
|
4555
|
-
electricityRateSource: z.enum(["policy", "charge_point"]).optional(),
|
|
4556
4555
|
validityStartsOn: z.string().optional(),
|
|
4556
|
+
electricityRateSource: z.enum(["policy", "charge_point"]).optional(),
|
|
4557
4557
|
partnerId: z.number().int().optional(),
|
|
4558
4558
|
partnerContractId: z.number().int().optional(),
|
|
4559
4559
|
electricityRateId: z.number().int().optional(),
|
|
@@ -4746,17 +4746,13 @@ export const sessionUpdateBody = z.object({
|
|
|
4746
4746
|
// GET /public-api/resources/sub-operators/v2.0
|
|
4747
4747
|
// POST /public-api/resources/sub-operators/v2.0
|
|
4748
4748
|
export const subOperatorCreateBody = z.object({
|
|
4749
|
-
name: z.string().max(255),
|
|
4750
4749
|
businessName: z.string().max(255),
|
|
4751
4750
|
externalId: z.string().max(255).optional(),
|
|
4752
4751
|
regNo: z.string().max(255).optional(),
|
|
4753
4752
|
taxNo: z.string().max(255).optional(),
|
|
4754
4753
|
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(),
|
|
4755
|
-
city: z.string().max(255).optional(),
|
|
4756
4754
|
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(),
|
|
4757
|
-
region: z.string().optional(),
|
|
4758
4755
|
postcode: z.string().max(255).optional(),
|
|
4759
|
-
address: z.string().max(255).optional(),
|
|
4760
4756
|
contactPerson: z.string().max(255).optional(),
|
|
4761
4757
|
phone: z.string().max(255).optional(),
|
|
4762
4758
|
email: z.string().max(255).optional(),
|
|
@@ -4768,12 +4764,48 @@ export const subOperatorCreateBody = z.object({
|
|
|
4768
4764
|
canControlTariffGroups: z.boolean().optional(),
|
|
4769
4765
|
canControlPartnersTariffsAndTariffGroups: z.boolean().optional()
|
|
4770
4766
|
}).optional(),
|
|
4771
|
-
partnerIds: z.array(z.number().int()).optional()
|
|
4767
|
+
partnerIds: z.array(z.number().int()).optional(),
|
|
4768
|
+
translatedName: z.array(z.object({
|
|
4769
|
+
locale: z.string(),
|
|
4770
|
+
translation: z.string().max(255)
|
|
4771
|
+
})).min(1).optional(),
|
|
4772
|
+
translatedAddress: z.array(z.object({
|
|
4773
|
+
locale: z.string(),
|
|
4774
|
+
translation: z.string().max(255)
|
|
4775
|
+
})).optional(),
|
|
4776
|
+
translatedCity: z.array(z.object({
|
|
4777
|
+
locale: z.string(),
|
|
4778
|
+
translation: z.string().max(255)
|
|
4779
|
+
})).optional(),
|
|
4780
|
+
translatedRegion: z.array(z.object({
|
|
4781
|
+
locale: z.string(),
|
|
4782
|
+
translation: z.string().max(255)
|
|
4783
|
+
})).optional(),
|
|
4784
|
+
name: z.string().max(255).optional(),
|
|
4785
|
+
city: z.string().max(255).optional(),
|
|
4786
|
+
region: z.string().optional(),
|
|
4787
|
+
address: z.string().max(255).optional()
|
|
4772
4788
|
});
|
|
4773
4789
|
// GET /public-api/resources/sub-operators/v2.0/{subOperator}
|
|
4774
4790
|
// DELETE /public-api/resources/sub-operators/v2.0/{subOperator}
|
|
4775
4791
|
// PATCH /public-api/resources/sub-operators/v2.0/{subOperator}
|
|
4776
4792
|
export const subOperatorUpdateBody = z.object({
|
|
4793
|
+
translatedName: z.array(z.object({
|
|
4794
|
+
locale: z.string(),
|
|
4795
|
+
translation: z.string().max(255)
|
|
4796
|
+
})).min(1).optional(),
|
|
4797
|
+
translatedAddress: z.array(z.object({
|
|
4798
|
+
locale: z.string(),
|
|
4799
|
+
translation: z.string().max(255)
|
|
4800
|
+
})).optional(),
|
|
4801
|
+
translatedCity: z.array(z.object({
|
|
4802
|
+
locale: z.string(),
|
|
4803
|
+
translation: z.string().max(255)
|
|
4804
|
+
})).optional(),
|
|
4805
|
+
translatedRegion: z.array(z.object({
|
|
4806
|
+
locale: z.string(),
|
|
4807
|
+
translation: z.string().max(255)
|
|
4808
|
+
})).optional(),
|
|
4777
4809
|
name: z.string().max(255).optional(),
|
|
4778
4810
|
businessName: z.string().max(255).optional(),
|
|
4779
4811
|
externalId: z.string().max(255).optional(),
|
|
@@ -5869,6 +5901,12 @@ export const transactionsCreateBody = z.object({
|
|
|
5869
5901
|
operatorId: z.number().int().optional(),
|
|
5870
5902
|
sessionId: z.number().int().optional(),
|
|
5871
5903
|
paymentMethod: z.object({
|
|
5904
|
+
cardType: z.enum(["credit", "debit", "prepaid"]).optional(),
|
|
5905
|
+
bin: z.string().min(1).max(255).optional(),
|
|
5906
|
+
fingerprint: z.string().min(1).max(255).optional(),
|
|
5907
|
+
acquirerName: z.string().min(1).max(255).optional(),
|
|
5908
|
+
issuerName: z.string().min(1).max(255).optional(),
|
|
5909
|
+
issuerCode: z.string().min(1).max(255).optional(),
|
|
5872
5910
|
methodType: z.enum(["card", "bank_transfer", "wallet"]).optional(),
|
|
5873
5911
|
cardNetwork: z.enum(["visa", "mastercard", "paypal", "maestro", "amex", "bancontact", "cartes_bancaires", "diners_club", "discover", "interac", "jcb", "mada", "visa_electron", "unknown"]).optional(),
|
|
5874
5912
|
bankTransferType: z.enum(["pse", "sepa"]).optional(),
|
|
@@ -5918,6 +5956,12 @@ export const transactionsCreateBody = z.object({
|
|
|
5918
5956
|
export const transactionUpdateBody = z.object({
|
|
5919
5957
|
sessionId: z.number().int().optional(),
|
|
5920
5958
|
paymentMethod: z.object({
|
|
5959
|
+
cardType: z.enum(["credit", "debit", "prepaid"]).optional(),
|
|
5960
|
+
bin: z.string().min(1).max(255).optional(),
|
|
5961
|
+
fingerprint: z.string().min(1).max(255).optional(),
|
|
5962
|
+
acquirerName: z.string().min(1).max(255).optional(),
|
|
5963
|
+
issuerName: z.string().min(1).max(255).optional(),
|
|
5964
|
+
issuerCode: z.string().min(1).max(255).optional(),
|
|
5921
5965
|
methodType: z.enum(["card", "bank_transfer"]).optional(),
|
|
5922
5966
|
cardNetwork: z.enum(["visa", "mastercard", "paypal", "maestro", "amex", "bancontact", "cartes_bancaires", "diners_club", "discover", "interac", "jcb", "mada", "visa_electron", "unknown"]).optional(),
|
|
5923
5967
|
bankTransferType: z.enum(["pse", "sepa"]).optional(),
|