@ampeco/public-api-mcp 3.232.0 → 3.233.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 +1103 -219
- package/dist/generated/response-schemas.json +3548 -131
- package/dist/generated/schemas.d.ts +300 -0
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +75 -2
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/schemas.ts +88 -2
- package/package.json +1 -1
|
@@ -384,6 +384,11 @@ export const certificateIssueAnEmaidBody = z.object({
|
|
|
384
384
|
paymentMethod: z.string().optional(),
|
|
385
385
|
defaultPaymentOption: z.string().optional()
|
|
386
386
|
});
|
|
387
|
+
// POST /public-api/actions/reimbursement-record/v1.0/{reimbursementRecord}/issue-credit
|
|
388
|
+
export const reimbursementRecordIssueCreditBody = z.object({
|
|
389
|
+
creditReason: z.string().min(1).max(500)
|
|
390
|
+
});
|
|
391
|
+
// POST /public-api/actions/reimbursement-report/v1.0/{reimbursementReport}/regenerate
|
|
387
392
|
// POST /public-api/actions/reservation/v1.0/{reservation}/cancel
|
|
388
393
|
export const reservationCancelBody = z.object({
|
|
389
394
|
force: z.boolean().optional(),
|
|
@@ -2810,6 +2815,10 @@ export const partnerContractCreateBody = z.object({
|
|
|
2810
2815
|
perChargePoint: z.number().optional(),
|
|
2811
2816
|
perAcEvse: z.number().optional(),
|
|
2812
2817
|
perDcEvse: z.number().optional()
|
|
2818
|
+
}).optional(),
|
|
2819
|
+
reimbursementFees: z.object({
|
|
2820
|
+
perSession: z.number().min(0).optional(),
|
|
2821
|
+
perPeriod: z.number().min(0).optional()
|
|
2813
2822
|
}).optional()
|
|
2814
2823
|
});
|
|
2815
2824
|
// GET /public-api/resources/partner-contracts/v1.0/{partnerContract}
|
|
@@ -2847,6 +2856,10 @@ export const partnerContractUpdateBody = z.object({
|
|
|
2847
2856
|
perChargePoint: z.number().optional(),
|
|
2848
2857
|
perAcEvse: z.number().optional(),
|
|
2849
2858
|
perDcEvse: z.number().optional()
|
|
2859
|
+
}).optional(),
|
|
2860
|
+
reimbursementFees: z.object({
|
|
2861
|
+
perSession: z.number().min(0).optional(),
|
|
2862
|
+
perPeriod: z.number().min(0).optional()
|
|
2850
2863
|
}).optional()
|
|
2851
2864
|
});
|
|
2852
2865
|
// DELETE /public-api/resources/partner-contracts/v1.0/{partnerContract}
|
|
@@ -2883,6 +2896,10 @@ export const partnerContractPatchBody = z.object({
|
|
|
2883
2896
|
perChargePoint: z.number().optional(),
|
|
2884
2897
|
perAcEvse: z.number().optional(),
|
|
2885
2898
|
perDcEvse: z.number().optional()
|
|
2899
|
+
}).optional(),
|
|
2900
|
+
reimbursementFees: z.object({
|
|
2901
|
+
perSession: z.number().min(0).optional(),
|
|
2902
|
+
perPeriod: z.number().min(0).optional()
|
|
2886
2903
|
}).optional()
|
|
2887
2904
|
});
|
|
2888
2905
|
// GET /public-api/resources/partner-expenses/v1.0
|
|
@@ -3246,7 +3263,20 @@ export const partnerInviteCreateV2_0Body = z.object({
|
|
|
3246
3263
|
email: z.string().email().optional(),
|
|
3247
3264
|
language: z.enum(["en", "bg", "mk", "el", "zh-CN", "zh-HK", "zh-TW", "pt", "sl", "hr", "it", "de", "hu", "fi", "is", "sv-SE", "da-DK", "nb-NO", "tr-TR", "es-ES", "ar", "ary", "he", "ta", "ms", "cy", "sr", "fr", "fr-MA", "ro", "lt", "uk", "ru", "nl", "ca-ES", "id", "ar-EG", "pl", "lo", "th", "sq-XK", "ga-IE", "bs", "ja", "cs", "lv", "et", "az", "ka", "af", "hi", "de-CH", "fr-CH", "it-CH", "en-GB"]).optional(),
|
|
3248
3265
|
accessPolicyId: z.number().int().optional(),
|
|
3249
|
-
corporateBillingPolicyId: z.number().int().optional()
|
|
3266
|
+
corporateBillingPolicyId: z.number().int().optional(),
|
|
3267
|
+
reimbursement: z.object({
|
|
3268
|
+
policyId: z.number().int().optional(),
|
|
3269
|
+
restrictions: z.object({
|
|
3270
|
+
rfids: z.object({
|
|
3271
|
+
type: z.enum(["none", "allow"]),
|
|
3272
|
+
rfidIds: z.array(z.number().int()).optional()
|
|
3273
|
+
}).optional(),
|
|
3274
|
+
vehicles: z.object({
|
|
3275
|
+
type: z.enum(["none", "allow"]),
|
|
3276
|
+
vehicleIds: z.array(z.number().int()).optional()
|
|
3277
|
+
}).optional()
|
|
3278
|
+
}).optional()
|
|
3279
|
+
}).optional()
|
|
3250
3280
|
});
|
|
3251
3281
|
// GET /public-api/resources/partner-invites/v2.0/{partnerInvite}
|
|
3252
3282
|
// DELETE /public-api/resources/partner-invites/v2.0/{partnerInvite}
|
|
@@ -3254,7 +3284,20 @@ export const partnerInviteCreateV2_0Body = z.object({
|
|
|
3254
3284
|
export const partnerInviteUpdateV2_0Body = z.object({
|
|
3255
3285
|
partnerId: z.number().int().optional(),
|
|
3256
3286
|
accessPolicyId: z.number().int().optional(),
|
|
3257
|
-
corporateBillingPolicyId: z.number().int().optional()
|
|
3287
|
+
corporateBillingPolicyId: z.number().int().optional(),
|
|
3288
|
+
reimbursement: z.object({
|
|
3289
|
+
policyId: z.number().int().optional(),
|
|
3290
|
+
restrictions: z.object({
|
|
3291
|
+
rfids: z.object({
|
|
3292
|
+
type: z.enum(["none", "allow"]),
|
|
3293
|
+
rfidIds: z.array(z.number().int()).optional()
|
|
3294
|
+
}).optional(),
|
|
3295
|
+
vehicles: z.object({
|
|
3296
|
+
type: z.enum(["none", "allow"]),
|
|
3297
|
+
vehicleIds: z.array(z.number().int()).optional()
|
|
3298
|
+
}).optional()
|
|
3299
|
+
}).optional()
|
|
3300
|
+
}).optional()
|
|
3258
3301
|
});
|
|
3259
3302
|
// GET /public-api/resources/partner-invoices/v1.0
|
|
3260
3303
|
// GET /public-api/resources/partner-invoices/v1.0/{partnerInvoice}
|
|
@@ -4410,6 +4453,34 @@ export const updatePcIdBody = z.object({
|
|
|
4410
4453
|
});
|
|
4411
4454
|
// GET /public-api/resources/receipts/v2.0
|
|
4412
4455
|
// GET /public-api/resources/receipts/v2.0/{receipt}
|
|
4456
|
+
// GET /public-api/resources/reimbursement-policies/v1.0
|
|
4457
|
+
// POST /public-api/resources/reimbursement-policies/v1.0
|
|
4458
|
+
export const reimbursementPolicyCreateBody = z.object({
|
|
4459
|
+
name: z.string().max(255),
|
|
4460
|
+
electricityRateSource: z.enum(["policy", "charge_point"]),
|
|
4461
|
+
validityStartsOn: z.string(),
|
|
4462
|
+
partnerId: z.number().int().optional(),
|
|
4463
|
+
partnerContractId: z.number().int().optional(),
|
|
4464
|
+
electricityRateId: z.number().int().optional(),
|
|
4465
|
+
validityEndsOn: z.string().optional(),
|
|
4466
|
+
operatorId: z.number().int().optional()
|
|
4467
|
+
});
|
|
4468
|
+
// GET /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}
|
|
4469
|
+
// DELETE /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}
|
|
4470
|
+
// PATCH /public-api/resources/reimbursement-policies/v1.0/{reimbursementPolicy}
|
|
4471
|
+
export const reimbursementPolicyUpdateBody = z.object({
|
|
4472
|
+
name: z.string().max(255).optional(),
|
|
4473
|
+
electricityRateSource: z.enum(["policy", "charge_point"]).optional(),
|
|
4474
|
+
validityStartsOn: z.string().optional(),
|
|
4475
|
+
partnerId: z.number().int().optional(),
|
|
4476
|
+
partnerContractId: z.number().int().optional(),
|
|
4477
|
+
electricityRateId: z.number().int().optional(),
|
|
4478
|
+
validityEndsOn: z.string().optional()
|
|
4479
|
+
});
|
|
4480
|
+
// GET /public-api/resources/reimbursement-records/v1.0
|
|
4481
|
+
// GET /public-api/resources/reimbursement-records/v1.0/{reimbursementRecord}
|
|
4482
|
+
// GET /public-api/resources/reimbursement-reports/v1.0
|
|
4483
|
+
// GET /public-api/resources/reimbursement-reports/v1.0/{reimbursementReport}
|
|
4413
4484
|
// GET /public-api/resources/reservations/v1.0
|
|
4414
4485
|
// GET /public-api/resources/reservations/v1.0/{reservation}
|
|
4415
4486
|
// GET /public-api/resources/rfid-tags/v1.0
|
|
@@ -4582,6 +4653,8 @@ export const roamingTariffUpdateBody = z.object({
|
|
|
4582
4653
|
// GET /public-api/resources/sessions/v1.0/{session}/energy-coupon-session-consumptions
|
|
4583
4654
|
// GET /public-api/resources/sessions/v1.0/{session}/timeline-snapshot
|
|
4584
4655
|
// GET /public-api/resources/settings/v1.0
|
|
4656
|
+
// GET /public-api/resources/sharing-invites/v1.0
|
|
4657
|
+
// GET /public-api/resources/sharing-invites/v1.0/{sharingInvite}
|
|
4585
4658
|
// GET /public-api/resources/sub-operators/v1.0
|
|
4586
4659
|
// GET /public-api/resources/sub-operators/v1.0/{subOperator}
|
|
4587
4660
|
// GET /public-api/resources/sub-operators/v2.0
|