@activepieces/piece-ampeco 0.2.5 → 0.2.7
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/package.json +8 -24
- package/src/i18n/de.json +2942 -0
- package/src/i18n/es.json +2942 -0
- package/src/i18n/fr.json +2942 -0
- package/src/i18n/ja.json +2942 -0
- package/src/i18n/nl.json +2942 -0
- package/src/i18n/pt.json +2942 -0
- package/src/i18n/translation.json +2942 -0
- package/src/i18n/zh.json +2942 -0
- package/src/index.js +136 -846
- package/README.md +0 -37
- package/src/index.d.ts +0 -9
- package/src/index.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-change-availability.d.ts +0 -11
- package/src/lib/actions/actions/charge-point/charge-point-change-availability.js +0 -54
- package/src/lib/actions/actions/charge-point/charge-point-change-availability.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-change-owner.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-change-owner.js +0 -43
- package/src/lib/actions/actions/charge-point/charge-point-change-owner.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-change-sharing-code.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-change-sharing-code.js +0 -43
- package/src/lib/actions/actions/charge-point/charge-point-change-sharing-code.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-clear-charging-profile.d.ts +0 -13
- package/src/lib/actions/actions/charge-point/charge-point-clear-charging-profile.js +0 -58
- package/src/lib/actions/actions/charge-point/charge-point-clear-charging-profile.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-delete-certificate.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-delete-certificate.js +0 -54
- package/src/lib/actions/actions/charge-point/charge-point-delete-certificate.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-evse-unlock.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-evse-unlock.js +0 -44
- package/src/lib/actions/actions/charge-point/charge-point-evse-unlock.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-get-diagnostics.d.ts +0 -12
- package/src/lib/actions/actions/charge-point/charge-point-get-diagnostics.js +0 -53
- package/src/lib/actions/actions/charge-point/charge-point-get-diagnostics.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-get-installed-certificate-ids.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-get-installed-certificate-ids.js +0 -52
- package/src/lib/actions/actions/charge-point/charge-point-get-installed-certificate-ids.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-get-security-log.d.ts +0 -15
- package/src/lib/actions/actions/charge-point/charge-point-get-security-log.js +0 -68
- package/src/lib/actions/actions/charge-point/charge-point-get-security-log.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-install-certificate.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-install-certificate.js +0 -52
- package/src/lib/actions/actions/charge-point/charge-point-install-certificate.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-move-evses-to-satellite.d.ts +0 -11
- package/src/lib/actions/actions/charge-point/charge-point-move-evses-to-satellite.js +0 -46
- package/src/lib/actions/actions/charge-point/charge-point-move-evses-to-satellite.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-reserve.d.ts +0 -12
- package/src/lib/actions/actions/charge-point/charge-point-reserve.js +0 -51
- package/src/lib/actions/actions/charge-point/charge-point-reserve.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-reset-security-profile.d.ts +0 -9
- package/src/lib/actions/actions/charge-point/charge-point-reset-security-profile.js +0 -38
- package/src/lib/actions/actions/charge-point/charge-point-reset-security-profile.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-reset.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-reset.js +0 -48
- package/src/lib/actions/actions/charge-point/charge-point-reset.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-send-data-transfer.d.ts +0 -12
- package/src/lib/actions/actions/charge-point/charge-point-send-data-transfer.js +0 -54
- package/src/lib/actions/actions/charge-point/charge-point-send-data-transfer.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-set-charging-profile.d.ts +0 -23
- package/src/lib/actions/actions/charge-point/charge-point-set-charging-profile.js +0 -137
- package/src/lib/actions/actions/charge-point/charge-point-set-charging-profile.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-set-configuration.d.ts +0 -14
- package/src/lib/actions/actions/charge-point/charge-point-set-configuration.js +0 -63
- package/src/lib/actions/actions/charge-point/charge-point-set-configuration.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-start-charging-session-without-evse.d.ts +0 -14
- package/src/lib/actions/actions/charge-point/charge-point-start-charging-session-without-evse.js +0 -66
- package/src/lib/actions/actions/charge-point/charge-point-start-charging-session-without-evse.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-start-charging-session.d.ts +0 -28
- package/src/lib/actions/actions/charge-point/charge-point-start-charging-session.js +0 -156
- package/src/lib/actions/actions/charge-point/charge-point-start-charging-session.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-stop-charging-session.d.ts +0 -11
- package/src/lib/actions/actions/charge-point/charge-point-stop-charging-session.js +0 -53
- package/src/lib/actions/actions/charge-point/charge-point-stop-charging-session.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-sync-configuration.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-sync-configuration.js +0 -43
- package/src/lib/actions/actions/charge-point/charge-point-sync-configuration.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-trigger-message-charge-point.d.ts +0 -10
- package/src/lib/actions/actions/charge-point/charge-point-trigger-message-charge-point.js +0 -60
- package/src/lib/actions/actions/charge-point/charge-point-trigger-message-charge-point.js.map +0 -1
- package/src/lib/actions/actions/charge-point/charge-point-update-firmware.d.ts +0 -18
- package/src/lib/actions/actions/charge-point/charge-point-update-firmware.js +0 -95
- package/src/lib/actions/actions/charge-point/charge-point-update-firmware.js.map +0 -1
- package/src/lib/actions/actions/circuit/circuit-attach-charge-point.d.ts +0 -11
- package/src/lib/actions/actions/circuit/circuit-attach-charge-point.js +0 -46
- package/src/lib/actions/actions/circuit/circuit-attach-charge-point.js.map +0 -1
- package/src/lib/actions/actions/circuit/circuit-detach-charge-point.d.ts +0 -10
- package/src/lib/actions/actions/circuit/circuit-detach-charge-point.js +0 -42
- package/src/lib/actions/actions/circuit/circuit-detach-charge-point.js.map +0 -1
- package/src/lib/actions/actions/circuit/circuit-set-charge-point-evse-priority.d.ts +0 -12
- package/src/lib/actions/actions/circuit/circuit-set-charge-point-evse-priority.js +0 -50
- package/src/lib/actions/actions/circuit/circuit-set-charge-point-evse-priority.js.map +0 -1
- package/src/lib/actions/actions/circuit/circuit-set-charge-point-priority.d.ts +0 -11
- package/src/lib/actions/actions/circuit/circuit-set-charge-point-priority.js +0 -46
- package/src/lib/actions/actions/circuit/circuit-set-charge-point-priority.js.map +0 -1
- package/src/lib/actions/actions/circuit/circuit-set-circuit-soc-priority.d.ts +0 -13
- package/src/lib/actions/actions/circuit/circuit-set-circuit-soc-priority.js +0 -56
- package/src/lib/actions/actions/circuit/circuit-set-circuit-soc-priority.js.map +0 -1
- package/src/lib/actions/actions/circuit/circuit-set-session-priority.d.ts +0 -11
- package/src/lib/actions/actions/circuit/circuit-set-session-priority.js +0 -46
- package/src/lib/actions/actions/circuit/circuit-set-session-priority.js.map +0 -1
- package/src/lib/actions/actions/configuration-template/configuration-template-apply-to-charge-points.d.ts +0 -11
- package/src/lib/actions/actions/configuration-template/configuration-template-apply-to-charge-points.js +0 -54
- package/src/lib/actions/actions/configuration-template/configuration-template-apply-to-charge-points.js.map +0 -1
- package/src/lib/actions/actions/configuration-template/configuration-template-bulk-create-variables.d.ts +0 -9
- package/src/lib/actions/actions/configuration-template/configuration-template-bulk-create-variables.js +0 -38
- package/src/lib/actions/actions/configuration-template/configuration-template-bulk-create-variables.js.map +0 -1
- package/src/lib/actions/actions/electricity-meter/electricity-meter-report-consumption.d.ts +0 -13
- package/src/lib/actions/actions/electricity-meter/electricity-meter-report-consumption.js +0 -58
- package/src/lib/actions/actions/electricity-meter/electricity-meter-report-consumption.js.map +0 -1
- package/src/lib/actions/actions/evse/evse-start-charging-with-evse-id.d.ts +0 -27
- package/src/lib/actions/actions/evse/evse-start-charging-with-evse-id.js +0 -170
- package/src/lib/actions/actions/evse/evse-start-charging-with-evse-id.js.map +0 -1
- package/src/lib/actions/actions/evse/evse-trigger-message.d.ts +0 -10
- package/src/lib/actions/actions/evse/evse-trigger-message.js +0 -59
- package/src/lib/actions/actions/evse/evse-trigger-message.js.map +0 -1
- package/src/lib/actions/actions/flexibility-asset/change-flexibility-asset-status.d.ts +0 -11
- package/src/lib/actions/actions/flexibility-asset/change-flexibility-asset-status.js +0 -53
- package/src/lib/actions/actions/flexibility-asset/change-flexibility-asset-status.js.map +0 -1
- package/src/lib/actions/actions/flexibility-asset/flexibility-asset-create-activation-request.d.ts +0 -10
- package/src/lib/actions/actions/flexibility-asset/flexibility-asset-create-activation-request.js +0 -42
- package/src/lib/actions/actions/flexibility-asset/flexibility-asset-create-activation-request.js.map +0 -1
- package/src/lib/actions/actions/id-tag/certificate-reissue-an-emaid.d.ts +0 -9
- package/src/lib/actions/actions/id-tag/certificate-reissue-an-emaid.js +0 -38
- package/src/lib/actions/actions/id-tag/certificate-reissue-an-emaid.js.map +0 -1
- package/src/lib/actions/actions/locations/location-check-booking-availability.d.ts +0 -11
- package/src/lib/actions/actions/locations/location-check-booking-availability.js +0 -48
- package/src/lib/actions/actions/locations/location-check-booking-availability.js.map +0 -1
- package/src/lib/actions/actions/notifications/notifications-resend-failed.d.ts +0 -12
- package/src/lib/actions/actions/notifications/notifications-resend-failed.js +0 -98
- package/src/lib/actions/actions/notifications/notifications-resend-failed.js.map +0 -1
- package/src/lib/actions/actions/parking-spaces/parking-space-update-occupancy-status.d.ts +0 -10
- package/src/lib/actions/actions/parking-spaces/parking-space-update-occupancy-status.js +0 -48
- package/src/lib/actions/actions/parking-spaces/parking-space-update-occupancy-status.js.map +0 -1
- package/src/lib/actions/actions/provisioning-certificate/certificate-issue-an-emaid.d.ts +0 -10
- package/src/lib/actions/actions/provisioning-certificate/certificate-issue-an-emaid.js +0 -43
- package/src/lib/actions/actions/provisioning-certificate/certificate-issue-an-emaid.js.map +0 -1
- package/src/lib/actions/actions/reservation/reservation-cancel.d.ts +0 -11
- package/src/lib/actions/actions/reservation/reservation-cancel.js +0 -54
- package/src/lib/actions/actions/reservation/reservation-cancel.js.map +0 -1
- package/src/lib/actions/actions/roaming-operator/update-custom-tariff-filter-tariff.d.ts +0 -30
- package/src/lib/actions/actions/roaming-operator/update-custom-tariff-filter-tariff.js +0 -353
- package/src/lib/actions/actions/roaming-operator/update-custom-tariff-filter-tariff.js.map +0 -1
- package/src/lib/actions/actions/session/session-assign-to-user.d.ts +0 -10
- package/src/lib/actions/actions/session/session-assign-to-user.js +0 -42
- package/src/lib/actions/actions/session/session-assign-to-user.js.map +0 -1
- package/src/lib/actions/actions/session/session-retry-payment.d.ts +0 -10
- package/src/lib/actions/actions/session/session-retry-payment.js +0 -42
- package/src/lib/actions/actions/session/session-retry-payment.js.map +0 -1
- package/src/lib/actions/actions/subscription-plans/subscription-plan-replace.d.ts +0 -12
- package/src/lib/actions/actions/subscription-plans/subscription-plan-replace.js +0 -53
- package/src/lib/actions/actions/subscription-plans/subscription-plan-replace.js.map +0 -1
- package/src/lib/actions/actions/tariffs/tariff-set-display-information.d.ts +0 -13
- package/src/lib/actions/actions/tariffs/tariff-set-display-information.js +0 -58
- package/src/lib/actions/actions/tariffs/tariff-set-display-information.js.map +0 -1
- package/src/lib/actions/actions/transactions/transaction-issue-invoice.d.ts +0 -22
- package/src/lib/actions/actions/transactions/transaction-issue-invoice.js +0 -351
- package/src/lib/actions/actions/transactions/transaction-issue-invoice.js.map +0 -1
- package/src/lib/actions/actions/transactions/transaction-resend-invoice.d.ts +0 -9
- package/src/lib/actions/actions/transactions/transaction-resend-invoice.js +0 -38
- package/src/lib/actions/actions/transactions/transaction-resend-invoice.js.map +0 -1
- package/src/lib/actions/actions/transactions/transaction-update-payment-reference.d.ts +0 -10
- package/src/lib/actions/actions/transactions/transaction-update-payment-reference.js +0 -43
- package/src/lib/actions/actions/transactions/transaction-update-payment-reference.js.map +0 -1
- package/src/lib/actions/actions/users/user-activate-subscription.d.ts +0 -13
- package/src/lib/actions/actions/users/user-activate-subscription.js +0 -63
- package/src/lib/actions/actions/users/user-activate-subscription.js.map +0 -1
- package/src/lib/actions/actions/users/user-add-balance.d.ts +0 -12
- package/src/lib/actions/actions/users/user-add-balance.js +0 -50
- package/src/lib/actions/actions/users/user-add-balance.js.map +0 -1
- package/src/lib/actions/actions/users/user-apply-custom-fee.d.ts +0 -12
- package/src/lib/actions/actions/users/user-apply-custom-fee.js +0 -52
- package/src/lib/actions/actions/users/user-apply-custom-fee.js.map +0 -1
- package/src/lib/actions/actions/users/user-cancel-subscription.d.ts +0 -10
- package/src/lib/actions/actions/users/user-cancel-subscription.js +0 -43
- package/src/lib/actions/actions/users/user-cancel-subscription.js.map +0 -1
- package/src/lib/actions/actions/users/user-change-status.d.ts +0 -11
- package/src/lib/actions/actions/users/user-change-status.js +0 -53
- package/src/lib/actions/actions/users/user-change-status.js.map +0 -1
- package/src/lib/actions/actions/users/user-clear-subscription-amount-due.d.ts +0 -9
- package/src/lib/actions/actions/users/user-clear-subscription-amount-due.js +0 -38
- package/src/lib/actions/actions/users/user-clear-subscription-amount-due.js.map +0 -1
- package/src/lib/actions/actions/users/user-export-all-private-data.d.ts +0 -9
- package/src/lib/actions/actions/users/user-export-all-private-data.js +0 -38
- package/src/lib/actions/actions/users/user-export-all-private-data.js.map +0 -1
- package/src/lib/actions/actions/users/user-redeem-voucher.d.ts +0 -10
- package/src/lib/actions/actions/users/user-redeem-voucher.js +0 -43
- package/src/lib/actions/actions/users/user-redeem-voucher.js.map +0 -1
- package/src/lib/actions/notifications/notifications/notification-read.d.ts +0 -9
- package/src/lib/actions/notifications/notifications/notification-read.js +0 -38
- package/src/lib/actions/notifications/notifications/notification-read.js.map +0 -1
- package/src/lib/actions/notifications/notifications/notifications-create.d.ts +0 -19
- package/src/lib/actions/notifications/notifications/notifications-create.js +0 -151
- package/src/lib/actions/notifications/notifications/notifications-create.js.map +0 -1
- package/src/lib/actions/notifications/notifications/notifications-listing.d.ts +0 -10
- package/src/lib/actions/notifications/notifications/notifications-listing.js +0 -58
- package/src/lib/actions/notifications/notifications/notifications-listing.js.map +0 -1
- package/src/lib/actions/notifications/notifications/notifications-subscribe.d.ts +0 -18
- package/src/lib/actions/notifications/notifications/notifications-subscribe.js +0 -147
- package/src/lib/actions/notifications/notifications/notifications-subscribe.js.map +0 -1
- package/src/lib/actions/notifications/notifications/notifications-unsubscribe.d.ts +0 -9
- package/src/lib/actions/notifications/notifications/notifications-unsubscribe.js +0 -38
- package/src/lib/actions/notifications/notifications/notifications-unsubscribe.js.map +0 -1
- package/src/lib/actions/resources/authorizations/authorization-read.d.ts +0 -9
- package/src/lib/actions/resources/authorizations/authorization-read.js +0 -38
- package/src/lib/actions/resources/authorizations/authorization-read.js.map +0 -1
- package/src/lib/actions/resources/authorizations/authorizations-listing.d.ts +0 -17
- package/src/lib/actions/resources/authorizations/authorizations-listing.js +0 -93
- package/src/lib/actions/resources/authorizations/authorizations-listing.js.map +0 -1
- package/src/lib/actions/resources/booking-requests/booking-request-create.d.ts +0 -13
- package/src/lib/actions/resources/booking-requests/booking-request-create.js +0 -209
- package/src/lib/actions/resources/booking-requests/booking-request-create.js.map +0 -1
- package/src/lib/actions/resources/booking-requests/booking-request-read.d.ts +0 -9
- package/src/lib/actions/resources/booking-requests/booking-request-read.js +0 -38
- package/src/lib/actions/resources/booking-requests/booking-request-read.js.map +0 -1
- package/src/lib/actions/resources/booking-requests/booking-requests-listing.d.ts +0 -19
- package/src/lib/actions/resources/booking-requests/booking-requests-listing.js +0 -110
- package/src/lib/actions/resources/booking-requests/booking-requests-listing.js.map +0 -1
- package/src/lib/actions/resources/bookings/booking-read.d.ts +0 -10
- package/src/lib/actions/resources/bookings/booking-read.js +0 -48
- package/src/lib/actions/resources/bookings/booking-read.js.map +0 -1
- package/src/lib/actions/resources/bookings/bookings-listing.d.ts +0 -17
- package/src/lib/actions/resources/bookings/bookings-listing.js +0 -107
- package/src/lib/actions/resources/bookings/bookings-listing.js.map +0 -1
- package/src/lib/actions/resources/cdrs/cdr-read.d.ts +0 -10
- package/src/lib/actions/resources/cdrs/cdr-read.js +0 -47
- package/src/lib/actions/resources/cdrs/cdr-read.js.map +0 -1
- package/src/lib/actions/resources/cdrs/cdrs-listing.d.ts +0 -25
- package/src/lib/actions/resources/cdrs/cdrs-listing.js +0 -144
- package/src/lib/actions/resources/cdrs/cdrs-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-create.d.ts +0 -12
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-create.js +0 -51
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-create.js.map +0 -1
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-delete.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-delete.js +0 -38
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-read.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-read.js +0 -38
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-read.js.map +0 -1
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-update.d.ts +0 -12
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-update.js +0 -52
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-period-update.js.map +0 -1
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-periods-listing.d.ts +0 -20
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-periods-listing.js +0 -116
- package/src/lib/actions/resources/charge-point-downtime-periods/charge-point-downtime-periods-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-point-models/charge-point-model-create.d.ts +0 -12
- package/src/lib/actions/resources/charge-point-models/charge-point-model-create.js +0 -57
- package/src/lib/actions/resources/charge-point-models/charge-point-model-create.js.map +0 -1
- package/src/lib/actions/resources/charge-point-models/charge-point-model-delete.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-models/charge-point-model-delete.js +0 -38
- package/src/lib/actions/resources/charge-point-models/charge-point-model-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-point-models/charge-point-model-read.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-models/charge-point-model-read.js +0 -38
- package/src/lib/actions/resources/charge-point-models/charge-point-model-read.js.map +0 -1
- package/src/lib/actions/resources/charge-point-models/charge-point-model-update.d.ts +0 -13
- package/src/lib/actions/resources/charge-point-models/charge-point-model-update.js +0 -56
- package/src/lib/actions/resources/charge-point-models/charge-point-model-update.js.map +0 -1
- package/src/lib/actions/resources/charge-point-models/charge-point-models-listing.d.ts +0 -11
- package/src/lib/actions/resources/charge-point-models/charge-point-models-listing.js +0 -66
- package/src/lib/actions/resources/charge-point-models/charge-point-models-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-create.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-create.js +0 -38
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-create.js.map +0 -1
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-delete.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-delete.js +0 -38
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-read.d.ts +0 -9
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-read.js +0 -38
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-read.js.map +0 -1
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-update.d.ts +0 -10
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-update.js +0 -42
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendor-update.js.map +0 -1
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendors-listing.d.ts +0 -10
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendors-listing.js +0 -58
- package/src/lib/actions/resources/charge-point-vendors/charge-point-vendors-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/chareg-point-share-delete.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/chareg-point-share-delete.js +0 -42
- package/src/lib/actions/resources/charge-points/chareg-point-share-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-available-personal-smart-charging-modes-listing.d.ts +0 -9
- package/src/lib/actions/resources/charge-points/charge-point-available-personal-smart-charging-modes-listing.js +0 -38
- package/src/lib/actions/resources/charge-points/charge-point-available-personal-smart-charging-modes-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-configuration-read.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-configuration-read.js +0 -42
- package/src/lib/actions/resources/charge-points/charge-point-configuration-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-configuration-update.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-configuration-update.js +0 -47
- package/src/lib/actions/resources/charge-points/charge-point-configuration-update.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-configurations-listing.d.ts +0 -13
- package/src/lib/actions/resources/charge-points/charge-point-configurations-listing.js +0 -58
- package/src/lib/actions/resources/charge-points/charge-point-configurations-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-create.d.ts +0 -47
- package/src/lib/actions/resources/charge-points/charge-point-create.js +0 -396
- package/src/lib/actions/resources/charge-points/charge-point-create.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-delete.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-delete.js +0 -52
- package/src/lib/actions/resources/charge-points/charge-point-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-create.d.ts +0 -13
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-create.js +0 -97
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-create.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-delete.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-delete.js +0 -46
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-read.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-read.js +0 -46
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-update.d.ts +0 -14
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-update.js +0 -101
- package/src/lib/actions/resources/charge-points/charge-point-evse-connector-update.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-connectors-listing.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-evse-connectors-listing.js +0 -42
- package/src/lib/actions/resources/charge-points/charge-point-evse-connectors-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-create.d.ts +0 -25
- package/src/lib/actions/resources/charge-points/charge-point-evse-create.js +0 -183
- package/src/lib/actions/resources/charge-points/charge-point-evse-create.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-delete.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-evse-delete.js +0 -52
- package/src/lib/actions/resources/charge-points/charge-point-evse-delete.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-read.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-evse-read.js +0 -52
- package/src/lib/actions/resources/charge-points/charge-point-evse-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evse-update.d.ts +0 -27
- package/src/lib/actions/resources/charge-points/charge-point-evse-update.js +0 -196
- package/src/lib/actions/resources/charge-points/charge-point-evse-update.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-evses-listing.d.ts +0 -12
- package/src/lib/actions/resources/charge-points/charge-point-evses-listing.js +0 -72
- package/src/lib/actions/resources/charge-points/charge-point-evses-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-personal-smart-charging-preferences-read.d.ts +0 -9
- package/src/lib/actions/resources/charge-points/charge-point-personal-smart-charging-preferences-read.js +0 -38
- package/src/lib/actions/resources/charge-points/charge-point-personal-smart-charging-preferences-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-read.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-read.js +0 -52
- package/src/lib/actions/resources/charge-points/charge-point-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-share-create.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-share-create.js +0 -42
- package/src/lib/actions/resources/charge-points/charge-point-share-create.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-share-read.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-share-read.js +0 -42
- package/src/lib/actions/resources/charge-points/charge-point-share-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-shared-partners-listing.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-shared-partners-listing.js +0 -63
- package/src/lib/actions/resources/charge-points/charge-point-shared-partners-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-shared-partners-sync.d.ts +0 -10
- package/src/lib/actions/resources/charge-points/charge-point-shared-partners-sync.js +0 -42
- package/src/lib/actions/resources/charge-points/charge-point-shared-partners-sync.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-shares-listing.d.ts +0 -11
- package/src/lib/actions/resources/charge-points/charge-point-shares-listing.js +0 -62
- package/src/lib/actions/resources/charge-points/charge-point-shares-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-smart-charging-update.d.ts +0 -14
- package/src/lib/actions/resources/charge-points/charge-point-smart-charging-update.js +0 -440
- package/src/lib/actions/resources/charge-points/charge-point-smart-charging-update.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-status-read.d.ts +0 -9
- package/src/lib/actions/resources/charge-points/charge-point-status-read.js +0 -38
- package/src/lib/actions/resources/charge-points/charge-point-status-read.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-point-update.d.ts +0 -48
- package/src/lib/actions/resources/charge-points/charge-point-update.js +0 -346
- package/src/lib/actions/resources/charge-points/charge-point-update.js.map +0 -1
- package/src/lib/actions/resources/charge-points/charge-points-listing.d.ts +0 -33
- package/src/lib/actions/resources/charge-points/charge-points-listing.js +0 -197
- package/src/lib/actions/resources/charge-points/charge-points-listing.js.map +0 -1
- package/src/lib/actions/resources/charge-points/get-charge-point-latest-hardware-status-log.d.ts +0 -9
- package/src/lib/actions/resources/charge-points/get-charge-point-latest-hardware-status-log.js +0 -38
- package/src/lib/actions/resources/charge-points/get-charge-point-latest-hardware-status-log.js.map +0 -1
- package/src/lib/actions/resources/charge-points/get-charge-point-latest-network-status-log.d.ts +0 -9
- package/src/lib/actions/resources/charge-points/get-charge-point-latest-network-status-log.js +0 -38
- package/src/lib/actions/resources/charge-points/get-charge-point-latest-network-status-log.js.map +0 -1
- package/src/lib/actions/resources/charge-points/list-charge-point-hardware-status-logs.d.ts +0 -13
- package/src/lib/actions/resources/charge-points/list-charge-point-hardware-status-logs.js +0 -76
- package/src/lib/actions/resources/charge-points/list-charge-point-hardware-status-logs.js.map +0 -1
- package/src/lib/actions/resources/charge-points/list-charge-point-network-status-logs.d.ts +0 -13
- package/src/lib/actions/resources/charge-points/list-charge-point-network-status-logs.js +0 -72
- package/src/lib/actions/resources/charge-points/list-charge-point-network-status-logs.js.map +0 -1
- package/src/lib/actions/resources/charge-points/personal-smart-charging-preferences-update.d.ts +0 -14
- package/src/lib/actions/resources/charge-points/personal-smart-charging-preferences-update.js +0 -535
- package/src/lib/actions/resources/charge-points/personal-smart-charging-preferences-update.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-charge-point-priorities-listing.d.ts +0 -11
- package/src/lib/actions/resources/circuits/circuit-charge-point-priorities-listing.js +0 -62
- package/src/lib/actions/resources/circuits/circuit-charge-point-priorities-listing.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-consumption.d.ts +0 -9
- package/src/lib/actions/resources/circuits/circuit-consumption.js +0 -39
- package/src/lib/actions/resources/circuits/circuit-consumption.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-create.d.ts +0 -26
- package/src/lib/actions/resources/circuits/circuit-create.js +0 -194
- package/src/lib/actions/resources/circuits/circuit-create.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-delete.d.ts +0 -9
- package/src/lib/actions/resources/circuits/circuit-delete.js +0 -39
- package/src/lib/actions/resources/circuits/circuit-delete.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-read.d.ts +0 -10
- package/src/lib/actions/resources/circuits/circuit-read.js +0 -51
- package/src/lib/actions/resources/circuits/circuit-read.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-soc-priorities-listing.d.ts +0 -9
- package/src/lib/actions/resources/circuits/circuit-soc-priorities-listing.js +0 -38
- package/src/lib/actions/resources/circuits/circuit-soc-priorities-listing.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-unmanaged-load-read.d.ts +0 -9
- package/src/lib/actions/resources/circuits/circuit-unmanaged-load-read.js +0 -38
- package/src/lib/actions/resources/circuits/circuit-unmanaged-load-read.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-update.d.ts +0 -27
- package/src/lib/actions/resources/circuits/circuit-update.js +0 -196
- package/src/lib/actions/resources/circuits/circuit-update.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-user-priorities-listing.d.ts +0 -11
- package/src/lib/actions/resources/circuits/circuit-user-priorities-listing.js +0 -62
- package/src/lib/actions/resources/circuits/circuit-user-priorities-listing.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-user-priority-create.d.ts +0 -12
- package/src/lib/actions/resources/circuits/circuit-user-priority-create.js +0 -58
- package/src/lib/actions/resources/circuits/circuit-user-priority-create.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-user-priority-delete.d.ts +0 -10
- package/src/lib/actions/resources/circuits/circuit-user-priority-delete.js +0 -42
- package/src/lib/actions/resources/circuits/circuit-user-priority-delete.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-user-priority-read.d.ts +0 -10
- package/src/lib/actions/resources/circuits/circuit-user-priority-read.js +0 -42
- package/src/lib/actions/resources/circuits/circuit-user-priority-read.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuit-user-priority-update.d.ts +0 -13
- package/src/lib/actions/resources/circuits/circuit-user-priority-update.js +0 -62
- package/src/lib/actions/resources/circuits/circuit-user-priority-update.js.map +0 -1
- package/src/lib/actions/resources/circuits/circuits-listing.d.ts +0 -11
- package/src/lib/actions/resources/circuits/circuits-listing.js +0 -71
- package/src/lib/actions/resources/circuits/circuits-listing.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-create.d.ts +0 -14
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-create.js +0 -129
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-create.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-delete.d.ts +0 -10
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-delete.js +0 -42
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-delete.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-listing.d.ts +0 -11
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-listing.js +0 -62
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-listing.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-update.d.ts +0 -15
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-update.js +0 -133
- package/src/lib/actions/resources/configuration-templates/configuration-template-variable-update.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/create-configuration-template.d.ts +0 -10
- package/src/lib/actions/resources/configuration-templates/create-configuration-template.js +0 -48
- package/src/lib/actions/resources/configuration-templates/create-configuration-template.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/delete-configuration-template.d.ts +0 -9
- package/src/lib/actions/resources/configuration-templates/delete-configuration-template.js +0 -39
- package/src/lib/actions/resources/configuration-templates/delete-configuration-template.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/get-configuration-template.d.ts +0 -9
- package/src/lib/actions/resources/configuration-templates/get-configuration-template.js +0 -39
- package/src/lib/actions/resources/configuration-templates/get-configuration-template.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/list-configuration-templates.d.ts +0 -11
- package/src/lib/actions/resources/configuration-templates/list-configuration-templates.js +0 -69
- package/src/lib/actions/resources/configuration-templates/list-configuration-templates.js.map +0 -1
- package/src/lib/actions/resources/configuration-templates/update-configuration-template.d.ts +0 -10
- package/src/lib/actions/resources/configuration-templates/update-configuration-template.js +0 -44
- package/src/lib/actions/resources/configuration-templates/update-configuration-template.js.map +0 -1
- package/src/lib/actions/resources/contact-details/contact-details-delete.d.ts +0 -7
- package/src/lib/actions/resources/contact-details/contact-details-delete.js +0 -33
- package/src/lib/actions/resources/contact-details/contact-details-delete.js.map +0 -1
- package/src/lib/actions/resources/contact-details/contact-details-read.d.ts +0 -7
- package/src/lib/actions/resources/contact-details/contact-details-read.js +0 -33
- package/src/lib/actions/resources/contact-details/contact-details-read.js.map +0 -1
- package/src/lib/actions/resources/contact-details/contact-details-update.d.ts +0 -10
- package/src/lib/actions/resources/contact-details/contact-details-update.js +0 -44
- package/src/lib/actions/resources/contact-details/contact-details-update.js.map +0 -1
- package/src/lib/actions/resources/currencies/currencies-listing.d.ts +0 -7
- package/src/lib/actions/resources/currencies/currencies-listing.js +0 -33
- package/src/lib/actions/resources/currencies/currencies-listing.js.map +0 -1
- package/src/lib/actions/resources/currencies/currency-create.d.ts +0 -15
- package/src/lib/actions/resources/currencies/currency-create.js +0 -258
- package/src/lib/actions/resources/currencies/currency-create.js.map +0 -1
- package/src/lib/actions/resources/currencies/currency-read.d.ts +0 -9
- package/src/lib/actions/resources/currencies/currency-read.js +0 -39
- package/src/lib/actions/resources/currencies/currency-read.js.map +0 -1
- package/src/lib/actions/resources/currencies/currency-update.d.ts +0 -16
- package/src/lib/actions/resources/currencies/currency-update.js +0 -263
- package/src/lib/actions/resources/currencies/currency-update.js.map +0 -1
- package/src/lib/actions/resources/currency-rates/create-currency-rate.d.ts +0 -11
- package/src/lib/actions/resources/currency-rates/create-currency-rate.js +0 -49
- package/src/lib/actions/resources/currency-rates/create-currency-rate.js.map +0 -1
- package/src/lib/actions/resources/currency-rates/delete-currency-rate.d.ts +0 -9
- package/src/lib/actions/resources/currency-rates/delete-currency-rate.js +0 -38
- package/src/lib/actions/resources/currency-rates/delete-currency-rate.js.map +0 -1
- package/src/lib/actions/resources/currency-rates/get-currency-rate.d.ts +0 -9
- package/src/lib/actions/resources/currency-rates/get-currency-rate.js +0 -39
- package/src/lib/actions/resources/currency-rates/get-currency-rate.js.map +0 -1
- package/src/lib/actions/resources/currency-rates/list-currency-rates.d.ts +0 -14
- package/src/lib/actions/resources/currency-rates/list-currency-rates.js +0 -78
- package/src/lib/actions/resources/currency-rates/list-currency-rates.js.map +0 -1
- package/src/lib/actions/resources/currency-rates/update-currency-rate.d.ts +0 -10
- package/src/lib/actions/resources/currency-rates/update-currency-rate.js +0 -44
- package/src/lib/actions/resources/currency-rates/update-currency-rate.js.map +0 -1
- package/src/lib/actions/resources/custom-fees/custom-fee-read.d.ts +0 -9
- package/src/lib/actions/resources/custom-fees/custom-fee-read.js +0 -39
- package/src/lib/actions/resources/custom-fees/custom-fee-read.js.map +0 -1
- package/src/lib/actions/resources/custom-fees/custom-fees-listing.d.ts +0 -12
- package/src/lib/actions/resources/custom-fees/custom-fees-listing.js +0 -68
- package/src/lib/actions/resources/custom-fees/custom-fees-listing.js.map +0 -1
- package/src/lib/actions/resources/downtime-period-notices/delete-downtime-period-notice.d.ts +0 -9
- package/src/lib/actions/resources/downtime-period-notices/delete-downtime-period-notice.js +0 -38
- package/src/lib/actions/resources/downtime-period-notices/delete-downtime-period-notice.js.map +0 -1
- package/src/lib/actions/resources/downtime-period-notices/get-downtime-period-notice.d.ts +0 -9
- package/src/lib/actions/resources/downtime-period-notices/get-downtime-period-notice.js +0 -39
- package/src/lib/actions/resources/downtime-period-notices/get-downtime-period-notice.js.map +0 -1
- package/src/lib/actions/resources/downtime-period-notices/get-downtime-period-notices.d.ts +0 -11
- package/src/lib/actions/resources/downtime-period-notices/get-downtime-period-notices.js +0 -69
- package/src/lib/actions/resources/downtime-period-notices/get-downtime-period-notices.js.map +0 -1
- package/src/lib/actions/resources/downtime-period-notices/patch-downtime-period-notice.d.ts +0 -11
- package/src/lib/actions/resources/downtime-period-notices/patch-downtime-period-notice.js +0 -55
- package/src/lib/actions/resources/downtime-period-notices/patch-downtime-period-notice.js.map +0 -1
- package/src/lib/actions/resources/downtime-period-notices/post-downtime-period-notice.d.ts +0 -11
- package/src/lib/actions/resources/downtime-period-notices/post-downtime-period-notice.js +0 -55
- package/src/lib/actions/resources/downtime-period-notices/post-downtime-period-notice.js.map +0 -1
- package/src/lib/actions/resources/electricity-meters/electricity-meter-create.d.ts +0 -10
- package/src/lib/actions/resources/electricity-meters/electricity-meter-create.js +0 -42
- package/src/lib/actions/resources/electricity-meters/electricity-meter-create.js.map +0 -1
- package/src/lib/actions/resources/electricity-meters/electricity-meter-delete.d.ts +0 -9
- package/src/lib/actions/resources/electricity-meters/electricity-meter-delete.js +0 -38
- package/src/lib/actions/resources/electricity-meters/electricity-meter-delete.js.map +0 -1
- package/src/lib/actions/resources/electricity-meters/electricity-meter-read.d.ts +0 -9
- package/src/lib/actions/resources/electricity-meters/electricity-meter-read.js +0 -38
- package/src/lib/actions/resources/electricity-meters/electricity-meter-read.js.map +0 -1
- package/src/lib/actions/resources/electricity-meters/electricity-meter-update.d.ts +0 -11
- package/src/lib/actions/resources/electricity-meters/electricity-meter-update.js +0 -46
- package/src/lib/actions/resources/electricity-meters/electricity-meter-update.js.map +0 -1
- package/src/lib/actions/resources/electricity-meters/electricity-meters-lising.d.ts +0 -10
- package/src/lib/actions/resources/electricity-meters/electricity-meters-lising.js +0 -58
- package/src/lib/actions/resources/electricity-meters/electricity-meters-lising.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-create.d.ts +0 -12
- package/src/lib/actions/resources/electricity-rates/electricity-rate-create.js +0 -54
- package/src/lib/actions/resources/electricity-rates/electricity-rate-create.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-delete.d.ts +0 -9
- package/src/lib/actions/resources/electricity-rates/electricity-rate-delete.js +0 -39
- package/src/lib/actions/resources/electricity-rates/electricity-rate-delete.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-energy-mix-read.d.ts +0 -9
- package/src/lib/actions/resources/electricity-rates/electricity-rate-energy-mix-read.js +0 -39
- package/src/lib/actions/resources/electricity-rates/electricity-rate-energy-mix-read.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-energy-mix-update.d.ts +0 -17
- package/src/lib/actions/resources/electricity-rates/electricity-rate-energy-mix-update.js +0 -79
- package/src/lib/actions/resources/electricity-rates/electricity-rate-energy-mix-update.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-create-or-update.d.ts +0 -11
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-create-or-update.js +0 -66
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-create-or-update.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-delete.d.ts +0 -10
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-delete.js +0 -44
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-delete.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-listing.d.ts +0 -9
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-listing.js +0 -39
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-listing.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-read.d.ts +0 -10
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-read.js +0 -44
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-read.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-listing.d.ts +0 -9
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-listing.js +0 -39
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-listing.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-createa-or-update.d.ts +0 -11
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-createa-or-update.js +0 -78
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-createa-or-update.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-delete.d.ts +0 -10
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-delete.js +0 -56
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-delete.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-listing.d.ts +0 -9
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-listing.js +0 -39
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-listing.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-read.d.ts +0 -10
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-read.js +0 -56
- package/src/lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-read.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-read.d.ts +0 -9
- package/src/lib/actions/resources/electricity-rates/electricity-rate-read.js +0 -39
- package/src/lib/actions/resources/electricity-rates/electricity-rate-read.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rate-update.d.ts +0 -13
- package/src/lib/actions/resources/electricity-rates/electricity-rate-update.js +0 -59
- package/src/lib/actions/resources/electricity-rates/electricity-rate-update.js.map +0 -1
- package/src/lib/actions/resources/electricity-rates/electricity-rates-listing.d.ts +0 -12
- package/src/lib/actions/resources/electricity-rates/electricity-rates-listing.js +0 -77
- package/src/lib/actions/resources/electricity-rates/electricity-rates-listing.js.map +0 -1
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-create.d.ts +0 -12
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-create.js +0 -54
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-create.js.map +0 -1
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-delete.d.ts +0 -9
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-delete.js +0 -39
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-delete.js.map +0 -1
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-read.d.ts +0 -9
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-read.js +0 -39
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-read.js.map +0 -1
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-update.d.ts +0 -12
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-update.js +0 -54
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-period-update.js.map +0 -1
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-periods-listing.d.ts +0 -21
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-periods-listing.js +0 -125
- package/src/lib/actions/resources/evse-downtime-periods/evse-downtime-periods-listing.js.map +0 -1
- package/src/lib/actions/resources/evses/evse-create.d.ts +0 -25
- package/src/lib/actions/resources/evses/evse-create.js +0 -184
- package/src/lib/actions/resources/evses/evse-create.js.map +0 -1
- package/src/lib/actions/resources/evses/evse-delete.d.ts +0 -10
- package/src/lib/actions/resources/evses/evse-delete.js +0 -51
- package/src/lib/actions/resources/evses/evse-delete.js.map +0 -1
- package/src/lib/actions/resources/evses/evse-read.d.ts +0 -10
- package/src/lib/actions/resources/evses/evse-read.js +0 -51
- package/src/lib/actions/resources/evses/evse-read.js.map +0 -1
- package/src/lib/actions/resources/evses/evse-update.d.ts +0 -26
- package/src/lib/actions/resources/evses/evse-update.js +0 -196
- package/src/lib/actions/resources/evses/evse-update.js.map +0 -1
- package/src/lib/actions/resources/evses/evses-listing.d.ts +0 -17
- package/src/lib/actions/resources/evses/evses-listing.js +0 -106
- package/src/lib/actions/resources/evses/evses-listing.js.map +0 -1
- package/src/lib/actions/resources/evses/get-evse-latest-hardware-status-log.d.ts +0 -9
- package/src/lib/actions/resources/evses/get-evse-latest-hardware-status-log.js +0 -39
- package/src/lib/actions/resources/evses/get-evse-latest-hardware-status-log.js.map +0 -1
- package/src/lib/actions/resources/evses/list-evse-hardware-status-logs.d.ts +0 -13
- package/src/lib/actions/resources/evses/list-evse-hardware-status-logs.js +0 -73
- package/src/lib/actions/resources/evses/list-evse-hardware-status-logs.js.map +0 -1
- package/src/lib/actions/resources/faqs/faq-create.d.ts +0 -10
- package/src/lib/actions/resources/faqs/faq-create.js +0 -68
- package/src/lib/actions/resources/faqs/faq-create.js.map +0 -1
- package/src/lib/actions/resources/faqs/faq-delete.d.ts +0 -9
- package/src/lib/actions/resources/faqs/faq-delete.js +0 -39
- package/src/lib/actions/resources/faqs/faq-delete.js.map +0 -1
- package/src/lib/actions/resources/faqs/faq-read.d.ts +0 -9
- package/src/lib/actions/resources/faqs/faq-read.js +0 -39
- package/src/lib/actions/resources/faqs/faq-read.js.map +0 -1
- package/src/lib/actions/resources/faqs/faq-update.d.ts +0 -11
- package/src/lib/actions/resources/faqs/faq-update.js +0 -73
- package/src/lib/actions/resources/faqs/faq-update.js.map +0 -1
- package/src/lib/actions/resources/faqs/faqs-listing.d.ts +0 -10
- package/src/lib/actions/resources/faqs/faqs-listing.js +0 -58
- package/src/lib/actions/resources/faqs/faqs-listing.js.map +0 -1
- package/src/lib/actions/resources/firmware-versions/firmware-version-attached-models.d.ts +0 -11
- package/src/lib/actions/resources/firmware-versions/firmware-version-attached-models.js +0 -63
- package/src/lib/actions/resources/firmware-versions/firmware-version-attached-models.js.map +0 -1
- package/src/lib/actions/resources/firmware-versions/firmware-version-read.d.ts +0 -10
- package/src/lib/actions/resources/firmware-versions/firmware-version-read.js +0 -49
- package/src/lib/actions/resources/firmware-versions/firmware-version-read.js.map +0 -1
- package/src/lib/actions/resources/firmware-versions/firmware-versions-listing.d.ts +0 -14
- package/src/lib/actions/resources/firmware-versions/firmware-versions-listing.js +0 -83
- package/src/lib/actions/resources/firmware-versions/firmware-versions-listing.js.map +0 -1
- package/src/lib/actions/resources/flexibility-activation-requests/get-flexibility-activation-request.d.ts +0 -9
- package/src/lib/actions/resources/flexibility-activation-requests/get-flexibility-activation-request.js +0 -39
- package/src/lib/actions/resources/flexibility-activation-requests/get-flexibility-activation-request.js.map +0 -1
- package/src/lib/actions/resources/flexibility-activation-requests/list-flexibility-activation-requests.d.ts +0 -11
- package/src/lib/actions/resources/flexibility-activation-requests/list-flexibility-activation-requests.js +0 -63
- package/src/lib/actions/resources/flexibility-activation-requests/list-flexibility-activation-requests.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/create-flexibility-asset.d.ts +0 -15
- package/src/lib/actions/resources/flexibility-assets/create-flexibility-asset.js +0 -75
- package/src/lib/actions/resources/flexibility-assets/create-flexibility-asset.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/delete-flexibility-asset.d.ts +0 -9
- package/src/lib/actions/resources/flexibility-assets/delete-flexibility-asset.js +0 -39
- package/src/lib/actions/resources/flexibility-assets/delete-flexibility-asset.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/get-flexibility-asset.d.ts +0 -9
- package/src/lib/actions/resources/flexibility-assets/get-flexibility-asset.js +0 -39
- package/src/lib/actions/resources/flexibility-assets/get-flexibility-asset.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/get-historical-time-series.d.ts +0 -13
- package/src/lib/actions/resources/flexibility-assets/get-historical-time-series.js +0 -73
- package/src/lib/actions/resources/flexibility-assets/get-historical-time-series.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/get-time-series-forecast.d.ts +0 -13
- package/src/lib/actions/resources/flexibility-assets/get-time-series-forecast.js +0 -73
- package/src/lib/actions/resources/flexibility-assets/get-time-series-forecast.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/list-flexibility-assets.d.ts +0 -11
- package/src/lib/actions/resources/flexibility-assets/list-flexibility-assets.js +0 -63
- package/src/lib/actions/resources/flexibility-assets/list-flexibility-assets.js.map +0 -1
- package/src/lib/actions/resources/flexibility-assets/update-flexibility-asset.d.ts +0 -11
- package/src/lib/actions/resources/flexibility-assets/update-flexibility-asset.js +0 -49
- package/src/lib/actions/resources/flexibility-assets/update-flexibility-asset.js.map +0 -1
- package/src/lib/actions/resources/id-tags/id-tag-create.d.ts +0 -18
- package/src/lib/actions/resources/id-tags/id-tag-create.js +0 -103
- package/src/lib/actions/resources/id-tags/id-tag-create.js.map +0 -1
- package/src/lib/actions/resources/id-tags/id-tag-delete.d.ts +0 -9
- package/src/lib/actions/resources/id-tags/id-tag-delete.js +0 -39
- package/src/lib/actions/resources/id-tags/id-tag-delete.js.map +0 -1
- package/src/lib/actions/resources/id-tags/id-tag-read.d.ts +0 -9
- package/src/lib/actions/resources/id-tags/id-tag-read.js +0 -39
- package/src/lib/actions/resources/id-tags/id-tag-read.js.map +0 -1
- package/src/lib/actions/resources/id-tags/id-tag-update.d.ts +0 -19
- package/src/lib/actions/resources/id-tags/id-tag-update.js +0 -108
- package/src/lib/actions/resources/id-tags/id-tag-update.js.map +0 -1
- package/src/lib/actions/resources/id-tags/id-tags-listing.d.ts +0 -19
- package/src/lib/actions/resources/id-tags/id-tags-listing.js +0 -117
- package/src/lib/actions/resources/id-tags/id-tags-listing.js.map +0 -1
- package/src/lib/actions/resources/installer-jobs/create-installer-job.d.ts +0 -12
- package/src/lib/actions/resources/installer-jobs/create-installer-job.js +0 -54
- package/src/lib/actions/resources/installer-jobs/create-installer-job.js.map +0 -1
- package/src/lib/actions/resources/installer-jobs/delete-installer-job.d.ts +0 -9
- package/src/lib/actions/resources/installer-jobs/delete-installer-job.js +0 -39
- package/src/lib/actions/resources/installer-jobs/delete-installer-job.js.map +0 -1
- package/src/lib/actions/resources/installer-jobs/get-installer-job.d.ts +0 -10
- package/src/lib/actions/resources/installer-jobs/get-installer-job.js +0 -49
- package/src/lib/actions/resources/installer-jobs/get-installer-job.js.map +0 -1
- package/src/lib/actions/resources/installer-jobs/get-installer-jobs-list.d.ts +0 -19
- package/src/lib/actions/resources/installer-jobs/get-installer-jobs-list.js +0 -111
- package/src/lib/actions/resources/installer-jobs/get-installer-jobs-list.js.map +0 -1
- package/src/lib/actions/resources/installer-jobs/update-installer-job.d.ts +0 -12
- package/src/lib/actions/resources/installer-jobs/update-installer-job.js +0 -53
- package/src/lib/actions/resources/installer-jobs/update-installer-job.js.map +0 -1
- package/src/lib/actions/resources/invoices/invoice-read.d.ts +0 -9
- package/src/lib/actions/resources/invoices/invoice-read.js +0 -39
- package/src/lib/actions/resources/invoices/invoice-read.js.map +0 -1
- package/src/lib/actions/resources/invoices/invoices-listing.d.ts +0 -12
- package/src/lib/actions/resources/invoices/invoices-listing.js +0 -68
- package/src/lib/actions/resources/invoices/invoices-listing.js.map +0 -1
- package/src/lib/actions/resources/locations/location-charging-zone-create.d.ts +0 -14
- package/src/lib/actions/resources/locations/location-charging-zone-create.js +0 -100
- package/src/lib/actions/resources/locations/location-charging-zone-create.js.map +0 -1
- package/src/lib/actions/resources/locations/location-charging-zone-delete.d.ts +0 -10
- package/src/lib/actions/resources/locations/location-charging-zone-delete.js +0 -44
- package/src/lib/actions/resources/locations/location-charging-zone-delete.js.map +0 -1
- package/src/lib/actions/resources/locations/location-charging-zone-read.d.ts +0 -10
- package/src/lib/actions/resources/locations/location-charging-zone-read.js +0 -44
- package/src/lib/actions/resources/locations/location-charging-zone-read.js.map +0 -1
- package/src/lib/actions/resources/locations/location-charging-zone-update.d.ts +0 -15
- package/src/lib/actions/resources/locations/location-charging-zone-update.js +0 -105
- package/src/lib/actions/resources/locations/location-charging-zone-update.js.map +0 -1
- package/src/lib/actions/resources/locations/location-charging-zones-listing.d.ts +0 -11
- package/src/lib/actions/resources/locations/location-charging-zones-listing.js +0 -63
- package/src/lib/actions/resources/locations/location-charging-zones-listing.js.map +0 -1
- package/src/lib/actions/resources/locations/location-create.d.ts +0 -38
- package/src/lib/actions/resources/locations/location-create.js +0 -769
- package/src/lib/actions/resources/locations/location-create.js.map +0 -1
- package/src/lib/actions/resources/locations/location-delete.d.ts +0 -10
- package/src/lib/actions/resources/locations/location-delete.js +0 -52
- package/src/lib/actions/resources/locations/location-delete.js.map +0 -1
- package/src/lib/actions/resources/locations/location-read.d.ts +0 -10
- package/src/lib/actions/resources/locations/location-read.js +0 -52
- package/src/lib/actions/resources/locations/location-read.js.map +0 -1
- package/src/lib/actions/resources/locations/location-update.d.ts +0 -40
- package/src/lib/actions/resources/locations/location-update.js +0 -636
- package/src/lib/actions/resources/locations/location-update.js.map +0 -1
- package/src/lib/actions/resources/locations/locations-listing.d.ts +0 -23
- package/src/lib/actions/resources/locations/locations-listing.js +0 -396
- package/src/lib/actions/resources/locations/locations-listing.js.map +0 -1
- package/src/lib/actions/resources/parking-spaces/create-parking-space.d.ts +0 -15
- package/src/lib/actions/resources/parking-spaces/create-parking-space.js +0 -88
- package/src/lib/actions/resources/parking-spaces/create-parking-space.js.map +0 -1
- package/src/lib/actions/resources/parking-spaces/delete-parking-space.d.ts +0 -9
- package/src/lib/actions/resources/parking-spaces/delete-parking-space.js +0 -39
- package/src/lib/actions/resources/parking-spaces/delete-parking-space.js.map +0 -1
- package/src/lib/actions/resources/parking-spaces/get-parking-space.d.ts +0 -10
- package/src/lib/actions/resources/parking-spaces/get-parking-space.js +0 -49
- package/src/lib/actions/resources/parking-spaces/get-parking-space.js.map +0 -1
- package/src/lib/actions/resources/parking-spaces/list-parking-space.d.ts +0 -13
- package/src/lib/actions/resources/parking-spaces/list-parking-space.js +0 -78
- package/src/lib/actions/resources/parking-spaces/list-parking-space.js.map +0 -1
- package/src/lib/actions/resources/parking-spaces/update-parking-space.d.ts +0 -16
- package/src/lib/actions/resources/parking-spaces/update-parking-space.js +0 -93
- package/src/lib/actions/resources/parking-spaces/update-parking-space.js.map +0 -1
- package/src/lib/actions/resources/partner-contracts/partner-contract-create.d.ts +0 -31
- package/src/lib/actions/resources/partner-contracts/partner-contract-create.js +0 -203
- package/src/lib/actions/resources/partner-contracts/partner-contract-create.js.map +0 -1
- package/src/lib/actions/resources/partner-contracts/partner-contract-delete.d.ts +0 -9
- package/src/lib/actions/resources/partner-contracts/partner-contract-delete.js +0 -39
- package/src/lib/actions/resources/partner-contracts/partner-contract-delete.js.map +0 -1
- package/src/lib/actions/resources/partner-contracts/partner-contract-read.d.ts +0 -9
- package/src/lib/actions/resources/partner-contracts/partner-contract-read.js +0 -39
- package/src/lib/actions/resources/partner-contracts/partner-contract-read.js.map +0 -1
- package/src/lib/actions/resources/partner-contracts/partner-contract-update.d.ts +0 -32
- package/src/lib/actions/resources/partner-contracts/partner-contract-update.js +0 -208
- package/src/lib/actions/resources/partner-contracts/partner-contract-update.js.map +0 -1
- package/src/lib/actions/resources/partner-contracts/partner-contracts-listing.d.ts +0 -10
- package/src/lib/actions/resources/partner-contracts/partner-contracts-listing.js +0 -58
- package/src/lib/actions/resources/partner-contracts/partner-contracts-listing.js.map +0 -1
- package/src/lib/actions/resources/partner-expenses/expenses-listing.d.ts +0 -17
- package/src/lib/actions/resources/partner-expenses/expenses-listing.js +0 -107
- package/src/lib/actions/resources/partner-expenses/expenses-listing.js.map +0 -1
- package/src/lib/actions/resources/partner-invites/partner-invite-create.d.ts +0 -15
- package/src/lib/actions/resources/partner-invites/partner-invite-create.js +0 -93
- package/src/lib/actions/resources/partner-invites/partner-invite-create.js.map +0 -1
- package/src/lib/actions/resources/partner-invites/partner-invite-delete.d.ts +0 -9
- package/src/lib/actions/resources/partner-invites/partner-invite-delete.js +0 -39
- package/src/lib/actions/resources/partner-invites/partner-invite-delete.js.map +0 -1
- package/src/lib/actions/resources/partner-invites/partner-invite-read.d.ts +0 -9
- package/src/lib/actions/resources/partner-invites/partner-invite-read.js +0 -39
- package/src/lib/actions/resources/partner-invites/partner-invite-read.js.map +0 -1
- package/src/lib/actions/resources/partner-invites/partner-invite-update.d.ts +0 -13
- package/src/lib/actions/resources/partner-invites/partner-invite-update.js +0 -77
- package/src/lib/actions/resources/partner-invites/partner-invite-update.js.map +0 -1
- package/src/lib/actions/resources/partner-invites/partner-invites-listing.d.ts +0 -16
- package/src/lib/actions/resources/partner-invites/partner-invites-listing.js +0 -95
- package/src/lib/actions/resources/partner-invites/partner-invites-listing.js.map +0 -1
- package/src/lib/actions/resources/partner-revenues/revenues-listing.d.ts +0 -16
- package/src/lib/actions/resources/partner-revenues/revenues-listing.js +0 -94
- package/src/lib/actions/resources/partner-revenues/revenues-listing.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-create.d.ts +0 -12
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-create.js +0 -54
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-create.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-delete.d.ts +0 -10
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-delete.js +0 -44
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-delete.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-update.d.ts +0 -13
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-update.js +0 -59
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-update.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-records-listing.d.ts +0 -11
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-records-listing.js +0 -63
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-records-listing.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-read.d.ts +0 -9
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-read.js +0 -39
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-report-read.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-reports-listing.d.ts +0 -13
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-reports-listing.js +0 -73
- package/src/lib/actions/resources/partner-settlement-reports/partner-settlement-reports-listing.js.map +0 -1
- package/src/lib/actions/resources/partner-settlement-reports/partnert-settlement-report-partner-settlement-record-read.d.ts +0 -10
- package/src/lib/actions/resources/partner-settlement-reports/partnert-settlement-report-partner-settlement-record-read.js +0 -44
- package/src/lib/actions/resources/partner-settlement-reports/partnert-settlement-report-partner-settlement-record-read.js.map +0 -1
- package/src/lib/actions/resources/partners/partner-create.d.ts +0 -48
- package/src/lib/actions/resources/partners/partner-create.js +0 -548
- package/src/lib/actions/resources/partners/partner-create.js.map +0 -1
- package/src/lib/actions/resources/partners/partner-delete.d.ts +0 -9
- package/src/lib/actions/resources/partners/partner-delete.js +0 -39
- package/src/lib/actions/resources/partners/partner-delete.js.map +0 -1
- package/src/lib/actions/resources/partners/partner-read.d.ts +0 -9
- package/src/lib/actions/resources/partners/partner-read.js +0 -39
- package/src/lib/actions/resources/partners/partner-read.js.map +0 -1
- package/src/lib/actions/resources/partners/partner-update.d.ts +0 -48
- package/src/lib/actions/resources/partners/partner-update.js +0 -548
- package/src/lib/actions/resources/partners/partner-update.js.map +0 -1
- package/src/lib/actions/resources/partners/partners-listing.d.ts +0 -13
- package/src/lib/actions/resources/partners/partners-listing.js +0 -327
- package/src/lib/actions/resources/partners/partners-listing.js.map +0 -1
- package/src/lib/actions/resources/payment-terminals/create-payment-terminal.d.ts +0 -13
- package/src/lib/actions/resources/payment-terminals/create-payment-terminal.js +0 -366
- package/src/lib/actions/resources/payment-terminals/create-payment-terminal.js.map +0 -1
- package/src/lib/actions/resources/payment-terminals/delete-payment-terminal.d.ts +0 -9
- package/src/lib/actions/resources/payment-terminals/delete-payment-terminal.js +0 -39
- package/src/lib/actions/resources/payment-terminals/delete-payment-terminal.js.map +0 -1
- package/src/lib/actions/resources/payment-terminals/get-payment-terminal.d.ts +0 -9
- package/src/lib/actions/resources/payment-terminals/get-payment-terminal.js +0 -39
- package/src/lib/actions/resources/payment-terminals/get-payment-terminal.js.map +0 -1
- package/src/lib/actions/resources/payment-terminals/get-payment-terminals.d.ts +0 -11
- package/src/lib/actions/resources/payment-terminals/get-payment-terminals.js +0 -63
- package/src/lib/actions/resources/payment-terminals/get-payment-terminals.js.map +0 -1
- package/src/lib/actions/resources/payment-terminals/update-payment-terminal.d.ts +0 -14
- package/src/lib/actions/resources/payment-terminals/update-payment-terminal.js +0 -373
- package/src/lib/actions/resources/payment-terminals/update-payment-terminal.js.map +0 -1
- package/src/lib/actions/resources/provisioning-certificates/create-pc-id.d.ts +0 -13
- package/src/lib/actions/resources/provisioning-certificates/create-pc-id.js +0 -111
- package/src/lib/actions/resources/provisioning-certificates/create-pc-id.js.map +0 -1
- package/src/lib/actions/resources/provisioning-certificates/delete-pc-id.d.ts +0 -9
- package/src/lib/actions/resources/provisioning-certificates/delete-pc-id.js +0 -39
- package/src/lib/actions/resources/provisioning-certificates/delete-pc-id.js.map +0 -1
- package/src/lib/actions/resources/provisioning-certificates/get-pc-id.d.ts +0 -9
- package/src/lib/actions/resources/provisioning-certificates/get-pc-id.js +0 -39
- package/src/lib/actions/resources/provisioning-certificates/get-pc-id.js.map +0 -1
- package/src/lib/actions/resources/provisioning-certificates/list-pc-ids.d.ts +0 -10
- package/src/lib/actions/resources/provisioning-certificates/list-pc-ids.js +0 -58
- package/src/lib/actions/resources/provisioning-certificates/list-pc-ids.js.map +0 -1
- package/src/lib/actions/resources/provisioning-certificates/update-pc-id.d.ts +0 -14
- package/src/lib/actions/resources/provisioning-certificates/update-pc-id.js +0 -116
- package/src/lib/actions/resources/provisioning-certificates/update-pc-id.js.map +0 -1
- package/src/lib/actions/resources/receipts/receipt-read.d.ts +0 -9
- package/src/lib/actions/resources/receipts/receipt-read.js +0 -39
- package/src/lib/actions/resources/receipts/receipt-read.js.map +0 -1
- package/src/lib/actions/resources/receipts/receipts-listing.d.ts +0 -15
- package/src/lib/actions/resources/receipts/receipts-listing.js +0 -90
- package/src/lib/actions/resources/receipts/receipts-listing.js.map +0 -1
- package/src/lib/actions/resources/reservations/reservation-read.d.ts +0 -9
- package/src/lib/actions/resources/reservations/reservation-read.js +0 -39
- package/src/lib/actions/resources/reservations/reservation-read.js.map +0 -1
- package/src/lib/actions/resources/reservations/reservations-listing.d.ts +0 -15
- package/src/lib/actions/resources/reservations/reservations-listing.js +0 -91
- package/src/lib/actions/resources/reservations/reservations-listing.js.map +0 -1
- package/src/lib/actions/resources/roaming-connections/get-roaming-connection.d.ts +0 -9
- package/src/lib/actions/resources/roaming-connections/get-roaming-connection.js +0 -39
- package/src/lib/actions/resources/roaming-connections/get-roaming-connection.js.map +0 -1
- package/src/lib/actions/resources/roaming-connections/list-roaming-connections.d.ts +0 -10
- package/src/lib/actions/resources/roaming-connections/list-roaming-connections.js +0 -58
- package/src/lib/actions/resources/roaming-connections/list-roaming-connections.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/create-roaming-custom-tariff-filter.d.ts +0 -16
- package/src/lib/actions/resources/roaming-operators/create-roaming-custom-tariff-filter.js +0 -86
- package/src/lib/actions/resources/roaming-operators/create-roaming-custom-tariff-filter.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/delete-roaming-custom-tariff-filter.d.ts +0 -10
- package/src/lib/actions/resources/roaming-operators/delete-roaming-custom-tariff-filter.js +0 -44
- package/src/lib/actions/resources/roaming-operators/delete-roaming-custom-tariff-filter.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/get-roaming-custom-tariff-filter.d.ts +0 -10
- package/src/lib/actions/resources/roaming-operators/get-roaming-custom-tariff-filter.js +0 -44
- package/src/lib/actions/resources/roaming-operators/get-roaming-custom-tariff-filter.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/list-roaming-custom-tariff-filters.d.ts +0 -14
- package/src/lib/actions/resources/roaming-operators/list-roaming-custom-tariff-filters.js +0 -84
- package/src/lib/actions/resources/roaming-operators/list-roaming-custom-tariff-filters.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/reorder-roaming-custom-tariff-filters.d.ts +0 -10
- package/src/lib/actions/resources/roaming-operators/reorder-roaming-custom-tariff-filters.js +0 -56
- package/src/lib/actions/resources/roaming-operators/reorder-roaming-custom-tariff-filters.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/roaming-operator-read.d.ts +0 -9
- package/src/lib/actions/resources/roaming-operators/roaming-operator-read.js +0 -39
- package/src/lib/actions/resources/roaming-operators/roaming-operator-read.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/roaming-operator-update.d.ts +0 -19
- package/src/lib/actions/resources/roaming-operators/roaming-operator-update.js +0 -125
- package/src/lib/actions/resources/roaming-operators/roaming-operator-update.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/roaming-operators-listing.d.ts +0 -10
- package/src/lib/actions/resources/roaming-operators/roaming-operators-listing.js +0 -58
- package/src/lib/actions/resources/roaming-operators/roaming-operators-listing.js.map +0 -1
- package/src/lib/actions/resources/roaming-operators/update-roaming-custom-tariff-filter.d.ts +0 -17
- package/src/lib/actions/resources/roaming-operators/update-roaming-custom-tariff-filter.js +0 -91
- package/src/lib/actions/resources/roaming-operators/update-roaming-custom-tariff-filter.js.map +0 -1
- package/src/lib/actions/resources/roaming-providers/roaming-provider-create.d.ts +0 -13
- package/src/lib/actions/resources/roaming-providers/roaming-provider-create.js +0 -97
- package/src/lib/actions/resources/roaming-providers/roaming-provider-create.js.map +0 -1
- package/src/lib/actions/resources/roaming-providers/roaming-provider-delete.d.ts +0 -9
- package/src/lib/actions/resources/roaming-providers/roaming-provider-delete.js +0 -39
- package/src/lib/actions/resources/roaming-providers/roaming-provider-delete.js.map +0 -1
- package/src/lib/actions/resources/roaming-providers/roaming-provider-read.d.ts +0 -9
- package/src/lib/actions/resources/roaming-providers/roaming-provider-read.js +0 -39
- package/src/lib/actions/resources/roaming-providers/roaming-provider-read.js.map +0 -1
- package/src/lib/actions/resources/roaming-providers/roaming-provider-update.d.ts +0 -14
- package/src/lib/actions/resources/roaming-providers/roaming-provider-update.js +0 -87
- package/src/lib/actions/resources/roaming-providers/roaming-provider-update.js.map +0 -1
- package/src/lib/actions/resources/roaming-providers/roaming-providers-listing.d.ts +0 -13
- package/src/lib/actions/resources/roaming-providers/roaming-providers-listing.js +0 -73
- package/src/lib/actions/resources/roaming-providers/roaming-providers-listing.js.map +0 -1
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariff-read.d.ts +0 -9
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariff-read.js +0 -39
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariff-read.js.map +0 -1
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariff-update.d.ts +0 -10
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariff-update.js +0 -44
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariff-update.js.map +0 -1
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariffs-listing.d.ts +0 -10
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariffs-listing.js +0 -58
- package/src/lib/actions/resources/roaming-tariffs/roaming-tariffs-listing.js.map +0 -1
- package/src/lib/actions/resources/security-events/security-event-read.d.ts +0 -9
- package/src/lib/actions/resources/security-events/security-event-read.js +0 -39
- package/src/lib/actions/resources/security-events/security-event-read.js.map +0 -1
- package/src/lib/actions/resources/security-events/security-events-listing.d.ts +0 -14
- package/src/lib/actions/resources/security-events/security-events-listing.js +0 -89
- package/src/lib/actions/resources/security-events/security-events-listing.js.map +0 -1
- package/src/lib/actions/resources/sessions/session-read.d.ts +0 -16
- package/src/lib/actions/resources/sessions/session-read.js +0 -116
- package/src/lib/actions/resources/sessions/session-read.js.map +0 -1
- package/src/lib/actions/resources/sessions/sessions-consumption-stats-read.d.ts +0 -9
- package/src/lib/actions/resources/sessions/sessions-consumption-stats-read.js +0 -39
- package/src/lib/actions/resources/sessions/sessions-consumption-stats-read.js.map +0 -1
- package/src/lib/actions/resources/sessions/sessions-listing.d.ts +0 -46
- package/src/lib/actions/resources/sessions/sessions-listing.js +0 -376
- package/src/lib/actions/resources/sessions/sessions-listing.js.map +0 -1
- package/src/lib/actions/resources/settings/settings-listing.d.ts +0 -7
- package/src/lib/actions/resources/settings/settings-listing.js +0 -33
- package/src/lib/actions/resources/settings/settings-listing.js.map +0 -1
- package/src/lib/actions/resources/sub-operators/sub-operator-read.d.ts +0 -9
- package/src/lib/actions/resources/sub-operators/sub-operator-read.js +0 -39
- package/src/lib/actions/resources/sub-operators/sub-operator-read.js.map +0 -1
- package/src/lib/actions/resources/sub-operators/sub-operators-listing.d.ts +0 -10
- package/src/lib/actions/resources/sub-operators/sub-operators-listing.js +0 -58
- package/src/lib/actions/resources/sub-operators/sub-operators-listing.js.map +0 -1
- package/src/lib/actions/resources/subscription-plans/subscription-plan-create.d.ts +0 -34
- package/src/lib/actions/resources/subscription-plans/subscription-plan-create.js +0 -763
- package/src/lib/actions/resources/subscription-plans/subscription-plan-create.js.map +0 -1
- package/src/lib/actions/resources/subscription-plans/subscription-plan-delete.d.ts +0 -9
- package/src/lib/actions/resources/subscription-plans/subscription-plan-delete.js +0 -39
- package/src/lib/actions/resources/subscription-plans/subscription-plan-delete.js.map +0 -1
- package/src/lib/actions/resources/subscription-plans/subscription-plan-read.d.ts +0 -9
- package/src/lib/actions/resources/subscription-plans/subscription-plan-read.js +0 -39
- package/src/lib/actions/resources/subscription-plans/subscription-plan-read.js.map +0 -1
- package/src/lib/actions/resources/subscription-plans/subscription-plan-update.d.ts +0 -35
- package/src/lib/actions/resources/subscription-plans/subscription-plan-update.js +0 -762
- package/src/lib/actions/resources/subscription-plans/subscription-plan-update.js.map +0 -1
- package/src/lib/actions/resources/subscription-plans/subscription-plans-listing.d.ts +0 -10
- package/src/lib/actions/resources/subscription-plans/subscription-plans-listing.js +0 -58
- package/src/lib/actions/resources/subscription-plans/subscription-plans-listing.js.map +0 -1
- package/src/lib/actions/resources/subscriptions/subscription-read.d.ts +0 -9
- package/src/lib/actions/resources/subscriptions/subscription-read.js +0 -39
- package/src/lib/actions/resources/subscriptions/subscription-read.js.map +0 -1
- package/src/lib/actions/resources/subscriptions/subscriptions-listing.d.ts +0 -15
- package/src/lib/actions/resources/subscriptions/subscriptions-listing.js +0 -92
- package/src/lib/actions/resources/subscriptions/subscriptions-listing.js.map +0 -1
- package/src/lib/actions/resources/tariff-groups/tariff-group-create.d.ts +0 -11
- package/src/lib/actions/resources/tariff-groups/tariff-group-create.js +0 -49
- package/src/lib/actions/resources/tariff-groups/tariff-group-create.js.map +0 -1
- package/src/lib/actions/resources/tariff-groups/tariff-group-delete.d.ts +0 -9
- package/src/lib/actions/resources/tariff-groups/tariff-group-delete.js +0 -39
- package/src/lib/actions/resources/tariff-groups/tariff-group-delete.js.map +0 -1
- package/src/lib/actions/resources/tariff-groups/tariff-group-read.d.ts +0 -9
- package/src/lib/actions/resources/tariff-groups/tariff-group-read.js +0 -39
- package/src/lib/actions/resources/tariff-groups/tariff-group-read.js.map +0 -1
- package/src/lib/actions/resources/tariff-groups/tariff-group-update.d.ts +0 -12
- package/src/lib/actions/resources/tariff-groups/tariff-group-update.js +0 -54
- package/src/lib/actions/resources/tariff-groups/tariff-group-update.js.map +0 -1
- package/src/lib/actions/resources/tariff-groups/tariff-groups-listing.d.ts +0 -11
- package/src/lib/actions/resources/tariff-groups/tariff-groups-listing.js +0 -63
- package/src/lib/actions/resources/tariff-groups/tariff-groups-listing.js.map +0 -1
- package/src/lib/actions/resources/tariff-snapshots/tariff-snapshot-read.d.ts +0 -9
- package/src/lib/actions/resources/tariff-snapshots/tariff-snapshot-read.js +0 -39
- package/src/lib/actions/resources/tariff-snapshots/tariff-snapshot-read.js.map +0 -1
- package/src/lib/actions/resources/tariffs/tariff-create.d.ts +0 -86
- package/src/lib/actions/resources/tariffs/tariff-create.js +0 -773
- package/src/lib/actions/resources/tariffs/tariff-create.js.map +0 -1
- package/src/lib/actions/resources/tariffs/tariff-delete.d.ts +0 -9
- package/src/lib/actions/resources/tariffs/tariff-delete.js +0 -39
- package/src/lib/actions/resources/tariffs/tariff-delete.js.map +0 -1
- package/src/lib/actions/resources/tariffs/tariff-read.d.ts +0 -9
- package/src/lib/actions/resources/tariffs/tariff-read.js +0 -39
- package/src/lib/actions/resources/tariffs/tariff-read.js.map +0 -1
- package/src/lib/actions/resources/tariffs/tariff-update.d.ts +0 -87
- package/src/lib/actions/resources/tariffs/tariff-update.js +0 -761
- package/src/lib/actions/resources/tariffs/tariff-update.js.map +0 -1
- package/src/lib/actions/resources/tariffs/tariffs-listing.d.ts +0 -14
- package/src/lib/actions/resources/tariffs/tariffs-listing.js +0 -78
- package/src/lib/actions/resources/tariffs/tariffs-listing.js.map +0 -1
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-create.d.ts +0 -9
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-create.js +0 -39
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-create.js.map +0 -1
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-delete.d.ts +0 -9
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-delete.js +0 -39
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-delete.js.map +0 -1
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-read.d.ts +0 -9
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-read.js +0 -39
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-read.js.map +0 -1
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-update.d.ts +0 -10
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-update.js +0 -44
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-number-update.js.map +0 -1
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-numbers-listing.d.ts +0 -10
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-numbers-listing.js +0 -58
- package/src/lib/actions/resources/tax-identification-numbers/tax-identification-numbers-listing.js.map +0 -1
- package/src/lib/actions/resources/taxes/tax-create.d.ts +0 -12
- package/src/lib/actions/resources/taxes/tax-create.js +0 -66
- package/src/lib/actions/resources/taxes/tax-create.js.map +0 -1
- package/src/lib/actions/resources/taxes/tax-delete.d.ts +0 -9
- package/src/lib/actions/resources/taxes/tax-delete.js +0 -39
- package/src/lib/actions/resources/taxes/tax-delete.js.map +0 -1
- package/src/lib/actions/resources/taxes/tax-read.d.ts +0 -9
- package/src/lib/actions/resources/taxes/tax-read.js +0 -39
- package/src/lib/actions/resources/taxes/tax-read.js.map +0 -1
- package/src/lib/actions/resources/taxes/tax-update.d.ts +0 -13
- package/src/lib/actions/resources/taxes/tax-update.js +0 -71
- package/src/lib/actions/resources/taxes/tax-update.js.map +0 -1
- package/src/lib/actions/resources/taxes/taxes-listing.d.ts +0 -10
- package/src/lib/actions/resources/taxes/taxes-listing.js +0 -58
- package/src/lib/actions/resources/taxes/taxes-listing.js.map +0 -1
- package/src/lib/actions/resources/templates/templates-listing.d.ts +0 -10
- package/src/lib/actions/resources/templates/templates-listing.js +0 -58
- package/src/lib/actions/resources/templates/templates-listing.js.map +0 -1
- package/src/lib/actions/resources/terms-and-policies/terms-and-policies-listing.d.ts +0 -10
- package/src/lib/actions/resources/terms-and-policies/terms-and-policies-listing.js +0 -44
- package/src/lib/actions/resources/terms-and-policies/terms-and-policies-listing.js.map +0 -1
- package/src/lib/actions/resources/terms-and-policies/terms-and-policies-read.d.ts +0 -9
- package/src/lib/actions/resources/terms-and-policies/terms-and-policies-read.js +0 -39
- package/src/lib/actions/resources/terms-and-policies/terms-and-policies-read.js.map +0 -1
- package/src/lib/actions/resources/top-up-packages/top-up-packag-create.d.ts +0 -11
- package/src/lib/actions/resources/top-up-packages/top-up-packag-create.js +0 -55
- package/src/lib/actions/resources/top-up-packages/top-up-packag-create.js.map +0 -1
- package/src/lib/actions/resources/top-up-packages/top-up-package-delete.d.ts +0 -9
- package/src/lib/actions/resources/top-up-packages/top-up-package-delete.js +0 -39
- package/src/lib/actions/resources/top-up-packages/top-up-package-delete.js.map +0 -1
- package/src/lib/actions/resources/top-up-packages/top-up-package-read.d.ts +0 -9
- package/src/lib/actions/resources/top-up-packages/top-up-package-read.js +0 -39
- package/src/lib/actions/resources/top-up-packages/top-up-package-read.js.map +0 -1
- package/src/lib/actions/resources/top-up-packages/top-up-package-update.d.ts +0 -12
- package/src/lib/actions/resources/top-up-packages/top-up-package-update.js +0 -60
- package/src/lib/actions/resources/top-up-packages/top-up-package-update.js.map +0 -1
- package/src/lib/actions/resources/top-up-packages/top-up-packages-listing.d.ts +0 -11
- package/src/lib/actions/resources/top-up-packages/top-up-packages-listing.js +0 -63
- package/src/lib/actions/resources/top-up-packages/top-up-packages-listing.js.map +0 -1
- package/src/lib/actions/resources/transactions/transaction-read.d.ts +0 -9
- package/src/lib/actions/resources/transactions/transaction-read.js +0 -39
- package/src/lib/actions/resources/transactions/transaction-read.js.map +0 -1
- package/src/lib/actions/resources/transactions/transaction-update.d.ts +0 -20
- package/src/lib/actions/resources/transactions/transaction-update.js +0 -137
- package/src/lib/actions/resources/transactions/transaction-update.js.map +0 -1
- package/src/lib/actions/resources/transactions/transactions-create.d.ts +0 -21
- package/src/lib/actions/resources/transactions/transactions-create.js +0 -151
- package/src/lib/actions/resources/transactions/transactions-create.js.map +0 -1
- package/src/lib/actions/resources/transactions/transactions-listing.d.ts +0 -26
- package/src/lib/actions/resources/transactions/transactions-listing.js +0 -179
- package/src/lib/actions/resources/transactions/transactions-listing.js.map +0 -1
- package/src/lib/actions/resources/user-groups/user-group-create.d.ts +0 -11
- package/src/lib/actions/resources/user-groups/user-group-create.js +0 -49
- package/src/lib/actions/resources/user-groups/user-group-create.js.map +0 -1
- package/src/lib/actions/resources/user-groups/user-group-delete.d.ts +0 -9
- package/src/lib/actions/resources/user-groups/user-group-delete.js +0 -39
- package/src/lib/actions/resources/user-groups/user-group-delete.js.map +0 -1
- package/src/lib/actions/resources/user-groups/user-group-read.d.ts +0 -9
- package/src/lib/actions/resources/user-groups/user-group-read.js +0 -39
- package/src/lib/actions/resources/user-groups/user-group-read.js.map +0 -1
- package/src/lib/actions/resources/user-groups/user-group-update.d.ts +0 -12
- package/src/lib/actions/resources/user-groups/user-group-update.js +0 -54
- package/src/lib/actions/resources/user-groups/user-group-update.js.map +0 -1
- package/src/lib/actions/resources/user-groups/user-groups-listing.d.ts +0 -12
- package/src/lib/actions/resources/user-groups/user-groups-listing.js +0 -68
- package/src/lib/actions/resources/user-groups/user-groups-listing.js.map +0 -1
- package/src/lib/actions/resources/users/invoice-details-create-or-update.d.ts +0 -14
- package/src/lib/actions/resources/users/invoice-details-create-or-update.js +0 -1394
- package/src/lib/actions/resources/users/invoice-details-create-or-update.js.map +0 -1
- package/src/lib/actions/resources/users/invoice-details-read.d.ts +0 -9
- package/src/lib/actions/resources/users/invoice-details-read.js +0 -39
- package/src/lib/actions/resources/users/invoice-details-read.js.map +0 -1
- package/src/lib/actions/resources/users/payment-method-create.d.ts +0 -12
- package/src/lib/actions/resources/users/payment-method-create.js +0 -65
- package/src/lib/actions/resources/users/payment-method-create.js.map +0 -1
- package/src/lib/actions/resources/users/payment-method-delete.d.ts +0 -10
- package/src/lib/actions/resources/users/payment-method-delete.js +0 -44
- package/src/lib/actions/resources/users/payment-method-delete.js.map +0 -1
- package/src/lib/actions/resources/users/payment-method-read.d.ts +0 -10
- package/src/lib/actions/resources/users/payment-method-read.js +0 -44
- package/src/lib/actions/resources/users/payment-method-read.js.map +0 -1
- package/src/lib/actions/resources/users/payment-method-update.d.ts +0 -11
- package/src/lib/actions/resources/users/payment-method-update.js +0 -55
- package/src/lib/actions/resources/users/payment-method-update.js.map +0 -1
- package/src/lib/actions/resources/users/payment-methods-listing.d.ts +0 -11
- package/src/lib/actions/resources/users/payment-methods-listing.js +0 -63
- package/src/lib/actions/resources/users/payment-methods-listing.js.map +0 -1
- package/src/lib/actions/resources/users/user-create.d.ts +0 -38
- package/src/lib/actions/resources/users/user-create.js +0 -467
- package/src/lib/actions/resources/users/user-create.js.map +0 -1
- package/src/lib/actions/resources/users/user-delete.d.ts +0 -10
- package/src/lib/actions/resources/users/user-delete.js +0 -50
- package/src/lib/actions/resources/users/user-delete.js.map +0 -1
- package/src/lib/actions/resources/users/user-read.d.ts +0 -11
- package/src/lib/actions/resources/users/user-read.js +0 -61
- package/src/lib/actions/resources/users/user-read.js.map +0 -1
- package/src/lib/actions/resources/users/user-update.d.ts +0 -37
- package/src/lib/actions/resources/users/user-update.js +0 -468
- package/src/lib/actions/resources/users/user-update.js.map +0 -1
- package/src/lib/actions/resources/users/users-listing.d.ts +0 -18
- package/src/lib/actions/resources/users/users-listing.js +0 -104
- package/src/lib/actions/resources/users/users-listing.js.map +0 -1
- package/src/lib/actions/resources/utilities/create-utility.d.ts +0 -9
- package/src/lib/actions/resources/utilities/create-utility.js +0 -39
- package/src/lib/actions/resources/utilities/create-utility.js.map +0 -1
- package/src/lib/actions/resources/utilities/delete-utility.d.ts +0 -9
- package/src/lib/actions/resources/utilities/delete-utility.js +0 -39
- package/src/lib/actions/resources/utilities/delete-utility.js.map +0 -1
- package/src/lib/actions/resources/utilities/get-utility.d.ts +0 -9
- package/src/lib/actions/resources/utilities/get-utility.js +0 -39
- package/src/lib/actions/resources/utilities/get-utility.js.map +0 -1
- package/src/lib/actions/resources/utilities/list-utilities.d.ts +0 -10
- package/src/lib/actions/resources/utilities/list-utilities.js +0 -58
- package/src/lib/actions/resources/utilities/list-utilities.js.map +0 -1
- package/src/lib/actions/resources/utilities/update-utility.d.ts +0 -10
- package/src/lib/actions/resources/utilities/update-utility.js +0 -44
- package/src/lib/actions/resources/utilities/update-utility.js.map +0 -1
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-create.d.ts +0 -12
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-create.js +0 -54
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-create.js.map +0 -1
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-delete.d.ts +0 -9
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-delete.js +0 -39
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-delete.js.map +0 -1
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-read.d.ts +0 -9
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-read.js +0 -39
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-read.js.map +0 -1
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-update.d.ts +0 -13
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-update.js +0 -59
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-code-update.js.map +0 -1
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-codes-listing.d.ts +0 -10
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-codes-listing.js +0 -58
- package/src/lib/actions/resources/vendor-error-codes/vendor-error-codes-listing.js.map +0 -1
- package/src/lib/actions/resources/vouchers/voucher-create.d.ts +0 -15
- package/src/lib/actions/resources/vouchers/voucher-create.js +0 -92
- package/src/lib/actions/resources/vouchers/voucher-create.js.map +0 -1
- package/src/lib/actions/resources/vouchers/voucher-delete.d.ts +0 -9
- package/src/lib/actions/resources/vouchers/voucher-delete.js +0 -39
- package/src/lib/actions/resources/vouchers/voucher-delete.js.map +0 -1
- package/src/lib/actions/resources/vouchers/voucher-read.d.ts +0 -9
- package/src/lib/actions/resources/vouchers/voucher-read.js +0 -39
- package/src/lib/actions/resources/vouchers/voucher-read.js.map +0 -1
- package/src/lib/actions/resources/vouchers/voucher-update.d.ts +0 -16
- package/src/lib/actions/resources/vouchers/voucher-update.js +0 -103
- package/src/lib/actions/resources/vouchers/voucher-update.js.map +0 -1
- package/src/lib/actions/resources/vouchers/vouchers-listing.d.ts +0 -19
- package/src/lib/actions/resources/vouchers/vouchers-listing.js +0 -120
- package/src/lib/actions/resources/vouchers/vouchers-listing.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -4
- package/src/lib/common/auth.js +0 -20
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/utils.d.ts +0 -88
- package/src/lib/common/utils.js +0 -405
- package/src/lib/common/utils.js.map +0 -1
- package/src/lib/models/responses.d.ts +0 -9430
- package/src/lib/models/responses.js +0 -3
- package/src/lib/models/responses.js.map +0 -1
- package/src/lib/triggers/webhook.d.ts +0 -26
- package/src/lib/triggers/webhook.js +0 -113
- package/src/lib/triggers/webhook.js.map +0 -1
package/src/index.js
CHANGED
|
@@ -1,846 +1,136 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ampeco = void 0;
|
|
4
|
-
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const charge_point_configuration_update_1 = require("./lib/actions/resources/charge-points/charge-point-configuration-update");
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
const charge_point_evse_read_1 = require("./lib/actions/resources/charge-points/charge-point-evse-read");
|
|
110
|
-
|
|
111
|
-
const charge_point_evse_connectors_listing_1 = require("./lib/actions/resources/charge-points/charge-point-evse-connectors-listing");
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
const get_charge_point_latest_hardware_status_log_1 = require("./lib/actions/resources/charge-points/get-charge-point-latest-hardware-status-log");
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const charge_point_shared_partners_sync_1 = require("./lib/actions/resources/charge-points/charge-point-shared-partners-sync");
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const charge_point_share_read_1 = require("./lib/actions/resources/charge-points/charge-point-share-read");
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
const circuit_unmanaged_load_read_1 = require("./lib/actions/resources/circuits/circuit-unmanaged-load-read");
|
|
138
|
-
const circuit_user_priorities_listing_1 = require("./lib/actions/resources/circuits/circuit-user-priorities-listing");
|
|
139
|
-
const circuit_user_priority_create_1 = require("./lib/actions/resources/circuits/circuit-user-priority-create");
|
|
140
|
-
const circuit_user_priority_read_1 = require("./lib/actions/resources/circuits/circuit-user-priority-read");
|
|
141
|
-
const circuit_user_priority_update_1 = require("./lib/actions/resources/circuits/circuit-user-priority-update");
|
|
142
|
-
const circuit_user_priority_delete_1 = require("./lib/actions/resources/circuits/circuit-user-priority-delete");
|
|
143
|
-
const list_configuration_templates_1 = require("./lib/actions/resources/configuration-templates/list-configuration-templates");
|
|
144
|
-
const create_configuration_template_1 = require("./lib/actions/resources/configuration-templates/create-configuration-template");
|
|
145
|
-
const update_configuration_template_1 = require("./lib/actions/resources/configuration-templates/update-configuration-template");
|
|
146
|
-
const get_configuration_template_1 = require("./lib/actions/resources/configuration-templates/get-configuration-template");
|
|
147
|
-
const delete_configuration_template_1 = require("./lib/actions/resources/configuration-templates/delete-configuration-template");
|
|
148
|
-
const configuration_template_variable_listing_1 = require("./lib/actions/resources/configuration-templates/configuration-template-variable-listing");
|
|
149
|
-
const configuration_template_variable_create_1 = require("./lib/actions/resources/configuration-templates/configuration-template-variable-create");
|
|
150
|
-
const configuration_template_variable_update_1 = require("./lib/actions/resources/configuration-templates/configuration-template-variable-update");
|
|
151
|
-
const configuration_template_variable_delete_1 = require("./lib/actions/resources/configuration-templates/configuration-template-variable-delete");
|
|
152
|
-
const contact_details_read_1 = require("./lib/actions/resources/contact-details/contact-details-read");
|
|
153
|
-
const contact_details_update_1 = require("./lib/actions/resources/contact-details/contact-details-update");
|
|
154
|
-
const contact_details_delete_1 = require("./lib/actions/resources/contact-details/contact-details-delete");
|
|
155
|
-
const currencies_listing_1 = require("./lib/actions/resources/currencies/currencies-listing");
|
|
156
|
-
const currency_create_1 = require("./lib/actions/resources/currencies/currency-create");
|
|
157
|
-
const currency_read_1 = require("./lib/actions/resources/currencies/currency-read");
|
|
158
|
-
const currency_update_1 = require("./lib/actions/resources/currencies/currency-update");
|
|
159
|
-
const create_currency_rate_1 = require("./lib/actions/resources/currency-rates/create-currency-rate");
|
|
160
|
-
const list_currency_rates_1 = require("./lib/actions/resources/currency-rates/list-currency-rates");
|
|
161
|
-
const update_currency_rate_1 = require("./lib/actions/resources/currency-rates/update-currency-rate");
|
|
162
|
-
const get_currency_rate_1 = require("./lib/actions/resources/currency-rates/get-currency-rate");
|
|
163
|
-
const delete_currency_rate_1 = require("./lib/actions/resources/currency-rates/delete-currency-rate");
|
|
164
|
-
const custom_fees_listing_1 = require("./lib/actions/resources/custom-fees/custom-fees-listing");
|
|
165
|
-
const custom_fee_read_1 = require("./lib/actions/resources/custom-fees/custom-fee-read");
|
|
166
|
-
const get_downtime_period_notices_1 = require("./lib/actions/resources/downtime-period-notices/get-downtime-period-notices");
|
|
167
|
-
const post_downtime_period_notice_1 = require("./lib/actions/resources/downtime-period-notices/post-downtime-period-notice");
|
|
168
|
-
const get_downtime_period_notice_1 = require("./lib/actions/resources/downtime-period-notices/get-downtime-period-notice");
|
|
169
|
-
const patch_downtime_period_notice_1 = require("./lib/actions/resources/downtime-period-notices/patch-downtime-period-notice");
|
|
170
|
-
const delete_downtime_period_notice_1 = require("./lib/actions/resources/downtime-period-notices/delete-downtime-period-notice");
|
|
171
|
-
const electricity_meters_lising_1 = require("./lib/actions/resources/electricity-meters/electricity-meters-lising");
|
|
172
|
-
const electricity_meter_create_1 = require("./lib/actions/resources/electricity-meters/electricity-meter-create");
|
|
173
|
-
const electricity_meter_read_1 = require("./lib/actions/resources/electricity-meters/electricity-meter-read");
|
|
174
|
-
const electricity_meter_update_1 = require("./lib/actions/resources/electricity-meters/electricity-meter-update");
|
|
175
|
-
const electricity_meter_delete_1 = require("./lib/actions/resources/electricity-meters/electricity-meter-delete");
|
|
176
|
-
const electricity_rates_listing_1 = require("./lib/actions/resources/electricity-rates/electricity-rates-listing");
|
|
177
|
-
const electricity_rate_create_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-create");
|
|
178
|
-
const electricity_rate_read_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-read");
|
|
179
|
-
const electricity_rate_update_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-update");
|
|
180
|
-
const electricity_rate_delete_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-delete");
|
|
181
|
-
const electricity_rate_energy_mix_read_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-energy-mix-read");
|
|
182
|
-
const electricity_rate_energy_mix_update_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-energy-mix-update");
|
|
183
|
-
const electricity_rate_price_periods_listing_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-listing");
|
|
184
|
-
const electricity_rate_price_periods_date_listing_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-listing");
|
|
185
|
-
const electricity_rate_price_periods_date_read_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-read");
|
|
186
|
-
const electricity_rate_price_periods_date_create_or_update_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-create-or-update");
|
|
187
|
-
const electricity_rate_price_periods_date_delete_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-date-delete");
|
|
188
|
-
const electricity_rate_price_periods_week_day_listing_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-listing");
|
|
189
|
-
const electricity_rate_price_periods_week_day_read_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-read");
|
|
190
|
-
const electricity_rate_price_periods_week_day_createa_or_update_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-createa-or-update");
|
|
191
|
-
const electricity_rate_price_periods_week_day_delete_1 = require("./lib/actions/resources/electricity-rates/electricity-rate-price-periods-week-day-delete");
|
|
192
|
-
const evse_downtime_periods_listing_1 = require("./lib/actions/resources/evse-downtime-periods/evse-downtime-periods-listing");
|
|
193
|
-
const evse_downtime_period_create_1 = require("./lib/actions/resources/evse-downtime-periods/evse-downtime-period-create");
|
|
194
|
-
const evse_downtime_period_read_1 = require("./lib/actions/resources/evse-downtime-periods/evse-downtime-period-read");
|
|
195
|
-
const evse_downtime_period_update_1 = require("./lib/actions/resources/evse-downtime-periods/evse-downtime-period-update");
|
|
196
|
-
const evse_downtime_period_delete_1 = require("./lib/actions/resources/evse-downtime-periods/evse-downtime-period-delete");
|
|
197
|
-
const list_evse_hardware_status_logs_1 = require("./lib/actions/resources/evses/list-evse-hardware-status-logs");
|
|
198
|
-
const get_evse_latest_hardware_status_log_1 = require("./lib/actions/resources/evses/get-evse-latest-hardware-status-log");
|
|
199
|
-
const evse_create_1 = require("./lib/actions/resources/evses/evse-create");
|
|
200
|
-
const evses_listing_1 = require("./lib/actions/resources/evses/evses-listing");
|
|
201
|
-
const evse_update_1 = require("./lib/actions/resources/evses/evse-update");
|
|
202
|
-
const evse_read_1 = require("./lib/actions/resources/evses/evse-read");
|
|
203
|
-
const evse_delete_1 = require("./lib/actions/resources/evses/evse-delete");
|
|
204
|
-
const faqs_listing_1 = require("./lib/actions/resources/faqs/faqs-listing");
|
|
205
|
-
const faq_create_1 = require("./lib/actions/resources/faqs/faq-create");
|
|
206
|
-
const faq_read_1 = require("./lib/actions/resources/faqs/faq-read");
|
|
207
|
-
const faq_update_1 = require("./lib/actions/resources/faqs/faq-update");
|
|
208
|
-
const faq_delete_1 = require("./lib/actions/resources/faqs/faq-delete");
|
|
209
|
-
const firmware_versions_listing_1 = require("./lib/actions/resources/firmware-versions/firmware-versions-listing");
|
|
210
|
-
const firmware_version_read_1 = require("./lib/actions/resources/firmware-versions/firmware-version-read");
|
|
211
|
-
const firmware_version_attached_models_1 = require("./lib/actions/resources/firmware-versions/firmware-version-attached-models");
|
|
212
|
-
const list_flexibility_activation_requests_1 = require("./lib/actions/resources/flexibility-activation-requests/list-flexibility-activation-requests");
|
|
213
|
-
const get_flexibility_activation_request_1 = require("./lib/actions/resources/flexibility-activation-requests/get-flexibility-activation-request");
|
|
214
|
-
const create_flexibility_asset_1 = require("./lib/actions/resources/flexibility-assets/create-flexibility-asset");
|
|
215
|
-
const list_flexibility_assets_1 = require("./lib/actions/resources/flexibility-assets/list-flexibility-assets");
|
|
216
|
-
const update_flexibility_asset_1 = require("./lib/actions/resources/flexibility-assets/update-flexibility-asset");
|
|
217
|
-
const get_flexibility_asset_1 = require("./lib/actions/resources/flexibility-assets/get-flexibility-asset");
|
|
218
|
-
const delete_flexibility_asset_1 = require("./lib/actions/resources/flexibility-assets/delete-flexibility-asset");
|
|
219
|
-
const get_historical_time_series_1 = require("./lib/actions/resources/flexibility-assets/get-historical-time-series");
|
|
220
|
-
const get_time_series_forecast_1 = require("./lib/actions/resources/flexibility-assets/get-time-series-forecast");
|
|
221
|
-
const id_tags_listing_1 = require("./lib/actions/resources/id-tags/id-tags-listing");
|
|
222
|
-
const id_tag_create_1 = require("./lib/actions/resources/id-tags/id-tag-create");
|
|
223
|
-
const id_tag_read_1 = require("./lib/actions/resources/id-tags/id-tag-read");
|
|
224
|
-
const id_tag_update_1 = require("./lib/actions/resources/id-tags/id-tag-update");
|
|
225
|
-
const id_tag_delete_1 = require("./lib/actions/resources/id-tags/id-tag-delete");
|
|
226
|
-
const get_installer_jobs_list_1 = require("./lib/actions/resources/installer-jobs/get-installer-jobs-list");
|
|
227
|
-
const create_installer_job_1 = require("./lib/actions/resources/installer-jobs/create-installer-job");
|
|
228
|
-
const get_installer_job_1 = require("./lib/actions/resources/installer-jobs/get-installer-job");
|
|
229
|
-
const update_installer_job_1 = require("./lib/actions/resources/installer-jobs/update-installer-job");
|
|
230
|
-
const delete_installer_job_1 = require("./lib/actions/resources/installer-jobs/delete-installer-job");
|
|
231
|
-
const invoices_listing_1 = require("./lib/actions/resources/invoices/invoices-listing");
|
|
232
|
-
const invoice_read_1 = require("./lib/actions/resources/invoices/invoice-read");
|
|
233
|
-
const location_create_1 = require("./lib/actions/resources/locations/location-create");
|
|
234
|
-
const locations_listing_1 = require("./lib/actions/resources/locations/locations-listing");
|
|
235
|
-
const location_update_1 = require("./lib/actions/resources/locations/location-update");
|
|
236
|
-
const location_read_1 = require("./lib/actions/resources/locations/location-read");
|
|
237
|
-
const location_delete_1 = require("./lib/actions/resources/locations/location-delete");
|
|
238
|
-
const location_charging_zones_listing_1 = require("./lib/actions/resources/locations/location-charging-zones-listing");
|
|
239
|
-
const location_charging_zone_create_1 = require("./lib/actions/resources/locations/location-charging-zone-create");
|
|
240
|
-
const location_charging_zone_read_1 = require("./lib/actions/resources/locations/location-charging-zone-read");
|
|
241
|
-
const location_charging_zone_update_1 = require("./lib/actions/resources/locations/location-charging-zone-update");
|
|
242
|
-
const location_charging_zone_delete_1 = require("./lib/actions/resources/locations/location-charging-zone-delete");
|
|
243
|
-
const create_parking_space_1 = require("./lib/actions/resources/parking-spaces/create-parking-space");
|
|
244
|
-
const list_parking_space_1 = require("./lib/actions/resources/parking-spaces/list-parking-space");
|
|
245
|
-
const update_parking_space_1 = require("./lib/actions/resources/parking-spaces/update-parking-space");
|
|
246
|
-
const get_parking_space_1 = require("./lib/actions/resources/parking-spaces/get-parking-space");
|
|
247
|
-
const delete_parking_space_1 = require("./lib/actions/resources/parking-spaces/delete-parking-space");
|
|
248
|
-
const partner_contracts_listing_1 = require("./lib/actions/resources/partner-contracts/partner-contracts-listing");
|
|
249
|
-
const partner_contract_create_1 = require("./lib/actions/resources/partner-contracts/partner-contract-create");
|
|
250
|
-
const partner_contract_read_1 = require("./lib/actions/resources/partner-contracts/partner-contract-read");
|
|
251
|
-
const partner_contract_update_1 = require("./lib/actions/resources/partner-contracts/partner-contract-update");
|
|
252
|
-
const partner_contract_delete_1 = require("./lib/actions/resources/partner-contracts/partner-contract-delete");
|
|
253
|
-
const expenses_listing_1 = require("./lib/actions/resources/partner-expenses/expenses-listing");
|
|
254
|
-
const partner_invites_listing_1 = require("./lib/actions/resources/partner-invites/partner-invites-listing");
|
|
255
|
-
const partner_invite_create_1 = require("./lib/actions/resources/partner-invites/partner-invite-create");
|
|
256
|
-
const partner_invite_read_1 = require("./lib/actions/resources/partner-invites/partner-invite-read");
|
|
257
|
-
const partner_invite_update_1 = require("./lib/actions/resources/partner-invites/partner-invite-update");
|
|
258
|
-
const partner_invite_delete_1 = require("./lib/actions/resources/partner-invites/partner-invite-delete");
|
|
259
|
-
const revenues_listing_1 = require("./lib/actions/resources/partner-revenues/revenues-listing");
|
|
260
|
-
const partner_settlement_reports_listing_1 = require("./lib/actions/resources/partner-settlement-reports/partner-settlement-reports-listing");
|
|
261
|
-
const partner_settlement_report_read_1 = require("./lib/actions/resources/partner-settlement-reports/partner-settlement-report-read");
|
|
262
|
-
const partner_settlement_report_partner_settlement_records_listing_1 = require("./lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-records-listing");
|
|
263
|
-
const partner_settlement_report_partner_settlement_record_create_1 = require("./lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-create");
|
|
264
|
-
const partnert_settlement_report_partner_settlement_record_read_1 = require("./lib/actions/resources/partner-settlement-reports/partnert-settlement-report-partner-settlement-record-read");
|
|
265
|
-
const partner_settlement_report_partner_settlement_record_update_1 = require("./lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-update");
|
|
266
|
-
const partner_settlement_report_partner_settlement_record_delete_1 = require("./lib/actions/resources/partner-settlement-reports/partner-settlement-report-partner-settlement-record-delete");
|
|
267
|
-
const partners_listing_1 = require("./lib/actions/resources/partners/partners-listing");
|
|
268
|
-
const partner_create_1 = require("./lib/actions/resources/partners/partner-create");
|
|
269
|
-
const partner_read_1 = require("./lib/actions/resources/partners/partner-read");
|
|
270
|
-
const partner_update_1 = require("./lib/actions/resources/partners/partner-update");
|
|
271
|
-
const partner_delete_1 = require("./lib/actions/resources/partners/partner-delete");
|
|
272
|
-
const get_payment_terminals_1 = require("./lib/actions/resources/payment-terminals/get-payment-terminals");
|
|
273
|
-
const create_payment_terminal_1 = require("./lib/actions/resources/payment-terminals/create-payment-terminal");
|
|
274
|
-
const get_payment_terminal_1 = require("./lib/actions/resources/payment-terminals/get-payment-terminal");
|
|
275
|
-
const update_payment_terminal_1 = require("./lib/actions/resources/payment-terminals/update-payment-terminal");
|
|
276
|
-
const delete_payment_terminal_1 = require("./lib/actions/resources/payment-terminals/delete-payment-terminal");
|
|
277
|
-
const create_pc_id_1 = require("./lib/actions/resources/provisioning-certificates/create-pc-id");
|
|
278
|
-
const list_pc_ids_1 = require("./lib/actions/resources/provisioning-certificates/list-pc-ids");
|
|
279
|
-
const update_pc_id_1 = require("./lib/actions/resources/provisioning-certificates/update-pc-id");
|
|
280
|
-
const get_pc_id_1 = require("./lib/actions/resources/provisioning-certificates/get-pc-id");
|
|
281
|
-
const delete_pc_id_1 = require("./lib/actions/resources/provisioning-certificates/delete-pc-id");
|
|
282
|
-
const receipts_listing_1 = require("./lib/actions/resources/receipts/receipts-listing");
|
|
283
|
-
const receipt_read_1 = require("./lib/actions/resources/receipts/receipt-read");
|
|
284
|
-
const reservations_listing_1 = require("./lib/actions/resources/reservations/reservations-listing");
|
|
285
|
-
const reservation_read_1 = require("./lib/actions/resources/reservations/reservation-read");
|
|
286
|
-
const list_roaming_connections_1 = require("./lib/actions/resources/roaming-connections/list-roaming-connections");
|
|
287
|
-
const get_roaming_connection_1 = require("./lib/actions/resources/roaming-connections/get-roaming-connection");
|
|
288
|
-
const roaming_operators_listing_1 = require("./lib/actions/resources/roaming-operators/roaming-operators-listing");
|
|
289
|
-
const roaming_operator_read_1 = require("./lib/actions/resources/roaming-operators/roaming-operator-read");
|
|
290
|
-
const roaming_operator_update_1 = require("./lib/actions/resources/roaming-operators/roaming-operator-update");
|
|
291
|
-
const list_roaming_custom_tariff_filters_1 = require("./lib/actions/resources/roaming-operators/list-roaming-custom-tariff-filters");
|
|
292
|
-
const create_roaming_custom_tariff_filter_1 = require("./lib/actions/resources/roaming-operators/create-roaming-custom-tariff-filter");
|
|
293
|
-
const reorder_roaming_custom_tariff_filters_1 = require("./lib/actions/resources/roaming-operators/reorder-roaming-custom-tariff-filters");
|
|
294
|
-
const get_roaming_custom_tariff_filter_1 = require("./lib/actions/resources/roaming-operators/get-roaming-custom-tariff-filter");
|
|
295
|
-
const update_roaming_custom_tariff_filter_1 = require("./lib/actions/resources/roaming-operators/update-roaming-custom-tariff-filter");
|
|
296
|
-
const delete_roaming_custom_tariff_filter_1 = require("./lib/actions/resources/roaming-operators/delete-roaming-custom-tariff-filter");
|
|
297
|
-
const roaming_providers_listing_1 = require("./lib/actions/resources/roaming-providers/roaming-providers-listing");
|
|
298
|
-
const roaming_provider_create_1 = require("./lib/actions/resources/roaming-providers/roaming-provider-create");
|
|
299
|
-
const roaming_provider_read_1 = require("./lib/actions/resources/roaming-providers/roaming-provider-read");
|
|
300
|
-
const roaming_provider_update_1 = require("./lib/actions/resources/roaming-providers/roaming-provider-update");
|
|
301
|
-
const roaming_provider_delete_1 = require("./lib/actions/resources/roaming-providers/roaming-provider-delete");
|
|
302
|
-
const roaming_tariffs_listing_1 = require("./lib/actions/resources/roaming-tariffs/roaming-tariffs-listing");
|
|
303
|
-
const roaming_tariff_read_1 = require("./lib/actions/resources/roaming-tariffs/roaming-tariff-read");
|
|
304
|
-
const roaming_tariff_update_1 = require("./lib/actions/resources/roaming-tariffs/roaming-tariff-update");
|
|
305
|
-
const security_events_listing_1 = require("./lib/actions/resources/security-events/security-events-listing");
|
|
306
|
-
const security_event_read_1 = require("./lib/actions/resources/security-events/security-event-read");
|
|
307
|
-
const sessions_listing_1 = require("./lib/actions/resources/sessions/sessions-listing");
|
|
308
|
-
const session_read_1 = require("./lib/actions/resources/sessions/session-read");
|
|
309
|
-
const sessions_consumption_stats_read_1 = require("./lib/actions/resources/sessions/sessions-consumption-stats-read");
|
|
310
|
-
const settings_listing_1 = require("./lib/actions/resources/settings/settings-listing");
|
|
311
|
-
const sub_operators_listing_1 = require("./lib/actions/resources/sub-operators/sub-operators-listing");
|
|
312
|
-
const sub_operator_read_1 = require("./lib/actions/resources/sub-operators/sub-operator-read");
|
|
313
|
-
const subscription_plans_listing_1 = require("./lib/actions/resources/subscription-plans/subscription-plans-listing");
|
|
314
|
-
const subscription_plan_create_1 = require("./lib/actions/resources/subscription-plans/subscription-plan-create");
|
|
315
|
-
const subscription_plan_read_1 = require("./lib/actions/resources/subscription-plans/subscription-plan-read");
|
|
316
|
-
const subscription_plan_update_1 = require("./lib/actions/resources/subscription-plans/subscription-plan-update");
|
|
317
|
-
const subscription_plan_delete_1 = require("./lib/actions/resources/subscription-plans/subscription-plan-delete");
|
|
318
|
-
const subscriptions_listing_1 = require("./lib/actions/resources/subscriptions/subscriptions-listing");
|
|
319
|
-
const subscription_read_1 = require("./lib/actions/resources/subscriptions/subscription-read");
|
|
320
|
-
const tariff_groups_listing_1 = require("./lib/actions/resources/tariff-groups/tariff-groups-listing");
|
|
321
|
-
const tariff_group_create_1 = require("./lib/actions/resources/tariff-groups/tariff-group-create");
|
|
322
|
-
const tariff_group_read_1 = require("./lib/actions/resources/tariff-groups/tariff-group-read");
|
|
323
|
-
const tariff_group_update_1 = require("./lib/actions/resources/tariff-groups/tariff-group-update");
|
|
324
|
-
const tariff_group_delete_1 = require("./lib/actions/resources/tariff-groups/tariff-group-delete");
|
|
325
|
-
const tariff_snapshot_read_1 = require("./lib/actions/resources/tariff-snapshots/tariff-snapshot-read");
|
|
326
|
-
const tariffs_listing_1 = require("./lib/actions/resources/tariffs/tariffs-listing");
|
|
327
|
-
const tariff_create_1 = require("./lib/actions/resources/tariffs/tariff-create");
|
|
328
|
-
const tariff_read_1 = require("./lib/actions/resources/tariffs/tariff-read");
|
|
329
|
-
const tariff_update_1 = require("./lib/actions/resources/tariffs/tariff-update");
|
|
330
|
-
const tariff_delete_1 = require("./lib/actions/resources/tariffs/tariff-delete");
|
|
331
|
-
const tax_identification_numbers_listing_1 = require("./lib/actions/resources/tax-identification-numbers/tax-identification-numbers-listing");
|
|
332
|
-
const tax_identification_number_create_1 = require("./lib/actions/resources/tax-identification-numbers/tax-identification-number-create");
|
|
333
|
-
const tax_identification_number_read_1 = require("./lib/actions/resources/tax-identification-numbers/tax-identification-number-read");
|
|
334
|
-
const tax_identification_number_update_1 = require("./lib/actions/resources/tax-identification-numbers/tax-identification-number-update");
|
|
335
|
-
const tax_identification_number_delete_1 = require("./lib/actions/resources/tax-identification-numbers/tax-identification-number-delete");
|
|
336
|
-
const taxes_listing_1 = require("./lib/actions/resources/taxes/taxes-listing");
|
|
337
|
-
const tax_create_1 = require("./lib/actions/resources/taxes/tax-create");
|
|
338
|
-
const tax_read_1 = require("./lib/actions/resources/taxes/tax-read");
|
|
339
|
-
const tax_update_1 = require("./lib/actions/resources/taxes/tax-update");
|
|
340
|
-
const tax_delete_1 = require("./lib/actions/resources/taxes/tax-delete");
|
|
341
|
-
const templates_listing_1 = require("./lib/actions/resources/templates/templates-listing");
|
|
342
|
-
const terms_and_policies_listing_1 = require("./lib/actions/resources/terms-and-policies/terms-and-policies-listing");
|
|
343
|
-
const terms_and_policies_read_1 = require("./lib/actions/resources/terms-and-policies/terms-and-policies-read");
|
|
344
|
-
const top_up_packages_listing_1 = require("./lib/actions/resources/top-up-packages/top-up-packages-listing");
|
|
345
|
-
const top_up_packag_create_1 = require("./lib/actions/resources/top-up-packages/top-up-packag-create");
|
|
346
|
-
const top_up_package_read_1 = require("./lib/actions/resources/top-up-packages/top-up-package-read");
|
|
347
|
-
const top_up_package_update_1 = require("./lib/actions/resources/top-up-packages/top-up-package-update");
|
|
348
|
-
const top_up_package_delete_1 = require("./lib/actions/resources/top-up-packages/top-up-package-delete");
|
|
349
|
-
const transactions_listing_1 = require("./lib/actions/resources/transactions/transactions-listing");
|
|
350
|
-
const transactions_create_1 = require("./lib/actions/resources/transactions/transactions-create");
|
|
351
|
-
const transaction_read_1 = require("./lib/actions/resources/transactions/transaction-read");
|
|
352
|
-
const transaction_update_1 = require("./lib/actions/resources/transactions/transaction-update");
|
|
353
|
-
const user_groups_listing_1 = require("./lib/actions/resources/user-groups/user-groups-listing");
|
|
354
|
-
const user_group_create_1 = require("./lib/actions/resources/user-groups/user-group-create");
|
|
355
|
-
const user_group_read_1 = require("./lib/actions/resources/user-groups/user-group-read");
|
|
356
|
-
const user_group_update_1 = require("./lib/actions/resources/user-groups/user-group-update");
|
|
357
|
-
const user_group_delete_1 = require("./lib/actions/resources/user-groups/user-group-delete");
|
|
358
|
-
const users_listing_1 = require("./lib/actions/resources/users/users-listing");
|
|
359
|
-
const user_create_1 = require("./lib/actions/resources/users/user-create");
|
|
360
|
-
const user_read_1 = require("./lib/actions/resources/users/user-read");
|
|
361
|
-
const user_update_1 = require("./lib/actions/resources/users/user-update");
|
|
362
|
-
const user_delete_1 = require("./lib/actions/resources/users/user-delete");
|
|
363
|
-
const invoice_details_read_1 = require("./lib/actions/resources/users/invoice-details-read");
|
|
364
|
-
const invoice_details_create_or_update_1 = require("./lib/actions/resources/users/invoice-details-create-or-update");
|
|
365
|
-
const payment_methods_listing_1 = require("./lib/actions/resources/users/payment-methods-listing");
|
|
366
|
-
const payment_method_create_1 = require("./lib/actions/resources/users/payment-method-create");
|
|
367
|
-
const payment_method_read_1 = require("./lib/actions/resources/users/payment-method-read");
|
|
368
|
-
const payment_method_update_1 = require("./lib/actions/resources/users/payment-method-update");
|
|
369
|
-
const payment_method_delete_1 = require("./lib/actions/resources/users/payment-method-delete");
|
|
370
|
-
const list_utilities_1 = require("./lib/actions/resources/utilities/list-utilities");
|
|
371
|
-
const create_utility_1 = require("./lib/actions/resources/utilities/create-utility");
|
|
372
|
-
const get_utility_1 = require("./lib/actions/resources/utilities/get-utility");
|
|
373
|
-
const update_utility_1 = require("./lib/actions/resources/utilities/update-utility");
|
|
374
|
-
const delete_utility_1 = require("./lib/actions/resources/utilities/delete-utility");
|
|
375
|
-
const vendor_error_codes_listing_1 = require("./lib/actions/resources/vendor-error-codes/vendor-error-codes-listing");
|
|
376
|
-
const vendor_error_code_create_1 = require("./lib/actions/resources/vendor-error-codes/vendor-error-code-create");
|
|
377
|
-
const vendor_error_code_read_1 = require("./lib/actions/resources/vendor-error-codes/vendor-error-code-read");
|
|
378
|
-
const vendor_error_code_update_1 = require("./lib/actions/resources/vendor-error-codes/vendor-error-code-update");
|
|
379
|
-
const vendor_error_code_delete_1 = require("./lib/actions/resources/vendor-error-codes/vendor-error-code-delete");
|
|
380
|
-
const vouchers_listing_1 = require("./lib/actions/resources/vouchers/vouchers-listing");
|
|
381
|
-
const voucher_create_1 = require("./lib/actions/resources/vouchers/voucher-create");
|
|
382
|
-
const voucher_read_1 = require("./lib/actions/resources/vouchers/voucher-read");
|
|
383
|
-
const voucher_update_1 = require("./lib/actions/resources/vouchers/voucher-update");
|
|
384
|
-
const voucher_delete_1 = require("./lib/actions/resources/vouchers/voucher-delete");
|
|
385
|
-
// Import triggers
|
|
386
|
-
const webhook_1 = require("./lib/triggers/webhook");
|
|
387
|
-
/**
|
|
388
|
-
* Ampeco API Integration
|
|
389
|
-
* Generated from API version: 3.96.4
|
|
390
|
-
* AMPECO.CHARGE Public API
|
|
391
|
-
*/
|
|
392
|
-
exports.ampeco = (0, pieces_framework_1.createPiece)({
|
|
393
|
-
displayName: 'AMPECO',
|
|
394
|
-
description: 'AMPECO piece provides integrations of APIs and webhook notifications of the AMPECO platform for managing EV charging infrastructure and operations.',
|
|
395
|
-
minimumSupportedRelease: '0.60.0',
|
|
396
|
-
logoUrl: 'https://cdn.activepieces.com/pieces/ampeco.png',
|
|
397
|
-
authors: ["Ampeco"],
|
|
398
|
-
auth: auth_1.ampecoAuth,
|
|
399
|
-
actions: [
|
|
400
|
-
(0, pieces_common_1.createCustomApiCallAction)({
|
|
401
|
-
baseUrl: (auth) => {
|
|
402
|
-
return `${auth === null || auth === void 0 ? void 0 : auth.props.baseApiUrl}`;
|
|
403
|
-
},
|
|
404
|
-
auth: auth_1.ampecoAuth,
|
|
405
|
-
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
406
|
-
return ({
|
|
407
|
-
Authorization: `Bearer ${auth.props.token}`,
|
|
408
|
-
});
|
|
409
|
-
}),
|
|
410
|
-
}),
|
|
411
|
-
// Charge actions
|
|
412
|
-
charge_point_change_availability_1.chargePointChangeAvailabilityAction,
|
|
413
|
-
charge_point_change_owner_1.chargePointChangeOwnerAction,
|
|
414
|
-
charge_point_clear_charging_profile_1.chargePointClearChargingProfileAction,
|
|
415
|
-
charge_point_get_diagnostics_1.chargePointGetDiagnosticsAction,
|
|
416
|
-
charge_point_get_security_log_1.chargePointGetSecurityLogAction,
|
|
417
|
-
charge_point_move_evses_to_satellite_1.chargePointMoveEvsesToSatelliteAction,
|
|
418
|
-
charge_point_reserve_1.chargePointReserveAction,
|
|
419
|
-
charge_point_reset_security_profile_1.chargePointResetSecurityProfileAction,
|
|
420
|
-
charge_point_reset_1.chargePointResetAction,
|
|
421
|
-
charge_point_send_data_transfer_1.chargePointSendDataTransferAction,
|
|
422
|
-
charge_point_set_charging_profile_1.chargePointSetChargingProfileAction,
|
|
423
|
-
charge_point_start_charging_session_without_evse_1.chargePointStartChargingSessionWithoutEvseAction,
|
|
424
|
-
charge_point_start_charging_session_1.chargePointStartChargingSessionAction,
|
|
425
|
-
charge_point_stop_charging_session_1.chargePointStopChargingSessionAction,
|
|
426
|
-
charge_point_sync_configuration_1.chargePointSyncConfigurationAction,
|
|
427
|
-
charge_point_trigger_message_charge_point_1.chargePointTriggerMessageChargePointAction,
|
|
428
|
-
charge_point_evse_unlock_1.chargePointEvseUnlockAction,
|
|
429
|
-
charge_point_change_sharing_code_1.chargePointChangeSharingCodeAction,
|
|
430
|
-
charge_point_delete_certificate_1.chargePointDeleteCertificateAction,
|
|
431
|
-
charge_point_install_certificate_1.chargePointInstallCertificateAction,
|
|
432
|
-
charge_point_set_configuration_1.chargePointSetConfigurationAction,
|
|
433
|
-
charge_point_get_installed_certificate_ids_1.chargePointGetInstalledCertificateIdsAction,
|
|
434
|
-
charge_point_update_firmware_1.chargePointUpdateFirmwareAction,
|
|
435
|
-
charge_point_downtime_periods_listing_1.chargePointDowntimePeriodsListingAction,
|
|
436
|
-
charge_point_downtime_period_create_1.chargePointDowntimePeriodCreateAction,
|
|
437
|
-
charge_point_downtime_period_read_1.chargePointDowntimePeriodReadAction,
|
|
438
|
-
charge_point_downtime_period_update_1.chargePointDowntimePeriodUpdateAction,
|
|
439
|
-
charge_point_downtime_period_delete_1.chargePointDowntimePeriodDeleteAction,
|
|
440
|
-
charge_point_models_listing_1.chargePointModelsListingAction,
|
|
441
|
-
charge_point_model_create_1.chargePointModelCreateAction,
|
|
442
|
-
charge_point_model_read_1.chargePointModelReadAction,
|
|
443
|
-
charge_point_model_update_1.chargePointModelUpdateAction,
|
|
444
|
-
charge_point_model_delete_1.chargePointModelDeleteAction,
|
|
445
|
-
charge_point_vendors_listing_1.chargePointVendorsListingAction,
|
|
446
|
-
charge_point_vendor_create_1.chargePointVendorCreateAction,
|
|
447
|
-
charge_point_vendor_read_1.chargePointVendorReadAction,
|
|
448
|
-
charge_point_vendor_update_1.chargePointVendorUpdateAction,
|
|
449
|
-
charge_point_vendor_delete_1.chargePointVendorDeleteAction,
|
|
450
|
-
charge_point_status_read_1.chargePointStatusReadAction,
|
|
451
|
-
charge_point_create_1.chargePointCreateAction,
|
|
452
|
-
charge_points_listing_1.chargePointsListingAction,
|
|
453
|
-
charge_point_update_1.chargePointUpdateAction,
|
|
454
|
-
charge_point_read_1.chargePointReadAction,
|
|
455
|
-
charge_point_delete_1.chargePointDeleteAction,
|
|
456
|
-
charge_point_available_personal_smart_charging_modes_listing_1.chargePointAvailablePersonalSmartChargingModesListingAction,
|
|
457
|
-
charge_point_configurations_listing_1.chargePointConfigurationsListingAction,
|
|
458
|
-
charge_point_configuration_read_1.chargePointConfigurationReadAction,
|
|
459
|
-
charge_point_configuration_update_1.chargePointConfigurationUpdateAction,
|
|
460
|
-
charge_point_evse_create_1.chargePointEvseCreateAction,
|
|
461
|
-
charge_point_evses_listing_1.chargePointEvsesListingAction,
|
|
462
|
-
charge_point_evse_update_1.chargePointEvseUpdateAction,
|
|
463
|
-
charge_point_evse_read_1.chargePointEvseReadAction,
|
|
464
|
-
charge_point_evse_delete_1.chargePointEvseDeleteAction,
|
|
465
|
-
charge_point_evse_connectors_listing_1.chargePointEvseConnectorsListingAction,
|
|
466
|
-
charge_point_evse_connector_create_1.chargePointEvseConnectorCreateAction,
|
|
467
|
-
charge_point_evse_connector_read_1.chargePointEvseConnectorReadAction,
|
|
468
|
-
charge_point_evse_connector_update_1.chargePointEvseConnectorUpdateAction,
|
|
469
|
-
charge_point_evse_connector_delete_1.chargePointEvseConnectorDeleteAction,
|
|
470
|
-
list_charge_point_hardware_status_logs_1.listChargePointHardwareStatusLogsAction,
|
|
471
|
-
get_charge_point_latest_hardware_status_log_1.getChargePointLatestHardwareStatusLogAction,
|
|
472
|
-
get_charge_point_latest_network_status_log_1.getChargePointLatestNetworkStatusLogAction,
|
|
473
|
-
list_charge_point_network_status_logs_1.listChargePointNetworkStatusLogsAction,
|
|
474
|
-
charge_point_personal_smart_charging_preferences_read_1.chargePointPersonalSmartChargingPreferencesReadAction,
|
|
475
|
-
personal_smart_charging_preferences_update_1.personalSmartChargingPreferencesUpdateAction,
|
|
476
|
-
charge_point_shared_partners_listing_1.chargePointSharedPartnersListingAction,
|
|
477
|
-
charge_point_shared_partners_sync_1.chargePointSharedPartnersSyncAction,
|
|
478
|
-
charge_point_share_create_1.chargePointShareCreateAction,
|
|
479
|
-
charge_point_shares_listing_1.chargePointSharesListingAction,
|
|
480
|
-
charge_point_share_read_1.chargePointShareReadAction,
|
|
481
|
-
chareg_point_share_delete_1.charegPointShareDeleteAction,
|
|
482
|
-
charge_point_smart_charging_update_1.chargePointSmartChargingUpdateAction,
|
|
483
|
-
// Circuit actions
|
|
484
|
-
circuit_attach_charge_point_1.circuitAttachChargePointAction,
|
|
485
|
-
circuit_detach_charge_point_1.circuitDetachChargePointAction,
|
|
486
|
-
circuit_set_charge_point_priority_1.circuitSetChargePointPriorityAction,
|
|
487
|
-
circuit_set_charge_point_evse_priority_1.circuitSetChargePointEvsePriorityAction,
|
|
488
|
-
circuit_set_circuit_soc_priority_1.circuitSetCircuitSocPriorityAction,
|
|
489
|
-
circuit_set_session_priority_1.circuitSetSessionPriorityAction,
|
|
490
|
-
// Configuration actions
|
|
491
|
-
configuration_template_apply_to_charge_points_1.configurationTemplateApplyToChargePointsAction,
|
|
492
|
-
configuration_template_bulk_create_variables_1.configurationTemplateBulkCreateVariablesAction,
|
|
493
|
-
list_configuration_templates_1.listConfigurationTemplatesAction,
|
|
494
|
-
create_configuration_template_1.createConfigurationTemplateAction,
|
|
495
|
-
update_configuration_template_1.updateConfigurationTemplateAction,
|
|
496
|
-
get_configuration_template_1.getConfigurationTemplateAction,
|
|
497
|
-
delete_configuration_template_1.deleteConfigurationTemplateAction,
|
|
498
|
-
configuration_template_variable_listing_1.configurationTemplateVariableListingAction,
|
|
499
|
-
configuration_template_variable_create_1.configurationTemplateVariableCreateAction,
|
|
500
|
-
configuration_template_variable_update_1.configurationTemplateVariableUpdateAction,
|
|
501
|
-
configuration_template_variable_delete_1.configurationTemplateVariableDeleteAction,
|
|
502
|
-
// Electricity actions
|
|
503
|
-
electricity_meter_report_consumption_1.electricityMeterReportConsumptionAction,
|
|
504
|
-
electricity_meters_lising_1.electricityMetersLisingAction,
|
|
505
|
-
electricity_meter_create_1.electricityMeterCreateAction,
|
|
506
|
-
electricity_meter_read_1.electricityMeterReadAction,
|
|
507
|
-
electricity_meter_update_1.electricityMeterUpdateAction,
|
|
508
|
-
electricity_meter_delete_1.electricityMeterDeleteAction,
|
|
509
|
-
electricity_rates_listing_1.electricityRatesListingAction,
|
|
510
|
-
electricity_rate_create_1.electricityRateCreateAction,
|
|
511
|
-
electricity_rate_read_1.electricityRateReadAction,
|
|
512
|
-
electricity_rate_update_1.electricityRateUpdateAction,
|
|
513
|
-
electricity_rate_delete_1.electricityRateDeleteAction,
|
|
514
|
-
electricity_rate_energy_mix_read_1.electricityRateEnergyMixReadAction,
|
|
515
|
-
electricity_rate_energy_mix_update_1.electricityRateEnergyMixUpdateAction,
|
|
516
|
-
electricity_rate_price_periods_listing_1.electricityRatePricePeriodsListingAction,
|
|
517
|
-
electricity_rate_price_periods_date_listing_1.electricityRatePricePeriodsDateListingAction,
|
|
518
|
-
electricity_rate_price_periods_date_read_1.electricityRatePricePeriodsDateReadAction,
|
|
519
|
-
electricity_rate_price_periods_date_create_or_update_1.electricityRatePricePeriodsDateCreateOrUpdateAction,
|
|
520
|
-
electricity_rate_price_periods_date_delete_1.electricityRatePricePeriodsDateDeleteAction,
|
|
521
|
-
electricity_rate_price_periods_week_day_listing_1.electricityRatePricePeriodsWeekDayListingAction,
|
|
522
|
-
electricity_rate_price_periods_week_day_read_1.electricityRatePricePeriodsWeekDayReadAction,
|
|
523
|
-
electricity_rate_price_periods_week_day_createa_or_update_1.electricityRatePricePeriodsWeekDayCreateaOrUpdateAction,
|
|
524
|
-
electricity_rate_price_periods_week_day_delete_1.electricityRatePricePeriodsWeekDayDeleteAction,
|
|
525
|
-
// Evse actions
|
|
526
|
-
evse_start_charging_with_evse_id_1.evseStartChargingWithEvseIdAction,
|
|
527
|
-
evse_trigger_message_1.evseTriggerMessageAction,
|
|
528
|
-
evse_downtime_periods_listing_1.evseDowntimePeriodsListingAction,
|
|
529
|
-
evse_downtime_period_create_1.evseDowntimePeriodCreateAction,
|
|
530
|
-
evse_downtime_period_read_1.evseDowntimePeriodReadAction,
|
|
531
|
-
evse_downtime_period_update_1.evseDowntimePeriodUpdateAction,
|
|
532
|
-
evse_downtime_period_delete_1.evseDowntimePeriodDeleteAction,
|
|
533
|
-
// Flexibility actions
|
|
534
|
-
change_flexibility_asset_status_1.changeFlexibilityAssetStatusAction,
|
|
535
|
-
flexibility_asset_create_activation_request_1.flexibilityAssetCreateActivationRequestAction,
|
|
536
|
-
list_flexibility_activation_requests_1.listFlexibilityActivationRequestsAction,
|
|
537
|
-
get_flexibility_activation_request_1.getFlexibilityActivationRequestAction,
|
|
538
|
-
create_flexibility_asset_1.createFlexibilityAssetAction,
|
|
539
|
-
list_flexibility_assets_1.listFlexibilityAssetsAction,
|
|
540
|
-
update_flexibility_asset_1.updateFlexibilityAssetAction,
|
|
541
|
-
get_flexibility_asset_1.getFlexibilityAssetAction,
|
|
542
|
-
delete_flexibility_asset_1.deleteFlexibilityAssetAction,
|
|
543
|
-
get_historical_time_series_1.getHistoricalTimeSeriesAction,
|
|
544
|
-
get_time_series_forecast_1.getTimeSeriesForecastAction,
|
|
545
|
-
// Id actions
|
|
546
|
-
certificate_reissue_an_emaid_1.certificateReissueAnEmaidAction,
|
|
547
|
-
id_tags_listing_1.idTagsListingAction,
|
|
548
|
-
id_tag_create_1.idTagCreateAction,
|
|
549
|
-
id_tag_read_1.idTagReadAction,
|
|
550
|
-
id_tag_update_1.idTagUpdateAction,
|
|
551
|
-
id_tag_delete_1.idTagDeleteAction,
|
|
552
|
-
// Locations actions
|
|
553
|
-
location_check_booking_availability_1.locationCheckBookingAvailabilityAction,
|
|
554
|
-
location_create_1.locationCreateAction,
|
|
555
|
-
locations_listing_1.locationsListingAction,
|
|
556
|
-
location_update_1.locationUpdateAction,
|
|
557
|
-
location_read_1.locationReadAction,
|
|
558
|
-
location_delete_1.locationDeleteAction,
|
|
559
|
-
location_charging_zones_listing_1.locationChargingZonesListingAction,
|
|
560
|
-
location_charging_zone_create_1.locationChargingZoneCreateAction,
|
|
561
|
-
location_charging_zone_read_1.locationChargingZoneReadAction,
|
|
562
|
-
location_charging_zone_update_1.locationChargingZoneUpdateAction,
|
|
563
|
-
location_charging_zone_delete_1.locationChargingZoneDeleteAction,
|
|
564
|
-
// Notifications actions
|
|
565
|
-
notifications_resend_failed_1.notificationsResendFailedAction,
|
|
566
|
-
// Parking actions
|
|
567
|
-
parking_space_update_occupancy_status_1.parkingSpaceUpdateOccupancyStatusAction,
|
|
568
|
-
create_parking_space_1.createParkingSpaceAction,
|
|
569
|
-
list_parking_space_1.listParkingSpaceAction,
|
|
570
|
-
update_parking_space_1.updateParkingSpaceAction,
|
|
571
|
-
get_parking_space_1.getParkingSpaceAction,
|
|
572
|
-
delete_parking_space_1.deleteParkingSpaceAction,
|
|
573
|
-
// Provisioning actions
|
|
574
|
-
certificate_issue_an_emaid_1.certificateIssueAnEmaidAction,
|
|
575
|
-
create_pc_id_1.createPcIdAction,
|
|
576
|
-
list_pc_ids_1.listPcIdsAction,
|
|
577
|
-
update_pc_id_1.updatePcIdAction,
|
|
578
|
-
get_pc_id_1.getPcIdAction,
|
|
579
|
-
delete_pc_id_1.deletePcIdAction,
|
|
580
|
-
// Reservation actions
|
|
581
|
-
reservation_cancel_1.reservationCancelAction,
|
|
582
|
-
// Roaming actions
|
|
583
|
-
update_custom_tariff_filter_tariff_1.updateCustomTariffFilterTariffAction,
|
|
584
|
-
list_roaming_connections_1.listRoamingConnectionsAction,
|
|
585
|
-
get_roaming_connection_1.getRoamingConnectionAction,
|
|
586
|
-
roaming_operators_listing_1.roamingOperatorsListingAction,
|
|
587
|
-
roaming_operator_read_1.roamingOperatorReadAction,
|
|
588
|
-
roaming_operator_update_1.roamingOperatorUpdateAction,
|
|
589
|
-
list_roaming_custom_tariff_filters_1.listRoamingCustomTariffFiltersAction,
|
|
590
|
-
create_roaming_custom_tariff_filter_1.createRoamingCustomTariffFilterAction,
|
|
591
|
-
reorder_roaming_custom_tariff_filters_1.reorderRoamingCustomTariffFiltersAction,
|
|
592
|
-
get_roaming_custom_tariff_filter_1.getRoamingCustomTariffFilterAction,
|
|
593
|
-
update_roaming_custom_tariff_filter_1.updateRoamingCustomTariffFilterAction,
|
|
594
|
-
delete_roaming_custom_tariff_filter_1.deleteRoamingCustomTariffFilterAction,
|
|
595
|
-
roaming_providers_listing_1.roamingProvidersListingAction,
|
|
596
|
-
roaming_provider_create_1.roamingProviderCreateAction,
|
|
597
|
-
roaming_provider_read_1.roamingProviderReadAction,
|
|
598
|
-
roaming_provider_update_1.roamingProviderUpdateAction,
|
|
599
|
-
roaming_provider_delete_1.roamingProviderDeleteAction,
|
|
600
|
-
roaming_tariffs_listing_1.roamingTariffsListingAction,
|
|
601
|
-
roaming_tariff_read_1.roamingTariffReadAction,
|
|
602
|
-
roaming_tariff_update_1.roamingTariffUpdateAction,
|
|
603
|
-
// Session actions
|
|
604
|
-
session_assign_to_user_1.sessionAssignToUserAction,
|
|
605
|
-
session_retry_payment_1.sessionRetryPaymentAction,
|
|
606
|
-
// Subscription actions
|
|
607
|
-
subscription_plan_replace_1.subscriptionPlanReplaceAction,
|
|
608
|
-
subscription_plans_listing_1.subscriptionPlansListingAction,
|
|
609
|
-
subscription_plan_create_1.subscriptionPlanCreateAction,
|
|
610
|
-
subscription_plan_read_1.subscriptionPlanReadAction,
|
|
611
|
-
subscription_plan_update_1.subscriptionPlanUpdateAction,
|
|
612
|
-
subscription_plan_delete_1.subscriptionPlanDeleteAction,
|
|
613
|
-
// Tariffs actions
|
|
614
|
-
tariff_set_display_information_1.tariffSetDisplayInformationAction,
|
|
615
|
-
tariffs_listing_1.tariffsListingAction,
|
|
616
|
-
tariff_create_1.tariffCreateAction,
|
|
617
|
-
tariff_read_1.tariffReadAction,
|
|
618
|
-
tariff_update_1.tariffUpdateAction,
|
|
619
|
-
tariff_delete_1.tariffDeleteAction,
|
|
620
|
-
// Transactions actions
|
|
621
|
-
transaction_issue_invoice_1.transactionIssueInvoiceAction,
|
|
622
|
-
transaction_resend_invoice_1.transactionResendInvoiceAction,
|
|
623
|
-
transaction_update_payment_reference_1.transactionUpdatePaymentReferenceAction,
|
|
624
|
-
transactions_listing_1.transactionsListingAction,
|
|
625
|
-
transactions_create_1.transactionsCreateAction,
|
|
626
|
-
transaction_read_1.transactionReadAction,
|
|
627
|
-
transaction_update_1.transactionUpdateAction,
|
|
628
|
-
// Users actions
|
|
629
|
-
user_activate_subscription_1.userActivateSubscriptionAction,
|
|
630
|
-
user_add_balance_1.userAddBalanceAction,
|
|
631
|
-
user_apply_custom_fee_1.userApplyCustomFeeAction,
|
|
632
|
-
user_cancel_subscription_1.userCancelSubscriptionAction,
|
|
633
|
-
user_change_status_1.userChangeStatusAction,
|
|
634
|
-
user_clear_subscription_amount_due_1.userClearSubscriptionAmountDueAction,
|
|
635
|
-
user_export_all_private_data_1.userExportAllPrivateDataAction,
|
|
636
|
-
user_redeem_voucher_1.userRedeemVoucherAction,
|
|
637
|
-
users_listing_1.usersListingAction,
|
|
638
|
-
user_create_1.userCreateAction,
|
|
639
|
-
user_read_1.userReadAction,
|
|
640
|
-
user_update_1.userUpdateAction,
|
|
641
|
-
user_delete_1.userDeleteAction,
|
|
642
|
-
invoice_details_read_1.invoiceDetailsReadAction,
|
|
643
|
-
invoice_details_create_or_update_1.invoiceDetailsCreateOrUpdateAction,
|
|
644
|
-
payment_methods_listing_1.paymentMethodsListingAction,
|
|
645
|
-
payment_method_create_1.paymentMethodCreateAction,
|
|
646
|
-
payment_method_read_1.paymentMethodReadAction,
|
|
647
|
-
payment_method_update_1.paymentMethodUpdateAction,
|
|
648
|
-
payment_method_delete_1.paymentMethodDeleteAction,
|
|
649
|
-
// V2.0 actions
|
|
650
|
-
notifications_subscribe_1.notificationsSubscribeAction,
|
|
651
|
-
notifications_listing_1.notificationsListingAction,
|
|
652
|
-
notification_read_1.notificationReadAction,
|
|
653
|
-
notifications_create_1.notificationsCreateAction,
|
|
654
|
-
notifications_unsubscribe_1.notificationsUnsubscribeAction,
|
|
655
|
-
// Authorizations actions
|
|
656
|
-
authorizations_listing_1.authorizationsListingAction,
|
|
657
|
-
authorization_read_1.authorizationReadAction,
|
|
658
|
-
// Booking actions
|
|
659
|
-
booking_requests_listing_1.bookingRequestsListingAction,
|
|
660
|
-
booking_request_create_1.bookingRequestCreateAction,
|
|
661
|
-
booking_request_read_1.bookingRequestReadAction,
|
|
662
|
-
// Bookings actions
|
|
663
|
-
bookings_listing_1.bookingsListingAction,
|
|
664
|
-
booking_read_1.bookingReadAction,
|
|
665
|
-
// Cdrs actions
|
|
666
|
-
cdrs_listing_1.cdrsListingAction,
|
|
667
|
-
cdr_read_1.cdrReadAction,
|
|
668
|
-
// Circuits actions
|
|
669
|
-
circuits_listing_1.circuitsListingAction,
|
|
670
|
-
circuit_create_1.circuitCreateAction,
|
|
671
|
-
circuit_read_1.circuitReadAction,
|
|
672
|
-
circuit_update_1.circuitUpdateAction,
|
|
673
|
-
circuit_delete_1.circuitDeleteAction,
|
|
674
|
-
circuit_charge_point_priorities_listing_1.circuitChargePointPrioritiesListingAction,
|
|
675
|
-
circuit_consumption_1.circuitConsumptionAction,
|
|
676
|
-
circuit_soc_priorities_listing_1.circuitSocPrioritiesListingAction,
|
|
677
|
-
circuit_unmanaged_load_read_1.circuitUnmanagedLoadReadAction,
|
|
678
|
-
circuit_user_priorities_listing_1.circuitUserPrioritiesListingAction,
|
|
679
|
-
circuit_user_priority_create_1.circuitUserPriorityCreateAction,
|
|
680
|
-
circuit_user_priority_read_1.circuitUserPriorityReadAction,
|
|
681
|
-
circuit_user_priority_update_1.circuitUserPriorityUpdateAction,
|
|
682
|
-
circuit_user_priority_delete_1.circuitUserPriorityDeleteAction,
|
|
683
|
-
// Contact actions
|
|
684
|
-
contact_details_read_1.contactDetailsReadAction,
|
|
685
|
-
contact_details_update_1.contactDetailsUpdateAction,
|
|
686
|
-
contact_details_delete_1.contactDetailsDeleteAction,
|
|
687
|
-
// Currencies actions
|
|
688
|
-
currencies_listing_1.currenciesListingAction,
|
|
689
|
-
currency_create_1.currencyCreateAction,
|
|
690
|
-
currency_read_1.currencyReadAction,
|
|
691
|
-
currency_update_1.currencyUpdateAction,
|
|
692
|
-
// Currency actions
|
|
693
|
-
create_currency_rate_1.createCurrencyRateAction,
|
|
694
|
-
list_currency_rates_1.listCurrencyRatesAction,
|
|
695
|
-
update_currency_rate_1.updateCurrencyRateAction,
|
|
696
|
-
get_currency_rate_1.getCurrencyRateAction,
|
|
697
|
-
delete_currency_rate_1.deleteCurrencyRateAction,
|
|
698
|
-
// Custom actions
|
|
699
|
-
custom_fees_listing_1.customFeesListingAction,
|
|
700
|
-
custom_fee_read_1.customFeeReadAction,
|
|
701
|
-
// Downtime actions
|
|
702
|
-
get_downtime_period_notices_1.getDowntimePeriodNoticesAction,
|
|
703
|
-
post_downtime_period_notice_1.postDowntimePeriodNoticeAction,
|
|
704
|
-
get_downtime_period_notice_1.getDowntimePeriodNoticeAction,
|
|
705
|
-
patch_downtime_period_notice_1.patchDowntimePeriodNoticeAction,
|
|
706
|
-
delete_downtime_period_notice_1.deleteDowntimePeriodNoticeAction,
|
|
707
|
-
// Evses actions
|
|
708
|
-
list_evse_hardware_status_logs_1.listEvseHardwareStatusLogsAction,
|
|
709
|
-
get_evse_latest_hardware_status_log_1.getEvseLatestHardwareStatusLogAction,
|
|
710
|
-
evse_create_1.evseCreateAction,
|
|
711
|
-
evses_listing_1.evsesListingAction,
|
|
712
|
-
evse_update_1.evseUpdateAction,
|
|
713
|
-
evse_read_1.evseReadAction,
|
|
714
|
-
evse_delete_1.evseDeleteAction,
|
|
715
|
-
// Faqs actions
|
|
716
|
-
faqs_listing_1.faqsListingAction,
|
|
717
|
-
faq_create_1.faqCreateAction,
|
|
718
|
-
faq_read_1.faqReadAction,
|
|
719
|
-
faq_update_1.faqUpdateAction,
|
|
720
|
-
faq_delete_1.faqDeleteAction,
|
|
721
|
-
// Firmware actions
|
|
722
|
-
firmware_versions_listing_1.firmwareVersionsListingAction,
|
|
723
|
-
firmware_version_read_1.firmwareVersionReadAction,
|
|
724
|
-
firmware_version_attached_models_1.firmwareVersionAttachedModelsAction,
|
|
725
|
-
// Installer actions
|
|
726
|
-
get_installer_jobs_list_1.getInstallerJobsListAction,
|
|
727
|
-
create_installer_job_1.createInstallerJobAction,
|
|
728
|
-
get_installer_job_1.getInstallerJobAction,
|
|
729
|
-
update_installer_job_1.updateInstallerJobAction,
|
|
730
|
-
delete_installer_job_1.deleteInstallerJobAction,
|
|
731
|
-
// Invoices actions
|
|
732
|
-
invoices_listing_1.invoicesListingAction,
|
|
733
|
-
invoice_read_1.invoiceReadAction,
|
|
734
|
-
// Partner actions
|
|
735
|
-
partner_contracts_listing_1.partnerContractsListingAction,
|
|
736
|
-
partner_contract_create_1.partnerContractCreateAction,
|
|
737
|
-
partner_contract_read_1.partnerContractReadAction,
|
|
738
|
-
partner_contract_update_1.partnerContractUpdateAction,
|
|
739
|
-
partner_contract_delete_1.partnerContractDeleteAction,
|
|
740
|
-
expenses_listing_1.expensesListingAction,
|
|
741
|
-
partner_invites_listing_1.partnerInvitesListingAction,
|
|
742
|
-
partner_invite_create_1.partnerInviteCreateAction,
|
|
743
|
-
partner_invite_read_1.partnerInviteReadAction,
|
|
744
|
-
partner_invite_update_1.partnerInviteUpdateAction,
|
|
745
|
-
partner_invite_delete_1.partnerInviteDeleteAction,
|
|
746
|
-
revenues_listing_1.revenuesListingAction,
|
|
747
|
-
partner_settlement_reports_listing_1.partnerSettlementReportsListingAction,
|
|
748
|
-
partner_settlement_report_read_1.partnerSettlementReportReadAction,
|
|
749
|
-
partner_settlement_report_partner_settlement_records_listing_1.partnerSettlementReportPartnerSettlementRecordsListingAction,
|
|
750
|
-
partner_settlement_report_partner_settlement_record_create_1.partnerSettlementReportPartnerSettlementRecordCreateAction,
|
|
751
|
-
partnert_settlement_report_partner_settlement_record_read_1.partnertSettlementReportPartnerSettlementRecordReadAction,
|
|
752
|
-
partner_settlement_report_partner_settlement_record_update_1.partnerSettlementReportPartnerSettlementRecordUpdateAction,
|
|
753
|
-
partner_settlement_report_partner_settlement_record_delete_1.partnerSettlementReportPartnerSettlementRecordDeleteAction,
|
|
754
|
-
// Partners actions
|
|
755
|
-
partners_listing_1.partnersListingAction,
|
|
756
|
-
partner_create_1.partnerCreateAction,
|
|
757
|
-
partner_read_1.partnerReadAction,
|
|
758
|
-
partner_update_1.partnerUpdateAction,
|
|
759
|
-
partner_delete_1.partnerDeleteAction,
|
|
760
|
-
// Payment actions
|
|
761
|
-
get_payment_terminals_1.getPaymentTerminalsAction,
|
|
762
|
-
create_payment_terminal_1.createPaymentTerminalAction,
|
|
763
|
-
get_payment_terminal_1.getPaymentTerminalAction,
|
|
764
|
-
update_payment_terminal_1.updatePaymentTerminalAction,
|
|
765
|
-
delete_payment_terminal_1.deletePaymentTerminalAction,
|
|
766
|
-
// Receipts actions
|
|
767
|
-
receipts_listing_1.receiptsListingAction,
|
|
768
|
-
receipt_read_1.receiptReadAction,
|
|
769
|
-
// Reservations actions
|
|
770
|
-
reservations_listing_1.reservationsListingAction,
|
|
771
|
-
reservation_read_1.reservationReadAction,
|
|
772
|
-
// Security actions
|
|
773
|
-
security_events_listing_1.securityEventsListingAction,
|
|
774
|
-
security_event_read_1.securityEventReadAction,
|
|
775
|
-
// Sessions actions
|
|
776
|
-
sessions_listing_1.sessionsListingAction,
|
|
777
|
-
session_read_1.sessionReadAction,
|
|
778
|
-
sessions_consumption_stats_read_1.sessionsConsumptionStatsReadAction,
|
|
779
|
-
// Settings actions
|
|
780
|
-
settings_listing_1.settingsListingAction,
|
|
781
|
-
// Sub actions
|
|
782
|
-
sub_operators_listing_1.subOperatorsListingAction,
|
|
783
|
-
sub_operator_read_1.subOperatorReadAction,
|
|
784
|
-
// Subscriptions actions
|
|
785
|
-
subscriptions_listing_1.subscriptionsListingAction,
|
|
786
|
-
subscription_read_1.subscriptionReadAction,
|
|
787
|
-
// Tariff actions
|
|
788
|
-
tariff_groups_listing_1.tariffGroupsListingAction,
|
|
789
|
-
tariff_group_create_1.tariffGroupCreateAction,
|
|
790
|
-
tariff_group_read_1.tariffGroupReadAction,
|
|
791
|
-
tariff_group_update_1.tariffGroupUpdateAction,
|
|
792
|
-
tariff_group_delete_1.tariffGroupDeleteAction,
|
|
793
|
-
tariff_snapshot_read_1.tariffSnapshotReadAction,
|
|
794
|
-
// Tax actions
|
|
795
|
-
tax_identification_numbers_listing_1.taxIdentificationNumbersListingAction,
|
|
796
|
-
tax_identification_number_create_1.taxIdentificationNumberCreateAction,
|
|
797
|
-
tax_identification_number_read_1.taxIdentificationNumberReadAction,
|
|
798
|
-
tax_identification_number_update_1.taxIdentificationNumberUpdateAction,
|
|
799
|
-
tax_identification_number_delete_1.taxIdentificationNumberDeleteAction,
|
|
800
|
-
// Taxes actions
|
|
801
|
-
taxes_listing_1.taxesListingAction,
|
|
802
|
-
tax_create_1.taxCreateAction,
|
|
803
|
-
tax_read_1.taxReadAction,
|
|
804
|
-
tax_update_1.taxUpdateAction,
|
|
805
|
-
tax_delete_1.taxDeleteAction,
|
|
806
|
-
// Templates actions
|
|
807
|
-
templates_listing_1.templatesListingAction,
|
|
808
|
-
// Terms actions
|
|
809
|
-
terms_and_policies_listing_1.termsAndPoliciesListingAction,
|
|
810
|
-
terms_and_policies_read_1.termsAndPoliciesReadAction,
|
|
811
|
-
// Top actions
|
|
812
|
-
top_up_packages_listing_1.topUpPackagesListingAction,
|
|
813
|
-
top_up_packag_create_1.topUpPackagCreateAction,
|
|
814
|
-
top_up_package_read_1.topUpPackageReadAction,
|
|
815
|
-
top_up_package_update_1.topUpPackageUpdateAction,
|
|
816
|
-
top_up_package_delete_1.topUpPackageDeleteAction,
|
|
817
|
-
// User actions
|
|
818
|
-
user_groups_listing_1.userGroupsListingAction,
|
|
819
|
-
user_group_create_1.userGroupCreateAction,
|
|
820
|
-
user_group_read_1.userGroupReadAction,
|
|
821
|
-
user_group_update_1.userGroupUpdateAction,
|
|
822
|
-
user_group_delete_1.userGroupDeleteAction,
|
|
823
|
-
// Utilities actions
|
|
824
|
-
list_utilities_1.listUtilitiesAction,
|
|
825
|
-
create_utility_1.createUtilityAction,
|
|
826
|
-
get_utility_1.getUtilityAction,
|
|
827
|
-
update_utility_1.updateUtilityAction,
|
|
828
|
-
delete_utility_1.deleteUtilityAction,
|
|
829
|
-
// Vendor actions
|
|
830
|
-
vendor_error_codes_listing_1.vendorErrorCodesListingAction,
|
|
831
|
-
vendor_error_code_create_1.vendorErrorCodeCreateAction,
|
|
832
|
-
vendor_error_code_read_1.vendorErrorCodeReadAction,
|
|
833
|
-
vendor_error_code_update_1.vendorErrorCodeUpdateAction,
|
|
834
|
-
vendor_error_code_delete_1.vendorErrorCodeDeleteAction,
|
|
835
|
-
// Vouchers actions
|
|
836
|
-
vouchers_listing_1.vouchersListingAction,
|
|
837
|
-
voucher_create_1.voucherCreateAction,
|
|
838
|
-
voucher_read_1.voucherReadAction,
|
|
839
|
-
voucher_update_1.voucherUpdateAction,
|
|
840
|
-
voucher_delete_1.voucherDeleteAction
|
|
841
|
-
],
|
|
842
|
-
triggers: [
|
|
843
|
-
webhook_1.webhookTrigger
|
|
844
|
-
],
|
|
845
|
-
});
|
|
846
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";var Ff=Object.create;var Xe=Object.defineProperty;var Bf=Object.getOwnPropertyDescriptor;var $f=Object.getOwnPropertyNames;var Gf=Object.getPrototypeOf,Hf=Object.prototype.hasOwnProperty;var c=(e,r)=>Xe(e,"name",{value:r,configurable:!0});var k=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),va=(e,r)=>{for(var a in r)Xe(e,a,{get:r[a],enumerable:!0})},Pa=(e,r,a,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let d of $f(r))!Hf.call(e,d)&&d!==a&&Xe(e,d,{get:()=>r[d],enumerable:!(i=Bf(r,d))||i.enumerable});return e};var Le=(e,r,a)=>(a=e!=null?Ff(Gf(e)):{},Pa(r||!e||!e.__esModule?Xe(a,"default",{value:e,enumerable:!0}):a,e)),Wf=e=>Pa(Xe({},"__esModule",{value:!0}),e);var Li=k((Oi,$t)=>{(function(e){"use strict";let r="(0?\\d+|0x[a-f0-9]+)",a={fourOctet:new RegExp(`^${r}\\.${r}\\.${r}\\.${r}$`,"i"),threeOctet:new RegExp(`^${r}\\.${r}\\.${r}$`,"i"),twoOctet:new RegExp(`^${r}\\.${r}$`,"i"),longValue:new RegExp(`^${r}$`,"i")},i=new RegExp("^0[0-7]+$","i"),d=new RegExp("^0x[a-f0-9]+$","i"),h="%[0-9a-z]{1,}",b="(?:[0-9a-f]+::?)+",g={zoneIndex:new RegExp(h,"i"),native:new RegExp(`^(::)?(${b})?([0-9a-f]+)?(::)?(${h})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${r}\\.${r}\\.${r}\\.${r}(${h})?)$`,"i"),transitional:new RegExp(`^((?:${b})|(?:::)(?:${b})?)${r}\\.${r}\\.${r}\\.${r}(${h})?$`,"i")};function S(y,P){if(y.indexOf("::")!==y.lastIndexOf("::"))return null;let C=0,N=-1,_=(y.match(g.zoneIndex)||[])[0],E,K;for(_&&(_=_.substring(1),y=y.replace(/%.+$/,""));(N=y.indexOf(":",N+1))>=0;)C++;if(y.substr(0,2)==="::"&&C--,y.substr(-2,2)==="::"&&C--,C>P)return null;for(K=P-C,E=":";K--;)E+="0:";return y=y.replace("::",E),y[0]===":"&&(y=y.slice(1)),y[y.length-1]===":"&&(y=y.slice(0,-1)),P=function(){let se=y.split(":"),de=[];for(let Je=0;Je<se.length;Je++)de.push(parseInt(se[Je],16));return de}(),{parts:P,zoneId:_}}c(S,"expandIPv6");function T(y,P,C,N){if(y.length!==P.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let _=0,E;for(;N>0;){if(E=C-N,E<0&&(E=0),y[_]>>E!==P[_]>>E)return!1;N-=C,_+=1}return!0}c(T,"matchCIDR");function I(y){if(d.test(y))return parseInt(y,16);if(y[0]==="0"&&!isNaN(parseInt(y[1],10))){if(i.test(y))return parseInt(y,8);throw new Error(`ipaddr: cannot parse ${y} as octal`)}return parseInt(y,10)}c(I,"parseIntAuto");function D(y,P){for(;y.length<P;)y=`0${y}`;return y}c(D,"padPart");let w={};w.IPv4=function(){function y(P){if(P.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let C,N;for(C=0;C<P.length;C++)if(N=P[C],!(0<=N&&N<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=P}return c(y,"IPv4"),y.prototype.SpecialRanges={unspecified:[[new y([0,0,0,0]),8]],broadcast:[[new y([255,255,255,255]),32]],multicast:[[new y([224,0,0,0]),4]],linkLocal:[[new y([169,254,0,0]),16]],loopback:[[new y([127,0,0,0]),8]],carrierGradeNat:[[new y([100,64,0,0]),10]],private:[[new y([10,0,0,0]),8],[new y([172,16,0,0]),12],[new y([192,168,0,0]),16]],reserved:[[new y([192,0,0,0]),24],[new y([192,0,2,0]),24],[new y([192,88,99,0]),24],[new y([198,18,0,0]),15],[new y([198,51,100,0]),24],[new y([203,0,113,0]),24],[new y([240,0,0,0]),4]],as112:[[new y([192,175,48,0]),24],[new y([192,31,196,0]),24]],amt:[[new y([192,52,193,0]),24]]},y.prototype.kind=function(){return"ipv4"},y.prototype.match=function(P,C){let N;if(C===void 0&&(N=P,P=N[0],C=N[1]),P.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return T(this.octets,P.octets,8,C)},y.prototype.prefixLengthFromSubnetMask=function(){let P=0,C=!1,N={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},_,E,K;for(_=3;_>=0;_-=1)if(E=this.octets[_],E in N){if(K=N[E],C&&K!==0)return null;K!==8&&(C=!0),P+=K}else return null;return 32-P},y.prototype.range=function(){return w.subnetMatch(this,this.SpecialRanges)},y.prototype.toByteArray=function(){return this.octets.slice(0)},y.prototype.toIPv4MappedAddress=function(){return w.IPv6.parse(`::ffff:${this.toString()}`)},y.prototype.toNormalizedString=function(){return this.toString()},y.prototype.toString=function(){return this.octets.join(".")},y}(),w.IPv4.broadcastAddressFromCIDR=function(y){try{let P=this.parseCIDR(y),C=P[0].toByteArray(),N=this.subnetMaskFromPrefixLength(P[1]).toByteArray(),_=[],E=0;for(;E<4;)_.push(parseInt(C[E],10)|parseInt(N[E],10)^255),E++;return new this(_)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},w.IPv4.isIPv4=function(y){return this.parser(y)!==null},w.IPv4.isValid=function(y){try{return new this(this.parser(y)),!0}catch{return!1}},w.IPv4.isValidCIDR=function(y){try{return this.parseCIDR(y),!0}catch{return!1}},w.IPv4.isValidFourPartDecimal=function(y){return!!(w.IPv4.isValid(y)&&y.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},w.IPv4.isValidCIDRFourPartDecimal=function(y){let P=y.match(/^(.+)\/(\d+)$/);return!w.IPv4.isValidCIDR(y)||!P?!1:w.IPv4.isValidFourPartDecimal(P[1])},w.IPv4.networkAddressFromCIDR=function(y){let P,C,N,_,E;try{for(P=this.parseCIDR(y),N=P[0].toByteArray(),E=this.subnetMaskFromPrefixLength(P[1]).toByteArray(),_=[],C=0;C<4;)_.push(parseInt(N[C],10)&parseInt(E[C],10)),C++;return new this(_)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},w.IPv4.parse=function(y){let P=this.parser(y);if(P===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(P)},w.IPv4.parseCIDR=function(y){let P;if(P=y.match(/^(.+)\/(\d+)$/)){let C=parseInt(P[2]);if(C>=0&&C<=32){let N=[this.parse(P[1]),C];return Object.defineProperty(N,"toString",{value:c(function(){return this.join("/")},"value")}),N}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},w.IPv4.parser=function(y){let P,C,N;if(P=y.match(a.fourOctet))return function(){let _=P.slice(1,6),E=[];for(let K=0;K<_.length;K++)C=_[K],E.push(I(C));return E}();if(P=y.match(a.longValue)){if(N=I(P[1]),N>4294967295||N<0)throw new Error("ipaddr: address outside defined range");return function(){let _=[],E;for(E=0;E<=24;E+=8)_.push(N>>E&255);return _}().reverse()}else return(P=y.match(a.twoOctet))?function(){let _=P.slice(1,4),E=[];if(N=I(_[1]),N>16777215||N<0)throw new Error("ipaddr: address outside defined range");return E.push(I(_[0])),E.push(N>>16&255),E.push(N>>8&255),E.push(N&255),E}():(P=y.match(a.threeOctet))?function(){let _=P.slice(1,5),E=[];if(N=I(_[2]),N>65535||N<0)throw new Error("ipaddr: address outside defined range");return E.push(I(_[0])),E.push(I(_[1])),E.push(N>>8&255),E.push(N&255),E}():null},w.IPv4.subnetMaskFromPrefixLength=function(y){if(y=parseInt(y),y<0||y>32)throw new Error("ipaddr: invalid IPv4 prefix length");let P=[0,0,0,0],C=0,N=Math.floor(y/8);for(;C<N;)P[C]=255,C++;return N<4&&(P[N]=Math.pow(2,y%8)-1<<8-y%8),new this(P)},w.IPv6=function(){function y(P,C){let N,_;if(P.length===16)for(this.parts=[],N=0;N<=14;N+=2)this.parts.push(P[N]<<8|P[N+1]);else if(P.length===8)this.parts=P;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(N=0;N<this.parts.length;N++)if(_=this.parts[N],!(0<=_&&_<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");C&&(this.zoneId=C)}return c(y,"IPv6"),y.prototype.SpecialRanges={unspecified:[new y([0,0,0,0,0,0,0,0]),128],linkLocal:[new y([65152,0,0,0,0,0,0,0]),10],multicast:[new y([65280,0,0,0,0,0,0,0]),8],loopback:[new y([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new y([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new y([0,0,0,0,0,65535,0,0]),96],discard:[new y([256,0,0,0,0,0,0,0]),64],rfc6145:[new y([0,0,0,0,65535,0,0,0]),96],rfc6052:[new y([100,65435,0,0,0,0,0,0]),96],"6to4":[new y([8194,0,0,0,0,0,0,0]),16],teredo:[new y([8193,0,0,0,0,0,0,0]),32],benchmarking:[new y([8193,2,0,0,0,0,0,0]),48],amt:[new y([8193,3,0,0,0,0,0,0]),32],as112v6:[[new y([8193,4,274,0,0,0,0,0]),48],[new y([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new y([8193,16,0,0,0,0,0,0]),28],orchid2:[new y([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new y([8193,48,0,0,0,0,0,0]),28],reserved:[[new y([8193,0,0,0,0,0,0,0]),23],[new y([8193,3512,0,0,0,0,0,0]),32]]},y.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},y.prototype.kind=function(){return"ipv6"},y.prototype.match=function(P,C){let N;if(C===void 0&&(N=P,P=N[0],C=N[1]),P.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return T(this.parts,P.parts,16,C)},y.prototype.prefixLengthFromSubnetMask=function(){let P=0,C=!1,N={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},_,E;for(let K=7;K>=0;K-=1)if(_=this.parts[K],_ in N){if(E=N[_],C&&E!==0)return null;E!==16&&(C=!0),P+=E}else return null;return 128-P},y.prototype.range=function(){return w.subnetMatch(this,this.SpecialRanges)},y.prototype.toByteArray=function(){let P,C=[],N=this.parts;for(let _=0;_<N.length;_++)P=N[_],C.push(P>>8),C.push(P&255);return C},y.prototype.toFixedLengthString=function(){let P=function(){let N=[];for(let _=0;_<this.parts.length;_++)N.push(D(this.parts[_].toString(16),4));return N}.call(this).join(":"),C="";return this.zoneId&&(C=`%${this.zoneId}`),P+C},y.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let P=this.parts.slice(-2),C=P[0],N=P[1];return new w.IPv4([C>>8,C&255,N>>8,N&255])},y.prototype.toNormalizedString=function(){let P=function(){let N=[];for(let _=0;_<this.parts.length;_++)N.push(this.parts[_].toString(16));return N}.call(this).join(":"),C="";return this.zoneId&&(C=`%${this.zoneId}`),P+C},y.prototype.toRFC5952String=function(){let P=/((^|:)(0(:|$)){2,})/g,C=this.toNormalizedString(),N=0,_=-1,E;for(;E=P.exec(C);)E[0].length>_&&(N=E.index,_=E[0].length);return _<0?C:`${C.substring(0,N)}::${C.substring(N+_)}`},y.prototype.toString=function(){return this.toRFC5952String()},y}(),w.IPv6.broadcastAddressFromCIDR=function(y){try{let P=this.parseCIDR(y),C=P[0].toByteArray(),N=this.subnetMaskFromPrefixLength(P[1]).toByteArray(),_=[],E=0;for(;E<16;)_.push(parseInt(C[E],10)|parseInt(N[E],10)^255),E++;return new this(_)}catch(P){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${P})`)}},w.IPv6.isIPv6=function(y){return this.parser(y)!==null},w.IPv6.isValid=function(y){if(typeof y=="string"&&y.indexOf(":")===-1)return!1;try{let P=this.parser(y);return new this(P.parts,P.zoneId),!0}catch{return!1}},w.IPv6.isValidCIDR=function(y){if(typeof y=="string"&&y.indexOf(":")===-1)return!1;try{return this.parseCIDR(y),!0}catch{return!1}},w.IPv6.networkAddressFromCIDR=function(y){let P,C,N,_,E;try{for(P=this.parseCIDR(y),N=P[0].toByteArray(),E=this.subnetMaskFromPrefixLength(P[1]).toByteArray(),_=[],C=0;C<16;)_.push(parseInt(N[C],10)&parseInt(E[C],10)),C++;return new this(_)}catch(K){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${K})`)}},w.IPv6.parse=function(y){let P=this.parser(y);if(P.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(P.parts,P.zoneId)},w.IPv6.parseCIDR=function(y){let P,C,N;if((C=y.match(/^(.+)\/(\d+)$/))&&(P=parseInt(C[2]),P>=0&&P<=128))return N=[this.parse(C[1]),P],Object.defineProperty(N,"toString",{value:c(function(){return this.join("/")},"value")}),N;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},w.IPv6.parser=function(y){let P,C,N,_,E,K;if(N=y.match(g.deprecatedTransitional))return this.parser(`::ffff:${N[1]}`);if(g.native.test(y))return S(y,8);if((N=y.match(g.transitional))&&(K=N[6]||"",P=N[1],N[1].endsWith("::")||(P=P.slice(0,-1)),P=S(P+K,6),P.parts)){for(E=[parseInt(N[2]),parseInt(N[3]),parseInt(N[4]),parseInt(N[5])],C=0;C<E.length;C++)if(_=E[C],!(0<=_&&_<=255))return null;return P.parts.push(E[0]<<8|E[1]),P.parts.push(E[2]<<8|E[3]),{parts:P.parts,zoneId:P.zoneId}}return null},w.IPv6.subnetMaskFromPrefixLength=function(y){if(y=parseInt(y),y<0||y>128)throw new Error("ipaddr: invalid IPv6 prefix length");let P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=0,N=Math.floor(y/8);for(;C<N;)P[C]=255,C++;return N<16&&(P[N]=Math.pow(2,y%8)-1<<8-y%8),new this(P)},w.fromByteArray=function(y){let P=y.length;if(P===4)return new w.IPv4(y);if(P===16)return new w.IPv6(y);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},w.isValid=function(y){return w.IPv6.isValid(y)||w.IPv4.isValid(y)},w.isValidCIDR=function(y){return w.IPv6.isValidCIDR(y)||w.IPv4.isValidCIDR(y)},w.parse=function(y){if(w.IPv6.isValid(y))return w.IPv6.parse(y);if(w.IPv4.isValid(y))return w.IPv4.parse(y);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},w.parseCIDR=function(y){try{return w.IPv6.parseCIDR(y)}catch{try{return w.IPv4.parseCIDR(y)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},w.process=function(y){let P=this.parse(y);return P.kind()==="ipv6"&&P.isIPv4MappedAddress()?P.toIPv4Address():P},w.subnetMatch=function(y,P,C){let N,_,E,K;C==null&&(C="unicast");for(_ in P)if(Object.prototype.hasOwnProperty.call(P,_)){for(E=P[_],E[0]&&!(E[0]instanceof Array)&&(E=[E]),N=0;N<E.length;N++)if(K=E[N],y.kind()===K[0].kind()&&y.match.apply(y,K))return _}return C},typeof $t<"u"&&$t.exports?$t.exports=w:e.ipaddr=w})(Oi)});var ko=k((Zk,Mo)=>{var xo=require("stream").Stream,Ab=require("util");Mo.exports=fe;function fe(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}c(fe,"DelayedStream");Ab.inherits(fe,xo);fe.create=function(e,r){var a=new this;r=r||{};for(var i in r)a[i]=r[i];a.source=e;var d=e.emit;return e.emit=function(){return a._handleEmit(arguments),d.apply(e,arguments)},e.on("error",function(){}),a.pauseStream&&e.pause(),a};Object.defineProperty(fe.prototype,"readable",{configurable:!0,enumerable:!0,get:c(function(){return this.source.readable},"get")});fe.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};fe.prototype.resume=function(){this._released||this.release(),this.source.resume()};fe.prototype.pause=function(){this.source.pause()};fe.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};fe.prototype.pipe=function(){var e=xo.prototype.pipe.apply(this,arguments);return this.resume(),e};fe.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};fe.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var Uo=k((Qk,Lo)=>{var Nb=require("util"),Oo=require("stream").Stream,qo=ko();Lo.exports=te;function te(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}c(te,"CombinedStream");Nb.inherits(te,Oo);te.create=function(e){var r=new this;e=e||{};for(var a in e)r[a]=e[a];return r};te.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};te.prototype.append=function(e){var r=te.isStreamLike(e);if(r){if(!(e instanceof qo)){var a=qo.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=a}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};te.prototype.pipe=function(e,r){return Oo.prototype.pipe.call(this,e,r),this.resume(),e};te.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};te.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var r=e;r(function(a){var i=te.isStreamLike(a);i&&(a.on("data",this._checkDataSize.bind(this)),this._handleErrors(a)),this._pipeNext(a)}.bind(this))};te.prototype._pipeNext=function(e){this._currentStream=e;var r=te.isStreamLike(e);if(r){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var a=e;this.write(a),this._getNext()};te.prototype._handleErrors=function(e){var r=this;e.on("error",function(a){r._emitError(a)})};te.prototype.write=function(e){this.emit("data",e)};te.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};te.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};te.prototype.end=function(){this._reset(),this.emit("end")};te.prototype.destroy=function(){this._reset(),this.emit("close")};te.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};te.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};te.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(r){r.dataSize&&(e.dataSize+=r.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};te.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var zo=k((Jk,Vo)=>{"use strict";Vo.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var $o=k(ne=>{"use strict";var Yt=zo(),Sb=require("path").extname,Fo=/^\s*([^;\s]*)(?:;|\s|$)/,Tb=/^text\//i;ne.charset=Bo;ne.charsets={lookup:Bo};ne.contentType=Cb;ne.extension=Rb;ne.extensions=Object.create(null);ne.lookup=_b;ne.types=Object.create(null);wb(ne.extensions,ne.types);function Bo(e){if(!e||typeof e!="string")return!1;var r=Fo.exec(e),a=r&&Yt[r[1].toLowerCase()];return a&&a.charset?a.charset:r&&Tb.test(r[1])?"UTF-8":!1}c(Bo,"charset");function Cb(e){if(!e||typeof e!="string")return!1;var r=e.indexOf("/")===-1?ne.lookup(e):e;if(!r)return!1;if(r.indexOf("charset")===-1){var a=ne.charset(r);a&&(r+="; charset="+a.toLowerCase())}return r}c(Cb,"contentType");function Rb(e){if(!e||typeof e!="string")return!1;var r=Fo.exec(e),a=r&&ne.extensions[r[1].toLowerCase()];return!a||!a.length?!1:a[0]}c(Rb,"extension");function _b(e){if(!e||typeof e!="string")return!1;var r=Sb("x."+e).toLowerCase().substr(1);return r&&ne.types[r]||!1}c(_b,"lookup");function wb(e,r){var a=["nginx","apache",void 0,"iana"];Object.keys(Yt).forEach(c(function(d){var h=Yt[d],b=h.extensions;if(!(!b||!b.length)){e[d]=b;for(var g=0;g<b.length;g++){var S=b[g];if(r[S]){var T=a.indexOf(Yt[r[S]].source),I=a.indexOf(h.source);if(r[S]!=="application/octet-stream"&&(T>I||T===I&&r[S].substr(0,12)==="application/"))continue}r[S]=d}}},"forEachMimeType"))}c(wb,"populateMaps")});var Ho=k((tq,Go)=>{Go.exports=Ib;function Ib(e){var r=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;r?r(e):setTimeout(e,0)}c(Ib,"defer")});var Zr=k((aq,Ko)=>{var Wo=Ho();Ko.exports=Eb;function Eb(e){var r=!1;return Wo(function(){r=!0}),c(function(i,d){r?e(i,d):Wo(c(function(){e(i,d)},"nextTick_callback"))},"async_callback")}c(Eb,"async")});var jr=k((oq,Zo)=>{Zo.exports=Db;function Db(e){Object.keys(e.jobs).forEach(xb.bind(e)),e.jobs={}}c(Db,"abort");function xb(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}c(xb,"clean")});var Qr=k((sq,Qo)=>{var jo=Zr(),Mb=jr();Qo.exports=kb;function kb(e,r,a,i){var d=a.keyedList?a.keyedList[a.index]:a.index;a.jobs[d]=qb(r,d,e[d],function(h,b){d in a.jobs&&(delete a.jobs[d],h?Mb(a):a.results[d]=b,i(h,a.results))})}c(kb,"iterate");function qb(e,r,a,i){var d;return e.length==2?d=e(a,jo(i)):d=e(a,r,jo(i)),d}c(qb,"runJob")});var Yr=k((pq,Yo)=>{Yo.exports=Ob;function Ob(e,r){var a=!Array.isArray(e),i={index:0,keyedList:a||r?Object.keys(e):null,jobs:{},results:a?{}:[],size:a?Object.keys(e).length:e.length};return r&&i.keyedList.sort(a?r:function(d,h){return r(e[d],e[h])}),i}c(Ob,"state")});var Jr=k((cq,Jo)=>{var Lb=jr(),Ub=Zr();Jo.exports=Vb;function Vb(e){Object.keys(this.jobs).length&&(this.index=this.size,Lb(this),Ub(e)(null,this.results))}c(Vb,"terminator")});var en=k((mq,Xo)=>{var zb=Qr(),Fb=Yr(),Bb=Jr();Xo.exports=$b;function $b(e,r,a){for(var i=Fb(e);i.index<(i.keyedList||e).length;)zb(e,r,i,function(d,h){if(d){a(d,h);return}if(Object.keys(i.jobs).length===0){a(null,i.results);return}}),i.index++;return Bb.bind(i,a)}c($b,"parallel")});var Xr=k((hq,Jt)=>{var tn=Qr(),Gb=Yr(),Hb=Jr();Jt.exports=Wb;Jt.exports.ascending=rn;Jt.exports.descending=Kb;function Wb(e,r,a,i){var d=Gb(e,a);return tn(e,r,d,c(function h(b,g){if(b){i(b,g);return}if(d.index++,d.index<(d.keyedList||e).length){tn(e,r,d,h);return}i(null,d.results)},"iteratorHandler")),Hb.bind(d,i)}c(Wb,"serialOrdered");function rn(e,r){return e<r?-1:e>r?1:0}c(rn,"ascending");function Kb(e,r){return-1*rn(e,r)}c(Kb,"descending")});var on=k((bq,an)=>{var Zb=Xr();an.exports=jb;function jb(e,r,a){return Zb(e,r,null,a)}c(jb,"serial")});var sn=k((vq,nn)=>{nn.exports={parallel:en(),serial:on(),serialOrdered:Xr()}});var ea=k((Pq,ln)=>{"use strict";ln.exports=Object});var un=k((Aq,pn)=>{"use strict";pn.exports=Error});var dn=k((Nq,cn)=>{"use strict";cn.exports=EvalError});var fn=k((Sq,mn)=>{"use strict";mn.exports=RangeError});var yn=k((Tq,hn)=>{"use strict";hn.exports=ReferenceError});var gn=k((Cq,bn)=>{"use strict";bn.exports=SyntaxError});var Xt=k((Rq,vn)=>{"use strict";vn.exports=TypeError});var An=k((_q,Pn)=>{"use strict";Pn.exports=URIError});var Sn=k((wq,Nn)=>{"use strict";Nn.exports=Math.abs});var Cn=k((Iq,Tn)=>{"use strict";Tn.exports=Math.floor});var _n=k((Eq,Rn)=>{"use strict";Rn.exports=Math.max});var In=k((Dq,wn)=>{"use strict";wn.exports=Math.min});var Dn=k((xq,En)=>{"use strict";En.exports=Math.pow});var Mn=k((Mq,xn)=>{"use strict";xn.exports=Math.round});var qn=k((kq,kn)=>{"use strict";kn.exports=Number.isNaN||c(function(r){return r!==r},"isNaN")});var Ln=k((Oq,On)=>{"use strict";var Qb=qn();On.exports=c(function(r){return Qb(r)||r===0?r:r<0?-1:1},"sign")});var Vn=k((Uq,Un)=>{"use strict";Un.exports=Object.getOwnPropertyDescriptor});var ta=k((Vq,zn)=>{"use strict";var er=Vn();if(er)try{er([],"length")}catch{er=null}zn.exports=er});var Bn=k((zq,Fn)=>{"use strict";var tr=Object.defineProperty||!1;if(tr)try{tr({},"a",{value:1})}catch{tr=!1}Fn.exports=tr});var ra=k((Fq,$n)=>{"use strict";$n.exports=c(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},a=Symbol("test"),i=Object(a);if(typeof a=="string"||Object.prototype.toString.call(a)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var d=42;r[a]=d;for(var h in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var b=Object.getOwnPropertySymbols(r);if(b.length!==1||b[0]!==a||!Object.prototype.propertyIsEnumerable.call(r,a))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(r,a);if(g.value!==d||g.enumerable!==!0)return!1}return!0},"hasSymbols")});var Wn=k(($q,Hn)=>{"use strict";var Gn=typeof Symbol<"u"&&Symbol,Yb=ra();Hn.exports=c(function(){return typeof Gn!="function"||typeof Symbol!="function"||typeof Gn("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yb()},"hasNativeSymbols")});var aa=k((Hq,Kn)=>{"use strict";Kn.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var ia=k((Wq,Zn)=>{"use strict";var Jb=ea();Zn.exports=Jb.getPrototypeOf||null});var Yn=k((Kq,Qn)=>{"use strict";var Xb="Function.prototype.bind called on incompatible ",eg=Object.prototype.toString,tg=Math.max,rg="[object Function]",jn=c(function(r,a){for(var i=[],d=0;d<r.length;d+=1)i[d]=r[d];for(var h=0;h<a.length;h+=1)i[h+r.length]=a[h];return i},"concatty"),ag=c(function(r,a){for(var i=[],d=a||0,h=0;d<r.length;d+=1,h+=1)i[h]=r[d];return i},"slicy"),ig=c(function(e,r){for(var a="",i=0;i<e.length;i+=1)a+=e[i],i+1<e.length&&(a+=r);return a},"joiny");Qn.exports=c(function(r){var a=this;if(typeof a!="function"||eg.apply(a)!==rg)throw new TypeError(Xb+a);for(var i=ag(arguments,1),d,h=c(function(){if(this instanceof d){var I=a.apply(this,jn(i,arguments));return Object(I)===I?I:this}return a.apply(r,jn(i,arguments))},"binder"),b=tg(0,a.length-i.length),g=[],S=0;S<b;S++)g[S]="$"+S;if(d=Function("binder","return function ("+ig(g,",")+"){ return binder.apply(this,arguments); }")(h),a.prototype){var T=c(function(){},"Empty");T.prototype=a.prototype,d.prototype=new T,T.prototype=null}return d},"bind")});var Ke=k((jq,Jn)=>{"use strict";var og=Yn();Jn.exports=Function.prototype.bind||og});var rr=k((Qq,Xn)=>{"use strict";Xn.exports=Function.prototype.call});var oa=k((Yq,es)=>{"use strict";es.exports=Function.prototype.apply});var rs=k((Jq,ts)=>{"use strict";ts.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var is=k((Xq,as)=>{"use strict";var ng=Ke(),sg=oa(),lg=rr(),pg=rs();as.exports=pg||ng.call(lg,sg)});var ns=k((eO,os)=>{"use strict";var ug=Ke(),cg=Xt(),dg=rr(),mg=is();os.exports=c(function(r){if(r.length<1||typeof r[0]!="function")throw new cg("a function is required");return mg(ug,dg,r)},"callBindBasic")});var ds=k((rO,cs)=>{"use strict";var fg=ns(),ss=ta(),ps;try{ps=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var na=!!ps&&ss&&ss(Object.prototype,"__proto__"),us=Object,ls=us.getPrototypeOf;cs.exports=na&&typeof na.get=="function"?fg([na.get]):typeof ls=="function"?c(function(r){return ls(r==null?r:us(r))},"getDunder"):!1});var bs=k((iO,ys)=>{"use strict";var ms=aa(),fs=ia(),hs=ds();ys.exports=ms?c(function(r){return ms(r)},"getProto"):fs?c(function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return fs(r)},"getProto"):hs?c(function(r){return hs(r)},"getProto"):null});var sa=k((nO,gs)=>{"use strict";var hg=Function.prototype.call,yg=Object.prototype.hasOwnProperty,bg=Ke();gs.exports=bg.call(hg,yg)});var Cs=k((sO,Ts)=>{"use strict";var W,gg=ea(),vg=un(),Pg=dn(),Ag=fn(),Ng=yn(),Ye=gn(),Qe=Xt(),Sg=An(),Tg=Sn(),Cg=Cn(),Rg=_n(),_g=In(),wg=Dn(),Ig=Mn(),Eg=Ln(),Ns=Function,la=c(function(e){try{return Ns('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),At=ta(),Dg=Bn(),pa=c(function(){throw new Qe},"throwTypeError"),xg=At?function(){try{return arguments.callee,pa}catch{try{return At(arguments,"callee").get}catch{return pa}}}():pa,Ze=Wn()(),ie=bs(),Mg=ia(),kg=aa(),Ss=oa(),Nt=rr(),je={},qg=typeof Uint8Array>"u"||!ie?W:ie(Uint8Array),Oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?W:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?W:ArrayBuffer,"%ArrayIteratorPrototype%":Ze&&ie?ie([][Symbol.iterator]()):W,"%AsyncFromSyncIteratorPrototype%":W,"%AsyncFunction%":je,"%AsyncGenerator%":je,"%AsyncGeneratorFunction%":je,"%AsyncIteratorPrototype%":je,"%Atomics%":typeof Atomics>"u"?W:Atomics,"%BigInt%":typeof BigInt>"u"?W:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?W:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?W:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?W:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":vg,"%eval%":eval,"%EvalError%":Pg,"%Float16Array%":typeof Float16Array>"u"?W:Float16Array,"%Float32Array%":typeof Float32Array>"u"?W:Float32Array,"%Float64Array%":typeof Float64Array>"u"?W:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?W:FinalizationRegistry,"%Function%":Ns,"%GeneratorFunction%":je,"%Int8Array%":typeof Int8Array>"u"?W:Int8Array,"%Int16Array%":typeof Int16Array>"u"?W:Int16Array,"%Int32Array%":typeof Int32Array>"u"?W:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ze&&ie?ie(ie([][Symbol.iterator]())):W,"%JSON%":typeof JSON=="object"?JSON:W,"%Map%":typeof Map>"u"?W:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ze||!ie?W:ie(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":gg,"%Object.getOwnPropertyDescriptor%":At,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?W:Promise,"%Proxy%":typeof Proxy>"u"?W:Proxy,"%RangeError%":Ag,"%ReferenceError%":Ng,"%Reflect%":typeof Reflect>"u"?W:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?W:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ze||!ie?W:ie(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?W:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ze&&ie?ie(""[Symbol.iterator]()):W,"%Symbol%":Ze?Symbol:W,"%SyntaxError%":Ye,"%ThrowTypeError%":xg,"%TypedArray%":qg,"%TypeError%":Qe,"%Uint8Array%":typeof Uint8Array>"u"?W:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?W:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?W:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?W:Uint32Array,"%URIError%":Sg,"%WeakMap%":typeof WeakMap>"u"?W:WeakMap,"%WeakRef%":typeof WeakRef>"u"?W:WeakRef,"%WeakSet%":typeof WeakSet>"u"?W:WeakSet,"%Function.prototype.call%":Nt,"%Function.prototype.apply%":Ss,"%Object.defineProperty%":Dg,"%Object.getPrototypeOf%":Mg,"%Math.abs%":Tg,"%Math.floor%":Cg,"%Math.max%":Rg,"%Math.min%":_g,"%Math.pow%":wg,"%Math.round%":Ig,"%Math.sign%":Eg,"%Reflect.getPrototypeOf%":kg};if(ie)try{null.error}catch(e){vs=ie(ie(e)),Oe["%Error.prototype%"]=vs}var vs,Og=c(function e(r){var a;if(r==="%AsyncFunction%")a=la("async function () {}");else if(r==="%GeneratorFunction%")a=la("function* () {}");else if(r==="%AsyncGeneratorFunction%")a=la("async function* () {}");else if(r==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(a=i.prototype)}else if(r==="%AsyncIteratorPrototype%"){var d=e("%AsyncGenerator%");d&&ie&&(a=ie(d.prototype))}return Oe[r]=a,a},"doEval"),Ps={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},St=Ke(),ar=sa(),Lg=St.call(Nt,Array.prototype.concat),Ug=St.call(Ss,Array.prototype.splice),As=St.call(Nt,String.prototype.replace),ir=St.call(Nt,String.prototype.slice),Vg=St.call(Nt,RegExp.prototype.exec),zg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fg=/\\(\\)?/g,Bg=c(function(r){var a=ir(r,0,1),i=ir(r,-1);if(a==="%"&&i!=="%")throw new Ye("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&a!=="%")throw new Ye("invalid intrinsic syntax, expected opening `%`");var d=[];return As(r,zg,function(h,b,g,S){d[d.length]=g?As(S,Fg,"$1"):b||h}),d},"stringToPath"),$g=c(function(r,a){var i=r,d;if(ar(Ps,i)&&(d=Ps[i],i="%"+d[0]+"%"),ar(Oe,i)){var h=Oe[i];if(h===je&&(h=Og(i)),typeof h>"u"&&!a)throw new Qe("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:d,name:i,value:h}}throw new Ye("intrinsic "+r+" does not exist!")},"getBaseIntrinsic");Ts.exports=c(function(r,a){if(typeof r!="string"||r.length===0)throw new Qe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof a!="boolean")throw new Qe('"allowMissing" argument must be a boolean');if(Vg(/^%?[^%]*%?$/,r)===null)throw new Ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=Bg(r),d=i.length>0?i[0]:"",h=$g("%"+d+"%",a),b=h.name,g=h.value,S=!1,T=h.alias;T&&(d=T[0],Ug(i,Lg([0,1],T)));for(var I=1,D=!0;I<i.length;I+=1){var w=i[I],y=ir(w,0,1),P=ir(w,-1);if((y==='"'||y==="'"||y==="`"||P==='"'||P==="'"||P==="`")&&y!==P)throw new Ye("property names with quotes must have matching quotes");if((w==="constructor"||!D)&&(S=!0),d+="."+w,b="%"+d+"%",ar(Oe,b))g=Oe[b];else if(g!=null){if(!(w in g)){if(!a)throw new Qe("base intrinsic for "+r+" exists, but the property is not available.");return}if(At&&I+1>=i.length){var C=At(g,w);D=!!C,D&&"get"in C&&!("originalValue"in C.get)?g=C.get:g=g[w]}else D=ar(g,w),g=g[w];D&&!S&&(Oe[b]=g)}}return g},"GetIntrinsic")});var _s=k((pO,Rs)=>{"use strict";var Gg=ra();Rs.exports=c(function(){return Gg()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Es=k((cO,Is)=>{"use strict";var Hg=Cs(),ws=Hg("%Object.defineProperty%",!0),Wg=_s()(),Kg=sa(),Zg=Xt(),or=Wg?Symbol.toStringTag:null;Is.exports=c(function(r,a){var i=arguments.length>2&&!!arguments[2]&&arguments[2].force,d=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof i<"u"&&typeof i!="boolean"||typeof d<"u"&&typeof d!="boolean")throw new Zg("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");or&&(i||!Kg(r,or))&&(ws?ws(r,or,{configurable:!d,enumerable:!1,value:a,writable:!1}):r[or]=a)},"setToStringTag")});var xs=k((mO,Ds)=>{"use strict";var jg=Function.prototype.call,Qg=Object.prototype.hasOwnProperty,Yg=Ke();Ds.exports=Yg.call(jg,Qg)});var ks=k((fO,Ms)=>{"use strict";Ms.exports=function(e,r){return Object.keys(r).forEach(function(a){e[a]=e[a]||r[a]}),e}});var Ls=k((hO,Os)=>{"use strict";var ma=Uo(),Jg=require("util"),ua=require("path"),Xg=require("http"),ev=require("https"),tv=require("url").parse,rv=require("fs"),av=require("stream").Stream,iv=require("crypto"),ca=$o(),ov=sn(),nv=Es(),De=xs(),da=ks();function qs(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}c(qs,"escapeHeaderParam");function Z(e){if(!(this instanceof Z))return new Z(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],ma.call(this),e=e||{};for(var r in e)this[r]=e[r]}c(Z,"FormData");Jg.inherits(Z,ma);Z.LINE_BREAK=`\r
|
|
2
|
+
`;Z.DEFAULT_CONTENT_TYPE="application/octet-stream";Z.prototype.append=function(e,r,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=ma.prototype.append.bind(this);if((typeof r=="number"||r==null)&&(r=String(r)),Array.isArray(r)){this._error(new Error("Arrays are not supported."));return}var d=this._multiPartHeader(e,r,a),h=this._multiPartFooter();i(d),i(r),i(h),this._trackLength(d,r,a)};Z.prototype._trackLength=function(e,r,a){var i=0;a.knownLength!=null?i+=Number(a.knownLength):Buffer.isBuffer(r)?i=r.length:typeof r=="string"&&(i=Buffer.byteLength(r)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+Z.LINE_BREAK.length,!(!r||!r.path&&!(r.readable&&De(r,"httpVersion"))&&!(r instanceof av))&&(a.knownLength||this._valuesToMeasure.push(r))};Z.prototype._lengthRetriever=function(e,r){De(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?r(null,e.end+1-(e.start?e.start:0)):rv.stat(e.path,function(a,i){if(a){r(a);return}var d=i.size-(e.start?e.start:0);r(null,d)}):De(e,"httpVersion")?r(null,Number(e.headers["content-length"])):De(e,"httpModule")?(e.on("response",function(a){e.pause(),r(null,Number(a.headers["content-length"]))}),e.resume()):r("Unknown stream")};Z.prototype._multiPartHeader=function(e,r,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(r,a),d=this._getContentType(r,a),h="",b={"Content-Disposition":["form-data",'name="'+qs(e)+'"'].concat(i||[]),"Content-Type":[].concat(d||[])};typeof a.header=="object"&&da(b,a.header);var g;for(var S in b)if(De(b,S)){if(g=b[S],g==null)continue;Array.isArray(g)||(g=[g]),g.length&&(h+=S+": "+g.join("; ")+Z.LINE_BREAK)}return"--"+this.getBoundary()+Z.LINE_BREAK+h+Z.LINE_BREAK};Z.prototype._getContentDisposition=function(e,r){var a;if(typeof r.filepath=="string"?a=ua.normalize(r.filepath).replace(/\\/g,"/"):r.filename||e&&(e.name||e.path)?a=ua.basename(r.filename||e&&(e.name||e.path)):e&&e.readable&&De(e,"httpVersion")&&(a=ua.basename(e.client._httpMessage.path||"")),a)return'filename="'+qs(a)+'"'};Z.prototype._getContentType=function(e,r){var a=r.contentType;return!a&&e&&e.name&&(a=ca.lookup(e.name)),!a&&e&&e.path&&(a=ca.lookup(e.path)),!a&&e&&e.readable&&De(e,"httpVersion")&&(a=e.headers["content-type"]),!a&&(r.filepath||r.filename)&&(a=ca.lookup(r.filepath||r.filename)),!a&&e&&typeof e=="object"&&(a=Z.DEFAULT_CONTENT_TYPE),a};Z.prototype._multiPartFooter=function(){return function(e){var r=Z.LINE_BREAK,a=this._streams.length===0;a&&(r+=this._lastBoundary()),e(r)}.bind(this)};Z.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Z.LINE_BREAK};Z.prototype.getHeaders=function(e){var r,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(r in e)De(e,r)&&(a[r.toLowerCase()]=e[r]);return a};Z.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};Z.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Z.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),r=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?e=Buffer.concat([e,this._streams[a]]):e=Buffer.concat([e,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,r.length+2)!==r)&&(e=Buffer.concat([e,Buffer.from(Z.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};Z.prototype._generateBoundary=function(){this._boundary="--------------------------"+iv.randomBytes(12).toString("hex")};Z.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};Z.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};Z.prototype.getLength=function(e){var r=this._overheadLength+this._valueLength;if(this._streams.length&&(r+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,r));return}ov.parallel(this._valuesToMeasure,this._lengthRetriever,function(a,i){if(a){e(a);return}i.forEach(function(d){r+=d}),e(null,r)})};Z.prototype.submit=function(e,r){var a,i,d={method:"post"};return typeof e=="string"?(e=tv(e),i=da({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},d)):(i=da(e,d),i.port||(i.port=i.protocol==="https:"?443:80)),i.headers=this.getHeaders(e.headers),i.protocol==="https:"?a=ev.request(i):a=Xg.request(i),this.getLength(function(h,b){if(h&&h!=="Unknown stream"){this._error(h);return}if(b&&a.setHeader("Content-Length",b),this.pipe(a),r){var g,S=c(function(T,I){return a.removeListener("error",S),a.removeListener("response",g),r.call(this,T,I)},"callback");g=S.bind(this,null),a.on("error",S),a.on("response",g)}}.bind(this)),a};Z.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};Z.prototype.toString=function(){return"[object FormData]"};nv(Z.prototype,"FormData");Os.exports=Z});var gv={};va(gv,{ampeco:()=>bv});module.exports=Wf(gv);var Kf=Object.freeze({status:"aborted"});function x(e,r,a){function i(g,S){if(g._zod||Object.defineProperty(g,"_zod",{value:{def:S,constr:b,traits:new Set},enumerable:!1}),g._zod.traits.has(e))return;g._zod.traits.add(e),r(g,S);let T=b.prototype,I=Object.keys(T);for(let D=0;D<I.length;D++){let w=I[D];w in g||(g[w]=T[w].bind(g))}}c(i,"init");let d=a?.Parent??Object;class h extends d{static{c(this,"Definition")}}Object.defineProperty(h,"name",{value:e});function b(g){var S;let T=a?.Parent?new h:this;i(T,g),(S=T._zod).deferred??(S.deferred=[]);for(let I of T._zod.deferred)I();return T}return c(b,"_"),Object.defineProperty(b,"init",{value:i}),Object.defineProperty(b,Symbol.hasInstance,{value:c(g=>a?.Parent&&g instanceof a.Parent?!0:g?._zod?.traits?.has(e),"value")}),Object.defineProperty(b,"name",{value:e}),b}c(x,"$constructor");var Zf=Symbol("zod_brand"),he=class extends Error{static{c(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ct=class extends Error{static{c(this,"$ZodEncodeError")}constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}},lr={};function ge(e){return e&&Object.assign(lr,e),lr}c(ge,"config");function ur(e){let r=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,d])=>r.indexOf(+i)===-1).map(([i,d])=>d)}c(ur,"getEnumValues");function Na(e,r){return typeof r=="bigint"?r.toString():r}c(Na,"jsonStringifyReplacer");function _t(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}c(_t,"cached");function Sa(e){return e==null}c(Sa,"nullish");function wt(e){let r=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(r,a)}c(wt,"cleanRegex");var Aa=Symbol("evaluating");function re(e,r,a){let i;Object.defineProperty(e,r,{get(){if(i!==Aa)return i===void 0&&(i=Aa,i=a()),i},set(d){Object.defineProperty(e,r,{value:d})},configurable:!0})}c(re,"defineLazy");var cr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}c(et,"isObject");var jf=_t(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Ta(e){if(et(e)===!1)return!1;let r=e.constructor;if(r===void 0||typeof r!="function")return!0;let a=r.prototype;return!(et(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}c(Ta,"isPlainObject");var Ca=new Set(["string","number","symbol"]);function Ue(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}c(Ue,"escapeRegex");function It(e,r,a){let i=new e._zod.constr(r??e._zod.def);return(!r||a?.parent)&&(i._zod.parent=e),i}c(It,"clone");function J(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:c(()=>r,"error")};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:c(()=>r.error,"error")}:r}c(J,"normalizeParams");function Ra(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}c(Ra,"optionalKeys");var Qf={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Ve(e,r=0){if(e.aborted===!0)return!0;for(let a=r;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}c(Ve,"aborted");function Te(e,r){return r.map(a=>{var i;return(i=a).path??(i.path=[]),a.path.unshift(e),a})}c(Te,"prefixIssues");function Rt(e){return typeof e=="string"?e:e?.message}c(Rt,"unwrapMessage");function Ce(e,r,a){let i={...e,path:e.path??[]};if(!e.message){let d=Rt(e.inst?._zod.def?.error?.(e))??Rt(r?.error?.(e))??Rt(a.customError?.(e))??Rt(a.localeError?.(e))??"Invalid input";i.message=d}return delete i.inst,delete i.continue,r?.reportInput||delete i.input,i}c(Ce,"finalizeIssue");function _a(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}c(_a,"getLengthableOrigin");function dr(...e){let[r,a,i]=e;return typeof r=="string"?{message:r,code:"custom",input:a,inst:i}:{...r}}c(dr,"issue");var wa=c((e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Na,2),Object.defineProperty(e,"toString",{value:c(()=>e.message,"value"),enumerable:!1})},"initializer"),Ia=x("$ZodError",wa),tt=x("$ZodError",wa,{Parent:Error});var Jf=c(e=>(r,a,i,d)=>{let h=i?Object.assign(i,{async:!1}):{async:!1},b=r._zod.run({value:a,issues:[]},h);if(b instanceof Promise)throw new he;if(b.issues.length){let g=new(d?.Err??e)(b.issues.map(S=>Ce(S,h,ge())));throw cr(g,d?.callee),g}return b.value},"_parse"),Et=Jf(tt),Xf=c(e=>async(r,a,i,d)=>{let h=i?Object.assign(i,{async:!0}):{async:!0},b=r._zod.run({value:a,issues:[]},h);if(b instanceof Promise&&(b=await b),b.issues.length){let g=new(d?.Err??e)(b.issues.map(S=>Ce(S,h,ge())));throw cr(g,d?.callee),g}return b.value},"_parseAsync"),Dt=Xf(tt),eh=c(e=>(r,a,i)=>{let d=i?{...i,async:!1}:{async:!1},h=r._zod.run({value:a,issues:[]},d);if(h instanceof Promise)throw new he;return h.issues.length?{success:!1,error:new(e??Ia)(h.issues.map(b=>Ce(b,d,ge())))}:{success:!0,data:h.value}},"_safeParse"),rt=eh(tt),th=c(e=>async(r,a,i)=>{let d=i?Object.assign(i,{async:!0}):{async:!0},h=r._zod.run({value:a,issues:[]},d);return h instanceof Promise&&(h=await h),h.issues.length?{success:!1,error:new e(h.issues.map(b=>Ce(b,d,ge())))}:{success:!0,data:h.value}},"_safeParseAsync"),at=th(tt);var rh="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",ah=new RegExp(`^${rh}$`);var Ea=c(e=>{let r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},"string"),Da=/^-?\d+n?$/;var mr=/^-?\d+(?:\.\d+)?$/,xa=/^(?:true|false)$/i;var ze=x("$ZodCheck",(e,r)=>{var a;e._zod??(e._zod={}),e._zod.def=r,(a=e._zod).onattach??(a.onattach=[])});var Ma=x("$ZodCheckMinLength",(e,r)=>{var a;ze.init(e,r),(a=e._zod.def).when??(a.when=i=>{let d=i.value;return!Sa(d)&&d.length!==void 0}),e._zod.onattach.push(i=>{let d=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>d&&(i._zod.bag.minimum=r.minimum)}),e._zod.check=i=>{let d=i.value;if(d.length>=r.minimum)return;let b=_a(d);i.issues.push({origin:b,code:"too_small",minimum:r.minimum,inclusive:!0,input:d,inst:e,continue:!r.abort})}});var fr=x("$ZodCheckStringFormat",(e,r)=>{var a,i;ze.init(e,r),e._zod.onattach.push(d=>{let h=d._zod.bag;h.format=r.format,r.pattern&&(h.patterns??(h.patterns=new Set),h.patterns.add(r.pattern))}),r.pattern?(a=e._zod).check??(a.check=d=>{r.pattern.lastIndex=0,!r.pattern.test(d.value)&&d.issues.push({origin:"string",code:"invalid_format",format:r.format,input:d.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(i=e._zod).check??(i.check=()=>{})}),ka=x("$ZodCheckRegex",(e,r)=>{fr.init(e,r),e._zod.check=a=>{r.pattern.lastIndex=0,!r.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}});var Oa={major:4,minor:3,patch:6};var X=x("$ZodType",(e,r)=>{var a;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Oa;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let d of i)for(let h of d._zod.onattach)h(e);if(i.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let d=c((b,g,S)=>{let T=Ve(b),I;for(let D of g){if(D._zod.def.when){if(!D._zod.def.when(b))continue}else if(T)continue;let w=b.issues.length,y=D._zod.check(b);if(y instanceof Promise&&S?.async===!1)throw new he;if(I||y instanceof Promise)I=(I??Promise.resolve()).then(async()=>{await y,b.issues.length!==w&&(T||(T=Ve(b,w)))});else{if(b.issues.length===w)continue;T||(T=Ve(b,w))}}return I?I.then(()=>b):b},"runChecks"),h=c((b,g,S)=>{if(Ve(b))return b.aborted=!0,b;let T=d(g,i,S);if(T instanceof Promise){if(S.async===!1)throw new he;return T.then(I=>e._zod.parse(I,S))}return e._zod.parse(T,S)},"handleCanaryResult");e._zod.run=(b,g)=>{if(g.skipChecks)return e._zod.parse(b,g);if(g.direction==="backward"){let T=e._zod.parse({value:b.value,issues:[]},{...g,skipChecks:!0});return T instanceof Promise?T.then(I=>h(I,b,g)):h(T,b,g)}let S=e._zod.parse(b,g);if(S instanceof Promise){if(g.async===!1)throw new he;return S.then(T=>d(T,i,g))}return d(S,i,g)}}re(e,"~standard",()=>({validate:c(d=>{try{let h=rt(e,d);return h.success?{value:h.data}:{issues:h.error?.issues}}catch{return at(e,d).then(b=>b.success?{value:b.data}:{issues:b.error?.issues})}},"validate"),vendor:"zod",version:1}))}),kt=x("$ZodString",(e,r)=>{X.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ea(e._zod.bag),e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),hr=x("$ZodStringFormat",(e,r)=>{fr.init(e,r),kt.init(e,r)});var Fa=x("$ZodURL",(e,r)=>{hr.init(e,r),e._zod.check=a=>{try{let i=a.value.trim(),d=new URL(i);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(d.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:r.hostname.source,input:a.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(d.protocol.endsWith(":")?d.protocol.slice(0,-1):d.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:a.value,inst:e,continue:!r.abort})),r.normalize?a.value=d.href:a.value=i;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!r.abort})}}});var Ba=x("$ZodNumber",(e,r)=>{X.init(e,r),e._zod.pattern=e._zod.bag.pattern??mr,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=Number(a.value)}catch{}let d=a.value;if(typeof d=="number"&&!Number.isNaN(d)&&Number.isFinite(d))return a;let h=typeof d=="number"?Number.isNaN(d)?"NaN":Number.isFinite(d)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:d,inst:e,...h?{received:h}:{}}),a}});var yr=x("$ZodBoolean",(e,r)=>{X.init(e,r),e._zod.pattern=xa,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=!!a.value}catch{}let d=a.value;return typeof d=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:d,inst:e}),a}}),$a=x("$ZodBigInt",(e,r)=>{X.init(e,r),e._zod.pattern=Da,e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=BigInt(a.value)}catch{}return typeof a.value=="bigint"||a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}});var Ga=x("$ZodAny",(e,r)=>{X.init(e,r),e._zod.parse=a=>a}),Ha=x("$ZodUnknown",(e,r)=>{X.init(e,r),e._zod.parse=a=>a});var Wa=x("$ZodVoid",(e,r)=>{X.init(e,r),e._zod.parse=(a,i)=>{let d=a.value;return typeof d>"u"||a.issues.push({expected:"void",code:"invalid_type",input:d,inst:e}),a}}),Ka=x("$ZodDate",(e,r)=>{X.init(e,r),e._zod.parse=(a,i)=>{if(r.coerce)try{a.value=new Date(a.value)}catch{}let d=a.value,h=d instanceof Date;return h&&!Number.isNaN(d.getTime())||a.issues.push({expected:"date",code:"invalid_type",input:d,...h?{received:"Invalid Date"}:{},inst:e}),a}});function La(e,r,a){e.issues.length&&r.issues.push(...Te(a,e.issues)),r.value[a]=e.value}c(La,"handleArrayResult");var Za=x("$ZodArray",(e,r)=>{X.init(e,r),e._zod.parse=(a,i)=>{let d=a.value;if(!Array.isArray(d))return a.issues.push({expected:"array",code:"invalid_type",input:d,inst:e}),a;a.value=Array(d.length);let h=[];for(let b=0;b<d.length;b++){let g=d[b],S=r.element._zod.run({value:g,issues:[]},i);S instanceof Promise?h.push(S.then(T=>La(T,a,b))):La(S,a,b)}return h.length?Promise.all(h).then(()=>a):a}});function Mt(e,r,a,i,d){if(e.issues.length){if(d&&!(a in i))return;r.issues.push(...Te(a,e.issues))}e.value===void 0?a in i&&(r.value[a]=void 0):r.value[a]=e.value}c(Mt,"handlePropertyResult");function ih(e){let r=Object.keys(e.shape);for(let i of r)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let a=Ra(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(a)}}c(ih,"normalizeDef");function oh(e,r,a,i,d,h){let b=[],g=d.keySet,S=d.catchall._zod,T=S.def.type,I=S.optout==="optional";for(let D in r){if(g.has(D))continue;if(T==="never"){b.push(D);continue}let w=S.run({value:r[D],issues:[]},i);w instanceof Promise?e.push(w.then(y=>Mt(y,a,D,r,I))):Mt(w,a,D,r,I)}return b.length&&a.issues.push({code:"unrecognized_keys",keys:b,input:r,inst:h}),e.length?Promise.all(e).then(()=>a):a}c(oh,"handleCatchall");var ja=x("$ZodObject",(e,r)=>{if(X.init(e,r),!Object.getOwnPropertyDescriptor(r,"shape")?.get){let g=r.shape;Object.defineProperty(r,"shape",{get:c(()=>{let S={...g};return Object.defineProperty(r,"shape",{value:S}),S},"get")})}let i=_t(()=>ih(r));re(e._zod,"propValues",()=>{let g=r.shape,S={};for(let T in g){let I=g[T]._zod;if(I.values){S[T]??(S[T]=new Set);for(let D of I.values)S[T].add(D)}}return S});let d=et,h=r.catchall,b;e._zod.parse=(g,S)=>{b??(b=i.value);let T=g.value;if(!d(T))return g.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),g;g.value={};let I=[],D=b.shape;for(let w of b.keys){let y=D[w],P=y._zod.optout==="optional",C=y._zod.run({value:T[w],issues:[]},S);C instanceof Promise?I.push(C.then(N=>Mt(N,g,w,T,P))):Mt(C,g,w,T,P)}return h?oh(I,T,g,S,i.value,e):I.length?Promise.all(I).then(()=>g):g}});function Ua(e,r,a,i){for(let h of e)if(h.issues.length===0)return r.value=h.value,r;let d=e.filter(h=>!Ve(h));return d.length===1?(r.value=d[0].value,d[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:a,errors:e.map(h=>h.issues.map(b=>Ce(b,i,ge())))}),r)}c(Ua,"handleUnionResults");var br=x("$ZodUnion",(e,r)=>{X.init(e,r),re(e._zod,"optin",()=>r.options.some(d=>d._zod.optin==="optional")?"optional":void 0),re(e._zod,"optout",()=>r.options.some(d=>d._zod.optout==="optional")?"optional":void 0),re(e._zod,"values",()=>{if(r.options.every(d=>d._zod.values))return new Set(r.options.flatMap(d=>Array.from(d._zod.values)))}),re(e._zod,"pattern",()=>{if(r.options.every(d=>d._zod.pattern)){let d=r.options.map(h=>h._zod.pattern);return new RegExp(`^(${d.map(h=>wt(h.source)).join("|")})$`)}});let a=r.options.length===1,i=r.options[0]._zod.run;e._zod.parse=(d,h)=>{if(a)return i(d,h);let b=!1,g=[];for(let S of r.options){let T=S._zod.run({value:d.value,issues:[]},h);if(T instanceof Promise)g.push(T),b=!0;else{if(T.issues.length===0)return T;g.push(T)}}return b?Promise.all(g).then(S=>Ua(S,d,e,h)):Ua(g,d,e,h)}});var Qa=x("$ZodDiscriminatedUnion",(e,r)=>{r.inclusive=!1,br.init(e,r);let a=e._zod.parse;re(e._zod,"propValues",()=>{let d={};for(let h of r.options){let b=h._zod.propValues;if(!b||Object.keys(b).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(h)}"`);for(let[g,S]of Object.entries(b)){d[g]||(d[g]=new Set);for(let T of S)d[g].add(T)}}return d});let i=_t(()=>{let d=r.options,h=new Map;for(let b of d){let g=b._zod.propValues?.[r.discriminator];if(!g||g.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(b)}"`);for(let S of g){if(h.has(S))throw new Error(`Duplicate discriminator value "${String(S)}"`);h.set(S,b)}}return h});e._zod.parse=(d,h)=>{let b=d.value;if(!et(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:e}),d;let g=i.value.get(b?.[r.discriminator]);return g?g._zod.run(d,h):r.unionFallback?a(d,h):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:b,path:[r.discriminator],inst:e}),d)}});var Ya=x("$ZodRecord",(e,r)=>{X.init(e,r),e._zod.parse=(a,i)=>{let d=a.value;if(!Ta(d))return a.issues.push({expected:"record",code:"invalid_type",input:d,inst:e}),a;let h=[],b=r.keyType._zod.values;if(b){a.value={};let g=new Set;for(let T of b)if(typeof T=="string"||typeof T=="number"||typeof T=="symbol"){g.add(typeof T=="number"?T.toString():T);let I=r.valueType._zod.run({value:d[T],issues:[]},i);I instanceof Promise?h.push(I.then(D=>{D.issues.length&&a.issues.push(...Te(T,D.issues)),a.value[T]=D.value})):(I.issues.length&&a.issues.push(...Te(T,I.issues)),a.value[T]=I.value)}let S;for(let T in d)g.has(T)||(S=S??[],S.push(T));S&&S.length>0&&a.issues.push({code:"unrecognized_keys",input:d,inst:e,keys:S})}else{a.value={};for(let g of Reflect.ownKeys(d)){if(g==="__proto__")continue;let S=r.keyType._zod.run({value:g,issues:[]},i);if(S instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof g=="string"&&mr.test(g)&&S.issues.length){let D=r.keyType._zod.run({value:Number(g),issues:[]},i);if(D instanceof Promise)throw new Error("Async schemas not supported in object keys currently");D.issues.length===0&&(S=D)}if(S.issues.length){r.mode==="loose"?a.value[g]=d[g]:a.issues.push({code:"invalid_key",origin:"record",issues:S.issues.map(D=>Ce(D,i,ge())),input:g,path:[g],inst:e});continue}let I=r.valueType._zod.run({value:d[g],issues:[]},i);I instanceof Promise?h.push(I.then(D=>{D.issues.length&&a.issues.push(...Te(g,D.issues)),a.value[S.value]=D.value})):(I.issues.length&&a.issues.push(...Te(g,I.issues)),a.value[S.value]=I.value)}}return h.length?Promise.all(h).then(()=>a):a}});var Ja=x("$ZodEnum",(e,r)=>{X.init(e,r);let a=ur(r.entries),i=new Set(a);e._zod.values=i,e._zod.pattern=new RegExp(`^(${a.filter(d=>Ca.has(typeof d)).map(d=>typeof d=="string"?Ue(d):d.toString()).join("|")})$`),e._zod.parse=(d,h)=>{let b=d.value;return i.has(b)||d.issues.push({code:"invalid_value",values:a,input:b,inst:e}),d}}),Xa=x("$ZodLiteral",(e,r)=>{if(X.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");let a=new Set(r.values);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.values.map(i=>typeof i=="string"?Ue(i):i?Ue(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,d)=>{let h=i.value;return a.has(h)||i.issues.push({code:"invalid_value",values:r.values,input:h,inst:e}),i}});var ei=x("$ZodTransform",(e,r)=>{X.init(e,r),e._zod.parse=(a,i)=>{if(i.direction==="backward")throw new Ct(e.constructor.name);let d=r.transform(a.value,a);if(i.async)return(d instanceof Promise?d:Promise.resolve(d)).then(b=>(a.value=b,a));if(d instanceof Promise)throw new he;return a.value=d,a}});function Va(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}c(Va,"handleOptionalResult");var ti=x("$ZodOptional",(e,r)=>{X.init(e,r),e._zod.optin="optional",e._zod.optout="optional",re(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),re(e._zod,"pattern",()=>{let a=r.innerType._zod.pattern;return a?new RegExp(`^(${wt(a.source)})?$`):void 0}),e._zod.parse=(a,i)=>{if(r.innerType._zod.optin==="optional"){let d=r.innerType._zod.run(a,i);return d instanceof Promise?d.then(h=>Va(h,a.value)):Va(d,a.value)}return a.value===void 0?a:r.innerType._zod.run(a,i)}});var ri=x("$ZodNullable",(e,r)=>{X.init(e,r),re(e._zod,"optin",()=>r.innerType._zod.optin),re(e._zod,"optout",()=>r.innerType._zod.optout),re(e._zod,"pattern",()=>{let a=r.innerType._zod.pattern;return a?new RegExp(`^(${wt(a.source)}|null)$`):void 0}),re(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(a,i)=>a.value===null?a:r.innerType._zod.run(a,i)});var ai=x("$ZodPipe",(e,r)=>{X.init(e,r),re(e._zod,"values",()=>r.in._zod.values),re(e._zod,"optin",()=>r.in._zod.optin),re(e._zod,"optout",()=>r.out._zod.optout),re(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(a,i)=>{if(i.direction==="backward"){let h=r.out._zod.run(a,i);return h instanceof Promise?h.then(b=>xt(b,r.in,i)):xt(h,r.in,i)}let d=r.in._zod.run(a,i);return d instanceof Promise?d.then(h=>xt(h,r.out,i)):xt(d,r.out,i)}});function xt(e,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},a)}c(xt,"handlePipeResult");var ii=x("$ZodCustom",(e,r)=>{ze.init(e,r),X.init(e,r),e._zod.parse=(a,i)=>a,e._zod.check=a=>{let i=a.value,d=r.fn(i);if(d instanceof Promise)return d.then(h=>za(h,a,i,e));za(d,a,i,e)}});function za(e,r,a,i){if(!e){let d={code:"custom",input:a,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(d.params=i._zod.def.params),r.issues.push(dr(d))}}c(za,"handleRefineResult");var ni,ph=Symbol("ZodOutput"),uh=Symbol("ZodInput"),gr=class{static{c(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...a){let i=a[0];return this._map.set(r,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,r),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let a=this._map.get(r);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(r),this}get(r){let a=r._zod.parent;if(a){let i={...this.get(a)??{}};delete i.id;let d={...i,...this._map.get(r)};return Object.keys(d).length?d:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function si(){return new gr}c(si,"registry");(ni=globalThis).__zod_globalRegistry??(ni.__zod_globalRegistry=si());var vr=globalThis.__zod_globalRegistry;function li(e,r){return new e({type:"string",...J(r)})}c(li,"_string");function pi(e,r){return new e({type:"string",coerce:!0,...J(r)})}c(pi,"_coercedString");function ui(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...J(r)})}c(ui,"_url");function ci(e,r){return new e({type:"number",checks:[],...J(r)})}c(ci,"_number");function di(e,r){return new e({type:"number",coerce:!0,checks:[],...J(r)})}c(di,"_coercedNumber");function mi(e,r){return new e({type:"boolean",...J(r)})}c(mi,"_boolean");function fi(e,r){return new e({type:"boolean",coerce:!0,...J(r)})}c(fi,"_coercedBoolean");function hi(e,r){return new e({type:"bigint",coerce:!0,...J(r)})}c(hi,"_coercedBigint");function yi(e){return new e({type:"any"})}c(yi,"_any");function bi(e){return new e({type:"unknown"})}c(bi,"_unknown");function gi(e,r){return new e({type:"void",...J(r)})}c(gi,"_void");function vi(e,r){return new e({type:"date",coerce:!0,...J(r)})}c(vi,"_coercedDate");function me(e,r){return new Ma({check:"min_length",...J(r),minimum:e})}c(me,"_minLength");function Re(e,r){return new ka({check:"string_format",format:"regex",...J(r),pattern:e})}c(Re,"_regex");function Pi(e,r,a){let i=J(a);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:r,...i})}c(Pi,"_custom");var ae=x("ZodMiniType",(e,r)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");X.init(e,r),e.def=r,e.type=r.type,e.parse=(a,i)=>Et(e,a,i,{callee:e.parse}),e.safeParse=(a,i)=>rt(e,a,i),e.parseAsync=async(a,i)=>Dt(e,a,i,{callee:e.parseAsync}),e.safeParseAsync=async(a,i)=>at(e,a,i),e.check=(...a)=>e.clone({...r,checks:[...r.checks??[],...a.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]},{parent:!0}),e.with=e.check,e.clone=(a,i)=>It(e,a,i),e.brand=()=>e,e.register=(a,i)=>(a.add(e,i),e),e.apply=a=>a(e)}),Ot=x("ZodMiniString",(e,r)=>{kt.init(e,r),ae.init(e,r)});function f(e){return li(Ot,e)}c(f,"string");var Ai=x("ZodMiniStringFormat",(e,r)=>{hr.init(e,r),Ot.init(e,r)});var Ph=x("ZodMiniURL",(e,r)=>{Fa.init(e,r),Ai.init(e,r)});function Ni(e){return ui(Ph,e)}c(Ni,"url");var Pr=x("ZodMiniNumber",(e,r)=>{Ba.init(e,r),ae.init(e,r)});function oe(e){return ci(Pr,e)}c(oe,"number");var Ar=x("ZodMiniBoolean",(e,r)=>{yr.init(e,r),ae.init(e,r)});function Q(e){return mi(Ar,e)}c(Q,"boolean");var Si=x("ZodMiniBigInt",(e,r)=>{$a.init(e,r),ae.init(e,r)});var Ah=x("ZodMiniAny",(e,r)=>{Ga.init(e,r),ae.init(e,r)});function ot(){return yi(Ah)}c(ot,"any");var Nh=x("ZodMiniUnknown",(e,r)=>{Ha.init(e,r),ae.init(e,r)});function V(){return bi(Nh)}c(V,"unknown");var Sh=x("ZodMiniVoid",(e,r)=>{Wa.init(e,r),ae.init(e,r)});function Ti(e){return gi(Sh,e)}c(Ti,"_void");var Ci=x("ZodMiniDate",(e,r)=>{Ka.init(e,r),ae.init(e,r)});var Th=x("ZodMiniArray",(e,r)=>{Za.init(e,r),ae.init(e,r)});function B(e,r){return new Th({type:"array",element:e,...J(r)})}c(B,"array");var Ch=x("ZodMiniObject",(e,r)=>{ja.init(e,r),ae.init(e,r),re(e,"shape",()=>r.shape)});function v(e,r){let a={type:"object",shape:e??{},...J(r)};return new Ch(a)}c(v,"object");var Rh=x("ZodMiniUnion",(e,r)=>{br.init(e,r),ae.init(e,r)});function $(e,r){return new Rh({type:"union",options:e,...J(r)})}c($,"union");var _h=x("ZodMiniDiscriminatedUnion",(e,r)=>{Qa.init(e,r),ae.init(e,r)});function Fe(e,r,a){return new _h({type:"union",options:r,discriminator:e,...J(a)})}c(Fe,"discriminatedUnion");var wh=x("ZodMiniRecord",(e,r)=>{Ya.init(e,r),ae.init(e,r)});function z(e,r,a){return new wh({type:"record",keyType:e,valueType:r,...J(a)})}c(z,"record");var Ih=x("ZodMiniEnum",(e,r)=>{Ja.init(e,r),ae.init(e,r),e.options=Object.values(r.entries)});function H(e,r){let a=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Ih({type:"enum",entries:a,...J(r)})}c(H,"_enum");var Eh=x("ZodMiniLiteral",(e,r)=>{Xa.init(e,r),ae.init(e,r)});function q(e,r){return new Eh({type:"literal",values:Array.isArray(e)?e:[e],...J(r)})}c(q,"literal");var Dh=x("ZodMiniTransform",(e,r)=>{ei.init(e,r),ae.init(e,r)});function _e(e){return new Dh({type:"transform",transform:e})}c(_e,"transform");var xh=x("ZodMiniOptional",(e,r)=>{ti.init(e,r),ae.init(e,r)});function R(e){return new xh({type:"optional",innerType:e})}c(R,"optional");var Mh=x("ZodMiniNullable",(e,r)=>{ri.init(e,r),ae.init(e,r)});function nt(e){return new Mh({type:"nullable",innerType:e})}c(nt,"nullable");var kh=x("ZodMiniPipe",(e,r)=>{ai.init(e,r),ae.init(e,r)});function we(e,r){return new kh({type:"pipe",in:e,out:r})}c(we,"pipe");var qh=x("ZodMiniCustom",(e,r)=>{ii.init(e,r),ae.init(e,r)});function Lt(e,r){return Pi(qh,e??(()=>!0),r)}c(Lt,"custom");var st={};va(st,{bigint:()=>Bh,boolean:()=>Fh,date:()=>$h,number:()=>zh,string:()=>Vh});function Vh(e){return pi(Ot,e)}c(Vh,"string");function zh(e){return di(Pr,e)}c(zh,"number");function Fh(e){return fi(Ar,e)}c(Fh,"boolean");function Bh(e){return hi(Si,e)}c(Bh,"bigint");function $h(e){return vi(Ci,e)}c($h,"date");var Sr=v({retryOnFailure:v({defaultValue:R(Q()),hide:R(Q())}),continueOnFailure:v({defaultValue:R(Q()),hide:R(Q())})}),Nr=class{constructor(r,a,i,d,h,b,g,S,T,I,D){this.name=r;this.displayName=a;this.description=i;this.props=d;this.run=h;this.test=b;this.requireAuth=g;this.errorHandlingOptions=S;this.outputSchema=T;this.audience=I;this.aiMetadata=D}static{c(this,"IAction")}},s=c(e=>new Nr(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var j=v({displayName:f(),description:R(f())}),G=c((e,r)=>v({type:q(r),required:Q(),defaultValue:R(ot())}),"TPropertyValue");var le=v({...j.shape,...G(f(),"SHORT_TEXT").shape}),ve=v({...j.shape,...G(f(),"LONG_TEXT").shape});var _i=v({label:f(),value:V()}),Ut=v({disabled:R(Q()),placeholder:R(f()),options:B(_i)});var pe=v({...j.shape,options:Ut,...G(V(),"STATIC_DROPDOWN").shape}),Pe=v({...j.shape,options:Ut,...G(B(V()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Tr=v({...j.shape,...G(V(),"DROPDOWN").shape,refreshers:B(f())}),lt=v({...j.shape,...G(B(V()),"MULTI_SELECT_DROPDOWN").shape,refreshers:B(f())});var Ae=v({...j.shape,...G(Q(),"CHECKBOX").shape});var Ne=v({...j.shape,...G(oe(),"NUMBER").shape});var pt=v({...j.shape,...G(V(),"FILE").shape});var ut=v({...j.shape,...G(f(),"DATE_TIME").shape});var wi=z(f(),$([le,ve,pe,lt,Pe,Ae,Ne,pt,ut])),ct=v({...j.shape,properties:wi,...G(B(V()),"ARRAY").shape});var dt=v({...j.shape,...G($([z(f(),V())]),"JSON").shape});var Ii=$([le,pe,dt,ct,Pe]),Hh=z(f(),Ii),Cr=v({refreshers:B(f()),...j.shape,...G(V(),"DYNAMIC").shape});var Vt=v({...j.shape,...G(Ti(),"MARKDOWN").shape});var mt=(a=>(a.ARCHIVE="ARCHIVE",a.REGISTRY="REGISTRY",a))(mt||{}),Be=(a=>(a.CUSTOM="CUSTOM",a.OFFICIAL="OFFICIAL",a))(Be||{}),ft=(_=>(_.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",_.COMMUNICATION="COMMUNICATION",_.COMMERCE="COMMERCE",_.CORE="CORE",_.UNIVERSAL_AI="UNIVERSAL_AI",_.FLOW_CONTROL="FLOW_CONTROL",_.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",_.ACCOUNTING="ACCOUNTING",_.PRODUCTIVITY="PRODUCTIVITY",_.CONTENT_AND_FILES="CONTENT_AND_FILES",_.DEVELOPER_TOOLS="DEVELOPER_TOOLS",_.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",_.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",_.HUMAN_RESOURCES="HUMAN_RESOURCES",_.PAYMENT_PROCESSING="PAYMENT_PROCESSING",_.MARKETING="MARKETING",_.SALES_AND_CRM="SALES_AND_CRM",_))(ft||{});var ht=(a=>(a.AUTHORIZATION_CODE="authorization_code",a.CLIENT_CREDENTIALS="client_credentials",a))(ht||{}),Rr="both_client_credentials_and_authorization_code";var Ie=(d=>(d.POLLING="POLLING",d.WEBHOOK="WEBHOOK",d.APP_WEBHOOK="APP_WEBHOOK",d.MANUAL="MANUAL",d))(Ie||{}),yt=(h=>(h.NONE="NONE",h.HEADER_PRESENT="HEADER_PRESENT",h.QUERY_PRESENT="QUERY_PRESENT",h.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",h.HEAD_REQUEST="HEAD_REQUEST",h))(yt||{}),Wh=v({strategy:H(yt),paramName:R(f())}),bt=(a=>(a.SIMULATION="SIMULATION",a.TEST_FUNCTION="TEST_FUNCTION",a))(bt||{});var zt=(a=>(a.WEBSOCKET="WEBSOCKET",a.NONE="NONE",a))(zt||{}),Ei=v({status:R(oe()),body:R(V()),headers:R(z(f(),f()))}),Di=v({type:q("DELAY"),resumeDateTime:f(),requestIdToReply:R(f()),handlerId:R(f()),streamStepProgress:R(H(zt))}),xi=v({type:q("WEBHOOK"),requestId:f(),requestIdToReply:R(f()),response:Ei,handlerId:R(f()),streamStepProgress:R(H(zt))}),Kh=$([Di,xi]);var Zh=v({body:V(),rawBody:R(V()),headers:z(f(),f()),queryParams:z(f(),f())});function ue(e){return e==null}c(ue,"isNil");function gt(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}c(gt,"isEmpty");function Ft(e,r){if(e==null)throw new Error(`${r} is null or undefined`)}c(Ft,"assertNotNullOrUndefined");var _r=Le(require("crypto"),1);var jh=128,Me,$e,Qh=c(e=>{!Me||Me.length<e?(Me=Buffer.allocUnsafe(e*jh),_r.default.randomFillSync(Me),$e=0):$e+e>Me.length&&(_r.default.randomFillSync(Me),$e=0),$e+=e},"fillPool"),Yh=c(e=>(Qh(e|=0),Me.subarray($e-e,$e)),"random"),Jh=c((e,r,a)=>{let i=(2<<31-Math.clz32(e.length-1|1))-1,d=Math.ceil(1.6*i*r/e.length);return(h=r)=>{let b="";for(;;){let g=a(d),S=d;for(;S--;)if(b+=e[g[S]&i]||"",b.length===h)return b}}},"customRandom"),ki=c((e,r=21)=>Jh(e,r,Yh),"customAlphabet");var Xh="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",qi=21,eI=f().check(Re(new RegExp(`^[0-9a-zA-Z]{${qi}}$`))),ey=ki(Xh,qi);var Ee=we(_e(e=>e instanceof Date?e.toISOString():e),f()),ce={id:f(),created:Ee,updated:Ee},Y=c(e=>R(nt(e)),"Nullable");function wr(e){return R(nt(H(e)))}c(wr,"NullableEnum");var aI=we(_e(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),R(Q())),Bt=c(e=>we(_e(r=>Array.isArray(r)?r:r!==void 0?[r]:void 0),R(B(e))),"OptionalArrayFromQuery");var nI=z(f(),V());var vt=(I=>(I.OPENAI="openai",I.OPENROUTER="openrouter",I.ANTHROPIC="anthropic",I.AZURE="azure",I.GOOGLE="google",I.ACTIVEPIECES="activepieces",I.CLOUDFLARE_GATEWAY="cloudflare-gateway",I.CUSTOM="custom",I.BEDROCK="bedrock",I.MISTRAL="mistral",I))(vt||{});var gI=f().check(Re(/^#[0-9A-Fa-f]{6}$/));var PI=v({filename:f(),data:V(),type:q("file"),mimetype:R(f())});var ty=Le(Li());var _I=v({...ce,name:f(),permissions:B(f()),platformId:Y(f()),type:f(),userCount:R(oe())});var Ui=(i=>(i.AGENT_DECIDE="agent-decide",i.CHOOSE_YOURSELF="choose-yourself",i.LEAVE_EMPTY="leave-empty",i))(Ui||{}),Ir=(a=>(a.FILE="FILE",a.TABLE="TABLE",a))(Ir||{}),Er=(i=>(i.SSE="sse",i.STREAMABLE_HTTP="streamable-http",i.SIMPLE_HTTP="http",i))(Er||{});var Dr=(i=>(i.TEXT="text",i.NUMBER="number",i.BOOLEAN="boolean",i))(Dr||{});var xr=(a=>(a.IN_PROGRESS="in-progress",a.COMPLETED="completed",a))(xr||{});var ry=v({mode:H(Ui),value:V()}),ay=v({auth:R(f()),fields:z(f(),ry)}),iy=v({pieceName:f(),pieceVersion:f(),actionName:f(),predefinedInput:R(ay)}),oy=v({type:q("PIECE"),toolName:f().check(me(1)),pieceMetadata:iy}),ny=v({type:q("none")}),sy=v({type:q("access_token"),accessToken:f()}),ly=v({type:q("api_key"),apiKey:f(),apiKeyHeader:f()}),py=v({type:q("headers"),headers:z(f(),f())}),uy=Fe("type",[ny,sy,ly,py]),Vi=v({type:q("FLOW"),toolName:f().check(me(1)),externalFlowId:f(),flowDisplayName:R(f())}),zi=v({type:q("MCP"),toolName:f().check(me(1)),serverUrl:Ni(),protocol:H(Er),auth:uy}),Fi=v({type:q("KNOWLEDGE_BASE"),toolName:f().check(me(1)),sourceType:H(Ir),sourceId:f(),sourceName:f()}),cy=Fe("type",[oy,Vi,zi,Fi]),dy=v({displayName:f(),description:R(f()),type:H(Dr)}),Bi=v({type:q("MARKDOWN"),markdown:f()}),Ge={type:q("TOOL_CALL"),input:Y(z(f(),V())),output:R(V()),toolName:f(),status:H(xr),toolCallId:f(),startTime:f(),endTime:R(f())},eE=v(Ge),$i=Fe("toolCallType",[v({...Ge,toolCallType:q("PIECE"),pieceName:f(),pieceVersion:f(),actionName:f()}),v({...Ge,toolCallType:q("FLOW"),displayName:f(),externalFlowId:f()}),v({...Ge,toolCallType:q("MCP"),displayName:f(),serverUrl:f()}),v({...Ge,toolCallType:q("KNOWLEDGE_BASE"),displayName:f(),sourceType:f()}),v({...Ge,toolCallType:q("UNKNOWN"),displayName:f()})]),my=$([Bi,$i]);var Mr=(a=>(a.IMAGE="image",a.TEXT="text",a))(Mr||{}),Se=v({apiKey:f()}),fy=Se,hy=v({apiKey:f(),apiKeyHash:f()}),yy=Se,by=Se,gy=Se,vy=Se,Py=Se,Ay=Se,Ny=Se,Gi=v({accessKeyId:f().check(me(1)),secretAccessKey:f().check(me(1))}),Sy=v({}),Ty=v({}),Cy=v({}),Ry=v({}),_y=v({}),wy=v({}),Hi=v({modelId:f(),modelName:f(),modelType:H(Mr)}),Wi=v({apiKeyHeader:f(),baseUrl:f(),models:B(Hi),defaultHeaders:R(z(f(),f()))}),Ki=v({accountId:f(),gatewayId:f(),models:B(Hi),vertexProject:R(f()),vertexRegion:R(f())}),Zi=v({resourceName:f(),apiVersion:we(_e(e=>typeof e=="string"&&e.trim().length===0?void 0:e),R(f()))}),ji=v({region:f().check(me(1))}),Iy=$([fy,gy,vy,Py,Ay,by,yy,hy,Gi,Ny]),Qi=$([Wi,Ki,Zi,ji,Sy,Cy,Ry,_y,Ty,wy]),Ey=v({id:f(),name:f(),type:H(Mr)}),Dy=v({id:f(),name:f(),provider:H(vt),config:Qi,enabledForChat:Q()}),xy=v({provider:H(vt),config:Qi,auth:Iy,platformId:f()});var iE={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var My=v({base64Url:f(),fileName:f(),extension:R(f())}),ky=v({mimeType:f(),url:f(),fileName:R(f())}),kr=$([My,ky]);var qy=$([v({type:q("file"),value:kr}),v({type:q("markdown"),value:f(),files:R(B(kr))})]),Oy=v({sessionId:f(),message:f(),files:R(B(f()))});var Ji=(a=>(a.ON_NEW_RECORD="ON_NEW_RECORD",a.ON_UPDATE_RECORD="ON_UPDATE_RECORD",a))(Ji||{}),Xi=(a=>(a.ENABLED="ENABLED",a.DISABLED="DISABLED",a))(Xi||{}),qr=(i=>(i.RECORD_CREATED="RECORD_CREATED",i.RECORD_UPDATED="RECORD_UPDATED",i.RECORD_DELETED="RECORD_DELETED",i))(qr||{});var Ly=$([v({...ce,name:f(),externalId:f(),type:q("STATIC_DROPDOWN"),tableId:f(),projectId:f(),data:v({options:B(v({value:f()}))})}),v({...ce,name:f(),externalId:f(),type:$([q("TEXT"),q("NUMBER"),q("DATE")]),tableId:f(),projectId:f()})]),Uy=v({...ce,name:f(),folderId:Y(f()),projectId:f(),externalId:f(),status:wr(Xi),trigger:wr(Ji)}),Vy=v({...ce,tableId:f(),projectId:f(),cells:z(f(),v({updated:f(),created:f(),value:V(),fieldName:f()}))}),zy=v({events:B(H(qr)),webhookUrl:f(),flowId:f()}),Fy=v({fields:B(v({id:f(),name:f()})),rows:B(z(f(),f())),name:f()}),By=v({projectId:f(),limit:R(st.number()),cursor:R(f()),name:R(f()),externalIds:Bt(f()),folderId:R(f()),folderIds:Bt(f())}),$y=v({records:B(B(v({fieldId:f(),value:to()}))),tableId:f()}),Gy=v({cells:R(B(v({fieldId:f(),value:to()}))),tableId:f(),agentUpdate:R(Q())}),eo=Fe("operator",[ke("eq"),ke("neq"),ke("gt"),ke("gte"),ke("lt"),ke("lte"),ke("co"),Yi("exists"),Yi("not_exists")]),Hy=v({tableId:f(),limit:R(st.number()),cursor:R(f()),filters:Bt(eo)});function to(){return we(_e(e=>e==null?e:String(e)),nt(f()))}c(to,"coerceToString");function ke(e){return v({fieldId:f(),operator:q(e),value:f()})}c(ke,"valueFilter");function Yi(e){return v({fieldId:f(),operator:q(e)})}c(Yi,"existenceFilter");var Wy=v({status:R(oe()),body:R(V()),headers:R(z(f(),f()))}),Ky=v({...ce,deleted:Y(Ee),ownerId:f(),displayName:f(),platformId:f(),externalId:Y(f())});var ro=v({name:f(),description:R(f()),type:f(),required:Q()}),Zy=v({pieceName:f(),triggerName:f(),input:v({toolName:f(),toolDescription:f(),inputSchema:B(ro),returnsResponse:Q()})});var ao="^[0-9]+\\.[0-9]+\\.[0-9]+$",SE=new RegExp(ao),Qy="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",TE=f().check(Re(new RegExp(ao))),CE=f().check(Re(new RegExp(Qy))),Yy=v({packageType:q("ARCHIVE"),pieceType:H(Be),pieceName:f(),pieceVersion:f(),archiveId:f(),platformId:f()}),io=v({packageType:q("REGISTRY"),pieceType:q("OFFICIAL"),pieceName:f(),pieceVersion:f()}),oo=v({packageType:q("REGISTRY"),pieceType:q("CUSTOM"),pieceName:f(),pieceVersion:f(),platformId:f()}),RE=$([io,oo]),_E=$([Yy,io,oo]),no=(r=>(r.CRON_EXPRESSION="CRON_EXPRESSION",r))(no||{}),Jy=v({type:H(no),cronExpression:f(),timezone:f()}),wE=v({...ce,type:H(Ie),projectId:f(),flowId:f(),triggerName:f(),schedule:Y(Jy),flowVersionId:f(),pieceName:f(),pieceVersion:f(),deleted:Y(f()),simulate:Q()}),so=(N=>(N.UNKNOWN="UNKNOWN",N.FLOW_RUN_LOG="FLOW_RUN_LOG",N.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",N.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",N.FLOW_STEP_FILE="FLOW_STEP_FILE",N.SAMPLE_DATA="SAMPLE_DATA",N.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",N.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",N.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",N.PROJECT_RELEASE="PROJECT_RELEASE",N.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",N.PLATFORM_ASSET="PLATFORM_ASSET",N.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",N.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",N.KNOWLEDGE_BASE="KNOWLEDGE_BASE",N.FLOW_BUNDLE="FLOW_BUNDLE",N))(so||{}),lo=(a=>(a.NONE="NONE",a.ZSTD="ZSTD",a))(lo||{}),po=(a=>(a.S3="S3",a.DB="DB",a))(po||{}),IE=v({...ce,projectId:Y(f()),platformId:Y(f()),type:H(so),compression:H(lo),data:R(V()),location:H(po),size:Y(oe()),fileName:Y(f()),s3Key:Y(f()),metadata:Y(z(f(),f()))}),uo=(i=>(i.ADMIN="ADMIN",i.MEMBER="MEMBER",i.OPERATOR="OPERATOR",i))(uo||{}),co=(a=>(a.ACTIVE="ACTIVE",a.INACTIVE="INACTIVE",a))(co||{}),EE=v({id:f(),email:f(),firstName:f(),status:H(co),externalId:Y(f()),platformId:Y(f()),platformRole:H(uo),lastName:f(),created:Ee,updated:Ee,lastActiveDate:Y(Ee),imageUrl:Y(f())});var Lr=v({...j.shape,...G(z(f(),V()),"OBJECT").shape});var ho=v({...j.shape,...G(f(),"COLOR").shape});var Ur=$([le,ve,Vt,Ae,pe,Pe,Tr,lt,Cr,Ne,ct,Lr,dt,ut,pt,ho]),t={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let r=e.code.toString();return{...e,code:r,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var ye=v({displayName:f(),description:R(f())});var yo=v({username:f(),password:f()}),Vr=v({...ye.shape,username:v({displayName:f(),description:R(f())}),password:v({displayName:f(),description:R(f())}),...G(yo,"BASIC_AUTH").shape});var rb=z(f(),$([le,ve,Ne,Ae,pe])),zr=v({...ye.shape,props:rb,...G(V(),"CUSTOM_AUTH").shape});var qe=v({...ye.shape,...G(v({auth:f()}),"SECRET_TEXT").shape});var ab=z(f(),$([le,ve,qe,Ne,Ae,pe,Pe,Vt])),bo=v({...ye.shape,props:ab,...G(V(),"OIDC").shape});var Fr=(a=>(a.HEADER="HEADER",a.BODY="BODY",a))(Fr||{}),go=$([le,qe,pe]),vo=z(f(),go),ib=v({props:R(z(f(),go)),authUrl:f(),tokenUrl:f(),scope:B(f()),prompt:R($([q("none"),q("consent"),q("login"),q("omit")])),pkce:R(Q()),pkceMethod:R($([q("plain"),q("S256")])),authorizationMethod:R(H(Fr)),grantType:R($([H(ht),q(Rr)])),extra:R(z(f(),f()))}),Po=v({access_token:f(),props:R(vo),data:z(f(),ot())}),Br=v({...ye.shape,...ib.shape,...G(Po,"OAUTH2").shape});var He=$([Vr,zr,bo,Br,qe]),Pt="Connection",Gt={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Pt}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Pt,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Pt}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Pt}},None(){}};var lx={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var ob=v({...j.shape,...G(V(),"CUSTOM").shape,code:f()});var nb=$([Ur,He]),$r=z(f(),nb),wx=z(f(),Ur);var Ao=$([v({strategy:q("CRON"),cronExpression:f()}),v({strategy:q("NONE")})]),We=class{constructor(r,a,i,d,h,b,g,S,T,I,D,w,y,P,C,N,_,E,K){this.name=r;this.displayName=a;this.description=i;this.requireAuth=d;this.props=h;this.type=b;this.handshakeConfiguration=g;this.onHandshake=S;this.renewConfiguration=T;this.onRenew=I;this.onEnable=D;this.onDisable=w;this.onStart=y;this.run=P;this.test=C;this.sampleData=N;this.testStrategy=_;this.outputSchema=E;this.aiMetadata=K}static{c(this,"ITrigger")}},No=c(e=>{switch(e.type){case"WEBHOOK":return new We(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata);case"POLLING":return new We(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"MANUAL":return new We(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata);case"APP_WEBHOOK":return new We(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},async()=>Promise.resolve(),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,ue(e.sampleData)&&ue(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata)}},"createTrigger");var So="2",Ht="0.82.0";var Gr=class{constructor(r,a,i,d,h,b,g,S,T=Ht,I,D=""){this.displayName=r;this.logoUrl=a;this.authors=i;this.events=d;this.categories=g;this.auth=S;this.minimumSupportedRelease=T;this.maximumSupportedRelease=I;this.description=D;this._actions={};this._triggers={};this.getContextInfo=c(()=>({version:So}),"getContextInfo");(!sb(T)||lb(T,Ht))&&(this.minimumSupportedRelease=Ht),h.forEach(w=>this._actions[w.name]=w),b.forEach(w=>this._triggers[w.name]=w)}static{c(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,contextInfo:this.getContextInfo?.()}}getAction(r){return this._actions[r]}getTrigger(r){return this._triggers[r]}actions(){return this._actions}triggers(){return this._triggers}},To=c(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((a,i,d)=>i===d.findIndex(h=>h.type===a.type)))throw new Error("Auth properties must be unique by type");return new Gr(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function sb(e){return/^\d+\.\d+\.\d+$/.test(e)}c(sb,"isValidSimpleSemver");function lb(e,r){let[a,i,d]=e.split(".").map(Number),[h,b,g]=r.split(".").map(Number);return a!==h?a<h:i!==b?i<b:d<g}c(lb,"isSemverLessThan");var pb=R(z(f(),z(f(),f()))),Co=v({id:R(f()),name:f(),displayName:f(),logoUrl:f(),description:f(),authors:B(f()),platformId:R(f()),directoryPath:R(f()),auth:R($([He,B(He)])),version:f(),categories:R(B(H(ft))),minimumSupportedRelease:R(f()),maximumSupportedRelease:R(f()),i18n:pb}),ub=H(["human","ai","both"]),Ro=v({description:R(f()),idempotent:R(Q())}),_o=v({name:f(),displayName:f(),description:f(),props:$r,requireAuth:Q(),errorHandlingOptions:R(Sr),outputSchema:R(Lt()),audience:R(ub),aiMetadata:R(Ro)}),wo=v({name:f(),displayName:f(),description:f(),props:$r,errorHandlingOptions:R(Sr),type:H(Ie),sampleData:V(),handshakeConfiguration:R(Lt()),renewConfiguration:R(Ao),testStrategy:H(bt),outputSchema:R(Lt()),aiMetadata:R(Ro)}),cb=v({...Co.shape,actions:z(f(),_o),triggers:z(f(),wo)}),db=v({...Co.shape,actions:oe(),triggers:oe(),suggestedActions:R(B(wo)),suggestedTriggers:R(B(_o))}),Io=v({projectUsage:oe(),tags:R(B(f())),pieceType:H(Be),packageType:H(mt),platformId:R(f()),archiveId:R(f())}),wM=v({...cb.shape,...Io.shape}),IM=v({...db.shape,...Io.shape}),EM=v({name:f(),version:f()});var mb=Le(require("path")),fb=Le(require("fs/promises"));var Wt=class{constructor(r,a){this.baseUrl=r;this.authenticationConverter=a}static{c(this,"BaseHttpClient")}getUrl(r){let a=new URL(`${this.baseUrl}${r.url}`),i=`${a.origin}${a.pathname}`,d=new URLSearchParams;return a.searchParams.forEach((h,b)=>{d.append(b,h)}),{urlWithoutQueryParams:i,queryParams:d}}getHeaders(r){let a={Accept:"application/json"};if(r.authentication&&this.populateAuthentication(r.authentication,a),r.body)switch(r.headers?.["Content-Type"]){case"text/csv":a["Content-Type"]="text/csv";break;default:a["Content-Type"]="application/json";break}return r.headers&&(a={...a,...r.headers}),a}populateAuthentication(r,a){this.authenticationConverter.convert(r,a)}};var Kt=class{static{c(this,"DelegatingAuthenticationConverter")}constructor(r=new Hr,a=new Wr){this.converters={BEARER_TOKEN:r,BASIC:a}}convert(r,a){return this.converters[r.type].convert(r,a)}},Hr=class{static{c(this,"BearerTokenAuthenticationConverter")}convert(r,a){return a.Authorization=`Bearer ${r.token}`,a}},Wr=class{static{c(this,"BasicTokenAuthenticationConverter")}convert(r,a){let i=`${r.username}:${r.password}`,d=Buffer.from(i).toString("base64");return a.Authorization=`Basic ${d}`,a}};var Zt=class extends Error{constructor(a,i){let d=i.status||500,h=Buffer.isBuffer(i.responseBody)?i.responseBody.toString():i.responseBody;super(JSON.stringify({response:{status:d,body:h},request:{body:a}}));this.requestBody=a;this.status=d,this.responseBody=h}static{c(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};var jt=class extends Wt{static{c(this,"FetchHttpClient")}constructor(r="",a=new Kt){super(r,a)}async sendRequest(r,a){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:i,queryParams:d}=this.getUrl(r),h=this.getHeaders(r),b=r.queryParams??{};for(let[K,se]of Object.entries(b))d.append(K,se);let g=d.toString(),S=g?`${i}?${g}`:i,T=r.responseType??"json",I=r.followRedirects??!0,D=r.retries??0,{body:w,extraHeaders:y,isStream:P}=hb(r.body,h),C=bb({...h,...y}),N=await yb(async()=>{let K=new AbortController,se=r.timeout&&r.timeout>0?setTimeout(()=>K.abort(),r.timeout):void 0;try{let de={method:r.method.toString(),headers:C,body:w,redirect:I?"follow":"manual",signal:K.signal};return P&&(de.duplex="half"),a?.dispatcher!==void 0&&(de.dispatcher=a.dispatcher),await fetch(S,de)}finally{se!==void 0&&clearTimeout(se)}},D),_=I?300:400;if(N.status<200||N.status>=_){let K=await Eo(N,T),se=new Zt(r.body,{status:N.status,responseBody:K});throw console.error("[HttpClient#(sanitized error message)] Request failed:",se),se}let E=await Eo(N,T);return{status:N.status,headers:gb(N.headers),body:E}}};function hb(e,r){return Pb(e)?{body:void 0,extraHeaders:{},isStream:!1}:vb(e)?{body:e,extraHeaders:e.getHeaders(),isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(r["Content-Type"]??r["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}c(hb,"serializeBody");async function Eo(e,r){switch(r){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();case"json":default:{let a=await e.text();if(a.length===0)return;try{return JSON.parse(a)}catch{return a}}}}c(Eo,"parseResponseBody");async function yb(e,r){let a;for(let i=0;i<=r;i++)try{let d=await e();if(d.status>=500&&i<r){await Do(i);continue}return d}catch(d){if(a=d,i<r){await Do(i);continue}throw d}throw a}c(yb,"sendWithRetries");function Do(e){let r=Math.min(1e3*2**e,3e4);return new Promise(a=>setTimeout(a,r))}c(Do,"backoff");function bb(e){let r={};for(let[a,i]of Object.entries(e))i!==void 0&&(r[a]=Array.isArray(i)?i.join(", "):i);return r}c(bb,"normalizeHeaders");function gb(e){let r={};return e.forEach((a,i)=>{r[i]=a}),r}c(gb,"toHttpHeaders");function vb(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}c(vb,"isNodeFormData");function Pb(e){return e==null}c(Pb,"isNil");var Qt=new jt;var Kr=(b=>(b.GET="GET",b.POST="POST",b.PATCH="PATCH",b.PUT="PUT",b.DELETE="DELETE",b.HEAD="HEAD",b))(Kr||{});var sv=Le(require("fs")),Us=Le(Ls());var lv={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function pv(e){let r=e.split(";")[0].trim().toLowerCase();return lv[r]??""}c(pv,"contentTypeToExtension");var uv=c(({baseUrl:e,relativePath:r})=>{let a=e.endsWith("/")?e:`${e}/`,i=r.startsWith("/")?r.slice(1):r;return`${a}${i}`},"joinBaseUrlWithRelativePath"),cv=c((e,r)=>{let a="https://api.example.com";try{let i=r?e(r):void 0;return(i?.endsWith("/")?i.slice(0,-1):i)??a}catch{return a}},"getBaseUrlForDescription");function Vs({auth:e,baseUrl:r,authMapping:a,description:i,displayName:d,name:h,props:b,extraProps:g,authLocation:S="headers"}){return s({audience:"human",name:h||"custom_api_call",displayName:d||"Custom API Call",description:i||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:t.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:c(async({auth:T})=>({url:t.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
|
|
3
|
+
i.e ${cv(r,T)}/resource or /resource`,required:!0,defaultValue:T?r(T):"",...b?.url??{}})}),"props")}),method:t.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Kr).map(T=>({label:T,value:T}))},...b?.method??{}}),headers:t.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...b?.headers??{}}),queryParams:t.Object({displayName:"Query Parameters",required:!0,...b?.queryParams??{}}),body_type:t.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:t.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:c(async({body_type:T})=>{if(!T)return{};let I=T,D={};switch(I){case"none":break;case"json":D.data=t.Json({displayName:"JSON Body",required:!0,...b?.body??{}});break;case"raw":D.data=t.LongText({displayName:"Raw Body",required:!0});break;case"form_data":D.data=t.Array({displayName:"Form Data",required:!0,properties:{fieldName:t.ShortText({displayName:"Field Name",required:!0}),fieldType:t.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:t.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:t.File({displayName:"File Field Value",required:!1})}});break}return D},"props")}),response_is_binary:t.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:t.Checkbox({displayName:"No Error on Failure",required:!1,...b?.failsafe??{}}),timeout:t.Number({displayName:"Timeout (in seconds)",required:!1,...b?.timeout??{}}),followRedirects:t.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...g},run:c(async T=>{let{method:I,url:D,headers:w,queryParams:y,body:P,body_type:C,failsafe:N,timeout:_,response_is_binary:E,followRedirects:K}=T.propsValue;Ft(I,"Method"),Ft(D,"URL");let se=ue(a)?{}:await a(T.auth,T.propsValue),de=D.url,Je=de.startsWith("http://")||de.startsWith("https://")?de:uv({baseUrl:r(T.auth),relativePath:de}),xe={method:I,url:Je,headers:{...w??{},...S==="headers"||!ue(S)?se:{}},queryParams:{...S==="queryParams"?se:{},...y??{}},timeout:_?_*1e3:0,followRedirects:K};if(E&&(xe.responseType="arraybuffer"),P)if(C&&C!=="none"){let be=P.data;if(C==="form_data"){let zf=be,Tt=new Us.default;for(let{fieldName:ya,fieldType:ba,textFieldValue:ga,fileFieldValue:sr}of zf)ba==="text"&&!gt(ga)?Tt.append(ya,ga):ba==="file"&&!gt(sr)&&Tt.append(ya,sr.data,{filename:sr?.filename});xe.body=Tt,xe.headers={...xe.headers,...Tt.getHeaders()}}else xe.body=be}else C||(xe.body=P);try{let be=await Qt.sendRequest(xe);return await dv(T.files,be.body,be.status,be.headers,E)}catch(be){if(N)return be.errorMessage();throw be}},"run")})}c(Vs,"createCustomApiCallAction");var dv=c(async(e,r,a,i,d)=>{let h;if(d&&mv(r)){let b=Array.isArray(i?.["content-type"])?i["content-type"][0]:i?.["content-type"],g=pv(b??"")||"txt",S;r instanceof ArrayBuffer?S=Buffer.from(new Uint8Array(r)):Buffer.isBuffer(r)?S=r:S=Buffer.from(r),h=await e.write({fileName:`output.${g}`,data:S})}else h=r;return{status:a,headers:i,body:h}},"handleBinaryResponse"),mv=c(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var o=Gt.CustomAuth({description:"Ampeco Platform",required:!0,props:{baseApiUrl:t.ShortText({displayName:"Base URL",required:!0}),token:Gt.SecretText({displayName:"API Token",required:!0,description:"Navigate to the API Access Tokens menu within your account.Click the Create API Access Token button to initiate the token creation process."})}});async function n(e,r,a,i,d){let h;if(r.startsWith("http://")||r.startsWith("https://"))h=r;else{let S=e.props.baseApiUrl||"",T=S.endsWith("/")?S.slice(0,-1):S,I=r.startsWith("/")?r:`/${r}`;h=`${T}${I}`}d||(d={}),!("cursor"in d)&&!("page"in d)&&(d={...d,cursor:"null"});let b={method:a,url:h,headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.props.token}`},queryParams:d,body:i},g=await Qt.sendRequest(b);if(g.status<200||g.status>=300)throw new Error(`API call failed with status ${g.status}: ${JSON.stringify(g.body)}`);return g.body}c(n,"makeAmpecoApiCall");function l(e,r){let a=e,i=e.match(/\{([^}]+)\}/g);if(i)for(let d of i){let h=d.slice(1,-1),b=r[h];ue(b)||(a=a.replace(d,encodeURIComponent(String(b))))}return a}c(l,"processPathParameters");function nr(e,r){let a={};for(let[i,d]of Object.entries(e)){let h=`${r}[${i}]`;d!=null&&(Array.isArray(d)?d.forEach((b,g)=>{let S=`${h}[${g}]`;typeof b=="object"&&b!==null?Object.assign(a,nr(b,S)):a[S]=String(b)}):typeof d=="object"&&d!==null?Object.assign(a,nr(d,h)):a[h]=String(d))}return a}c(nr,"flattenToQueryParams");function fa(e){if(e==null)return!0;if(typeof e!="object")return!1;if(Array.isArray(e))return e.every(fa);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!fa(e[r]))return!1;return!0}c(fa,"isDeepEmpty");function ha(e){let r={};for(let[a,i]of Object.entries(e)){if(i==null||a.includes("_VariantType"))continue;let d=a.split("__"),h=r;for(let S=0;S<d.length-1;S++){let T=d[S];(h[T]===void 0||typeof h[T]!="object"||h[T]===null)&&(h[T]={}),h=h[T]}let b=d[d.length-1],g=i;if(typeof i=="object"&&!Array.isArray(i)&&i!==null){g=ha(i);let S=Object.keys(g);if(S.length===1&&S[0]===b){let T=g[b];typeof T=="object"&&T!==null&&!Array.isArray(T)&&(g=T)}}typeof h[b]=="object"&&h[b]!==null&&typeof g=="object"&&g!==null&&!Array.isArray(h[b])&&!Array.isArray(g)?h[b]={...h[b],...g}:h[b]=g}return r}c(ha,"reconstructNestedObjects");function p(e,r=[]){let a={},i=["usePagination","auth"],d=ha(e);for(let[h,b]of Object.entries(d))Object.prototype.hasOwnProperty.call(d,h)&&(i.includes(h)||b===void 0||b===null||Array.isArray(b)&&b.length===0||r.length===0||!r.includes(h)||(Array.isArray(b)?b.forEach((g,S)=>{let T=`${h}[${S}]`;typeof g=="object"&&g!==null?Object.assign(a,nr(g,T)):a[T]=String(g)}):typeof b=="object"&&b!==null?Object.assign(a,nr(b,h)):a[h]=String(b)));return a}c(p,"prepareQueryParams");function m(e,r=[]){let a={},i=["usePagination","auth"],d=ha(e);for(let[h,b]of Object.entries(d))if(Object.prototype.hasOwnProperty.call(d,h)&&!(i.includes(h)||b===void 0||b===null)&&!fa(b)){if(h==="requestBody"){for(let[g,S]of Object.entries(b))S!=null&&(a[g]=S);continue}r.length===0||!r.includes(h)||(a[h]=b)}return a}c(m,"prepareRequestBody");async function A({auth:e,method:r,path:a,queryParams:i={},body:d,perPage:h=100,dataPath:b="data"}){try{return await fv({auth:e,method:r,path:a,queryParams:i,body:d,perPage:h,dataPath:b})}catch(g){throw new Error(`Pagination failed: ${g instanceof Error?g.message:String(g)}`)}}c(A,"paginate");async function fv({auth:e,method:r,path:a,queryParams:i={},body:d,perPage:h=100,dataPath:b="data"}){let g=[],S=Math.min(100,h),T=a,I={...i,per_page:String(S),cursor:"null"},D=null;for(;T&&g.length<h;){let y=await n(e,T,r,d,I);D===null&&(D=y);let P=hv(y,b);if(P.length===0)break;g.push(...P),T=y?.links?.next??null,T&&(I={})}if(D===null)return{[b]:[]};let w=g.slice(0,h);if(Array.isArray(D))return w;if(typeof D=="object"){let y={...D};return y[b]=w,y.links&&typeof y.links=="object"&&(y.links.next=null),y}return w}c(fv,"paginateWithCursor");function hv(e,r="data"){if(e&&typeof e=="object"&&r in e){let a=e[r];if(Array.isArray(a))return a}if(Array.isArray(e))return e;throw new Error(`Could not find array data at '${r}' in API response`)}c(hv,"extractDataFromResponse");function u(e){if(typeof e=="object"&&e!==null&&"response"in e&&e.response!==void 0){let r=e,a=r.response?.status,i=r.response?.data||r.response?.body||{};throw new Error(`API call failed (Status ${a}): ${i.message||i.error||JSON.stringify(i)||"Unknown error"}`)}else{if(typeof e=="object"&&e!==null&&"request"in e&&e.request!==void 0)throw new Error("Network Error: No response received from API");{let r=e instanceof Error?e.message:String(e);throw new Error(`Error: ${r||"Unknown error occurred"}`)}}}c(u,"handleApiError");var zs=s({auth:o,name:"chargePointChangeAvailability",displayName:"Actions - Charge Point - Change Availability",description:"Change the availability to available or unavailable. A Charge Point is considered unavailable when it does not allow any charging.",audience:"both",aiMetadata:{description:"Set a charge point (or a single connector via evseNetworkId) to Operative (charging allowed) or Inoperative (charging blocked). Idempotent: it sets an absolute availability state, so re-running with the same type leaves the same end state.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evseNetworkId:t.Number({displayName:"Evse Network Id",description:"The id of the connector for which availability needs to change. If missing the availability of the Charge Point and all its connectors needs to change.",required:!1}),type:t.StaticDropdown({displayName:"Type",description:"The type of availability change that the Charge Point should perform\n* `Inoperative` Charge point is not available for charging.\n* `Operative` Charge point is available for charging.\n",required:!0,options:{options:[{label:"Inoperative",value:"Inoperative"},{label:"Operative",value:"Operative"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/change-availability",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["evseNetworkId","type"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Fs=s({auth:o,name:"chargePointChangeOwner",displayName:"Actions - Charge Point - Change Owner",description:"Change the owner of the Charge Point.",audience:"both",aiMetadata:{description:"Reassign ownership of a personal charge point to the given user, or remove the owner when no user id is supplied. Use for transferring a home/personal charger between accounts. Setting the same owner twice yields the same end state, so it is effectively idempotent for a fixed user id.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),userId:t.Number({displayName:"User ID",description:"This User would become the owner of the personal charge point. If left empty - no Owner would be assigned.",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/change-owner",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Bs=s({auth:o,name:"chargePointClearChargingProfile",displayName:"Actions - Charge Point - Clear Charging Profile",description:"If you are not using networkId and not passing other criteria in the body it will clear the charging profile for the charge point (ChargePointMaxProfile).",audience:"both",aiMetadata:{description:"Send an OCPP ClearChargingProfile command to a charge point to remove charging profiles matching the supplied filters (profile id, connector/EVSE network id, purpose, stack level); omit filters to clear the overall ChargePointMaxProfile. This is a remote control command, not a local config change, and clears whatever currently matches, so repeating it with the same filters is effectively a no-op once profiles are gone. Use to lift charging limits or schedules previously set on a station.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),id:t.Number({displayName:"Id",description:"The ID of the charging profile to clear.",required:!1}),evseNetworkId:t.ShortText({displayName:"Evse Network Id",description:"Specifies the ID of the connector for which to clear charging profiles. A connectorId of zero (0) specifies the charging profile for the overall Charge Point. Absence of this parameter means the clearing applies to all charging profiles that match the other criteria in the request.",required:!1}),chargingProfilePurpose:t.ShortText({displayName:"Charging Profile Purpose",description:"Specifies to purpose of the charging profiles that will be cleared, if they meet the other criteria in the request.",required:!1}),stackLevel:t.Number({displayName:"Stack Level",description:"Specifies the stackLevel for which charging profiles will be cleared, if they meet the other criteria in the request.",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/clear-charging-profile",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["id","evseNetworkId","chargingProfilePurpose","stackLevel"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var $s=s({auth:o,name:"chargePointGetDiagnostics",displayName:"Actions - Charge Point - Get Diagnostics",description:"Request a get diagnostics upload from the charge point.",audience:"both",aiMetadata:{description:"Send an OCPP GetDiagnostics command instructing a charge point to upload its diagnostics file to the given FTP location, optionally bounded by a start/stop date-time window. Use to collect device diagnostics for troubleshooting. Each call triggers a fresh upload, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),location:t.ShortText({displayName:"Location",description:"FTP address to upload the diagnostics to",required:!0}),start:t.DateTime({displayName:"Start",description:"Only get diagnostics that are created after this date-time",required:!1}),stop:t.DateTime({displayName:"Stop",description:"Only get diagnostics that are created before that date-time",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/get-diagnostics",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["location","start","stop"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Gs=s({auth:o,name:"chargePointGetSecurityLog",displayName:"Actions - Charge Point - Get Security Log",description:"Charge Point / Get Security Log. ",audience:"both",aiMetadata:{description:"Send an OCPP GetLog (security log) command instructing a charge point to upload its security log to the given remote URL, optionally bounded by a start/stop time window and with retry settings. Use to collect security/audit logs from a station for investigation. Each call triggers a fresh upload, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),url:t.ShortText({displayName:"URL",description:"The URL of the location at the remote system where the log should be stored.",required:!0}),reason:t.ShortText({displayName:"Reason",description:"Reason kept in the action logs for future reference.",required:!0}),retries:t.Number({displayName:"Retries",description:"This specifies how many times the Charge Point must try to upload the log before giving up. If this field is not present, it is left to Charge Point to decide how many times it wants to retry.",required:!1}),interval:t.Number({displayName:"Interval",description:"The interval in seconds after which a retry may be attempted. If this field is not present, it is left to Charge Point to decide how long to wait between attempts.",required:!1}),startTime:t.ShortText({displayName:"Start Time",description:"This contains the date and time of the oldest logging information to include in the diagnostics. Please provide the value in the following format `Y-m-d H:i:s`.",required:!1}),stopTime:t.ShortText({displayName:"Stop Time",description:"This contains the date and time of the latest logging information to include in the diagnostics. Please provide the value in the following format `Y-m-d H:i:s`.",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/get-security-log",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["url","reason","retries","interval","startTime","stopTime"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Hs=s({auth:o,name:"chargePointMoveEvsesToSatellite",displayName:"Actions - Charge Point - Move EVSEs To Satellite",description:"Move one or more EVSEs from this charge point to a satellite charge point.",audience:"both",aiMetadata:{description:"Reassign one or more EVSEs from this charge point to a specified satellite charge point. Use when restructuring how connectors are grouped across a master/satellite station topology. Once the EVSEs are moved, repeating the call for the same target is effectively a no-op, but mid-state retries can fail if an EVSE no longer belongs here, so treat it as a mutating operation.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),satelliteChargePointId:t.Number({displayName:"Satellite Charge Point Id",required:!0}),evseIds:t.Array({displayName:"EVSE Ids",required:!0})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/move-evses-to-satellite",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["satelliteChargePointId","evseIds"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ws=s({auth:o,name:"chargePointReserve",displayName:"Actions - Charge Point - Reserve",description:"Reserve an evse.",audience:"both",aiMetadata:{description:"Reserve a specific EVSE (connector) on a charge point for a given user so it is held for their upcoming session. Use when a driver wants to guarantee a connector before arriving. Each call creates a new reservation rather than reusing one, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),userId:t.Number({displayName:"User Id",required:!0}),reason:t.ShortText({displayName:"Reason",description:'In case reason is empty, following text "Activated via API" will be added automatically',required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/reserve/{evse}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId","reason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ks=s({auth:o,name:"chargePointResetSecurityProfile",displayName:"Actions - Charge Point - Reset Security Profile",description:"Reset the current security profile of the charge point in the backend. The next time the charge point connects, the backend will accept the connection and update the current security profile with the one that the charge point actually used to establish the connection.",audience:"both",aiMetadata:{description:"Clear the backend-stored OCPP security profile for a charge point so the next connection is accepted and the profile is re-learned from the actual connection used. Use to recover when a station can no longer connect because its security profile drifted from what the backend expects. Resetting an already-reset profile is effectively a no-op, so it is safe to retry.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/reset-security-profile",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var Zs=s({auth:o,name:"chargePointReset",displayName:"Actions - Charge Point - Reset",description:"Reset a charge point.",audience:"both",aiMetadata:{description:"Reboot a charge point, either a soft reset (restart the application) or a hard reset (full power cycle). Not idempotent: each call issues a new reboot command to the device.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),type:t.StaticDropdown({displayName:"Type",required:!0,options:{options:[{label:"hard",value:"hard"},{label:"soft",value:"soft"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/reset/{type}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var js=s({auth:o,name:"chargePointSendDataTransfer",displayName:"Actions - Charge Point - Send Data Transfer",description:"Charge Point / Send Data Transfer.",audience:"both",aiMetadata:{description:"Send an OCPP DataTransfer message to a charge point carrying vendor-specific data, identified by a vendor id and optional message id and free-form data payload. Use to invoke proprietary/vendor extensions not covered by standard OCPP actions. Effects depend on the vendor implementation, so treat it as a non-idempotent command.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0}),vendorId:t.ShortText({displayName:"Vendor Id",description:"The identifier of the vendor specific implementation.",required:!0}),messageId:t.ShortText({displayName:"Message Id",description:"Additional identification field.",required:!1}),data:t.ShortText({displayName:"Data",description:"Data without specified length or format",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/send-data-transfer",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["vendorId","messageId","data"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Qs=s({auth:o,name:"chargePointSetChargingProfile",displayName:"Actions - Charge Point - Set Charging Profile",description:"Set a smart charging profile.",audience:"both",aiMetadata:{description:"Apply an OCPP smart-charging profile (purpose, kind, charging schedule with rate limits) to a charge point connector, optionally bound to a transaction. Effectively idempotent at a given stack level: re-sending the same profile at the same stackLevel overwrites it rather than stacking duplicates.",idempotent:!0},props:{evseNetworkId:t.Number({displayName:"Evse Network Id",required:!0}),chargePoint:t.Number({displayName:"Charge Point",required:!0}),transactionId:t.Number({displayName:"Transaction Id",required:!1}),stackLevel:t.Number({displayName:"Stack Level",required:!0}),chargingProfilePurpose:t.StaticDropdown({displayName:"Charging Profile Purpose",description:"",required:!0,options:{options:[{label:"ChargePointMaxProfile",value:"ChargePointMaxProfile"},{label:"TxDefaultProfile",value:"TxDefaultProfile"},{label:"TxProfile",value:"TxProfile"}]}}),chargingProfileKind:t.StaticDropdown({displayName:"Charging Profile Kind",description:"",required:!0,options:{options:[{label:"Absolute",value:"Absolute"},{label:"Recurring",value:"Recurring"},{label:"Relative",value:"Relative"}]}}),recurrencyKind:t.StaticDropdown({displayName:"Recurrency Kind",description:"",required:!1,options:{options:[{label:"Daily",value:"Daily"},{label:"Weekly",value:"Weekly"}]}}),validFrom:t.DateTime({displayName:"Valid From",required:!1}),validTo:t.DateTime({displayName:"Valid To",required:!1}),chargingSchedule__id:t.Number({displayName:"Charging Schedule - Id",required:!1}),chargingSchedule__duration:t.Number({displayName:"Charging Schedule - Duration",required:!1}),chargingSchedule__startSchedule:t.DateTime({displayName:"Charging Schedule - Start Schedule",required:!1}),chargingSchedule__chargingRateUnit:t.StaticDropdown({displayName:"Charging Schedule - Charging Rate Unit",required:!0,options:{options:[{label:"A",value:"A"},{label:"W",value:"W"}]}}),chargingSchedule__chargingSchedulePeriod:t.Array({displayName:"Charging Schedule - Charging Schedule Period",required:!0,properties:{startPeriod:t.Number({displayName:"Start Period",required:!0}),limit:t.Number({displayName:"Limit",required:!0}),numberPhases:t.Number({displayName:"Number Phases",required:!1})}}),chargingSchedule__minChargingRate:t.Number({displayName:"Charging Schedule - Min Charging Rate",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/set-charging-profile/{evseNetworkId}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["transactionId","stackLevel","chargingProfilePurpose","chargingProfileKind","recurrencyKind","validFrom","validTo","chargingSchedule"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ys=s({auth:o,name:"chargePointStartChargingSessionWithoutEvse",displayName:"Actions - Charge Point - Start Charging Session Without EVSE",description:"Start a charging session.",audience:"both",aiMetadata:{description:"Remotely start a charging session on a charge point without targeting a specific EVSE, letting the station pick the connector (an optional connectorId can be supplied). Use for single-connector stations or when the EVSE is not known in advance; prefer the start-charging-session action when you need to target a specific EVSE. Each call begins a new session, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),userId:t.Number({displayName:"User Id",required:!1}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:'The ID of the payment method, as returned by the payment method listing (User / Payment Method / Listing). When left empty or null, it would be determined by the system - either "balance" or "subscription" (in case the the user has an active post-paid subscription for home charging sessions and the charge point is a home charger). When it is NOT empty or null, userId is required.',required:!1}),externalSessionId:t.ShortText({displayName:"External Session Id",required:!1}),connectorId:t.Number({displayName:"Connector Id",required:!1}),bookingId:t.Number({displayName:"Booking Id",description:"The ID of the booking to link the session to. Returns a 422 error if the booking does not exist or if its status is not Accepted or Reserved.",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/start",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId","paymentMethodId","externalSessionId","connectorId","bookingId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Js=s({auth:o,name:"chargePointStartChargingSession",displayName:"Actions - Charge Point - Start Charging Session",description:"Start a charging session.",audience:"both",aiMetadata:{description:"Remotely start a charging session on a specific EVSE of a charge point, optionally for a given user/payment method and with a full OCPP charging profile (schedule, limits, recurrence). Use when you need to target a particular connector; use start-charging-session-without-evse when the station should pick the connector. Each call begins a new session, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),userId:t.Number({displayName:"User Id",required:!1}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:'The ID of the payment method, as returned by the payment method listing (User / Payment Method / Listing). When left empty or null, it would be determined by the system - either "balance" or "subscription" (in case the the user has an active post-paid subscription for home charging sessions and the charge point is a home charger). When it is NOT empty or null, userId is required.',required:!1}),externalSessionId:t.ShortText({displayName:"External Session Id",required:!1}),connectorId:t.Number({displayName:"Connector Id",required:!1}),bookingId:t.Number({displayName:"Booking Id",description:"The ID of the booking to link the session to. Returns a 422 error if the booking does not exist or if its status is not Accepted or Reserved.",required:!1}),chargingProfile__transactionId:t.Number({displayName:"Charging Profile - Transaction Id",required:!1}),chargingProfile__stackLevel:t.Number({displayName:"Charging Profile - Stack Level",required:!0}),chargingProfile__chargingProfilePurpose:t.StaticDropdown({displayName:"Charging Profile - Charging Profile Purpose",required:!0,options:{options:[{label:"ChargePointMaxProfile",value:"ChargePointMaxProfile"},{label:"TxDefaultProfile",value:"TxDefaultProfile"},{label:"TxProfile",value:"TxProfile"}]}}),chargingProfile__chargingProfileKind:t.StaticDropdown({displayName:"Charging Profile - Charging Profile Kind",required:!0,options:{options:[{label:"Absolute",value:"Absolute"},{label:"Recurring",value:"Recurring"},{label:"Relative",value:"Relative"}]}}),chargingProfile__recurrencyKind:t.StaticDropdown({displayName:"Charging Profile - Recurrency Kind",required:!1,options:{options:[{label:"Daily",value:"Daily"},{label:"Weekly",value:"Weekly"}]}}),chargingProfile__validFrom:t.DateTime({displayName:"Charging Profile - Valid From",required:!1}),chargingProfile__validTo:t.DateTime({displayName:"Charging Profile - Valid To",required:!1}),chargingProfile__chargingSchedule__id:t.Number({displayName:"Charging Profile - Charging Schedule - Id",required:!1}),chargingProfile__chargingSchedule__duration:t.Number({displayName:"Charging Profile - Charging Schedule - Duration",required:!1}),chargingProfile__chargingSchedule__startSchedule:t.DateTime({displayName:"Charging Profile - Charging Schedule - Start Schedule",required:!1}),chargingProfile__chargingSchedule__chargingRateUnit:t.StaticDropdown({displayName:"Charging Profile - Charging Schedule - Charging Rate Unit",required:!0,options:{options:[{label:"A",value:"A"},{label:"W",value:"W"}]}}),chargingProfile__chargingSchedule__chargingSchedulePeriod:t.Array({displayName:"Charging Profile - Charging Schedule - Charging Schedule Period",required:!0,properties:{startPeriod:t.Number({displayName:"Start Period",required:!0}),limit:t.Number({displayName:"Limit",required:!0}),numberPhases:t.Number({displayName:"Number Phases",required:!1})}}),chargingProfile__chargingSchedule__minChargingRate:t.Number({displayName:"Charging Profile - Charging Schedule - Min Charging Rate",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/start/{evse}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId","paymentMethodId","externalSessionId","connectorId","bookingId","chargingProfile"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Xs=s({auth:o,name:"chargePointStopChargingSession",displayName:"Actions - Charge Point - Stop Charging Session",description:"Stop a charging session.",audience:"both",aiMetadata:{description:"Remotely stop an active charging session on a charge point by session id; set force=true to end it in the backend regardless of the charge point response. Use to terminate an in-progress charge. Stopping an already-stopped session is effectively a no-op, so it is safe to retry for a given session id.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),session:t.Number({displayName:"Session",required:!0}),force:t.StaticDropdown({displayName:"Force",description:"Use force=true when you want to end the session reguardless of the CP response",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/stop/{session}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["force"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var el=s({auth:o,name:"chargePointSyncConfiguration",displayName:"Actions - Charge Point - Sync Configuration",description:"Send a partial or full sync configuration request to the chargepoint. You will get back a requerstId that you can monitor the status of using the ChargePointSyncConfigurationNotification. Please note that calling this action should not be required, as each time the charge point boots the configuration is automatically synced.",audience:"both",aiMetadata:{description:"Request the charge point to report its OCPP configuration, either for specific keys or all keys when none are listed, returning a request id you track via the sync-configuration notification. This is a read/sync query and does not change device settings (use set-configuration to write a key), so it is safe to repeat. Rarely needed since config syncs automatically on boot.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),keys:t.Array({displayName:"Keys",description:"List of keys to request a get configuration for. Omit or pass empty array to request all available configuration keys.",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/sync-configuration",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["keys"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var tl=s({auth:o,name:"chargePointTriggerMessageChargePoint",displayName:"Actions - Charge Point - Trigger Message Charge Point",description:"Trigger message to given Charge Point.",audience:"both",aiMetadata:{description:"Send an OCPP TriggerMessage command asking a charge point to immediately emit a chosen message such as BootNotification, StatusNotification, Heartbeat, MeterValues, or a certificate-signing request (several types apply only to OCPP 2.0.1 stations). Use to force an on-demand status/diagnostic report from a station. Each call prompts a fresh emission, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"The type of the message to be triggered. Messages available only for 2.0.1 chargers - LogStatusNotification, PublishFirmwareStatusNotification, SignChargingStationCertificate, SignCombinedCertificate, TransactionEvent",required:!0,options:{options:[{label:"BootNotification",value:"BootNotification"},{label:"DiagnosticsStatusNotification",value:"DiagnosticsStatusNotification"},{label:"LogStatusNotification",value:"LogStatusNotification"},{label:"FirmwareStatusNotification",value:"FirmwareStatusNotification"},{label:"PublishFirmwareStatusNotification",value:"PublishFirmwareStatusNotification"},{label:"Heartbeat",value:"Heartbeat"},{label:"MeterValues",value:"MeterValues"},{label:"StatusNotification",value:"StatusNotification"},{label:"SignV2GCertificate",value:"SignV2GCertificate"},{label:"SignChargingStationCertificate",value:"SignChargingStationCertificate"},{label:"SignCombinedCertificate",value:"SignCombinedCertificate"},{label:"TransactionEvent",value:"TransactionEvent"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/trigger-message",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["type"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var rl=s({auth:o,name:"chargePointEvseUnlock",displayName:"Actions - Charge Point - EVSE Unlock",description:"Unlock an EVSE.",audience:"both",aiMetadata:{description:"Send an OCPP UnlockConnector command to release the cable lock on a specific EVSE (connector) of a charge point. Use when a driver cannot remove their cable and the connector needs to be unlocked remotely. Unlocking an already-unlocked connector is harmless, so it is safe to retry.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0}),evse:t.Number({displayName:"Evse",description:"",required:!0})},async run(e){try{let r=l("/public-api/actions/charge-point/v1.0/{chargePoint}/unlock/{evse}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var al=s({auth:o,name:"chargePointChangeSharingCode",displayName:"Actions - Charge Point - Change Sharing Code",description:"Change sharing code for the Charge Point.",audience:"both",aiMetadata:{description:"Set or clear the sharing code that grants non-owner users access to a personal charge point; passing an empty code deletes the current one. Use to manage guest access on a home/personal charger. Setting the same code repeatedly yields the same end state, so it is effectively idempotent.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),sharingCode:t.ShortText({displayName:"Sharing Code",description:"The sharing code which provides access to the personal charge point for other users aside from the owner. If left empty the current code will be deleted",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v2.0/{chargePoint}/change-sharing-code",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["sharingCode"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var il=s({auth:o,name:"chargePointDeleteCertificate",displayName:"Actions - Charge Point - Delete Certificate",description:"Delete certificate.",audience:"both",aiMetadata:{description:"Send an OCPP DeleteCertificate command to remove a certificate of the chosen type (e.g. V2GRootCertificate, CSMSRootCertificate, ManufacturerRootCertificate) from a charge point. Use to revoke or clean up PKI/ISO 15118 certificates on a station. Deleting an already-absent certificate is a no-op, so repeating it is effectively idempotent.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),certificateType:t.StaticDropdown({displayName:"Certificate Type",description:"Indicates the type of certificate that is to be installed on the CP.",required:!0,options:{options:[{label:"ChargingStationCertificate",value:"ChargingStationCertificate"},{label:"V2GCertificate",value:"V2GCertificate"},{label:"V2GRootCertificate",value:"V2GRootCertificate"},{label:"MORootCertificate",value:"MORootCertificate"},{label:"CSMSRootCertificate",value:"CSMSRootCertificate"},{label:"ManufacturerRootCertificate",value:"ManufacturerRootCertificate"},{label:"V2GCertificateChain",value:"V2GCertificateChain"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v2.0/{chargePoint}/delete-certificate",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["certificateType"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var ol=s({auth:o,name:"chargePointInstallCertificate",displayName:"Actions - Charge Point - Install Certificate",description:"Charge Point / Install Certificate.",audience:"both",aiMetadata:{description:"Send an OCPP InstallCertificate command to install a root certificate of the chosen type (V2GRootCertificate, MORootCertificate, CSMSRootCertificate, or ManufacturerRootCertificate) onto a charge point. Use to provision PKI/ISO 15118 trust anchors on a station. Pair with the delete-certificate action to remove one. Re-installing the same certificate is not guaranteed safe to repeat, so treat as non-idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0}),certificateType:t.StaticDropdown({displayName:"Certificate Type",description:"Indicates the type of certificate that is to be installed on the CP.",required:!0,options:{options:[{label:"V2GRootCertificate",value:"V2GRootCertificate"},{label:"MORootCertificate",value:"MORootCertificate"},{label:"CSMSRootCertificate",value:"CSMSRootCertificate"},{label:"ManufacturerRootCertificate",value:"ManufacturerRootCertificate"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v2.0/{chargePoint}/install-certificate",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["certificateType"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var nl=s({auth:o,name:"chargePointSetConfiguration",displayName:"Actions - Charge Point - Set Configuration",description:"Set Configuration for the Charge Point.",audience:"both",aiMetadata:{description:"Send an OCPP ChangeConfiguration/SetVariables command writing a single configuration key (name) to a value on a charge point; OCPP 2.0.1 stations also accept component name, instance, and EVSE id. Use to change a station setting; use sync-configuration to read keys instead. Writing the same value yields the same end state, so it is effectively idempotent.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),value:t.ShortText({displayName:"Value",description:"Value to be assigned to specific configuration key",required:!0}),name:t.ShortText({displayName:"Name",description:"Name of the variable of the configuration key",required:!0}),instance:t.ShortText({displayName:"Instance",description:"Specify instance for OCPP 2.0.1 configuration keys",required:!1}),componentName:t.ShortText({displayName:"Component Name",description:"Required in order to specify component name for OCPP 2.0.1 configuration keys",required:!1}),evseId:t.Number({displayName:"Evse Id",description:"ID of the EVSE. Only for OCPP 2.0.1 configuration keys",required:!1})},async run(e){try{let r=l("/public-api/actions/charge-point/v2.0/{chargePoint}/set-configuration",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["value","name","instance","componentName","evseId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var sl=s({auth:o,name:"chargePointGetInstalledCertificateIds",displayName:"Actions - Charge Point - Get Installed Certificate Ids",description:"Charge Point / Get Installed Certificate IDs. ",audience:"both",aiMetadata:{description:"Send an OCPP GetInstalledCertificateIds request to a charge point to sync and retrieve the certificates currently installed, optionally filtered by certificate type (leave the type empty for all types). This is a read/sync query that does not change device state, so it is safe to repeat. Use to audit which PKI/ISO 15118 certificates a station holds.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),certificateType:t.StaticDropdown({displayName:"Certificate Type",description:"Indicates the type of certificates requested. Default value to be empty - the system should interpret the Null/empty value that all certificate types are requested.",required:!1,options:{options:[{label:"V2GRootCertificate",value:"V2GRootCertificate"},{label:"MORootCertificate",value:"MORootCertificate"},{label:"CSMSRootCertificate",value:"CSMSRootCertificate"},{label:"V2GCertificateChain",value:"V2GCertificateChain"},{label:"ManufacturerRootCertificate",value:"ManufacturerRootCertificate"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v2.0/{chargePoint}/sync-certificates",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["certificateType"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var ll=s({auth:o,name:"chargePointUpdateFirmware",displayName:"Actions - Charge Point - Update Firmware",description:"Charge Point / Update Firmware.",audience:"both",aiMetadata:{description:"Send an OCPP UpdateFirmware command instructing a charge point to download and install firmware, from either a direct URL or a stored firmware version id (provide exactly one), with optional retrieve-after time, retry count/interval, and signed-update fields. This triggers a real firmware flash on the device, so it is not idempotent and should be sequenced carefully. Use to roll out firmware to a station.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),url:t.ShortText({displayName:"URL",description:"Location (URL) from which to retrieve the firmware. Either this or `firmwareVersionId` must be provided.",required:!1}),firmwareVersionId:t.Number({displayName:"Firmware Version Id",description:"ID of a Firmware Version. Either this or `url` must be provided.",required:!1}),retrieveAfter:t.DateTime({displayName:"Retrieve After",description:"Specifies the date and time after which the Charge Point should retrieve the new firmware. If not provided, the current *datetime* will be used.",required:!1}),retries:t.Number({displayName:"Retries",description:"Specifies how many times the Charge Point must try to retrieve the (new) firmware before giving up.",required:!1}),interval:t.Number({displayName:"Interval",description:"The interval in seconds between each retry.",required:!1}),signed:t.StaticDropdown({displayName:"Signed",description:"Indicates a Signed Firmware Update.",required:!0,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),signingCertificate:t.ShortText({displayName:"Signing Certificate",description:'Required if "signed" is true.',required:!1}),signature:t.ShortText({displayName:"Signature",description:'Required if "signed" is true.',required:!1}),downloadUrlProtocol:t.StaticDropdown({displayName:"Download Url Protocol",description:"Protocol to use for the firmware download URL when using firmware repository. Use HTTP only if the charge point does not support encrypted connections.",required:!1,options:{options:[{label:"http",value:"http"},{label:"https",value:"https"}]}})},async run(e){try{let r=l("/public-api/actions/charge-point/v2.0/{chargePoint}/update-firmware",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["url","firmwareVersionId","retrieveAfter","retries","interval","signed","signingCertificate","signature","downloadUrlProtocol"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var pl=s({auth:o,name:"circuitAttachChargePoint",displayName:"Actions - Circuit - Attach Charge Point",description:"To maintain safety and compatibility, only charge points with an identical electrical configuration to the circuit can be added.",audience:"both",aiMetadata:{description:"Attach a charge point to a circuit for dynamic load management, optionally with an initial priority. Only charge points whose electrical configuration matches the circuit can be attached, otherwise the call is rejected. Use circuit-detach-charge-point to reverse. Idempotent: attaching an already-attached charge point leaves it on the circuit.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),chargePointId:t.Number({displayName:"Charge Point Id",required:!0}),priority:t.Number({displayName:"Priority",required:!1})},async run(e){try{let r=l("/public-api/actions/circuit/v2.0/{circuit}/attach-charge-point",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["chargePointId","priority"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var ul=s({auth:o,name:"circuitDetachChargePoint",displayName:"Actions - Circuit - Detach Charge Point",description:"Circuit / Detach Charge Point.",audience:"both",aiMetadata:{description:"Remove a charge point from a circuit's dynamic load management, addressed by circuit and charge point IDs. Inverse of circuit-attach-charge-point. Idempotent: detaching a charge point that is not on the circuit has no further effect.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),chargePoint:t.Number({displayName:"Charge Point",required:!0})},async run(e){try{let r=l("/public-api/actions/circuit/v2.0/{circuit}/detach-charge-point/{chargePoint}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var cl=s({auth:o,name:"circuitSetChargePointPriority",displayName:"Actions - Circuit - Set Charge Point Priority",description:"Circuit / Set Charge Point Priority.",audience:"both",aiMetadata:{description:"Set the dynamic-load-management priority for an entire charge point within a circuit, addressed by circuit and charge point IDs. Use this for charge-point-level load bias; for a single connector use circuit-set-charge-point-evse-priority, and for an in-progress session use circuit-set-session-priority. Idempotent: writes the priority to a fixed value.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),chargePoint:t.Number({displayName:"Charge Point",required:!0}),priority:t.Number({displayName:"Priority",required:!0})},async run(e){try{let r=l("/public-api/actions/circuit/v2.0/{circuit}/set-charge-point-priority/{chargePoint}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["priority"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var dl=s({auth:o,name:"circuitSetChargePointEvsePriority",displayName:"Actions - Circuit - Set Charge Point EVSE Priority",description:"Circuit / Set Charge Point EVSE Priority.",audience:"both",aiMetadata:{description:"Set the dynamic-load-management (DLM) priority for one specific EVSE of a charge point within a circuit, addressed by circuit, charge point, and EVSE IDs. Use to bias load allocation at the individual connector level rather than for a whole charge point (circuit-set-charge-point-priority) or session (circuit-set-session-priority). Idempotent: writes the priority to a fixed value.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),priority:t.Number({displayName:"Priority",required:!0})},async run(e){try{let r=l("/public-api/actions/circuit/v2.0/{circuit}/set-charge-point-priority/{chargePoint}/evse/{evse}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["priority"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var ml=s({auth:o,name:"circuitSetCircuitSocPriority",displayName:"Actions - Circuit - Set Circuit SoC Priority",description:"Set DLM priority based on the session's state of charge (SoC). The active priority will be used to either decrease or increase the energy used by the session's EVSE. - If the SoC exceeds the `upperThresholdPercent`, then the `highSoCPriority` will be applied.",audience:"both",aiMetadata:{description:"Configure state-of-charge-based dynamic-load-management priorities for a circuit: sets upper/lower SoC thresholds and the priority applied above/below each. Upper and lower thresholds must differ by at least 5 percentage points; passing null for a threshold removes that branch. Idempotent: overwrites the circuit's SoC priority configuration with the supplied values.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),upperThresholdPercent:t.Number({displayName:"Upper Threshold Percent",description:"The state of charge (SoC) percentage above which the `highSoCPriority` will be applied. Must have a 5% offset from the `lowerThresholdPercent` (if provided).\nFor example if `lowerThresholdPercent` is set to 50, this can have a value of 55 or higher.\nSetting this to `null` will remove the usage of the `highSoCPriority`.\n",required:!1}),highSoCPriority:t.Number({displayName:"High SoC Priority",required:!1}),lowerThresholdPercent:t.Number({displayName:"Lower Threshold Percent",description:"The state of charge (SoC) percentage below which the `lowSoCPriority` will be applied. Must have a 5% offset from the `upperThresholdPercent` (if provided).\nFor example if `upperThresholdPercent ` is set to 50, this can have a value of 45 or lower.\nSetting this to `null` will remove the usage of the `lowSoCPriority`.\n",required:!1}),lowSoCPriority:t.Number({displayName:"Low SoC Priority",required:!1})},async run(e){try{let r=l("/public-api/actions/circuit/v2.0/{circuit}/set-circuit-soc-priorities",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["upperThresholdPercent","highSoCPriority","lowerThresholdPercent","lowSoCPriority"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var fl=s({auth:o,name:"circuitSetSessionPriority",displayName:"Actions - Circuit - Set Session Priority",description:"Circuit / Set Session Priority.",audience:"both",aiMetadata:{description:"Set the dynamic-load-management priority for a specific active charging session within a circuit, addressed by circuit and session IDs. Use to bias load for one ongoing session rather than a whole charge point (circuit-set-charge-point-priority) or connector (circuit-set-charge-point-evse-priority). Idempotent: writes the priority to a fixed value.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),session:t.Number({displayName:"Session",required:!0}),priority:t.Number({displayName:"Priority",required:!0})},async run(e){try{let r=l("/public-api/actions/circuit/v2.0/{circuit}/set-session-priority/{session}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["priority"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var hl=s({auth:o,name:"configurationTemplateApplyToChargePoints",displayName:"Actions - Configuration Template - Apply To Charge Points",description:"Apply a configuration template to charge points.",audience:"both",aiMetadata:{description:"Push a configuration template to a set of charge points by id. Set shouldPersist=true to re-enforce the template on every charge point boot. Effectively idempotent: applying the same template to the same charge points converges them to the template's configuration.",idempotent:!0},props:{template:t.Number({displayName:"Template",required:!0}),chargePointIds:t.Array({displayName:"Charge Point Ids",description:"Array of charge point IDs the template will be applied to.",required:!1}),shouldPersist:t.StaticDropdown({displayName:"Should Persist",description:"Specifies whether the configuration template will be enforced each time the charge point boots.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/actions/configuration-template/v1.0/{template}/apply-to-charge-points",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["chargePointIds","shouldPersist"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var yl=s({auth:o,name:"configurationTemplateBulkCreateVariables",displayName:"Actions - Configuration Template - Bulk Create Variables",description:"Create multiple variables for a specific configuration template, adds them to the already existing keys and validates if there are duplicates.",audience:"both",aiMetadata:{description:"Add several variables in one call to a configuration template, appending to its existing keys and rejecting duplicates. Not idempotent: re-running with keys that now already exist will fail the duplicate validation rather than no-op.",idempotent:!1},props:{template:t.Number({displayName:"Template",required:!0})},async run(e){try{let r=l("/public-api/actions/configuration-template/v1.0/{template}/insert-bulk-variables",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,[]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var bl=s({auth:o,name:"electricityMeterReportConsumption",displayName:"Actions - Electricity Meter - Report Consumption",description:"Add an electricity meter report for the meter readings at the current moment.",audience:"both",aiMetadata:{description:"Record a consumption reading for an electricity meter, capturing per-phase current (L1/L2/L3, in milliamperes) at an optional ISO 8601 timestamp (defaults to now). Not idempotent: each call appends a new meter report.",idempotent:!1},props:{electricityMeter:t.Number({displayName:"Electricity Meter",required:!0}),timestamp:t.DateTime({displayName:"Timestamp",description:"The timestamp of the measurements. ISO 8601 formatted date.",required:!1}),currentL1:t.Number({displayName:"Current L1",description:"The current on L1 in milliamperes (mA)",required:!1}),currentL2:t.Number({displayName:"Current L2",description:"The current on L2 in milliamperes (mA)",required:!1}),currentL3:t.Number({displayName:"Current L3",description:"The current on L3 in milliamperes (mA)",required:!1})},async run(e){try{let r=l("/public-api/actions/electricity-meter/v1.0/{electricityMeter}/report-consumption",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["timestamp","currentL1","currentL2","currentL3"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var gl=s({auth:o,name:"evseStartChargingWithEvseId",displayName:"Actions - EVSE - Start Charging With EVSE Id",description:"Start a charging session.",audience:"both",aiMetadata:{description:"Remotely start a charging session on a given EVSE, optionally on behalf of a user with a chosen payment method, linked booking, and an OCPP charging profile. If a payment method ID is supplied, a user ID is required. Not idempotent: each call initiates a new charging session.",idempotent:!1},props:{evse:t.Number({displayName:"EVSE",required:!0}),userId:t.Number({displayName:"User Id",required:!1}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:'The ID of the payment method, as returned by the payment method listing (User / Payment Method / Listing). When left empty or null, it would be determined by the system - either "balance" or "subscription" (in case the the user has an active post-paid subscription for home charging sessions and the charge point is a home charger). When it is NOT empty or null, userId is required.',required:!1}),externalSessionId:t.ShortText({displayName:"External Session Id",description:"",required:!1}),connectorId:t.Number({displayName:"Connector Id",description:"",required:!1}),bookingId:t.Number({displayName:"Booking Id",description:"The ID of the booking to link the session to. Returns a 422 error if the booking does not exist or if its status is not Accepted or Reserved.",required:!1}),chargingProfile__transactionId:t.Number({displayName:"Charging Profile - Transaction Id",description:"",required:!1}),chargingProfile__stackLevel:t.Number({displayName:"Charging Profile - Stack Level",description:"",required:!0}),chargingProfile__chargingProfilePurpose:t.StaticDropdown({displayName:"Charging Profile - Charging Profile Purpose",description:"",required:!0,options:{options:[{label:"ChargePointMaxProfile",value:"ChargePointMaxProfile"},{label:"TxDefaultProfile",value:"TxDefaultProfile"},{label:"TxProfile",value:"TxProfile"}]}}),chargingProfile__chargingProfileKind:t.StaticDropdown({displayName:"Charging Profile - Charging Profile Kind",description:"",required:!0,options:{options:[{label:"Absolute",value:"Absolute"},{label:"Recurring",value:"Recurring"},{label:"Relative",value:"Relative"}]}}),chargingProfile__recurrencyKind:t.StaticDropdown({displayName:"Charging Profile - Recurrency Kind",description:"",required:!1,options:{options:[{label:"Daily",value:"Daily"},{label:"Weekly",value:"Weekly"}]}}),chargingProfile__validFrom:t.DateTime({displayName:"Charging Profile - Valid From",description:"",required:!1}),chargingProfile__validTo:t.DateTime({displayName:"Charging Profile - Valid To",description:"",required:!1}),chargingProfile__chargingSchedule__id:t.Number({displayName:"Charging Profile - Charging Schedule - Id",description:"",required:!1}),chargingProfile__chargingSchedule__duration:t.Number({displayName:"Charging Profile - Charging Schedule - Duration",description:"",required:!1}),chargingProfile__chargingSchedule__startSchedule:t.DateTime({displayName:"Charging Profile - Charging Schedule - Start Schedule",description:"",required:!1}),chargingProfile__chargingSchedule__chargingRateUnit:t.StaticDropdown({displayName:"Charging Profile - Charging Schedule - Charging Rate Unit",description:"",required:!0,options:{options:[{label:"A",value:"A"},{label:"W",value:"W"}]}}),chargingProfile__chargingSchedule__chargingSchedulePeriod:t.Array({displayName:"Charging Profile - Charging Schedule - Charging Schedule Period",description:"",required:!0,properties:{startPeriod:t.Number({displayName:"Start Period",description:"",required:!0}),limit:t.Number({displayName:"Limit",description:"",required:!0}),numberPhases:t.Number({displayName:"Number Phases",description:"",required:!1})}}),chargingProfile__chargingSchedule__minChargingRate:t.Number({displayName:"Charging Profile - Charging Schedule - Min Charging Rate",description:"",required:!1})},async run(e){try{let r=l("/public-api/actions/evse/v1.0/{evse}/start",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId","paymentMethodId","externalSessionId","connectorId","bookingId","chargingProfile"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var vl=s({auth:o,name:"evseTriggerMessage",displayName:"Actions - EVSE - Trigger Message",description:"Trigger message to given EVSE.",audience:"both",aiMetadata:{description:"Send an OCPP TriggerMessage to an EVSE, asking the charger to emit a specific message such as BootNotification, StatusNotification, MeterValues, or Heartbeat. Some message types (e.g. LogStatusNotification, TransactionEvent) are only valid for OCPP 2.0.1 chargers. Not idempotent: each call issues a fresh trigger to the device.",idempotent:!1},props:{evse:t.Number({displayName:"EVSE",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"The type of the message to be triggered. Messages available only for 2.0.1 chargers - LogStatusNotification, PublishFirmwareStatusNotification, SignChargingStationCertificate, SignCombinedCertificate, TransactionEvent",required:!0,options:{options:[{label:"BootNotification",value:"BootNotification"},{label:"DiagnosticsStatusNotification",value:"DiagnosticsStatusNotification"},{label:"LogStatusNotification",value:"LogStatusNotification"},{label:"FirmwareStatusNotification",value:"FirmwareStatusNotification"},{label:"PublishFirmwareStatusNotification",value:"PublishFirmwareStatusNotification"},{label:"Heartbeat",value:"Heartbeat"},{label:"MeterValues",value:"MeterValues"},{label:"StatusNotification",value:"StatusNotification"},{label:"SignV2GCertificate",value:"SignV2GCertificate"},{label:"SignChargingStationCertificate",value:"SignChargingStationCertificate"},{label:"SignCombinedCertificate",value:"SignCombinedCertificate"},{label:"TransactionEvent",value:"TransactionEvent"}]}})},async run(e){try{let r=l("/public-api/actions/evse/v1.0/{evse}/trigger-message",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["type"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Pl=s({auth:o,name:"changeFlexibilityAssetStatus",displayName:"Actions - Flexibility Asset - Change Flexibility Asset Status",description:"Change the status of the Flexibility Asset.",audience:"both",aiMetadata:{description:"Enable or disable a flexibility asset by its identifier, optionally with an end date after which it is automatically disabled. While ended, no historical time series or forecasts are generated. Idempotent: sets the asset to the chosen status.",idempotent:!0},props:{flexibilityAsset:t.ShortText({displayName:"Flexibility Asset",required:!0}),status:t.StaticDropdown({displayName:"Status",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),endsAt:t.DateTime({displayName:"Ends At",description:"ISO 8601 formatted date. If an end date is set the asset will be automatically disabled at that time. Historical time series and forecasts are not generated after the end date.",required:!1})},async run(e){try{let r=l("/public-api/actions/flexibility-asset/v1.0/{flexibilityAsset}/change-status",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["status","endsAt"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Al=s({auth:o,name:"flexibilityAssetCreateActivationRequest",displayName:"Actions - Flexibility Asset - Create Activation Request",description:"Create Flexibility Activation Request for a specific Asset.",audience:"both",aiMetadata:{description:"Create a flexibility activation request for a specific asset, scheduling one or more activation periods to flex its energy use. Not idempotent: each call creates a new activation request.",idempotent:!1},props:{flexibilityAsset:t.ShortText({displayName:"Flexibility Asset",required:!0}),periods:t.Array({displayName:"Periods",required:!1})},async run(e){try{let r=l("/public-api/actions/flexibility-asset/v1.0/{flexibilityAsset}/create-activation-request",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["periods"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Nl=s({auth:o,name:"certificateReissueAnEmaid",displayName:"Actions - Id Tag - Certificate Reissue An EMAID",description:"Certificate / Reissue an EMAID.",audience:"both",aiMetadata:{description:"Reissue the e-mobility account identifier (EMAID) certificate for an existing id tag, addressed by its numeric ID. Use to refresh a Plug & Charge contract certificate already associated with a tag; to mint a brand-new EMAID for a provisioning certificate, use certificate-issue-an-emaid instead. Not idempotent: each call issues a new certificate.",idempotent:!1},props:{idTag:t.Number({displayName:"Id Tag",required:!0})},async run(e){try{let r=l("/public-api/actions/id-tag/v1.0/{idTag}/reissue-emaid",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var Sl=s({auth:o,name:"locationCheckBookingAvailability",displayName:"Actions - Locations - Check Booking Availability",description:"Get a consolidated view of EVSEs availability for a given location and time frame. Returns available time slots for each bookable EVSE at the location.",audience:"both",aiMetadata:{description:"Look up bookable EVSE availability at a location across a start/end time window before reserving. The time frame is limited to 7 days. Read-only query: it reports open slots without changing any booking, so it is safe to repeat.",idempotent:!0},props:{location:t.Number({displayName:"Location",required:!0}),startAfter:t.DateTime({displayName:"Start After",description:"Start of the time frame to check",required:!0}),endBefore:t.DateTime({displayName:"End Before",description:"End of the time frame to check. Time-frame is limited to 7 days.",required:!0})},async run(e){try{let r=l("/public-api/actions/locations/v2.0/{location}/check-booking-availability",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["startAfter","endBefore"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Tl=s({auth:o,name:"notificationsResendFailed",displayName:"Actions - Notifications - Resend Failed",description:"Resend failed webhook notifications. - Resend for a specific notification ID can be requested once every 15 minutes. - Notifications that are disabled cannot be resent.",audience:"both",aiMetadata:{description:"Re-deliver previously failed webhook notifications for a given notification endpoint, filtered by notification types and an optional start/end time window. Subject to rate limiting (one resend per notification ID every 15 minutes), and disabled notifications cannot be resent. Not idempotent: each call dispatches the matching notifications again.",idempotent:!1},props:{notification:t.Number({displayName:"Notification",required:!0}),notifications:t.StaticMultiSelectDropdown({displayName:"Notifications",required:!0,options:{options:[{label:"AuthorizationNotification",value:"AuthorizationNotification"},{label:"authorization.changed",value:"authorization.changed"},{label:"BootNotification",value:"BootNotification"},{label:"ChargePointChangedNotification",value:"ChargePointChangedNotification"},{label:"chargePoint.changed",value:"chargePoint.changed"},{label:"evse.changed",value:"evse.changed"},{label:"ChargePointSyncConfigurationNotification",value:"ChargePointSyncConfigurationNotification"},{label:"CircuitConsumptionNotification",value:"CircuitConsumptionNotification"},{label:"circuit.changed",value:"circuit.changed"},{label:"DiagnosticsStatusNotification",value:"DiagnosticsStatusNotification"},{label:"HardwareStatusNotification",value:"HardwareStatusNotification"},{label:"LocationChangedNotification",value:"LocationChangedNotification"},{label:"NetworkStatusNotification",value:"NetworkStatusNotification"},{label:"SecurityEventNotification",value:"SecurityEventNotification"},{label:"SessionMeterValuesNotification",value:"SessionMeterValuesNotification"},{label:"SessionStartStopNotification",value:"SessionStartStopNotification"},{label:"session.start.stop.notification",value:"session.start.stop.notification"},{label:"SessionUpdateNotification",value:"SessionUpdateNotification"},{label:"UserChangedNotification",value:"UserChangedNotification"},{label:"SubOperatorChangedNotification",value:"SubOperatorChangedNotification"},{label:"TariffChangedNotification",value:"TariffChangedNotification"},{label:"user.subscriptionChanged",value:"user.subscriptionChanged"},{label:"user.subscription.changed",value:"user.subscription.changed"},{label:"ReservationChangedNotification",value:"ReservationChangedNotification"},{label:"PaymentMethodChangedNotification",value:"PaymentMethodChangedNotification"},{label:"PartnerInviteChangedNotification",value:"PartnerInviteChangedNotification"},{label:"reservation.changed",value:"reservation.changed"},{label:"user.paymentMethod.changed",value:"user.paymentMethod.changed"},{label:"userBalance.changed",value:"userBalance.changed"},{label:"partnerInvite.changed",value:"partnerInvite.changed"},{label:"roamingPlatform.changed",value:"roamingPlatform.changed"},{label:"parkingSpace.occupancyStatus.changed",value:"parkingSpace.occupancyStatus.changed"},{label:"partner.changed",value:"partner.changed"},{label:"transaction.changed",value:"transaction.changed"},{label:"settlementReport.created",value:"settlementReport.created"},{label:"idTag.changed",value:"idTag.changed"},{label:"chargePoint.dataTransferReceived",value:"chargePoint.dataTransferReceived"},{label:"subscriptionPlan.changed",value:"subscriptionPlan.changed"},{label:"user.invoiceDetails.changed",value:"user.invoiceDetails.changed"},{label:"cdr.received",value:"cdr.received"},{label:"chargingProfile.applied",value:"chargingProfile.applied"},{label:"installerJob.changed",value:"installerJob.changed"}]}}),startTime:t.ShortText({displayName:"Start Time",description:"Resend all failed notifications from this date onwards.",required:!1}),endTime:t.ShortText({displayName:"End Time",description:"Resend all failed notifications up to this date.",required:!1})},async run(e){try{let r=l("/public-api/actions/notifications/v1.0/{notification}/resend",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["notifications","startTime","endTime"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Cl=s({auth:o,name:"parkingSpaceUpdateOccupancyStatus",displayName:"Actions - Parking Spaces - Update Occupancy Status",description:"Parking Space / Update occupancy status.",audience:"both",aiMetadata:{description:`Set a parking space's occupancy status to "available" or "occupied" by its numeric ID. Use to report whether an EV parking bay is currently free or taken. Idempotent: re-applying the same status is a no-op.`,idempotent:!0},props:{parkingSpace:t.Number({displayName:"Parking Space",required:!0}),status:t.StaticDropdown({displayName:"Status",required:!0,options:{options:[{label:"available",value:"available"},{label:"occupied",value:"occupied"}]}})},async run(e){try{let r=l("/public-api/actions/parking-spaces/v1.0/{parkingSpace}/update-occupancy-status",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["status"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Rl=s({auth:o,name:"certificateIssueAnEmaid",displayName:"Actions - Provisioning Certificate - Certificate Issue An EMAID",description:"Certificate / Issue an EMAID.",audience:"both",aiMetadata:{description:'Issue a new e-mobility account identifier (EMAID) from a provisioning certificate, optionally binding a payment method (a card payment-method ID, "corporate:{id}" for corporate billing, or null for last-used). Use this to mint a fresh EMAID; to refresh the certificate on an existing id tag use certificate-reissue-an-emaid. Not idempotent: each call issues a new EMAID.',idempotent:!1},props:{provisioningCertificate:t.Number({displayName:"Provisioning Certificate",required:!0}),paymentMethod:t.ShortText({displayName:"Payment Method",description:"The payment method that will be associated with the EMAID Tag.\n* For **credit/debit cards** the `paymentMethodId` should be provided\n* For **Corporate billing** - `corporate:{id}`\n* For **last used** the value should be `null`\n",required:!1})},async run(e){try{let r=l("/public-api/actions/provisioning-certificate/v1.0/{provisioningCertificate}/issue-emaid",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["paymentMethod"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var _l=s({auth:o,name:"reservationCancel",displayName:"Actions - Reservation - Reservation Cancel",description:"Cancel a reservation.",audience:"both",aiMetadata:{description:"Cancel an existing charge-point reservation by id, optionally with a reason. Set force=true to end the reservation regardless of the charge point response. Effectively idempotent: once cancelled the reservation stays cancelled, though cancelling a non-cancellable reservation may error.",idempotent:!0},props:{reservation:t.Number({displayName:"Reservation",required:!0}),force:t.StaticDropdown({displayName:"Force",description:"Use force=true when you want to end the reservation regardless of the CP response",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),reason:t.ShortText({displayName:"Reason",description:'In case reason is empty, following text "Activated via API" will be added automatically',required:!1})},async run(e){try{let r=l("/public-api/actions/reservation/v1.0/{reservation}/cancel",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["force","reason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var wl=s({auth:o,name:"updateCustomTariffFilterTariff",displayName:"Actions - Roaming Operator - Update Custom Tariff Filter Tariff",description:"Set the pricing data for a custom tariff filter. This action will update the underling roaming tariff and create a pricing based on it. The pricing can then be utilized by attaching a markup tariff to the tariff map of the custom tariff filter.",audience:"both",aiMetadata:{description:"Set the full pricing data (OCPI-style tariff: currency, price components, restrictions, energy mix) for a roaming operator custom tariff filter, updating the underlying roaming tariff. Idempotent: it replaces the tariff filter's pricing with the supplied definition, so re-sending the same payload yields the same end state.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),customTariffFilter:t.Number({displayName:"Custom Tariff Filter",description:"",required:!0}),country_code:t.ShortText({displayName:"Country Code",description:"ISO-3166 alpha-2 country code of the CPO that owns this Tariff.",required:!1}),party_id:t.ShortText({displayName:"Party Id",description:"ID of the CPO that owns this Tariff (following the ISO-15118 standard).",required:!1}),id:t.ShortText({displayName:"Id",description:"Uniquely identifies the tariff within the CPO's platform.",required:!0}),currency:t.ShortText({displayName:"Currency",description:"ISO 4217 code of the currency of this tariff.",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"Type of this tariff.",required:!1,options:{options:[{label:"AD_HOC_PAYMENT",value:"AD_HOC_PAYMENT"},{label:"PROFILE_CHEAP",value:"PROFILE_CHEAP"},{label:"PROFILE_FAST",value:"PROFILE_FAST"},{label:"PROFILE_GREEN",value:"PROFILE_GREEN"},{label:"REGULAR",value:"REGULAR"}]}}),tariff_alt_text:t.Array({displayName:"Tariff Alt Text",description:"List of multi-language alternative texts for this tariff.",required:!1,properties:{language:t.ShortText({displayName:"Language",description:"Language Code ISO 639-1.",required:!0}),text:t.ShortText({displayName:"Text",description:"Alternative tariff text in this language.",required:!0})}}),tariff_alt_url:t.ShortText({displayName:"Tariff Alt Url",description:"URL to a web page that contains an explanation of the tariff information.",required:!1}),min_price__excl_vat:t.Number({displayName:"Min Price - Excl Vat",description:"Price excluding VAT.",required:!1}),min_price__incl_vat:t.Number({displayName:"Min Price - Incl Vat",description:"Price including VAT.",required:!1}),max_price__excl_vat:t.Number({displayName:"Max Price - Excl Vat",description:"Price excluding VAT.",required:!1}),max_price__incl_vat:t.Number({displayName:"Max Price - Incl Vat",description:"Price including VAT.",required:!1}),elements:t.Array({displayName:"Elements",description:"List of Tariff Elements.",required:!0,properties:{price_components:t.Json({displayName:"Price Components",description:"List of price components that describe the pricing of this tariff element.",required:!0,defaultValue:{type:"array",minItems:1,description:"List of price components that describe the pricing of this tariff element.",items:{type:"object",required:["type","price","step_size"],properties:{type:{type:"string",enum:["ENERGY","FLAT","PARKING_TIME","TIME"],description:"Type of tariff dimension."},price:{type:"number",format:"float",minimum:0,description:"Price per unit (excluding VAT) for this tariff dimension.",example:.25},vat:{type:"number",format:"float",minimum:0,maximum:100,description:"Applicable VAT percentage for this tariff dimension. If omitted, no VAT is applicable.",example:21},step_size:{type:"integer",minimum:1,description:"Minimum amount to be billed. This unit will be billed in this step_size.",example:1}}}}}),restrictions__start_time:t.ShortText({displayName:"Restrictions - Start Time",description:"Start time of day in local time, the time zone is defined in the location.",required:!1}),restrictions__end_time:t.ShortText({displayName:"Restrictions - End Time",description:"End time of day in local time, the time zone is defined in the location.",required:!1}),restrictions__start_date:t.DateTime({displayName:"Restrictions - Start Date",description:"Start date in local time, the time zone is defined in the location.",required:!1}),restrictions__end_date:t.DateTime({displayName:"Restrictions - End Date",description:"End date in local time, the time zone is defined in the location.",required:!1}),restrictions__min_kwh:t.Number({displayName:"Restrictions - Min Kwh",description:"Minimum consumed energy in kWh.",required:!1}),restrictions__max_kwh:t.Number({displayName:"Restrictions - Max Kwh",description:"Maximum consumed energy in kWh.",required:!1}),restrictions__min_current:t.Number({displayName:"Restrictions - Min Current",description:"Sum of the minimum current (in Amperes) over all phases.",required:!1}),restrictions__max_current:t.Number({displayName:"Restrictions - Max Current",description:"Sum of the maximum current (in Amperes) over all phases.",required:!1}),restrictions__min_power:t.Number({displayName:"Restrictions - Min Power",description:"Minimum power in kW.",required:!1}),restrictions__max_power:t.Number({displayName:"Restrictions - Max Power",description:"Maximum power in kW.",required:!1}),restrictions__min_duration:t.Number({displayName:"Restrictions - Min Duration",description:"Minimum duration in seconds.",required:!1}),restrictions__max_duration:t.Number({displayName:"Restrictions - Max Duration",description:"Maximum duration in seconds.",required:!1}),restrictions__day_of_week:t.StaticMultiSelectDropdown({displayName:"Restrictions - Day Of Week",description:"Which day(s) of the week this tariff element is active.",required:!1,options:{options:[{label:"MONDAY",value:"MONDAY"},{label:"TUESDAY",value:"TUESDAY"},{label:"WEDNESDAY",value:"WEDNESDAY"},{label:"THURSDAY",value:"THURSDAY"},{label:"FRIDAY",value:"FRIDAY"},{label:"SATURDAY",value:"SATURDAY"},{label:"SUNDAY",value:"SUNDAY"}]}}),restrictions__reservation:t.StaticDropdown({displayName:"Restrictions - Reservation",description:"When this restriction is present, the tariff element applies to a reservation.",required:!1,options:{options:[{label:"RESERVATION",value:"RESERVATION"},{label:"RESERVATION_EXPIRES",value:"RESERVATION_EXPIRES"}]}})}}),start_date_time:t.DateTime({displayName:"Start Date Time",description:"The time when this tariff becomes active. Format ISO 8601 UTC.",required:!1}),end_date_time:t.DateTime({displayName:"End Date Time",description:"The time after which this tariff is no longer valid. Format ISO 8601 UTC.",required:!1}),energy_mix__is_green_energy:t.StaticDropdown({displayName:"Energy Mix - Is Green Energy",description:"True if 100% from regenerative sources.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),energy_mix__energy_sources:t.Array({displayName:"Energy Mix - Energy Sources",description:"Energy sources of this energy mix.",required:!1,properties:{source:t.StaticDropdown({displayName:"Source",description:"Type of energy source.",required:!0,options:{options:[{label:"NUCLEAR",value:"NUCLEAR"},{label:"GENERAL_FOSSIL",value:"GENERAL_FOSSIL"},{label:"COAL",value:"COAL"},{label:"GAS",value:"GAS"},{label:"GENERAL_GREEN",value:"GENERAL_GREEN"},{label:"SOLAR",value:"SOLAR"},{label:"WIND",value:"WIND"},{label:"WATER",value:"WATER"}]}}),percentage:t.Number({displayName:"Percentage",description:"Percentage of this source in the mix.",required:!0})}}),energy_mix__environ_impact:t.Array({displayName:"Energy Mix - Environ Impact",description:"Environmental impact of this energy mix.",required:!1,properties:{category:t.StaticDropdown({displayName:"Category",description:"Environmental impact category.",required:!0,options:{options:[{label:"NUCLEAR_WASTE",value:"NUCLEAR_WASTE"},{label:"CARBON_DIOXIDE",value:"CARBON_DIOXIDE"}]}}),amount:t.Number({displayName:"Amount",description:"Amount of this impact in g/kWh.",required:!0})}}),energy_mix__supplier_name:t.ShortText({displayName:"Energy Mix - Supplier Name",description:"Name of the energy supplier.",required:!1}),energy_mix__energy_product_name:t.ShortText({displayName:"Energy Mix - Energy Product Name",description:"Name of the energy product.",required:!1}),last_updated:t.DateTime({displayName:"Last Updated",description:"Timestamp when this Tariff was last updated. Format ISO 8601 UTC.",required:!0})},async run(e){try{let r=l("/public-api/actions/roaming-operator/v2.0/{roamingOperator}/custom-tariff-filter/{customTariffFilter}/set-pricing-data",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["country_code","party_id","id","currency","type","tariff_alt_text","tariff_alt_url","min_price","max_price","elements","start_date_time","end_date_time","energy_mix","last_updated"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Il=s({auth:o,name:"sessionAssignToUser",displayName:"Actions - Session - Assign To User",description:"Assign a user to a session. This action is only applicable to sessions with Completed billing status that have no user associated with them. This operation can be done only once and is not reversible.",audience:"both",aiMetadata:{description:"Attach a user to a charging session that currently has no user. Only works on sessions with Completed billing status and no existing user. Not idempotent: the assignment is permanent and irreversible, and a second call (after the session already has a user) will fail.",idempotent:!1},props:{session:t.Number({displayName:"Session",required:!0}),userId:t.Number({displayName:"User Id",required:!0})},async run(e){try{let r=l("/public-api/actions/session/v1.0/{session}/assign-user",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var El=s({auth:o,name:"sessionRetryPayment",displayName:"Actions - Session - Retry Payment",description:"Retry failed payment for a session.",audience:"both",aiMetadata:{description:"Re-attempt a failed payment for a charging session, optionally against a specific payment method. Not idempotent: each call triggers a new charge attempt, so repeated calls can result in multiple charges if a prior attempt actually succeeded.",idempotent:!1},props:{session:t.Number({displayName:"Session",required:!0}),paymentMethodId:t.Number({displayName:"Payment Method Id",required:!1})},async run(e){try{let r=l("/public-api/actions/session/v1.0/{session}/retry-payment",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["paymentMethodId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Dl=s({auth:o,name:"subscriptionPlanReplace",displayName:"Actions - Subscription Plans - Replace",description:"Replace a subscription plan with another one.",audience:"both",aiMetadata:{description:"Replace one subscription plan with a different plan across all tariff restrictions and charge points that reference the old plan, optionally scheduled for a future date (immediate if left empty). A reason note is required for change tracking. Not idempotent: each call records a new replacement and applies the swap.",idempotent:!1},props:{subscriptionPlan:t.Number({displayName:"Subscription Plan",required:!0}),planId:t.Number({displayName:"Plan Id",description:"The ID of the subscription plan that replaces the current one. The new Subscription plan will be added to the Subscription plans Restrictions for the Tariffs, where the old plan is present. Also it will be added to all Charge points that require the current Subscription plan.",required:!0}),replaceAt:t.DateTime({displayName:"Replace At",description:"The date from which the new Subscription Plan replaces the current one. If left empty, it is replaced immediately.",required:!1}),reason:t.ShortText({displayName:"Reason",description:"Internal note for tracking changes and the reasons for those changes.",required:!0})},async run(e){try{let r=l("/public-api/actions/subscription-plans/v1.0/{subscriptionPlan}/replace",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["planId","replaceAt","reason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var xl=s({auth:o,name:"tariffSetDisplayInformation",displayName:"Actions - Tariffs - Set Display Information",description:"Apply a Tariff Display Information to tariff.",audience:"both",aiMetadata:{description:"Set the text shown on a charge point's display for a tariff, covering the eligible-user price, total-cost summary, and (base tariffs only) default and offline default price information. Idempotent: overwrites the tariff's display fields with the supplied values.",idempotent:!0},props:{tariff:t.Number({displayName:"Tariff",required:!0}),defaultPriceInformation:t.ShortText({displayName:"Default Price Information",description:"It could be set only for base tariff. The default information that would be shown on the display of the charge point without the user having authorized themselves. The default price information from the base tariff of the first EVSE would be used for the display, when the charge point has more than one EVSE.",required:!1}),defaultPriceInformationOffline:t.ShortText({displayName:"Default Price Information Offline",description:"It could be set only for base tariff. The information that would be shown on the display of the charge point when offline.",required:!1}),priceInformation:t.ShortText({displayName:"Price Information",description:"The information that would be shown on the display of the charge point for users that are eligible for this tariff.",required:!1}),totalCostInformation:t.ShortText({displayName:"Total Cost Information",description:"Additional information that would be displayed on the charge point when the session ends, along with the total fees for energy, duration and idle.",required:!1})},async run(e){try{let r=l("/public-api/actions/tariffs/v2.0/{tariff}/set-tariff-display-information",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["defaultPriceInformation","defaultPriceInformationOffline","priceInformation","totalCostInformation"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ml=s({auth:o,name:"transactionIssueInvoice",displayName:"Actions - Transactions - Issue Invoice",description:"Issue ad-hoc invoice for the transaction (only if AMPECO invoice integration is used). For Sz\xE1ml\xE1zz.hu integration in Hungary, if a fiscalized receipt exists for the transaction, it will be automatically canceled and both the invoice and storno receipt will be sent to the user.",audience:"both",aiMetadata:{description:"Generate a new ad-hoc invoice for a transaction and send it to the given email, supplying individual or company billing details. Requires the AMPECO invoice integration to be enabled. To re-send an invoice that already exists, use the resend-invoice action instead. Not idempotent: each call issues a fresh invoice document.",idempotent:!1},props:{transaction:t.Number({displayName:"Transaction",required:!0}),email:t.ShortText({displayName:"Email",description:"Email address to send the invoice",required:!0}),invoiceDetails__invoiceType:t.StaticDropdown({displayName:"Invoice Details - Invoice Type",required:!0,options:{options:[{label:"individual",value:"individual"},{label:"company",value:"company"}]}}),invoiceDetails__individualName:t.ShortText({displayName:"Invoice Details - Individual Name",required:!1}),invoiceDetails__individualPersonalId:t.ShortText({displayName:"Invoice Details - Individual Personal Id",required:!1}),invoiceDetails__individualTaxId:t.ShortText({displayName:"Invoice Details - Individual Tax Id",required:!1}),invoiceDetails__companyName:t.ShortText({displayName:"Invoice Details - Company Name",required:!1}),invoiceDetails__companyRegNo:t.ShortText({displayName:"Invoice Details - Company Reg No",required:!1}),invoiceDetails__companyTaxId:t.ShortText({displayName:"Invoice Details - Company Tax Id",required:!1}),invoiceDetails__companyTaxAdministrationOfficeName:t.ShortText({displayName:"Invoice Details - Company Tax Administration Office Name",required:!1}),invoiceDetails__country:t.StaticDropdown({displayName:"Invoice Details - Country",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),invoiceDetails__city:t.ShortText({displayName:"Invoice Details - City",required:!1}),invoiceDetails__postCode:t.ShortText({displayName:"Invoice Details - Post Code",required:!1}),invoiceDetails__address:t.ShortText({displayName:"Invoice Details - Address",required:!1})},async run(e){try{let r=l("/public-api/actions/transactions/v1.0/{transaction}/issue-invoice",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["email","invoiceDetails"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var kl=s({auth:o,name:"transactionResendInvoice",displayName:"Actions - Transactions - Resend Invoice",description:"Resend already issued invoice. If the transaction has an associated fiscalized receipt that was automatically canceled (Hungary compliance), both the invoice and the storno receipt will be sent together.",audience:"both",aiMetadata:{description:"Re-send the invoice already issued for a transaction to the customer. Use only when an invoice exists (use the issue-invoice action first if one does not). Not idempotent: each call dispatches the email/document again, so repeated calls send duplicate copies.",idempotent:!1},props:{transaction:t.Number({displayName:"Transaction",required:!0})},async run(e){try{let r=l("/public-api/actions/transactions/v1.0/{transaction}/resend-invoice",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var ql=s({auth:o,name:"transactionUpdatePaymentReference",displayName:"Actions - Transactions - Update Payment Reference",description:"Link the transaction to external resource where the payment took place.",audience:"both",aiMetadata:{description:"Attach an external payment reference (e.g. a payment processor or terminal identifier) to a transaction so the payment can later be traced. Idempotent: it overwrites the reference field on the transaction, so re-running with the same value leaves the same end state.",idempotent:!0},props:{transaction:t.Number({displayName:"Transaction",required:!0}),ref:t.ShortText({displayName:"Ref",description:"Reference to the payment processor or payment terminal where more information about the transaction could be checked.",required:!0})},async run(e){try{let r=l("/public-api/actions/transactions/v1.0/{transaction}/update-payment-reference",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["ref"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ol=s({auth:o,name:"userActivateSubscription",displayName:"Actions - Users - Activate Subscription",description:"Activate a subscription to a user.",audience:"both",aiMetadata:{description:"Activate a subscription plan for a user, optionally setting an end date, auto-renewal, and a reason recorded in the audit log. Use cancel-subscription to end one instead. Not idempotent: each call activates a subscription, so re-running can create another or conflict with an existing active one.",idempotent:!1},props:{user:t.Number({displayName:"User",required:!0}),planId:t.Number({displayName:"Plan Id",required:!0}),endDate:t.DateTime({displayName:"End Date",description:"The subscription will be valid until this end date",required:!1}),autoRenewal:t.StaticDropdown({displayName:"Auto Renewal",description:"Enable the auto-renewal of the subscription after the end date",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),reason:t.ShortText({displayName:"Reason",description:'In case reason is empty, following text "Activated via API" will be added automatically',required:!1})},async run(e){try{let r=l("/public-api/actions/users/v1.0/{user}/activate-subscription",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["planId","endDate","autoRenewal","reason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ll=s({auth:o,name:"userAddBalance",displayName:"Actions - Users - Add Balance",description:"Add to the current balance of the user.",audience:"both",aiMetadata:{description:"Credit (or debit, with a negative amount) a user's account balance by the given amount, recording the required reason. Not idempotent: this adds to the existing balance, so each call shifts it further rather than setting an absolute value.",idempotent:!1},props:{user:t.Number({displayName:"User",required:!0}),amount:t.Number({displayName:"Amount",required:!0}),reason:t.ShortText({displayName:"Reason",required:!0}),app_info:t.ShortText({displayName:"App Info",required:!1})},async run(e){try{let r=l("/public-api/actions/users/v1.0/{user}/add-balance",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["amount","reason","app_info"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ul=s({auth:o,name:"userApplyCustomFee",displayName:"Actions - Users - Apply Custom Fee",description:"Apply custom fee for a user.",audience:"both",aiMetadata:{description:"Charge an ad-hoc custom fee of the given amount to a user, optionally against a specific payment method (defaults to balance, rejecting if insufficient; corporate billing is not supported). The description is shown to the user and on their bank statement. Not idempotent: each call creates and charges a new fee.",idempotent:!1},props:{user:t.Number({displayName:"User",required:!0}),amount:t.Number({displayName:"Amount",required:!0}),description:t.ShortText({displayName:"Description",description:"Shown to the user and also added to the user's bank statement (if the payment method is a bank card).",required:!0}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:"The ID of the payment method, as returned by the payment method listing (User / Payment Method / Listing). When left empty or null, it would take the balance and if the balance is insufficient, would reject the action. Corporate billing is not supported as a payment method.",required:!1})},async run(e){try{let r=l("/public-api/actions/users/v1.0/{user}/apply-custom-fee",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["amount","description","paymentMethodId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Vl=s({auth:o,name:"userCancelSubscription",displayName:"Actions - Users - Cancel Subscription",description:"Cancel a subscription to a user.",audience:"both",aiMetadata:{description:"Cancel a user's active subscription, recording the supplied reason in the audit log. Use activate-subscription to grant one instead. Effectively idempotent on the end state (subscription ends up cancelled), but cancelling when there is no active subscription may error.",idempotent:!0},props:{user:t.Number({displayName:"User",required:!0}),reason:t.ShortText({displayName:"Reason",description:"The reason for the cancellation. It would be included in the Audit logs.",required:!0})},async run(e){try{let r=l("/public-api/actions/users/v1.0/{user}/cancel-subscription",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["reason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var zl=s({auth:o,name:"userChangeStatus",displayName:"Actions - Users - Change Status",description:"Set the status for a user.",audience:"both",aiMetadata:{description:"Enable or disable a user account (enabled = allowed to use the system, disabled = blocked), recording the required reason. Idempotent: it sets the account to the chosen status, so re-running with the same status leaves the same end state.",idempotent:!0},props:{user:t.Number({displayName:"User",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"* `enabled` Enabled - the user is allowed to use the system\n* `disabled` Disabled - the user is NOT allowed to use the system\n",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),reason:t.ShortText({displayName:"Reason",required:!0})},async run(e){try{let r=l("/public-api/actions/users/v1.0/{user}/change-status",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["status","reason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Fl=s({auth:o,name:"userClearSubscriptionAmountDue",displayName:"Actions - Users - Clear Subscription Amount Due",description:"Clear a user's subscription amount due. Any unsettled transactions related to the user's current subscription \u2014 such as fees and charging sessions will be set to an amount of 0.This operation is irreversible.",audience:"both",aiMetadata:{description:"Zero out all unsettled amounts due (fees and charging sessions) on a user's current subscription. This is irreversible and only affects the user's current subscription. Effectively idempotent: once cleared the amount due is 0, so re-running has no further effect.",idempotent:!0},props:{user:t.Number({displayName:"User",required:!0})},async run(e){try{let r=l("/public-api/actions/users/v1.0/{user}/clear-subscription-amount-due",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"POST",void 0,a)}catch(r){u(r)}}});var Bl=s({auth:o,name:"userExportAllPrivateData",displayName:"Actions - Users - Export All Private Data",description:"Export all private data.",audience:"both",aiMetadata:{description:"Retrieve a full export of a user's stored private/personal data (read-only, for GDPR-style data-access requests). Idempotent: it only reads and returns data without changing anything.",idempotent:!0},props:{user:t.Number({displayName:"User",required:!0})},async run(e){try{let r=l("/public-api/actions/users/v2.0/{user}/export-all-private-data",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var $l=s({auth:o,name:"userRedeemVoucher",displayName:"Actions - Users - Redeem Voucher",description:"Apply a voucher to a user.",audience:"both",aiMetadata:{description:"Redeem a voucher code on behalf of a user, granting whatever benefit the voucher carries. Not idempotent: each call consumes a redemption, so re-running may redeem again or fail if the code is single-use or already spent.",idempotent:!1},props:{user:t.Number({displayName:"User",required:!0}),code:t.ShortText({displayName:"Code",description:"The code of the voucher that should be redeemed.",required:!0})},async run(e){try{let r=l("/public-api/actions/users/v2.0/{user}/redeem-voucher",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["code"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Gl=s({auth:o,name:"notificationsSubscribe",displayName:"Notifications - V2.0 - Notifications Subscribe",description:"Subscribe for a webhook or kafka events. Each notification sent to the webhook/kafka will be retried a number of times and will be rate limited. The rate limits, retries and retry intervals will be configured by Ampeco.",audience:"both",aiMetadata:{description:"Create a new AMPECO notification subscription that pushes selected event types to either a webhook callback URL or a Kafka topic. Not idempotent: each call registers another subscription. Choose delivery with the Via field (webhook vs kafka) and supply the matching delivery config; to change an existing subscription use the notification update action.",idempotent:!1},props:{via:t.StaticDropdown({displayName:"Via",required:!0,options:{options:[{label:"webhook",value:"webhook"},{label:"kafka",value:"kafka"}]}}),notifications:t.StaticMultiSelectDropdown({displayName:"Notifications",required:!0,options:{options:[{label:"AuthorizationNotification",value:"AuthorizationNotification"},{label:"authorization.changed",value:"authorization.changed"},{label:"BootNotification",value:"BootNotification"},{label:"ChargePointChangedNotification",value:"ChargePointChangedNotification"},{label:"chargePoint.changed",value:"chargePoint.changed"},{label:"evse.changed",value:"evse.changed"},{label:"ChargePointSyncConfigurationNotification",value:"ChargePointSyncConfigurationNotification"},{label:"CircuitConsumptionNotification",value:"CircuitConsumptionNotification"},{label:"circuit.changed",value:"circuit.changed"},{label:"DiagnosticsStatusNotification",value:"DiagnosticsStatusNotification"},{label:"HardwareStatusNotification",value:"HardwareStatusNotification"},{label:"LocationChangedNotification",value:"LocationChangedNotification"},{label:"NetworkStatusNotification",value:"NetworkStatusNotification"},{label:"SecurityEventNotification",value:"SecurityEventNotification"},{label:"SessionMeterValuesNotification",value:"SessionMeterValuesNotification"},{label:"SessionStartStopNotification",value:"SessionStartStopNotification"},{label:"session.start.stop.notification",value:"session.start.stop.notification"},{label:"SessionUpdateNotification",value:"SessionUpdateNotification"},{label:"UserChangedNotification",value:"UserChangedNotification"},{label:"SubOperatorChangedNotification",value:"SubOperatorChangedNotification"},{label:"TariffChangedNotification",value:"TariffChangedNotification"},{label:"user.subscriptionChanged",value:"user.subscriptionChanged"},{label:"user.subscription.changed",value:"user.subscription.changed"},{label:"ReservationChangedNotification",value:"ReservationChangedNotification"},{label:"PaymentMethodChangedNotification",value:"PaymentMethodChangedNotification"},{label:"PartnerInviteChangedNotification",value:"PartnerInviteChangedNotification"},{label:"reservation.changed",value:"reservation.changed"},{label:"user.paymentMethod.changed",value:"user.paymentMethod.changed"},{label:"userBalance.changed",value:"userBalance.changed"},{label:"partnerInvite.changed",value:"partnerInvite.changed"},{label:"roamingPlatform.changed",value:"roamingPlatform.changed"},{label:"parkingSpace.occupancyStatus.changed",value:"parkingSpace.occupancyStatus.changed"},{label:"partner.changed",value:"partner.changed"},{label:"transaction.changed",value:"transaction.changed"},{label:"settlementReport.created",value:"settlementReport.created"},{label:"idTag.changed",value:"idTag.changed"},{label:"chargePoint.dataTransferReceived",value:"chargePoint.dataTransferReceived"},{label:"subscriptionPlan.changed",value:"subscriptionPlan.changed"},{label:"user.invoiceDetails.changed",value:"user.invoiceDetails.changed"},{label:"cdr.received",value:"cdr.received"},{label:"chargingProfile.applied",value:"chargingProfile.applied"},{label:"installerJob.changed",value:"installerJob.changed"}]}}),webhook__callbackUrl:t.ShortText({displayName:"Webhook - Callback Url",required:!0}),kafka__topic:t.ShortText({displayName:"Kafka - Topic",required:!0}),kafka__brokers:t.Array({displayName:"Kafka - Brokers",required:!0}),kafka__compressionCodec:t.StaticDropdown({displayName:"Kafka - Compression Codec",required:!1,options:{options:[{label:"none",value:"none"},{label:"gzip",value:"gzip"},{label:"snappy",value:"snappy"},{label:"lz4",value:"lz4"}]}}),kafka__securityProtocol:t.StaticDropdown({displayName:"Kafka - Security Protocol",required:!1,options:{options:[{label:"PLAINTEXT",value:"PLAINTEXT"},{label:"SASL_SSL",value:"SASL_SSL"}]}}),kafka__saslMechanism:t.StaticDropdown({displayName:"Kafka - Sasl Mechanism",required:!1,options:{options:[{label:"PLAIN",value:"PLAIN"},{label:"SCRAM-SHA-256",value:"SCRAM-SHA-256"},{label:"SCRAM-SHA-512",value:"SCRAM-SHA-512"}]}}),kafka__saslUsername:t.ShortText({displayName:"Kafka - Sasl Username",required:!1}),kafka__saslPassword:t.ShortText({displayName:"Kafka - Sasl Password",required:!1})},async run(e){try{let r=l("/public-api/notifications/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["via","notifications","webhook","kafka"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Hl=s({auth:o,name:"notificationsListing",displayName:"Notifications - V2.0 - Notifications Listing",description:"Notifications / Listing",audience:"both",aiMetadata:{description:"List all AMPECO notification subscriptions (webhook and kafka), optionally auto-paginating across pages when Paginate Results is enabled. Read-only and idempotent. To fetch one subscription by its ID use the notification read action.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/notifications/v2.0",e.propsValue),a=p(e.propsValue,["per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Wl=s({auth:o,name:"notificationRead",displayName:"Notifications - V2.0 - Notification Read",description:"Get a notification.",audience:"both",aiMetadata:{description:"Retrieve a single AMPECO notification subscription by its identifier. Read-only and idempotent; use it when you already know the subscription ID. To enumerate all subscriptions use the notifications listing action.",idempotent:!0},props:{notification:t.ShortText({displayName:"Notification",required:!0})},async run(e){try{let r=l("/public-api/notifications/v2.0/{notification}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Kl=s({auth:o,name:"notificationsCreate",displayName:"Notifications - V2.0 - Notifications Create",description:"Update a notification.",audience:"both",aiMetadata:{description:"Replace the configuration of an existing AMPECO notification subscription identified by its ID, setting its delivery method (webhook or kafka), the subscribed event types, and the matching delivery config. Idempotent: applying the same values repeatedly yields the same subscription state. To register a brand-new subscription use the notifications subscribe action instead.",idempotent:!0},props:{notification:t.ShortText({displayName:"Notification",required:!0}),via:t.StaticDropdown({displayName:"Via",required:!0,options:{options:[{label:"webhook",value:"webhook"},{label:"kafka",value:"kafka"}]}}),notifications:t.StaticMultiSelectDropdown({displayName:"Notifications",required:!0,options:{options:[{label:"AuthorizationNotification",value:"AuthorizationNotification"},{label:"authorization.changed",value:"authorization.changed"},{label:"BootNotification",value:"BootNotification"},{label:"ChargePointChangedNotification",value:"ChargePointChangedNotification"},{label:"chargePoint.changed",value:"chargePoint.changed"},{label:"evse.changed",value:"evse.changed"},{label:"ChargePointSyncConfigurationNotification",value:"ChargePointSyncConfigurationNotification"},{label:"CircuitConsumptionNotification",value:"CircuitConsumptionNotification"},{label:"circuit.changed",value:"circuit.changed"},{label:"DiagnosticsStatusNotification",value:"DiagnosticsStatusNotification"},{label:"HardwareStatusNotification",value:"HardwareStatusNotification"},{label:"LocationChangedNotification",value:"LocationChangedNotification"},{label:"NetworkStatusNotification",value:"NetworkStatusNotification"},{label:"SecurityEventNotification",value:"SecurityEventNotification"},{label:"SessionMeterValuesNotification",value:"SessionMeterValuesNotification"},{label:"SessionStartStopNotification",value:"SessionStartStopNotification"},{label:"session.start.stop.notification",value:"session.start.stop.notification"},{label:"SessionUpdateNotification",value:"SessionUpdateNotification"},{label:"UserChangedNotification",value:"UserChangedNotification"},{label:"SubOperatorChangedNotification",value:"SubOperatorChangedNotification"},{label:"TariffChangedNotification",value:"TariffChangedNotification"},{label:"user.subscriptionChanged",value:"user.subscriptionChanged"},{label:"user.subscription.changed",value:"user.subscription.changed"},{label:"ReservationChangedNotification",value:"ReservationChangedNotification"},{label:"PaymentMethodChangedNotification",value:"PaymentMethodChangedNotification"},{label:"PartnerInviteChangedNotification",value:"PartnerInviteChangedNotification"},{label:"reservation.changed",value:"reservation.changed"},{label:"user.paymentMethod.changed",value:"user.paymentMethod.changed"},{label:"userBalance.changed",value:"userBalance.changed"},{label:"partnerInvite.changed",value:"partnerInvite.changed"},{label:"roamingPlatform.changed",value:"roamingPlatform.changed"},{label:"parkingSpace.occupancyStatus.changed",value:"parkingSpace.occupancyStatus.changed"},{label:"partner.changed",value:"partner.changed"},{label:"transaction.changed",value:"transaction.changed"},{label:"settlementReport.created",value:"settlementReport.created"},{label:"idTag.changed",value:"idTag.changed"},{label:"chargePoint.dataTransferReceived",value:"chargePoint.dataTransferReceived"},{label:"subscriptionPlan.changed",value:"subscriptionPlan.changed"},{label:"user.invoiceDetails.changed",value:"user.invoiceDetails.changed"},{label:"cdr.received",value:"cdr.received"},{label:"chargingProfile.applied",value:"chargingProfile.applied"},{label:"installerJob.changed",value:"installerJob.changed"}]}}),webhook__callbackUrl:t.ShortText({displayName:"Webhook - Callback Url",required:!0}),kafka__topic:t.ShortText({displayName:"Kafka - Topic",required:!0}),kafka__brokers:t.Array({displayName:"Kafka - Brokers",required:!0}),kafka__compressionCodec:t.StaticDropdown({displayName:"Kafka - Compression Codec",required:!1,options:{options:[{label:"none",value:"none"},{label:"gzip",value:"gzip"},{label:"snappy",value:"snappy"},{label:"lz4",value:"lz4"}]}}),kafka__securityProtocol:t.StaticDropdown({displayName:"Kafka - Security Protocol",required:!1,options:{options:[{label:"PLAINTEXT",value:"PLAINTEXT"},{label:"SASL_SSL",value:"SASL_SSL"}]}}),kafka__saslMechanism:t.StaticDropdown({displayName:"Kafka - Sasl Mechanism",required:!1,options:{options:[{label:"PLAIN",value:"PLAIN"},{label:"SCRAM-SHA-256",value:"SCRAM-SHA-256"},{label:"SCRAM-SHA-512",value:"SCRAM-SHA-512"}]}}),kafka__saslUsername:t.ShortText({displayName:"Kafka - Sasl Username",required:!1}),kafka__saslPassword:t.ShortText({displayName:"Kafka - Sasl Password",required:!1})},async run(e){try{let r=l("/public-api/notifications/v2.0/{notification}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["via","notifications","webhook","kafka"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var Zl=s({auth:o,name:"notificationsUnsubscribe",displayName:"Notifications - V2.0 - Notifications Unsubscribe",description:"Unsubscribe for a notification.",audience:"both",aiMetadata:{description:"Delete (unsubscribe) an AMPECO notification subscription by its identifier, stopping further webhook/kafka delivery. Effectively idempotent on the target but destructive, so confirm the subscription ID before running.",idempotent:!0},props:{notification:t.ShortText({displayName:"Notification",required:!0})},async run(e){try{let r=l("/public-api/notifications/v2.0/{notification}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var jl=s({auth:o,name:"authorizationsListing",displayName:"Resources - Authorizations - Authorizations Listing",description:"Get all authorizations.",audience:"both",aiMetadata:{description:"List AMPECO authorization records (EV charging access requests), optionally filtered by status (accepted/rejected/pending), method, partner, or created/updated date range. Read-only and idempotent. Enable pagination to retrieve all matches across pages. Use this to discover authorizations before reading one by ID.",idempotent:!0},props:{filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"ISO 8601 formatted date. Lists only the authorizations created after this datetime",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"ISO 8601 formatted date. Lists only the authorizations created before this datetime",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the authorizations that were last updated after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the authorizations that were last updated before this datetime",required:!1}),filter__status:t.ShortText({displayName:"Filter - Status",description:'Lists only authorizations with one of the following statuses: "accepted", "rejected", "pending"',required:!1}),filter__method:t.ShortText({displayName:"Filter - Method",description:'Lists only authorizations with one of the following methods: "mobile_device", "rfid_tag", "admin_account", "plug_and_charge", "plug_and_charge_iso15118", "roaming", "payment_terminal"',required:!1}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Lists only authorizations of users who are associated to a particular partner",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/authorizations/v2.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Ql=s({auth:o,name:"authorizationRead",displayName:"Resources - Authorizations - Authorization Read",description:"Authorization / Read.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO authorization record (an EV charging access request, e.g. via RFID tag, mobile device, or plug-and-charge) by its ID, including its status and method. Read-only and idempotent. To search authorizations by status, method, or date instead of a known ID, use the authorizations listing action.",idempotent:!0},props:{authorization:t.ShortText({displayName:"Authorization",required:!0})},async run(e){try{let r=l("/public-api/resources/authorizations/v2.0/{authorization}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Yl=s({auth:o,name:"bookingRequestsListing",displayName:"Resources - Booking Requests - Booking Requests Listing",description:"Get all booking requests.",audience:"both",aiMetadata:{description:"List booking requests with optional filters by status, user, location, and start/end/created date ranges. Read-only and idempotent. Enable the pagination option to fetch all matching requests across pages; otherwise one page (up to per_page) is returned. Use this to find a booking request ID before reading one.",idempotent:!0},props:{filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Filter by booking request status",required:!1,options:{options:[{label:"pending",value:"pending"},{label:"approved",value:"approved"},{label:"rejected",value:"rejected"}]}}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Filter by user ID",required:!1}),filter__locationId:t.Number({displayName:"Filter - Location Id",description:"Filter by location ID",required:!1}),filter__startAfter:t.DateTime({displayName:"Filter - Start After",description:"Filter requests with start time after this date",required:!1}),filter__startBefore:t.DateTime({displayName:"Filter - Start Before",description:"Filter requests with start time before this date",required:!1}),filter__endAfter:t.DateTime({displayName:"Filter - End After",description:"Filter requests with end time after this date",required:!1}),filter__endBefore:t.DateTime({displayName:"Filter - End Before",description:"Filter requests with end time before this date",required:!1}),filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"Filter requests that were created after this date",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"Filter requests that were created before this date",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/booking-requests/v1.0",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Jl=s({auth:o,name:"bookingRequestCreate",displayName:"Resources - Booking Requests - Create",description:"Create a new booking request. If you want to find the available slots for a given location use the Actions / Location / Check Booking Availability.",audience:"both",aiMetadata:{description:"Submit a booking request to the chargepoint scheduling system. The request body variant selects the operation: create a new booking, update an existing booking, or cancel a booking - update and cancel target an existing booking by ID. Not idempotent: a create variant call queues a new request each time. To discover available slots first, use the Location Check Booking Availability action.",idempotent:!1},props:{requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Create Booking",value:"1"},{label:"Update the given Booking",value:"2"},{label:"Cancel Booking",value:"3"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{type:t.StaticDropdown({displayName:"Type",description:'Type of booking request - must be "create".',required:!0,options:{options:[{label:"create",value:"create"}]}}),userId:t.Number({displayName:"User Id",description:"ID of the user for whom the booking is made.",required:!0}),locationId:t.Number({displayName:"Location Id",description:"ID of the target location.",required:!0}),evseId:t.Number({displayName:"Evse Id",description:"Specific EVSE ID (optional - if not provided, system will choose any available EVSE).",required:!1}),currentType:t.StaticDropdown({displayName:"Evse Criteria - Current Type",description:"Type of current available on the EVSE: - **ac**: Alternating Current (AC) charging - **dc**: Direct Current (DC) fast charging.",required:!1,options:{options:[{label:"ac",value:"ac"},{label:"dc",value:"dc"}]}}),minPower:t.Number({displayName:"Evse Criteria - Min Power",description:"Minimum power requirement (kW).",required:!1}),maxPower:t.Number({displayName:"Evse Criteria - Max Power",description:"Maximum power requirement (kW).",required:!1}),connectorType:t.StaticDropdown({displayName:"Evse Criteria - Connector Type",description:"Type of connector available on the EVSE: - **type1**: Type 1 connector (SAE J1772 AC) - **type2**: Type 2 connector (IEC 62196-2 AC) - **type3**: Type 3 connector (IEC 62196-2 AC) - **chademo**: CHAdeMO DC fast charging - **ccs1**: Combined Charging System 1 (CCS1/Combo 1) - **ccs2**: Combined Charging System 2 (CCS2/Combo 2) - **schuko**: Standard European household socket - **nacs**: North American Charging Standard (Tesla) - **cee16**: CEE 16A industrial connector - **cee32**: CEE 32A industrial connector - **j1772**: SAE J1772 connector - **inductive**: Inductive/wireless charging - **nema-5-20**: Domestic M NEMA 5-20 Socket - **type-e-french**: French Type E socket - **type-g-british**: British Type G socket - **type-j-swiss**: Swiss Type J socket - **avcon**: AVCON connector (Australian standard) - **gb-t-ac**: GB/T AC connector (Chinese standard) - **gb-t-dc**: GB/T DC connector (Chinese standard) - **chaoji**: ChaoJi (CHAdeMO 3.0) - **nema-6-30**: NEMA 6-30 - **nema-6-50**: NEMA 6-50.",required:!1,options:{options:[{label:"type1",value:"type1"},{label:"type2",value:"type2"},{label:"type3",value:"type3"},{label:"chademo",value:"chademo"},{label:"ccs1",value:"ccs1"},{label:"ccs2",value:"ccs2"},{label:"schuko",value:"schuko"},{label:"nacs",value:"nacs"},{label:"cee16",value:"cee16"},{label:"cee32",value:"cee32"},{label:"j1772",value:"j1772"},{label:"inductive",value:"inductive"},{label:"nema-5-20",value:"nema-5-20"},{label:"type-e-french",value:"type-e-french"},{label:"type-g-british",value:"type-g-british"},{label:"type-j-swiss",value:"type-j-swiss"},{label:"avcon",value:"avcon"},{label:"gb-t-ac",value:"gb-t-ac"},{label:"gb-t-dc",value:"gb-t-dc"},{label:"chaoji",value:"chaoji"},{label:"nema-6-30",value:"nema-6-30"},{label:"nema-6-50",value:"nema-6-50"}]}}),startAt:t.DateTime({displayName:"Start At",description:"Start time of the booking.",required:!0}),endAt:t.DateTime({displayName:"End At",description:"End time of the booking.",required:!0})},2:{type:t.StaticDropdown({displayName:"Type",description:'Type of booking request - must be "update".',required:!0,options:{options:[{label:"update",value:"update"}]}}),bookingId:t.Number({displayName:"Booking Id",description:"ID of the target booking to update.",required:!0}),userId:t.Number({displayName:"User Id",description:"ID of the user for whom the booking is made.",required:!1}),startAt:t.DateTime({displayName:"Start At",description:"Updated start time of the booking.",required:!1}),endAt:t.DateTime({displayName:"End At",description:"Updated end time of the booking.",required:!1})},3:{type:t.StaticDropdown({displayName:"Type",description:'Type of booking request - must be "cancel".',required:!0,options:{options:[{label:"cancel",value:"cancel"}]}}),bookingId:t.Number({displayName:"Booking Id",description:"ID of the target booking to cancel.",required:!0})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/booking-requests/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","type","userId","locationId","evseId","currentType","minPower","maxPower","connectorType","startAt","endAt","bookingId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Xl=s({auth:o,name:"bookingRequestRead",displayName:"Resources - Booking Requests - Read",description:"Get information for a booking request by ID.",audience:"both",aiMetadata:{description:"Fetch a single booking request by its numeric ID. Read-only and idempotent. Use when you already know the booking request ID; otherwise use the Booking Requests Listing to find it first.",idempotent:!0},props:{bookingRequest:t.Number({displayName:"Booking Request",required:!0})},async run(e){try{let r=l("/public-api/resources/booking-requests/v1.0/{bookingRequest}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ep=s({auth:o,name:"bookingsListing",displayName:"Resources - Bookings - Listing",description:"Get all bookings.",audience:"both",aiMetadata:{description:"List AMPECO charger/EVSE bookings, optionally filtered by status (accepted, reserved, completed, cancelled, no-show, failed), user, location, or start/end time window. Read-only and idempotent. Enable pagination to fetch all matches across pages. Use this to find booking IDs before reading a single booking.",idempotent:!0},props:{filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Filter by booking status",required:!1,options:{options:[{label:"accepted",value:"accepted"},{label:"reserved",value:"reserved"},{label:"completed",value:"completed"},{label:"cancelled",value:"cancelled"},{label:"no-show",value:"no-show"},{label:"failed",value:"failed"}]}}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Filter by user ID",required:!1}),filter__locationId:t.Number({displayName:"Filter - Location Id",description:"Filter by location ID",required:!1}),filter__startAfter:t.DateTime({displayName:"Filter - Start After",description:"Filter bookings with start time after this date",required:!1}),filter__startBefore:t.DateTime({displayName:"Filter - Start Before",description:"Filter bookings with start time before this date",required:!1}),filter__endAfter:t.DateTime({displayName:"Filter - End After",description:"Filter bookings with end time after this date",required:!1}),filter__endBefore:t.DateTime({displayName:"Filter - End Before",description:"Filter bookings with end time before this date",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/bookings/v1.0",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var tp=s({auth:o,name:"bookingRead",displayName:"Resources - Bookings - Read",description:"Get information for a booking by ID.",audience:"both",aiMetadata:{description:"Fetch the details of one AMPECO charger booking by its numeric ID; optionally include linked EVSE information. Read-only and idempotent. Pick this when you already have a booking ID; to search or browse bookings, use the bookings listing action.",idempotent:!0},props:{booking:t.Number({displayName:"Booking",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:`Include additional information in the response. The following options are available:
|
|
4
|
+
- **bookedEvses**: Include information about the EVSEs linked to this booking
|
|
5
|
+
`,required:!1,options:{options:[{label:"bookedEvses",value:"bookedEvses"}]}})},async run(e){try{let r=l("/public-api/resources/bookings/v1.0/{booking}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var rp=s({auth:o,name:"cdrsListing",displayName:"Resources - Cdrs - Listing",description:"Get all CDRs.",audience:"both",aiMetadata:{description:"List charge detail records (CDRs), with optional filters by start/end time, received/sent time, roaming operator or platform, credit, local vs received, and delivery response. Read-only and idempotent. Enable the Paginate Results option to fetch across pages up to Per page total; otherwise a single page (max 100) is returned. Use cdrRead when you already know a CDR id.",idempotent:!0},props:{filter__startDateTimeFrom:t.DateTime({displayName:"Filter - Start Date Time From",description:"Filters CDRs by the start time, selecting records with a start time equal to or later than the specified value. The date-time should be formatted according to ISO 8601 standards.",required:!1}),filter__startDateTimeTo:t.DateTime({displayName:"Filter - Start Date Time To",description:"Filters CDRs by the start time, selecting records with a start time equal to or earlier than the specified value. This filter helps in selecting records up to a certain start time. The provided date-time should be in ISO 8601 format.",required:!1}),filter__endDateTimeFrom:t.DateTime({displayName:"Filter - End Date Time From",description:"This filter retrieves CDRs with an end time equal to or later than the specified value. It helps filter records based on the end of a timeframe, ensuring that only records ending after a certain point are selected. The date-time format should adhere to ISO 8601 standards.",required:!1}),filter__endDateTimeTo:t.DateTime({displayName:"Filter - End Date Time To",description:"Filters CDRs based on their end time, selecting those with an end time equal to or earlier than the provided value. This filter limits the selection to records that conclude by a certain time. The date-time should be in ISO 8601 format.",required:!1}),filter__operatorId:t.Number({displayName:"Filter - Operator Id",description:"Only CDRs associated with a specific Roaming Operator/Provider.",required:!1}),filter__platformId:t.Number({displayName:"Filter - Platform Id",description:"Only CDRs linked to a specific Roaming Platform.",required:!1}),filter__roamingId:t.ShortText({displayName:"Filter - Roaming Id",description:"Filters CDRs by the unique identifier within the CPO\u2019s platform (and sub-operator platforms). If you use this filter, it will return a single result.",required:!1}),filter__credit:t.ShortText({displayName:"Filter - Credit",description:"Only Credit CDRs.",required:!1}),filter__isLocal:t.ShortText({displayName:"Filter - Is Local",description:"If true only CDRs that we issued as CPO will be returned, if false only CDRs that we received as eMSP will be returned.",required:!1}),filter__receivedAfter:t.DateTime({displayName:"Filter - Received After",description:"Filters CDRs by the time when received from CPOs, selecting records with a received time equal to or later than the specified value. This filter helps in selecting received records from a certain time and works for non local CDRs. The provided date-time should be following the ISO 8601 standard.",required:!1}),filter__receivedBefore:t.DateTime({displayName:"Filter - Received Before",description:"Filters CDRs by the time when received from CPOs, selecting records with a start time equal to or earlier than the specified value. This filter helps in selecting received records up to a certain time and works for non local CDRs. The provided date-time should be following the ISO 8601 standard.",required:!1}),filter__sentAfter:t.DateTime({displayName:"Filter - Sent After",description:"Filters CDRs by the time when sent to EMSP, selecting records with a sent time equal to or later than the specified value. This filter helps in selecting sent records from a certain time and works for local CDRs. The provided date-time should be following the ISO 8601 standard.",required:!1}),filter__sentBefore:t.DateTime({displayName:"Filter - Sent Before",description:"Filters CDRs by the time when sent to EMSP, selecting records with a sent time equal to or earlier than the specified value. This filter helps in selecting sent records from a certain time and works for local CDRs. The provided date-time should be following the ISO 8601 standard.",required:!1}),filter__deliveryResponse:t.StaticDropdown({displayName:"Filter - Delivery Response",description:"Filters CDRs that were sent to the EMSP based on their delivery status.\nUse this dropdown filter to retrieve CDRs with one of the following statuses:\n - `success`: CDRs successfully **accepted** by the EMSP.\n - `fail`: CDRs that were **rejected** (not accepted) by the EMSP.\n",required:!1,options:{options:[{label:"success",value:"success"},{label:"fail",value:"fail"}]}}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"externalAppData",value:"externalAppData"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/cdrs/v2.0",e.propsValue),a=p(e.propsValue,["per_page","cursor","filter","include"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var ap=s({auth:o,name:"cdrRead",displayName:"Resources - Cdrs - Read",description:"Get a CDR.",audience:"both",aiMetadata:{description:"Fetch a single charge detail record (CDR) by its numeric id, optionally including external app data. Read-only and idempotent. Use when you already know the CDR id; to browse or filter CDRs by time, operator, or platform use cdrsListing.",idempotent:!0},props:{cdr:t.Number({displayName:"Cdr",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/cdrs/v2.0/{cdr}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ip=s({auth:o,name:"chargePointDowntimePeriodsListing",displayName:"Resources - Charge Point Downtime Periods - Listing",description:"Get all Charge Point Downtime Periods.",audience:"both",aiMetadata:{description:"List charge-point downtime periods, optionally filtered by charge point, location, entry mode (manual/automatic), type (downtime/exempt), duration, or start/stop/last-updated date ranges. Read-only and idempotent; enable Paginate Results to fetch all pages. To fetch one period by its ID use the downtime period read action.",idempotent:!0},props:{filter__chargePointId:t.Number({displayName:"Filter - Charge Point Id",required:!1}),filter__locationId:t.Number({displayName:"Filter - Location Id",required:!1}),filter__entryMode:t.StaticDropdown({displayName:"Filter - Entry Mode",required:!1,options:{options:[{label:"manual",value:"manual"},{label:"automatic",value:"automatic"}]}}),filter__type:t.StaticDropdown({displayName:"Filter - Type",required:!1,options:{options:[{label:"downtime",value:"downtime"},{label:"exempt",value:"exempt"}]}}),filter__startedAfter:t.DateTime({displayName:"Filter - Started After",description:"ISO 8601 formatted date. Resources with `startedAt >= startedAfter`.",required:!1}),filter__stoppedBefore:t.DateTime({displayName:"Filter - Stopped Before",description:"ISO 8601 formatted date. Resources with `stoppedAt <= stoppedBefore`.",required:!1}),filter__durationLessThan:t.Number({displayName:"Filter - Duration Less Than",description:"Resources with duration in minutes less than or equal given value.",required:!1}),filter__durationGreaterThan:t.Number({displayName:"Filter - Duration Greater Than",description:"Resources with duration in minutes greater than or equal given value.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and before this datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-downtime-periods/v1.0",e.propsValue),a=p(e.propsValue,["per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var op=s({auth:o,name:"chargePointDowntimePeriodCreate",displayName:"Resources - Charge Point Downtime Periods - Create",description:"Create Manual Exempt Charge Point Downtime Period.",audience:"both",aiMetadata:{description:"Create a manual exempt downtime period for a charge point over a given start/end window, referencing a notice. Not idempotent: each call creates another period, so re-running produces duplicates. The supplied notice must be of type exempt.",idempotent:!1},props:{chargePointId:t.Number({displayName:"Charge Point Id",required:!0}),noticeId:t.Number({displayName:"Notice Id",description:"Allowed only notice with `type = exempt`!",required:!0}),startedAt:t.DateTime({displayName:"Started At",required:!0}),endedAt:t.DateTime({displayName:"Ended At",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-downtime-periods/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["chargePointId","noticeId","startedAt","endedAt"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var np=s({auth:o,name:"chargePointDowntimePeriodRead",displayName:"Resources - Charge Point Downtime Periods - Read",description:"Get Charge Point Downtime Period.",audience:"both",aiMetadata:{description:"Retrieve a single charge-point downtime period by its numeric ID. Read-only and idempotent; use it when you already know the period ID. To search or enumerate periods (e.g. by charge point, type, or date range) use the downtime periods listing action.",idempotent:!0},props:{chargePointDowntimePeriod:t.Number({displayName:"Charge Point Downtime Period",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-downtime-periods/v1.0/{chargePointDowntimePeriod}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var sp=s({auth:o,name:"chargePointDowntimePeriodUpdate",displayName:"Resources - Charge Point Downtime Periods - Update",description:"Update Charge Point Downtime Period.",audience:"both",aiMetadata:{description:"Update an existing charge-point downtime period identified by its numeric ID, changing its notice and optionally its start/end times. Idempotent: re-applying the same values yields the same state. Editing startedAt/endedAt is only allowed for manual exempt periods (type = exempt and entryMode = manual).",idempotent:!0},props:{chargePointDowntimePeriod:t.Number({displayName:"Charge Point Downtime Period",required:!0}),noticeId:t.Number({displayName:"Notice Id",required:!1}),startedAt:t.DateTime({displayName:"Started At",description:"Allowed only for downtime period with `type = exempt AND entryMode = manual`",required:!1}),endedAt:t.DateTime({displayName:"Ended At",description:"Allowed only for downtime period with `type = exempt AND entryMode = manual`",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-downtime-periods/v1.0/{chargePointDowntimePeriod}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["noticeId","startedAt","endedAt"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var lp=s({auth:o,name:"chargePointDowntimePeriodDelete",displayName:"Resources - Charge Point Downtime Periods - Delete",description:"Delete Manual Created Charge Point Downtime Period.",audience:"both",aiMetadata:{description:"Delete a manually created charge-point downtime period by its numeric ID. Only manually created periods can be removed (automatically generated ones cannot). Effectively idempotent on the target but destructive and irreversible, so confirm the ID first.",idempotent:!0},props:{chargePointDowntimePeriod:t.Number({displayName:"Charge Point Downtime Period",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-downtime-periods/v1.0/{chargePointDowntimePeriod}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var pp=s({auth:o,name:"chargePointModelsListing",displayName:"Resources - Charge Point Models - Listing",description:"Get all Charge Point Models.",audience:"both",aiMetadata:{description:"List charge point models, optionally filtered by vendor ID. Read-only and idempotent. Enable the pagination option to fetch all models across pages; otherwise one page (up to per_page) is returned. Use this to discover a model ID before reading, updating, or deleting a specific model.",idempotent:!0},props:{filter__vendorId:t.ShortText({displayName:"Filter - Vendor Id",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-models/v1.0",e.propsValue),a=p(e.propsValue,["page","per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var up=s({auth:o,name:"chargePointModelCreate",displayName:"Resources - Charge Point Models - Create",description:"Create new Charge Point Model.",audience:"both",aiMetadata:{description:"Create a new charge point model with a name and vendor ID (optional user/installer manual links). Not idempotent: each call creates a separate model, so re-running produces duplicates. Use Listing first to check for an existing model, and Update to modify one.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",required:!0}),vendorId:t.Number({displayName:"Vendor Id",required:!0}),userManual:t.ShortText({displayName:"User Manual",description:"A download link for the user manual. Shown in the mobile app for home chargers.",required:!1}),installerManual:t.ShortText({displayName:"Installer Manual",description:"URL to an externally-hosted installer manual. The system stores this URL reference only (does not download or cache the document) and provides it to installers for viewing/downloading through the installer app interface.",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-models/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","vendorId","userManual","installerManual"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var cp=s({auth:o,name:"chargePointModelRead",displayName:"Resources - Charge Point Models - Read",description:"Get a Charge Point Model.",audience:"both",aiMetadata:{description:"Fetch a single charge point model by its numeric model ID. Read-only and idempotent. Use when you already know the model ID; otherwise use Listing to find it first.",idempotent:!0},props:{modelId:t.Number({displayName:"Model Id",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-models/v1.0/{modelId}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var dp=s({auth:o,name:"chargePointModelUpdate",displayName:"Resources - Charge Point Models - Update",description:"Charge Point Model.",audience:"both",aiMetadata:{description:"Partially update an existing charge point model (by model ID), changing only the fields you supply (name, vendor ID, user/installer manual links). Idempotent: applying the same values repeatedly leaves the model unchanged. Use this to modify an existing model rather than Create (which would make a duplicate).",idempotent:!0},props:{modelId:t.Number({displayName:"Model Id",required:!0}),name:t.ShortText({displayName:"Name",required:!1}),vendorId:t.Number({displayName:"Vendor Id",required:!1}),userManual:t.ShortText({displayName:"User Manual",description:"A download link for the user manual. Shown in the mobile app for home chargers.",required:!1}),installerManual:t.ShortText({displayName:"Installer Manual",description:"URL to an externally-hosted installer manual. The system stores this URL reference only (does not download or cache the document) and provides it to installers for viewing/downloading through the installer app interface.",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-models/v1.0/{modelId}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","vendorId","userManual","installerManual"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var mp=s({auth:o,name:"chargePointModelDelete",displayName:"Resources - Charge Point Models - Delete",description:"Delete a Charge Point Model.",audience:"both",aiMetadata:{description:"Permanently delete a charge point model by its numeric model ID. Destructive: the first call removes the model, later calls for the same ID fail because it no longer exists. Use only when the model should be fully removed.",idempotent:!1},props:{modelId:t.Number({displayName:"Model Id",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-models/v1.0/{modelId}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var fp=s({auth:o,name:"chargePointVendorsListing",displayName:"Resources - Charge Point Vendors - Listing",description:"Get all Charge Point Vendors.",audience:"both",aiMetadata:{description:"List charge-point vendor (manufacturer) reference records from the AMPECO catalog. Read-only and idempotent; use it to look up or enumerate available vendors, optionally auto-paginating across all pages when Paginate Results is enabled.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-vendors/v1.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var hp=s({auth:o,name:"chargePointVendorCreate",displayName:"Resources - Charge Point Vendors - Create",description:"Create new Charge Point Vendor.",audience:"both",aiMetadata:{description:"Create a new AMPECO charge-point vendor (manufacturer) with the given name. Not idempotent: each call creates a separate vendor record, so guard against duplicate names. Use the update action to rename an existing vendor.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-vendors/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var yp=s({auth:o,name:"chargePointVendorRead",displayName:"Resources - Charge Point Vendors - Read",description:"Get a Charge Point Vendor.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO charge-point vendor (manufacturer) by its numeric vendor ID. Use when you already know the vendor ID. Read-only and idempotent.",idempotent:!0},props:{vendorId:t.Number({displayName:"Vendor Id",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-vendors/v1.0/{vendorId}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var bp=s({auth:o,name:"chargePointVendorUpdate",displayName:"Resources - Charge Point Vendors - Update",description:"Charge Point Vendor.",audience:"both",aiMetadata:{description:"Update an existing AMPECO charge-point vendor identified by its numeric vendor ID, currently to change its name. Idempotent: repeating the same payload leaves the vendor in the same final state. Use the create action to add a new vendor.",idempotent:!0},props:{vendorId:t.Number({displayName:"Vendor Id",required:!0}),name:t.ShortText({displayName:"Name",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-point-vendors/v1.0/{vendorId}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var gp=s({auth:o,name:"chargePointVendorDelete",displayName:"Resources - Charge Point Vendors - Delete",description:"Delete a Charge Point Vendor.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO charge-point vendor by its numeric vendor ID. Destructive and cannot be undone; deleting an already-removed vendor will error. Confirm the vendor is no longer referenced before calling.",idempotent:!1},props:{vendorId:t.Number({displayName:"Vendor Id",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-point-vendors/v1.0/{vendorId}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var vp=s({auth:o,name:"chargePointStatusRead",displayName:"Resources - Charge Points - Charge Point Status Read",description:"Get a charge point's status.",audience:"both",aiMetadata:{description:"Read the live operational status of one AMPECO charge point by its numeric ID. Read-only and safe to repeat; use this to check availability/connectivity rather than charge-point-read, which returns full configuration instead of status.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v1.0/{chargePoint}/status",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Pp=s({auth:o,name:"chargePointCreate",displayName:"Resources - Charge Points - Charge Point Create",description:"Create new charge point.",audience:"both",aiMetadata:{description:"Register a new charge point (public, private, or personal) with its name, status, location, and communication/network configuration. Not idempotent: each call creates a separate charge point, so guard against duplicates. Required fields vary by type (e.g. locationId for commercial chargers, pin for personal); to change an existing charge point use a dedicated update action instead.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"`public` - a charge point visible on the map to everybody </br>\n`private` - by default hidden from the map and for private usage only - company and their employees for example. The visibility of the charge point could be managed in partner object, with the different options for accessType. </br>\n`personal` - the charge point could have a single owner only. The owner is set when the user claims the charger or with Actions / Change Owner. </br>\n",required:!0,options:{options:[{label:"private",value:"private"},{label:"public",value:"public"},{label:"personal",value:"personal"}]}}),pin:t.ShortText({displayName:"Pin",description:`Required for personal charge points. The PIN should be provided in the mobile app when the charge point is claimed by a user. Should contain only numbers.
|
|
6
|
+
`,required:!1}),locationId:t.Number({displayName:"Location Id",description:`locationId is always a REQUIRED field for commercial public and commercial private charge points. It is NOT a required field only for personal charge points.
|
|
7
|
+
`,required:!1}),chargingZoneId:t.Number({displayName:"Charging Zone Id",description:"",required:!1}),electricityRateId:t.Number({displayName:"Electricity Rate Id",description:`If there is Electricity rate set to the Charge point the electricity cost for each charging session would be tracked. Dynamic electricity rates could not be selected, only ones created in the resource / electricity-rate.
|
|
8
|
+
`,required:!1}),subscription__required:t.StaticDropdown({displayName:"Subscription - Required",description:"Only for personal charge points. Require an active subscription to use the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),subscription__planIds:t.Array({displayName:"Subscription - Plan Ids",description:"Only for personal charge points. List of subscription plans for any of which the user should have an active subscription, to be able to use the charge point.",required:!1}),networkType:t.StaticDropdown({displayName:"Network Type",description:"",required:!1,options:{options:[{label:"cellular",value:"cellular"},{label:"ethernet",value:"ethernet"},{label:"wlan",value:"wlan"}]}}),status:t.StaticDropdown({displayName:"Status",description:"Shows the system status of the Charge Point. </br>\n`enabled` - the charge point is fully operative.\n`disabled` - the charge point would not be shown on the map if it is a commercial public or commercial private with the relevant option for visibility nor could be claimed or found by ID if it is personal (home). </br>\n`demo` - acts as a simulator so different setups could be tested. </br>\n`out of order` - the charge point is visible and shared with users, but a charging session\n",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"out of order",value:"out of order"},{label:"demo",value:"demo"}]}}),managedByOperator:t.StaticDropdown({displayName:"Managed By Operator",description:`This flag indicates whether the operator can actively manage the charge point. If the flag is set to
|
|
9
|
+
false' the charge point can still be shown to users, but they can't request to start a session on it.
|
|
10
|
+
|
|
11
|
+
Deprecated. Please use 'communicationMode' instead.
|
|
12
|
+
`,required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),network__id:t.ShortText({displayName:"Network - Id",description:"OCPP Identifier.",required:!1}),network__protocol:t.StaticDropdown({displayName:"Network - Protocol",description:"",required:!1,options:{options:[{label:"ocpp 1.5",value:"ocpp 1.5"},{label:"ocpp 1.6",value:"ocpp 1.6"},{label:"ocpp 1.6 soap",value:"ocpp 1.6 soap"},{label:"ocpp 2.0.1",value:"ocpp 2.0.1"}]}}),network__password:t.ShortText({displayName:"Network - Password",description:"",required:!1}),network__ip:t.ShortText({displayName:"Network - Ip",description:"Required for ocpp 1.5 (SOAP).",required:!1}),network__port:t.Number({displayName:"Network - Port",description:"Required for ocpp 1.5 (SOAP).",required:!1}),capabilities:t.StaticMultiSelectDropdown({displayName:"Capabilities",description:"`remote_start_stop_capable` - whether Remote start/stop is possible for the Charge Point </br>\n`meter_values` - whether the Charge Point should send meter updates to the system </br>\n`stop_transaction_on_ev_disconnect` - for ongoing sessions, when the cable is unplugged this should stop the session and if it is returned back a new session would be created. </br>\n`disregard_the_heartbeats` - only for OCPP 1.5 SOAP. Network status by default is updated based on the heartbeat messages. When enabled, the Charge Point would be always treated as available and its network status would not depend on heartbeat messages. </br>\n`display_messages` - charger has a display and it is enabled to display messages. This capability is enabled automatically when the charger reports the corresponding configuration key. When creating a charge point, the capability is ignored as it is automatically detected on boot. </br>\n",required:!1,options:{options:[{label:"remote_start_stop_capable",value:"remote_start_stop_capable"},{label:"meter_values",value:"meter_values"},{label:"stop_transaction_on_ev_disconnect",value:"stop_transaction_on_ev_disconnect"},{label:"disregard_the_heartbeats",value:"disregard_the_heartbeats"},{label:"display_messages",value:"display_messages"}]}}),autoStartWithoutAuthorization:t.StaticDropdown({displayName:"Auto Start Without Authorization",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),disableAutoStartEmulation:t.StaticDropdown({displayName:"Disable Auto Start Emulation",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),security__desiredProfile:t.Number({displayName:"Security - Desired Profile",description:"The backend will try to set it 3 times at boot notification. If the charge point does not support it, the backend will use the highest security profile the charge point could use. </br> The following security profiles are supported: </br> 0: `No Authentication` </br> 1: `Unsecured Trasport with Basic Authentication (Plain-back Authentication)` - It does not include authentication for the CSMS, or measures to set up a secure communication channel.",required:!1}),modelId:t.Number({displayName:"Model Id",description:`The ID of the CP Model, if one is associated with the Charge Point. Can be set to null to remove the current CP Model associated with the Charge Point. Mind that on boot the charger reports the hardware model and it is automatically updated.
|
|
13
|
+
`,required:!1}),enableAutoFaultRecovery:t.StaticDropdown({displayName:"Enable Auto Fault Recovery",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),user__id:t.Number({displayName:"User - Id",description:"",required:!1}),user__automaticFirmwareUpdatesEnabled:t.StaticDropdown({displayName:"User - Automatic Firmware Updates Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),partner__id:t.Number({displayName:"Partner - Id",description:"",required:!1}),partner__contractId:t.Number({displayName:"Partner - Contract Id",description:"",required:!1}),partner__contactId:t.Number({displayName:"Partner - Contact Id",description:"",required:!1}),partner__corporateBillingAsDefault:t.StaticDropdown({displayName:"Partner - Corporate Billing As Default",description:"The partner's corporate billing would be used as a payment method by default, when a user who is invited to use the partner's corporate billing starts a session on the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),partner__accessType:t.StaticDropdown({displayName:"Partner - Access Type",description:"`private_view_private_use` - only users invited by the partner with the option to access private charge points could view this charge point on the map and use it.",required:!1,options:{options:[{label:"private_view_private_use",value:"private_view_private_use"},{label:"private_view_public_use",value:"private_view_public_use"},{label:"public_view_private_use",value:"public_view_private_use"}]}}),partner__notice:t.Array({displayName:"Partner - Notice",description:"The notice is only available if the charge point is of type `private` and the accessType is `public_view_private_use`.",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),utilityId:t.Number({displayName:"Utility Id",description:"",required:!1}),tags:t.Array({displayName:"Tags",description:"Tags can be used for filtering and grouping chargers by tag. When doing a PATCH input all tags that should be associated with the charge point. Omitting a tag would remove it from the charge point.",required:!1}),sharingCode:t.ShortText({displayName:"Sharing Code",description:"",required:!1}),enabledRandomisedDelay:t.StaticDropdown({displayName:"Enabled Randomised Delay",description:"Applicable only for personal charge points. For `public` and `private` charge points will be omitted",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),noticeId:t.Number({displayName:"Notice Id",description:"If both noticeId and partner.notice object are provided in the request the noticeId will be used to complete the request NOT the partner.notice object!",required:!1}),usesRenewableEnergy:t.StaticDropdown({displayName:"Uses Renewable Energy",description:`When enabled, if no electricity rate is assigned to the charge point any roaming session will be marked as using renewable energy.
|
|
14
|
+
The actual energy mix can be specified in an electricity rate, which can then be assigned to the charge point. In that case the energy mix will be provided for roaming sessions.
|
|
15
|
+
This information can be gathered from the utility provider or third-party platforms that provide this information to the public.
|
|
16
|
+
`,required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),ocppConnectedChargePointId:t.Number({displayName:"Ocpp Connected Charge Point Id",description:"The ID of the charge point that is connected to the backend and used by this charge point for OCPP communication. Required when the `communicationMode` is `via_ocpp_connected_charge_point`.\n",required:!1}),communicationMode:t.StaticDropdown({displayName:"Communication Mode",description:`This property is required!</br>
|
|
17
|
+
It obsoletes the \`managedByOperator\` property, which can still be used by older implementations, so neither is marked as required.</br>
|
|
18
|
+
Indicates how the charge point communicates with the backend.</br>
|
|
19
|
+
\`none\` - the charge point is not connected to the backend. The charge point can be displayed to users with instructions how to use it. An informational notice can be associated with the charge point using the \`noticeId\` property.</br>
|
|
20
|
+
\`direct_ocpp\` - the charge point is connected through OCPP and is actively being managed by the backend.</br>
|
|
21
|
+
\`via_ocpp_connected_charge_point\` - the charge point is a satellite of another charge point which communicates through OCPP and is identified by \`ocppConnectedChargePointId\`. The charge point is not actively managed, but inherits most of its properties from its master charge point. When creating this type of charge point, the following fields are not required and will not be used:</br>
|
|
22
|
+
- electricityRateId</br>
|
|
23
|
+
- networkType</br>
|
|
24
|
+
- capabilities</br>
|
|
25
|
+
- network</br>
|
|
26
|
+
- autoStartWithoutAuthorization</br>
|
|
27
|
+
- disableAutoStartEmulation</br>
|
|
28
|
+
- security</br>
|
|
29
|
+
- modelId</br>
|
|
30
|
+
- enableAutoFaultRecovery</br>
|
|
31
|
+
- utilityId</br>
|
|
32
|
+
- usesRenewableEnergy</br>
|
|
33
|
+
- enabledRandomisedDelay</br>
|
|
34
|
+
- integratedAt</br>
|
|
35
|
+
- manufacturedAt</br>
|
|
36
|
+
`,required:!1,options:{options:[{label:"none",value:"none"},{label:"direct_ocpp",value:"direct_ocpp"},{label:"via_ocpp_connected_charge_point",value:"via_ocpp_connected_charge_point"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","type","pin","locationId","chargingZoneId","electricityRateId","subscription","networkType","status","managedByOperator","externalId","network","capabilities","autoStartWithoutAuthorization","disableAutoStartEmulation","security","modelId","enableAutoFaultRecovery","user","partner","utilityId","tags","sharingCode","enabledRandomisedDelay","noticeId","usesRenewableEnergy","ocppConnectedChargePointId","communicationMode"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ap=s({auth:o,name:"chargePointsListing",displayName:"Resources - Charge Points - Charge Points Listing",description:"Get all charge points.",audience:"both",aiMetadata:{description:"List charge points across the account, with optional filters by type, network, location, user, partner, tag, model, external ID, and update window. Read-only and safe to repeat. Enable Paginate Results to fetch every match; to look up a single known charge point by ID use charge-point-read instead.",idempotent:!0},props:{filter__desiredSecurityProfileStatus:t.StaticDropdown({displayName:"Filter - Desired Security Profile Status",description:"The value of the desiredSecurityProfileStatus by which to filter",required:!1,options:{options:[{label:"applied",value:"applied"},{label:"pending",value:"pending"},{label:"rejected",value:"rejected"}]}}),filter__evsePhysicalReference:t.ShortText({displayName:"Filter - Evse Physical Reference",description:"Only list charge point, identified by evse identifier",required:!1}),filter__networkId:t.ShortText({displayName:"Filter - Network Id",description:"Only list charge point, identified by the NetworkId",required:!1}),filter__bootNotificationSerialNumber:t.ShortText({displayName:"Filter - Boot Notification Serial Number",description:"Only list charge points with last boot notification that had this charge_point_serial_number",required:!1}),filter__modelId:t.ShortText({displayName:"Filter - Model Id",description:"Only list charge points, identified by modelId",required:!1}),filter__vendorId:t.ShortText({displayName:"Filter - Vendor Id",description:"Only list charge points, identified by vendorId",required:!1}),filter__userId:t.ShortText({displayName:"Filter - User Id",description:"Only list charge points owned by a certain user",required:!1}),filter__partnerId:t.ShortText({displayName:"Filter - Partner Id",description:"Only list charge points owned by a certain partner",required:!1}),filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"Only list charge points with this access type",required:!1,options:{options:[{label:"public",value:"public"},{label:"private",value:"private"},{label:"personal",value:"personal"}]}}),filter__subOperatorId:t.ShortText({displayName:"Filter - Sub Operator Id",description:"Only list charge point for a given subOperator",required:!1}),filter__roaming:t.ShortText({displayName:"Filter - Roaming",description:"When true - returns only roaming charge points. When false - returns only local charge points.",required:!1}),filter__name:t.ShortText({displayName:"Filter - Name",description:"Exact charge point name",required:!1}),filter__locationId:t.ShortText({displayName:"Filter - Location Id",description:"Only list charge points assigned to the location",required:!1}),filter__circuitId:t.Number({displayName:"Filter - Circuit Id",description:"Only list charge points added to a certain DLM Circuit",required:!1}),filter__chargingZoneId:t.ShortText({displayName:"Filter - Charging Zone Id",description:"Only list charge point for a given Charging Zone",required:!1}),filter__managedByOperator:t.ShortText({displayName:"Filter - Managed By Operator",description:"Only list charge points that are managed by operator or not",required:!1}),filter__externalId:t.ShortText({displayName:"Filter - External Id",description:"Only list charge point, identified by the External ID of the charge point",required:!1}),filter__utilityId:t.Number({displayName:"Filter - Utility Id",description:"",required:!1}),filter__tag:t.ShortText({displayName:"Filter - Tag",description:"Only list charge points that have the specific tag assigned.",required:!1}),filter__sharingCode:t.ShortText({displayName:"Filter - Sharing Code",description:"Only list personal charge point with certain sharing code.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and before this datetime",required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"lastBootNotification",value:"lastBootNotification"},{label:"chargingProfile",value:"chargingProfile"},{label:"smartCharging",value:"smartCharging"},{label:"smartChargingPreferences",value:"smartChargingPreferences"},{label:"personalSmartChargingPreferences",value:"personalSmartChargingPreferences"},{label:"availablePersonalSmartChargingModes",value:"availablePersonalSmartChargingModes"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0",e.propsValue),a=p(e.propsValue,["filter","include","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Np=s({auth:o,name:"chargePointUpdate",displayName:"Resources - Charge Points - Charge Point Update",description:"Update a charge point.",audience:"both",aiMetadata:{description:"Update an existing charge point by its numeric ID, changing fields such as name, type (public/private/personal), status, location, network, capabilities, partner, and smart-charging settings. Only the fields you supply are modified. Note tags are replaced wholesale on PATCH: any tag you omit is removed from the charge point.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"lastBootNotification",value:"lastBootNotification"},{label:"chargingProfile",value:"chargingProfile"},{label:"smartCharging",value:"smartCharging"},{label:"smartChargingPreferences",value:"smartChargingPreferences"},{label:"personalSmartChargingPreferences",value:"personalSmartChargingPreferences"},{label:"availablePersonalSmartChargingModes",value:"availablePersonalSmartChargingModes"}]}}),name:t.ShortText({displayName:"Name",required:!1}),type:t.StaticDropdown({displayName:"Type",description:"`public` - a charge point visible on the map to everybody </br>\n`private` - by default hidden from the map and for private usage only - company and their employees for example. The visibility of the charge point could be managed in partner object, with the different options for accessType. </br>\n`personal` - the charge point could have a single owner only. The owner is set when the user claims the charger or with Actions / Change Owner. </br>\n",required:!1,options:{options:[{label:"private",value:"private"},{label:"public",value:"public"},{label:"personal",value:"personal"}]}}),pin:t.ShortText({displayName:"Pin",description:"Required if `accessType` is `personal`. The PIN should be provided in the mobile app when the charge point is claimed by a user. Should contain only numbers.\n",required:!1}),locationId:t.Number({displayName:"Location Id",description:"Required if `accessType` is `public` or `private`. NOT required if `accessType` is `personal`.\n",required:!1}),chargingZoneId:t.Number({displayName:"Charging Zone Id",required:!1}),electricityRateId:t.Number({displayName:"Electricity Rate Id",description:`If there is Electricity rate set to the Charge point the electricity cost for each charging session would be tracked. Dynamic electricity rates could not be selected, only ones created in the resource / electricity-rate.
|
|
37
|
+
`,required:!1}),subscription__required:t.StaticDropdown({displayName:"Subscription - Required",description:"Only for personal charge points. Require an active subscription to use the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),subscription__planIds:t.Array({displayName:"Subscription - Plan Ids",description:"Only for personal charge points. List of subscription plans for any of which the user should have an active subscription, to be able to use the charge point.",required:!1}),networkType:t.StaticDropdown({displayName:"Network Type",description:"",required:!1,options:{options:[{label:"cellular",value:"cellular"},{label:"ethernet",value:"ethernet"},{label:"wlan",value:"wlan"}]}}),status:t.StaticDropdown({displayName:"Status",description:"Shows the system status of the Charge Point.\n * `enabled` - the charge point is fully operative.\n * `disabled` - the charge point would not be shown on the map if it is a commercial public or commercial private with the relevant option for visibility nor could be claimed or found by ID if it is personal (home). </br>\n * `demo` - acts as a simulator so different setups could be tested.\n * `out of order` - the charge point is visible and shared with users, but a charging session\n",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"out of order",value:"out of order"},{label:"demo",value:"demo"}]}}),managedByOperator:t.StaticDropdown({displayName:"Managed By Operator",description:"This flag indicates whether the operator can actively manage the charge point. If the flag is set to 'false' the charge point can still be shown to users, but they can't request to start a session on it.\n\nDeprecated. Please use `communicationMode` instead. The `communicationMode` can only be set when creating a charge point.\n",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),externalId:t.ShortText({displayName:"External Id",required:!1}),network__id:t.ShortText({displayName:"Network - Id",description:"OCPP Identifier.",required:!1}),network__protocol:t.StaticDropdown({displayName:"Network - Protocol",description:"",required:!1,options:{options:[{label:"ocpp 1.5",value:"ocpp 1.5"},{label:"ocpp 1.6",value:"ocpp 1.6"},{label:"ocpp 1.6 soap",value:"ocpp 1.6 soap"},{label:"ocpp 2.0.1",value:"ocpp 2.0.1"}]}}),network__password:t.ShortText({displayName:"Network - Password",required:!1}),network__ip:t.ShortText({displayName:"Network - Ip",description:"Required for ocpp 1.5 (SOAP).",required:!1}),network__port:t.Number({displayName:"Network - Port",description:"Required for ocpp 1.5 (SOAP).",required:!1}),capabilities:t.StaticMultiSelectDropdown({displayName:"Capabilities",description:"`remote_start_stop_capable` - whether Remote start/stop is possible for the Charge Point </br>\n`meter_values` - whether the Charge Point should send meter updates to the system </br>\n`stop_transaction_on_ev_disconnect` - for ongoing sessions, when the cable is unplugged this should stop the session and if it is returned back a new session would be created. </br>\n`disregard_the_heartbeats` - only for OCPP 1.5 SOAP. Network status by default is updated based on the heartbeat messages. When enabled, the Charge Point would be always treated as available and its network status would not depend on heartbeat messages. </br>\n`display_messages` - charger has a display and it is enabled to display messages. This capability is enabled automatically when the charger reports the corresponding configuration key. When creating a charge point, the capability is ignored as it is automatically detected on boot. </br>\n",required:!1,options:{options:[{label:"remote_start_stop_capable",value:"remote_start_stop_capable"},{label:"meter_values",value:"meter_values"},{label:"stop_transaction_on_ev_disconnect",value:"stop_transaction_on_ev_disconnect"},{label:"disregard_the_heartbeats",value:"disregard_the_heartbeats"},{label:"display_messages",value:"display_messages"}]}}),autoStartWithoutAuthorization:t.StaticDropdown({displayName:"Auto Start Without Authorization",description:`When enabled the system would allow charging sessions initiated </br>
|
|
38
|
+
locally by the charge point assuming it is setup to work in auto-start / </br>
|
|
39
|
+
plug-and-charge mode. It would also automatically start a </br>
|
|
40
|
+
session with a remote start command if one is not already started by the charging stations a </br>
|
|
41
|
+
few seconds after a Preparing status is detected indicating that a vehicle is connected.
|
|
42
|
+
`,required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),disableAutoStartEmulation:t.StaticDropdown({displayName:"Disable Auto Start Emulation",description:`The Auto-start option above does 2 things: (1) it allows charging </br>
|
|
43
|
+
sessions started by the charge point assuming that it may be set up locally </br>
|
|
44
|
+
to auto-start charging when a vehicle is connected and (2) if the charging </br>
|
|
45
|
+
station doesnt start the session within a few seconds after the vehicles is </br>
|
|
46
|
+
connected the system sends a remote start command - which is to emulate auto-start </br>
|
|
47
|
+
charging. With this checkbox you can disable the emulation and rely </br>
|
|
48
|
+
entirely on the charging station to auto-start the charging. </br>
|
|
49
|
+
`,required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),security__desiredProfile:t.Number({displayName:"Security - Desired Profile",description:"The backend will try to set it 3 times at boot notification. If the charge point does not support it, the backend will use the highest security profile the charge point could use. </br> The following security profiles are supported: </br> 0: `No Authentication` </br> 1: `Unsecured Trasport with Basic Authentication (Plain-back Authentication)` - It does not include authentication for the CSMS, or measures to set up a secure communication channel.",required:!1}),modelId:t.Number({displayName:"Model Id",description:`The ID of the CP Model, if one is associated with the Charge Point. Can be set to null to remove the current CP Model associated with the Charge Point. Mind that on boot the charger reports the hardware model and it is automatically updated.
|
|
50
|
+
`,required:!1}),enableAutoFaultRecovery:t.StaticDropdown({displayName:"Enable Auto Fault Recovery",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),user__id:t.Number({displayName:"User - Id",required:!1}),user__automaticFirmwareUpdatesEnabled:t.StaticDropdown({displayName:"User - Automatic Firmware Updates Enabled",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),partner__id:t.Number({displayName:"Partner - Id",required:!1}),partner__contractId:t.Number({displayName:"Partner - Contract Id",description:"",required:!1}),partner__contactId:t.Number({displayName:"Partner - Contact Id",description:"",required:!1}),partner__corporateBillingAsDefault:t.StaticDropdown({displayName:"Partner - Corporate Billing As Default",description:"The partner's corporate billing would be used as a payment method by default, when a user who is invited to use the partner's corporate billing starts a session on the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),partner__accessType:t.StaticDropdown({displayName:"Partner - Access Type",description:"`private_view_private_use` - only users invited by the partner with the option to access private charge points could view this charge point on the map and use it.",required:!1,options:{options:[{label:"private_view_private_use",value:"private_view_private_use"},{label:"private_view_public_use",value:"private_view_public_use"},{label:"public_view_private_use",value:"public_view_private_use"}]}}),partner__notice:t.Array({displayName:"Partner - Notice",description:"The notice is only available if the charge point is of type `private` and the accessType is `public_view_private_use`.",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),utilityId:t.Number({displayName:"Utility Id",description:"",required:!1}),tags:t.Array({displayName:"Tags",description:"Tags can be used for filtering and grouping chargers by tag. When doing a PATCH input all tags that should be associated with the charge point. Omitting a tag would remove it from the charge point.",required:!1}),enabledRandomisedDelay:t.StaticDropdown({displayName:"Enabled Randomised Delay",description:"Applicable only for personal charge points. For `public` and `private` charge points will be omitted",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),noticeId:t.Number({displayName:"Notice Id",description:"If both noticeId and partner.notice object are provided in the request the noticeId will be used to complete the request NOT the partner.notice object!",required:!1}),usesRenewableEnergy:t.StaticDropdown({displayName:"Uses Renewable Energy",description:`When enabled, if no electricity rate is assigned to the charge point any roaming session will be marked as using renewable energy.
|
|
51
|
+
The actual energy mix can be specified in an electricity rate, which can then be assigned to the charge point. In that case the energy mix will be provided for roaming sessions.
|
|
52
|
+
This information can be gathered from the utility provider or third-party platforms that provide this information to the public.
|
|
53
|
+
`,required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),integratedAt:t.DateTime({displayName:"Integrated At",description:"ISO 8601 formatted date",required:!1}),manufacturedAt:t.DateTime({displayName:"Manufactured At",description:"ISO 8601 formatted date",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}",e.propsValue),a=p(e.propsValue,["include"]),i=m(e.propsValue,["name","type","pin","locationId","chargingZoneId","electricityRateId","subscription","networkType","status","managedByOperator","externalId","network","capabilities","autoStartWithoutAuthorization","disableAutoStartEmulation","security","modelId","enableAutoFaultRecovery","user","partner","utilityId","tags","enabledRandomisedDelay","noticeId","usesRenewableEnergy","integratedAt","manufacturedAt"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Sp=s({auth:o,name:"chargePointRead",displayName:"Resources - Charge Points - Charge Point Read",description:"Get a charge point.",audience:"both",aiMetadata:{description:"Fetch the full configuration of a single charge point by its numeric ID, optionally expanding related data such as smart charging or last boot notification via Include. Read-only and safe to repeat. For just the live availability use charge-point-status-read; to scan or filter many charge points use charge-points-listing.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"lastBootNotification",value:"lastBootNotification"},{label:"chargingProfile",value:"chargingProfile"},{label:"smartCharging",value:"smartCharging"},{label:"smartChargingPreferences",value:"smartChargingPreferences"},{label:"personalSmartChargingPreferences",value:"personalSmartChargingPreferences"},{label:"availablePersonalSmartChargingModes",value:"availablePersonalSmartChargingModes"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Tp=s({auth:o,name:"chargePointDelete",displayName:"Resources - Charge Points - Charge Point Delete",description:"Delete a charge point.",audience:"both",aiMetadata:{description:"Permanently delete a charge point by its numeric ID. Destructive and irreversible; once removed a repeat call will fail because the charge point no longer exists. Confirm the correct ID first, e.g. via charge-point-read.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"lastBootNotification",value:"lastBootNotification"},{label:"chargingProfile",value:"chargingProfile"},{label:"smartCharging",value:"smartCharging"},{label:"smartChargingPreferences",value:"smartChargingPreferences"},{label:"personalSmartChargingPreferences",value:"personalSmartChargingPreferences"},{label:"availablePersonalSmartChargingModes",value:"availablePersonalSmartChargingModes"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Cp=s({auth:o,name:"chargePointAvailablePersonalSmartChargingModesListing",displayName:"Resources - Charge Points - Available Personal Smart Charging Modes Listing",description:"Get all available personal smart charging modes.",audience:"both",aiMetadata:{description:"List the personal smart-charging modes that a given charge point supports, by charge point ID. Read-only and safe to retry. Use this to discover valid modes before setting them with the personal-smart-charging-preferences update action.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/available-personal-smart-charging-modes",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Rp=s({auth:o,name:"chargePointConfigurationsListing",displayName:"Resources - Charge Points - Charge Point Configurations Listing",description:"Get a charge point's all cached configurations.",audience:"both",aiMetadata:{description:"List the cached OCPP configuration keys for a charge point (by charge point ID), with optional filters by name, instance, component name, or EVSE ID. Read-only and safe to retry; returns the values already cached by the platform rather than re-reading the device.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),filter__name:t.ShortText({displayName:"Filter - Name",description:"Only list configuration keys identified by variable name",required:!1}),filter__instance:t.ShortText({displayName:"Filter - Instance",description:"Only list configuration keys identified by instance",required:!1}),filter__componentName:t.ShortText({displayName:"Filter - Component Name",description:"Only list configuration keys identified by component name",required:!1}),filter__evseId:t.Number({displayName:"Filter - Evse Id",description:"Only list configuration keys identified by EVSE ID",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/configurations",e.propsValue),a=p(e.propsValue,["filter"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var _p=s({auth:o,name:"chargePointConfigurationRead",displayName:"Resources - Charge Points - Charge Point Configuration Read",description:"Get a charge point's cached configuration for a single key.",audience:"both",aiMetadata:{description:"Read a single cached OCPP configuration value from a charge point by its ID and the configuration key name. Read-only and idempotent; returns the cached value rather than querying the device live. Use when you need one specific configuration setting for a known charge point.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),key:t.ShortText({displayName:"Key",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/configurations/{key}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var wp=s({auth:o,name:"chargePointConfigurationUpdate",displayName:"Resources - Charge Points - Charge Point Configuration Update",description:"Update a charge point's configuration. The configuration is applied directly to the charge point and you will get response code 406 in case the application fails.",audience:"both",aiMetadata:{description:"Set a single OCPP configuration key on a charge point, identified by charge point ID and configuration key. The new value is pushed live to the hardware, so this is a real mutation (not idempotent-safe to blindly retry) and fails with 406 if the device rejects it. A value is required for standard OCPP keys.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),key:t.ShortText({displayName:"Key",required:!0}),value:t.ShortText({displayName:"Value",description:'This field is required when the configuration key is one of the standard OCPP keys, as defined in the OCPP documentation under "Standard Configuration Key Names & Values".',required:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/configurations/{key}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["value"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Ip=s({auth:o,name:"chargePointEvseCreate",displayName:"Resources - Charge Points - Charge Point Evse Create",description:"Create new EVSE within the Charge Point.",audience:"both",aiMetadata:{description:"Add a new EVSE to a charge point, given the charge point ID, a physical reference, current type (AC/DC), network ID, and status, plus optional power and tariff settings. This is a mutating create that adds an EVSE each call, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),physicalReference:t.ShortText({displayName:"Physical Reference",description:"The identifier that is presented to the users, so they can identify the EVSE at the location.",required:!0}),currentType:t.StaticDropdown({displayName:"Current Type",description:`Type of current available on the EVSE:
|
|
54
|
+
- **ac**: Alternating Current (AC) charging
|
|
55
|
+
- **dc**: Direct Current (DC) fast charging
|
|
56
|
+
`,required:!0,options:{options:[{label:"ac",value:"ac"},{label:"dc",value:"dc"}]}}),label:t.ShortText({displayName:"Label",description:"The EVSE label will be exposed and visualized in the mobile application",required:!1}),networkId:t.ShortText({displayName:"Network Id",description:"The OCPP evse identifier (should be consecutive numbers starting from 1)",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"For roaming EVSEs the status can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"out of order",value:"out of order"}]}}),midMeterCertificationEndYear:t.Number({displayName:"Mid Meter Certification End Year",description:"The mid meter certification end year.",required:!1}),tariffGroupId:t.Number({displayName:"Tariff Group Id",description:"The ID of the tariff group attached to the EVSE. If the EVSE is not roaming and tariffGroupId is not specified, the default (free) tariff will be assigned. For roaming EVSEs the Tariff Group can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!1}),allowsReservation:t.StaticDropdown({displayName:"Allows Reservation",description:"Manages whether reservations are allowed on this EVSE. Requires the Reservations to be activated for the system in order to enable for the EVSE.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),bookingEnabled:t.StaticDropdown({displayName:"Booking Enabled",description:"Indicates if the EVSE can be booked. Requires the Bookings to be activated for the operator and automatically enables allowsReservation when set to true.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),powerOptions__maxPower:t.Number({displayName:"Power Options - Max Power",description:"in Wh.",required:!1}),powerOptions__maxVoltage:t.StaticDropdown({displayName:"Power Options - Max Voltage",description:"The maxVoltage of a charge point can fluctuate. Hence, when creating a charge point in the system, the maxVoltage is given as a range. For OCPI purposes it maps as follows: 220-240 = 230 110-130 = 120 400 = 400 380 = 380.",required:!1,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),powerOptions__maxAmperage:t.Number({displayName:"Power Options - Max Amperage",description:"",required:!1}),powerOptions__phases:t.StaticDropdown({displayName:"Power Options - Phases",description:"",required:!1,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),powerOptions__phaseRotation:t.StaticDropdown({displayName:"Power Options - Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!1,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),powerOptions__connectedPhase:t.StaticDropdown({displayName:"Power Options - Connected Phase",description:"Specifies the active line conductors used in the circuit. - `L1_L2` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L2_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L2` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L3` - Valid when `phases` = `single_phase` in electrical configuration `star`.",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["physicalReference","currentType","label","networkId","status","midMeterCertificationEndYear","tariffGroupId","allowsReservation","bookingEnabled","powerOptions","externalId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ep=s({auth:o,name:"chargePointEvsesListing",displayName:"Resources - Charge Points - Charge Point Evses Listing",description:"Get all EVSEs of the Charge Point.",audience:"both",aiMetadata:{description:"List the EVSEs (charging units) belonging to a given charge point, optionally including related charging profile or connector data. Read-only and idempotent; enable Paginate Results to fetch every page, or leave it off for a single page (up to per_page, max 100). Use to discover an EVSE ID before updating it.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses",e.propsValue),a=p(e.propsValue,["include","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Dp=s({auth:o,name:"chargePointEvseUpdate",displayName:"Resources - Charge Points - Charge Point Evse Update",description:"Update an EVSE within the Charge Point.",audience:"both",aiMetadata:{description:"Update an individual EVSE within a charge point (by charge point ID and EVSE ID), changing fields such as physical reference, current type, label, status, tariff group, reservation/booking flags, and power options. Only supplied fields change; idempotent on the given values. Note roaming EVSEs only accept status/tariff changes when manual EVSE management is enabled for the CPO.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"}]}}),physicalReference:t.ShortText({displayName:"Physical Reference",description:"The identifier that is presented to the users, so they can identify the EVSE at the location.",required:!1}),currentType:t.StaticDropdown({displayName:"Current Type",description:`Type of current available on the EVSE:
|
|
57
|
+
- **ac**: Alternating Current (AC) charging
|
|
58
|
+
- **dc**: Direct Current (DC) fast charging
|
|
59
|
+
`,required:!1,options:{options:[{label:"ac",value:"ac"},{label:"dc",value:"dc"}]}}),label:t.ShortText({displayName:"Label",description:"The EVSE label will be exposed and visualized in the mobile application",required:!1}),networkId:t.ShortText({displayName:"Network Id",description:"The OCPP evse identifier (should be consecutive numbers starting from 1)",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"For roaming EVSEs the status can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"out of order",value:"out of order"}]}}),midMeterCertificationEndYear:t.Number({displayName:"Mid Meter Certification End Year",description:"The mid meter certification end year.",required:!1}),tariffGroupId:t.Number({displayName:"Tariff Group Id",description:"The ID of the tariff group attached to the EVSE. If the EVSE is not roaming and tariffGroupId is not specified, the default (free) tariff will be assigned. For roaming EVSEs the Tariff Group can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!1}),allowsReservation:t.StaticDropdown({displayName:"Allows Reservation",description:"Manages whether reservations are allowed on this EVSE. Requires the Reservations to be activated for the system in order to enable for the EVSE.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),bookingEnabled:t.StaticDropdown({displayName:"Booking Enabled",description:"Indicates if the EVSE can be booked. Requires the Bookings to be activated for the operator and automatically enables allowsReservation when set to true.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),powerOptions__maxPower:t.Number({displayName:"Power Options - Max Power",description:"in Wh.",required:!1}),powerOptions__maxVoltage:t.StaticDropdown({displayName:"Power Options - Max Voltage",description:"The maxVoltage of a charge point can fluctuate. Hence, when creating a charge point in the system, the maxVoltage is given as a range. For OCPI purposes it maps as follows: 220-240 = 230 110-130 = 120 400 = 400 380 = 380.",required:!1,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),powerOptions__maxAmperage:t.Number({displayName:"Power Options - Max Amperage",description:"",required:!1}),powerOptions__phases:t.StaticDropdown({displayName:"Power Options - Phases",description:"",required:!1,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),powerOptions__phaseRotation:t.StaticDropdown({displayName:"Power Options - Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!1,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),powerOptions__connectedPhase:t.StaticDropdown({displayName:"Power Options - Connected Phase",description:"Specifies the active line conductors used in the circuit. - `L1_L2` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L2_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L2` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L3` - Valid when `phases` = `single_phase` in electrical configuration `star`.",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}}),externalId:t.ShortText({displayName:"External Id",required:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}",e.propsValue),a=p(e.propsValue,["include"]),i=m(e.propsValue,["physicalReference","currentType","label","networkId","status","midMeterCertificationEndYear","tariffGroupId","allowsReservation","bookingEnabled","powerOptions","externalId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var xp=s({auth:o,name:"chargePointEvseRead",displayName:"Resources - Charge Points - Charge Point Evse Read",description:"Get an EVSE from a Charge Point.",audience:"both",aiMetadata:{description:"Fetch a single EVSE on a charge point by charge point ID and EVSE ID, optionally including its charging profile and connectors. Read-only and safe to retry. Use when you already know the EVSE ID rather than listing all EVSEs.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Mp=s({auth:o,name:"chargePointEvseDelete",displayName:"Resources - Charge Points - Charge Point Evse Delete",description:"Delete an EVSE.",audience:"both",aiMetadata:{description:"Permanently delete an EVSE from a charge point, identified by charge point ID and EVSE ID. Destructive and not reversible; a repeat call on an already-deleted EVSE will fail rather than succeed silently.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var kp=s({auth:o,name:"chargePointEvseConnectorsListing",displayName:"Resources - Charge Points - Charge Point Evse Connectors Listing",description:"Get a charge point evse's all connectors.",audience:"both",aiMetadata:{description:"List all connectors belonging to a specific charge point EVSE, identified by charge point ID and EVSE ID. Read-only and safe to retry. Use the connector-read action when you already know a single connector ID.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}/connectors",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var qp=s({auth:o,name:"chargePointEvseConnectorCreate",displayName:"Resources - Charge Points - Charge Point Evse Connector Create",description:"Create a charge point evse's connector.",audience:"both",aiMetadata:{description:"Add a new connector to a charge point EVSE, given the charge point ID, EVSE ID, and a required connector type (plus optional format and status). This is a mutating create that adds a connector each call, so it is not idempotent; use the connector-update action to change an existing connector.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),type:t.StaticDropdown({displayName:"Type",description:`Type of connector available on the EVSE:
|
|
60
|
+
- **type1**: Type 1 connector (SAE J1772 AC)
|
|
61
|
+
- **type2**: Type 2 connector (IEC 62196-2 AC)
|
|
62
|
+
- **type3**: Type 3 connector (IEC 62196-2 AC)
|
|
63
|
+
- **chademo**: CHAdeMO DC fast charging
|
|
64
|
+
- **ccs1**: Combined Charging System 1 (CCS1/Combo 1)
|
|
65
|
+
- **ccs2**: Combined Charging System 2 (CCS2/Combo 2)
|
|
66
|
+
- **schuko**: Standard European household socket
|
|
67
|
+
- **nacs**: North American Charging Standard (Tesla)
|
|
68
|
+
- **cee16**: CEE 16A industrial connector
|
|
69
|
+
- **cee32**: CEE 32A industrial connector
|
|
70
|
+
- **j1772**: SAE J1772 connector
|
|
71
|
+
- **inductive**: Inductive/wireless charging
|
|
72
|
+
- **nema-5-20**: Domestic M NEMA 5-20 Socket
|
|
73
|
+
- **type-e-french**: French Type E socket
|
|
74
|
+
- **type-g-british**: British Type G socket
|
|
75
|
+
- **type-j-swiss**: Swiss Type J socket
|
|
76
|
+
- **avcon**: AVCON connector (Australian standard)
|
|
77
|
+
- **gb-t-ac**: GB/T AC connector (Chinese standard)
|
|
78
|
+
- **gb-t-dc**: GB/T DC connector (Chinese standard)
|
|
79
|
+
- **chaoji**: ChaoJi (CHAdeMO 3.0)
|
|
80
|
+
- **nema-6-30**: NEMA 6-30
|
|
81
|
+
- **nema-6-50**: NEMA 6-50
|
|
82
|
+
`,required:!0,options:{options:[{label:"type1",value:"type1"},{label:"type2",value:"type2"},{label:"type3",value:"type3"},{label:"chademo",value:"chademo"},{label:"ccs1",value:"ccs1"},{label:"ccs2",value:"ccs2"},{label:"schuko",value:"schuko"},{label:"nacs",value:"nacs"},{label:"cee16",value:"cee16"},{label:"cee32",value:"cee32"},{label:"j1772",value:"j1772"},{label:"inductive",value:"inductive"},{label:"nema-5-20",value:"nema-5-20"},{label:"type-e-french",value:"type-e-french"},{label:"type-g-british",value:"type-g-british"},{label:"type-j-swiss",value:"type-j-swiss"},{label:"avcon",value:"avcon"},{label:"gb-t-ac",value:"gb-t-ac"},{label:"gb-t-dc",value:"gb-t-dc"},{label:"chaoji",value:"chaoji"},{label:"nema-6-30",value:"nema-6-30"},{label:"nema-6-50",value:"nema-6-50"}]}}),format:t.StaticDropdown({displayName:"Format",required:!1,options:{options:[{label:"socket",value:"socket"},{label:"cable",value:"cable"}]}}),status:t.StaticDropdown({displayName:"Status",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}/connectors",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["type","format","status"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Op=s({auth:o,name:"chargePointEvseConnectorRead",displayName:"Resources - Charge Points - Charge Point Evse Connector Read",description:"Get a charge point evse's connector.",audience:"both",aiMetadata:{description:"Fetch a single connector on a charge point EVSE by charge point ID, EVSE ID, and connector ID. Read-only and safe to retry. Use when you already know the connector ID; to enumerate all connectors of an EVSE use the connectors listing action.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),connector:t.Number({displayName:"Connector",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}/connectors/{connector}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Lp=s({auth:o,name:"chargePointEvseConnectorUpdate",displayName:"Resources - Charge Points - Charge Point Evse Connector Update",description:"Update a charge point evse's connector.",audience:"both",aiMetadata:{description:"Update an existing connector on a charge point EVSE (by charge point ID, EVSE ID, and connector ID), changing its type, format, or status. Only the fields you supply are changed. Use the connector-create action to add a new connector rather than to modify one.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),connector:t.Number({displayName:"Connector",required:!0}),type:t.StaticDropdown({displayName:"Type",description:`Type of connector available on the EVSE:
|
|
83
|
+
- **type1**: Type 1 connector (SAE J1772 AC)
|
|
84
|
+
- **type2**: Type 2 connector (IEC 62196-2 AC)
|
|
85
|
+
- **type3**: Type 3 connector (IEC 62196-2 AC)
|
|
86
|
+
- **chademo**: CHAdeMO DC fast charging
|
|
87
|
+
- **ccs1**: Combined Charging System 1 (CCS1/Combo 1)
|
|
88
|
+
- **ccs2**: Combined Charging System 2 (CCS2/Combo 2)
|
|
89
|
+
- **schuko**: Standard European household socket
|
|
90
|
+
- **nacs**: North American Charging Standard (Tesla)
|
|
91
|
+
- **cee16**: CEE 16A industrial connector
|
|
92
|
+
- **cee32**: CEE 32A industrial connector
|
|
93
|
+
- **j1772**: SAE J1772 connector
|
|
94
|
+
- **inductive**: Inductive/wireless charging
|
|
95
|
+
- **nema-5-20**: Domestic M NEMA 5-20 Socket
|
|
96
|
+
- **type-e-french**: French Type E socket
|
|
97
|
+
- **type-g-british**: British Type G socket
|
|
98
|
+
- **type-j-swiss**: Swiss Type J socket
|
|
99
|
+
- **avcon**: AVCON connector (Australian standard)
|
|
100
|
+
- **gb-t-ac**: GB/T AC connector (Chinese standard)
|
|
101
|
+
- **gb-t-dc**: GB/T DC connector (Chinese standard)
|
|
102
|
+
- **chaoji**: ChaoJi (CHAdeMO 3.0)
|
|
103
|
+
- **nema-6-30**: NEMA 6-30
|
|
104
|
+
- **nema-6-50**: NEMA 6-50
|
|
105
|
+
`,required:!1,options:{options:[{label:"type1",value:"type1"},{label:"type2",value:"type2"},{label:"type3",value:"type3"},{label:"chademo",value:"chademo"},{label:"ccs1",value:"ccs1"},{label:"ccs2",value:"ccs2"},{label:"schuko",value:"schuko"},{label:"nacs",value:"nacs"},{label:"cee16",value:"cee16"},{label:"cee32",value:"cee32"},{label:"j1772",value:"j1772"},{label:"inductive",value:"inductive"},{label:"nema-5-20",value:"nema-5-20"},{label:"type-e-french",value:"type-e-french"},{label:"type-g-british",value:"type-g-british"},{label:"type-j-swiss",value:"type-j-swiss"},{label:"avcon",value:"avcon"},{label:"gb-t-ac",value:"gb-t-ac"},{label:"gb-t-dc",value:"gb-t-dc"},{label:"chaoji",value:"chaoji"},{label:"nema-6-30",value:"nema-6-30"},{label:"nema-6-50",value:"nema-6-50"}]}}),format:t.StaticDropdown({displayName:"Format",required:!1,options:{options:[{label:"socket",value:"socket"},{label:"cable",value:"cable"}]}}),status:t.StaticDropdown({displayName:"Status",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}/connectors/{connector}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["type","format","status"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Up=s({auth:o,name:"chargePointEvseConnectorDelete",displayName:"Resources - Charge Points - Charge Point Evse Connector Delete",description:"Delete a charge point evse's connector.",audience:"both",aiMetadata:{description:"Permanently delete a connector from a charge point EVSE, identified by charge point ID, EVSE ID, and connector ID. Destructive and not reversible; repeating on an already-deleted connector will fail.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),evse:t.Number({displayName:"Evse",required:!0}),connector:t.Number({displayName:"Connector",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/evses/{evse}/connectors/{connector}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Vp=s({auth:o,name:"listChargePointHardwareStatusLogs",displayName:"Resources - Charge Points - List Charge Point Hardware Status Logs",description:"Get paginated list of hardware status logs for a charge point with optional date filtering.",audience:"both",aiMetadata:{description:"Retrieve historical hardware status log entries for a charge point, optionally filtered to a created-after/created-before window. Read-only and safe to retry. Use this for a time range or full history; for only the single most recent entry use the latest-hardware-status-log action instead.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"ISO 8601 formatted date. Only list status logs created after this datetime",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"ISO 8601 formatted date. Only list status logs created before this datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/hardware-status-logs",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var zp=s({auth:o,name:"getChargePointLatestHardwareStatusLog",displayName:"Resources - Charge Points - Get Charge Point Latest Hardware Status Log",description:"Get the latest hardware status log entry for a charge point.",audience:"both",aiMetadata:{description:"Fetch only the single most recent hardware status log entry for a charge point, by charge point ID. Read-only and safe to retry. Use this for a current-state snapshot; to get a time range or full history use the hardware-status-logs listing action instead.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/latest-hardware-status-log",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Fp=s({auth:o,name:"getChargePointLatestNetworkStatusLog",displayName:"Resources - Charge Points - Get Charge Point Latest Network Status Log",description:"Get the latest network status log entry for a charge point.",audience:"both",aiMetadata:{description:"Fetch the single most recent network (connectivity) status log entry for a charge point, by charge point ID. Read-only and safe to retry. This covers network/online status; use the latest-hardware-status-log action for the hardware/OCPP status snapshot.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/latest-network-status-log",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Bp=s({auth:o,name:"listChargePointNetworkStatusLogs",displayName:"Resources - Charge Points - List Charge Point Network Status Logs",description:"Get paginated list of network status logs for a charge point with optional date filtering.",audience:"both",aiMetadata:{description:"List the network (online/offline) status log entries for a given charge point, optionally bounded by a created-after/created-before date range. Read-only and idempotent; enable Paginate Results to fetch every page, or leave it off for a single page (up to per_page, max 100). Use to audit connectivity history for one charge point.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"ISO 8601 formatted date. Only list status logs created after this datetime",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"ISO 8601 formatted date. Only list status logs created before this datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/network-status-logs",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var $p=s({auth:o,name:"chargePointPersonalSmartChargingPreferencesRead",displayName:"Resources - Charge Points - Charge Point Personal Smart Charging Preferences Read",description:"Get personal smart charging preferences of the charge point.",audience:"both",aiMetadata:{description:"Read the currently configured personal smart-charging preferences for a charge point, by charge point ID. Read-only and safe to retry. Use the matching update action to change these preferences, and the available-modes listing to see which modes can be set.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/personal-smart-charging-preferences",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Gp=s({auth:o,name:"personalSmartChargingPreferencesUpdate",displayName:"Resources - Charge Points - Personal Smart Charging Preferences Update",description:"Update personal smart charging preferences.",audience:"both",aiMetadata:{description:"Set the personal smart-charging preferences for a charge point (by charge point ID). Pick the variant type first (e.g. user-controlled schedule, solar, Octopus Agile/Go, NordPool, electricity rate, or disabled), which determines the required preference fields. This overwrites the current preferences and applies them to the device, so it is a mutating call.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0}),requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"User controlled schedule",value:"1"},{label:"Solar",value:"2"},{label:"Octopus Agile",value:"3"},{label:"Octopus Go",value:"4"},{label:"Energi Elspot",value:"5"},{label:"NordPool",value:"6"},{label:"Electricity rate",value:"7"},{label:"Disabled",value:"8"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"user_controlled_schedule",value:"user_controlled_schedule"}]}}),startTime:t.ShortText({displayName:"Preferences - Start Time",description:"Start of preferred charging window which will be applied by default when no week day is chosen. Applicable for schedule mode.",required:!0}),endTime:t.ShortText({displayName:"Preferences - End Time",description:"End of preferred charging window which will be applied by default when no week day is chosen. Applicable for schedule mode.",required:!0}),minTargetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Min Target Charge Kwh",description:"",required:!1}),maxTargetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Max Target Charge Kwh",description:"",required:!1}),priceOffPeak:t.Number({displayName:"Preferences - Track Electricity Costs - Price Off Peak",description:"",required:!1}),pricePeak:t.Number({displayName:"Preferences - Track Electricity Costs - Price Peak",description:"",required:!1}),weekDays:t.Array({displayName:"Preferences - Week Days",description:"",required:!1,properties:{days:t.StaticMultiSelectDropdown({displayName:"Days",description:"Specify the day(s) for which the schedule will apply.",required:!0,options:{options:[{label:"monday",value:"monday"},{label:"tuesday",value:"tuesday"},{label:"wednesday",value:"wednesday"},{label:"thursday",value:"thursday"},{label:"friday",value:"friday"},{label:"saturday",value:"saturday"},{label:"sunday",value:"sunday"}]}}),startTime:t.ShortText({displayName:"Start Time",description:"Start of preferred charging window for chosen day(s).",required:!0}),endTime:t.ShortText({displayName:"End Time",description:"End of preferred charging window for chosen day(s).",required:!0})}})},2:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"solar",value:"solar"}]}}),maxCurrentFromGrid:t.Number({displayName:"Preferences - Max Current From Grid",description:"The max current that can be taken from grid to ensure a stable charging process.Recommended options to use 0, 6, 8, 10, 12.",required:!0}),solarStableTime:t.Number({displayName:"Preferences - Solar Stable Time",description:"Shorter time means more precise solar availability detection but also more frequent charging on/off switching.",required:!0})},3:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"octopus_agile",value:"octopus_agile"}]}}),integrationId:t.Number({displayName:"Integration Id",description:"",required:!0}),applicableTaxId:t.Number({displayName:"Preferences - Applicable Tax Id",description:"The ID of the applicable tax rate. Used to calculate correctly electricity costs shown to the user.",required:!0}),departureTime:t.ShortText({displayName:"Preferences - Target Charge - Departure Time",description:"",required:!1}),preconditioningTime:t.Number({displayName:"Preferences - Target Charge - Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),minTargetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Min Target Charge Kwh",description:"",required:!1}),maxTargetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Max Target Charge Kwh",description:"",required:!1}),postCode:t.ShortText({displayName:"Preferences - Post Code",description:"User's postcode. Used to determine the applicable tariff.",required:!0}),priceThreshold:t.Number({displayName:"Preferences - Price Threshold",description:"The price per kWh threshold below which charging would commence.",required:!0})},4:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"octopus_go",value:"octopus_go"}]}}),integrationId:t.Number({displayName:"Integration Id",description:"",required:!0}),applicableTaxId:t.Number({displayName:"Preferences - Applicable Tax Id",description:"The ID of the applicable tax rate. Used to calculate correctly electricity costs shown to the user.",required:!0}),departureTime:t.ShortText({displayName:"Preferences - Target Charge - Departure Time",description:"",required:!1}),preconditioningTime:t.Number({displayName:"Preferences - Target Charge - Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),minTargetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Min Target Charge Kwh",description:"",required:!1}),maxTargetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Max Target Charge Kwh",description:"",required:!1}),postCode:t.ShortText({displayName:"Preferences - Post Code",description:"User's postcode. Used to determine the applicable tariff.",required:!0}),priceThreshold:t.Number({displayName:"Preferences - Price Threshold",description:"The price per kWh threshold below which charging would commence.",required:!1})},5:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"energi_elspot",value:"energi_elspot"}]}}),integrationId:t.Number({displayName:"Integration Id",description:"",required:!1}),location:t.StaticDropdown({displayName:"Preferences - Location",description:"The price region based on energi elspot prices api.",required:!0,options:{options:[{label:"GB1",value:"GB1"}]}}),departureTime:t.ShortText({displayName:"Preferences - Target Charge - Departure Time",description:"",required:!0}),preconditioningTime:t.Number({displayName:"Preferences - Target Charge - Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),targetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Target Charge Kwh",description:"",required:!0})},6:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"nordpool",value:"nordpool"}]}}),integrationId:t.Number({displayName:"Integration Id",description:"",required:!1}),location:t.StaticDropdown({displayName:"Preferences - Location",description:"The price region based on energi elspot prices api.",required:!0,options:{options:[{label:"GB1",value:"GB1"}]}}),departureTime:t.ShortText({displayName:"Preferences - Target Charge - Departure Time",description:"",required:!0}),preconditioningTime:t.Number({displayName:"Preferences - Target Charge - Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),targetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Target Charge Kwh",description:"",required:!0})},7:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Enable or disable the smart charging from owner preferences.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"charger_electricity_rate",value:"charger_electricity_rate"}]}}),electricityRateId:t.Number({displayName:"Electricity Rate Id",description:"",required:!0}),solar:t.StaticDropdown({displayName:"Preferences - Solar",description:"This boolean adds solar mode control for specific brands of chargers that are supported. E.g.: Some chargers support special keys in the charging profile which enables solar charging mode.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),startTime:t.ShortText({displayName:"Preferences - Start Time",description:"Start of preferred charging window which will be applied by default when no week day is chosen.",required:!0}),endTime:t.ShortText({displayName:"Preferences - End Time",description:"End of preferred charging window which will be applied by default when no week day is chosen.",required:!0}),departureTime:t.ShortText({displayName:"Preferences - Target Charge - Departure Time",description:"",required:!0}),preconditioningTime:t.Number({displayName:"Preferences - Target Charge - Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),targetChargeKwh:t.Number({displayName:"Preferences - Target Charge - Target Charge Kwh",description:"The desired charge energy which will be achieved with the most optimal price.",required:!0}),weekDays:t.Array({displayName:"Preferences - Week Days",description:"",required:!1,properties:{days:t.StaticMultiSelectDropdown({displayName:"Days",description:"Specify the day(s) for which the schedule will apply.",required:!0,options:{options:[{label:"monday",value:"monday"},{label:"tuesday",value:"tuesday"},{label:"wednesday",value:"wednesday"},{label:"thursday",value:"thursday"},{label:"friday",value:"friday"},{label:"saturday",value:"saturday"},{label:"sunday",value:"sunday"}]}}),startTime:t.ShortText({displayName:"Start Time",description:"Start of preferred charging window for chosen day(s).",required:!0}),endTime:t.ShortText({displayName:"End Time",description:"End of preferred charging window for chosen day(s).",required:!0})}})},8:{enabled:t.StaticDropdown({displayName:"Enabled",description:"Disable the smart charging from owner preferences.",required:!0,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/personal-smart-charging-preferences",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","enabled","type","startTime","endTime","minTargetChargeKwh","maxTargetChargeKwh","priceOffPeak","pricePeak","weekDays","maxCurrentFromGrid","solarStableTime","integrationId","applicableTaxId","departureTime","preconditioningTime","postCode","priceThreshold","location","targetChargeKwh","electricityRateId","solar"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Hp=s({auth:o,name:"chargePointSharedPartnersListing",displayName:"Resources - Charge Points - Charge Point Shared Partners Listing",description:"Get all Shared Partners of the Charge Point.",audience:"both",aiMetadata:{description:"List the partners a specific charge point is shared with, identified by its numeric charge point ID. Read-only and safe to retry; enable pagination to fetch all results across pages rather than a single page.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",description:"",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/shared-partners",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Wp=s({auth:o,name:"chargePointSharedPartnersSync",displayName:"Resources - Charge Points - Charge Point Shared Partners Sync",description:'Set the Shared Partners of the Charge Point. Attach Shared Partners within the Charge Point. The charge point must have an owner associated and its "access_type" must be "private".',audience:"both",aiMetadata:{description:'Replace the full set of shared partners on a private charge point with the provided partner IDs (a sync, not an append). The charge point must already have an owner and access_type "private". Repeating the same partner list is idempotent, but omitted partners are removed, so always send the complete desired list.',idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),partnerIds:t.Array({displayName:"Partner Ids",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/shared-partners",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["partnerIds"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var Kp=s({auth:o,name:"chargePointShareCreate",displayName:"Resources - Charge Points - Charge Point Share Create",description:"Create new Share within the Charge Point.",audience:"both",aiMetadata:{description:"Grant a user access to a charge point by creating a new share, given the charge point ID and the user ID. This is a mutating create that adds a new share each call, so it is not idempotent.",idempotent:!1},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),userId:t.Number({displayName:"User Id",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/shares",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["userId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Zp=s({auth:o,name:"chargePointSharesListing",displayName:"Resources - Charge Points - Charge Point Shares Listing",description:"Get all Shares of the Charge Point.",audience:"both",aiMetadata:{description:"List the shares (shared-access grants) for a given charge point. Read-only and idempotent; enable Paginate Results to fetch every page, or leave it off for a single page (up to per_page, max 100). Use to discover a share ID before deleting a specific share.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/shares",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var jp=s({auth:o,name:"chargePointShareRead",displayName:"Resources - Charge Points - Charge Point Share Read",description:"Get an Share from a Charge Point.",audience:"both",aiMetadata:{description:"Fetch a single charge point share by its charge point ID and share ID. Read-only and safe to retry. Use when you already know the share ID; to enumerate who a charge point is shared with use the shared-partners listing action instead.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),share:t.Number({displayName:"Share",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/shares/{share}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Qp=s({auth:o,name:"charegPointShareDelete",displayName:"Resources - Charge Points - Chareg Point Share Delete",description:"Delete an Share.",audience:"both",aiMetadata:{description:"Permanently remove a share from a charge point, identified by the charge point ID and the share ID, revoking that shared access. Destructive and irreversible; effectively idempotent since deleting an already-removed share has no further effect, though it may return a not-found error. Confirm both IDs before calling.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),share:t.Number({displayName:"Share",required:!0})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/shares/{share}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Yp=s({auth:o,name:"chargePointSmartChargingUpdate",displayName:"Resources - Charge Points - Charge Point Smart Charging Update",description:"Update smart charging details for the charge point.",audience:"both",aiMetadata:{description:"Configure a charge point's smart charging settings, selecting a mode (tod time-of-day, dynamic, user_schedule, or disabled) that determines which electrical and scheduling fields apply. Replaces the existing smart charging configuration for the charge point, so re-sending the same payload is idempotent; required fields differ per mode.",idempotent:!0},props:{chargePoint:t.Number({displayName:"Charge Point",required:!0}),mode:t.StaticDropdown({displayName:"Mode",description:"Select the mode",required:!0,options:{options:[{label:"tod",value:"tod"},{label:"dynamic",value:"dynamic"},{label:"user_schedule",value:"user_schedule"},{label:"disabled",value:"disabled"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["mode"],props:c(async({mode:e})=>{if(!e)return{};let r={tod:{defaultChargePointMaxCurrent:t.Number({displayName:"Default Charge Point Max Current",description:"In amps. The max current would be used in the algorithm for the smart charging and wherever there is not a max current explicitly set.",required:!0}),periods:t.Array({displayName:"Periods",description:"The time period must be the same for every single day through the week and should be always 60 min. The `startAt` and `endAt` must comply with this restriction.",required:!1,properties:{weekDay:t.StaticDropdown({displayName:"Week Day",description:"Specify the day for which the pricing would be valid.",required:!0,options:{options:[{label:"all",value:"all"},{label:"mon",value:"mon"},{label:"tue",value:"tue"},{label:"wed",value:"wed"},{label:"thu",value:"thu"},{label:"fri",value:"fri"},{label:"sat",value:"sat"},{label:"sun",value:"sun"}]}}),elements:t.Json({displayName:"Elements",defaultValue:{type:"array",items:{type:"object",required:["startAt","endAt"],properties:{startAt:{type:"string",format:"time",example:"00:00",description:`The 24-hour format should be used.</br>
|
|
106
|
+
Example '00:00'
|
|
107
|
+
`},endAt:{type:"string",format:"time",example:"00:00",description:`The 24-hour format should be used.</br>
|
|
108
|
+
Example '01:00'
|
|
109
|
+
`},maxCurrent:{type:"number",nullable:!0}}}},required:!0})}}),preconditioningTime:t.Number({displayName:"Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),minCurrent:t.Number({displayName:"Min Current",description:"minCurrent is always REQUIRED for `user_controlled_schedule`.",required:!1}),enableKeepAwake:t.StaticDropdown({displayName:"Enable Keep Awake",description:"For personal charge points. Keep the car awake during scheduled periods by continuously charging at a low current / power.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),maxVoltage:t.StaticDropdown({displayName:"Max Voltage",description:"",required:!0,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),electricalConfiguration:t.StaticDropdown({displayName:"Electrical Configuration",description:"Defines the type of electrical configuration of the charge point. The available options are </br> `star` - TN system - Star (Y) (default)</br> `delta` - IT system - Delta (\u0394)</br>.",required:!1,options:{options:[{label:"star",value:"star"},{label:"delta",value:"delta"}]}}),phases:t.StaticDropdown({displayName:"Phases",description:"",required:!0,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),phaseRotation:t.StaticDropdown({displayName:"Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!0,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),connectedPhase:t.StaticDropdown({displayName:"Connected Phase",description:"",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}})},dynamic:{defaultChargePointMaxCurrent:t.Number({displayName:"Default Charge Point Max Current",description:"In amps. The max current would be used in the algorithm for the smart charging and wherever there is not a max current explicitly set.",required:!0}),preconditioningTime:t.Number({displayName:"Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),minCurrent:t.Number({displayName:"Min Current",description:"minCurrent is always REQUIRED for `user_controlled_schedule`.",required:!1}),enableKeepAwake:t.StaticDropdown({displayName:"Enable Keep Awake",description:"For personal charge points. Keep the car awake during scheduled periods by continuously charging at a low current / power.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),maxVoltage:t.StaticDropdown({displayName:"Max Voltage",description:"",required:!0,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),electricalConfiguration:t.StaticDropdown({displayName:"Electrical Configuration",description:"Defines the type of electrical configuration of the charge point. The available options are </br> `star` - TN system - Star (Y) (default)</br> `delta` - IT system - Delta (\u0394)</br>.",required:!1,options:{options:[{label:"star",value:"star"},{label:"delta",value:"delta"}]}}),phases:t.StaticDropdown({displayName:"Phases",description:"",required:!0,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),phaseRotation:t.StaticDropdown({displayName:"Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!0,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),connectedPhase:t.StaticDropdown({displayName:"Connected Phase",description:"",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}})},user_schedule:{defaultChargePointMaxCurrent:t.Number({displayName:"Default Charge Point Max Current",description:"In amps. The max current would be used in the algorithm for the smart charging and wherever there is not a max current explicitly set.",required:!0}),preconditioningTime:t.Number({displayName:"Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1}),minCurrent:t.Number({displayName:"Min Current",description:"minCurrent is always REQUIRED for `user_controlled_schedule`.",required:!0}),enableKeepAwake:t.StaticDropdown({displayName:"Enable Keep Awake",description:"For personal charge points. Keep the car awake during scheduled periods by continuously charging at a low current / power.",required:!0,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),maxVoltage:t.StaticDropdown({displayName:"Max Voltage",description:"",required:!0,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),electricalConfiguration:t.StaticDropdown({displayName:"Electrical Configuration",description:"Defines the type of electrical configuration of the charge point. The available options are </br> `star` - TN system - Star (Y) (default)</br> `delta` - IT system - Delta (\u0394)</br>.",required:!1,options:{options:[{label:"star",value:"star"},{label:"delta",value:"delta"}]}}),phases:t.StaticDropdown({displayName:"Phases",description:"",required:!0,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),phaseRotation:t.StaticDropdown({displayName:"Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!0,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),allowDynamicLoadManagement:t.StaticDropdown({displayName:"Allow Dynamic Load Management",description:"When selected, the Charge Point can be added to a DLM circuit.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),connectedPhase:t.StaticDropdown({displayName:"Connected Phase",description:"",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}})},disabled:{preconditioningTime:t.Number({displayName:"Preconditioning Time",description:"The time in minutes before departure when the charging will be performed with full power.",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/charge-points/v2.0/{chargePoint}/smart-charging",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["mode","defaultChargePointMaxCurrent","periods","preconditioningTime","minCurrent","enableKeepAwake","maxVoltage","electricalConfiguration","phases","phaseRotation","connectedPhase","allowDynamicLoadManagement"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Jp=s({auth:o,name:"circuitsListing",displayName:"Resources - Circuits - Circuits Listing",description:"Get all circuits.",audience:"both",aiMetadata:{description:"List all AMPECO load-management circuits, optionally embedding related data (charge-point/user/SoC priorities, consumption, unmanaged load) via the include option. Read-only and safe to repeat. Supports automatic pagination to fetch every circuit across pages. Use to discover circuit IDs or survey circuits; use the circuit read action when you already know a single circuit ID.",idempotent:!0},props:{include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"chargePointPriorities",value:"chargePointPriorities"},{label:"userPriorities",value:"userPriorities"},{label:"socPriorities",value:"socPriorities"},{label:"consumption",value:"consumption"},{label:"unmanagedLoad",value:"unmanagedLoad"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0",e.propsValue),a=p(e.propsValue,["include","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Xp=s({auth:o,name:"circuitCreate",displayName:"Resources - Circuits - Create",description:"Create a new circuit.",audience:"both",aiMetadata:{description:"Create a new AMPECO load-management circuit with a name, phase configuration, and max current, plus optional parent circuit (multi-level DLM), electrical configuration, and load-balancing integration. Not idempotent: each call adds another circuit, so re-running creates duplicates. Use the circuit update action to change an existing circuit instead.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0}),parentCircuitId:t.Number({displayName:"Parent Circuit Id",description:`Specify parent circuit in Multi-level DLM. Circuits used in flexibility assets or using load balancing integration can not be used in Multi-level DLM.
|
|
110
|
+
`,required:!1}),phases:t.StaticDropdown({displayName:"Phases",description:"",required:!0,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),phaseRotation:t.StaticDropdown({displayName:"Phase Rotation",description:"`R` stands for `L1`, </br>\n`S` - for `L2` </br>\n`T` - for `L3` </br>\nSo for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc. </br>\nThe field is mandatory for Multi-level DLM when the `phases` value is `three_phase`.\n",required:!1,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),connectedPhase:t.StaticDropdown({displayName:"Connected Phase",description:"Specifies the active line conductors used in the circuit. </br>\nSingle phase values (`phases` = `single_phase`): `L1`, `L2`, `L3` - Valid in `star` electrical configuration </br>\nSplit phase values (`phases` = `split_phase`): `L1_L2`, `L2_L3`, `L1_L3` - Valid in `star` electrical configuration </br>\nThis field is mandatory for Multi-level DLM when the `phases` value is `single_phase` or `split_phase`.\n",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}}),electricalConfiguration:t.StaticDropdown({displayName:"Electrical Configuration",description:"Defines the type of electrical configuration of the circuit. A circuit must have the same electrical configuration as its parent circuit. To maintain safety and compatibility, only charge points with an identical electrical configuration to the circuit can be added. To modify a circuit's electrical configuration, all charge points with a different configuration must first be removed through Actions / Detach Charge Point. The available options are </br> `star` - TN system - Star (Y) (default)</br> `delta` - IT system - Delta (\u0394)</br>",required:!1,options:{options:[{label:"star",value:"star"},{label:"delta",value:"delta"}]}}),maxVoltage:t.StaticDropdown({displayName:"Max Voltage",description:"",required:!1,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),maxCurrent:t.Number({displayName:"Max Current",description:"The current (A) limit for the whole circuit. This would usually be the circuit breaker rated current.",required:!0}),minChargePointCurrent:t.Number({displayName:"Min Charge Point Current",description:"Defines what is the lowest current (A) allowed per charge point. New sessions cannot start if any of the existing ones has to be lowered to less than the set minimum rate. This is to ensure that a connected car vehicle actually charge because the vehicles have a minimum charging rate below which they would not accept the charge. If left empty, there is no minimum.",required:!1}),setSessionLimitToZeroOnIdle:t.StaticDropdown({displayName:"Set Session Limit To Zero On Idle",description:"Sets the limit to 0 when the session enters an idle period.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),electricityMeterId:t.Number({displayName:"Electricity Meter Id",description:"The ID of the Electricity Meter linked to the circuit (if any).",required:!1}),offlineReservedCurrent:t.Number({displayName:"Offline Reserved Current",description:"The current (A) reserved for other loads on the circuit (non-managed loads) when the Electricity Meter is offline.",required:!1}),loadBalancingIntegration__id:t.Number({displayName:"Load Balancing Integration - Id",description:"The id of the load balancing integration (can be found in the Ampeco backend). Provide `null` if you want to disable any load balancing integration and revert back to the Ampeco built-in load balancing.",required:!1}),loadBalancingIntegration__fields_VariantType:t.StaticDropdown({displayName:"Load Balancing Integration - Fields Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Variant 1",value:"1"},{label:"Variant 2",value:"2"}]}}),loadBalancingIntegration__fields:t.DynamicProperties({displayName:"Fields",auth:o,required:!0,refreshers:["loadBalancingIntegration__fields_VariantType"],props:c(async({loadBalancingIntegration__fields_VariantType:e})=>{if(!e)return{};let r={1:{startDate:t.DateTime({displayName:"Load Balancing Integration - Fields - Start Date",description:"DREEV specific. Reporting and accepting charging schedules will commence at this date.",required:!1})},2:{installationId:t.ShortText({displayName:"Load Balancing Integration - Fields - Installation Id",description:"Zaptec specific. Installation ID inside Zaptec system, used for identifying the corresponding circuit.",required:!0})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","parentCircuitId","phases","phaseRotation","connectedPhase","electricalConfiguration","maxVoltage","maxCurrent","minChargePointCurrent","setSessionLimitToZeroOnIdle","electricityMeterId","offlineReservedCurrent","loadBalancingIntegration","fields_VariantType"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var eu=s({auth:o,name:"circuitRead",displayName:"Resources - Circuits - Read",description:"Get a circuit.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO load-management circuit by its numeric ID, optionally embedding related data (charge-point/user/SoC priorities, consumption, unmanaged load) via the include option. Read-only and safe to repeat. Use when you already know the circuit ID; use the circuits listing action to search across all circuits.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",required:!1,options:{options:[{label:"chargePointPriorities",value:"chargePointPriorities"},{label:"userPriorities",value:"userPriorities"},{label:"socPriorities",value:"socPriorities"},{label:"consumption",value:"consumption"},{label:"unmanagedLoad",value:"unmanagedLoad"}]}})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var tu=s({auth:o,name:"circuitUpdate",displayName:"Resources - Circuits - Update",description:"Update a circuit.",audience:"both",aiMetadata:{description:"Modify an existing AMPECO load-management circuit (identified by circuit ID), changing properties such as name, phases, max/min current, electrical configuration, parent circuit for multi-level DLM, or load-balancing integration. Only the fields you supply are changed. Not idempotent in the create sense: it edits a circuit that must already exist; use the circuit create action to add a new one.",idempotent:!1},props:{circuit:t.Number({displayName:"Circuit",required:!0}),name:t.ShortText({displayName:"Name",required:!1}),parentCircuitId:t.Number({displayName:"Parent Circuit Id",description:`Specify parent circuit in Multi-level DLM. Circuits used in flexibility assets or using load balancing integration can not be used in Multi-level DLM.
|
|
111
|
+
`,required:!1}),phases:t.StaticDropdown({displayName:"Phases",required:!1,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),phaseRotation:t.StaticDropdown({displayName:"Phase Rotation",description:"`R` stands for `L1`, </br>\n`S` - for `L2` </br>\n`T` - for `L3` </br>\nSo for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc. </br>\nThe field is mandatory for Multi-level DLM when the `phases` value is `three_phase`.\n",required:!1,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),connectedPhase:t.StaticDropdown({displayName:"Connected Phase",description:"Specifies the active line conductors used in the circuit. </br>\nSingle phase values (`phases` = `single_phase`): `L1`, `L2`, `L3` - Valid in `star` electrical configuration </br>\nSplit phase values (`phases` = `split_phase`): `L1_L2`, `L2_L3`, `L1_L3` - Valid in `star` electrical configuration </br>\nThis field is mandatory for Multi-level DLM when the `phases` value is `single_phase` or `split_phase`.\n",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}}),electricalConfiguration:t.StaticDropdown({displayName:"Electrical Configuration",description:"Defines the type of electrical configuration of the circuit. A circuit must have the same electrical configuration as its parent circuit. To maintain safety and compatibility, only charge points with an identical electrical configuration to the circuit can be added. To modify a circuit's electrical configuration, all charge points with a different configuration must first be removed through Actions / Detach Charge Point. The available options are </br> `star` - TN system - Star (Y) (default)</br> `delta` - IT system - Delta (\u0394)</br>",required:!1,options:{options:[{label:"star",value:"star"},{label:"delta",value:"delta"}]}}),maxVoltage:t.StaticDropdown({displayName:"Max Voltage",description:"",required:!1,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),maxCurrent:t.Number({displayName:"Max Current",description:"The current (A) limit for the whole circuit. This would usually be the circuit breaker rated current.",required:!1}),minChargePointCurrent:t.Number({displayName:"Min Charge Point Current",description:"Defines what is the lowest current (A) allowed per charge point. New sessions cannot start if any of the existing ones has to be lowered to less than the set minimum rate. This is to ensure that a connected car vehicle actually charge because the vehicles have a minimum charging rate below which they would not accept the charge. If left empty, there is no minimum.",required:!1}),setSessionLimitToZeroOnIdle:t.StaticDropdown({displayName:"Set Session Limit To Zero On Idle",description:"Sets the limit to 0 when the session enters an idle period.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),electricityMeterId:t.Number({displayName:"Electricity Meter Id",description:"The ID of the Electricity Meter linked to the circuit (if any).",required:!1}),offlineReservedCurrent:t.Number({displayName:"Offline Reserved Current",description:"The current (A) reserved for other loads on the circuit (non-managed loads) when the Electricity Meter is offline.",required:!1}),loadBalancingIntegration__id:t.Number({displayName:"Load Balancing Integration - Id",description:"The id of the load balancing integration (can be found in the Ampeco backend). Provide `null` if you want to disable any load balancing integration and revert back to the Ampeco built-in load balancing.",required:!1}),loadBalancingIntegration__fields_VariantType:t.StaticDropdown({displayName:"Load Balancing Integration - Fields Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Variant 1",value:"1"},{label:"Variant 2",value:"2"}]}}),loadBalancingIntegration__fields:t.DynamicProperties({displayName:"Fields",auth:o,required:!0,refreshers:["loadBalancingIntegration__fields_VariantType"],props:c(async({loadBalancingIntegration__fields_VariantType:e})=>{if(!e)return{};let r={1:{startDate:t.DateTime({displayName:"Load Balancing Integration - Fields - Start Date",description:"DREEV specific. Reporting and accepting charging schedules will commence at this date.",required:!1})},2:{installationId:t.ShortText({displayName:"Load Balancing Integration - Fields - Installation Id",description:"Zaptec specific. Installation ID inside Zaptec system, used for identifying the corresponding circuit.",required:!0})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","parentCircuitId","phases","phaseRotation","connectedPhase","electricalConfiguration","maxVoltage","maxCurrent","minChargePointCurrent","setSessionLimitToZeroOnIdle","electricityMeterId","offlineReservedCurrent","loadBalancingIntegration","fields_VariantType"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var ru=s({auth:o,name:"circuitDelete",displayName:"Resources - Circuits - Delete",description:"Delete a circuit.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO load-balancing circuit by its numeric ID. Destructive and not reversible; re-running on an already-deleted circuit will fail. Confirm the correct circuit ID before deleting.",idempotent:!1},props:{circuit:t.Number({displayName:"Circuit",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var au=s({auth:o,name:"circuitChargePointPrioritiesListing",displayName:"Resources - Circuits - Circuit Charge Point Priorities Listing",description:"Get all circuit's charge point priorities.",audience:"both",aiMetadata:{description:"List the charge-point priority rules configured on a single AMPECO circuit, identified by numeric circuit ID. Read-only and safe to repeat; supports automatic pagination across pages. Use to enumerate which charge points are prioritized on one circuit, distinct from the user-priority and SoC-priority listings on the same circuit.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/charge-point-priorities",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var iu=s({auth:o,name:"circuitConsumption",displayName:"Resources - Circuits - Circuit Consumption",description:"Get the consumption of a circuit for each phase.",audience:"both",aiMetadata:{description:"Read the current electrical consumption of a single AMPECO circuit broken down per phase, identified by numeric circuit ID. Read-only lookup with no side effects. Use when you need live or recent per-phase load figures for one circuit, distinct from its static configuration returned by the circuit read action.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/consumption",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ou=s({auth:o,name:"circuitSocPrioritiesListing",displayName:"Resources - Circuits - Circuit Soc Priorities Listing",description:"Get a circuit's SoC priority.",audience:"both",aiMetadata:{description:"Read the state-of-charge (SoC) priority configuration for a single AMPECO load-management circuit, identified by numeric circuit ID. Read-only lookup with no side effects. Use when you need the SoC-based priority rules for one specific circuit; for the broader circuit record use the circuit read action.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/soc-priorities",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var nu=s({auth:o,name:"circuitUnmanagedLoadRead",displayName:"Resources - Circuits - Circuit Unmanaged Load Read",description:"Get a circuit's unmanaged load.",audience:"both",aiMetadata:{description:"Fetch the unmanaged-load reading for an AMPECO load-balancing circuit by its numeric ID (the load consumed by devices outside AMPECO's control). Read-only and idempotent; use when monitoring available capacity for a known circuit.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/unmanaged-load",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var su=s({auth:o,name:"circuitUserPrioritiesListing",displayName:"Resources - Circuits - Circuit User Priorities Listing",description:"Get all circuit's user priorities.",audience:"both",aiMetadata:{description:"List all user-priority rules configured on a given AMPECO load-balancing circuit, with Paginate Results to fetch every page. Read-only and idempotent; use this to discover priority IDs before reading or creating priority rules.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/user-priorities",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var lu=s({auth:o,name:"circuitUserPriorityCreate",displayName:"Resources - Circuits - Circuit User Priority Create",description:"Create a circuit's user priority.",audience:"both",aiMetadata:{description:"Add a user-priority rule to an AMPECO load-balancing circuit, weighting how much power a user group or partner gets during charging (priority 1 = baseline, 2 = twice as important, 0.5 = half). Not idempotent: each call creates a new priority rule. Use the circuit user priorities listing to inspect existing rules.",idempotent:!1},props:{circuit:t.Number({displayName:"Circuit",required:!0}),targetId:t.Number({displayName:"Target Id",description:"The ID of the User Group the user must be part of or the ID of the Partner from which the user must have an invite from, for the set priority apply for the session.",required:!0}),type:t.StaticDropdown({displayName:"Type",required:!0,options:{options:[{label:"partner",value:"partner"},{label:"userGroup",value:"userGroup"}]}}),priority:t.Number({displayName:"Priority",description:"The priority where 1 is equal to anyone else, 2 is twice as important, 0.5 is half as important.",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/user-priorities",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["targetId","type","priority"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var pu=s({auth:o,name:"circuitUserPriorityRead",displayName:"Resources - Circuits - Circuit User Priority Read",description:"Get a circuit's user priority.",audience:"both",aiMetadata:{description:"Fetch a single user-priority rule on an AMPECO load-balancing circuit, given the circuit ID and the user-priority ID. Read-only and idempotent; use the circuit user priorities listing action first to discover priority IDs.",idempotent:!0},props:{circuit:t.Number({displayName:"Circuit",required:!0}),userPriority:t.Number({displayName:"User Priority",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/user-priorities/{userPriority}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var uu=s({auth:o,name:"circuitUserPriorityUpdate",displayName:"Resources - Circuits - Circuit User Priority Update",description:"Update a circuit's user priority.",audience:"both",aiMetadata:{description:"Modify an existing user-priority rule on an AMPECO circuit, identified by circuit ID plus user-priority ID, adjusting its priority weight (1 = baseline, 2 = twice as important, 0.5 = half) and optional partner/userGroup target. Not idempotent: it mutates the targeted priority record, so it requires a pre-existing user priority. Use to retune an existing rule, not to create one.",idempotent:!1},props:{circuit:t.Number({displayName:"Circuit",required:!0}),userPriority:t.Number({displayName:"User Priority",required:!0}),targetId:t.Number({displayName:"Target Id",description:"The ID of the User Group the user must be part of or the ID of the Partner from which the user must have an invite from, for the set priority apply for the session.",required:!1}),type:t.StaticDropdown({displayName:"Type",required:!1,options:{options:[{label:"partner",value:"partner"},{label:"userGroup",value:"userGroup"}]}}),priority:t.Number({displayName:"Priority",description:"The priority where 1 is equal to anyone else, 2 is twice as important, 0.5 is half as important.",required:!1})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/user-priorities/{userPriority}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["targetId","type","priority"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var cu=s({auth:o,name:"circuitUserPriorityDelete",displayName:"Resources - Circuits - Circuit User Priority Delete",description:"Delete a circuit's user priority.",audience:"both",aiMetadata:{description:"Permanently remove a user-priority rule from an AMPECO circuit, identified by circuit ID plus user-priority ID. Destructive and not reversible. Idempotent in effect once removed (repeat calls target an already-deleted record), but the first call removes the rule, so confirm the IDs before running.",idempotent:!1},props:{circuit:t.Number({displayName:"Circuit",required:!0}),userPriority:t.Number({displayName:"User Priority",required:!0})},async run(e){try{let r=l("/public-api/resources/circuits/v2.0/{circuit}/user-priorities/{userPriority}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var du=s({auth:o,name:"listConfigurationTemplates",displayName:"Resources - Configuration Templates - List Configuration Templates",description:"Get all Configuration Templates.",audience:"both",aiMetadata:{description:"List OCPP configuration templates, optionally filtered by OCPP version (ocpp1.6 or ocpp2.0.1). Read-only and idempotent; use this to discover templates or find one by version, then use Get for a single known template id. Enable pagination to fetch all results.",idempotent:!0},props:{filter__ocppVersion:t.StaticDropdown({displayName:"Filter - Ocpp Version",description:"The OCPP version to filter by",required:!1,options:{options:[{label:"ocpp1.6",value:"ocpp1.6"},{label:"ocpp2.0.1",value:"ocpp2.0.1"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var mu=s({auth:o,name:"createConfigurationTemplate",displayName:"Resources - Configuration Templates - Create Configuration Template",description:"Create new Configuration Template.",audience:"both",aiMetadata:{description:"Create a new OCPP configuration template, requiring a name and an OCPP version (ocpp 1.6 or ocpp 2.0.1). Not idempotent: each call creates a separate template. Add variables afterward with the Configuration Template Variable Create action; use Update to rename an existing template.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",required:!0}),ocppVersion:t.StaticDropdown({displayName:"Ocpp Version",required:!0,options:{options:[{label:"ocpp 1.6",value:"ocpp 1.6"},{label:"ocpp 2.0.1",value:"ocpp 2.0.1"}]}})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","ocppVersion"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var fu=s({auth:o,name:"updateConfigurationTemplate",displayName:"Resources - Configuration Templates - Update Configuration Template",description:"Update Configuration Template.",audience:"both",aiMetadata:{description:"Update an existing OCPP configuration template (currently its name) identified by its numeric id. Not idempotent in general since it mutates live state; use to rename a template. To change the variables within a template, use the Configuration Template Variable actions instead.",idempotent:!1},props:{template:t.Number({displayName:"Template",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var hu=s({auth:o,name:"getConfigurationTemplate",displayName:"Resources - Configuration Templates - Get Configuration Template",description:"Get Configuration Template.",audience:"both",aiMetadata:{description:"Retrieve a single OCPP configuration template by its numeric id. Read-only and idempotent; use this when you already know the template id, and use List Configuration Templates to search across templates.",idempotent:!0},props:{template:t.Number({displayName:"Template",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var yu=s({auth:o,name:"deleteConfigurationTemplate",displayName:"Resources - Configuration Templates - Delete Configuration Template",description:"Delete Configuration Template.",audience:"both",aiMetadata:{description:"Permanently delete an OCPP configuration template by its numeric id, removing the template and its variables. Destructive and not idempotent: deleting an already-removed template will fail. Confirm the template with Get or List before deleting.",idempotent:!1},props:{template:t.Number({displayName:"Template",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var bu=s({auth:o,name:"configurationTemplateVariableListing",displayName:"Resources - Configuration Templates - Configuration Template Variable Listing",description:"Get all Configuration Template Variables.",audience:"both",aiMetadata:{description:"List all configuration variables belonging to one OCPP configuration template, identified by template id. Read-only and idempotent; use this to inspect a template contents or to find a variable id before updating or deleting it. Enable pagination to fetch all results.",idempotent:!0},props:{template:t.Number({displayName:"Template",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}/variables",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var gu=s({auth:o,name:"configurationTemplateVariableCreate",displayName:"Resources - Configuration Templates - Configuration Template Variable Create",description:"Create a new Configuration Template Variable.",audience:"both",aiMetadata:{description:"Add a configuration variable to an OCPP configuration template, identified by template id. Choose the variant matching the template OCPP version: 1.6 uses keyName/value, while 2.0.1 uses component/variableName/value plus optional instance and EVSE/connector scoping. Not idempotent: each call adds another variable. Use the Update variant action to change an existing variable.",idempotent:!1},props:{template:t.Number({displayName:"Template",required:!0}),requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Configuration variable for OCPP 1.6",value:"1"},{label:"Configuration variable for OCPP 2.0.1",value:"2"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",auth:o,required:!0,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{keyName:t.ShortText({displayName:"Key Name",description:"",required:!0}),value:t.ShortText({displayName:"Value",description:"",required:!0})},2:{value:t.ShortText({displayName:"Value",description:"",required:!0}),variableName:t.ShortText({displayName:"Variable Name",description:"",required:!0}),variableType:t.StaticDropdown({displayName:"Variable Type",description:"",required:!1,options:{options:[{label:"Actual",value:"Actual"},{label:"Target",value:"Target"},{label:"MinSet",value:"MinSet"},{label:"MaxSet",value:"MaxSet"}]}}),variableInstance:t.ShortText({displayName:"Variable Instance",description:"",required:!1}),component:t.ShortText({displayName:"Component",description:"",required:!0}),componentInstance:t.ShortText({displayName:"Component Instance",description:"",required:!1}),evseId:t.Number({displayName:"Evse Id",description:"",required:!1}),connectorId:t.Number({displayName:"Connector Id",description:"",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}/variables",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","keyName","value","variableName","variableType","variableInstance","component","componentInstance","evseId","connectorId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var vu=s({auth:o,name:"configurationTemplateVariableUpdate",displayName:"Resources - Configuration Templates - Configuration Template Variable Update",description:"Update a Configuration Template Variable.",audience:"both",aiMetadata:{description:"Modify an existing configuration variable within an OCPP configuration template, identified by template id and variable id, supplying only the fields to change. Choose the variant matching the template OCPP version (1.6: keyName/value; 2.0.1: component/variableName/value plus optional scoping). Not idempotent: each call mutates live state. Use the Create variant action to add a new variable.",idempotent:!1},props:{template:t.Number({displayName:"Template",required:!0}),variable:t.Number({displayName:"Variable",required:!0}),requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Configuration variable for OCPP 1.6",value:"1"},{label:"Configuration variable for OCPP 2.0.1",value:"2"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{keyName:t.ShortText({displayName:"Key Name",description:"",required:!1}),value:t.ShortText({displayName:"Value",description:"",required:!1})},2:{value:t.ShortText({displayName:"Value",description:"",required:!1}),variableName:t.ShortText({displayName:"Variable Name",description:"",required:!1}),variableType:t.StaticDropdown({displayName:"Variable Type",description:"",required:!1,options:{options:[{label:"Actual",value:"Actual"},{label:"Target",value:"Target"},{label:"MinSet",value:"MinSet"},{label:"MaxSet",value:"MaxSet"}]}}),variableInstance:t.ShortText({displayName:"Variable Instance",description:"",required:!1}),component:t.ShortText({displayName:"Component",description:"",required:!1}),componentInstance:t.ShortText({displayName:"Component Instance",description:"",required:!1}),evseId:t.Number({displayName:"Evse Id",description:"",required:!1}),connectorId:t.Number({displayName:"Connector Id",description:"",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}/variables/{variable}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","keyName","value","variableName","variableType","variableInstance","component","componentInstance","evseId","connectorId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Pu=s({auth:o,name:"configurationTemplateVariableDelete",displayName:"Resources - Configuration Templates - Configuration Template Variable Delete",description:"Delete a Configuration Template Variable.",audience:"both",aiMetadata:{description:"Permanently delete a single configuration variable from an OCPP configuration template, identified by template id and variable id. Destructive and not idempotent: deleting an already-removed variable will fail. Use the variable Listing action first to confirm the variable id.",idempotent:!1},props:{template:t.Number({displayName:"Template",required:!0}),variable:t.Number({displayName:"Variable",required:!0})},async run(e){try{let r=l("/public-api/resources/configuration-templates/v1.0/{template}/variables/{variable}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Au=s({auth:o,name:"contactDetailsRead",displayName:"Resources - Contact Details - Contact Details Read",description:"Get the contact details.",audience:"both",aiMetadata:{description:"Read the account-level contact details (email and phone) for the authenticated account. Takes no parameters and is read-only and safe to repeat.",idempotent:!0},props:{},async run(e){try{let r=l("/public-api/resources/contact-details/v2.0",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Nu=s({auth:o,name:"contactDetailsUpdate",displayName:"Resources - Contact Details - Contact Details Update",description:"Update the contact details.",audience:"both",aiMetadata:{description:"Set the account-level contact email (required) and optional phone, replacing the current contact record. Idempotent: re-sending the same values leaves the same end state. To clear the contact details entirely use contact-details-delete instead.",idempotent:!0},props:{email:t.ShortText({displayName:"Email",description:"",required:!0}),phone:t.ShortText({displayName:"Phone",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/contact-details/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["email","phone"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var Su=s({auth:o,name:"contactDetailsDelete",displayName:"Resources - Contact Details - Contact Details Delete",description:"Delete contact details.",audience:"both",aiMetadata:{description:`Delete the account-level contact details (no parameters; operates on the authenticated account's single contact record). Destructive: clears the stored email/phone. Safe to repeat in effect since the end state is "no contact details", but use contact-details-update to set values instead of removing them.`,idempotent:!1},props:{},async run(e){try{let r=l("/public-api/resources/contact-details/v2.0",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Tu=s({auth:o,name:"currenciesListing",displayName:"Resources - Currencies - Listing",description:"Currencies / Listing.",audience:"both",aiMetadata:{description:"List the currencies supported by the AMPECO instance. Read-only and safe to repeat; takes no input. Use to discover valid currency codes before configuring rates or other currency-dependent resources.",idempotent:!0},props:{},async run(e){try{let r=l("/public-api/resources/currencies/v2.0",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Cu=s({auth:o,name:"currencyCreate",displayName:"Resources - Currencies - Create",description:"Create currency.",audience:"both",aiMetadata:{description:"Add a new currency to AMPECO by its 3-letter alphabetic code, with optional display prefix/suffix, decimal precision, and minor-unit settings. Use to register a currency the platform does not yet support; to change an existing one use Update Currency instead. Not idempotent: repeated calls create duplicate currency records.",idempotent:!1},props:{alphabeticCode:t.StaticDropdown({displayName:"Alphabetic Code",description:"The currency 3-letter code.",required:!0,options:{options:[{label:"AED",value:"AED"},{label:"AFN",value:"AFN"},{label:"ALL",value:"ALL"},{label:"AMD",value:"AMD"},{label:"ANG",value:"ANG"},{label:"AOA",value:"AOA"},{label:"ARS",value:"ARS"},{label:"AUD",value:"AUD"},{label:"AWG",value:"AWG"},{label:"AZN",value:"AZN"},{label:"BAM",value:"BAM"},{label:"BBD",value:"BBD"},{label:"BDT",value:"BDT"},{label:"BGN",value:"BGN"},{label:"BHD",value:"BHD"},{label:"BIF",value:"BIF"},{label:"BMD",value:"BMD"},{label:"BND",value:"BND"},{label:"BOB",value:"BOB"},{label:"BOV",value:"BOV"},{label:"BRL",value:"BRL"},{label:"BSD",value:"BSD"},{label:"BTN",value:"BTN"},{label:"BWP",value:"BWP"},{label:"BYN",value:"BYN"},{label:"BZD",value:"BZD"},{label:"CAD",value:"CAD"},{label:"CDF",value:"CDF"},{label:"CHE",value:"CHE"},{label:"CHF",value:"CHF"},{label:"CHW",value:"CHW"},{label:"CLF",value:"CLF"},{label:"CLP",value:"CLP"},{label:"CNY",value:"CNY"},{label:"COP",value:"COP"},{label:"COU",value:"COU"},{label:"CRC",value:"CRC"},{label:"CUC",value:"CUC"},{label:"CUP",value:"CUP"},{label:"CVE",value:"CVE"},{label:"CZK",value:"CZK"},{label:"DJF",value:"DJF"},{label:"DKK",value:"DKK"},{label:"DOP",value:"DOP"},{label:"DZD",value:"DZD"},{label:"EGP",value:"EGP"},{label:"ERN",value:"ERN"},{label:"ETB",value:"ETB"},{label:"EUR",value:"EUR"},{label:"FJD",value:"FJD"},{label:"FKP",value:"FKP"},{label:"GBP",value:"GBP"},{label:"GEL",value:"GEL"},{label:"GHS",value:"GHS"},{label:"GIP",value:"GIP"},{label:"GMD",value:"GMD"},{label:"GNF",value:"GNF"},{label:"GTQ",value:"GTQ"},{label:"GYD",value:"GYD"},{label:"HKD",value:"HKD"},{label:"HNL",value:"HNL"},{label:"HRK",value:"HRK"},{label:"HTG",value:"HTG"},{label:"HUF",value:"HUF"},{label:"IDR",value:"IDR"},{label:"ILS",value:"ILS"},{label:"INR",value:"INR"},{label:"IQD",value:"IQD"},{label:"IRR",value:"IRR"},{label:"ISK",value:"ISK"},{label:"JMD",value:"JMD"},{label:"JOD",value:"JOD"},{label:"JPY",value:"JPY"},{label:"KES",value:"KES"},{label:"KGS",value:"KGS"},{label:"KHR",value:"KHR"},{label:"KMF",value:"KMF"},{label:"KPW",value:"KPW"},{label:"KRW",value:"KRW"},{label:"KWD",value:"KWD"},{label:"KYD",value:"KYD"},{label:"KZT",value:"KZT"},{label:"LAK",value:"LAK"},{label:"LBP",value:"LBP"},{label:"LKR",value:"LKR"},{label:"LRD",value:"LRD"},{label:"LSL",value:"LSL"},{label:"LYD",value:"LYD"},{label:"MAD",value:"MAD"},{label:"MDL",value:"MDL"},{label:"MGA",value:"MGA"},{label:"MKD",value:"MKD"},{label:"MMK",value:"MMK"},{label:"MNT",value:"MNT"},{label:"MOP",value:"MOP"},{label:"MRU",value:"MRU"},{label:"MUR",value:"MUR"},{label:"MVR",value:"MVR"},{label:"MWK",value:"MWK"},{label:"MXN",value:"MXN"},{label:"MXV",value:"MXV"},{label:"MYR",value:"MYR"},{label:"MZN",value:"MZN"},{label:"NAD",value:"NAD"},{label:"NGN",value:"NGN"},{label:"NIO",value:"NIO"},{label:"NOK",value:"NOK"},{label:"NPR",value:"NPR"},{label:"NZD",value:"NZD"},{label:"OMR",value:"OMR"},{label:"PAB",value:"PAB"},{label:"PEN",value:"PEN"},{label:"PGK",value:"PGK"},{label:"PHP",value:"PHP"},{label:"PKR",value:"PKR"},{label:"PLN",value:"PLN"},{label:"PYG",value:"PYG"},{label:"QAR",value:"QAR"},{label:"RON",value:"RON"},{label:"RSD",value:"RSD"},{label:"RUB",value:"RUB"},{label:"RWF",value:"RWF"},{label:"SAR",value:"SAR"},{label:"SBD",value:"SBD"},{label:"SCR",value:"SCR"},{label:"SDG",value:"SDG"},{label:"SEK",value:"SEK"},{label:"SGD",value:"SGD"},{label:"SHP",value:"SHP"},{label:"SLL",value:"SLL"},{label:"SOS",value:"SOS"},{label:"SRD",value:"SRD"},{label:"SSP",value:"SSP"},{label:"STN",value:"STN"},{label:"SVC",value:"SVC"},{label:"SYP",value:"SYP"},{label:"SZL",value:"SZL"},{label:"THB",value:"THB"},{label:"TJS",value:"TJS"},{label:"TMT",value:"TMT"},{label:"TND",value:"TND"},{label:"TOP",value:"TOP"},{label:"TRY",value:"TRY"},{label:"TTD",value:"TTD"},{label:"TWD",value:"TWD"},{label:"TZS",value:"TZS"},{label:"UAH",value:"UAH"},{label:"UGX",value:"UGX"},{label:"USD",value:"USD"},{label:"USN",value:"USN"},{label:"UYI",value:"UYI"},{label:"UYU",value:"UYU"},{label:"UYW",value:"UYW"},{label:"UZS",value:"UZS"},{label:"VES",value:"VES"},{label:"VND",value:"VND"},{label:"VUV",value:"VUV"},{label:"WST",value:"WST"},{label:"XAF",value:"XAF"},{label:"XAG",value:"XAG"},{label:"XAU",value:"XAU"},{label:"XBA",value:"XBA"},{label:"XBB",value:"XBB"},{label:"XBC",value:"XBC"},{label:"XBD",value:"XBD"},{label:"XCD",value:"XCD"},{label:"XDR",value:"XDR"},{label:"XOF",value:"XOF"},{label:"XPD",value:"XPD"},{label:"XPF",value:"XPF"},{label:"XPT",value:"XPT"},{label:"XSU",value:"XSU"},{label:"XTS",value:"XTS"},{label:"XUA",value:"XUA"},{label:"XXX",value:"XXX"},{label:"YER",value:"YER"},{label:"ZAR",value:"ZAR"},{label:"ZMW",value:"ZMW"},{label:"ZWL",value:"ZWL"}]}}),prefix:t.ShortText({displayName:"Prefix",description:"When displaying amounts in this currency, the prefix is added in front of the amount. This could be symbols, for example $ or \xA3.",required:!1}),suffix:t.ShortText({displayName:"Suffix",description:"When displaying amounts in this currency, the suffix is added after the amount.",required:!1}),decimal:t.Number({displayName:"Decimal",description:"The actual precision of the currency. This is used when charging a payment method or calculating totals.",required:!1}),unitPriceAndCalculationsDecimal:t.Number({displayName:"Unit Price And Calculations Decimal",description:"Used when setting price per kWh and per minute in tariffs.",required:!1}),enableUseOfMinorCurrencyUnit:t.StaticDropdown({displayName:"Enable Use Of Minor Currency Unit",description:"When enabled, the minor currency unit is used to set electricity price threshold for flexible tariffs and to set electricity cost tracking in the home charging app. The minor currency unit for the US dollar, for example, is the cent.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),minorUnitSign:t.ShortText({displayName:"Minor Unit Sign",description:'The sign or letter for the minor currency unit. For US dollar, for example, this could be "\xA2" or "c" for cents.',required:!1})},async run(e){try{let r=l("/public-api/resources/currencies/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["alphabeticCode","prefix","suffix","decimal","unitPriceAndCalculationsDecimal","enableUseOfMinorCurrencyUnit","minorUnitSign"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ru=s({auth:o,name:"currencyRead",displayName:"Resources - Currencies - Read",description:"Currency / Read.",audience:"both",aiMetadata:{description:"Fetch a single currency from AMPECO by its numeric currency id, returning its code and display/precision configuration. Read-only and idempotent. Use when you already know the id; there is no list-currencies counterpart here.",idempotent:!0},props:{currency:t.Number({displayName:"Currency",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/currencies/v2.0/{currency}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var _u=s({auth:o,name:"currencyUpdate",displayName:"Resources - Currencies - Update",description:"Update a currency.",audience:"both",aiMetadata:{description:"Update an existing currency in AMPECO, identified by its numeric currency id, changing its display prefix/suffix, decimal precision, or minor-unit settings. Requires the currency to already exist; use Create Currency to add a new one. Re-running with the same values is safe, but supplied fields overwrite the current configuration.",idempotent:!1},props:{currency:t.Number({displayName:"Currency",description:"",required:!0}),alphabeticCode:t.StaticDropdown({displayName:"Alphabetic Code",description:"The currency 3-letter code.",required:!0,options:{options:[{label:"AED",value:"AED"},{label:"AFN",value:"AFN"},{label:"ALL",value:"ALL"},{label:"AMD",value:"AMD"},{label:"ANG",value:"ANG"},{label:"AOA",value:"AOA"},{label:"ARS",value:"ARS"},{label:"AUD",value:"AUD"},{label:"AWG",value:"AWG"},{label:"AZN",value:"AZN"},{label:"BAM",value:"BAM"},{label:"BBD",value:"BBD"},{label:"BDT",value:"BDT"},{label:"BGN",value:"BGN"},{label:"BHD",value:"BHD"},{label:"BIF",value:"BIF"},{label:"BMD",value:"BMD"},{label:"BND",value:"BND"},{label:"BOB",value:"BOB"},{label:"BOV",value:"BOV"},{label:"BRL",value:"BRL"},{label:"BSD",value:"BSD"},{label:"BTN",value:"BTN"},{label:"BWP",value:"BWP"},{label:"BYN",value:"BYN"},{label:"BZD",value:"BZD"},{label:"CAD",value:"CAD"},{label:"CDF",value:"CDF"},{label:"CHE",value:"CHE"},{label:"CHF",value:"CHF"},{label:"CHW",value:"CHW"},{label:"CLF",value:"CLF"},{label:"CLP",value:"CLP"},{label:"CNY",value:"CNY"},{label:"COP",value:"COP"},{label:"COU",value:"COU"},{label:"CRC",value:"CRC"},{label:"CUC",value:"CUC"},{label:"CUP",value:"CUP"},{label:"CVE",value:"CVE"},{label:"CZK",value:"CZK"},{label:"DJF",value:"DJF"},{label:"DKK",value:"DKK"},{label:"DOP",value:"DOP"},{label:"DZD",value:"DZD"},{label:"EGP",value:"EGP"},{label:"ERN",value:"ERN"},{label:"ETB",value:"ETB"},{label:"EUR",value:"EUR"},{label:"FJD",value:"FJD"},{label:"FKP",value:"FKP"},{label:"GBP",value:"GBP"},{label:"GEL",value:"GEL"},{label:"GHS",value:"GHS"},{label:"GIP",value:"GIP"},{label:"GMD",value:"GMD"},{label:"GNF",value:"GNF"},{label:"GTQ",value:"GTQ"},{label:"GYD",value:"GYD"},{label:"HKD",value:"HKD"},{label:"HNL",value:"HNL"},{label:"HRK",value:"HRK"},{label:"HTG",value:"HTG"},{label:"HUF",value:"HUF"},{label:"IDR",value:"IDR"},{label:"ILS",value:"ILS"},{label:"INR",value:"INR"},{label:"IQD",value:"IQD"},{label:"IRR",value:"IRR"},{label:"ISK",value:"ISK"},{label:"JMD",value:"JMD"},{label:"JOD",value:"JOD"},{label:"JPY",value:"JPY"},{label:"KES",value:"KES"},{label:"KGS",value:"KGS"},{label:"KHR",value:"KHR"},{label:"KMF",value:"KMF"},{label:"KPW",value:"KPW"},{label:"KRW",value:"KRW"},{label:"KWD",value:"KWD"},{label:"KYD",value:"KYD"},{label:"KZT",value:"KZT"},{label:"LAK",value:"LAK"},{label:"LBP",value:"LBP"},{label:"LKR",value:"LKR"},{label:"LRD",value:"LRD"},{label:"LSL",value:"LSL"},{label:"LYD",value:"LYD"},{label:"MAD",value:"MAD"},{label:"MDL",value:"MDL"},{label:"MGA",value:"MGA"},{label:"MKD",value:"MKD"},{label:"MMK",value:"MMK"},{label:"MNT",value:"MNT"},{label:"MOP",value:"MOP"},{label:"MRU",value:"MRU"},{label:"MUR",value:"MUR"},{label:"MVR",value:"MVR"},{label:"MWK",value:"MWK"},{label:"MXN",value:"MXN"},{label:"MXV",value:"MXV"},{label:"MYR",value:"MYR"},{label:"MZN",value:"MZN"},{label:"NAD",value:"NAD"},{label:"NGN",value:"NGN"},{label:"NIO",value:"NIO"},{label:"NOK",value:"NOK"},{label:"NPR",value:"NPR"},{label:"NZD",value:"NZD"},{label:"OMR",value:"OMR"},{label:"PAB",value:"PAB"},{label:"PEN",value:"PEN"},{label:"PGK",value:"PGK"},{label:"PHP",value:"PHP"},{label:"PKR",value:"PKR"},{label:"PLN",value:"PLN"},{label:"PYG",value:"PYG"},{label:"QAR",value:"QAR"},{label:"RON",value:"RON"},{label:"RSD",value:"RSD"},{label:"RUB",value:"RUB"},{label:"RWF",value:"RWF"},{label:"SAR",value:"SAR"},{label:"SBD",value:"SBD"},{label:"SCR",value:"SCR"},{label:"SDG",value:"SDG"},{label:"SEK",value:"SEK"},{label:"SGD",value:"SGD"},{label:"SHP",value:"SHP"},{label:"SLL",value:"SLL"},{label:"SOS",value:"SOS"},{label:"SRD",value:"SRD"},{label:"SSP",value:"SSP"},{label:"STN",value:"STN"},{label:"SVC",value:"SVC"},{label:"SYP",value:"SYP"},{label:"SZL",value:"SZL"},{label:"THB",value:"THB"},{label:"TJS",value:"TJS"},{label:"TMT",value:"TMT"},{label:"TND",value:"TND"},{label:"TOP",value:"TOP"},{label:"TRY",value:"TRY"},{label:"TTD",value:"TTD"},{label:"TWD",value:"TWD"},{label:"TZS",value:"TZS"},{label:"UAH",value:"UAH"},{label:"UGX",value:"UGX"},{label:"USD",value:"USD"},{label:"USN",value:"USN"},{label:"UYI",value:"UYI"},{label:"UYU",value:"UYU"},{label:"UYW",value:"UYW"},{label:"UZS",value:"UZS"},{label:"VES",value:"VES"},{label:"VND",value:"VND"},{label:"VUV",value:"VUV"},{label:"WST",value:"WST"},{label:"XAF",value:"XAF"},{label:"XAG",value:"XAG"},{label:"XAU",value:"XAU"},{label:"XBA",value:"XBA"},{label:"XBB",value:"XBB"},{label:"XBC",value:"XBC"},{label:"XBD",value:"XBD"},{label:"XCD",value:"XCD"},{label:"XDR",value:"XDR"},{label:"XOF",value:"XOF"},{label:"XPD",value:"XPD"},{label:"XPF",value:"XPF"},{label:"XPT",value:"XPT"},{label:"XSU",value:"XSU"},{label:"XTS",value:"XTS"},{label:"XUA",value:"XUA"},{label:"XXX",value:"XXX"},{label:"YER",value:"YER"},{label:"ZAR",value:"ZAR"},{label:"ZMW",value:"ZMW"},{label:"ZWL",value:"ZWL"}]}}),prefix:t.ShortText({displayName:"Prefix",description:"When displaying amounts in this currency, the prefix is added in front of the amount. This could be symbols, for example $ or \xA3.",required:!1}),suffix:t.ShortText({displayName:"Suffix",description:"When displaying amounts in this currency, the suffix is added after the amount.",required:!1}),decimal:t.Number({displayName:"Decimal",description:"The actual precision of the currency. This is used when charging a payment method or calculating totals.",required:!1}),unitPriceAndCalculationsDecimal:t.Number({displayName:"Unit Price And Calculations Decimal",description:"Used when setting price per kWh and per minute in tariffs.",required:!1}),enableUseOfMinorCurrencyUnit:t.StaticDropdown({displayName:"Enable Use Of Minor Currency Unit",description:"When enabled, the minor currency unit is used to set electricity price threshold for flexible tariffs and to set electricity cost tracking in the home charging app. The minor currency unit for the US dollar, for example, is the cent.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),minorUnitSign:t.ShortText({displayName:"Minor Unit Sign",description:'The sign or letter for the minor currency unit. For US dollar, for example, this could be "\xA2" or "c" for cents.',required:!1})},async run(e){try{let r=l("/public-api/resources/currencies/v2.0/{currency}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["alphabeticCode","prefix","suffix","decimal","unitPriceAndCalculationsDecimal","enableUseOfMinorCurrencyUnit","minorUnitSign"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var wu=s({auth:o,name:"createCurrencyRate",displayName:"Resources - Currency Rates - Create",description:"Create new Currency Rate.",audience:"both",aiMetadata:{description:"Create a new AMPECO currency-rate record defining the exchange rate from a base currency to a target currency (ISO 4217 codes). Not idempotent: each call adds another rate record, so re-running can create duplicate base/target pairs. Use the update currency rate action to change the rate of an existing record.",idempotent:!1},props:{base:t.ShortText({displayName:"Base",description:"Base currency code (ISO 4217)",required:!0}),target:t.ShortText({displayName:"Target",description:"Target currency code (ISO 4217)",required:!0}),rate:t.Number({displayName:"Rate",description:"The exchange rate from base to target currency",required:!0})},async run(e){try{let r=l("/public-api/resources/currency-rates/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["base","target","rate"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Iu=s({auth:o,name:"listCurrencyRates",displayName:"Resources - Currency Rates - List",description:"Get all Currency Rates.",audience:"both",aiMetadata:{description:"List AMPECO currency-rate records, optionally filtered by base currency, target currency, or an updated-before/after datetime window. Read-only and safe to repeat; supports automatic pagination across pages. Use to discover currency-rate IDs or survey configured exchange rates; use the get currency rate action when you already know a single ID.",idempotent:!0},props:{filter__base:t.ShortText({displayName:"Filter - Base",description:"Filter by base currency code",required:!1}),filter__target:t.ShortText({displayName:"Filter - Target",description:"Filter by target currency code",required:!1}),filter__updatedBefore:t.DateTime({displayName:"Filter - Updated Before",description:"Filter by records updated before a specific datetime",required:!1}),filter__updatedAfter:t.DateTime({displayName:"Filter - Updated After",description:"Filter by records updated after a specific datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/currency-rates/v1.0",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Eu=s({auth:o,name:"updateCurrencyRate",displayName:"Resources - Currency Rates - Update",description:"Update Currency Rate.",audience:"both",aiMetadata:{description:"Update the exchange rate value of an existing AMPECO currency-rate record, identified by numeric currency-rate ID. Only the rate (base-to-target multiplier) is changed; the base and target currencies are fixed. Not idempotent in the create sense: the record must already exist. Use the create currency rate action to add a new base/target pair.",idempotent:!1},props:{currencyRate:t.Number({displayName:"Currency Rate",description:"",required:!0}),rate:t.Number({displayName:"Rate",description:"The exchange rate from base to target currency",required:!0})},async run(e){try{let r=l("/public-api/resources/currency-rates/v1.0/{currencyRate}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["rate"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Du=s({auth:o,name:"getCurrencyRate",displayName:"Resources - Currency Rates - Get",description:"Get Currency Rate.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO currency-rate record by its numeric ID. Read-only and safe to repeat. Use when you already know the currency-rate ID; use the list currency rates action to browse or filter by base/target currency.",idempotent:!0},props:{currencyRate:t.Number({displayName:"Currency Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/currency-rates/v1.0/{currencyRate}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var xu=s({auth:o,name:"deleteCurrencyRate",displayName:"Resources - Currency Rates - Delete",description:"Delete Currency Rate.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO currency-rate record by its numeric ID. Destructive and not reversible. Effectively idempotent once removed, but the first call removes the rate, so confirm the ID before running.",idempotent:!1},props:{currencyRate:t.Number({displayName:"Currency Rate",required:!0})},async run(e){try{let r=l("/public-api/resources/currency-rates/v1.0/{currencyRate}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Mu=s({auth:o,name:"customFeesListing",displayName:"Resources - Custom Fees - Listing",description:"Get all custom fees.",audience:"both",aiMetadata:{description:"List custom fees, optionally filtered by created-after and created-before dates. Read-only and idempotent. Enable the Paginate Results option to fetch across pages up to Per page total; otherwise a single page (max 100) is returned. Use customFeeRead when you already know a fee id.",idempotent:!0},props:{filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"ISO 8601 formatted date",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"ISO 8601 formatted date",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/custom-fees/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var ku=s({auth:o,name:"customFeeRead",displayName:"Resources - Custom Fees - Read",description:"Get a single custom fee.",audience:"both",aiMetadata:{description:"Fetch a single custom fee by its numeric id. Read-only and idempotent. Use when you already know the fee id; to browse fees or filter by creation date use customFeesListing.",idempotent:!0},props:{customFee:t.Number({displayName:"Custom Fee",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/custom-fees/v2.0/{customFee}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var qu=s({auth:o,name:"getDowntimePeriodNotices",displayName:"Resources - Downtime Period Notices - Get Downtime Period Notices",description:"Get all Downtime Period Notices.",audience:"both",aiMetadata:{description:"List downtime period notices, optionally filtered by type (downtime or exempt) and auto-paginated across all pages. Use to browse or find notices; read-only and safe to retry. To fetch one known notice by ID use the get action instead.",idempotent:!0},props:{filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"",required:!1,options:{options:[{label:"downtime",value:"downtime"},{label:"exempt",value:"exempt"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/downtime-period-notices/v1.0",e.propsValue),a=p(e.propsValue,["per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Ou=s({auth:o,name:"postDowntimePeriodNotice",displayName:"Resources - Downtime Period Notices - Post Downtime Period Notice",description:"Create Downtime Period Notice.",audience:"both",aiMetadata:{description:"Create a new downtime period notice of a given type (downtime or exempt) with a notice value and optional description. Use to register a new notice; to change an existing one use the patch action. Not idempotent \u2014 each call creates a new notice.",idempotent:!1},props:{type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"downtime",value:"downtime"},{label:"exempt",value:"exempt"}]}}),notice:t.ShortText({displayName:"Notice",description:"",required:!0}),description:t.ShortText({displayName:"Description",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/downtime-period-notices/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["type","notice","description"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Lu=s({auth:o,name:"getDowntimePeriodNotice",displayName:"Resources - Downtime Period Notices - Get",description:"Get Downtime Period Notice.",audience:"both",aiMetadata:{description:"Retrieve a single downtime period notice by its numeric ID. Use when you already know the ID and need its details; read-only and safe to retry. To search or browse multiple notices use the list action instead.",idempotent:!0},props:{notice:t.Number({displayName:"Notice",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/downtime-period-notices/v1.0/{notice}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Uu=s({auth:o,name:"patchDowntimePeriodNotice",displayName:"Resources - Downtime Period Notices - Patch Downtime Period Notice",description:"Update Downtime Period Notice.",audience:"both",aiMetadata:{description:"Update an existing downtime period notice by its numeric ID, changing its type or description. Use to modify a known notice rather than creating one; targets a specific record so re-running with the same values is safe.",idempotent:!0},props:{notice:t.Number({displayName:"Notice",description:"",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"",required:!1,options:{options:[{label:"downtime",value:"downtime"},{label:"exempt",value:"exempt"}]}}),description:t.ShortText({displayName:"Description",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/downtime-period-notices/v1.0/{notice}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["type","notice","description"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Vu=s({auth:o,name:"deleteDowntimePeriodNotice",displayName:"Resources - Downtime Period Notices - Delete",description:"Delete Downtime Period Notice.",audience:"both",aiMetadata:{description:"Permanently delete a downtime period notice by its numeric ID. Use when removing a notice; this is destructive and cannot be undone, so confirm the ID first. Re-running after the notice is gone will error.",idempotent:!1},props:{notice:t.Number({displayName:"Notice",required:!0})},async run(e){try{let r=l("/public-api/resources/downtime-period-notices/v1.0/{notice}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var zu=s({auth:o,name:"electricityMetersLising",displayName:"Resources - Electricity Meters - Lising",description:"Get all electricity meters.",audience:"both",aiMetadata:{description:"List all AMPECO electricity meters on the platform. Read-only and idempotent. Enable pagination to fetch every meter across pages; otherwise a single page (up to per_page results) is returned. Use this to discover meter IDs before reading, updating, or deleting a specific meter.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/electricity-meters/v1.0",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Fu=s({auth:o,name:"electricityMeterCreate",displayName:"Resources - Electricity Meters - Create",description:"Create a new electricity meter.",audience:"both",aiMetadata:{description:"Create a new AMPECO electricity meter with a name and integration ID. Not idempotent: each call adds a separate meter, so re-running duplicates it. To change an existing meter, use the electricity meter update action instead.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",required:!0}),integrationId:t.Number({displayName:"Integration Id",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-meters/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","integrationId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Bu=s({auth:o,name:"electricityMeterRead",displayName:"Resources - Electricity Meters - Read",description:"Get information for an electricity meter by ID.",audience:"both",aiMetadata:{description:"Fetch the details of a single AMPECO electricity meter by its numeric ID. Read-only and idempotent. Pick this when you already have a meter ID; to browse all meters, use the electricity meters listing action.",idempotent:!0},props:{electricityMeter:t.Number({displayName:"Electricity Meter",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-meters/v1.0/{electricityMeter}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var $u=s({auth:o,name:"electricityMeterUpdate",displayName:"Resources - Electricity Meters - Update",description:"Update electricity meter.",audience:"both",aiMetadata:{description:"Update an existing AMPECO electricity meter (its name and/or integration ID) identified by numeric ID, sending only the fields provided as a partial PATCH. Idempotent: applying the same values repeatedly leaves the meter in the same state. Use the create action to add a new meter instead.",idempotent:!0},props:{electricityMeter:t.Number({displayName:"Electricity Meter",required:!0}),name:t.ShortText({displayName:"Name",required:!1}),integrationId:t.Number({displayName:"Integration Id",required:!1})},async run(e){try{let r=l("/public-api/resources/electricity-meters/v1.0/{electricityMeter}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","integrationId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Gu=s({auth:o,name:"electricityMeterDelete",displayName:"Resources - Electricity Meters - Delete",description:"Delete an electricity meter.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO electricity meter by its numeric ID. Destructive; deleting an already-removed meter returns an error rather than succeeding silently. Confirm the meter ID via the listing action first.",idempotent:!1},props:{electricityMeter:t.Number({displayName:"Electricity Meter",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-meters/v1.0/{electricityMeter}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Hu=s({auth:o,name:"electricityRatesListing",displayName:"Resources - Electricity Rates - Electricity Rates Listing",description:"Get all Electricity rates.",audience:"both",aiMetadata:{description:"List electricity rates configured in AMPECO, optionally filtered by utility id or rate type (e.g. admin_defined, octopus_go, agile_octopus). Read-only and safe to repeat. Enable pagination to retrieve all matching rates; otherwise one page is returned. Use to discover rate ids before reading or updating a specific rate.",idempotent:!0},props:{filter__utilityId:t.Number({displayName:"Filter - Utility Id",description:"",required:!1}),filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"",required:!1,options:{options:[{label:"admin_defined",value:"admin_defined"},{label:"octopus_go",value:"octopus_go"},{label:"agile_octopus",value:"agile_octopus"},{label:"elspot",value:"elspot"},{label:"nord_pool",value:"nord_pool"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0",e.propsValue),a=p(e.propsValue,["per_page","cursor","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Wu=s({auth:o,name:"electricityRateCreate",displayName:"Resources - Electricity Rates - Create",description:"Create a new Electricity rate.",audience:"both",aiMetadata:{description:"Create a new electricity rate in AMPECO with a name, default per-kWh price (tax included) and tax percentage. Not idempotent: each call creates another distinct rate, so guard against duplicates. To change an existing rate use the update action instead.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0}),utilityId:t.Number({displayName:"Utility Id",description:"The id of the utility providing the electricity. Configured in the Ampeco admin panel.",required:!1}),defaultPrice:t.Number({displayName:"Default Price",description:`The default price per kWh, which will be applied if there is no pricing supplied for a time interval.
|
|
112
|
+
Prices of all electricity rates created through the Public API or tha Ampeco admin panel must include the tax in the price.
|
|
113
|
+
Price per kWh.
|
|
114
|
+
`,required:!0}),taxPercentage:t.Number({displayName:"Tax Percentage",description:"This field is used only to indicate the applied tax. All Electricity Rate prices should be provided with the tax included in the price.",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","utilityId","defaultPrice","taxPercentage"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ku=s({auth:o,name:"electricityRateRead",displayName:"Resources - Electricity Rates - Read",description:"Get a single Electricity rate.",audience:"both",aiMetadata:{description:"Retrieve one electricity rate from AMPECO by its numeric id, including its name, default price, tax and utility. Read-only and safe to repeat. Use when you have a specific rate id; to discover ids, list rates instead.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Zu=s({auth:o,name:"electricityRateUpdate",displayName:"Resources - Electricity Rates - Update",description:"Update a Electricity rate.",audience:"both",aiMetadata:{description:"Partially update an existing electricity rate in AMPECO, identified by its numeric id; only the supplied fields (name, utility, default price, tax) change. Targets a stable id and applying the same values repeatedly yields the same state. Use the create action to add a new rate instead.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!1}),utilityId:t.Number({displayName:"Utility Id",description:"The id of the utility providing the electricity. Configured in the Ampeco admin panel.",required:!1}),defaultPrice:t.Number({displayName:"Default Price",description:`The default price per kWh, which will be applied if there is no pricing supplied for a time interval.
|
|
115
|
+
Prices of all electricity rates created through the Public API or tha Ampeco admin panel must include the tax in the price.
|
|
116
|
+
Price per kWh.
|
|
117
|
+
`,required:!1}),taxPercentage:t.Number({displayName:"Tax Percentage",description:"This field is used only to indicate the applied tax. All Electricity Rate prices should be provided with the tax included in the price.",required:!1})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","utilityId","defaultPrice","taxPercentage"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var ju=s({auth:o,name:"electricityRateDelete",displayName:"Resources - Electricity Rates - Delete",description:"Delete a Electricity rate.",audience:"both",aiMetadata:{description:"Permanently delete an electricity rate from AMPECO by its numeric id. Destructive and cannot be undone; repeating after success fails because the rate no longer exists. Confirm the correct id before calling.",idempotent:!1},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Qu=s({auth:o,name:"electricityRateEnergyMixRead",displayName:"Resources - Electricity Rates - Electricity Rate Energy Mix Read",description:"Get an electricity rate energy mix.",audience:"both",aiMetadata:{description:"Retrieve the energy-source mix (percentages for solar, wind, hydro, nuclear, coal, gas and other sources) of a given electricity rate in AMPECO. Read-only and safe to repeat. Use the energy-mix update action to change these percentages.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/energy-mix",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Yu=s({auth:o,name:"electricityRateEnergyMixUpdate",displayName:"Resources - Electricity Rates - Energy Mix Update",description:"Set an electricity rate energy mix. By default the energy mix generated with creation of the electricity rate is filled with 0.",audience:"both",aiMetadata:{description:"Set the energy-source mix percentages (solar, wind, hydro, nuclear, coal, natural gas, other renewable/non-renewable) for an electricity rate in AMPECO. Replaces the stored mix, so submitting the same values repeatedly leaves the rate in the same state; unspecified sources default to 0.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),solar:t.Number({displayName:"Solar",description:"Represents what percent of the energy is generated from solar power.",required:!1}),wind:t.Number({displayName:"Wind",description:"Represents what percent of the energy is generated from wind turbines.",required:!1}),hydro:t.Number({displayName:"Hydro",description:"Represents what percent of the energy is generated from hydropower.",required:!1}),nuclear:t.Number({displayName:"Nuclear",description:"Represents what percent of the energy is generated from nuclear power plants.",required:!1}),coal:t.Number({displayName:"Coal",description:"Represents what percent of the energy is generated from burning coal.",required:!1}),naturalGas:t.Number({displayName:"Natural Gas",description:"Represents what percent of the energy is generated from natural gas.",required:!1}),otherRenewable:t.Number({displayName:"Other Renewable",description:"Represents what percent of the energy is generated from any other type of renewable energy source. This could include any other renewable source not specifically listed.",required:!1}),otherNonRenewable:t.Number({displayName:"Other Non Renewable",description:"Represents what percent of the energy is generated from any other type of non-renewable energy source. This could include any other non-renewable source not specifically listed.",required:!1})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/energy-mix",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["solar","wind","hydro","nuclear","coal","naturalGas","otherRenewable","otherNonRenewable"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var Ju=s({auth:o,name:"electricityRatePricePeriodsListing",displayName:"Resources - Electricity Rates - Price Periods Listing",description:"List all of the configured price period days (including week days and dates).",audience:"both",aiMetadata:{description:"List every configured price-period day for an electricity rate in AMPECO, covering both recurring week days and specific calendar dates. Read-only and safe to repeat. Use this for the full overview; the week-day and date listing actions return only one of the two kinds.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Xu=s({auth:o,name:"electricityRatePricePeriodsDateListing",displayName:"Resources - Electricity Rates - Price Periods Date Listing",description:"List all of the configured price period dates.",audience:"both",aiMetadata:{description:"List the configured one-off, calendar-date price periods for an electricity rate in AMPECO. Read-only and safe to repeat. Use the week-day listing action for recurring weekly periods, or the combined listing for both kinds.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/date",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ec=s({auth:o,name:"electricityRatePricePeriodsDateRead",displayName:"Resources - Electricity Rates - Price Periods Date Read",description:"Get the price periods for a specific date.",audience:"both",aiMetadata:{description:"Retrieve the configured time-of-day price periods for one specific calendar date (YYYY-MM-DD) of an electricity rate in AMPECO. Read-only and safe to repeat. Use the week-day read action for recurring weekly periods instead.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),date:t.DateTime({displayName:"Date",description:"Uses the YYYY-MM-DD date format.",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/date/{date}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var tc=s({auth:o,name:"electricityRatePricePeriodsDateCreateOrUpdate",displayName:"Resources - Electricity Rates - Price Periods Date Create Or Update",description:"Update the price periods for a specific date. This operation will overwrite all existing periods for the given date, so a complete list must be provided.",audience:"both",aiMetadata:{description:"Set the full list of time-of-day price periods for one specific calendar date (YYYY-MM-DD) of an electricity rate in AMPECO. This replaces all existing periods for that date, so always send the complete list; resending the same list leaves the date in the same state. Use the week-day variant to set recurring weekly pricing.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),date:t.DateTime({displayName:"Date",description:"Uses the YYYY-MM-DD date format.",required:!0}),periods:t.Array({displayName:"Periods",description:"",required:!0,properties:{startsAt:t.ShortText({displayName:"Starts At",description:"The start time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),endsAt:t.ShortText({displayName:"Ends At",description:"The end time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),price:t.Number({displayName:"Price",description:"The price that will apply for the given price period. Must include tax.",required:!0})}})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/date/{date}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["periods"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var rc=s({auth:o,name:"electricityRatePricePeriodsDateDelete",displayName:"Resources - Electricity Rates - Price Periods Date Delete",description:"Delete the price periods for a specific date.",audience:"both",aiMetadata:{description:"Remove all configured price periods for one specific calendar date (YYYY-MM-DD) of an electricity rate in AMPECO, reverting that date to the rate default pricing. Destructive write; confirm the rate id and date first. Use the week-day delete action to clear a recurring week day instead.",idempotent:!1},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),date:t.DateTime({displayName:"Date",description:"Uses the YYYY-MM-DD date format.",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/date/{date}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var ac=s({auth:o,name:"electricityRatePricePeriodsWeekDayListing",displayName:"Resources - Electricity Rates - Price Periods Week Day Listing",description:"List all of the configured price period week days.",audience:"both",aiMetadata:{description:"List the configured recurring week-day price periods for an electricity rate in AMPECO (e.g. Monday, weekend, or any). Read-only and safe to repeat. Use the date listing action for one-off calendar-date periods, or the combined listing for both.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/week-day",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ic=s({auth:o,name:"electricityRatePricePeriodsWeekDayRead",displayName:"Resources - Electricity Rates - Price Periods Week Day Read",description:"Get the price periods for a specific week day.",audience:"both",aiMetadata:{description:"Retrieve the configured time-of-day price periods for one recurring week day (mon-sun or any) of an electricity rate in AMPECO. Read-only and safe to repeat. Use the date read action for a specific calendar date instead.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),weekDay:t.StaticDropdown({displayName:"Week Day",description:"Can be one of the listed days of the week or `any`.",required:!0,options:{options:[{label:"mon",value:"mon"},{label:"tue",value:"tue"},{label:"wed",value:"wed"},{label:"thu",value:"thu"},{label:"fri",value:"fri"},{label:"sat",value:"sat"},{label:"sun",value:"sun"},{label:"any",value:"any"}]}})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/week-day/{weekDay}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var oc=s({auth:o,name:"electricityRatePricePeriodsWeekDayCreateaOrUpdate",displayName:"Resources - Electricity Rates - Price Periods Week Day Createa Or Update",description:"Update the price periods for a specific week day. This operation will overwrite all existing periods for the given day, so a complete list must be provided.",audience:"both",aiMetadata:{description:"Set the full list of time-of-day price periods for one recurring week day (mon-sun or any) of an electricity rate in AMPECO. This replaces all existing periods for that day, so always send the complete list; resending the same list leaves the day in the same state. Use the date variant to set pricing for a specific calendar date.",idempotent:!0},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),weekDay:t.StaticDropdown({displayName:"Week Day",description:"Can be one of the listed days of the week or `any`.",required:!0,options:{options:[{label:"mon",value:"mon"},{label:"tue",value:"tue"},{label:"wed",value:"wed"},{label:"thu",value:"thu"},{label:"fri",value:"fri"},{label:"sat",value:"sat"},{label:"sun",value:"sun"},{label:"any",value:"any"}]}}),periods:t.Array({displayName:"Periods",description:"",required:!0,properties:{startsAt:t.ShortText({displayName:"Starts At",description:"The start time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),endsAt:t.ShortText({displayName:"Ends At",description:"The end time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),price:t.Number({displayName:"Price",description:"The price that will apply for the given price period. Must include tax.",required:!0})}})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/week-day/{weekDay}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["periods"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var nc=s({auth:o,name:"electricityRatePricePeriodsWeekDayDelete",displayName:"Resources - Electricity Rates - Price Periods Week Day Delete",description:"Delete the price periods for a specific week day.",audience:"both",aiMetadata:{description:"Remove all configured price periods for one recurring week day (mon-sun or any) of an electricity rate in AMPECO, reverting that day to the rate default pricing. Destructive write; confirm the rate id and day first. Use the date delete action to clear a specific calendar date instead.",idempotent:!1},props:{electricityRate:t.Number({displayName:"Electricity Rate",description:"",required:!0}),weekDay:t.StaticDropdown({displayName:"Week Day",description:"Can be one of the listed days of the week or `any`.",required:!0,options:{options:[{label:"mon",value:"mon"},{label:"tue",value:"tue"},{label:"wed",value:"wed"},{label:"thu",value:"thu"},{label:"fri",value:"fri"},{label:"sat",value:"sat"},{label:"sun",value:"sun"},{label:"any",value:"any"}]}})},async run(e){try{let r=l("/public-api/resources/electricity-rates/v2.0/{electricityRate}/price-periods/week-day/{weekDay}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var sc=s({auth:o,name:"evseDowntimePeriodsListing",displayName:"Resources - Evse Downtime Periods - Listing",description:"Get all EVSE Downtime Periods.",audience:"both",aiMetadata:{description:"List EVSE downtime periods with optional filters by EVSE, charge point, location, entry mode (manual/automatic), type (downtime/exempt), duration, and time windows. Read-only and safe to repeat. Enable Paginate Results to fetch all matches; to read one known period by ID use evse-downtime-period-read.",idempotent:!0},props:{filter__evseId:t.Number({displayName:"Filter - Evse Id",description:"",required:!1}),filter__chargePointId:t.Number({displayName:"Filter - Charge Point Id",description:"Filter the periods in which the evses belong to the charge point",required:!1}),filter__locationId:t.Number({displayName:"Filter - Location Id",description:"",required:!1}),filter__entryMode:t.StaticDropdown({displayName:"Filter - Entry Mode",description:"",required:!1,options:{options:[{label:"manual",value:"manual"},{label:"automatic",value:"automatic"}]}}),filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"",required:!1,options:{options:[{label:"downtime",value:"downtime"},{label:"exempt",value:"exempt"}]}}),filter__startedAfter:t.DateTime({displayName:"Filter - Started After",description:"ISO 8601 formatted date. Resources with `startedAt >= startedAfter`.",required:!1}),filter__stoppedBefore:t.DateTime({displayName:"Filter - Stopped Before",description:"ISO 8601 formatted date. Resources with `stoppedAt <= stoppedBefore`.",required:!1}),filter__durationLessThan:t.Number({displayName:"Filter - Duration Less Than",description:"Resources with duration in minutes less than or equal given value.",required:!1}),filter__durationGreaterThan:t.Number({displayName:"Filter - Duration Greater Than",description:"Resources with duration in minutes greater than or equal given value.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and before this datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/evse-downtime-periods/v1.0",e.propsValue),a=p(e.propsValue,["per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var lc=s({auth:o,name:"evseDowntimePeriodCreate",displayName:"Resources - Evse Downtime Periods - Create",description:"Create Manual Exempt EVSE Downtime Period.",audience:"both",aiMetadata:{description:"Create a manual exempt downtime period for an EVSE, specifying the EVSE ID, an exempt-type notice ID, and start/end times. Not idempotent: each call creates a new period, so avoid duplicate calls for the same window. Use evse-downtime-period-update to adjust an existing period instead.",idempotent:!1},props:{evseId:t.Number({displayName:"Evse Id",description:"",required:!0}),noticeId:t.Number({displayName:"Notice Id",description:"Allowed only notice with `type = exempt`!",required:!0}),startedAt:t.DateTime({displayName:"Started At",description:"",required:!0}),endedAt:t.DateTime({displayName:"Ended At",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/evse-downtime-periods/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["evseId","noticeId","startedAt","endedAt"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var pc=s({auth:o,name:"evseDowntimePeriodRead",displayName:"Resources - Evse Downtime Periods - Read",description:"Get EVSE Downtime Period.",audience:"both",aiMetadata:{description:"Fetch a single EVSE downtime period by its numeric ID. Read-only and safe to repeat. To search across periods by EVSE, type, or time window use evse-downtime-periods-listing.",idempotent:!0},props:{evseDowntimePeriod:t.Number({displayName:"Evse Downtime Period",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/evse-downtime-periods/v1.0/{evseDowntimePeriod}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var uc=s({auth:o,name:"evseDowntimePeriodUpdate",displayName:"Resources - Evse Downtime Periods - Update",description:"Update EVSE Downtime Period.",audience:"both",aiMetadata:{description:'Update an existing EVSE downtime period by its numeric ID, changing its notice, start, or end time. Editing start/end is only allowed for periods with type "exempt" and entryMode "manual". Idempotent: re-applying the same values yields the same end state.',idempotent:!0},props:{evseDowntimePeriod:t.Number({displayName:"Evse Downtime Period",description:"",required:!0}),noticeId:t.Number({displayName:"Notice Id",description:"",required:!1}),startedAt:t.DateTime({displayName:"Started At",description:"Allowed only for downtime period with `type = exempt AND entryMode = manual`",required:!1}),endedAt:t.DateTime({displayName:"Ended At",description:"Allowed only for downtime period with `type = exempt AND entryMode = manual`",required:!1})},async run(e){try{let r=l("/public-api/resources/evse-downtime-periods/v1.0/{evseDowntimePeriod}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["noticeId","startedAt","endedAt"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var cc=s({auth:o,name:"evseDowntimePeriodDelete",displayName:"Resources - Evse Downtime Periods - Delete",description:"Delete Manual Created EVSE Downtime Period.",audience:"both",aiMetadata:{description:"Permanently delete a manually created EVSE downtime period by its numeric ID. Destructive and irreversible; a repeat call fails once the period is gone. Only manually created periods can be removed.",idempotent:!1},props:{evseDowntimePeriod:t.Number({displayName:"Evse Downtime Period",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/evse-downtime-periods/v1.0/{evseDowntimePeriod}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var dc=s({auth:o,name:"listEvseHardwareStatusLogs",displayName:"Resources - Evses - List Evse Hardware Status Logs",description:"Get paginated list of hardware status logs for an EVSE with optional date filtering.",audience:"both",aiMetadata:{description:"Retrieve the history of hardware status log entries for one EVSE (charging connector), identified by its numeric id, optionally narrowed to a created-after/created-before window. Read-only and idempotent; pick this when you need the full timeline of status changes rather than only the most recent one. Enable pagination to walk all pages.",idempotent:!0},props:{evse:t.Number({displayName:"Evse",description:"",required:!0}),filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"ISO 8601 formatted date. Only list status logs created after this datetime",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"ISO 8601 formatted date. Only list status logs created before this datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/evses/v2.0/{evse}/hardware-status-logs",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var mc=s({auth:o,name:"getEvseLatestHardwareStatusLog",displayName:"Resources - Evses - Get Evse Latest Hardware Status Log",description:"Get the latest hardware status log entry for an EVSE.",audience:"both",aiMetadata:{description:"Fetch only the most recent hardware status log entry for one EVSE (charging connector), identified by its numeric id. Read-only and idempotent; pick this for a quick current-status check, as opposed to List Evse Hardware Status Logs which returns the full history.",idempotent:!0},props:{evse:t.Number({displayName:"Evse",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/evses/v2.0/{evse}/latest-hardware-status-log",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var fc=s({auth:o,name:"evseCreate",displayName:"Resources - Evses - Create",description:"Create new EVSE.",audience:"both",aiMetadata:{description:"Create a new EVSE (charging connector) under a charge point, requiring charge point id, physical reference, current type (ac/dc), network id, and status. Not idempotent: each call creates a separate EVSE. Use Update to change an existing EVSE instead of recreating it.",idempotent:!1},props:{chargePointId:t.Number({displayName:"Charge Point Id",description:"The ID of the charge point.",required:!0}),physicalReference:t.ShortText({displayName:"Physical Reference",description:"The identifier that is presented to the users, so they can identify the EVSE at the location.",required:!0}),currentType:t.StaticDropdown({displayName:"Current Type",description:`Type of current available on the EVSE:
|
|
118
|
+
- **ac**: Alternating Current (AC) charging
|
|
119
|
+
- **dc**: Direct Current (DC) fast charging
|
|
120
|
+
`,required:!0,options:{options:[{label:"ac",value:"ac"},{label:"dc",value:"dc"}]}}),label:t.ShortText({displayName:"Label",description:"The EVSE label will be exposed and visualized in the mobile application",required:!1}),networkId:t.ShortText({displayName:"Network Id",description:"The OCPP evse identifier (should be consecutive numbers starting from 1)",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"For roaming EVSEs the status can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"out of order",value:"out of order"}]}}),midMeterCertificationEndYear:t.Number({displayName:"Mid Meter Certification End Year",description:"The mid meter certification end year.",required:!1}),tariffGroupId:t.Number({displayName:"Tariff Group Id",description:"The ID of the tariff group attached to the EVSE. If the EVSE is not roaming and tariffGroupId is not specified, the default (free) tariff will be assigned. For roaming EVSEs the Tariff Group can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!1}),allowsReservation:t.StaticDropdown({displayName:"Allows Reservation",description:"Manages whether reservations are allowed on this EVSE. Requires the Reservations to be activated for the system in order to enable for the EVSE.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),bookingEnabled:t.StaticDropdown({displayName:"Booking Enabled",description:"Indicates if the EVSE can be booked. Requires the Bookings to be activated for the operator and automatically enables allowsReservation when set to true.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),powerOptions__maxPower:t.Number({displayName:"Power Options - Max Power",description:"in Wh.",required:!1}),powerOptions__maxVoltage:t.StaticDropdown({displayName:"Power Options - Max Voltage",description:"The maxVoltage of a charge point can fluctuate. Hence, when creating a charge point in the system, the maxVoltage is given as a range. For OCPI purposes it maps as follows: 220-240 = 230 110-130 = 120 400 = 400 380 = 380.",required:!1,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),powerOptions__maxAmperage:t.Number({displayName:"Power Options - Max Amperage",description:"",required:!1}),powerOptions__phases:t.StaticDropdown({displayName:"Power Options - Phases",description:"",required:!1,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),powerOptions__phaseRotation:t.StaticDropdown({displayName:"Power Options - Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!1,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),powerOptions__connectedPhase:t.StaticDropdown({displayName:"Power Options - Connected Phase",description:"Specifies the active line conductors used in the circuit. - `L1_L2` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L2_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L2` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L3` - Valid when `phases` = `single_phase` in electrical configuration `star`.",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/evses/v2.1",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["chargePointId","physicalReference","currentType","label","networkId","status","midMeterCertificationEndYear","tariffGroupId","allowsReservation","bookingEnabled","powerOptions","externalId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var hc=s({auth:o,name:"evsesListing",displayName:"Resources - Evses - Listing",description:"Get all EVSEs.",audience:"both",aiMetadata:{description:"List EVSEs (charging connectors) across the network, optionally filtered by charge point, physical reference (QR code), external id, roaming flag, or last-updated window. Read-only and idempotent; use this to discover or search for EVSEs when you do not already have a specific id, and use Read for a single known EVSE. Enable pagination to fetch all results.",idempotent:!0},props:{filter__chargePointId:t.Number({displayName:"Filter - Charge Point Id",description:"Only list EVSEs on a certain charge point",required:!1}),filter__physicalReference:t.ShortText({displayName:"Filter - Physical Reference",description:"Only list EVSEs, identified by id (QR Code)",required:!1}),filter__externalId:t.ShortText({displayName:"Filter - External Id",description:"Only list EVSEs, identified by externalId",required:!1}),filter__roaming:t.StaticDropdown({displayName:"Filter - Roaming",description:"If true, only roaming EVSEs will be returned. If false, only local EVSEs will be returned. If not passing, all EVSEs will be returned.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and before this datetime",required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"},{label:"externalAppData",value:"externalAppData"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/evses/v2.1",e.propsValue),a=p(e.propsValue,["filter","include","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var yc=s({auth:o,name:"evseUpdate",displayName:"Resources - Evses - Update",description:"Update an EVSE.",audience:"both",aiMetadata:{description:"Modify an existing EVSE (charging connector), identified by its numeric id, applying only the fields you supply (physical reference, label, current type, status, tariff group, power options, reservation/booking flags, etc.). Not idempotent: each call mutates live state. For roaming EVSEs, status and tariff group can only change when manual management is enabled for the roaming CPO.",idempotent:!1},props:{evse:t.Number({displayName:"Evse",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"},{label:"externalAppData",value:"externalAppData"}]}}),physicalReference:t.ShortText({displayName:"Physical Reference",description:"The identifier that is presented to the users, so they can identify the EVSE at the location.",required:!1}),currentType:t.StaticDropdown({displayName:"Current Type",description:`Type of current available on the EVSE:
|
|
121
|
+
- **ac**: Alternating Current (AC) charging
|
|
122
|
+
- **dc**: Direct Current (DC) fast charging
|
|
123
|
+
`,required:!1,options:{options:[{label:"ac",value:"ac"},{label:"dc",value:"dc"}]}}),label:t.ShortText({displayName:"Label",description:"The EVSE label will be exposed and visualized in the mobile application",required:!1}),networkId:t.ShortText({displayName:"Network Id",description:"The OCPP evse identifier (should be consecutive numbers starting from 1)",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"For roaming EVSEs the status can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"out of order",value:"out of order"}]}}),midMeterCertificationEndYear:t.Number({displayName:"Mid Meter Certification End Year",description:"The mid meter certification end year.",required:!1}),tariffGroupId:t.Number({displayName:"Tariff Group Id",description:"The ID of the tariff group attached to the EVSE. If the EVSE is not roaming and tariffGroupId is not specified, the default (free) tariff will be assigned. For roaming EVSEs the Tariff Group can only be updated if the option for manual management of EVSEs is enabled for the roaming CPO.",required:!1}),allowsReservation:t.StaticDropdown({displayName:"Allows Reservation",description:"Manages whether reservations are allowed on this EVSE. Requires the Reservations to be activated for the system in order to enable for the EVSE.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),bookingEnabled:t.StaticDropdown({displayName:"Booking Enabled",description:"Indicates if the EVSE can be booked. Requires the Bookings to be activated for the operator and automatically enables allowsReservation when set to true.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),powerOptions__maxPower:t.Number({displayName:"Power Options - Max Power",description:"in Wh.",required:!1}),powerOptions__maxVoltage:t.StaticDropdown({displayName:"Power Options - Max Voltage",description:"The maxVoltage of a charge point can fluctuate. Hence, when creating a charge point in the system, the maxVoltage is given as a range. For OCPI purposes it maps as follows: 220-240 = 230 110-130 = 120 400 = 400 380 = 380.",required:!1,options:{options:[{label:"230",value:"230"},{label:"380",value:"380"},{label:"400",value:"400"},{label:"480",value:"480"},{label:"120",value:"120"},{label:"208",value:"208"},{label:"240",value:"240"},{label:"110-130",value:"110-130"},{label:"220-240",value:"220-240"}]}}),powerOptions__maxAmperage:t.Number({displayName:"Power Options - Max Amperage",description:"",required:!1}),powerOptions__phases:t.StaticDropdown({displayName:"Power Options - Phases",description:"",required:!1,options:{options:[{label:"single_phase",value:"single_phase"},{label:"three_phase",value:"three_phase"},{label:"split_phase",value:"split_phase"}]}}),powerOptions__phaseRotation:t.StaticDropdown({displayName:"Power Options - Phase Rotation",description:"`R` stands for `L1`, </br> `S` - for `L2` </br> `T` - for `L3` </br> So for example `RST` = `L1`, `L2`, `L3`, while `RTS` = `L1`, `L3`, `L2`, etc.",required:!1,options:{options:[{label:"RST",value:"RST"},{label:"RTS",value:"RTS"},{label:"SRT",value:"SRT"},{label:"STR",value:"STR"},{label:"TRS",value:"TRS"},{label:"TSR",value:"TSR"}]}}),powerOptions__connectedPhase:t.StaticDropdown({displayName:"Power Options - Connected Phase",description:"Specifies the active line conductors used in the circuit. - `L1_L2` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L2_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1_L3` - Valid when `phases` = `split_phase` in electrical configuration `star` or `phases` = `single_phase` in electrical configuration `delta` - `L1` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L2` - Valid when `phases` = `single_phase` in electrical configuration `star` - `L3` - Valid when `phases` = `single_phase` in electrical configuration `star`.",required:!1,options:{options:[{label:"L1",value:"L1"},{label:"L2",value:"L2"},{label:"L3",value:"L3"},{label:"L1_L2",value:"L1_L2"},{label:"L1_L3",value:"L1_L3"},{label:"L2_L3",value:"L2_L3"}]}}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/evses/v2.1/{evse}",e.propsValue),a=p(e.propsValue,["include"]),i=m(e.propsValue,["physicalReference","currentType","label","networkId","status","midMeterCertificationEndYear","tariffGroupId","allowsReservation","bookingEnabled","powerOptions","externalId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var bc=s({auth:o,name:"evseRead",displayName:"Resources - Evses - Read",description:"Get an EVSE.",audience:"both",aiMetadata:{description:"Retrieve a single EVSE (charging connector) by its numeric id, optionally including related charging profile, connectors, or external app data. Read-only and idempotent; use this when you already know the EVSE id, and use Listing to search across many EVSEs.",idempotent:!0},props:{evse:t.Number({displayName:"Evse",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"},{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/evses/v2.1/{evse}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var gc=s({auth:o,name:"evseDelete",displayName:"Resources - Evses - Evse Delete",description:"Delete an EVSE.",audience:"both",aiMetadata:{description:"Permanently delete an EVSE (charging connector) identified by its numeric id. Destructive and not idempotent: deleting an already-removed id will fail. Use Listing or Read first to confirm the correct EVSE before deleting.",idempotent:!1},props:{evse:t.Number({displayName:"Evse",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingProfile",value:"chargingProfile"},{label:"connectors",value:"connectors"},{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/evses/v2.1/{evse}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var vc=s({auth:o,name:"faqsListing",displayName:"Resources - Faqs - Listing",description:"Get all FAQs.",audience:"both",aiMetadata:{description:"List all FAQ entries. Read-only and idempotent. Use this to browse or count FAQs; to fetch one known entry prefer Faq Read. Enable Paginate Results to walk every page.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/faqs/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Pc=s({auth:o,name:"faqCreate",displayName:"Resources - Faqs - Create",description:"Create new FAQ.",audience:"both",aiMetadata:{description:"Create a new FAQ entry with localized question and answer text (one entry per locale). Not idempotent: each call adds a new FAQ, so retrying can create duplicates. To change an existing entry use Faq Update instead.",idempotent:!1},props:{question:t.Array({displayName:"Question",description:"",required:!0,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),answer:t.Array({displayName:"Answer",description:"",required:!0,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/faqs/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["question","answer"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ac=s({auth:o,name:"faqRead",displayName:"Resources - Faqs - Faq Read",description:"Get a FAQ.",audience:"both",aiMetadata:{description:"Fetch a single FAQ entry by its numeric id. Read-only and idempotent. Use this when you already know the id; to browse all FAQs use Faqs Listing instead.",idempotent:!0},props:{faq:t.Number({displayName:"Faq",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/faqs/v2.0/{faq}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Nc=s({auth:o,name:"faqUpdate",displayName:"Resources - Faqs - Update",description:"Update FAQs.",audience:"both",aiMetadata:{description:"Update an existing FAQ entry identified by its numeric id, replacing its localized question and/or answer text. Targets one known entry (it does not create); idempotent when sending the same values. To add a new FAQ use Faq Create instead.",idempotent:!0},props:{faq:t.Number({displayName:"Faq",description:"",required:!0}),question:t.Array({displayName:"Question",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),answer:t.Array({displayName:"Answer",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/faqs/v2.0/{faq}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["question","answer"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Sc=s({auth:o,name:"faqDelete",displayName:"Resources - Faqs - Faq Delete",description:"Delete a FAQ.",audience:"both",aiMetadata:{description:"Permanently delete a FAQ entry by its numeric id. Destructive and not reversible; deleting an already-removed id will error. Do not retry blindly.",idempotent:!1},props:{faq:t.Number({displayName:"Faq",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/faqs/v2.0/{faq}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Tc=s({auth:o,name:"firmwareVersionsListing",displayName:"Resources - Firmware Versions - Listing",description:"Get all Firmware Versions.",audience:"both",aiMetadata:{description:"List AMPECO charge-point firmware versions, optionally filtered by vendor ID, model ID, or version string (prefix match), with auto-pagination available. Use to discover firmware version IDs or survey available firmware; for a known version use the firmware version read action. Read-only and idempotent.",idempotent:!0},props:{filter__vendorId:t.Array({displayName:"Filter - Vendor Id",description:"Filter by charge point vendor IDs.",required:!1}),filter__modelId:t.Array({displayName:"Filter - Model Id",description:"Filter by charge point model IDs.",required:!1}),filter__firmwareVersion:t.ShortText({displayName:"Filter - Firmware Version",description:'Filter by firmware version string. Matches both exact versions and versions that begin with the search string (e.g., "1.2" will match exactly "1.2" as well as versions like "1.2.0", "1.2.3", etc.).',required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"models",value:"models"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/firmware-versions/v1.0",e.propsValue),a=p(e.propsValue,["per_page","cursor","filter","include"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Cc=s({auth:o,name:"firmwareVersionRead",displayName:"Resources - Firmware Versions - Read",description:"Get a Firmware Version.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO firmware version by its numeric ID, optionally including its attached charge-point models. Use when you already know the firmware version ID; to discover IDs use the firmware versions listing action. Read-only and idempotent.",idempotent:!0},props:{firmwareVersion:t.Number({displayName:"Firmware Version",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"models",value:"models"}]}})},async run(e){try{let r=l("/public-api/resources/firmware-versions/v1.0/{firmwareVersion}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Rc=s({auth:o,name:"firmwareVersionAttachedModels",displayName:"Resources - Firmware Versions - Get Attached Models",description:"Get all charge point models attached to this firmware version.",audience:"both",aiMetadata:{description:"List the charge-point models attached to a specific AMPECO firmware version, identified by the firmware version ID, with auto-pagination available. Use to check which hardware models a firmware build supports. Read-only and idempotent.",idempotent:!0},props:{firmwareVersion:t.Number({displayName:"Firmware Version",description:"",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/firmware-versions/v1.0/{firmwareVersion}/attached-models",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var _c=s({auth:o,name:"listFlexibilityActivationRequests",displayName:"Resources - Flexibility Activation Requests - List",description:"Get a list of Flexibility Requests.",audience:"both",aiMetadata:{description:"List flexibility activation requests, optionally filtered by flexibility asset id. Read-only and idempotent. Enable the Paginate Results option to fetch across pages up to Per page total; otherwise a single page (max 100) is returned. Use getFlexibilityActivationRequest when you already know a request id.",idempotent:!0},props:{filter__assetId:t.ShortText({displayName:"Filter - Asset Id",description:"The ID of the Flexibility Asset to filter requests by",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/flexibility-activation-requests/v1.0",e.propsValue),a=p(e.propsValue,["per_page","cursor","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var wc=s({auth:o,name:"getFlexibilityActivationRequest",displayName:"Resources - Flexibility Activation Requests - Get Flexibility Activation Request",description:"Get a flexibility activation request.",audience:"both",aiMetadata:{description:"Fetch a single flexibility activation request by its numeric id. Read-only and idempotent. Use when you already know the request id; to browse requests or filter by flexibility asset use listFlexibilityActivationRequests.",idempotent:!0},props:{flexibilityActivationRequest:t.Number({displayName:"Flexibility Activation Request",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/flexibility-activation-requests/v1.0/{flexibilityActivationRequest}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Ic=s({auth:o,name:"createFlexibilityAsset",displayName:"Resources - Flexibility Assets - Create",description:"Create new flexibility asset.",audience:"both",aiMetadata:{description:"Create a new flexibility asset bound to exactly one source - a DLM circuit, a charge point, or an EVSE (only one of these IDs may be set). Not idempotent: each call creates a separate asset, so re-running produces duplicates. Use List/Get first to check whether a suitable asset already exists, and use Update to change an existing one.",idempotent:!1},props:{dlmCircuitId:t.Number({displayName:"Dlm Circuit Id",description:"ID of the DLM circuit. Only one of dlmCircuitId, chargePointId or evseId can have value.",required:!0}),chargePointId:t.Number({displayName:"Charge Point Id",description:"ID of the Charge Point. Only one of dlmCircuitId, chargePointId or evseId can have value.",required:!0}),evseId:t.Number({displayName:"Evse Id",description:"ID of the EVSE. Only one of dlmCircuitId, chargePointId or evseId can have value.",required:!0}),description:t.ShortText({displayName:"Description",description:"Short description of the flexibility asset.",required:!1}),integrationId:t.Number({displayName:"Integration Id",description:"Flexibility integration.",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),endsAt:t.DateTime({displayName:"Ends At",description:"ISO 8601 formatted date. If an end date is set the asset will be automatically disabled at that time. Historical time series and forecasts are not generated after the end date.",required:!1})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["dlmCircuitId","chargePointId","evseId","description","integrationId","status","endsAt"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ec=s({auth:o,name:"listFlexibilityAssets",displayName:"Resources - Flexibility Assets - List",description:"Get a list of Flexibility Assets.",audience:"both",aiMetadata:{description:"List flexibility assets, optionally filtered to those updated since a given timestamp. Read-only and idempotent. Enable the pagination option to fetch all matching assets across pages; otherwise a single page (up to per_page) is returned. Use this to discover asset IDs before reading, updating, or pulling time-series data for a specific asset.",idempotent:!0},props:{filter__updatedSince:t.DateTime({displayName:"Filter - Updated Since",description:"Filter for the assets updated since the given timestamp",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0",e.propsValue),a=p(e.propsValue,["per_page","cursor","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Dc=s({auth:o,name:"updateFlexibilityAsset",displayName:"Resources - Flexibility Assets - Update",description:"Update a flexibility asset.",audience:"both",aiMetadata:{description:"Partially update an existing flexibility asset (by ID), changing only its description and/or flexibility integration. Idempotent: applying the same values repeatedly leaves the asset in the same state. Use this to modify an existing asset rather than Create (which would make a duplicate).",idempotent:!0},props:{flexibilityAsset:t.Number({displayName:"Flexibility Asset",description:"",required:!0}),description:t.ShortText({displayName:"Description",description:"Short description of the flexibility asset.",required:!1}),integrationId:t.Number({displayName:"Integration Id",description:"Flexibility integration.",required:!1})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0/{flexibilityAsset}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["description","integrationId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var xc=s({auth:o,name:"getFlexibilityAsset",displayName:"Resources - Flexibility Assets - Get",description:"Get a flexibility asset.",audience:"both",aiMetadata:{description:"Fetch a single flexibility asset by its numeric ID. Read-only and idempotent. Use when you already know the asset ID; if you only have a charge point, EVSE, or circuit reference, use List Flexibility Assets first to find the matching asset ID.",idempotent:!0},props:{flexibilityAsset:t.Number({displayName:"Flexibility Asset",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0/{flexibilityAsset}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Mc=s({auth:o,name:"deleteFlexibilityAsset",displayName:"Resources - Flexibility Assets - Delete",description:"Delete a flexibility asset.",audience:"both",aiMetadata:{description:"Permanently delete a flexibility asset by its numeric ID. Destructive and not idempotent in effect: the first call removes the asset, subsequent calls for the same ID fail because it no longer exists. Use only when the asset should be fully removed; to merely take it offline, update its status to disabled instead.",idempotent:!1},props:{flexibilityAsset:t.Number({displayName:"Flexibility Asset",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0/{flexibilityAsset}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var kc=s({auth:o,name:"getHistoricalTimeSeries",displayName:"Resources - Flexibility Assets - Get Historical Time Series",description:"Get Historical Time Series for a Flexibility Asset.",audience:"both",aiMetadata:{description:"Retrieve past measured time-series for one flexibility asset (by ID), optionally bounded by a start/end time window. Read-only and idempotent. Pick this for historical/recorded values; use Get Time Series Forecast for predicted future values of the same asset.",idempotent:!0},props:{flexibilityAsset:t.Number({displayName:"Flexibility Asset",description:"",required:!0}),filter__startTime:t.DateTime({displayName:"Filter - Start Time",description:"",required:!1}),filter__endTime:t.DateTime({displayName:"Filter - End Time",description:"",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0/{flexibilityAsset}/historical-time-series",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var qc=s({auth:o,name:"getTimeSeriesForecast",displayName:"Resources - Flexibility Assets - Get Time Series Forecast",description:"Get Time Series Forecast for a Flexibility Asset.",audience:"both",aiMetadata:{description:"Retrieve forward-looking forecast time-series for one flexibility asset (by ID), optionally bounded by a start/end time window. Read-only and idempotent. Pick this for predicted/future values; use Get Historical Time Series for past measured values of the same asset.",idempotent:!0},props:{flexibilityAsset:t.Number({displayName:"Flexibility Asset",description:"",required:!0}),filter__startTime:t.DateTime({displayName:"Filter - Start Time",description:"",required:!1}),filter__endTime:t.DateTime({displayName:"Filter - End Time",description:"",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/flexibility-assets/v1.0/{flexibilityAsset}/time-series-forecast",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Oc=s({auth:o,name:"idTagsListing",displayName:"Resources - Id Tags - Listing",description:"Get all id tags.",audience:"both",aiMetadata:{description:"List id tags with optional filters (UID, label, user, status, type, partner, expiry, last-updated window) and optional auto-pagination to retrieve all matching results. Read-only lookup, safe to repeat.",idempotent:!0},props:{filter__idTagUid:t.Number({displayName:"Filter - Id Tag Uid",description:"Only list Id tags with a certain UID",required:!1}),filter__idLabel:t.ShortText({displayName:"Filter - Id Label",description:"Only list Id tags with a certain label",required:!1}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Only list Id tags with a certain user id",required:!1}),filter__expireAt:t.DateTime({displayName:"Filter - Expire At",description:"Only list Id tags that have an expiration date grater or equal to the supplied date",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Only list Id tags in this status",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"suspended",value:"suspended"}]}}),filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"Only list Id tags in this type",required:!1,options:{options:[{label:"rfid",value:"rfid"},{label:"mac_address",value:"mac_address"},{label:"emaid",value:"emaid"}]}}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list ID tags assigned to the specified Partner ID. Pass null to list ID tags without a Partner assigned.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the id tags that were last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the id tags that were last updated on and before this datetime",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/id-tags/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page","cursor","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Lc=s({auth:o,name:"idTagCreate",displayName:"Resources - Id Tags - Create",description:"Create new Id Tag.",audience:"both",aiMetadata:{description:"Register a new ID tag (RFID card or MAC address) in AMPECO that authorizes charging sessions, optionally linking it to a user, payment method, and partner. Not idempotent: each call creates a separate tag, so calling twice yields duplicates. Use idTagUpdate to modify an existing tag instead.",idempotent:!1},props:{idTagUid:t.ShortText({displayName:"Id Tag Uid",description:"Token used for authorization",required:!0}),idLabel:t.ShortText({displayName:"Id Label",description:"Visual or other label that could be associated with the ID Tag",required:!1}),expireAt:t.DateTime({displayName:"Expire At",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"The status of the ID tag. Use it to disable or suspend a tag\n* `enabled` The tag is enabled and is accepted as authentication method\n* `disabled` The tag is disabled by the admin user and is not acceptable as authorization method\n* `suspended` The tag is suspended by the owner of the tag and is not acceptable as authorization method\n",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"suspended",value:"suspended"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"rfid",value:"rfid"},{label:"mac_address",value:"mac_address"}]}}),vehicleType:t.StaticDropdown({displayName:"Vehicle Type",description:"",required:!1,options:{options:[{label:"company_car",value:"company_car"},{label:"private_car",value:"private_car"}]}}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:"The payment method that will be associated with the ID Tag.\n* For **credit/debit cards** the `paymentMethodId` should be provided\n* For **Corporate billing** - `corporate:{id}`\n* For **last used** the value should be `null`\n",required:!1}),userId:t.Number({displayName:"User Id",description:"Associate the ID tag with a user account. If the user is not presented, the tag will not be authorized! It makes sense to prepare the tags in advance, in case there is another process/entity is going to later assign them!",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),partnerId:t.Number({displayName:"Partner Id",description:"The administrator accounts of the selected Partner will be able to edit and delete the specified ID tag",required:!1})},async run(e){try{let r=l("/public-api/resources/id-tags/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["idTagUid","idLabel","expireAt","status","type","vehicleType","paymentMethodId","userId","externalId","partnerId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Uc=s({auth:o,name:"idTagRead",displayName:"Resources - Id Tags - Read",description:"Get a Id Tag.",audience:"both",aiMetadata:{description:"Fetch a single ID tag by its numeric id, returning its status, type, associated user and payment method. Read-only and idempotent. Use when you already know the tag id; to find tags by other criteria, list them through another action.",idempotent:!0},props:{idTag:t.Number({displayName:"Id Tag",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/id-tags/v2.0/{idTag}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Vc=s({auth:o,name:"idTagUpdate",displayName:"Resources - Id Tags - Update",description:"Update a Id Tag.",audience:"both",aiMetadata:{description:"Modify an existing ID tag identified by its numeric id, for example to enable, disable, or suspend it, reassign its user or payment method, or change its expiry. Idempotent: applies the supplied fields to that one tag, so repeating the same call leaves the same result. Requires the tag to already exist; use idTagCreate to register a new one.",idempotent:!0},props:{idTag:t.Number({displayName:"Id Tag",description:"",required:!0}),idTagUid:t.ShortText({displayName:"Id Tag Uid",description:"Token used for authorization",required:!1}),idLabel:t.ShortText({displayName:"Id Label",description:"Visual or other label that could be associated with the ID Tag",required:!1}),expireAt:t.DateTime({displayName:"Expire At",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"The status of the ID tag. Use it to disable or suspend a tag\n* `enabled` The tag is enabled and is accepted as authentication method\n* `disabled` The tag is disabled by the admin user and is not acceptable as authorization method\n* `suspended` The tag is suspended by the owner of the tag and is not acceptable as authorization method\n",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"},{label:"suspended",value:"suspended"}]}}),type:t.StaticDropdown({displayName:"Type",description:"",required:!1,options:{options:[{label:"rfid",value:"rfid"},{label:"mac_address",value:"mac_address"}]}}),vehicleType:t.StaticDropdown({displayName:"Vehicle Type",description:"",required:!1,options:{options:[{label:"company_car",value:"company_car"},{label:"private_car",value:"private_car"}]}}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:'The payment method that will be associated with the ID Tag.\n* For **credit/debit cards** the `paymentMethodId` should be provided\n* For **Corporate billing** - `corporate:{id}`\n* For **Auto selection** - use `"auto"` (recommended) or `null` (deprecated)\n* The "last used" concept has been replaced with "auto" selection which cycles through available payment methods.\n',required:!1}),userId:t.Number({displayName:"User Id",description:"Associate the ID tag with a user account. If the user is not presented, the tag will not be authorized! It makes sense to prepare the tags in advance, in case there is another process/entity is going to later assign them!",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),partnerId:t.Number({displayName:"Partner Id",description:"The administrator accounts of the selected Partner will be able to edit and delete the specified ID tag",required:!1})},async run(e){try{let r=l("/public-api/resources/id-tags/v2.0/{idTag}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["idTagUid","idLabel","expireAt","status","type","vehicleType","paymentMethodId","userId","externalId","partnerId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var zc=s({auth:o,name:"idTagDelete",displayName:"Resources - Id Tags - Delete",description:"Delete a Id Tag.",audience:"both",aiMetadata:{description:"Permanently delete an id tag by its numeric ID. Idempotent: deleting an already-removed id tag leaves it absent.",idempotent:!0},props:{idTag:t.Number({displayName:"Id Tag",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/id-tags/v2.0/{idTag}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Fc=s({auth:o,name:"getInstallerJobsList",displayName:"Resources - Installer Jobs - Get Installer Jobs List",description:"Get all Installer Jobs.",audience:"both",aiMetadata:{description:"List installer jobs, with optional filters by company, location, charge point, status, installer admin, and created/updated date ranges, plus auto-pagination. Use to find or browse jobs; read-only and safe to retry. To fetch one known job by ID use the get action instead.",idempotent:!0},props:{filter__installationAndMaintenanceCompanyId:t.Number({displayName:"Filter - Installation And Maintenance Company Id",description:"",required:!1}),filter__locationId:t.Number({displayName:"Filter - Location Id",description:"",required:!1}),filter__chargePointId:t.Number({displayName:"Filter - Charge Point Id",description:"",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"The status of the installer job",required:!1,options:{options:[{label:"new",value:"new"},{label:"in_progress",value:"in_progress"},{label:"completed",value:"completed"},{label:"failed",value:"failed"}]}}),filter__installerAdminId:t.Number({displayName:"Filter - Installer Admin Id",description:"",required:!1}),filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"Lists the installer jobs that have been created after the specified date and time, please provide the value as an ISO 8601 formatted date",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"Lists the installer jobs that have been created before the specified date and time, please provide the value as an ISO 8601 formatted date",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"Lists the installer jobs that have been last updated after the specified date and time, please provide the value as an ISO 8601 formatted date",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"Lists the installer jobs that have been last updated before the specified date and time, please provide the value as an ISO 8601 formatted date",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/installer-jobs/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Bc=s({auth:o,name:"createInstallerJob",displayName:"Resources - Installer Jobs - Create",description:"Create Installer Job.",audience:"both",aiMetadata:{description:"Create a new installer job assigned to an installation and maintenance company, with a description and optional installer admin or access PIN. Use to dispatch a new job; to change an existing one use the update action. Not idempotent \u2014 each call creates a new job.",idempotent:!1},props:{installationAndMaintenanceCompanyId:t.Number({displayName:"Installation And Maintenance Company Id",description:"The ID of the installation and maintenance company which the installer job is assigned to",required:!0}),installerAdminId:t.Number({displayName:"Installer Admin Id",description:"The ID of the installer admin if such is assigned to the installer job, if passed pin will be ignored",required:!1}),pin:t.ShortText({displayName:"Pin",description:"The PIN of the installer job, it is used to verify access rights to execute the installer job, if passed and no installerAdminId is provided, the pin will be assigned to the installer job",required:!1}),description:t.ShortText({displayName:"Description",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/installer-jobs/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["installationAndMaintenanceCompanyId","installerAdminId","pin","description"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var $c=s({auth:o,name:"getInstallerJob",displayName:"Resources - Installer Jobs - Get",description:"Get Installer Job.",audience:"both",aiMetadata:{description:"Retrieve a single installer job by its numeric ID, optionally including related charge points. Use when you already know the ID and need its details; read-only and safe to retry. To find jobs by filter use the list action instead.",idempotent:!0},props:{installerJob:t.Number({displayName:"Installer Job",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargePoints",value:"chargePoints"}]}})},async run(e){try{let r=l("/public-api/resources/installer-jobs/v1.0/{installerJob}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Gc=s({auth:o,name:"updateInstallerJob",displayName:"Resources - Installer Jobs - Update",description:"Update Installer Job.",audience:"both",aiMetadata:{description:"Update an existing installer job by its numeric ID, changing its description, installer admin, or access PIN. Use to modify a known job rather than creating one; targets a specific record so re-running with the same values is safe.",idempotent:!0},props:{installerJob:t.Number({displayName:"Installer Job",description:"",required:!0}),installerAdminId:t.Number({displayName:"Installer Admin Id",description:"The ID of the installer admin if such is assigned to the installer job, if passed pin will be ignored",required:!1}),pin:t.ShortText({displayName:"Pin",description:"The PIN of the installer job, it is used to verify access rights to execute the installer job, if passed and no installerAdminId is provided, the pin will be assigned to the installer job",required:!1}),description:t.ShortText({displayName:"Description",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/installer-jobs/v1.0/{installerJob}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["installerAdminId","pin","description"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Hc=s({auth:o,name:"deleteInstallerJob",displayName:"Resources - Installer Jobs - Delete",description:"Delete Installer Job.",audience:"both",aiMetadata:{description:"Permanently delete an installer job by its numeric ID. Use when removing a job; this is destructive and cannot be undone, so confirm the ID first. Re-running after the job is gone will error.",idempotent:!1},props:{installerJob:t.Number({displayName:"Installer Job",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/installer-jobs/v1.0/{installerJob}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Wc=s({auth:o,name:"invoicesListing",displayName:"Resources - Invoices - Listing",description:"Get all invoices.",audience:"both",aiMetadata:{description:"List AMPECO invoices, optionally filtered by an issued-from/issued-to date range. Read-only and idempotent. Enable pagination to fetch all matching invoices across pages. Use this to discover invoice IDs before reading a single invoice.",idempotent:!0},props:{filter__issuedFrom:t.ShortText({displayName:"Filter - Issued From",description:"Only list invoices issued after this time",required:!1}),filter__issuedTo:t.ShortText({displayName:"Filter - Issued To",description:"Only list invoices issued before this time",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/invoices/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Kc=s({auth:o,name:"invoiceRead",displayName:"Resources - Invoices - Read",description:"Invoice / Read.",audience:"both",aiMetadata:{description:"Fetch the details of a single AMPECO invoice by its ID. Read-only and idempotent. Pick this when you already have an invoice ID; to search invoices by issue date or browse them, use the invoices listing action.",idempotent:!0},props:{invoice:t.ShortText({displayName:"Invoice",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/invoices/v1.0/{invoice}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Zc=s({auth:o,name:"locationCreate",displayName:"Resources - Locations - Create",description:"Create a new location.",audience:"both",aiMetadata:{description:"Creates a new charging location in AMPECO; requires a localized name, geoposition latitude/longitude, an address, and a country, with optional working hours, timezone, tags, and external/roaming IDs. Use to add a location; to edit an existing one use the Update action instead. Not idempotent: each call creates a separate location, so guard against duplicates.",idempotent:!1},props:{name:t.Array({displayName:"Name",description:"",required:!0,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),shortDescription:t.Array({displayName:"Short Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),description:t.Array({displayName:"Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),additionalDescription:t.Array({displayName:"Additional Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),geoposition__latitude:t.Number({displayName:"Geoposition - Latitude",description:"",required:!0}),geoposition__longitude:t.Number({displayName:"Geoposition - Longitude",description:"",required:!0}),address:t.Array({displayName:"Address",description:"The full address of the location",required:!0,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),streetAddress:t.Array({displayName:"Street Address",description:"The street address of the location",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),city:t.ShortText({displayName:"City",description:"",required:!1}),region:t.ShortText({displayName:"Region",description:"When country is not in US, AU, CA, UM or RO, you can provide the region",required:!1}),state:t.Dropdown({displayName:"State",required:!1,auth:o,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"],CA:["AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"],UM:["81","84","85","67","89","71","76","95","79"],RO:["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"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),country:t.StaticDropdown({displayName:"Country",description:"",required:!0,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),postCode:t.ShortText({displayName:"Post Code",description:"",required:!1}),workingHours__isAlwaysOpen:t.StaticDropdown({displayName:"Working Hours - Is Always Open",description:"Indicates that the location is always open for charging. If set to false, the `hours` field is required, otherwise it should be ignored.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),workingHours__stopSessionOutsideWorkingHours:t.StaticDropdown({displayName:"Working Hours - Stop Session Outside Working Hours",description:"If a User has initiated a charging session during Working hours but it is already outside of the Working hours, the session will be terminated by the system.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),workingHours__alwaysOpenForUserGroupIds:t.Array({displayName:"Working Hours - Always Open For User Group Ids",description:"",required:!1}),workingHours__hours__monday:t.Array({displayName:"Working Hours - Hours - Monday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__tuesday:t.Array({displayName:"Working Hours - Hours - Tuesday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__wednesday:t.Array({displayName:"Working Hours - Hours - Wednesday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__thursday:t.Array({displayName:"Working Hours - Hours - Thursday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__friday:t.Array({displayName:"Working Hours - Hours - Friday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__saturday:t.Array({displayName:"Working Hours - Hours - Saturday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__sunday:t.Array({displayName:"Working Hours - Hours - Sunday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),timezone:t.ShortText({displayName:"Timezone",description:"A valid timezone in the form of Area/Location, required when `Allow Multiple Time Zones` option is turned on in the Timezone Setting.",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),roamingOperatorId:t.Number({displayName:"Roaming Operator Id",description:"For roaming Locations, the ID of the roaming operator is provided.",required:!1}),tags:t.Array({displayName:"Tags",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/locations/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","shortDescription","description","additionalDescription","geoposition","address","streetAddress","city","region","state","country","postCode","workingHours","timezone","externalId","roamingOperatorId","tags"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var jc=s({auth:o,name:"locationsListing",displayName:"Resources - Locations - Listing",description:"Get all locations.",audience:"both",aiMetadata:{description:"Lists charging locations in AMPECO, optionally narrowing by country/state/region/city, partner or external ID, tag, or last-updated window. Use to discover locations or find a location ID before reading or editing it; with no filters it returns all locations, and enabling Paginate Results walks every page instead of a single capped page. Read-only and idempotent.",idempotent:!0},props:{filter__country:t.StaticDropdown({displayName:"Filter - Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),filter__state:t.Dropdown({displayName:"State",auth:o,required:!1,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"],CA:["AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"],UM:["81","84","85","67","89","71","76","95","79"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),filter__region:t.ShortText({displayName:"Filter - Region",description:"",required:!1}),filter__city:t.ShortText({displayName:"Filter - City",description:"",required:!1}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"",required:!1}),filter__externalId:t.ShortText({displayName:"Filter - External Id",description:"",required:!1}),filter__tag:t.ShortText({displayName:"Filter - Tag",description:"Only list Locations that have the specific tag assigned.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the locations that were last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the locations that were last updated on and before this datetime",required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingZones",value:"chargingZones"},{label:"locationImage",value:"locationImage"},{label:"images",value:"images"},{label:"externalAppData",value:"externalAppData"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/locations/v2.0",e.propsValue),a=p(e.propsValue,["filter","include","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Qc=s({auth:o,name:"locationUpdate",displayName:"Resources - Locations - Update",description:"Update a location.",audience:"both",aiMetadata:{description:"Updates an existing AMPECO charging location by its numeric ID, covering localized names/descriptions, geoposition, address, working hours, timezone, tags, and roaming/external IDs. Use to edit a known location; to add a new one use the Create action instead. Geoposition latitude and longitude are always required; setting fields to supplied values converges to the same state, so it is idempotent.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingZones",value:"chargingZones"},{label:"locationImage",value:"locationImage"},{label:"images",value:"images"},{label:"externalAppData",value:"externalAppData"}]}}),name:t.Array({displayName:"Name",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),shortDescription:t.Array({displayName:"Short Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),description:t.Array({displayName:"Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),additionalDescription:t.Array({displayName:"Additional Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),geoposition__latitude:t.Number({displayName:"Geoposition - Latitude",description:"",required:!0}),geoposition__longitude:t.Number({displayName:"Geoposition - Longitude",description:"",required:!0}),address:t.Array({displayName:"Address",description:"The full address of the location",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),streetAddress:t.Array({displayName:"Street Address",description:"The street address of the location",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),city:t.ShortText({displayName:"City",description:"",required:!1}),region:t.ShortText({displayName:"Region",description:"When country is not in US, AU, CA, UM or RO, you can provide the region",required:!1}),state:t.Dropdown({displayName:"State",required:!1,auth:o,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"],CA:["AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"],UM:["81","84","85","67","89","71","76","95","79"],RO:["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"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),postCode:t.ShortText({displayName:"Post Code",description:"",required:!1}),workingHours__isAlwaysOpen:t.StaticDropdown({displayName:"Working Hours - Is Always Open",description:"Indicates that the location is always open for charging. If set to false, the `hours` field is required, otherwise it should be ignored.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),workingHours__stopSessionOutsideWorkingHours:t.StaticDropdown({displayName:"Working Hours - Stop Session Outside Working Hours",description:"If a User has initiated a charging session during Working hours but it is already outside of the Working hours, the session will be terminated by the system.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),workingHours__alwaysOpenForUserGroupIds:t.Array({displayName:"Working Hours - Always Open For User Group Ids",description:"",required:!1}),workingHours__hours__monday:t.Array({displayName:"Working Hours - Hours - Monday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__tuesday:t.Array({displayName:"Working Hours - Hours - Tuesday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__wednesday:t.Array({displayName:"Working Hours - Hours - Wednesday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__thursday:t.Array({displayName:"Working Hours - Hours - Thursday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__friday:t.Array({displayName:"Working Hours - Hours - Friday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__saturday:t.Array({displayName:"Working Hours - Hours - Saturday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),workingHours__hours__sunday:t.Array({displayName:"Working Hours - Hours - Sunday",description:"Working hours interval for single day.",required:!1,properties:{start:t.ShortText({displayName:"Start",description:"",required:!0}),end:t.ShortText({displayName:"End",description:"",required:!0})}}),timezone:t.ShortText({displayName:"Timezone",description:"A valid timezone in the form of Area/Location, required when `Allow Multiple Time Zones` option is turned on in the Timezone Setting.",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),roamingOperatorId:t.Number({displayName:"Roaming Operator Id",description:"For roaming Locations, the ID of the roaming operator is provided.",required:!1}),tags:t.Array({displayName:"Tags",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}",e.propsValue),a=p(e.propsValue,["include"]),i=m(e.propsValue,["name","shortDescription","description","additionalDescription","geoposition","address","streetAddress","city","region","state","country","postCode","workingHours","timezone","externalId","roamingOperatorId","tags"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Yc=s({auth:o,name:"locationRead",displayName:"Resources - Locations - Read",description:"Get a location.",audience:"both",aiMetadata:{description:"Fetches a single charging location from AMPECO by its numeric ID, optionally expanding related data such as charging zones or images via the Include option. Use to retrieve one known location; to search or discover location IDs use the Listing action instead. Read-only and idempotent.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingZones",value:"chargingZones"},{label:"locationImage",value:"locationImage"},{label:"images",value:"images"},{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Jc=s({auth:o,name:"locationDelete",displayName:"Resources - Locations - Delete",description:"Delete a location.",audience:"both",aiMetadata:{description:"Permanently deletes one AMPECO charging location by its numeric ID. Use only when the location should be removed entirely; requires the location ID. Idempotent in effect: repeating the call converges to the same removed state, though a second call may report the location as already gone.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"chargingZones",value:"chargingZones"},{label:"locationImage",value:"locationImage"},{label:"images",value:"images"},{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Xc=s({auth:o,name:"locationChargingZonesListing",displayName:"Resources - Locations - Listing Charging Zones",description:"Get all Charging Zones.",audience:"both",aiMetadata:{description:"Lists the charging zones belonging to one AMPECO location, identified by its numeric location ID. Use to enumerate or discover zone IDs within a known location before reading or editing them; enable Paginate Results to fetch every zone across pages rather than a single capped page. Read-only and idempotent.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}/charging-zones",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var ed=s({auth:o,name:"locationChargingZoneCreate",displayName:"Resources - Locations - Create Charging Zone",description:"Create a new Charging Zone.",audience:"both",aiMetadata:{description:"Creates a new charging zone under a given AMPECO location; requires the location ID, a zone name, and a status (enabled/disabled). Use to add a zone to an existing location; to change an existing zone use the Update Charging Zone action. Not idempotent: each call creates a separate zone, so guard against duplicates.",idempotent:!1},props:{location:t.Number({displayName:"Location",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"Internal name of the Charging Zone. This isn't visible to end-users in the app.",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),additionalInfo__enabled:t.StaticDropdown({displayName:"Additional Info - Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),additionalInfo__title:t.Array({displayName:"Additional Info - Title",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),additionalInfo__description:t.Array({displayName:"Additional Info - Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}/charging-zones",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","status","additionalInfo"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var td=s({auth:o,name:"locationChargingZoneRead",displayName:"Resources - Locations - Read Charging Zone",description:"Get a Charging Zone.",audience:"both",aiMetadata:{description:"Fetches a single charging zone within an AMPECO location; requires both the location ID and the charging zone ID. Use to retrieve one known zone; to enumerate the zones of a location use the Listing Charging Zones action. Read-only and idempotent.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),chargingZone:t.Number({displayName:"Charging Zone",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}/charging-zones/{chargingZone}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var rd=s({auth:o,name:"locationChargingZoneUpdate",displayName:"Resources - Locations - Update Charging Zone",description:"Update a existing Charging Zone.",audience:"both",aiMetadata:{description:"Updates editable fields (name, status, localized additional info) of an existing charging zone, identified by its location ID and charging zone ID. Use to modify a known zone; to add a new one use the Create Charging Zone action. Only the fields you supply are changed, so repeating the same call converges to the same state and is idempotent.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),chargingZone:t.Number({displayName:"Charging Zone",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"Internal name of the Charging Zone. This isn't visible to end-users in the app.",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),additionalInfo__enabled:t.StaticDropdown({displayName:"Additional Info - Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),additionalInfo__title:t.Array({displayName:"Additional Info - Title",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),additionalInfo__description:t.Array({displayName:"Additional Info - Description",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}/charging-zones/{chargingZone}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","status","additionalInfo"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var ad=s({auth:o,name:"locationChargingZoneDelete",displayName:"Resources - Locations - Delete Charging Zone",description:"Location / Charging Zone / Delete.",audience:"both",aiMetadata:{description:"Permanently deletes one charging zone from a given AMPECO location; requires both the location ID and the charging zone ID. Use to remove a single zone. Idempotent in effect: the end state is the zone being gone, though repeating may report it as already removed.",idempotent:!0},props:{location:t.Number({displayName:"Location",description:"",required:!0}),chargingZone:t.Number({displayName:"Charging Zone",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/locations/v2.0/{location}/charging-zones/{chargingZone}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var id=s({auth:o,name:"createParkingSpace",displayName:"Resources - Parking Spaces - Create",description:"Create new Parking Space.",audience:"both",aiMetadata:{description:"Create a new parking space in AMPECO, tied to a location and optionally linked to EVSEs in the same charging zone. Not idempotent: calling it repeatedly produces duplicate spaces, so pass a stable externalId and check via the list action first if you need dedup.",idempotent:!1},props:{label:t.ShortText({displayName:"Label",description:"",required:!0}),locationId:t.Number({displayName:"Location Id",description:"",required:!0}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),occupancyStatus:t.StaticDropdown({displayName:"Occupancy Status",description:"",required:!1,options:{options:[{label:"unknown",value:"unknown"},{label:"available",value:"available"},{label:"occupied",value:"occupied"}]}}),disabilitiesAccessible:t.StaticDropdown({displayName:"Disabilities Accessible",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),evses:t.Array({displayName:"Evses",description:"The list of Evses at the same Parking Space. The Evses should belongs to same charging zone.",required:!1})},async run(e){try{let r=l("/public-api/resources/parking-spaces/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["label","locationId","externalId","status","occupancyStatus","disabilitiesAccessible","evses"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var od=s({auth:o,name:"listParkingSpace",displayName:"Resources - Parking Spaces - List",description:"Get all Parking spaces.",audience:"both",aiMetadata:{description:"List parking spaces, optionally filtered by externalId or restricted to a single EVSE. Read-only and idempotent. Enable Paginate Results to walk every page when you need the full set rather than a single page.",idempotent:!0},props:{filter__externalId:t.ShortText({displayName:"Filter - External Id",description:"",required:!1}),filter__evseId:t.Number({displayName:"Filter - Evse Id",description:"Only list Parking spaces on a certain EVSE",required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"evses",value:"evses"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/parking-spaces/v1.0",e.propsValue),a=p(e.propsValue,["filter","include","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var nd=s({auth:o,name:"updateParkingSpace",displayName:"Resources - Parking Spaces - Update",description:"Update Parking Space.",audience:"both",aiMetadata:{description:"Update a parking space by its numeric ID, replacing fields such as label, location, status, occupancy status, accessibility, external ID, and associated EVSEs. Uses a full PUT replacement, so re-running with the same values is safe. Use to modify a known parking space.",idempotent:!0},props:{parkingSpace:t.Number({displayName:"Parking Space",description:"",required:!0}),label:t.ShortText({displayName:"Label",description:"",required:!0}),locationId:t.Number({displayName:"Location Id",description:"",required:!0}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),occupancyStatus:t.StaticDropdown({displayName:"Occupancy Status",description:"",required:!1,options:{options:[{label:"unknown",value:"unknown"},{label:"available",value:"available"},{label:"occupied",value:"occupied"}]}}),disabilitiesAccessible:t.StaticDropdown({displayName:"Disabilities Accessible",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),evses:t.Array({displayName:"Evses",description:"The list of Evses at the same Parking Space. The Evses should belongs to same charging zone.",required:!1})},async run(e){try{let r=l("/public-api/resources/parking-spaces/v1.0/{parkingSpace}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["label","locationId","externalId","status","occupancyStatus","disabilitiesAccessible","evses"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var sd=s({auth:o,name:"getParkingSpace",displayName:"Resources - Parking Spaces - Get",description:"Get Parking Space.",audience:"both",aiMetadata:{description:"Retrieve a single parking space by its numeric ID, optionally including its related EVSEs. Use when you already know the ID and need its details; read-only and safe to retry.",idempotent:!0},props:{parkingSpace:t.Number({displayName:"Parking Space",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"evses",value:"evses"}]}})},async run(e){try{let r=l("/public-api/resources/parking-spaces/v1.0/{parkingSpace}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ld=s({auth:o,name:"deleteParkingSpace",displayName:"Resources - Parking Spaces - Delete",description:"Delete Parking Space.",audience:"both",aiMetadata:{description:"Permanently delete a parking space by its numeric id. Destructive and not reversible; deleting an already-removed id will error. Naturally idempotent in effect (the space ends up gone) but treat as unsafe to retry blindly.",idempotent:!1},props:{parkingSpace:t.Number({displayName:"Parking Space",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/parking-spaces/v1.0/{parkingSpace}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var pd=s({auth:o,name:"partnerContractsListing",displayName:"Resources - Partner Contracts - Listing",description:"Get all Partner Contracts.",audience:"both",aiMetadata:{description:"List all AMPECO partner contracts, optionally auto-paginating across pages to gather every result. Use to discover contract IDs or survey existing partner agreements before reading or creating one; for a known single contract use the partner contract read action. Read-only and idempotent.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partner-contracts/v1.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var ud=s({auth:o,name:"partnerContractCreate",displayName:"Resources - Partner Contracts -Create",description:"Create new Partner Contract.",audience:"both",aiMetadata:{description:"Create a new AMPECO partner contract, setting its effective period, auto-renewal, access permissions, revenue-sharing percentages, and monthly platform fees for a given partner. Not idempotent: each call creates a separate contract, so guard against duplicates. Requires a valid partner ID and a start date (contract takes effect from the first of the selected month).",idempotent:!1},props:{title:t.ShortText({displayName:"Title",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"",required:!0}),startDate:t.DateTime({displayName:"Start Date",description:"The contract is effective from the first of the selected month.",required:!0}),endDate:t.DateTime({displayName:"End Date",description:"The contract expires at the last day of the selected month. If nothing is selected, there is no expiration date.",required:!1}),autoRenewal:t.StaticDropdown({displayName:"Auto Renewal",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__sessionsRemoteControl:t.StaticDropdown({displayName:"Access And Permissions - Sessions Remote Control",description:"Allows the partner to start/stop session, unlock connector, trigger message, set a charging profile and get the composite schedule.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__startReservation:t.StaticDropdown({displayName:"Access And Permissions - Start Reservation",description:"Allows the partner to make reservations.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__stopReservation:t.StaticDropdown({displayName:"Access And Permissions - Stop Reservation",description:"Allows the partner to cancel reservations.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__resetChargePoint:t.StaticDropdown({displayName:"Access And Permissions - Reset Charge Point",description:"Allows the partner to reset charge points.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__firmwareUpdate:t.StaticDropdown({displayName:"Access And Permissions - Firmware Update",description:"Allows the partner to make firmware updates to the charge points.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__partnerSharePercentageAcEvse:t.Number({displayName:"Revenue Sharing - Partner Share Percentage Ac Evse",description:"",required:!1}),revenueSharing__partnerSharePercentageDcEvse:t.Number({displayName:"Revenue Sharing - Partner Share Percentage Dc Evse",description:"",required:!1}),revenueSharing__excludeConnectionFee:t.StaticDropdown({displayName:"Revenue Sharing - Exclude Connection Fee",description:"If the tariff has a Connection fee, this fee would not be included in the revenue sharing with the Partner and will remain entirely for the Operator.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__deductElectricityCost:t.StaticDropdown({displayName:"Revenue Sharing - Deduct Electricity Cost",description:"The cost of the electricity would first be deducted from the collected revenue and then the Revenue sharing rules will be applied.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__reimburseForElectricityCost:t.StaticDropdown({displayName:"Revenue Sharing - Reimburse For Electricity Cost",description:"If set to true, the Partner would receive not only their share of the revenue but also a reimbursement for the cost of the electricity.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__fixedFeePerSessionAc:t.Number({displayName:"Revenue Sharing - Fixed Fee Per Session Ac",description:"Additional flat fee that is applied for every billed session and subtracted from the Partner\u2019s share of the revenue for each session on AC Charging Station.",required:!1}),revenueSharing__fixedFeePerSessionDc:t.Number({displayName:"Revenue Sharing - Fixed Fee Per Session Dc",description:"Additional flat fee that is applied for every billed session and subtracted from the Partner\u2019s share of the revenue for each session on DC Charging Station.",required:!1}),revenueSharing__feePerKwhAc:t.Number({displayName:"Revenue Sharing - Fee Per Kwh Ac",description:"Additional flat fee that is applied for every billed kWh and subtracted from the Partner's share of the revenue for each kWh billed on AC Charging Station.",required:!1}),revenueSharing__feePerKwhDc:t.Number({displayName:"Revenue Sharing - Fee Per Kwh Dc",description:"Additional flat fee that is applied for every billed kWh and subtracted from the Partner's share of the revenue for each kWh billed on DC Charging Station.",required:!1}),revenueSharing__handlingFee:t.Number({displayName:"Revenue Sharing - Handling Fee",description:`Additional percentage fee to be applied on the total amount paid by the user for the session. This fee is then subtracted from the Partner's share of the revenue. This fee is available only if the feature "Additional Platform Fees" is enabled for the system.`,required:!1}),monthlyPlatformFees__perChargePoint:t.Number({displayName:"Monthly Platform Fees - Per Charge Point",description:"The provided amount should be excluding VAT.",required:!1}),monthlyPlatformFees__perAcEvse:t.Number({displayName:"Monthly Platform Fees - Per Ac Evse",description:"The provided amount should be excluding VAT.",required:!1}),monthlyPlatformFees__perDcEvse:t.Number({displayName:"Monthly Platform Fees - Per Dc Evse",description:"The provided amount should be excluding VAT.",required:!1})},async run(e){try{let r=l("/public-api/resources/partner-contracts/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["title","partnerId","startDate","endDate","autoRenewal","accessAndPermissions","revenueSharing","monthlyPlatformFees"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var cd=s({auth:o,name:"partnerContractRead",displayName:"Resources - Partner Contracts - Read",description:"Get a Partner Contract.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO partner contract by its numeric ID, returning its terms such as revenue-sharing rules, access permissions, and platform fees. Use when you already know the contract ID; to discover IDs or browse contracts, use the partner contracts listing action instead. Read-only and idempotent.",idempotent:!0},props:{partnerContract:t.Number({displayName:"Partner Contract",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-contracts/v1.0/{partnerContract}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var dd=s({auth:o,name:"partnerContractUpdate",displayName:"Resources - Partner Contracts - Update",description:"Update a Partner Contract.",audience:"both",aiMetadata:{description:"Replaces an existing partner contract in AMPECO by its numeric ID, setting title, partner, start/end dates, auto-renewal, access permissions, revenue-sharing terms, and monthly platform fees. Use to edit a known contract; title, partner ID, and start date are always required. This is a full PUT replace, so sending the same payload converges to the same state and is idempotent.",idempotent:!0},props:{partnerContract:t.Number({displayName:"Partner Contract",description:"",required:!0}),title:t.ShortText({displayName:"Title",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"",required:!0}),startDate:t.DateTime({displayName:"Start Date",description:"The contract is effective from the first of the selected month.",required:!0}),endDate:t.DateTime({displayName:"End Date",description:"The contract expires at the last day of the selected month. If nothing is selected, there is no expiration date.",required:!1}),autoRenewal:t.StaticDropdown({displayName:"Auto Renewal",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__sessionsRemoteControl:t.StaticDropdown({displayName:"Access And Permissions - Sessions Remote Control",description:"Allows the partner to start/stop session, unlock connector, trigger message, set a charging profile and get the composite schedule.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__startReservation:t.StaticDropdown({displayName:"Access And Permissions - Start Reservation",description:"Allows the partner to make reservations.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__stopReservation:t.StaticDropdown({displayName:"Access And Permissions - Stop Reservation",description:"Allows the partner to cancel reservations.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__resetChargePoint:t.StaticDropdown({displayName:"Access And Permissions - Reset Charge Point",description:"Allows the partner to reset charge points.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),accessAndPermissions__firmwareUpdate:t.StaticDropdown({displayName:"Access And Permissions - Firmware Update",description:"Allows the partner to make firmware updates to the charge points.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__partnerSharePercentageAcEvse:t.Number({displayName:"Revenue Sharing - Partner Share Percentage Ac Evse",description:"",required:!1}),revenueSharing__partnerSharePercentageDcEvse:t.Number({displayName:"Revenue Sharing - Partner Share Percentage Dc Evse",description:"",required:!1}),revenueSharing__excludeConnectionFee:t.StaticDropdown({displayName:"Revenue Sharing - Exclude Connection Fee",description:"If the tariff has a Connection fee, this fee would not be included in the revenue sharing with the Partner and will remain entirely for the Operator.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__deductElectricityCost:t.StaticDropdown({displayName:"Revenue Sharing - Deduct Electricity Cost",description:"The cost of the electricity would first be deducted from the collected revenue and then the Revenue sharing rules will be applied.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__reimburseForElectricityCost:t.StaticDropdown({displayName:"Revenue Sharing - Reimburse For Electricity Cost",description:"If set to true, the Partner would receive not only their share of the revenue but also a reimbursement for the cost of the electricity.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),revenueSharing__fixedFeePerSessionAc:t.Number({displayName:"Revenue Sharing - Fixed Fee Per Session Ac",description:"Additional flat fee that is applied for every billed session and subtracted from the Partner\u2019s share of the revenue for each session on AC Charging Station.",required:!1}),revenueSharing__fixedFeePerSessionDc:t.Number({displayName:"Revenue Sharing - Fixed Fee Per Session Dc",description:"Additional flat fee that is applied for every billed session and subtracted from the Partner\u2019s share of the revenue for each session on DC Charging Station.",required:!1}),revenueSharing__feePerKwhAc:t.Number({displayName:"Revenue Sharing - Fee Per Kwh Ac",description:"Additional flat fee that is applied for every billed kWh and subtracted from the Partner's share of the revenue for each kWh billed on AC Charging Station.",required:!1}),revenueSharing__feePerKwhDc:t.Number({displayName:"Revenue Sharing - Fee Per Kwh Dc",description:"Additional flat fee that is applied for every billed kWh and subtracted from the Partner's share of the revenue for each kWh billed on DC Charging Station.",required:!1}),revenueSharing__handlingFee:t.Number({displayName:"Revenue Sharing - Handling Fee",description:`Additional percentage fee to be applied on the total amount paid by the user for the session. This fee is then subtracted from the Partner's share of the revenue. This fee is available only if the feature "Additional Platform Fees" is enabled for the system.`,required:!1}),monthlyPlatformFees__perChargePoint:t.Number({displayName:"Monthly Platform Fees - Per Charge Point",description:"The provided amount should be excluding VAT.",required:!1}),monthlyPlatformFees__perAcEvse:t.Number({displayName:"Monthly Platform Fees - Per Ac Evse",description:"The provided amount should be excluding VAT.",required:!1}),monthlyPlatformFees__perDcEvse:t.Number({displayName:"Monthly Platform Fees - Per Dc Evse",description:"The provided amount should be excluding VAT.",required:!1})},async run(e){try{let r=l("/public-api/resources/partner-contracts/v1.0/{partnerContract}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["title","partnerId","startDate","endDate","autoRenewal","accessAndPermissions","revenueSharing","monthlyPlatformFees"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var md=s({auth:o,name:"partnerContractDelete",displayName:"Resources - Partner Contracts - Delete",description:"Delete a Partner Contract.",audience:"both",aiMetadata:{description:"Deletes one partner contract in AMPECO by its numeric ID. Use to remove a contract; requires the partner contract ID. Idempotent in effect: the end state is the contract being gone, though a repeat call may report it as already removed.",idempotent:!0},props:{partnerContract:t.Number({displayName:"Partner Contract",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-contracts/v1.0/{partnerContract}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var fd=s({auth:o,name:"expensesListing",displayName:"Resources - Partner Expenses - Expenses Listing",description:"Get all expenses.",audience:"both",aiMetadata:{description:"List partner expense records in AMPECO, optionally filtered by partner, settlement report, date range, origin, or currency code, and optionally with a per-record breakdown. Read-only and idempotent. Enable Paginate Results to walk every page up to the Per page cap. For the income side use Partner Revenues Listing instead.",idempotent:!0},props:{filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list expenses associated with a certain partner",required:!1}),filter__settlementReportId:t.Number({displayName:"Filter - Settlement Report Id",description:"Only list expenses associated with a certain settlement report",required:!1}),filter__dateBefore:t.DateTime({displayName:"Filter - Date Before",description:"",required:!1}),filter__dateAfter:t.DateTime({displayName:"Filter - Date After",description:"",required:!1}),filter__origin:t.StaticDropdown({displayName:"Filter - Origin",description:"Only list revenue by origin",required:!1,options:{options:[{label:"platform-fee-emsp",value:"platform-fee-emsp"},{label:"platform-fee-cpo",value:"platform-fee-cpo"},{label:"user-custom-fee",value:"user-custom-fee"},{label:"session-emsp",value:"session-emsp"}]}}),filter__currencyCode:t.ShortText({displayName:"Filter - Currency Code",description:"3-letter currency code (ISO 4217). Only list expenses by currency",required:!1}),withBreakdown:t.StaticDropdown({displayName:"With Breakdown",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partner-expenses/v1.1",e.propsValue),a=p(e.propsValue,["filter","withBreakdown","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var hd=s({auth:o,name:"partnerInvitesListing",displayName:"Resources - Partner Invites - Listing",description:"Get all partner invites.",audience:"both",aiMetadata:{description:"Lists partner invites in AMPECO, optionally filtered by partner, status (pending/sent/accepted), accepting user, invite email, or a creation date range. Use to find an invite ID or audit invite status; with no filters it returns all invites, and enabling Paginate Results walks every page rather than a single capped page. Read-only and idempotent.",idempotent:!0},props:{filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list expenses associated with a certain partner",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Only list invites in this status",required:!1,options:{options:[{label:"pending",value:"pending"},{label:"sent",value:"sent"},{label:"accepted",value:"accepted"}]}}),filter__createdFrom:t.DateTime({displayName:"Filter - Created From",description:"",required:!1}),filter__createdTo:t.DateTime({displayName:"Filter - Created To",description:"",required:!1}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Only list partner invite records accepted by a certain user",required:!1}),filter__inviteEmail:t.ShortText({displayName:"Filter - Invite Email",description:"Only list partner invite records sent to a particular email address",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partner-invites/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var yd=s({auth:o,name:"partnerInviteCreate",displayName:"Resources - Partner Invites - Create",description:"Create new invite.",audience:"both",aiMetadata:{description:"Creates a new partner invite in AMPECO for a given partner ID, optionally emailing it to an invitee (email is required unless Send Via Email is false) and setting billing/access option flags. Use to invite someone to a partner; to change an existing invite use the Update action. Not idempotent: each call issues a separate invite (and may send an email), so guard against duplicates.",idempotent:!1},props:{partnerId:t.Number({displayName:"Partner Id",description:"",required:!0}),sendViaEmail:t.StaticDropdown({displayName:"Send Via Email",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),email:t.ShortText({displayName:"Email",description:"Required by default. Prohibited if sendViaEmail is false.",required:!1}),language:t.ShortText({displayName:"Language",description:"The language of the e-mail sent to the invitee. If none selected, the default end-users language will be used. Prohibited if `sendViaEmail` is false.",required:!1}),options__allowCorporateAccountBilling:t.StaticDropdown({displayName:"Options - Allow Corporate Account Billing",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__limitCorporateAccountBillingToPartnerChargePoints:t.StaticDropdown({displayName:"Options - Limit Corporate Account Billing To Partner Charge Points",description:"Required if allowCorporateAccountBilling is true.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__allowAccessToPrivateChargePoints:t.StaticDropdown({displayName:"Options - Allow Access To Private Charge Points",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/resources/partner-invites/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["partnerId","sendViaEmail","email","language","options"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var bd=s({auth:o,name:"partnerInviteRead",displayName:"Resources - Partner Invites - Read",description:"Get a invite.",audience:"both",aiMetadata:{description:"Fetches a single partner invite from AMPECO by its numeric ID. Use to retrieve one known invite; to search or discover invite IDs use the Listing action. Read-only and idempotent.",idempotent:!0},props:{partnerInvite:t.Number({displayName:"Partner Invite",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-invites/v1.0/{partnerInvite}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var gd=s({auth:o,name:"partnerInviteUpdate",displayName:"Resources - Partner Invites - Update",description:"Update a invite.",audience:"both",aiMetadata:{description:"Updates an existing partner invite in AMPECO by its numeric ID, changing the partner association and billing/access option flags. Use to amend an outstanding invite; to issue a new one use the Create action. Only supplied fields change, so repeating the same call converges to the same state and is idempotent.",idempotent:!0},props:{partnerInvite:t.Number({displayName:"Partner Invite",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"",required:!1}),options__allowCorporateAccountBilling:t.StaticDropdown({displayName:"Options - Allow Corporate Account Billing",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__limitCorporateAccountBillingToPartnerChargePoints:t.StaticDropdown({displayName:"Options - Limit Corporate Account Billing To Partner Charge Points",description:"Required if allowCorporateAccountBilling is true.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__allowAccessToPrivateChargePoints:t.StaticDropdown({displayName:"Options - Allow Access To Private Charge Points",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/resources/partner-invites/v1.0/{partnerInvite}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["partnerId","options"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var vd=s({auth:o,name:"partnerInviteDelete",displayName:"Resources - Partner Invites - Partner Invite Delete",description:"Delete an invite.",audience:"both",aiMetadata:{description:"Deletes one partner invite in AMPECO by its numeric ID. Use to revoke or remove an outstanding invite; requires the partner invite ID. Idempotent in effect: the end state is the invite being gone, though a repeat call may report it as already removed.",idempotent:!0},props:{partnerInvite:t.Number({displayName:"Partner Invite",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-invites/v1.0/{partnerInvite}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Pd=s({auth:o,name:"revenuesListing",displayName:"Resources - Partner Revenues - Revenues Listing",description:"Get all revenues.",audience:"both",aiMetadata:{description:"List partner revenue records in AMPECO, optionally filtered by partner, settlement report, date range, origin, or currency code. Read-only and idempotent. Enable Paginate Results to walk every page up to the Per page cap; leave it off to fetch a single page. For the cost side use Partner Expenses Listing instead.",idempotent:!0},props:{filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list revenue associated with a certain partner",required:!1}),filter__settlementReportId:t.Number({displayName:"Filter - Settlement Report Id",description:"Only list revenue associated with a certain settlement report",required:!1}),filter__dateBefore:t.DateTime({displayName:"Filter - Date Before",description:"",required:!1}),filter__dateAfter:t.DateTime({displayName:"Filter - Date After",description:"",required:!1}),filter__origin:t.StaticDropdown({displayName:"Filter - Origin",description:"Only list revenue by origin",required:!1,options:{options:[{label:"electricity-tax-reimbursement",value:"electricity-tax-reimbursement"},{label:"session-cpo",value:"session-cpo"}]}}),filter__currencyCode:t.ShortText({displayName:"Filter - Currency Code",description:"3-letter currency code (ISO 4217). Only list revenue by currency",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partner-revenues/v1.1",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Ad=s({auth:o,name:"partnerSettlementReportsListing",displayName:"Resources - Partner Settlement Reports - Listing",description:"Get all Partner Settlement Reports.",audience:"both",aiMetadata:{description:"List partner settlement reports, optionally filtered by partner id and a settlement-period date range. Read-only and idempotent. Use to discover reports; for the individual records within a report use the record listing actions. Enable Paginate Results to walk every page.",idempotent:!0},props:{filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"",required:!1}),filter__periodAfter:t.DateTime({displayName:"Filter - Period After",description:"",required:!1}),filter__periodBefore:t.DateTime({displayName:"Filter - Period Before",description:"",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Nd=s({auth:o,name:"partnerSettlementReportRead",displayName:"Resources - Partner Settlement Reports - Read",description:"Get a single Partner Settlement Report.",audience:"both",aiMetadata:{description:"Fetch a single partner settlement report by its numeric id. Read-only and idempotent. Use when you know the report id; to discover reports by partner or period use the Listing action, and for the records inside a report use the records listing/read actions.",idempotent:!0},props:{partnerSettlementReport:t.Number({displayName:"Partner Settlement Report",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0/{partnerSettlementReport}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Sd=s({auth:o,name:"partnerSettlementReportPartnerSettlementRecordsListing",displayName:"Resources - Partner Settlement Reports - Listing Partner Settlement Records",description:"Get all Partner Settlement Records.",audience:"both",aiMetadata:{description:"List the settlement records belonging to a given partner settlement report (identified by report id). Read-only and idempotent. Use to enumerate the payment records inside a report; to read one known record use Read Partner Settlement Record. Enable Paginate Results to walk every page.",idempotent:!0},props:{partnerSettlementReport:t.Number({displayName:"Partner Settlement Report",description:"",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0/{partnerSettlementReport}/records",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Td=s({auth:o,name:"partnerSettlementReportPartnerSettlementRecordCreate",displayName:"Resources - Partner Settlement Reports - Create Partner Settlement Record",description:"Create Partner Settlement Record.",audience:"both",aiMetadata:{description:"Add a settlement record (date, paid amount, note) to an existing partner settlement report. Not idempotent: each call appends a new record, so retrying can create duplicate payment entries. To change an existing record use Update Partner Settlement Record.",idempotent:!1},props:{partnerSettlementReport:t.Number({displayName:"Partner Settlement Report",description:"",required:!0}),date:t.DateTime({displayName:"Date",description:"",required:!0}),paidAmount:t.Number({displayName:"Paid Amount",description:"",required:!0}),note:t.ShortText({displayName:"Note",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0/{partnerSettlementReport}/records",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["date","paidAmount","note"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Cd=s({auth:o,name:"partnertSettlementReportPartnerSettlementRecordRead",displayName:"Resources - Partner Settlement Reports - Read Partner Settlement Record",description:"Read Partner Settlement Record.",audience:"both",aiMetadata:{description:"Fetch a single settlement record from a partner settlement report, identified by the report id plus the record id. Read-only and idempotent. Use when you know both ids; to enumerate records use Listing Partner Settlement Records.",idempotent:!0},props:{partnerSettlementReport:t.Number({displayName:"Partner Settlement Report",description:"",required:!0}),PartnerSettlementRecord:t.Number({displayName:"Partner Settlement Record",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0/{partnerSettlementReport}/records/{PartnerSettlementRecord}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Rd=s({auth:o,name:"partnerSettlementReportPartnerSettlementRecordUpdate",displayName:"Resources - Partner Settlement Reports - Update Partner Settlement Record",description:"Update a single Partner Settlement Record.",audience:"both",aiMetadata:{description:"Update an existing settlement record (date, paid amount, note) within a partner settlement report, identified by the report id plus the record id. This is a full replace of the supplied fields, so it is idempotent - repeating it with the same values yields the same result. To add a new record use Create Partner Settlement Record.",idempotent:!0},props:{partnerSettlementReport:t.Number({displayName:"Partner Settlement Report",description:"",required:!0}),PartnerSettlementRecord:t.Number({displayName:"Partner Settlement Record",description:"",required:!0}),date:t.DateTime({displayName:"Date",description:"",required:!0}),paidAmount:t.Number({displayName:"Paid Amount",description:"",required:!0}),note:t.ShortText({displayName:"Note",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0/{partnerSettlementReport}/records/{PartnerSettlementRecord}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["date","paidAmount","note"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var _d=s({auth:o,name:"partnerSettlementReportPartnerSettlementRecordDelete",displayName:"Resources - Partner Settlement Reports - Delete Partner Settlement Record",description:"Delete a single Partner Settlement Record.",audience:"both",aiMetadata:{description:"Permanently delete one settlement record from a partner settlement report, identified by the report id plus the record id. Destructive and not reversible; deleting an already-removed record will error. Do not retry blindly.",idempotent:!1},props:{partnerSettlementReport:t.Number({displayName:"Partner Settlement Report",description:"",required:!0}),PartnerSettlementRecord:t.Number({displayName:"Partner Settlement Record",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partner-settlement-reports/v1.0/{partnerSettlementReport}/records/{PartnerSettlementRecord}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var wd=s({auth:o,name:"partnersListing",displayName:"Resources - Partners - Listing",description:"Get all partners.",audience:"both",aiMetadata:{description:"List AMPECO partners, optionally filtered by country, registration number, or external ID, with Paginate Results to fetch every page. Read-only and idempotent; use this to discover partner IDs before reading, updating, or deleting a specific partner.",idempotent:!0},props:{filter__country:t.StaticDropdown({displayName:"Filter - Country",description:"Lists partners from the specified country",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),filter__regNo:t.ShortText({displayName:"Filter - Reg No",description:"Lists partners with the specified regNo",required:!1}),filter__externalId:t.ShortText({displayName:"Filter - External Id",description:"Only list partner, identified by the externalId",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/partners/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Id=s({auth:o,name:"partnerCreate",displayName:"Resources - Partners - Create",description:"Create new partner.",audience:"both",aiMetadata:{description:"Create a new AMPECO partner (B2B company) with company name plus optional address, contact details, billing, bank, and permission options. Not idempotent: each call creates a separate partner even with the same name. Use partner update to change an existing partner.",idempotent:!1},props:{businessName:t.ShortText({displayName:"Business Name",description:"The Partner's business name is used when showing the name of the Partner to EV drivers and admin users. If not provided, the `name` will be used instead.",required:!1}),name:t.ShortText({displayName:"Name",description:"Company name of the Partner",required:!0}),regNo:t.ShortText({displayName:"Reg No",description:"",required:!1}),vatNo:t.ShortText({displayName:"Vat No",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1}),postcode:t.ShortText({displayName:"Postcode",description:"",required:!1}),city:t.ShortText({displayName:"City",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),region:t.ShortText({displayName:"Region",description:"When country is not in US, AU, CA, UM or RO, you can provide the region",required:!1}),state:t.Dropdown({displayName:"State",required:!1,auth:o,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"],CA:["AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"],UM:["81","84","85","67","89","71","76","95","79"],RO:["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"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),contactDetails__administrative__contactPerson:t.ShortText({displayName:"Contact Details - Administrative - Contact Person",description:"",required:!1}),contactDetails__administrative__email:t.ShortText({displayName:"Contact Details - Administrative - Email",description:"",required:!1}),contactDetails__administrative__phone:t.ShortText({displayName:"Contact Details - Administrative - Phone",description:"",required:!1}),contactDetails__technical__contactPerson:t.ShortText({displayName:"Contact Details - Technical - Contact Person",description:"",required:!1}),contactDetails__technical__email:t.ShortText({displayName:"Contact Details - Technical - Email",description:"",required:!1}),contactDetails__technical__phone:t.ShortText({displayName:"Contact Details - Technical - Phone",description:"",required:!1}),contactDetails__billing__contactPerson:t.ShortText({displayName:"Contact Details - Billing - Contact Person",description:"",required:!1}),contactDetails__billing__email:t.ShortText({displayName:"Contact Details - Billing - Email",description:"",required:!1}),contactDetails__billing__phone:t.ShortText({displayName:"Contact Details - Billing - Phone",description:"",required:!1}),notifications__technical__chargePointFaults:t.StaticDropdown({displayName:"Notifications - Technical - Charge Point Faults",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),notifications__billing__settlementReports:t.StaticDropdown({displayName:"Notifications - Billing - Settlement Reports",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),monthlyPlatformFee:t.Number({displayName:"Monthly Platform Fee",description:"",required:!1}),options__createUsers:t.StaticDropdown({displayName:"Options - Create Users",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__addUserBalance:t.StaticDropdown({displayName:"Options - Add User Balance",description:"When set to false the API tokens related to this partner would not receive the users' balance in the response.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__supplierOnReceipts:t.StaticDropdown({displayName:"Options - Supplier On Receipts",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__allowToControlTariffs:t.StaticDropdown({displayName:"Options - Allow To Control Tariffs",description:"Allows the Partner to update the tariff pricing.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__allowToControlTariffGroups:t.StaticDropdown({displayName:"Options - Allow To Control Tariff Groups",description:"In addition to `allowToControlTariffs`, the Partner would also be able to manage Tariff Groups - attach and remove Tariffs, change Tariffs order in the Tariff Group.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),corporateBilling__enabled:t.StaticDropdown({displayName:"Corporate Billing - Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),corporateBilling__monthlyLimit:t.Number({displayName:"Corporate Billing - Monthly Limit",description:"",required:!1}),corporateBilling__discount:t.Number({displayName:"Corporate Billing - Discount",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"Third party identifier of the partner",required:!1}),bankDetails__bankIban:t.ShortText({displayName:"Bank Details - Bank Iban",description:"IBAN that is provided for the partner.",required:!1}),bankDetails__bankName:t.ShortText({displayName:"Bank Details - Bank Name",description:"Name of the Bank for which the partner has provided IBAN.",required:!1}),bankDetails__bankAddress:t.ShortText({displayName:"Bank Details - Bank Address",description:"Address of the partner's Bank.",required:!1}),bankDetails__bankCode:t.ShortText({displayName:"Bank Details - Bank Code",description:"Bank code assigned by a central bank, a bank supervisory body or a Bankers Association in the country.",required:!1}),bankDetails__bankAccountNumber:t.ShortText({displayName:"Bank Details - Bank Account Number",description:"Bank account ID provided by the partner.",required:!1}),bankDetails__bankAccountType:t.ShortText({displayName:"Bank Details - Bank Account Type",description:"Type of account the Partner has provided.",required:!1})},async run(e){try{let r=l("/public-api/resources/partners/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["businessName","name","regNo","vatNo","address","postcode","city","country","region","state","contactDetails","notifications","monthlyPlatformFee","options","corporateBilling","externalId","bankDetails"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Ed=s({auth:o,name:"partnerRead",displayName:"Resources - Partners - Read",description:"Get a partner.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO partner by its numeric ID. Read-only and idempotent; use when you already have the partner ID. To discover IDs or look up by country, regNo, or externalId, use the partners listing action.",idempotent:!0},props:{partner:t.Number({displayName:"Partner",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partners/v2.0/{partner}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Dd=s({auth:o,name:"partnerUpdate",displayName:"Resources - Partners - Update",description:"Update a partner.",audience:"both",aiMetadata:{description:"Update an existing AMPECO partner identified by its numeric ID, changing fields such as name, address, contact details, billing, bank details, or permission options. A partial PATCH that applies only the fields you supply. Use partner create for a new partner.",idempotent:!1},props:{partner:t.Number({displayName:"Partner",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"Company name of the Partner.",required:!1}),regNo:t.ShortText({displayName:"Reg No",description:"",required:!1}),vatNo:t.ShortText({displayName:"Vat No",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1}),postcode:t.ShortText({displayName:"Postcode",description:"",required:!1}),city:t.ShortText({displayName:"City",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),region:t.ShortText({displayName:"Region",description:"When country is not in US, AU, CA, UM or RO, you can provide the region.",required:!1}),state:t.Dropdown({displayName:"State",auth:o,required:!1,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"],CA:["AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"],UM:["81","84","85","67","89","71","76","95","79"],RO:["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"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),contactDetails__administrative__contactPerson:t.ShortText({displayName:"Contact Details - Administrative - Contact Person",description:"",required:!1}),contactDetails__administrative__email:t.ShortText({displayName:"Contact Details - Administrative - Email",description:"",required:!1}),contactDetails__administrative__phone:t.ShortText({displayName:"Contact Details - Administrative - Phone",description:"",required:!1}),contactDetails__technical__contactPerson:t.ShortText({displayName:"Contact Details - Technical - Contact Person",description:"",required:!1}),contactDetails__technical__email:t.ShortText({displayName:"Contact Details - Technical - Email",description:"",required:!1}),contactDetails__technical__phone:t.ShortText({displayName:"Contact Details - Technical - Phone",description:"",required:!1}),contactDetails__billing__contactPerson:t.ShortText({displayName:"Contact Details - Billing - Contact Person",description:"",required:!1}),contactDetails__billing__email:t.ShortText({displayName:"Contact Details - Billing - Email",description:"",required:!1}),contactDetails__billing__phone:t.ShortText({displayName:"Contact Details - Billing - Phone",description:"",required:!1}),notifications__technical__chargePointFaults:t.StaticDropdown({displayName:"Notifications - Technical - Charge Point Faults",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),notifications__billing__settlementReports:t.StaticDropdown({displayName:"Notifications - Billing - Settlement Reports",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),monthlyPlatformFee:t.Number({displayName:"Monthly Platform Fee",description:"",required:!1}),options__createUsers:t.StaticDropdown({displayName:"Options - Create Users",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__addUserBalance:t.StaticDropdown({displayName:"Options - Add User Balance",description:"When set to false the API tokens related to this partner would not receive the users' balance in the response.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__supplierOnReceipts:t.StaticDropdown({displayName:"Options - Supplier On Receipts",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__allowToControlTariffs:t.StaticDropdown({displayName:"Options - Allow To Control Tariffs",description:"Allows the Partner to update the tariff pricing.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),options__allowToControlTariffGroups:t.StaticDropdown({displayName:"Options - Allow To Control Tariff Groups",description:"In addition to `allowToControlTariffs`, the Partner would also be able to manage Tariff Groups - attach and remove Tariffs, change Tariffs order in the Tariff Group.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),corporateBilling__enabled:t.StaticDropdown({displayName:"Corporate Billing - Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),corporateBilling__monthlyLimit:t.Number({displayName:"Corporate Billing - Monthly Limit",description:"",required:!1}),corporateBilling__discount:t.Number({displayName:"Corporate Billing - Discount",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"Third party identifier of the partner.",required:!1}),bankDetails__bankIban:t.ShortText({displayName:"Bank Details - Bank Iban",description:"IBAN that is provided for the partner.",required:!1}),bankDetails__bankName:t.ShortText({displayName:"Bank Details - Bank Name",description:"Name of the Bank for which the partner has provided IBAN.",required:!1}),bankDetails__bankAddress:t.ShortText({displayName:"Bank Details - Bank Address",description:"Address of the partner's Bank.",required:!1}),bankDetails__bankCode:t.ShortText({displayName:"Bank Details - Bank Code",description:"Bank code assigned by a central bank, a bank supervisory body or a Bankers Association in the country.",required:!1}),bankDetails__bankAccountNumber:t.ShortText({displayName:"Bank Details - Bank Account Number",description:"Bank account ID provided by the partner.",required:!1}),bankDetails__bankAccountType:t.ShortText({displayName:"Bank Details - Bank Account Type",description:"Type of account the Partner has provided.",required:!1})},async run(e){try{let r=l("/public-api/resources/partners/v2.0/{partner}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","regNo","vatNo","address","postcode","city","country","region","state","contactDetails","notifications","monthlyPlatformFee","options","corporateBilling","externalId","bankDetails"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var xd=s({auth:o,name:"partnerDelete",displayName:"Resources - Partners - Delete",description:"Delete a partner.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO partner by its numeric ID. Destructive and not reversible; re-running on an already-deleted partner will fail. Confirm the partner ID via the read or listing action first.",idempotent:!1},props:{partner:t.Number({displayName:"Partner",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/partners/v2.0/{partner}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Md=s({auth:o,name:"getPaymentTerminals",displayName:"Resources - Payment Terminals - Get Payment Terminals",description:"Get all payment terminals.",audience:"both",aiMetadata:{description:"List payment terminals, optionally filtered by serial number. Read-only and idempotent. Enable the Paginate Results option to fetch across pages up to Per page total; otherwise a single page (max 100) is returned. Use getPaymentTerminal when you already know a terminal id.",idempotent:!0},props:{filter__serialNumber:t.ShortText({displayName:"Filter - Serial Number",description:"",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/payment-terminals/v1.0",e.propsValue),a=p(e.propsValue,["page","per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var kd=s({auth:o,name:"createPaymentTerminal",displayName:"Resources - Payment Terminals - Create Payment Terminal",description:"Create a new payment terminal.",audience:"both",aiMetadata:{description:"Register a new payment terminal in AMPECO, supplying fields specific to the selected terminal variant (Payter, Valina, Nayax, Adyen, etc.). Not idempotent: each call creates a separate terminal, so calling twice yields duplicates. Use updatePaymentTerminal to modify an existing terminal instead.",idempotent:!1},props:{requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Payter",value:"1"},{label:"Valina",value:"2"},{label:"Crane",value:"3"},{label:"Ampeco",value:"4"},{label:"Nayax",value:"5"},{label:"Embedded",value:"6"},{label:"Pax",value:"7"},{label:"Windcave",value:"8"},{label:"Web portal",value:"9"},{label:"AdyenCastles",value:"10"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Payter on CP",value:"1"},{label:"Payter on Location",value:"2"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",auth:o,required:!0,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:i})=>{if(!i)return{};let d={1:{preauthorizeAmount:t.Number({displayName:"Preauthorize Amount",description:"Provide a Pre-authorize amount when the terminal is linked to a single charger.",required:!0})},2:{transactionTimeout:t.Number({displayName:"Transaction Timeout",description:"Provide a transaction timeout when the terminal is linked to a Location.",required:!0})}},h=i;return h in d?d[h]:{}},"props")})},2:{networkStatus:t.StaticDropdown({displayName:"Network Status",description:"",required:!1,options:{options:[{label:"online",value:"online"},{label:"offline",value:"offline"},{label:"unknown",value:"unknown"}]}}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),defaultLanguage:t.ShortText({displayName:"Default Language",description:"",required:!1}),presentCardOnStopSession:t.StaticDropdown({displayName:"Present Card On Stop Session",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),info:t.Array({displayName:"Info",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},3:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},4:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},5:{terminalId:t.ShortText({displayName:"Terminal Id",description:"This is the Device Number of the relevant Nayax terminal that is set up in the Nayax system. Please be careful to add the correct Device number on the relevant terminal.",required:!1}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},6:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},7:{verificationCode:t.ShortText({displayName:"Verification Code",description:"",required:!1}),defaultLanguage:t.ShortText({displayName:"Default Language",description:"",required:!1}),presentCardOnStopSession:t.StaticDropdown({displayName:"Present Card On Stop Session",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),info:t.Array({displayName:"Info",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},8:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},9:{},10:{networkStatus:t.StaticDropdown({displayName:"Network Status",description:"",required:!1,options:{options:[{label:"online",value:"online"},{label:"offline",value:"offline"},{label:"unknown",value:"unknown"}]}}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),defaultLanguage:t.ShortText({displayName:"Default Language",description:"",required:!1}),presentCardOnStopSession:t.StaticDropdown({displayName:"Present Card On Stop Session",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),info:t.Array({displayName:"Info",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),merchantAccount:t.ShortText({displayName:"Merchant Account",description:"Unique identifier of the merchant in Adyen's portal.",required:!1}),adyenApiKey:t.ShortText({displayName:"Adyen Api Key",description:"API key to authenticate requests to Adyen.",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/payment-terminals/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","requestBody_VariantType","preauthorizeAmount","transactionTimeout","networkStatus","phone","defaultLanguage","presentCardOnStopSession","info","serialNumber","externalId","terminalId","verificationCode","merchantAccount","adyenApiKey"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var qd=s({auth:o,name:"getPaymentTerminal",displayName:"Resources - Payment Terminals - Get Payment Terminal",description:"Get information for a payment terminal by ID.",audience:"both",aiMetadata:{description:"Fetch a single payment terminal by its id, returning its configuration and status. Read-only and idempotent. Use when you already know the terminal id; to browse terminals or filter by serial number use getPaymentTerminals.",idempotent:!0},props:{paymentTerminal:t.ShortText({displayName:"Payment Terminal",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/payment-terminals/v1.0/{paymentTerminal}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Od=s({auth:o,name:"updatePaymentTerminal",displayName:"Resources - Payment Terminals - Update Payment Terminal",description:"Update Payment terminal.",audience:"both",aiMetadata:{description:"Modify an existing payment terminal identified by its id, supplying fields specific to the selected terminal variant (Payter, Valina, Nayax, Adyen, etc.). Idempotent: applies the supplied fields to that one terminal. Use createPaymentTerminal to register a new terminal, or deletePaymentTerminal to remove one.",idempotent:!0},props:{paymentTerminal:t.ShortText({displayName:"Payment Terminal",description:"",required:!0}),requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Payter",value:"1"},{label:"Valina",value:"2"},{label:"Crane",value:"3"},{label:"Ampeco",value:"4"},{label:"Nayax",value:"5"},{label:"Embedded",value:"6"},{label:"Pax",value:"7"},{label:"Windcave",value:"8"},{label:"Web portal",value:"9"},{label:"AdyenCastles",value:"10"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{requestBody:t.ShortText({displayName:"Request Body",description:"",required:!1})},2:{networkStatus:t.StaticDropdown({displayName:"Network Status",description:"",required:!1,options:{options:[{label:"online",value:"online"},{label:"offline",value:"offline"},{label:"unknown",value:"unknown"}]}}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),defaultLanguage:t.ShortText({displayName:"Default Language",description:"",required:!1}),presentCardOnStopSession:t.StaticDropdown({displayName:"Present Card On Stop Session",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),info:t.Array({displayName:"Info",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},3:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},4:{webhookUrl:t.ShortText({displayName:"Webhook Url",description:"",required:!1}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},5:{terminalId:t.ShortText({displayName:"Terminal Id",description:"This is the Device Number of the relevant Nayax terminal that is set up in the Nayax system. Please be careful to add the correct Device number on the relevant terminal.",required:!1}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},6:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},7:{verificationCode:t.ShortText({displayName:"Verification Code",description:"",required:!1}),defaultLanguage:t.ShortText({displayName:"Default Language",description:"",required:!1}),presentCardOnStopSession:t.StaticDropdown({displayName:"Present Card On Stop Session",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),info:t.Array({displayName:"Info",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},8:{serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1})},9:{name:t.ShortText({displayName:"Name",description:"",required:!1}),integrationId:t.Number({displayName:"Integration Id",description:"",required:!1}),terminalType:t.StaticDropdown({displayName:"Terminal Type",description:"",required:!1,options:{options:[{label:"Payter",value:"Payter"},{label:"Valina",value:"Valina"},{label:"Crane",value:"Crane"},{label:"Ampeco",value:"Ampeco"},{label:"Nayax",value:"Nayax"},{label:"Embedded",value:"Embedded"},{label:"Pax",value:"Pax"},{label:"Windcave",value:"Windcave"},{label:"Web portal",value:"Web portal"},{label:"AdyenCastles",value:"AdyenCastles"}]}}),operatorId:t.Number({displayName:"Operator Id",description:"",required:!1})},10:{networkStatus:t.StaticDropdown({displayName:"Network Status",description:"",required:!1,options:{options:[{label:"online",value:"online"},{label:"offline",value:"offline"},{label:"unknown",value:"unknown"}]}}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),defaultLanguage:t.ShortText({displayName:"Default Language",description:"",required:!1}),presentCardOnStopSession:t.StaticDropdown({displayName:"Present Card On Stop Session",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),info:t.Array({displayName:"Info",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),serialNumber:t.ShortText({displayName:"Serial Number",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"",required:!1}),merchantAccount:t.ShortText({displayName:"Merchant Account",description:"Unique identifier of the merchant in Adyen's portal.",required:!1}),adyenApiKey:t.ShortText({displayName:"Adyen Api Key",description:"API key to authenticate requests to Adyen.",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/payment-terminals/v1.0/{paymentTerminal}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","networkStatus","phone","defaultLanguage","presentCardOnStopSession","info","serialNumber","externalId","webhookUrl","terminalId","verificationCode","name","integrationId","terminalType","operatorId","merchantAccount","adyenApiKey"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Ld=s({auth:o,name:"deletePaymentTerminal",displayName:"Resources - Payment Terminals - Delete Payment Terminal",description:"Delete a payment terminal.",audience:"both",aiMetadata:{description:"Permanently remove a payment terminal identified by its id. Destructive but idempotent: once deleted, repeating the call has no further effect (the terminal is already gone). Use getPaymentTerminal first to confirm you have the right terminal.",idempotent:!0},props:{paymentTerminal:t.ShortText({displayName:"Payment Terminal",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/payment-terminals/v1.0/{paymentTerminal}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Ud=s({auth:o,name:"createPcId",displayName:"Resources - Provisioning Certificates - Create Pc Id",description:"Create Provisioning Certificate.",audience:"both",aiMetadata:{description:"Register a new AMPECO provisioning certificate (Plug & Charge) with a PC ID, name, vehicle type, owning user, and optional ID tags. Not idempotent: each call creates a new certificate. Use update pc id to modify an existing certificate.",idempotent:!1},props:{pcId:t.ShortText({displayName:"Pc Id",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!0}),vehicleType:t.StaticDropdown({displayName:"Vehicle Type",description:"",required:!0,options:{options:[{label:"company",value:"company"},{label:"private",value:"private"}]}}),userId:t.Number({displayName:"User Id",description:"",required:!0}),idTags:t.Array({displayName:"Id Tags",description:"",required:!1,properties:{id:t.Number({displayName:"Id",description:"",required:!1}),type:t.StaticDropdown({displayName:"Type",description:"",required:!1,options:{options:[{label:"rfid",value:"rfid"},{label:"mac_address",value:"mac_address"},{label:"emaid",value:"emaid"}]}}),name:t.ShortText({displayName:"Name",description:"",required:!1}),paymentMethod:t.ShortText({displayName:"Payment Method",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"active",value:"active"},{label:"disabled",value:"disabled"},{label:"suspended",value:"suspended"}]}}),expireAt:t.DateTime({displayName:"Expire At",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/provisioning-certificates/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["pcId","name","vehicleType","userId","idTags"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Vd=s({auth:o,name:"listPcIds",displayName:"Resources - Provisioning Certificates - List Pc Ids",description:"Get all Provisioning Certificates.",audience:"both",aiMetadata:{description:"List all AMPECO provisioning certificates (Plug & Charge), with Paginate Results to auto-fetch every page. Read-only and idempotent; use this to discover certificate IDs before getting, updating, or deleting a specific one.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/provisioning-certificates/v2.0",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var zd=s({auth:o,name:"updatePcId",displayName:"Resources - Provisioning Certificates - Update Pc Id",description:"Update a Provisioning Certificate.",audience:"both",aiMetadata:{description:"Update an existing AMPECO provisioning certificate identified by its numeric ID, changing fields such as PC ID, name, vehicle type, user, or ID tags. A partial PATCH that applies only the fields you supply. Use create pc id to register a new certificate instead.",idempotent:!1},props:{provisioningCertificate:t.Number({displayName:"Provisioning Certificate",description:"",required:!0}),pcId:t.ShortText({displayName:"Pc Id",description:"",required:!1}),name:t.ShortText({displayName:"Name",description:"",required:!1}),vehicleType:t.StaticDropdown({displayName:"Vehicle Type",description:"",required:!1,options:{options:[{label:"company",value:"company"},{label:"private",value:"private"}]}}),userId:t.Number({displayName:"User Id",description:"",required:!1}),idTags:t.Array({displayName:"Id Tags",description:"",required:!1,properties:{id:t.Number({displayName:"Id",description:"",required:!1}),type:t.StaticDropdown({displayName:"Type",description:"",required:!1,options:{options:[{label:"rfid",value:"rfid"},{label:"mac_address",value:"mac_address"},{label:"emaid",value:"emaid"}]}}),name:t.ShortText({displayName:"Name",description:"",required:!1}),paymentMethod:t.ShortText({displayName:"Payment Method",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"active",value:"active"},{label:"disabled",value:"disabled"},{label:"suspended",value:"suspended"}]}}),expireAt:t.DateTime({displayName:"Expire At",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/provisioning-certificates/v2.0/{provisioningCertificate}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["pcId","name","vehicleType","userId","idTags"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Fd=s({auth:o,name:"getPcId",displayName:"Resources - Provisioning Certificates - Get Pc Id",description:"Get a Provisioning Certificate.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO provisioning certificate by its numeric ID. Read-only and idempotent; use when you already have the certificate ID. To find IDs first, use the list pc ids action.",idempotent:!0},props:{provisioningCertificate:t.Number({displayName:"Provisioning Certificate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/provisioning-certificates/v2.0/{provisioningCertificate}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Bd=s({auth:o,name:"deletePcId",displayName:"Resources - Provisioning Certificates - Delete Pc Id",description:"Delete a provisioning certificate.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO provisioning certificate by its numeric ID. Destructive and not reversible; a repeat call on an already-deleted certificate will fail. Verify the ID via get or list pc ids before deleting.",idempotent:!1},props:{provisioningCertificate:t.Number({displayName:"Provisioning Certificate",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/provisioning-certificates/v2.0/{provisioningCertificate}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var $d=s({auth:o,name:"receiptsListing",displayName:"Resources - Receipts - Receipts Listing",description:"Get all receipts.",audience:"both",aiMetadata:{description:"List receipts with optional filters by user, tax ID, payment status, and billing period. Read-only and safe to repeat. Enable Paginate Results to retrieve all matches; to fetch one known receipt by ID use receipt-read instead.",idempotent:!0},props:{filter__userId:t.Number({displayName:"Filter - User Id",description:"Only list Receipts with a certain user id",required:!1}),filter__taxId:t.Number({displayName:"Filter - Tax Id",description:"Only list Receipts with specific VAT id",required:!1}),filter__paymentStatus:t.StaticDropdown({displayName:"Filter - Payment Status",description:"",required:!1,options:{options:[{label:"pending",value:"pending"},{label:"paid",value:"paid"},{label:"partially_paid",value:"partially_paid"}]}}),filter__periodStart:t.DateTime({displayName:"Filter - Period Start",description:"ISO 8601 formatted date",required:!1}),filter__periodEnd:t.DateTime({displayName:"Filter - Period End",description:"ISO 8601 formatted date",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/receipts/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page","filter"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Gd=s({auth:o,name:"receiptRead",displayName:"Resources - Receipts - Receipt Read",description:"Get a single receipt.",audience:"both",aiMetadata:{description:"Fetch one receipt by its numeric ID. Read-only and safe to repeat. To find receipts when you do not know the ID (e.g. by user, tax ID, payment status, or period) use receipts-listing instead.",idempotent:!0},props:{receipt:t.Number({displayName:"Receipt",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/receipts/v2.0/{receipt}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Hd=s({auth:o,name:"reservationsListing",displayName:"Resources - Reservations - Reservations Listing",description:"Get all reservations.",audience:"both",aiMetadata:{description:"List AMPECO EVSE reservations, optionally filtered by EVSE ID, user ID, status (active/expired/canceled/done), or reserved-at date range, with auto-pagination available. Use to discover reservation IDs or survey bookings; for a known reservation use the reservation read action. Read-only and idempotent.",idempotent:!0},props:{filter__evseId:t.Number({displayName:"Filter - Evse Id",description:"Only list reservations for specific EVSE by ID",required:!1}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Only list reservations for a specific user by ID",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Only list reservations with this status",required:!1,options:{options:[{label:"active",value:"active"},{label:"expired",value:"expired"},{label:"canceled",value:"canceled"},{label:"done",value:"done"}]}}),filter__reservedFrom:t.DateTime({displayName:"Filter - Reserved From",description:"Date from based on reserved at attribute",required:!1}),filter__reservedTo:t.DateTime({displayName:"Filter - Reserved To",description:"Date to based on reserved at attribute",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/reservations/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Wd=s({auth:o,name:"reservationRead",displayName:"Resources - Reservations - Reservation Read",description:"Get information for a reservation by ID.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO EVSE reservation by its numeric ID, returning its status and details. Use when you already know the reservation ID; to find reservations by EVSE, user, status, or date range use the reservations listing action. Read-only and idempotent.",idempotent:!0},props:{reservation:t.Number({displayName:"Reservation",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/reservations/v1.0/{reservation}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Kd=s({auth:o,name:"listRoamingConnections",displayName:"Resources - Roaming Connections - List Roaming Connections",description:"Get all Roaming Connections.",audience:"both",aiMetadata:{description:"List all roaming connections on the account. Read-only and safe to repeat. Enable Paginate Results to fetch every connection; to retrieve one known connection by ID use get-roaming-connection.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/roaming-connections/v2.0",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Zd=s({auth:o,name:"getRoamingConnection",displayName:"Resources - Roaming Connections - Get Roaming Connection",description:"Get a Roaming Connections.",audience:"both",aiMetadata:{description:"Fetch a single roaming connection by its numeric ID. Read-only and safe to repeat. To enumerate all roaming connections use list-roaming-connections instead.",idempotent:!0},props:{roamingConnection:t.Number({displayName:"Roaming Connection",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-connections/v2.0/{roamingConnection}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var jd=s({auth:o,name:"roamingOperatorsListing",displayName:"Resources - Roaming Operators - Roaming Operators Listing",description:"Get all Roaming Operators.",audience:"both",aiMetadata:{description:"List all roaming operators in AMPECO. Read-only and idempotent; enable Paginate Results to fetch every page, or leave it off for a single page (up to per_page, max 100). Use to discover a roaming operator ID before reading, updating, or managing its custom tariff filters.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Qd=s({auth:o,name:"roamingOperatorRead",displayName:"Resources - Roaming Operators - Roaming Operator Read",description:"Get a Roaming Operator.",audience:"both",aiMetadata:{description:"Retrieve a single roaming operator by its numeric ID. Read-only and idempotent. Pick this when you already know the roaming operator ID; otherwise use the roaming operators listing action to find it first.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Yd=s({auth:o,name:"roamingOperatorUpdate",displayName:"Resources - Roaming Operators - Roaming Operator Update",description:"Update Roaming Operator.",audience:"both",aiMetadata:{description:"Update an existing roaming operator (identified by its numeric ID), changing business name, partner linkage/enabled state, and CPO settings such as QR-code prefix, manual EVSE management, and tariff-integration options. Only supplied fields change; idempotent on the given values.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),businessName:t.ShortText({displayName:"Business Name",description:"",required:!1}),partnerId:t.Number({displayName:"Partner Id",description:"If a non-null value is provided, it will set enabled to true. If null is provided, it will set enabled to false.",required:!1}),enabled:t.StaticDropdown({displayName:"Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),cpoSettings__cpoQrcodePrefix:t.ShortText({displayName:"Cpo Settings - Cpo Qrcode Prefix",description:'Example - "http://m.intercharge.eu/qr?evseid=" if the URL in the QR Code is http://m.intercharge.eu/qr?evseid=CH*ION*E213604.',required:!1}),cpoSettings__manualEvseManagement:t.StaticDropdown({displayName:"Cpo Settings - Manual Evse Management",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),cpoSettings__applyCustomTariffsToEvsesWithRoamingTariff:t.StaticDropdown({displayName:"Cpo Settings - Apply Custom Tariffs To Evses With Roaming Tariff",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),cpoSettings__sendsPeriodicMeterUpdates:t.StaticDropdown({displayName:"Cpo Settings - Sends Periodic Meter Updates",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),cpoSettings__externalTariffIntegration:t.ShortText({displayName:"Cpo Settings - External Tariff Integration",description:"Only possible value is `has.to.be`.",required:!1}),cpoSettings__threatEvseStatusUnknownAs:t.StaticDropdown({displayName:"Cpo Settings - Threat Evse Status Unknown As",description:"",required:!1,options:{options:[{label:"available",value:"available"},{label:"unavailable",value:"unavailable"}]}}),cpoSettings__phaseAcPowerFormula:t.StaticDropdown({displayName:"Cpo Settings - Phase Ac Power Formula",description:"",required:!1,options:{options:[{label:"amperage_voltage_3",value:"amperage_voltage_3"},{label:"amperage_voltage_sqr3",value:"amperage_voltage_sqr3"}]}})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["businessName","partnerId","enabled","cpoSettings"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Jd=s({auth:o,name:"listRoamingCustomTariffFilters",displayName:"Resources - Roaming Operators - List Roaming Custom Tariff Filters",description:"Get all custom tariff filters for a roaming operator.",audience:"both",aiMetadata:{description:"List the custom tariff filters belonging to a given roaming operator, optionally filtered by status or creation date. Read-only and idempotent; enable Paginate Results to fetch every page, or leave it off for a single page (up to per_page, max 100). Use to discover a filter ID before reading, updating, deleting, or reordering filters.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Filter by status (enabled or disabled)",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"Filter by creation date (greater than or equal to)",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"Filter by creation date (less than or equal to)",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}/custom-tariff-filters",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Xd=s({auth:o,name:"createRoamingCustomTariffFilter",displayName:"Resources - Roaming Operators - Create Roaming Custom Tariff Filter",description:"Create new custom tariff filter for a roaming operator.",audience:"both",aiMetadata:{description:"Create a new custom tariff filter under a roaming operator, with a name, status, and optional matching criteria (country code, current types, power-below threshold, EVSE ID prefix, order). Not idempotent: each call adds another filter, so check existing filters first. To change one instead, use the update action.",idempotent:!1},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),countryCode:t.ShortText({displayName:"Country Code",description:"ISO 3166-1 alpha-2 country code",required:!1}),applicableCurrentTypes:t.StaticMultiSelectDropdown({displayName:"Applicable Current Types",description:"Array of current types (AC, DC) that this filter applies to, pass an empty array to clear all current type restrictions.",required:!1,options:{options:[{label:"AC",value:"AC"},{label:"DC",value:"DC"}]}}),powerBelowKw:t.Number({displayName:"Power Below Kw",description:"Filter EVSEs with power below specified kW value",required:!1}),evseIdPrefix:t.ShortText({displayName:"Evse Id Prefix",description:"Filter EVSEs whose IDs start with specified prefix(es). Multiple prefixes separated by newlines",required:!1}),order:t.Number({displayName:"Order",description:"Position of the tariff filter in the ordering sequence. When not provided during creation, it will go last. If an already existing order number is provided, it will reorder the other tariff filters to take their place in the sequence.",required:!1})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}/custom-tariff-filters",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","status","countryCode","applicableCurrentTypes","powerBelowKw","evseIdPrefix","order"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var em=s({auth:o,name:"reorderRoamingCustomTariffFilters",displayName:"Resources - Roaming Operators - Reorder Roaming Custom Tariff Filters",description:"Change the ordering of custom tariff filters for a roaming operator. This operation allows partial reordering - you only need to specify the filters that need to move. Filters not included in the request will maintain their relative positions.",audience:"both",aiMetadata:{description:"Reposition custom tariff filters within a roaming operator by supplying filter IDs paired with their new order positions. Supports partial reordering: only listed filters move, the rest keep their relative order. Idempotent for a given target arrangement. Use the list action first to obtain current filter IDs and positions.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),filters:t.Array({displayName:"Filters",description:"Array of custom tariff filter IDs with their new positions. Only include filters that need to be moved - others will maintain their relative positions.",required:!0,properties:{id:t.Number({displayName:"Id",description:"The ID of the custom tariff filter.",required:!0}),order:t.Number({displayName:"Order",description:"The new position for this filter (starting from 1).",required:!0})}})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}/custom-tariff-filters/reorder",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["filters"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var tm=s({auth:o,name:"getRoamingCustomTariffFilter",displayName:"Resources - Roaming Operators - Get Roaming Custom Tariff Filter",description:"Get a specific custom tariff filter.",audience:"both",aiMetadata:{description:"Retrieve a single custom tariff filter for a roaming operator by the roaming operator ID and the filter ID. Read-only and idempotent. Pick this when you already have both IDs; otherwise list the filters first to find the filter ID.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),customTariffFilter:t.Number({displayName:"Custom Tariff Filter",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}/custom-tariff-filters/{customTariffFilter}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var rm=s({auth:o,name:"updateRoamingCustomTariffFilter",displayName:"Resources - Roaming Operators - Update Roaming Custom Tariff Filter",description:"Update an existing custom tariff filter.",audience:"both",aiMetadata:{description:"Update fields of an existing custom tariff filter for a roaming operator, identified by the roaming operator ID and filter ID. Only the fields you supply are changed. Idempotent on the supplied values; note that setting an already-used order value reshuffles the other filters in the sequence.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),customTariffFilter:t.Number({displayName:"Custom Tariff Filter",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),countryCode:t.ShortText({displayName:"Country Code",description:"ISO 3166-1 alpha-2 country code",required:!1}),applicableCurrentTypes:t.StaticMultiSelectDropdown({displayName:"Applicable Current Types",description:"Array of current types (AC, DC) that this filter applies to",required:!1,options:{options:[{label:"AC",value:"AC"},{label:"DC",value:"DC"}]}}),powerBelowKw:t.Number({displayName:"Power Below Kw",description:"Filter EVSEs with power below specified kW value",required:!1}),evseIdPrefix:t.ShortText({displayName:"Evse Id Prefix",description:"Filter EVSEs whose IDs start with specified prefix(es). Multiple prefixes separated by newlines",required:!1}),order:t.Number({displayName:"Order",description:"Position of the tariff filter in the ordering sequence. If an already existing order number is provided, it will reorder the other tariff filters to take their place in the sequence.",required:!1})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}/custom-tariff-filters/{customTariffFilter}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","status","countryCode","applicableCurrentTypes","powerBelowKw","evseIdPrefix","order"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var am=s({auth:o,name:"deleteRoamingCustomTariffFilter",displayName:"Resources - Roaming Operators - Delete Roaming Custom Tariff Filter",description:"Delete a custom tariff filter.",audience:"both",aiMetadata:{description:"Permanently delete a custom tariff filter from a roaming operator, identified by the roaming operator ID and filter ID. Destructive and irreversible; effectively idempotent since deleting an already-removed filter has no further effect, though it may return a not-found error. Confirm both IDs before calling.",idempotent:!0},props:{roamingOperator:t.Number({displayName:"Roaming Operator",description:"",required:!0}),customTariffFilter:t.Number({displayName:"Custom Tariff Filter",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-operators/v2.0/{roamingOperator}/custom-tariff-filters/{customTariffFilter}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var im=s({auth:o,name:"roamingProvidersListing",displayName:"Resources - Roaming Providers - Listing",description:"Get all Roaming Providers.",audience:"both",aiMetadata:{description:"List AMPECO roaming providers (external EV charging network partners), optionally filtered by platform ID, country code, or party ID. Read-only and idempotent. Enable pagination to fetch all matches across pages. Use this to discover roaming provider IDs before reading, updating, or deleting one.",idempotent:!0},props:{filter__platformId:t.Number({displayName:"Filter - Platform Id",description:"",required:!1}),filter__countryCode:t.ShortText({displayName:"Filter - Country Code",description:"",required:!1}),filter__partyId:t.ShortText({displayName:"Filter - Party Id",description:"",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/roaming-providers/v2.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var om=s({auth:o,name:"roamingProviderCreate",displayName:"Resources - Roaming Providers - Create",description:"Create new Roaming Provider **Only applicable for Hubject, Gireve 2.2.1 and OCPI with missing credentials module emsp roaming connections**.",audience:"both",aiMetadata:{description:"Create a new AMPECO roaming provider for an EMSP roaming connection. Only applicable for Hubject, Gireve 2.2.1, and OCPI connections with a missing credentials module; choose the matching variant (Hubject or OCPI/Gireve 2.2.1) and supply business name and platform ID. Not idempotent: each call creates a separate provider. To modify an existing provider, use the roaming provider update action.",idempotent:!1},props:{requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Hubject",value:"1"},{label:"OCPI or Gireve 2.2.1",value:"2"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{businessName:t.ShortText({displayName:"Business Name",description:"",required:!1}),platformId:t.Number({displayName:"Platform Id",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"",required:!1})},2:{businessName:t.ShortText({displayName:"Business Name",description:"",required:!1}),platformId:t.Number({displayName:"Platform Id",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/roaming-providers/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","businessName","platformId","partnerId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var nm=s({auth:o,name:"roamingProviderRead",displayName:"Resources - Roaming Providers - Read",description:"Get a Roaming Provider.",audience:"both",aiMetadata:{description:"Fetch the details of a single AMPECO roaming provider by its numeric ID. Read-only and idempotent. Pick this when you already have a provider ID; to search or browse providers, use the roaming providers listing action.",idempotent:!0},props:{roamingProvider:t.Number({displayName:"Roaming Provider",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-providers/v2.0/{roamingProvider}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var sm=s({auth:o,name:"roamingProviderUpdate",displayName:"Resources - Roaming Providers - Update",description:"Update Roaming Providers.",audience:"both",aiMetadata:{description:"Update an existing AMPECO roaming provider identified by numeric ID, sending only the provided fields as a partial PATCH. The request body shape depends on the selected variant: Hubject (hubjectId) or OCPI/Gireve 2.2.1 (countryCode, partyId). Idempotent: applying the same values repeatedly leaves the provider unchanged. Use the create action to add a new provider instead.",idempotent:!0},props:{roamingProvider:t.Number({displayName:"Roaming Provider",description:"",required:!0}),requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Hubject",value:"1"},{label:"OCPI or Gireve 2.2.1",value:"2"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{hubjectId:t.ShortText({displayName:"Hubject Id",description:"",required:!1})},2:{countryCode:t.ShortText({displayName:"Country Code",description:"The code provided during the token exchange process.",required:!1}),partyId:t.ShortText({displayName:"Party Id",description:"ID of the Operator or Provider of roaming.",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/roaming-providers/v2.0/{roamingProvider}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","hubjectId","countryCode","partyId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var lm=s({auth:o,name:"roamingProviderDelete",displayName:"Resources - Roaming Providers - Delete",description:"Delete a Roaming Provider.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO roaming provider by its numeric ID. Destructive; deleting an already-removed provider returns an error rather than succeeding silently. Confirm the provider ID via the listing action first.",idempotent:!1},props:{roamingProvider:t.Number({displayName:"Roaming Provider",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-providers/v2.0/{roamingProvider}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var pm=s({auth:o,name:"roamingTariffsListing",displayName:"Resources - Roaming Tariffs - Listing",description:"Get all Roaming Tariffs.",audience:"both",aiMetadata:{description:"List roaming tariffs, optionally auto-paginating across all pages to gather every record. Use to browse or find a roaming tariff; read-only and safe to retry. To fetch one known tariff by ID use the read action instead.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/roaming-tariffs/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var um=s({auth:o,name:"roamingTariffRead",displayName:"Resources - Roaming Tariffs - Read",description:"Get a Roaming Tariff.",audience:"both",aiMetadata:{description:"Retrieve a single roaming tariff by its numeric ID. Use when you already know the ID and need its details; read-only and safe to retry. To search or browse multiple tariffs use the listing action instead.",idempotent:!0},props:{roamingTariff:t.Number({displayName:"Roaming Tariff",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/roaming-tariffs/v2.0/{roamingTariff}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var cm=s({auth:o,name:"roamingTariffUpdate",displayName:"Resources - Roaming Tariffs - Update",description:"Update Roaming Tariff.",audience:"both",aiMetadata:{description:"Update an existing roaming tariff by its numeric ID, assigning the local tariff group applied to its EVSEs. Use to modify a known roaming tariff; targets a specific record so re-running with the same values is safe.",idempotent:!0},props:{roamingTariff:t.Number({displayName:"Roaming Tariff",description:"",required:!0}),tariffGroupId:t.Number({displayName:"Tariff Group Id",description:"The ID of the local Tariff Group assigned to the EVSEs with this roaming tariff(s).",required:!1})},async run(e){try{let r=l("/public-api/resources/roaming-tariffs/v2.0/{roamingTariff}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["tariffGroupId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var dm=s({auth:o,name:"securityEventsListing",displayName:"Resources - Security Events - Security Events Listing",description:"Get all Security Events.",audience:"both",aiMetadata:{description:"Lists charge-point security events (firmware updates, reboots, tamper detection, etc.) in AMPECO, optionally filtered by event type, charge point, or a timestamp range. Use to audit or monitor device security activity; with no filters it returns all events, and enabling Paginate Results walks every page rather than a single capped page. Read-only and idempotent.",idempotent:!0},props:{filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"Type of critical security events that are pushed from the Charge Point to the backend.",required:!1,options:{options:[{label:"FirmwareUpdated",value:"FirmwareUpdated"},{label:"SettingSystemTime",value:"SettingSystemTime"},{label:"StartupOfTheDevice",value:"StartupOfTheDevice"},{label:"ResetOrReboot",value:"ResetOrReboot"},{label:"SecurityLogWasCleared",value:"SecurityLogWasCleared"},{label:"MemoryExhaustion",value:"MemoryExhaustion"},{label:"TamperDetectionActivated",value:"TamperDetectionActivated"}]}}),filter__chargePoint:t.Number({displayName:"Filter - Charge Point",description:"",required:!1}),filter__timestampFrom:t.ShortText({displayName:"Filter - Timestamp From",description:"",required:!1}),filter__timestampTo:t.ShortText({displayName:"Filter - Timestamp To",description:"",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/security-events/v2.0",e.propsValue),a=p(e.propsValue,["filter","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var mm=s({auth:o,name:"securityEventRead",displayName:"Resources - Security Events - Security Event Read",description:"Get a Security Event.",audience:"both",aiMetadata:{description:"Fetches a single charge-point security event from AMPECO by its numeric ID. Use to inspect one known event; to discover event IDs or scan by type/charge point/time use the Security Events Listing action. Read-only and idempotent.",idempotent:!0},props:{securityEvent:t.Number({displayName:"Security Event",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/security-events/v2.0/{securityEvent}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var fm=s({auth:o,name:"sessionsListing",displayName:"Resources - Sessions - Listing",description:"Sessions / Listing.",audience:"both",aiMetadata:{description:"List AMPECO charging sessions with extensive filters (EVSE, charge point, user, status, stop reason, payment type/status, time windows, partner, and more) and optional embeds for authorization, price breakdown, and charging periods; auto-pagination is available. Use to find sessions or build usage/billing reports; for a single known session use the session read action. Read-only and idempotent.",idempotent:!0},props:{withClockAlignedEnergyConsumption:t.StaticDropdown({displayName:"With Clock Aligned Energy Consumption",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),clockAlignedInterval:t.StaticDropdown({displayName:"Clock Aligned Interval",description:"",required:!1,options:{options:[{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"}]}}),withAuthorization:t.StaticDropdown({displayName:"With Authorization",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),withPriceBreakdown:t.StaticDropdown({displayName:"With Price Breakdown",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),withChargingPeriods:t.StaticDropdown({displayName:"With Charging Periods",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),withChargingPeriodsPriceBreakdown:t.StaticDropdown({displayName:"With Charging Periods Price Breakdown",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),filter__evseId:t.Number({displayName:"Filter - Evse Id",description:"Only list sessions on a certain EVSE",required:!1}),filter__chargePointId:t.Number({displayName:"Filter - Charge Point Id",description:"Only list sessions on a certain Charge Point",required:!1}),filter__evsePhysicalReference:t.ShortText({displayName:"Filter - Evse Physical Reference",description:"Only list sessions on a certain EVSE, identified by the phisicalReference",required:!1}),filter__chargePointNetworkId:t.ShortText({displayName:"Filter - Charge Point Network Id",description:"Only list sessions on a certain Charge Point, identified by the NetworkId",required:!1}),filter__reason:t.StaticDropdown({displayName:"Filter - Reason",description:"",required:!1,options:{options:[{label:"working_hours_exceeded",value:"working_hours_exceeded"},{label:"timeout",value:"timeout"},{label:"authorization_amount_reached",value:"authorization_amount_reached"},{label:"new_start_transaction_received",value:"new_start_transaction_received"},{label:"force_stop",value:"force_stop"},{label:"standard_stop",value:"standard_stop"},{label:"energy_exceeded",value:"energy_exceeded"},{label:"schedule_completed",value:"schedule_completed"},{label:"pre_authorization_failed",value:"pre_authorization_failed"},{label:"system_force_stop",value:"system_force_stop"},{label:"time_limit",value:"time_limit"},{label:"balance_exceeded",value:"balance_exceeded"},{label:"deauthorized",value:"deauthorized"},{label:"emergencystop",value:"emergencystop"},{label:"energylimitreached",value:"energylimitreached"},{label:"evdisconnected",value:"evdisconnected"},{label:"groundfault",value:"groundfault"},{label:"immediatereset",value:"immediatereset"},{label:"hardreset",value:"hardreset"},{label:"local",value:"local"},{label:"localoutofcredit",value:"localoutofcredit"},{label:"masterpass",value:"masterpass"},{label:"other",value:"other"},{label:"overcurrentfault",value:"overcurrentfault"},{label:"powerloss",value:"powerloss"},{label:"powerquality",value:"powerquality"},{label:"reboot",value:"reboot"},{label:"remote",value:"remote"},{label:"soclimitreached",value:"soclimitreached"},{label:"stoppedbyev",value:"stoppedbyev"},{label:"timeoutlimitreached",value:"timeoutlimitreached"},{label:"softreset",value:"softreset"},{label:"unlockcommand",value:"unlockcommand"},{label:"no_ev_parked",value:"no_ev_parked"},{label:"no_ev_connected",value:"no_ev_connected"},{label:"charge_point_timeout",value:"charge_point_timeout"},{label:"charging_on_evse_not_allowed",value:"charging_on_evse_not_allowed"},{label:"remote_start_failed",value:"remote_start_failed"},{label:"no_user_for_agile_streets",value:"no_user_for_agile_streets"},{label:"rejected",value:"rejected"},{label:"canceled_reservation",value:"canceled_reservation"},{label:"evse_occupied",value:"evse_occupied"},{label:"evse_inoperative",value:"evse_inoperative"},{label:"failed",value:"failed"},{label:"not_supported",value:"not_supported"},{label:"unknown_reservation",value:"unknown_reservation"},{label:"ev_not_connect_to_evse",value:"ev_not_connect_to_evse"},{label:"authorization_failed",value:"authorization_failed"},{label:"unknown_session",value:"unknown_session"}]}}),filter__chargePointBootNotificationSerialNumber:t.ShortText({displayName:"Filter - Charge Point Boot Notification Serial Number",description:"Only list sessions on Charge Points with last boot notification that had this charge_point_serial_number",required:!1}),filter__chargePointBootNotificationVendor:t.ShortText({displayName:"Filter - Charge Point Boot Notification Vendor",description:"Only list sessions on Charge Points with last boot notification that had this vendor",required:!1}),filter__startedAfter:t.DateTime({displayName:"Filter - Started After",description:"Only list sessions identified by the start time being after this datetime",required:!1}),filter__startedBefore:t.DateTime({displayName:"Filter - Started Before",description:"Only list sessions identified by the start time being before this datetime",required:!1}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Only list sessions by a certain user",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Only list session in this status",required:!1,options:{options:[{label:"unknown",value:"unknown"},{label:"pending",value:"pending"},{label:"active",value:"active"},{label:"finished",value:"finished"},{label:"expired",value:"expired"},{label:"failed",value:"failed"}]}}),filter__endedAfter:t.DateTime({displayName:"Filter - Ended After",description:"Only list sessions identified by the end time being after this datetime",required:!1}),filter__endedBefore:t.DateTime({displayName:"Filter - Ended Before",description:"Only list sessions identified by the end time being before this datetime",required:!1}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list sessions associated with a certain partner",required:!1}),filter__subOperatorId:t.Number({displayName:"Filter - Sub Operator Id",description:"Only list sessions associated with partners, assigned to certain sub-operator",required:!1}),filter__idTag:t.ShortText({displayName:"Filter - Id Tag",description:"Only list sessions started with a specific idTag (RFID identifier or remote start identifier)\nA remote start identifier has the format `*XXXXXXX` where the `XXXXXXX` is the session id padded with `0`s on the left\n",required:!1}),filter__paymentType:t.StaticDropdown({displayName:"Filter - Payment Type",description:"`bank_transfer` is used for one-time bank transfers, for saved (tokenized) bank transfers use `tokenized`.",required:!1,options:{options:[{label:"tokenized",value:"tokenized"},{label:"subscription",value:"subscription"},{label:"balance",value:"balance"},{label:"corporate",value:"corporate"},{label:"terminal",value:"terminal"},{label:"bank_transfer",value:"bank_transfer"}]}}),filter__paymentStatus:t.StaticDropdown({displayName:"Filter - Payment Status",description:"",required:!1,options:{options:[{label:"pending",value:"pending"},{label:"paid",value:"paid"},{label:"partially",value:"partially"},{label:"failed",value:"failed"}]}}),filter__taxId:t.Number({displayName:"Filter - Tax Id",description:"Only list sessions with specific VAT id",required:!1}),filter__paymentStatusUpdatedBefore:t.DateTime({displayName:"Filter - Payment Status Updated Before",description:"Only list sessions with payment status updated before the specified date and time. Please provide the value in ISO 8601 formatted date.",required:!1}),filter__paymentStatusUpdatedAfter:t.DateTime({displayName:"Filter - Payment Status Updated After",description:"Only list sessions with payment status updated after the specified date and time. Please provide the value in ISO 8601 formatted date.",required:!1}),filter__externalAppData:t.ShortText({displayName:"Filter - External App Data",description:"Only list records with specific external application data. You can use a dot notation to search for nested properties. For example, `filter[externalAppData.property1.property2]=value`.",required:!1}),filter__receiptId:t.Number({displayName:"Filter - Receipt Id",description:"Only list sessions with specific receipt id.",required:!1}),filter__authorizationSource:t.StaticDropdown({displayName:"Filter - Authorization Source",description:"Filter sessions based on authorization source",required:!1,options:{options:[{label:"roaming",value:"roaming"},{label:"local",value:"local"},{label:"third_party",value:"third_party"}]}}),filter__billingStatus:t.StaticDropdown({displayName:"Filter - Billing Status",description:"Only list sessions in this billing status.",required:!1,options:{options:[{label:"pending",value:"pending"},{label:"suspended",value:"suspended"},{label:"completed",value:"completed"},{label:"null",value:"null"}]}}),filter__terminalId:t.Number({displayName:"Filter - Terminal Id",description:"Only list sessions with transaction(s) with specific payment terminal id.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the specific resource that was last updated on and before this datetime",required:!1}),filter__roaming__roamingOperatorCpoIds:t.Array({displayName:"Filter - Roaming - Roaming Operator Cpo Ids",description:"Only list sessions initiated on the EVSEs of a specific Roaming operator with a CPO role.",required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"externalAppData",value:"externalAppData"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/sessions/v1.0",e.propsValue),a=p(e.propsValue,["withClockAlignedEnergyConsumption","clockAlignedInterval","withAuthorization","withPriceBreakdown","withChargingPeriods","withChargingPeriodsPriceBreakdown","filter","page","per_page","cursor","include"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var hm=s({auth:o,name:"sessionRead",displayName:"Resources - Sessions - Read",description:"Session / Read.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO charging session by its session ID, with optional embeds for authorization, price breakdown, charging periods, and clock-aligned energy consumption. Use when you already know the session ID; to search across sessions use the sessions listing action. Read-only and idempotent.",idempotent:!0},props:{session:t.ShortText({displayName:"Session",description:"",required:!0}),withClockAlignedEnergyConsumption:t.StaticDropdown({displayName:"With Clock Aligned Energy Consumption",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),clockAlignedInterval:t.StaticDropdown({displayName:"Clock Aligned Interval",description:"",required:!1,options:{options:[{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"}]}}),withAuthorization:t.StaticDropdown({displayName:"With Authorization",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),withChargingPeriods:t.StaticDropdown({displayName:"With Charging Periods",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),withChargingPeriodsPriceBreakdown:t.StaticDropdown({displayName:"With Charging Periods Price Breakdown",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),withPriceBreakdown:t.StaticDropdown({displayName:"With Price Breakdown",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/sessions/v1.0/{session}",e.propsValue),a=p(e.propsValue,["withClockAlignedEnergyConsumption","clockAlignedInterval","withAuthorization","withChargingPeriods","withChargingPeriodsPriceBreakdown","withPriceBreakdown","include"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ym=s({auth:o,name:"sessionsConsumptionStatsRead",displayName:"Resources - Sessions - Read Sessions Consumption Stats",description:"Consumption statistics may differ between active and finished sessions, as finished sessions display aggregated final data with a maximum of 300 items.",audience:"both",aiMetadata:{description:"Fetch the energy-consumption statistics time series for a single AMPECO charging session by its session ID. Note that results differ by session state: active sessions return live data points, while finished sessions return aggregated final data capped at 300 items. Read-only and idempotent.",idempotent:!0},props:{session:t.ShortText({displayName:"Session",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/sessions/v1.0/{session}/consumption-stats",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var bm=s({auth:o,name:"settingsListing",displayName:"Resources - Settings - Settings Listing",description:"Get all settings.",audience:"both",aiMetadata:{description:"Retrieve all account/platform settings. Read-only and idempotent; takes no input. Use to inspect the current configuration values exposed by the AMPECO instance.",idempotent:!0},props:{},async run(e){try{let r=l("/public-api/resources/settings/v1.0",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var gm=s({auth:o,name:"subOperatorsListing",displayName:"Resources - Sub Operators - Listing",description:"Get all sub operators.",audience:"both",aiMetadata:{description:"List all sub operators on the AMPECO platform. Read-only and idempotent. Enable Paginate Results to retrieve every page up to the Per page cap; leave it off for a single page. Use to discover sub operator ids, then Sub Operator Read for one record.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/sub-operators/v1.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var vm=s({auth:o,name:"subOperatorRead",displayName:"Resources - Sub Operators - Read",description:"Get a sub operator.",audience:"both",aiMetadata:{description:"Fetch a single sub operator from AMPECO by its numeric id. Read-only and idempotent. Use when you already have the sub operator id; to discover ids first use Sub Operators Listing.",idempotent:!0},props:{subOperator:t.Number({displayName:"Sub Operator",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/sub-operators/v1.0/{subOperator}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Pm=s({auth:o,name:"subscriptionPlansListing",displayName:"Resources - Subscription Plans - Listing",description:"Get all Subscription plans.",audience:"both",aiMetadata:{description:"List all AMPECO subscription plans configured on the platform. Read-only and idempotent. Enable the pagination option to fetch every plan across pages; otherwise a single page (up to per_page results) is returned. Use this to discover plan IDs before reading, updating, or deleting a specific plan.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/subscription-plans/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Am=s({auth:o,name:"subscriptionPlanCreate",displayName:"Resources - Subscription Plans - Create",description:"Create a new Subscription plans.",audience:"both",aiMetadata:{description:"Create a new AMPECO subscription plan (pre-paid or post-paid) defining renewal cycle, fees, kWh allowances, and visibility restrictions for EV charging subscribers. Not idempotent: each call creates a separate plan, so re-running duplicates it. To change an existing plan, use a subscription-plan update action instead.",idempotent:!1},props:{name:t.Array({displayName:"Name",description:"Locales that have been created and are not provided on an update will be deleted. Please provide values in all locales that you wish to keep.",required:!0,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),description:t.Array({displayName:"Description",description:"Locales that have been created and are not provided on an update will be deleted. Please provide values in all locales that you wish to keep.",required:!0,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),renewalCycle:t.StaticDropdown({displayName:"Renewal Cycle",description:"",required:!0,options:{options:[{label:"monthly",value:"monthly"},{label:"annually",value:"annually"}]}}),freeRenewalPeriods:t.Number({displayName:"Free Renewal Periods",description:"The number of renewal periods that are free of charge. This is only applicable for pre-paid plans.",required:!1}),type:t.StaticDropdown({displayName:"Type",description:"",required:!0,options:{options:[{label:"pre-paid",value:"pre-paid"},{label:"post-paid",value:"post-paid"}]}}),baseFee:t.Number({displayName:"Base Fee",description:"For pre-paid plans this is the price, for post-paid plans this is the base fee.",required:!1}),baseFeeAppliesPerEachHomeCharger:t.StaticDropdown({displayName:"Base Fee Applies Per Each Home Charger",description:"Makes the base fee apply per each home charger owned by the subscriber.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),postPaidChargingSessionsAccumulation:t.StaticDropdown({displayName:"Post Paid Charging Sessions Accumulation",description:"Indicates if charging sessions at personal, commercial+personal charge points are included in the post-paid subscription and would be billed at the end of the billing cycle or when a threshold is met, if there is such.",required:!1,options:{options:[{label:"none",value:"none"},{label:"personal",value:"personal"},{label:"personal_commercial",value:"personal_commercial"}]}}),billingUsageThreshold:t.Number({displayName:"Billing Usage Threshold",description:"If this threshold is reached, the amount due for the subscription would be billed immediately instead of waiting for the end of the billing period.",required:!1}),billingType:t.StaticDropdown({displayName:"Billing Type",description:"Applicable only for post-paid subscription plans when external billing is enabled. Controls the billing method used for this subscription plan.",required:!1,options:{options:[{label:"default",value:"default"},{label:"internal",value:"internal"},{label:"external",value:"external"}]}}),status:t.StaticDropdown({displayName:"Status",description:"",required:!0,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),allowance__resetCycle:t.StaticDropdown({displayName:"Allowance - Reset Cycle",description:"",required:!1,options:{options:[{label:"as_renewal_cycle",value:"as_renewal_cycle"},{label:"after_each_session",value:"after_each_session"},{label:"after_24_hours",value:"after_24_hours"},{label:"after_each_week",value:"after_each_week"},{label:"after_each_month",value:"after_each_month"},{label:"after_each_year",value:"after_each_year"}]}}),allowance__type:t.StaticDropdown({displayName:"Allowance - Type",description:"",required:!1,options:{options:[{label:"none",value:"none"},{label:"combined",value:"combined"},{label:"separate",value:"separate"}]}}),allowance__homeChargersOnly:t.StaticDropdown({displayName:"Allowance - Home Chargers Only",description:"When true the allowance can only be used on the home charge points owned by the user. In that case all other allowance restrictions have no effect.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),allowance__includedCountries:t.StaticMultiSelectDropdown({displayName:"Allowance - Included Countries",description:"The allowance can only be used on charge points in countries in this list. When empty the allowance is valid for charge points in all countries, except the ones explicitly listed in the excludedCountries.",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),allowance__excludedCountries:t.StaticMultiSelectDropdown({displayName:"Allowance - Excluded Countries",description:"The allowance cannot be used on charge points in the countries in this list.",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),allowance__excludeRoaming:t.StaticDropdown({displayName:"Allowance - Exclude Roaming",description:"When true the allowance cannot be used on roaming charge points.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),allowance__includedPartnerChargePoints:t.Array({displayName:"Allowance - Included Partner Charge Points",description:"An array of Partner IDs. The allowance can only be used on charge points of Partners in this list. When empty the allowance is valid for charge points of any Partner, except the ones explicitly listed in the excludedPartnerChargePoints.",required:!1}),allowance__excludedPartnerChargePoints:t.Array({displayName:"Allowance - Excluded Partner Charge Points",description:"An array of Partner IDs. The allowance cannot be used on charge points of Partners in this list.",required:!1}),allowance__combined:t.Number({displayName:"Allowance - Combined",description:"The amount of kWh included - combined for AC and DC, should be provided if the type is combined.",required:!1}),allowance__ac:t.Number({displayName:"Allowance - Ac",description:"The amount of kWh included for AC, should be provided if the type is separate.",required:!1}),allowance__dc:t.Number({displayName:"Allowance - Dc",description:"The amount of kWh included for DC, should be provided if the type is separate.",required:!1}),visibilityRestrictions__includedPartnerUsers:t.Array({displayName:"Visibility Restrictions - Included Partner Users",description:"An array of Partner IDs. The Subscription plan is available only to users invited (and accepted) or created by one of the Partners in this list. When empty the plan is available to all users, except the ones of Partners listed in excludedPartnerUsers.",required:!1}),visibilityRestrictions__excludedPartnerUsers:t.Array({displayName:"Visibility Restrictions - Excluded Partner Users",description:"An array of Partner IDs. The Subscription plan is not available to users of the Partners in this list.",required:!1}),visibilityRestrictions__includedUserGroups:t.Array({displayName:"Visibility Restrictions - Included User Groups",description:"An array of User Group IDs. The Subscription plan is available only to users with a User Group that is in this list. When empty the plan is available to all users, except the ones with a User Group listed in excludedUserGroups.",required:!1}),visibilityRestrictions__excludedUserGroups:t.Array({displayName:"Visibility Restrictions - Excluded User Groups",description:"An array of User Group IDs. The Subscription plan is not available to users with a User Group that is in this list.",required:!1})},async run(e){try{let r=l("/public-api/resources/subscription-plans/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","description","renewalCycle","freeRenewalPeriods","type","baseFee","baseFeeAppliesPerEachHomeCharger","postPaidChargingSessionsAccumulation","billingUsageThreshold","billingType","status","allowance","visibilityRestrictions"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Nm=s({auth:o,name:"subscriptionPlanRead",displayName:"Resources - Subscription Plans - Read",description:"Get a single subscription plan.",audience:"both",aiMetadata:{description:"Fetch the full details of one AMPECO subscription plan by its numeric ID. Read-only and idempotent. Pick this when you already have a plan ID; to find plans by name or browse all of them, use the subscription plans listing action.",idempotent:!0},props:{subscriptionPlan:t.Number({displayName:"Subscription Plan",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/subscription-plans/v2.0/{subscriptionPlan}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Sm=s({auth:o,name:"subscriptionPlanUpdate",displayName:"Resources - Subscription Plans - Update",description:"Update a Subscription plan.",audience:"both",aiMetadata:{description:"Modify an existing AMPECO subscription plan by its numeric ID, changing localized name/description, renewal cycle, pre-paid/post-paid type, fees, allowance (kWh and country/partner restrictions), visibility restrictions, and enabled/disabled status. Not idempotent: it edits a plan that must already exist, and localized name/description entries omitted on update are deleted, so always send all locales you want to keep.",idempotent:!1},props:{subscriptionPlan:t.Number({displayName:"Subscription Plan",description:"",required:!0}),name:t.Array({displayName:"Name",description:"Locales that have been created and are not provided on an update will be deleted. Please provide values in all locales that you wish to keep.",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),description:t.Array({displayName:"Description",description:"Locales that have been created and are not provided on an update will be deleted. Please provide values in all locales that you wish to keep.",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),renewalCycle:t.StaticDropdown({displayName:"Renewal Cycle",description:"",required:!1,options:{options:[{label:"monthly",value:"monthly"},{label:"annually",value:"annually"}]}}),freeRenewalPeriods:t.Number({displayName:"Free Renewal Periods",description:"The number of renewal periods that are free of charge. This is only applicable for pre-paid plans.",required:!1}),type:t.StaticDropdown({displayName:"Type",description:"Required when Post-paid Subscription plans has been enabled for the system.",required:!1,options:{options:[{label:"pre-paid",value:"pre-paid"},{label:"post-paid",value:"post-paid"}]}}),baseFee:t.Number({displayName:"Base Fee",description:"For pre-paid plans this is the price, for post-paid plans this is the base fee.",required:!1}),feePerEachPersonalChargePoint:t.Number({displayName:"Fee Per Each Personal Charge Point",description:"Applies separately per each personal charge point owned by the subscriber that requires this Subscription plan.",required:!1}),postPaidChargingSessionsAccumulation:t.StaticDropdown({displayName:"Post Paid Charging Sessions Accumulation",description:"Indicates if charging sessions at personal, commercial+personal charge points are included in the post-paid subscription and would be billed at the end of the billing cycle or when a threshold is met, if there is such.",required:!1,options:{options:[{label:"none",value:"none"},{label:"personal",value:"personal"},{label:"personal_commercial",value:"personal_commercial"}]}}),billingUsageThreshold:t.Number({displayName:"Billing Usage Threshold",description:"If this threshold is reached, the amount due for the subscription would be billed immediately instead of waiting for the end of the billing period.",required:!1}),billingType:t.StaticDropdown({displayName:"Billing Type",description:"Applicable only for post-paid subscription plans when external billing is enabled. Controls the billing method used for this subscription plan.",required:!1,options:{options:[{label:"default",value:"default"},{label:"internal",value:"internal"},{label:"external",value:"external"}]}}),status:t.StaticDropdown({displayName:"Status",description:"A change from disabled to enabled is only possible for Subscription plans that are not replaced with another plan.",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),allowance__resetCycle:t.StaticDropdown({displayName:"Allowance - Reset Cycle",description:"",required:!1,options:{options:[{label:"as_renewal_cycle",value:"as_renewal_cycle"},{label:"after_each_session",value:"after_each_session"},{label:"after_24_hours",value:"after_24_hours"},{label:"after_each_week",value:"after_each_week"},{label:"after_each_month",value:"after_each_month"},{label:"after_each_year",value:"after_each_year"}]}}),allowance__type:t.StaticDropdown({displayName:"Allowance - Type",description:"",required:!1,options:{options:[{label:"none",value:"none"},{label:"combined",value:"combined"},{label:"separate",value:"separate"}]}}),allowance__homeChargersOnly:t.StaticDropdown({displayName:"Allowance - Home Chargers Only",description:"When true the allowance can only be used on the home charge points owned by the user. In that case all other allowance restrictions have no effect.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),allowance__includedCountries:t.StaticMultiSelectDropdown({displayName:"Allowance - Included Countries",description:"The allowance can only be used on charge points in countries in this list. When empty the allowance is valid for charge points in all countries, except the ones explicitly listed in the excludedCountries.",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),allowance__excludedCountries:t.StaticMultiSelectDropdown({displayName:"Allowance - Excluded Countries",description:"The allowance cannot be used on charge points in the countries in this list.",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),allowance__excludeRoaming:t.StaticDropdown({displayName:"Allowance - Exclude Roaming",description:"When true the allowance cannot be used on roaming charge points.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),allowance__includedPartnerChargePoints:t.Array({displayName:"Allowance - Included Partner Charge Points",description:"An array of Partner IDs. The allowance can only be used on charge points of Partners in this list. When empty the allowance is valid for charge points of any Partner, except the ones explicitly listed in the excludedPartnerChargePoints.",required:!1}),allowance__excludedPartnerChargePoints:t.Array({displayName:"Allowance - Excluded Partner Charge Points",description:"An array of Partner IDs. The allowance cannot be used on charge points of Partners in this list.",required:!1}),allowance__combined:t.Number({displayName:"Allowance - Combined",description:"The amount of kWh included - combined for AC and DC, should be provided if the type is combined.",required:!1}),allowance__ac:t.Number({displayName:"Allowance - Ac",description:"The amount of kWh included for AC, should be provided if the type is separate.",required:!1}),allowance__dc:t.Number({displayName:"Allowance - Dc",description:"The amount of kWh included for DC, should be provided if the type is separate.",required:!1}),visibilityRestrictions__includedPartnerUsers:t.Array({displayName:"Visibility Restrictions - Included Partner Users",description:"An array of Partner IDs. The Subscription plan is available only to users invited (and accepted) or created by one of the Partners in this list. When empty the plan is available to all users, except the ones of Partners listed in excludedPartnerUsers.",required:!1}),visibilityRestrictions__excludedPartnerUsers:t.Array({displayName:"Visibility Restrictions - Excluded Partner Users",description:"An array of Partner IDs. The Subscription plan is not available to users of the Partners in this list.",required:!1}),visibilityRestrictions__includedUserGroups:t.Array({displayName:"Visibility Restrictions - Included User Groups",description:"An array of User Group IDs. The Subscription plan is available only to users with a User Group that is in this list. When empty the plan is available to all users, except the ones with a User Group listed in excludedUserGroups.",required:!1}),visibilityRestrictions__excludedUserGroups:t.Array({displayName:"Visibility Restrictions - Excluded User Groups",description:"An array of User Group IDs. The Subscription plan is not available to users with a User Group that is in this list.",required:!1})},async run(e){try{let r=l("/public-api/resources/subscription-plans/v2.0/{subscriptionPlan}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","description","renewalCycle","freeRenewalPeriods","type","baseFee","feePerEachPersonalChargePoint","postPaidChargingSessionsAccumulation","billingUsageThreshold","billingType","status","allowance","visibilityRestrictions"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Tm=s({auth:o,name:"subscriptionPlanDelete",displayName:"Resources - Subscription Plans - Delete",description:"Delete a Subscription plan.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO subscription plan by its numeric ID. Destructive; deleting an already-removed plan returns an error rather than succeeding silently. Use the listing action first to confirm the correct plan ID.",idempotent:!1},props:{subscriptionPlan:t.Number({displayName:"Subscription Plan",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/subscription-plans/v2.0/{subscriptionPlan}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Cm=s({auth:o,name:"subscriptionsListing",displayName:"Resources - Subscriptions - Subscriptions Listing",description:"Get all subscriptions.",audience:"both",aiMetadata:{description:"List subscriptions with optional filters by plan ID, status, end-date range, and external-billing flag. Read-only and idempotent. Enable the pagination option to fetch all matching subscriptions across pages; otherwise one page (up to per_page) is returned. Use this to find a subscription ID before reading one.",idempotent:!0},props:{filter__planId:t.ShortText({displayName:"Filter - Plan Id",description:"",required:!1}),filter__endDateFrom:t.DateTime({displayName:"Filter - End Date From",description:"ISO 8601 formatted date",required:!1}),filter__endDateTo:t.DateTime({displayName:"Filter - End Date To",description:"ISO 8601 formatted date",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"",required:!1,options:{options:[{label:"active",value:"active"},{label:"canceled",value:"canceled"},{label:"expired",value:"expired"},{label:"suspended",value:"suspended"},{label:"pending",value:"pending"}]}}),filter__billedExternally:t.ShortText({displayName:"Filter - Billed Externally",description:'Applicable only when the system uses both payment processor and external billing mode simultaneously. Show or hide subscriptions where users have enabled "External billing" (if allowed by the Billing settings).',required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/subscriptions/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Rm=s({auth:o,name:"subscriptionRead",displayName:"Resources - Subscriptions - Subscription Read",description:"Get a single subscription.",audience:"both",aiMetadata:{description:"Fetch a single subscription by its numeric ID. Read-only and idempotent. Use when you already know the subscription ID; otherwise use the Subscriptions Listing to find it first.",idempotent:!0},props:{subscription:t.Number({displayName:"Subscription",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/subscriptions/v1.0/{subscription}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var _m=s({auth:o,name:"tariffGroupsListing",displayName:"Resources - Tariff Groups - Listing",description:"Get all tariff groups.",audience:"both",aiMetadata:{description:"List AMPECO tariff groups, optionally filtered by managing partner ID, and enable Paginate Results to auto-fetch across pages. Read-only and idempotent; use this to discover group IDs before reading, updating, or deleting a specific group.",idempotent:!0},props:{filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list tariffs managed by certan partner.",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/tariff-groups/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","cursor","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var wm=s({auth:o,name:"tariffGroupCreate",displayName:"Resources - Tariff Groups - Create",description:"Create new tariff group. Please note that createing a new tariff group will also automatically create a free base tariff, as it is not allowed to have empty tariff groups.",audience:"both",aiMetadata:{description:"Create a new AMPECO tariff group with a name and optional ordered tariff list and partner assignment. Not idempotent: each call creates a separate group (and auto-adds a free base tariff, since empty groups are disallowed). Use tariff group update to change an existing group instead.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0}),tariffIds:t.Array({displayName:"Tariff Ids",description:"Ordered list of tariff ids in the group. Please note that the order is checked from bottom to top, meaning that the tariff with the largest index in that list (in other words that is the lowest in the list), that matches the requirements will apply",required:!1}),partnerId:t.Number({displayName:"Partner Id",description:"The assigned Partner will have access to make changes to the tariff group.",required:!1})},async run(e){try{let r=l("/public-api/resources/tariff-groups/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","tariffIds","partnerId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Im=s({auth:o,name:"tariffGroupRead",displayName:"Resources - Tariff Groups - Read",description:"Get a tariff group.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO tariff group by its numeric ID, returning its name and ordered tariff list. Read-only and idempotent; use when you already have the group ID. To discover IDs first, use the tariff groups listing action.",idempotent:!0},props:{tariffGroup:t.Number({displayName:"Tariff Group",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tariff-groups/v1.0/{tariffGroup}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Em=s({auth:o,name:"tariffGroupUpdate",displayName:"Resources - Tariff Groups - Update",description:"Update a tariff group.",audience:"both",aiMetadata:{description:"Update an existing AMPECO tariff group identified by its numeric ID, replacing its name, ordered tariff list, or assigned partner. Not idempotent in effect since it overwrites the current tariff ordering (which is evaluated bottom-to-top); send the full intended tariff list rather than a partial set. Use tariff group create for a new group.",idempotent:!1},props:{tariffGroup:t.Number({displayName:"Tariff Group",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!0}),tariffIds:t.Array({displayName:"Tariff Ids",description:"Ordered list of tariff ids in the group. Please note that the order is checked from bottom to top, meaning that the tariff with the largest index in that list (in other words that is the lowest in the list), that matches the requirements will apply",required:!1}),partnerId:t.Number({displayName:"Partner Id",description:"The assigned Partner will have access to make changes to the tariff group.",required:!1})},async run(e){try{let r=l("/public-api/resources/tariff-groups/v1.0/{tariffGroup}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","tariffIds","partnerId"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var Dm=s({auth:o,name:"tariffGroupDelete",displayName:"Resources - Tariff Groups - Delete",description:"Delete a tariff group.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO tariff group by its numeric ID. Destructive and not reversible; re-running on an already-deleted group will fail. Confirm the correct group ID first via the read or listing action.",idempotent:!1},props:{tariffGroup:t.Number({displayName:"Tariff Group",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tariff-groups/v1.0/{tariffGroup}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var xm=s({auth:o,name:"tariffSnapshotRead",displayName:"Resources - Tariff Snapshots - Read Tariff Snapshot",description:"Get a tariff snapshot by id.",audience:"both",aiMetadata:{description:"Fetch a single tariff snapshot (a point-in-time record of tariff terms) by its numeric ID. Read-only and safe to repeat.",idempotent:!0},props:{tariffSnapshot:t.Number({displayName:"Tariff Snapshot",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tariff-snapshots/v1.0/{tariffSnapshot}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Mm=s({auth:o,name:"tariffsListing",displayName:"Resources - Tariffs - Listing",description:'Get all tariff. Also you could use the "tariffGroupId" and the "userId" to "resolve" the concrete tariff within a group that would be applied to the specified user.',audience:"both",aiMetadata:{description:"List AMPECO tariffs, optionally filtered by tariff group, type, or managing partner, with auto-pagination available. A distinct resolve mode: pass a tariff group ID together with a user ID to return the single concrete tariff that would apply when that user charges (omit the user for the anonymous-charging tariff). Read-only and idempotent.",idempotent:!0},props:{filter__tariffGroupId:t.Number({displayName:"Filter - Tariff Group Id",description:"Only list tariffs in a certain group",required:!1}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Can only be used with `tariffGroupId`. When set, a single tariff of the group will be returned (no meta or link props will be included), that will be applied to the when the given user is charging. Note that when you set it to empty (null) then the tariff for anonymous charging will be returned",required:!1}),filter__type:t.ShortText({displayName:"Filter - Type",description:"Only list tariff of this specific type",required:!1}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list tariffs managed by certain partner.",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/tariffs/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var km=s({auth:o,name:"tariffCreate",displayName:"Resources - Tariffs - Create",description:"Create new tariff.",audience:"both",aiMetadata:{description:"Create a new AMPECO charging tariff, defining its pricing model (e.g. free, flat rate, duration+energy, time-of-day, peak/average power levels, or optimised dynamic pricing) along with fees, idle rules, restrictions, and display text. Not idempotent: each call creates a distinct tariff. The chosen type governs which pricing fields apply; to change an existing tariff use the update action instead.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"Setting the type to `charging not allowed` or `free` is enough for creating the particular type of tariff",required:!0,options:{options:[{label:"free",value:"free"},{label:"flat rate",value:"flat rate"},{label:"duration+energy",value:"duration+energy"},{label:"duration+energy time of day",value:"duration+energy time of day"},{label:"energy tou",value:"energy tou"},{label:"standard",value:"standard"},{label:"charging not allowed",value:"charging not allowed"},{label:"average power levels",value:"average power levels"},{label:"peak power levels",value:"peak power levels"},{label:"standard_tod",value:"standard_tod"},{label:"optimised dynamic pricing",value:"optimised dynamic pricing"}]}}),dayTariffStart:t.ShortText({displayName:"Day Tariff Start",description:"A time when the day begins",required:!1}),nightTariffStart:t.ShortText({displayName:"Night Tariff Start",description:"A time when the night begins",required:!1}),pricing__pricePerSession:t.Number({displayName:"Pricing - Price Per Session",description:"Price per session. Only applicable with flat rate tariffs. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__connectionFee:t.Number({displayName:"Pricing - Connection Fee",description:"Connection fee. A fixed fee that is applied at the start of the charging session. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__pricePerKwh:t.Number({displayName:"Pricing - Price Per Kwh",description:"Price per kWh. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__dayPricePerKwh:t.Number({displayName:"Pricing - Day Price Per Kwh",description:"Price per kWh during the day. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__nightPricePerKwh:t.Number({displayName:"Pricing - Night Price Per Kwh",description:"Price per kWh during the night. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__pricePeriodInMinutes:t.StaticDropdown({displayName:"Pricing - Price Period In Minutes",description:"Charging period. In minutes. It defines the time-period for charging a fee.",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),pricing__pricePerPeriod:t.Number({displayName:"Pricing - Price Per Period",description:"Charging fee per period. Applicable for duration+energy. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__durationFeeLimit:t.Number({displayName:"Pricing - Duration Fee Limit",description:"Duration fee limit for the whole session if fee is applied.",required:!1}),pricing__dayPricePerPeriod:t.Number({displayName:"Pricing - Day Price Per Period",description:"Charging fee per period during the day. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__nightPricePerPeriod:t.Number({displayName:"Pricing - Night Price Per Period",description:"Charging fee per period during the night. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__dayIdleFeePerMinute:t.Number({displayName:"Pricing - Day Idle Fee Per Minute",description:"Charging fee per minute during the day. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__nightIdleFeePerMinute:t.Number({displayName:"Pricing - Night Idle Fee Per Minute",description:"Charging fee per minute during the night. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__idleFeePerMinute:t.Number({displayName:"Pricing - Idle Fee Per Minute",description:"Idle fee per minute. A fee per minute that is applied during idle period (no charging). Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__idleFeeGracePeriodMinutes:t.Number({displayName:"Pricing - Idle Fee Grace Period Minutes",description:"Idle fee grace period (min). Optional. When idle period (no charging) is detected during a session the user is given this grace period to remove the vehicle, before idle fee starts applying.",required:!1}),pricing__idlePricingPeriodInMinutes:t.StaticDropdown({displayName:"Pricing - Idle Pricing Period In Minutes",description:"Idle fee per minute. A fee per minute that is applied during idle period (no charging).",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),pricing__idleFeePeriodStart:t.ShortText({displayName:"Pricing - Idle Fee Period Start",description:"Defined start time for the application of idle fee.",required:!1}),pricing__idleFeePeriodEnd:t.ShortText({displayName:"Pricing - Idle Fee Period End",description:"Defined end time for the application of idle fee.",required:!1}),pricing__idleFeeLimit:t.Number({displayName:"Pricing - Idle Fee Limit",description:"Idle fee limit for the whole session if fee is applied.",required:!1}),pricing__connectionFeeMinimumSessionDuration:t.Number({displayName:"Pricing - Connection Fee Minimum Session Duration",description:"Connection Fee Minimum Session Duration (min). Optional.",required:!1}),pricing__connectionFeeMinimumSessionEnergy:t.Number({displayName:"Pricing - Connection Fee Minimum Session Energy",description:"Connection Fee Minimum Session Energy (kWh). Optional. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__durationFeeGracePeriod:t.Number({displayName:"Pricing - Duration Fee Grace Period",description:"Duration Fee Grace Period (min). Optional.",required:!1}),pricing__minPrice:t.Number({displayName:"Pricing - Min Price",description:"Min. price. Sets a minimum total amount per session.",required:!1}),pricing__preAuthorizeAmount:t.Number({displayName:"Pricing - Pre Authorize Amount",description:"Pre-authorize amount. The amount to pre-authorize before starting a session. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__taxID:t.Number({displayName:"Pricing - Tax I D",description:"If Multi-tax Support has been enabled in the Ampeco.CHARGE settings, you can provide the taxId for the tariff here.",required:!1}),pricing__chargePointElectricityRate:t.StaticDropdown({displayName:"Pricing - Charge Point Electricity Rate",description:"Use the Electricity Rate of the Charge Point that is already attached and aims to track the electricity costs.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__fallbackElectricityRateId:t.Number({displayName:"Pricing - Fallback Electricity Rate Id",description:"When ChargePointElectricityRate is set to *false*, the Electricity Rate ID MUST be supplied in order the electricity rates for the tariff to be known.",required:!1}),pricing__markupPercentagePerKwh:t.Number({displayName:"Pricing - Markup Percentage Per Kwh",description:"",required:!1}),pricing__markupFixedFeePerKwh:t.Number({displayName:"Pricing - Markup Fixed Fee Per Kwh",description:"",required:!1}),pricing__flexibleMarkUpAsFixedPerKwh__defaultPrice:t.Number({displayName:"Pricing - Flexible Mark Up As Fixed Per Kwh - Default Price",description:"Set price for the intervals not specified in `intervalPricing` field.",required:!1}),pricing__flexibleMarkUpAsFixedPerKwh__intervalPricing:t.Array({displayName:"Pricing - Flexible Mark Up As Fixed Per Kwh - Interval Pricing",description:"The time interval must be always the same and should not exceed the 24-hour mark. It could be either 15 min, 30 min or 60 min. The startAt and endAt must comply with this restriction.",required:!1,properties:{startsAt:t.ShortText({displayName:"Starts At",description:"The start time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),endsAt:t.ShortText({displayName:"Ends At",description:"The end time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),price:t.Number({displayName:"Price",description:"The price that will apply for the given price period. Must include tax.",required:!0})}}),pricing__multiPricePerKwh:t.Array({displayName:"Pricing - Multi Price Per Kwh",description:"Create the price levels according to the kWh. <br /> The first level must have zero value for **firstKwh**. <br /> The last level must have an infinity value for **lastKwh**.",required:!1,properties:{firstKwh:t.Number({displayName:"First Kwh",description:"",required:!0}),lastKwh:t.Number({displayName:"Last Kwh",description:"",required:!1}),feePerKwh:t.Number({displayName:"Fee Per Kwh",description:"",required:!1}),flatFee:t.Number({displayName:"Flat Fee",description:"",required:!1})}}),pricing__multiPricePerDuration:t.Array({displayName:"Pricing - Multi Price Per Duration",description:"Create the price levels according to the duration of the session from the time the charging started. <br /> The first level must have zero value for **firstUnit**. <br /> The last level must have an infinity value for **lastUnit**.",required:!1,properties:{firstUnit:t.Number({displayName:"First Unit",description:"",required:!0}),lastUnit:t.Number({displayName:"Last Unit",description:"",required:!1}),feePerUnit:t.Number({displayName:"Fee Per Unit",description:"",required:!1}),flatFee:t.Number({displayName:"Flat Fee",description:"",required:!1})}}),pricing__multiIdleFee:t.Array({displayName:"Pricing - Multi Idle Fee",description:"Different price levels could be created depending on the duration of the idle period. <br /> The first level must have zero value for **firstUnit**. <br /> The last level must have an infinity value for **lastUnit**.",required:!1,properties:{firstUnit:t.Number({displayName:"First Unit",description:"",required:!0}),lastUnit:t.Number({displayName:"Last Unit",description:"",required:!1}),feePerUnit:t.Number({displayName:"Fee Per Unit",description:"",required:!1}),flatFee:t.Number({displayName:"Flat Fee",description:"",required:!1})}}),pricing__regularUsePeriod:t.Number({displayName:"Pricing - Regular Use Period",description:"In minutes. Only for the Peak power level tariff.",required:!1}),pricing__averagePowerLevels:t.Array({displayName:"Pricing - Average Power Levels",description:"",required:!1,properties:{averagePowerUpToKw:t.Number({displayName:"Average Power Up To Kw",description:"",required:!0}),pricePerMinute:t.Number({displayName:"Price Per Minute",description:"",required:!0})}}),pricing__peakPowerLevels:t.Array({displayName:"Pricing - Peak Power Levels",description:"",required:!1,properties:{peakPowerUpToKw:t.Number({displayName:"Peak Power Up To Kw",description:"",required:!0}),regularPricePerMinute:t.Number({displayName:"Regular Price Per Minute",description:"",required:!0}),excessUsePricePerMin:t.Number({displayName:"Excess Use Price Per Min",description:"",required:!0})}}),pricing__timePeriods:t.Array({displayName:"Pricing - Time Periods",description:"",required:!1,properties:{startTime:t.ShortText({displayName:"Start Time",description:"The 24-hour format should be used.",required:!0}),endTime:t.ShortText({displayName:"End Time",description:"The 24-hour format should be used.",required:!0})}}),pricing__pricePeriods__connectionFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Connection Fee Periods - Fee",description:"",required:!1}),pricing__pricePeriods__energyFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Energy Fee Periods - Fee",description:"",required:!1}),pricing__pricePeriods__durationFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Duration Fee Periods - Fee",description:"",required:!1}),pricing__pricePeriods__idleFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Idle Fee Periods - Fee",description:"",required:!1}),pricing__daysWhenApplied:t.Array({displayName:"Pricing - Days When Applied",description:"When left empty, this means that this is the standard pricing that would be applied in general without taking into consideration the day.",required:!1,properties:{name:t.ShortText({displayName:"Name",description:"",required:!1}),specialDates:t.Json({displayName:"Special Dates",defaultValue:{type:"array",items:{type:"string",format:"date"},example:"2022-01-30"},required:!1}),idleFeeGracePeriodMinutes:t.Number({displayName:"Idle Fee Grace Period Minutes",description:"Idle fee grace period (min). Optional. When idle period (no charging) is detected during a session the user is given this grace period to remove the vehicle, before idle fee starts applying.",required:!1}),idlePricingPeriodInMinutes:t.StaticDropdown({displayName:"Idle Pricing Period In Minutes",description:"Idle fee per minute. A fee per minute that is applied during idle period (no charging).",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),connectionFeeMinimumSessionDuration:t.Number({displayName:"Connection Fee Minimum Session Duration",description:"Connection Fee Minimum Session Duration (min). Optional.",required:!1}),connectionFeeMinimumSessionEnergy:t.Number({displayName:"Connection Fee Minimum Session Energy",description:"Connection Fee Minimum Session Energy (kWh). Optional. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),durationFeeGracePeriod:t.Number({displayName:"Duration Fee Grace Period",description:"Duration Fee Grace Period (min). Optional.",required:!1}),pricePeriodInMinutes:t.StaticDropdown({displayName:"Price Period In Minutes",description:"Charging period. In minutes. It defines the time-period for charging a fee.",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),pricePeriods__connectionFeePeriods__fee:t.Json({displayName:"Price Periods - Connection Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1}),pricePeriods__energyFeePeriods__fee:t.Json({displayName:"Price Periods - Energy Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1}),pricePeriods__durationFeePeriods__fee:t.Json({displayName:"Price Periods - Duration Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1}),pricePeriods__idleFeePeriods__fee:t.Json({displayName:"Price Periods - Idle Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1})}}),pricing__thresholdPriceForEnergy:t.Number({displayName:"Pricing - Threshold Price For Energy",description:"Price for kWh to be considered by Optimised charging for setting the charging periods.",required:!1}),pricing__priceForEnergyWhenOptimized:t.Number({displayName:"Pricing - Price For Energy When Optimized",description:"",required:!1}),pricing__optimisedLabel:t.ShortText({displayName:"Pricing - Optimised Label",description:"",required:!1}),pricing__durationFeeFrom:t.ShortText({displayName:"Pricing - Duration Fee From",description:"Defined start time for the application of duration fees.",required:!1}),pricing__durationFeeTo:t.ShortText({displayName:"Pricing - Duration Fee To",description:"Defined end time for the application of duration fees.",required:!1}),pricing__subsidyIntegrationId:t.Number({displayName:"Pricing - Subsidy Integration Id",description:"The subsidy integration id that should be applied for this tariff. Only valid for Energy ToU tariffs. Please use the AMPECO.CHARGE backend for the specific integration id.",required:!1}),pricing__lockPriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Price On Session Start",description:"When enabled the tariff of the charger will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__lockEnergyPriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Energy Price On Session Start",description:"When enabled the tariff of the charger will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__lockDurationPriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Duration Price On Session Start",description:"When enabled, the energy fee component of the tariff will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__lockIdlePriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Idle Price On Session Start",description:"When enabled, the duration fee component of the tariff will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__stateOfChargeIdleThreshold:t.StaticDropdown({displayName:"Pricing - State Of Charge Idle Threshold",description:"Switches the session to idle when the SoC (%) exceeds the selected value. Leave empty to use the system wide setting. This option will take effect only if `Allow custom SoC (%) threshold per Tariff` is set in `Idle period detection` setting.",required:!1,options:{options:[{label:"75",value:"75"},{label:"80",value:"80"},{label:"85",value:"85"},{label:"90",value:"90"},{label:"95",value:"95"},{label:"100",value:"100"}]}}),pricing__averagePowerIdleThreshold:t.Number({displayName:"Pricing - Average Power Idle Threshold",description:"Sets the session to idle state when the average kW for the past 5 minutes is below the set threshold. This option will take effect only if `Allow custom power threshold per Tariff` is set in `Idle period detection` setting.",required:!1}),stopSession__timeLimitMinutes:t.Number({displayName:"Stop Session - Time Limit Minutes",description:"Session max time. The maximum minutes a session is allowed to run. Skip for no time limit.",required:!1}),stopSession__stopWhenEnergyExceedsKwh:t.Number({displayName:"Stop Session - Stop When Energy Exceeds Kwh",description:"The maximum energy (kWh) allowed per session. Skip for no limit.",required:!1}),restrictions__applyToUsersOfChargePointOwner:t.StaticDropdown({displayName:"Restrictions - Apply To Users Of Charge Point Owner",description:"Makes the tariff apply to users of the partner, who is set as owner of the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__applyToUsersOfChargePointPartner:t.StaticDropdown({displayName:"Restrictions - Apply To Users Of Charge Point Partner",description:"Makes the tariff apply to users of the partner, who is set as owner of the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__applyToUsersOfAllRoamingEmsps:t.StaticDropdown({displayName:"Restrictions - Apply To Users Of All Roaming Emsps",description:"Makes the tariff apply to users of all eMSPs, which are roaming partners.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__applyToAdHocUsers:t.StaticDropdown({displayName:"Restrictions - Apply To Ad Hoc Users",description:"Makes the tariff valid for non-registered users(ad-hoc charging).",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__adHocPreAuthorizeAmount:t.Number({displayName:"Restrictions - Ad Hoc Pre Authorize Amount",description:"Sets the amount that would be blocked on the user's card at the start of the session. Required if applyToAdHocUsers is true and one of the following billing strategies is chosen: `Require payment method and authorize certain amount before starting session` or `Require payment method OR minimum amount in balance`.",required:!1}),restrictions__adHocStopWhenPreAuthorizedAmountFallsBelow:t.Number({displayName:"Restrictions - Ad Hoc Stop When Pre Authorized Amount Falls Below",description:"Set the minimum pre-authorized amount threshold. When the remaining ad hoc pre-authorized amount falls below this value, the charging session will automatically stop to prevent revenue loss.",required:!1}),restrictions__applyToUsersOfPartners:t.Array({displayName:"Restrictions - Apply To Users Of Partners",description:"Users of specific Partners. Provide a list of partner IDs. Matches if the user is a invited to at least one of the partners.",required:!1}),restrictions__applyToUsersWithGroups:t.Array({displayName:"Restrictions - Apply To Users With Groups",description:"Users with a specific group. Provide a list of user groups. Matches if the user is a member of at least one of the groups.",required:!1}),restrictions__applyToUserGroupIds:t.Array({displayName:"Restrictions - Apply To User Group Ids",description:"An array of user group IDs. Users with a specific group. Provide a list of user group IDs.",required:!1}),restrictions__applyToUsersWithSubscriptions:t.Array({displayName:"Restrictions - Apply To Users With Subscriptions",description:"Users with a specific subscription plan. Provide a list of subscription plan IDs. Matches if the user has active one of the subscription plans.",required:!1}),restrictions__startDate:t.DateTime({displayName:"Restrictions - Start Date",description:"The date from which the tariff becomes valid.",required:!1}),restrictions__endDate:t.DateTime({displayName:"Restrictions - End Date",description:"The expiry date of the tariff. The tariff is valid until this date inclusive.",required:!1}),partner__id:t.Number({displayName:"Partner - Id",description:"The assigned Partner will have access to make changes to the tariff.",required:!1}),display__defaultPriceInformation:t.ShortText({displayName:"Display - Default Price Information",description:"The default information that would be shown on the display of the charge point without the user having authorized themselves.",required:!1}),display__defaultPriceInformationOffline:t.ShortText({displayName:"Display - Default Price Information Offline",description:"The information that would be shown on the display of the charge point when offline.",required:!1}),display__priceInformation:t.ShortText({displayName:"Display - Price Information",description:"The information that would be shown on the display of the charge point for users that are eligible for this tariff.",required:!1}),display__totalCostInformation:t.ShortText({displayName:"Display - Total Cost Information",description:"Additional information that would be displayed on the charge point when the session ends, along with the total fees for energy, duration and idle.",required:!1}),integrationId:t.Number({displayName:"Integration Id",description:"References the internal integration configuration that enables this tariff type",required:!1})},async run(e){try{let r=l("/public-api/resources/tariffs/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","type","dayTariffStart","nightTariffStart","pricing","stopSession","restrictions","partner","display","integrationId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var qm=s({auth:o,name:"tariffRead",displayName:"Resources - Tariffs - Read",description:"Get a tariff.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO tariff by its numeric ID, returning its full pricing definition and settings. Use when you already know the tariff ID; to search or browse tariffs (including resolving the tariff that applies to a user within a group) use the tariffs listing action. Read-only and idempotent.",idempotent:!0},props:{tariff:t.Number({displayName:"Tariff",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tariffs/v1.0/{tariff}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Om=s({auth:o,name:"tariffUpdate",displayName:"Resources - Tariffs - Update",description:"Update a tariff.",audience:"both",aiMetadata:{description:"Replace the full configuration of an existing AMPECO tariff identified by its numeric ID, including its type, pricing model, fees, restrictions, and display text. This is a full-replacement PUT, so supply all fields you want to keep; idempotent in that repeating the same payload yields the same final state. Use the create action to add a new tariff instead.",idempotent:!0},props:{tariff:t.Number({displayName:"Tariff",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!0}),type:t.StaticDropdown({displayName:"Type",description:"Setting the type to `charging not allowed` or `free` is enough for creating the particular type of tariff",required:!0,options:{options:[{label:"free",value:"free"},{label:"flat rate",value:"flat rate"},{label:"duration+energy",value:"duration+energy"},{label:"duration+energy time of day",value:"duration+energy time of day"},{label:"energy tou",value:"energy tou"},{label:"standard",value:"standard"},{label:"charging not allowed",value:"charging not allowed"},{label:"average power levels",value:"average power levels"},{label:"peak power levels",value:"peak power levels"},{label:"standard_tod",value:"standard_tod"},{label:"optimised dynamic pricing",value:"optimised dynamic pricing"}]}}),dayTariffStart:t.ShortText({displayName:"Day Tariff Start",description:"A time when the day begins",required:!1}),nightTariffStart:t.ShortText({displayName:"Night Tariff Start",description:"A time when the night begins",required:!1}),pricing__pricePerSession:t.Number({displayName:"Pricing - Price Per Session",description:"Price per session. Only applicable with flat rate tariffs. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__connectionFee:t.Number({displayName:"Pricing - Connection Fee",description:"Connection fee. A fixed fee that is applied at the start of the charging session. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__pricePerKwh:t.Number({displayName:"Pricing - Price Per Kwh",description:"Price per kWh. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__dayPricePerKwh:t.Number({displayName:"Pricing - Day Price Per Kwh",description:"Price per kWh during the day. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__nightPricePerKwh:t.Number({displayName:"Pricing - Night Price Per Kwh",description:"Price per kWh during the night. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__pricePeriodInMinutes:t.StaticDropdown({displayName:"Pricing - Price Period In Minutes",description:"Charging period. In minutes. It defines the time-period for charging a fee.",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),pricing__pricePerPeriod:t.Number({displayName:"Pricing - Price Per Period",description:"Charging fee per period. Applicable for duration+energy. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__durationFeeLimit:t.Number({displayName:"Pricing - Duration Fee Limit",description:"Duration fee limit for the whole session if fee is applied.",required:!1}),pricing__dayPricePerPeriod:t.Number({displayName:"Pricing - Day Price Per Period",description:"Charging fee per period during the day. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__nightPricePerPeriod:t.Number({displayName:"Pricing - Night Price Per Period",description:"Charging fee per period during the night. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__dayIdleFeePerMinute:t.Number({displayName:"Pricing - Day Idle Fee Per Minute",description:"Charging fee per minute during the day. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__nightIdleFeePerMinute:t.Number({displayName:"Pricing - Night Idle Fee Per Minute",description:"Charging fee per minute during the night. Applicable for duration+energy time of day. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__idleFeePerMinute:t.Number({displayName:"Pricing - Idle Fee Per Minute",description:"Idle fee per minute. A fee per minute that is applied during idle period (no charging). Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__idleFeeGracePeriodMinutes:t.Number({displayName:"Pricing - Idle Fee Grace Period Minutes",description:"Idle fee grace period (min). Optional. When idle period (no charging) is detected during a session the user is given this grace period to remove the vehicle, before idle fee starts applying.",required:!1}),pricing__idlePricingPeriodInMinutes:t.StaticDropdown({displayName:"Pricing - Idle Pricing Period In Minutes",description:"Idle fee per minute. A fee per minute that is applied during idle period (no charging).",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),pricing__idleFeePeriodStart:t.ShortText({displayName:"Pricing - Idle Fee Period Start",description:"Defined start time for the application of idle fee.",required:!1}),pricing__idleFeePeriodEnd:t.ShortText({displayName:"Pricing - Idle Fee Period End",description:"Defined end time for the application of idle fee.",required:!1}),pricing__idleFeeLimit:t.Number({displayName:"Pricing - Idle Fee Limit",description:"Idle fee limit for the whole session if fee is applied.",required:!1}),pricing__connectionFeeMinimumSessionDuration:t.Number({displayName:"Pricing - Connection Fee Minimum Session Duration",description:"Connection Fee Minimum Session Duration (min). Optional.",required:!1}),pricing__connectionFeeMinimumSessionEnergy:t.Number({displayName:"Pricing - Connection Fee Minimum Session Energy",description:"Connection Fee Minimum Session Energy (kWh). Optional. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__durationFeeGracePeriod:t.Number({displayName:"Pricing - Duration Fee Grace Period",description:"Duration Fee Grace Period (min). Optional.",required:!1}),pricing__minPrice:t.Number({displayName:"Pricing - Min Price",description:"Min. price. Sets a minimum total amount per session.",required:!1}),pricing__preAuthorizeAmount:t.Number({displayName:"Pricing - Pre Authorize Amount",description:"Pre-authorize amount. The amount to pre-authorize before starting a session. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),pricing__taxID:t.Number({displayName:"Pricing - Tax I D",description:"If Multi-tax Support has been enabled in the Ampeco.CHARGE settings, you can provide the taxId for the tariff here.",required:!1}),pricing__chargePointElectricityRate:t.StaticDropdown({displayName:"Pricing - Charge Point Electricity Rate",description:"Use the Electricity Rate of the Charge Point that is already attached and aims to track the electricity costs.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__fallbackElectricityRateId:t.Number({displayName:"Pricing - Fallback Electricity Rate Id",description:"When ChargePointElectricityRate is set to *false*, the Electricity Rate ID MUST be supplied in order the electricity rates for the tariff to be known.",required:!1}),pricing__markupPercentagePerKwh:t.Number({displayName:"Pricing - Markup Percentage Per Kwh",description:"",required:!1}),pricing__markupFixedFeePerKwh:t.Number({displayName:"Pricing - Markup Fixed Fee Per Kwh",description:"",required:!1}),pricing__flexibleMarkUpAsFixedPerKwh__defaultPrice:t.Number({displayName:"Pricing - Flexible Mark Up As Fixed Per Kwh - Default Price",description:"Set price for the intervals not specified in `intervalPricing` field.",required:!1}),pricing__flexibleMarkUpAsFixedPerKwh__intervalPricing:t.Array({displayName:"Pricing - Flexible Mark Up As Fixed Per Kwh - Interval Pricing",description:"The time interval must be always the same and should not exceed the 24-hour mark. It could be either 15 min, 30 min or 60 min. The startAt and endAt must comply with this restriction.",required:!1,properties:{startsAt:t.ShortText({displayName:"Starts At",description:"The start time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),endsAt:t.ShortText({displayName:"Ends At",description:"The end time of the period. Formatted as hours:minutes. Should be provided in the local time zone and not in UTC.",required:!0}),price:t.Number({displayName:"Price",description:"The price that will apply for the given price period. Must include tax.",required:!0})}}),pricing__multiPricePerKwh:t.Array({displayName:"Pricing - Multi Price Per Kwh",description:"Create the price levels according to the kWh. <br /> The first level must have zero value for **firstKwh**. <br /> The last level must have an infinity value for **lastKwh**.",required:!1,properties:{firstKwh:t.Number({displayName:"First Kwh",description:"",required:!0}),lastKwh:t.Number({displayName:"Last Kwh",description:"",required:!1}),feePerKwh:t.Number({displayName:"Fee Per Kwh",description:"",required:!1}),flatFee:t.Number({displayName:"Flat Fee",description:"",required:!1})}}),pricing__multiPricePerDuration:t.Array({displayName:"Pricing - Multi Price Per Duration",description:"Create the price levels according to the duration of the session from the time the charging started. <br /> The first level must have zero value for **firstUnit**. <br /> The last level must have an infinity value for **lastUnit**.",required:!1,properties:{firstUnit:t.Number({displayName:"First Unit",description:"",required:!0}),lastUnit:t.Number({displayName:"Last Unit",description:"",required:!1}),feePerUnit:t.Number({displayName:"Fee Per Unit",description:"",required:!1}),flatFee:t.Number({displayName:"Flat Fee",description:"",required:!1})}}),pricing__multiIdleFee:t.Array({displayName:"Pricing - Multi Idle Fee",description:"Different price levels could be created depending on the duration of the idle period. <br /> The first level must have zero value for **firstUnit**. <br /> The last level must have an infinity value for **lastUnit**.",required:!1,properties:{firstUnit:t.Number({displayName:"First Unit",description:"",required:!0}),lastUnit:t.Number({displayName:"Last Unit",description:"",required:!1}),feePerUnit:t.Number({displayName:"Fee Per Unit",description:"",required:!1}),flatFee:t.Number({displayName:"Flat Fee",description:"",required:!1})}}),pricing__regularUsePeriod:t.Number({displayName:"Pricing - Regular Use Period",description:"In minutes. Only for the Peak power level tariff.",required:!1}),pricing__averagePowerLevels:t.Array({displayName:"Pricing - Average Power Levels",description:"",required:!1,properties:{averagePowerUpToKw:t.Number({displayName:"Average Power Up To Kw",description:"",required:!0}),pricePerMinute:t.Number({displayName:"Price Per Minute",description:"",required:!0})}}),pricing__peakPowerLevels:t.Array({displayName:"Pricing - Peak Power Levels",description:"",required:!1,properties:{peakPowerUpToKw:t.Number({displayName:"Peak Power Up To Kw",description:"",required:!0}),regularPricePerMinute:t.Number({displayName:"Regular Price Per Minute",description:"",required:!0}),excessUsePricePerMin:t.Number({displayName:"Excess Use Price Per Min",description:"",required:!0})}}),pricing__timePeriods:t.Array({displayName:"Pricing - Time Periods",description:"",required:!1,properties:{startTime:t.ShortText({displayName:"Start Time",description:"The 24-hour format should be used.",required:!0}),endTime:t.ShortText({displayName:"End Time",description:"The 24-hour format should be used.",required:!0})}}),pricing__pricePeriods__connectionFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Connection Fee Periods - Fee",description:"",required:!1}),pricing__pricePeriods__energyFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Energy Fee Periods - Fee",description:"",required:!1}),pricing__pricePeriods__durationFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Duration Fee Periods - Fee",description:"",required:!1}),pricing__pricePeriods__idleFeePeriods__fee:t.Array({displayName:"Pricing - Price Periods - Idle Fee Periods - Fee",description:"",required:!1}),pricing__daysWhenApplied:t.Array({displayName:"Pricing - Days When Applied",description:"When left empty, this means that this is the standard pricing that would be applied in general without taking into consideration the day.",required:!1,properties:{name:t.ShortText({displayName:"Name",description:"",required:!1}),specialDates:t.Json({displayName:"Special Dates",defaultValue:{type:"array",items:{type:"string",format:"date"},example:"2022-01-30"},required:!1}),idleFeeGracePeriodMinutes:t.Number({displayName:"Idle Fee Grace Period Minutes",description:"Idle fee grace period (min). Optional. When idle period (no charging) is detected during a session the user is given this grace period to remove the vehicle, before idle fee starts applying.",required:!1}),idlePricingPeriodInMinutes:t.StaticDropdown({displayName:"Idle Pricing Period In Minutes",description:"Idle fee per minute. A fee per minute that is applied during idle period (no charging).",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),connectionFeeMinimumSessionDuration:t.Number({displayName:"Connection Fee Minimum Session Duration",description:"Connection Fee Minimum Session Duration (min). Optional.",required:!1}),connectionFeeMinimumSessionEnergy:t.Number({displayName:"Connection Fee Minimum Session Energy",description:"Connection Fee Minimum Session Energy (kWh). Optional. Up to 5 digits after the decimal point depending on the currency precision.",required:!1}),durationFeeGracePeriod:t.Number({displayName:"Duration Fee Grace Period",description:"Duration Fee Grace Period (min). Optional.",required:!1}),pricePeriodInMinutes:t.StaticDropdown({displayName:"Price Period In Minutes",description:"Charging period. In minutes. It defines the time-period for charging a fee.",required:!1,options:{options:[{label:"1",value:"1"},{label:"15",value:"15"},{label:"30",value:"30"},{label:"60",value:"60"},{label:"240",value:"240"},{label:"360",value:"360"}]}}),pricePeriods__connectionFeePeriods__fee:t.Json({displayName:"Price Periods - Connection Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1}),pricePeriods__energyFeePeriods__fee:t.Json({displayName:"Price Periods - Energy Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1}),pricePeriods__durationFeePeriods__fee:t.Json({displayName:"Price Periods - Duration Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1}),pricePeriods__idleFeePeriods__fee:t.Json({displayName:"Price Periods - Idle Fee Periods - Fee",defaultValue:{type:"array",items:{type:"number"}},required:!1})}}),pricing__thresholdPriceForEnergy:t.Number({displayName:"Pricing - Threshold Price For Energy",description:"Price for kWh to be considered by Optimised charging for setting the charging periods.",required:!1}),pricing__priceForEnergyWhenOptimized:t.Number({displayName:"Pricing - Price For Energy When Optimized",description:"",required:!1}),pricing__optimisedLabel:t.ShortText({displayName:"Pricing - Optimised Label",description:"",required:!1}),pricing__durationFeeFrom:t.ShortText({displayName:"Pricing - Duration Fee From",description:"Defined start time for the application of duration fees.",required:!1}),pricing__durationFeeTo:t.ShortText({displayName:"Pricing - Duration Fee To",description:"Defined end time for the application of duration fees.",required:!1}),pricing__subsidyIntegrationId:t.Number({displayName:"Pricing - Subsidy Integration Id",description:"The subsidy integration id that should be applied for this tariff. Only valid for Energy ToU tariffs. Please use the AMPECO.CHARGE backend for the specific integration id.",required:!1}),pricing__lockPriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Price On Session Start",description:"When enabled the tariff of the charger will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__lockEnergyPriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Energy Price On Session Start",description:"When enabled the tariff of the charger will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__lockDurationPriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Duration Price On Session Start",description:"When enabled, the energy fee component of the tariff will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__lockIdlePriceOnSessionStart:t.StaticDropdown({displayName:"Pricing - Lock Idle Price On Session Start",description:"When enabled, the duration fee component of the tariff will be saved using the pricing interval when the user starts the charging session.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),pricing__stateOfChargeIdleThreshold:t.StaticDropdown({displayName:"Pricing - State Of Charge Idle Threshold",description:"Switches the session to idle when the SoC (%) exceeds the selected value. Leave empty to use the system wide setting. This option will take effect only if `Allow custom SoC (%) threshold per Tariff` is set in `Idle period detection` setting.",required:!1,options:{options:[{label:"75",value:"75"},{label:"80",value:"80"},{label:"85",value:"85"},{label:"90",value:"90"},{label:"95",value:"95"},{label:"100",value:"100"}]}}),pricing__averagePowerIdleThreshold:t.Number({displayName:"Pricing - Average Power Idle Threshold",description:"Sets the session to idle state when the average kW for the past 5 minutes is below the set threshold. This option will take effect only if `Allow custom power threshold per Tariff` is set in `Idle period detection` setting.",required:!1}),stopSession__timeLimitMinutes:t.Number({displayName:"Stop Session - Time Limit Minutes",description:"Session max time. The maximum minutes a session is allowed to run. Skip for no time limit.",required:!1}),stopSession__stopWhenEnergyExceedsKwh:t.Number({displayName:"Stop Session - Stop When Energy Exceeds Kwh",description:"The maximum energy (kWh) allowed per session. Skip for no limit.",required:!1}),restrictions__applyToUsersOfChargePointOwner:t.StaticDropdown({displayName:"Restrictions - Apply To Users Of Charge Point Owner",description:"Makes the tariff apply to users of the partner, who is set as owner of the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__applyToUsersOfChargePointPartner:t.StaticDropdown({displayName:"Restrictions - Apply To Users Of Charge Point Partner",description:"Makes the tariff apply to users of the partner, who is set as owner of the charge point.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__applyToUsersOfAllRoamingEmsps:t.StaticDropdown({displayName:"Restrictions - Apply To Users Of All Roaming Emsps",description:"Makes the tariff apply to users of all eMSPs, which are roaming partners.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__applyToAdHocUsers:t.StaticDropdown({displayName:"Restrictions - Apply To Ad Hoc Users",description:"Makes the tariff valid for non-registered users(ad-hoc charging).",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),restrictions__adHocPreAuthorizeAmount:t.Number({displayName:"Restrictions - Ad Hoc Pre Authorize Amount",description:"Sets the amount that would be blocked on the user's card at the start of the session. Required if applyToAdHocUsers is true and one of the following billing strategies is chosen: `Require payment method and authorize certain amount before starting session` or `Require payment method OR minimum amount in balance`.",required:!1}),restrictions__adHocStopWhenPreAuthorizedAmountFallsBelow:t.Number({displayName:"Restrictions - Ad Hoc Stop When Pre Authorized Amount Falls Below",description:"Set the minimum pre-authorized amount threshold. When the remaining ad hoc pre-authorized amount falls below this value, the charging session will automatically stop to prevent revenue loss.",required:!1}),restrictions__applyToUsersOfPartners:t.Array({displayName:"Restrictions - Apply To Users Of Partners",description:"Users of specific Partners. Provide a list of partner IDs. Matches if the user is a invited to at least one of the partners.",required:!1}),restrictions__applyToUsersWithGroups:t.Array({displayName:"Restrictions - Apply To Users With Groups",description:"Users with a specific group. Provide a list of user groups. Matches if the user is a member of at least one of the groups.",required:!1}),restrictions__applyToUserGroupIds:t.Array({displayName:"Restrictions - Apply To User Group Ids",description:"An array of user group IDs. Users with a specific group. Provide a list of user group IDs.",required:!1}),restrictions__applyToUsersWithSubscriptions:t.Array({displayName:"Restrictions - Apply To Users With Subscriptions",description:"Users with a specific subscription plan. Provide a list of subscription plan IDs. Matches if the user has active one of the subscription plans.",required:!1}),restrictions__startDate:t.DateTime({displayName:"Restrictions - Start Date",description:"The date from which the tariff becomes valid.",required:!1}),restrictions__endDate:t.DateTime({displayName:"Restrictions - End Date",description:"The expiry date of the tariff. The tariff is valid until this date inclusive.",required:!1}),partner__id:t.Number({displayName:"Partner - Id",description:"The assigned Partner will have access to make changes to the tariff.",required:!1}),display__defaultPriceInformation:t.ShortText({displayName:"Display - Default Price Information",description:"The default information that would be shown on the display of the charge point without the user having authorized themselves.",required:!1}),display__defaultPriceInformationOffline:t.ShortText({displayName:"Display - Default Price Information Offline",description:"The information that would be shown on the display of the charge point when offline.",required:!1}),display__priceInformation:t.ShortText({displayName:"Display - Price Information",description:"The information that would be shown on the display of the charge point for users that are eligible for this tariff.",required:!1}),display__totalCostInformation:t.ShortText({displayName:"Display - Total Cost Information",description:"Additional information that would be displayed on the charge point when the session ends, along with the total fees for energy, duration and idle.",required:!1}),integrationId:t.Number({displayName:"Integration Id",description:"References the internal integration configuration that enables this tariff type",required:!1})},async run(e){try{let r=l("/public-api/resources/tariffs/v1.0/{tariff}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","type","dayTariffStart","nightTariffStart","pricing","stopSession","restrictions","partner","display","integrationId"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var Lm=s({auth:o,name:"tariffDelete",displayName:"Resources - Tariffs - Delete",description:"Delete a tariff.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO tariff by its numeric ID. Destructive: removes the pricing definition and cannot be undone, so confirm the tariff is no longer assigned before calling. Deleting an already-removed tariff will error rather than succeed silently.",idempotent:!1},props:{tariff:t.Number({displayName:"Tariff",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tariffs/v1.0/{tariff}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Um=s({auth:o,name:"taxIdentificationNumbersListing",displayName:"Resources - Tax Identification Numbers - Listing",description:"Get all Tax Identification Numbers.",audience:"both",aiMetadata:{description:"List tax identification numbers, optionally auto-paginating across all pages to gather every record. Use to browse or find a TIN; read-only and safe to retry. To fetch one known record by ID use the read action instead.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/tax-identification-numbers/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Vm=s({auth:o,name:"taxIdentificationNumberCreate",displayName:"Resources - Tax Identification Numbers - Create",description:"Create new Tax Identification Number.",audience:"both",aiMetadata:{description:"Create a new tax identification number record with the given name. Use when registering a new TIN; to change an existing one use the update action instead. Not idempotent \u2014 each call creates a new record.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tax-identification-numbers/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var zm=s({auth:o,name:"taxIdentificationNumberRead",displayName:"Resources - Tax Identification Numbers - Read",description:"Get a Tax Identification Number.",audience:"both",aiMetadata:{description:"Retrieve a single tax identification number by its numeric ID. Use when you already know the ID and need its details; read-only and safe to retry. To search or browse multiple records use the listing action instead.",idempotent:!0},props:{taxIdentificationNumber:t.Number({displayName:"Tax Identification Number",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tax-identification-numbers/v2.0/{taxIdentificationNumber}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Fm=s({auth:o,name:"taxIdentificationNumberUpdate",displayName:"Resources - Tax Identification Numbers - Update",description:"Tax Identification Numbers.",audience:"both",aiMetadata:{description:"Update an existing tax identification number by its numeric ID, changing its name. Use when modifying a known TIN record rather than creating one; targets a specific record so re-running with the same values is safe.",idempotent:!0},props:{taxIdentificationNumber:t.Number({displayName:"Tax Identification Number",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/tax-identification-numbers/v2.0/{taxIdentificationNumber}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Bm=s({auth:o,name:"taxIdentificationNumberDelete",displayName:"Resources - Tax Identification Numbers - Delete",description:"Delete a Tax Identification Number.",audience:"both",aiMetadata:{description:"Permanently delete a tax identification number by its numeric ID. Use when removing a TIN record; this is destructive and cannot be undone, so confirm the ID first. Re-running after the record is gone will error.",idempotent:!1},props:{taxIdentificationNumber:t.Number({displayName:"Tax Identification Number",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/tax-identification-numbers/v2.0/{taxIdentificationNumber}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var $m=s({auth:o,name:"taxesListing",displayName:"Resources - Taxes - Listing",description:"Get all Taxes.",audience:"both",aiMetadata:{description:"List all tax rates configured in AMPECO. Read-only and idempotent; enable Paginate Results to fetch every page in one call, or leave it off to return a single page (up to per_page, max 100). Use to discover a tax ID before reading, applying, or deleting a specific tax.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/taxes/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Gm=s({auth:o,name:"taxCreate",displayName:"Resources - Taxes - Create",description:"Create new Tax.",audience:"both",aiMetadata:{description:"Create a new tax rate in AMPECO, supplying a name and percentage (optionally localized display names and a linked tax identification number). Not idempotent: each call adds another tax record even with identical inputs, so check existing taxes first to avoid duplicates.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0}),displayName:t.Array({displayName:"Display Name",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),percentage:t.Number({displayName:"Percentage",description:"",required:!0}),taxIdentificationNumberId:t.Number({displayName:"Tax Identification Number Id",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/taxes/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","displayName","percentage","taxIdentificationNumberId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Hm=s({auth:o,name:"taxRead",displayName:"Resources - Taxes - Read",description:"Get a Tax.",audience:"both",aiMetadata:{description:"Retrieve a single tax rate by its numeric ID. Read-only and idempotent. Pick this when you already know the tax ID; otherwise use the taxes listing action to find it first.",idempotent:!0},props:{tax:t.Number({displayName:"Tax",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/taxes/v2.0/{tax}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Wm=s({auth:o,name:"taxUpdate",displayName:"Resources - Taxes - Update",description:"Update Taxes.",audience:"both",aiMetadata:{description:"Update an existing tax in AMPECO, identified by its numeric tax id, changing its name, localized display names, percentage rate, or linked tax identification number. Only the fields you supply are changed. Re-running with the same values is safe, but supplied values overwrite the current configuration.",idempotent:!1},props:{tax:t.Number({displayName:"Tax",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!1}),displayName:t.Array({displayName:"Display Name",description:"",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}}),percentage:t.Number({displayName:"Percentage",description:"",required:!1}),taxIdentificationNumberId:t.Number({displayName:"Tax Identification Number Id",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/taxes/v2.0/{tax}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","displayName","percentage","taxIdentificationNumberId"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Km=s({auth:o,name:"taxDelete",displayName:"Resources - Taxes - Delete",description:"Delete a Tax.",audience:"both",aiMetadata:{description:"Permanently delete a tax rate by its numeric ID. Destructive and irreversible; effectively idempotent since deleting an already-removed tax has no further effect, though it may return a not-found error. Confirm the ID before calling.",idempotent:!0},props:{tax:t.Number({displayName:"Tax",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/taxes/v2.0/{tax}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Zm=s({auth:o,name:"templatesListing",displayName:"Resources - Templates - Templates Listing",description:"Get all charge points templates.",audience:"both",aiMetadata:{description:"List all charge point templates defined in AMPECO. Read-only and idempotent; enable Paginate Results to fetch every page, or leave it off for a single page (up to per_page, max 100). Use to find a template before applying it when creating or configuring charge points.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/templates/v1.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var jm=s({auth:o,name:"termsAndPoliciesListing",displayName:"Resources - Terms And Policies - Listing",description:"Terms and policies / Listing.",audience:"both",aiMetadata:{description:"List terms-and-policies document versions, optionally filtered by document id and valid-from date. Read-only and idempotent. Use termsAndPoliciesRead when you already know a specific term version id.",idempotent:!0},props:{filter__documentId:t.Number({displayName:"Filter - Document Id",description:"",required:!1}),filter__validFrom:t.DateTime({displayName:"Filter - Valid From",description:"ISO 8601 formatted date",required:!1})},async run(e){try{let r=l("/public-api/resources/terms-and-policies/v2.0",e.propsValue),a=p(e.propsValue,["filter"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Qm=s({auth:o,name:"termsAndPoliciesRead",displayName:"Resources - Terms And Policies - Read",description:"Terms and policies / Read.",audience:"both",aiMetadata:{description:"Fetch a single terms-and-policies document version by its numeric term version id. Read-only and idempotent. Use when you already know the term version id; to browse versions or filter by document use termsAndPoliciesListing.",idempotent:!0},props:{termVersion:t.Number({displayName:"Term Version",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/terms-and-policies/v2.0/{termVersion}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Ym=s({auth:o,name:"topUpPackagesListing",displayName:"Resources - Top Up Packages - Listing",description:"Get all Top-Up Packages.",audience:"both",aiMetadata:{description:"List top-up packages, optionally filtered to only enabled or disabled ones. Read-only and idempotent; use this to discover packages or find a package id before updating or deleting. Enable pagination to fetch all results.",idempotent:!0},props:{filter__enabled:t.ShortText({displayName:"Filter - Enabled",description:"Only list enabled or disabled Top-Up Packages",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/top-up-packages/v2.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Jm=s({auth:o,name:"topUpPackagCreate",displayName:"Resources - Top Up Packages - Create",description:"Create new Top-Up Package.",audience:"both",aiMetadata:{description:"Create a new top-up package, requiring a price and bonus amount; the package is disabled by default unless enabled is set to true. Not idempotent: each call creates a separate package. Use Update to change an existing package instead of recreating it.",idempotent:!1},props:{price:t.Number({displayName:"Price",description:"",required:!0}),bonus:t.Number({displayName:"Bonus",description:"",required:!0}),enabled:t.StaticDropdown({displayName:"Enabled",description:"By default is set to `false`.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/resources/top-up-packages/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["price","bonus","enabled"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Xm=s({auth:o,name:"topUpPackageRead",displayName:"Resources - Top Up Packages - Read",description:"Get a Top-Up Package.",audience:"both",aiMetadata:{description:"Fetches a single top-up package from AMPECO by its numeric ID. Use to look up the details of one known package; requires the package ID. Read-only and idempotent.",idempotent:!0},props:{topUpPackage:t.Number({displayName:"Top Up Package",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/top-up-packages/v2.0/{topUpPackage}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var ef=s({auth:o,name:"topUpPackageUpdate",displayName:"Resources - Top Up Packages - Update",description:"Top-Up Packages.",audience:"both",aiMetadata:{description:"Update an existing top-up package, identified by its numeric id, changing only the fields you supply (price, bonus, enabled flag). Not idempotent: each call mutates live state. Use Create to add a new package and Listing to find the package id.",idempotent:!1},props:{topUpPackage:t.Number({displayName:"Top Up Package",description:"",required:!0}),price:t.Number({displayName:"Price",description:"",required:!1}),bonus:t.Number({displayName:"Bonus",description:"",required:!1}),enabled:t.StaticDropdown({displayName:"Enabled",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/resources/top-up-packages/v2.0/{topUpPackage}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["price","bonus","enabled"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var tf=s({auth:o,name:"topUpPackageDelete",displayName:"Resources - Top Up Packages - Delete",description:"Delete a Top-Up Package.",audience:"both",aiMetadata:{description:"Permanently delete a top-up package by its numeric id. Destructive and not idempotent: deleting an already-removed package will fail. Confirm the package with Listing before deleting; consider disabling via Update instead if you only need to take it offline.",idempotent:!1},props:{topUpPackage:t.Number({displayName:"Top Up Package",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/top-up-packages/v2.0/{topUpPackage}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var rf=s({auth:o,name:"transactionsListing",displayName:"Resources - Transactions - Listing",description:"Get all transactions.",audience:"both",aiMetadata:{description:"List payment transactions, with optional filters by user, status, payment method, date ranges, invoice, session, voucher, terminal, billing type, or purchase type. Read-only and idempotent. Enable the Paginate Results option to fetch across pages up to Per page total; otherwise a single page (max 100) is returned. Use transactionRead when you already know a transaction id.",idempotent:!0},props:{filter__createdAfter:t.DateTime({displayName:"Filter - Created After",description:"ISO 8601 formatted date. Lists only the transactions created after this datetime",required:!1}),filter__createdBefore:t.DateTime({displayName:"Filter - Created Before",description:"ISO 8601 formatted date. Lists only the transactions created before this datetime",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the transactions that were last updated after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the transactions that were last updated before this datetime",required:!1}),filter__paymentMethod:t.StaticDropdown({displayName:"Filter - Payment Method",description:"Only list transactions by type of payment method",required:!1,options:{options:[{label:"visa",value:"visa"},{label:"mastercard",value:"mastercard"},{label:"paypal",value:"paypal"},{label:"maestro",value:"maestro"},{label:"amex",value:"amex"},{label:"unknown",value:"unknown"},{label:"applepay",value:"applepay"},{label:"googlepay",value:"googlepay"},{label:"twint",value:"twint"},{label:"other",value:"other"}]}}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Only list transactions by a certain user",required:!1}),filter__invoiceNumber:t.Number({displayName:"Filter - Invoice Number",description:"Only list transaction by invoice number",required:!1}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Only list transaction in this status",required:!1,options:{options:[{label:"pending",value:"pending"},{label:"finalized",value:"finalized"},{label:"failed",value:"failed"},{label:"reserved",value:"reserved"},{label:"refunded",value:"refunded"},{label:"authorized",value:"authorized"},{label:"initialized",value:"initialized"}]}}),filter__sessionId:t.Number({displayName:"Filter - Session Id",description:"Only list transaction with this session id",required:!1}),filter__ref:t.ShortText({displayName:"Filter - Ref",description:"Only list transactions with specific ref number.",required:!1}),filter__billingType:t.StaticDropdown({displayName:"Filter - Billing Type",description:"Only list transactions with the selected billing type.",required:!1,options:{options:[{label:"internal",value:"internal"},{label:"external",value:"external"}]}}),filter__terminalId:t.Number({displayName:"Filter - Terminal Id",description:"Only list transactions with specific payment terminal id.",required:!1}),filter__finalizedBefore:t.DateTime({displayName:"Filter - Finalized Before",description:"ISO 8601 formatted date. Lists only the transactions finalized before this datetime",required:!1}),filter__finalizedAfter:t.DateTime({displayName:"Filter - Finalized After",description:"ISO 8601 formatted date. Lists only the transactions finalized after this datetime",required:!1}),filter__voucherId:t.Number({displayName:"Filter - Voucher Id",description:"Only list transactions paid with this specific voucher id.",required:!1}),filter__purchaseType:t.StaticMultiSelectDropdown({displayName:"Filter - Purchase Type",description:"Only list transactions with the specified purchase type(s). Determines what the transaction was for based on its associated entity.",required:!1,options:{options:[{label:"session",value:"session"},{label:"subscription_plan",value:"subscription_plan"},{label:"topup_package",value:"topup_package"},{label:"custom_fee",value:"custom_fee"},{label:"payment_terminal_authorisation",value:"payment_terminal_authorisation"},{label:"payment_authorisation",value:"payment_authorisation"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/transactions/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var af=s({auth:o,name:"transactionsCreate",displayName:"Resources - Transactions - Create",description:"Create new Transaction.",audience:"both",aiMetadata:{description:"Record a new payment transaction in AMPECO with a total amount, status, and optional payment method and session linkage. Not idempotent: each call creates a distinct transaction, so repeating it produces duplicate records. Use transactionUpdate to amend a non-finalised transaction.",idempotent:!1},props:{sessionId:t.Number({displayName:"Session Id",description:"",required:!1}),paymentMethod__methodType:t.StaticDropdown({displayName:"Payment Method - Method Type",description:"",required:!1,options:{options:[{label:"card",value:"card"},{label:"bank_transfer",value:"bank_transfer"},{label:"wallet",value:"wallet"}]}}),paymentMethod__cardNetwork:t.StaticDropdown({displayName:"Payment Method - Card Network",description:"Required when `methodType` is `card`.",required:!1,options:{options:[{label:"visa",value:"visa"},{label:"mastercard",value:"mastercard"},{label:"paypal",value:"paypal"},{label:"maestro",value:"maestro"},{label:"amex",value:"amex"},{label:"unknown",value:"unknown"}]}}),paymentMethod__bankTransferType:t.StaticDropdown({displayName:"Payment Method - Bank Transfer Type",description:"Required when `methodType` is `bank_transfer`.",required:!1,options:{options:[{label:"pse",value:"pse"},{label:"sepa",value:"sepa"}]}}),paymentMethod__walletType:t.StaticDropdown({displayName:"Payment Method - Wallet Type",description:"Required when `methodType` is `wallet`.",required:!1,options:{options:[{label:"applepay",value:"applepay"},{label:"googlepay",value:"googlepay"},{label:"twint",value:"twint"},{label:"other",value:"other"}]}}),paymentMethod__type:t.StaticDropdown({displayName:"Payment Method - Type",description:"Deprecated, please use `methodType` and `cardNetwork` instead.",required:!1,options:{options:[{label:"visa",value:"visa"},{label:"mastercard",value:"mastercard"},{label:"paypal",value:"paypal"},{label:"maestro",value:"maestro"},{label:"amex",value:"amex"},{label:"unknown",value:"unknown"}]}}),paymentMethod__last4:t.ShortText({displayName:"Payment Method - Last4",description:"",required:!1}),paymentMethod__expMonth:t.ShortText({displayName:"Payment Method - Exp Month",description:"",required:!1}),paymentMethod__expYear:t.ShortText({displayName:"Payment Method - Exp Year",description:"",required:!1}),totalAmount:t.Number({displayName:"Total Amount",description:"",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"",required:!0,options:{options:[{label:"pending",value:"pending"},{label:"finalized",value:"finalized"},{label:"failed",value:"failed"},{label:"reversed",value:"reversed"},{label:"refunded",value:"refunded"},{label:"authorized",value:"authorized"},{label:"initialized",value:"initialized"}]}}),ref:t.ShortText({displayName:"Ref",description:"",required:!1}),failureReason:t.ShortText({displayName:"Failure Reason",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/transactions/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["sessionId","paymentMethod","totalAmount","status","ref","failureReason"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var of=s({auth:o,name:"transactionRead",displayName:"Resources - Transactions - Read",description:"Get a transation.",audience:"both",aiMetadata:{description:"Fetch a single payment transaction by its id, returning its amount, status, payment method and references. Read-only and idempotent. Use when you already have the transaction id; to search by user, status, or date use transactionsListing.",idempotent:!0},props:{transaction:t.ShortText({displayName:"Transaction",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/transactions/v1.0/{transaction}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var nf=s({auth:o,name:"transactionUpdate",displayName:"Resources - Transactions - Update",description:"Update a non-finalised transaction.",audience:"both",aiMetadata:{description:"Modify an existing transaction identified by its id, changing its status, amount, payment method, or references. Idempotent: applies the supplied fields to that one transaction. Only works on non-finalised transactions; finalised ones cannot be edited. Use transactionsCreate to record a new transaction.",idempotent:!0},props:{transaction:t.ShortText({displayName:"Transaction",description:"",required:!0}),paymentMethod__methodType:t.StaticDropdown({displayName:"Payment Method - Method Type",description:"",required:!1,options:{options:[{label:"card",value:"card"},{label:"bank_transfer",value:"bank_transfer"}]}}),paymentMethod__cardNetwork:t.StaticDropdown({displayName:"Payment Method - Card Network",description:"Required when `methodType` is `card`.",required:!1,options:{options:[{label:"visa",value:"visa"},{label:"mastercard",value:"mastercard"},{label:"paypal",value:"paypal"},{label:"maestro",value:"maestro"},{label:"amex",value:"amex"},{label:"unknown",value:"unknown"}]}}),paymentMethod__bankTransferType:t.StaticDropdown({displayName:"Payment Method - Bank Transfer Type",description:"Required when `methodType` is `bank_transfer`.",required:!1,options:{options:[{label:"pse",value:"pse"},{label:"sepa",value:"sepa"}]}}),paymentMethod__type:t.StaticDropdown({displayName:"Payment Method - Type",description:"Deprecated, please use `methodType` and `cardNetwork` instead.",required:!1,options:{options:[{label:"visa",value:"visa"},{label:"mastercard",value:"mastercard"},{label:"paypal",value:"paypal"},{label:"maestro",value:"maestro"},{label:"amex",value:"amex"},{label:"unknown",value:"unknown"}]}}),paymentMethod__last4:t.ShortText({displayName:"Payment Method - Last4",description:"",required:!1}),paymentMethod__expMonth:t.ShortText({displayName:"Payment Method - Exp Month",description:"",required:!1}),paymentMethod__expYear:t.ShortText({displayName:"Payment Method - Exp Year",description:"",required:!1}),status:t.StaticDropdown({displayName:"Status",description:"",required:!0,options:{options:[{label:"pending",value:"pending"},{label:"finalized",value:"finalized"},{label:"failed",value:"failed"},{label:"reversed",value:"reversed"},{label:"refunded",value:"refunded"},{label:"authorized",value:"authorized"},{label:"initialized",value:"initialized"}]}}),totalAmount:t.Number({displayName:"Total Amount",description:"",required:!0}),ref:t.ShortText({displayName:"Ref",description:"",required:!1}),failureReason:t.ShortText({displayName:"Failure Reason",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/transactions/v1.0/{transaction}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["paymentMethod","status","totalAmount","ref","failureReason"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var sf=s({auth:o,name:"userGroupsListing",displayName:"Resources - User Groups - Listing",description:"Get all user groups.",audience:"both",aiMetadata:{description:"List AMPECO user groups, optionally filtered by partner (a specific partner ID, or only groups with/without a partner). Read-only and idempotent; enable Paginate Results to fetch all pages. To retrieve one group by its ID use the user group read action instead.",idempotent:!0},props:{filter__noPartner:t.ShortText({displayName:"Filter - No Partner",description:"True returns User Groups that have no Partner associated, false returns User Groups that have a Partner associated.",required:!1}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"User Groups of a specific Partner.",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/user-groups/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var lf=s({auth:o,name:"userGroupCreate",displayName:"Resources - User Groups - Create",description:"Create new user group.",audience:"both",aiMetadata:{description:"Create a new AMPECO user group with a name and optional description and partner association. Not idempotent: each call adds another group, so re-running creates duplicates. Note that partnerId can only be set while the group has no users; use the update action to modify an existing group.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"The partnerId can be updated only if there are no users added to the user group",required:!1}),description:t.ShortText({displayName:"Description",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/user-groups/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","partnerId","description"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var pf=s({auth:o,name:"userGroupRead",displayName:"Resources - User Groups - Read",description:"Get an user group.",audience:"both",aiMetadata:{description:"Retrieve a single AMPECO user group by its numeric ID. Read-only and idempotent; pick this when you already know the group ID. To search or enumerate groups instead, use the user groups listing action.",idempotent:!0},props:{userGroup:t.Number({displayName:"User Group",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/user-groups/v1.0/{userGroup}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var uf=s({auth:o,name:"userGroupUpdate",displayName:"Resources - User Groups - Update",description:"Update a user group.",audience:"both",aiMetadata:{description:"Update an existing AMPECO user group identified by its numeric ID, setting its name and optional description and partner. Idempotent: applying the same field values repeatedly yields the same state. partnerId can only be changed while the group has no users assigned.",idempotent:!0},props:{userGroup:t.Number({displayName:"User Group",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!0}),partnerId:t.Number({displayName:"Partner Id",description:"The partnerId can be updated only if there are no users added to the user group",required:!1}),description:t.ShortText({displayName:"Description",description:"",required:!1})},async run(e){try{let r=l("/public-api/resources/user-groups/v1.0/{userGroup}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name","partnerId","description"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var cf=s({auth:o,name:"userGroupDelete",displayName:"Resources - User Groups - Delete",description:"Delete a user group.",audience:"both",aiMetadata:{description:"Permanently delete an AMPECO user group by its numeric ID. Effectively idempotent on the target (re-deleting an already-removed group leaves no group), but destructive and irreversible, so confirm the ID before running.",idempotent:!0},props:{userGroup:t.Number({displayName:"User Group",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/user-groups/v1.0/{userGroup}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var df=s({auth:o,name:"usersListing",displayName:"Resources - Users - Users Listing",description:"Get all users.",audience:"both",aiMetadata:{description:"List AMPECO users, optionally filtered by user group, partner, external id, email, external app data, or last-updated date range. Read-only and idempotent. Filtering by email or external id is the way to look a user up when you do not have their numeric id. Enable Paginate Results to fetch every page up to the Per page cap.",idempotent:!0},props:{filter__userGroupId:t.Number({displayName:"Filter - User Group Id",description:"Only list users that belong to a certain user group",required:!1}),filter__partnerId:t.Number({displayName:"Filter - Partner Id",description:"Only list users attached to the partner.",required:!1}),filter__externalId:t.ShortText({displayName:"Filter - External Id",description:"Only list users with specific external id",required:!1}),filter__email:t.ShortText({displayName:"Filter - Email",description:"Only list user with specific email",required:!1}),filter__externalAppData:t.ShortText({displayName:"Filter - External App Data",description:"Only list records with specific external application data. You can use a dot notation to search for nested properties. For example, `filter[externalAppData.property1.property2]=value`.",required:!1}),filter__lastUpdatedAfter:t.DateTime({displayName:"Filter - Last Updated After",description:"ISO 8601 formatted date. Lists only the users that were last updated on and after this datetime",required:!1}),filter__lastUpdatedBefore:t.DateTime({displayName:"Filter - Last Updated Before",description:"ISO 8601 formatted date. Lists only the users that were last updated on and before this datetime",required:!1}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"partnerInvites",value:"partnerInvites"},{label:"externalAppData",value:"externalAppData"}]}}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/users/v1.0",e.propsValue),a=p(e.propsValue,["filter","page","per_page","cursor","include"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var mf=s({auth:o,name:"userCreate",displayName:"Resources - Users - User Create",description:"Create new User.",audience:"both",aiMetadata:{description:"Create a new AMPECO user from an email and password, with optional profile, contact, address, group, and session-option fields. Use to register an account that does not yet exist; to modify an existing one use User Update. Not idempotent: repeated calls attempt to create duplicate users (and will fail if the email is already taken).",idempotent:!1},props:{email:t.ShortText({displayName:"Email",description:"",required:!0}),emailVerified:t.ShortText({displayName:"Email Verified",description:"ISO 8601 formatted date",required:!1}),password:t.ShortText({displayName:"Password",description:"",required:!0}),requirePasswordReset:t.StaticDropdown({displayName:"Require Password Reset",description:"Sets a requirement for the user to set a new password when they next open the app. After a new password is set, this option resets automatically.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),first_name:t.ShortText({displayName:"First Name",description:"",required:!1}),middle_name:t.ShortText({displayName:"Middle Name",description:"",required:!1}),last_name:t.ShortText({displayName:"Last Name",description:"",required:!1}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),state:t.Dropdown({displayName:"State",required:!1,auth:o,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),city:t.ShortText({displayName:"City",description:"",required:!1}),post_code:t.ShortText({displayName:"Post Code",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1}),vehicle_no:t.ShortText({displayName:"Vehicle No",description:"",required:!1}),personal_id:t.ShortText({displayName:"Personal Id",description:"",required:!1}),locale:t.ShortText({displayName:"Locale",description:`The language and regional settings to use in the app.
|
|
124
|
+
|
|
125
|
+
**Only available** if the option to update the user locale has been enabled for the operator.
|
|
126
|
+
`,required:!1}),userGroupIds:t.Array({displayName:"User Group Ids",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"Third party identifier of the user",required:!1}),options__sessionsAllowed:t.StaticDropdown({displayName:"Options - Sessions Allowed",description:"Determine the number of sessions a user could start - single or multiple simultaneous sessions, or whether the user could start simultaneous sessions with several Id Tags.",required:!1,options:{options:[{label:"single_session",value:"single_session"},{label:"multiple_simultaneous_sessions_per_idtag",value:"multiple_simultaneous_sessions_per_idtag"},{label:"simultaneous_use_of_idtags",value:"simultaneous_use_of_idtags"},{label:"multiple_simultaneous_sessions_remotely_and_idtags",value:"multiple_simultaneous_sessions_remotely_and_idtags"}]}}),receiveNewsAndPromotions:t.StaticDropdown({displayName:"Receive News And Promotions",description:"Indicates whether the user has opted into receiving news and promotions. To opt in, set this field to 'true'; otherwise, set it to 'false'.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),bankDetails__bankIban:t.ShortText({displayName:"Bank Details - Bank Iban",description:"IBAN that is provided for the user.",required:!1}),bankDetails__bankName:t.ShortText({displayName:"Bank Details - Bank Name",description:"Name of the Bank for which the user has provided IBAN.",required:!1}),bankDetails__bankAddress:t.ShortText({displayName:"Bank Details - Bank Address",description:"Address of the user's Bank.",required:!1}),bankDetails__bankCode:t.ShortText({displayName:"Bank Details - Bank Code",description:"Bank code assigned by a central bank, a bank supervisory body or a Bankers Association in the country.",required:!1}),bankDetails__bankAccountNumber:t.ShortText({displayName:"Bank Details - Bank Account Number",description:"Bank account ID provided by the user.",required:!1}),bankDetails__bankAccountType:t.ShortText({displayName:"Bank Details - Bank Account Type",description:"Type of account the user has provided.",required:!1}),nonce:t.ShortText({displayName:"Nonce",description:"A optional unique string that is used to prevent replay attacks. It's generated by the server, the client should pass it if the user is being created from an external sign up embedded web app and needs to automatically log in the user in the mobile app after creation.",required:!1})},async run(e){try{let r=l("/public-api/resources/users/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["email","emailVerified","password","requirePasswordReset","first_name","middle_name","last_name","phone","country","state","city","post_code","address","vehicle_no","personal_id","locale","userGroupIds","externalId","options","receiveNewsAndPromotions","bankDetails","nonce"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var ff=s({auth:o,name:"userRead",displayName:"Resources - Users - User Read",description:"Get a user.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO user by numeric user id, optionally including partner invites or external app data and the current amount due. Read-only and idempotent. Use when you already have the id; to find a user by email or external id use Users Listing instead.",idempotent:!0},props:{user:t.Number({displayName:"User",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"partnerInvites",value:"partnerInvites"},{label:"externalAppData",value:"externalAppData"}]}}),withAmountDue:t.StaticDropdown({displayName:"With Amount Due",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}",e.propsValue),a=p(e.propsValue,["include","withAmountDue"]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var hf=s({auth:o,name:"userUpdate",displayName:"Resources - Users - User Update",description:"Update user.",audience:"both",aiMetadata:{description:"Update an existing AMPECO user, identified by numeric user id, changing profile, contact, address, credentials, group membership, session options, or bank details. Only the fields you supply are modified. Re-running with the same values is safe, but provided values overwrite the current ones. Use User Create to add a new user.",idempotent:!1},props:{user:t.Number({displayName:"User",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"partnerInvites",value:"partnerInvites"},{label:"externalAppData",value:"externalAppData"}]}}),email:t.ShortText({displayName:"Email",description:"",required:!1}),emailVerified:t.ShortText({displayName:"Email Verified",description:"ISO 8601 formatted date",required:!1}),password:t.ShortText({displayName:"Password",description:"",required:!1}),requirePasswordReset:t.StaticDropdown({displayName:"Require Password Reset",description:"Sets a requirement for the user to set a new password when they next open the app. After a new password is set, this option resets automatically.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),first_name:t.ShortText({displayName:"First Name",description:"",required:!1}),middle_name:t.ShortText({displayName:"Middle Name",description:"",required:!1}),last_name:t.ShortText({displayName:"Last Name",description:"",required:!1}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),state:t.Dropdown({displayName:"State",required:!1,auth:o,refreshers:["country"],options:c(async({country:e})=>{if(!e)return{options:[]};let r={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"]},a=e;return a in r?{options:r[a].map(i=>({label:i,value:i}))}:{options:[]}},"options")}),city:t.ShortText({displayName:"City",description:"",required:!1}),post_code:t.ShortText({displayName:"Post Code",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1}),vehicle_no:t.ShortText({displayName:"Vehicle No",description:"",required:!1}),userGroupIds:t.Array({displayName:"User Group Ids",description:"",required:!1}),externalId:t.ShortText({displayName:"External Id",description:"Third party identifier of the user",required:!1}),options__sessionsAllowed:t.StaticDropdown({displayName:"Options - Sessions Allowed",description:"Determine the number of sessions a user could start - single or multiple simultaneous sessions, or whether the user could start simultaneous sessions with several Id Tags.",required:!1,options:{options:[{label:"single_session",value:"single_session"},{label:"multiple_simultaneous_sessions_per_idtag",value:"multiple_simultaneous_sessions_per_idtag"},{label:"simultaneous_use_of_idtags",value:"simultaneous_use_of_idtags"},{label:"multiple_simultaneous_sessions_remotely_and_idtags",value:"multiple_simultaneous_sessions_remotely_and_idtags"}]}}),receiveNewsAndPromotions:t.StaticDropdown({displayName:"Receive News And Promotions",description:"Updates the user's preference for receiving news and promotions. To change their preference, update this field to 'true' to opt in, or 'false' to opt out.",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),bankDetails__bankIban:t.ShortText({displayName:"Bank Details - Bank Iban",description:"IBAN that is provided for the user.",required:!1}),bankDetails__bankName:t.ShortText({displayName:"Bank Details - Bank Name",description:"Name of the Bank for which the user has provided IBAN.",required:!1}),bankDetails__bankAddress:t.ShortText({displayName:"Bank Details - Bank Address",description:"Address of the user's Bank.",required:!1}),bankDetails__bankCode:t.ShortText({displayName:"Bank Details - Bank Code",description:"Bank code assigned by a central bank, a bank supervisory body or a Bankers Association in the country.",required:!1}),bankDetails__bankAccountNumber:t.ShortText({displayName:"Bank Details - Bank Account Number",description:"Bank account ID provided by the user.",required:!1}),bankDetails__bankAccountType:t.ShortText({displayName:"Bank Details - Bank Account Type",description:"Type of account the user has provided.",required:!1})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}",e.propsValue),a=p(e.propsValue,["include"]),i=m(e.propsValue,["email","emailVerified","password","requirePasswordReset","first_name","middle_name","last_name","phone","country","state","city","post_code","address","vehicle_no","userGroupIds","externalId","options","receiveNewsAndPromotions","bankDetails"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var yf=s({auth:o,name:"userDelete",displayName:"Resources - Users - User Delete",description:"Delete a user.",audience:"both",aiMetadata:{description:"Permanently delete a single AMPECO user by numeric user id. Destructive and irreversible; confirm the id (e.g. via User Read or Users Listing) before calling. Not a safe retry against an arbitrary id.",idempotent:!1},props:{user:t.Number({displayName:"User",description:"",required:!0}),include:t.StaticMultiSelectDropdown({displayName:"Include",description:"",required:!1,options:{options:[{label:"partnerInvites",value:"partnerInvites"},{label:"externalAppData",value:"externalAppData"}]}})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}",e.propsValue),a=p(e.propsValue,["include"]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var bf=s({auth:o,name:"invoiceDetailsRead",displayName:"Resources - Users - Invoice Details Read",description:"Invoice details / Read.",audience:"both",aiMetadata:{description:"Fetch the stored billing/invoice details for a single AMPECO user, identified by user id. Read-only and idempotent. Use to inspect current invoice settings before changing them with Invoice Details Create Or Update.",idempotent:!0},props:{user:t.Number({displayName:"User",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/invoice-details",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var gf=s({auth:o,name:"invoiceDetailsCreateOrUpdate",displayName:"Resources - Users - Invoice Details Create Or Update",description:"Create or update user invoice details.",audience:"both",aiMetadata:{description:"Upsert the billing/invoice details for a single AMPECO user, keyed by user id. The required fields depend on the selected invoice-manager variant (Ampeco, Cardcom, SoftOne, or Ecpay). Idempotent: it overwrites any existing invoice details for that user rather than creating duplicates. Use Invoice Details Read to inspect the current values first.",idempotent:!0},props:{user:t.Number({displayName:"User",description:"",required:!0}),requestBody_VariantType:t.StaticDropdown({displayName:"Request Body Variant Type",description:"Select the type of the variant",required:!0,options:{options:[{label:"Ampeco Invoice Manager",value:"1"},{label:"Cardcom Invoice Manager",value:"2"},{label:"SoftOne Invoice Manager",value:"3"},{label:"Ecpay Invoice Manager",value:"4"}]}}),requestBody:t.DynamicProperties({displayName:"Request Body",required:!0,auth:o,refreshers:["requestBody_VariantType"],props:c(async({requestBody_VariantType:e})=>{if(!e)return{};let r={1:{requireInvoice:t.StaticDropdown({displayName:"Require Invoice",description:"",required:!0,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),invoiceType:t.StaticDropdown({displayName:"Invoice Type",description:"",required:!0,options:{options:[{label:"individual",value:"individual"},{label:"company",value:"company"}]}}),individualName:t.ShortText({displayName:"Individual Name",description:"",required:!1}),individualPersonalId:t.ShortText({displayName:"Individual Personal Id",description:"",required:!1}),individualTaxId:t.ShortText({displayName:"Individual Tax Id",description:"",required:!1}),companyName:t.ShortText({displayName:"Company Name",description:"",required:!1}),companyRegNo:t.ShortText({displayName:"Company Reg No",description:"",required:!1}),companyTaxId:t.ShortText({displayName:"Company Tax Id",description:"",required:!1}),companyTaxAdministrationOfficeName:t.ShortText({displayName:"Company Tax Administration Office Name",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),region:t.ShortText({displayName:"Region",description:"When country is not in US, AU, CA, UM or RO, you can provide the region.",required:!1}),state:t.Dropdown({displayName:"State",auth:o,required:!1,refreshers:["country"],options:c(async({country:i})=>{if(!i)return{options:[]};let d={US:["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"],AU:["NSW","VIC","QLD","WA","SA","TAS","ACT","NT","JBT","CX","NF","CC","AQ","CSI","ACI","HM"],CA:["AB","BC","MB","NB","NL","NT","NS","NU","ON","PE","QC","SK","YT"],UM:["81","84","85","67","89","71","76","95","79"],RO:["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"]},h=i;return h in d?{options:d[h].map(b=>({label:b,value:b}))}:{options:[]}},"options")}),city:t.ShortText({displayName:"City",description:"",required:!1}),postCode:t.ShortText({displayName:"Post Code",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1})},2:{invoiceRequired:t.StaticDropdown({displayName:"Invoice Required",description:"",required:!0,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}}),clientType:t.StaticDropdown({displayName:"Client Type",description:"",required:!0,options:{options:[{label:"individual",value:"individual"},{label:"company",value:"company"}]}}),name:t.ShortText({displayName:"Name",description:"",required:!1}),email:t.ShortText({displayName:"Email",description:"",required:!1}),mobilePhoneNumber:t.ShortText({displayName:"Mobile Phone Number",description:"",required:!1}),landlinePhoneNumber:t.ShortText({displayName:"Landline Phone Number",description:"",required:!1}),taxId:t.ShortText({displayName:"Tax Id",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),city:t.ShortText({displayName:"City",description:"",required:!1}),postcode:t.ShortText({displayName:"Postcode",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1})},3:{firstName:t.ShortText({displayName:"First Name",description:"",required:!0}),lastName:t.ShortText({displayName:"Last Name",description:"",required:!0}),email:t.ShortText({displayName:"Email",description:"",required:!0}),phone:t.ShortText({displayName:"Phone",description:"",required:!1}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),city:t.ShortText({displayName:"City",description:"",required:!1}),postcode:t.ShortText({displayName:"Postcode",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1})},4:{invoiceType:t.StaticDropdown({displayName:"Invoice Type",description:"",required:!0,options:{options:[{label:"EInvoice",value:"EInvoice"},{label:"Company",value:"Company"},{label:"Donation",value:"Donation"}]}}),carrierType:t.StaticDropdown({displayName:"Carrier Type",description:"",required:!1,options:{options:[{label:"Mobile",value:"Mobile"},{label:"Citizen",value:"Citizen"},{label:"GreenWorld",value:"GreenWorld"}]}}),loveCode:t.ShortText({displayName:"Love Code",description:"",required:!1}),mobileBarCode:t.ShortText({displayName:"Mobile Bar Code",description:"",required:!1}),citizenId:t.ShortText({displayName:"Citizen Id",description:"",required:!1}),companyId:t.ShortText({displayName:"Company Id",description:"",required:!1}),name:t.ShortText({displayName:"Name",description:"",required:!0}),email:t.ShortText({displayName:"Email",description:"",required:!0}),phone:t.ShortText({displayName:"Phone",description:"",required:!0}),country:t.StaticDropdown({displayName:"Country",description:"",required:!1,options:{options:[{label:"AF",value:"AF"},{label:"AX",value:"AX"},{label:"AL",value:"AL"},{label:"DZ",value:"DZ"},{label:"AS",value:"AS"},{label:"AD",value:"AD"},{label:"AO",value:"AO"},{label:"AI",value:"AI"},{label:"AQ",value:"AQ"},{label:"AG",value:"AG"},{label:"AR",value:"AR"},{label:"AM",value:"AM"},{label:"AW",value:"AW"},{label:"AU",value:"AU"},{label:"AT",value:"AT"},{label:"AZ",value:"AZ"},{label:"BS",value:"BS"},{label:"BH",value:"BH"},{label:"BD",value:"BD"},{label:"BB",value:"BB"},{label:"BY",value:"BY"},{label:"BE",value:"BE"},{label:"BZ",value:"BZ"},{label:"BJ",value:"BJ"},{label:"BM",value:"BM"},{label:"BT",value:"BT"},{label:"BO",value:"BO"},{label:"BQ",value:"BQ"},{label:"BA",value:"BA"},{label:"BW",value:"BW"},{label:"BV",value:"BV"},{label:"BR",value:"BR"},{label:"IO",value:"IO"},{label:"BN",value:"BN"},{label:"BG",value:"BG"},{label:"BF",value:"BF"},{label:"BI",value:"BI"},{label:"KH",value:"KH"},{label:"CM",value:"CM"},{label:"CA",value:"CA"},{label:"CV",value:"CV"},{label:"KY",value:"KY"},{label:"CF",value:"CF"},{label:"TD",value:"TD"},{label:"CL",value:"CL"},{label:"CN",value:"CN"},{label:"CX",value:"CX"},{label:"CC",value:"CC"},{label:"CO",value:"CO"},{label:"KM",value:"KM"},{label:"CG",value:"CG"},{label:"CD",value:"CD"},{label:"CK",value:"CK"},{label:"CR",value:"CR"},{label:"CI",value:"CI"},{label:"HR",value:"HR"},{label:"CU",value:"CU"},{label:"CW",value:"CW"},{label:"CY",value:"CY"},{label:"CZ",value:"CZ"},{label:"DK",value:"DK"},{label:"DJ",value:"DJ"},{label:"DM",value:"DM"},{label:"DO",value:"DO"},{label:"EC",value:"EC"},{label:"EG",value:"EG"},{label:"SV",value:"SV"},{label:"GQ",value:"GQ"},{label:"ER",value:"ER"},{label:"EE",value:"EE"},{label:"ET",value:"ET"},{label:"FK",value:"FK"},{label:"FO",value:"FO"},{label:"FJ",value:"FJ"},{label:"FI",value:"FI"},{label:"FR",value:"FR"},{label:"GF",value:"GF"},{label:"PF",value:"PF"},{label:"TF",value:"TF"},{label:"GA",value:"GA"},{label:"GM",value:"GM"},{label:"GE",value:"GE"},{label:"DE",value:"DE"},{label:"GH",value:"GH"},{label:"GI",value:"GI"},{label:"GR",value:"GR"},{label:"GL",value:"GL"},{label:"GD",value:"GD"},{label:"GP",value:"GP"},{label:"GU",value:"GU"},{label:"GT",value:"GT"},{label:"GG",value:"GG"},{label:"GN",value:"GN"},{label:"GW",value:"GW"},{label:"GY",value:"GY"},{label:"HT",value:"HT"},{label:"HM",value:"HM"},{label:"VA",value:"VA"},{label:"HN",value:"HN"},{label:"HK",value:"HK"},{label:"HU",value:"HU"},{label:"IS",value:"IS"},{label:"IN",value:"IN"},{label:"ID",value:"ID"},{label:"IR",value:"IR"},{label:"IQ",value:"IQ"},{label:"IE",value:"IE"},{label:"IM",value:"IM"},{label:"IL",value:"IL"},{label:"IT",value:"IT"},{label:"JM",value:"JM"},{label:"JP",value:"JP"},{label:"JE",value:"JE"},{label:"JO",value:"JO"},{label:"KZ",value:"KZ"},{label:"KE",value:"KE"},{label:"KI",value:"KI"},{label:"KP",value:"KP"},{label:"KR",value:"KR"},{label:"XK",value:"XK"},{label:"KW",value:"KW"},{label:"KG",value:"KG"},{label:"LA",value:"LA"},{label:"LV",value:"LV"},{label:"LB",value:"LB"},{label:"LS",value:"LS"},{label:"LR",value:"LR"},{label:"LY",value:"LY"},{label:"LI",value:"LI"},{label:"LT",value:"LT"},{label:"LU",value:"LU"},{label:"MO",value:"MO"},{label:"MK",value:"MK"},{label:"MG",value:"MG"},{label:"MW",value:"MW"},{label:"MY",value:"MY"},{label:"MV",value:"MV"},{label:"ML",value:"ML"},{label:"MT",value:"MT"},{label:"MH",value:"MH"},{label:"MQ",value:"MQ"},{label:"MR",value:"MR"},{label:"MU",value:"MU"},{label:"YT",value:"YT"},{label:"MX",value:"MX"},{label:"FM",value:"FM"},{label:"MD",value:"MD"},{label:"MC",value:"MC"},{label:"MN",value:"MN"},{label:"ME",value:"ME"},{label:"MS",value:"MS"},{label:"MA",value:"MA"},{label:"MZ",value:"MZ"},{label:"MM",value:"MM"},{label:"NA",value:"NA"},{label:"NR",value:"NR"},{label:"NP",value:"NP"},{label:"NL",value:"NL"},{label:"NC",value:"NC"},{label:"NZ",value:"NZ"},{label:"NI",value:"NI"},{label:"NE",value:"NE"},{label:"NG",value:"NG"},{label:"NU",value:"NU"},{label:"NF",value:"NF"},{label:"MP",value:"MP"},{label:"NO",value:"NO"},{label:"OM",value:"OM"},{label:"PK",value:"PK"},{label:"PW",value:"PW"},{label:"PS",value:"PS"},{label:"PA",value:"PA"},{label:"PG",value:"PG"},{label:"PY",value:"PY"},{label:"PE",value:"PE"},{label:"PH",value:"PH"},{label:"PN",value:"PN"},{label:"PL",value:"PL"},{label:"PT",value:"PT"},{label:"PR",value:"PR"},{label:"QA",value:"QA"},{label:"RE",value:"RE"},{label:"RO",value:"RO"},{label:"RU",value:"RU"},{label:"RW",value:"RW"},{label:"BL",value:"BL"},{label:"SH",value:"SH"},{label:"KN",value:"KN"},{label:"LC",value:"LC"},{label:"MF",value:"MF"},{label:"PM",value:"PM"},{label:"VC",value:"VC"},{label:"WS",value:"WS"},{label:"SM",value:"SM"},{label:"ST",value:"ST"},{label:"SA",value:"SA"},{label:"SN",value:"SN"},{label:"RS",value:"RS"},{label:"SC",value:"SC"},{label:"SL",value:"SL"},{label:"SG",value:"SG"},{label:"SX",value:"SX"},{label:"SK",value:"SK"},{label:"SI",value:"SI"},{label:"SB",value:"SB"},{label:"SO",value:"SO"},{label:"ZA",value:"ZA"},{label:"GS",value:"GS"},{label:"SS",value:"SS"},{label:"ES",value:"ES"},{label:"LK",value:"LK"},{label:"SD",value:"SD"},{label:"SR",value:"SR"},{label:"SJ",value:"SJ"},{label:"SZ",value:"SZ"},{label:"SE",value:"SE"},{label:"CH",value:"CH"},{label:"SY",value:"SY"},{label:"TW",value:"TW"},{label:"TJ",value:"TJ"},{label:"TZ",value:"TZ"},{label:"TH",value:"TH"},{label:"TL",value:"TL"},{label:"TG",value:"TG"},{label:"TK",value:"TK"},{label:"TO",value:"TO"},{label:"TT",value:"TT"},{label:"TN",value:"TN"},{label:"TR",value:"TR"},{label:"TM",value:"TM"},{label:"TC",value:"TC"},{label:"TV",value:"TV"},{label:"UG",value:"UG"},{label:"UA",value:"UA"},{label:"AE",value:"AE"},{label:"GB",value:"GB"},{label:"US",value:"US"},{label:"UM",value:"UM"},{label:"UY",value:"UY"},{label:"UZ",value:"UZ"},{label:"VU",value:"VU"},{label:"VE",value:"VE"},{label:"VN",value:"VN"},{label:"VG",value:"VG"},{label:"VI",value:"VI"},{label:"WF",value:"WF"},{label:"EH",value:"EH"},{label:"YE",value:"YE"},{label:"ZM",value:"ZM"},{label:"ZW",value:"ZW"}]}}),city:t.ShortText({displayName:"City",description:"",required:!1}),postcode:t.ShortText({displayName:"Postcode",description:"",required:!1}),address:t.ShortText({displayName:"Address",description:"",required:!1})}},a=e;return a in r?r[a]:{}},"props")})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/invoice-details",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["requestBody_VariantType","requireInvoice","invoiceType","individualName","individualPersonalId","individualTaxId","companyName","companyRegNo","companyTaxId","companyTaxAdministrationOfficeName","country","region","state","city","postCode","address","invoiceRequired","clientType","name","email","mobilePhoneNumber","landlinePhoneNumber","taxId","postcode","firstName","lastName","phone","carrierType","loveCode","mobileBarCode","citizenId","companyId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var vf=s({auth:o,name:"paymentMethodsListing",displayName:"Resources - Users - Payment Methods Listing",description:"Get all payment methods for a user.",audience:"both",aiMetadata:{description:"List all payment methods registered to a single AMPECO user, identified by user id. Read-only and idempotent. Enable Paginate Results to fetch every page up to the Per page cap. Use to discover payment method ids before Payment Method Read, Update, or Delete.",idempotent:!0},props:{user:t.Number({displayName:"User",description:"",required:!0}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/payment-methods",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Pf=s({auth:o,name:"paymentMethodCreate",displayName:"Resources - Users - Payment Method Create",description:"Initiate a new payment method registration, or finalize it. Note that this is a two step process! # For payment processors with web view integration You will need to initiate a call with no parameters to this endpoint to get a new request to add payment method (Step 1). Then you will have to redirect to an endpoint and wait for the client to enter his credit card details there.",audience:"both",aiMetadata:{description:"Register a payment method for an AMPECO user via a two-step flow: call with only the user id to initiate a registration request, then call again with the returned transaction id to finalize. Optionally specify a tokenized type (card or bank transfer/SEPA). Not idempotent: each initiation starts a fresh registration. Use Payment Method Update to change an existing method.",idempotent:!1},props:{user:t.Number({displayName:"User",description:"",required:!0}),tokenizedType:t.StaticDropdown({displayName:"Tokenized Type",description:"The type of the tokenized payment method. If not provided - defaults to card",required:!1,options:{options:[{label:"card",value:"card"},{label:"bank_transfer",value:"bank_transfer"}]}}),bankTransferType:t.StaticDropdown({displayName:"Bank Transfer Type",description:"The type of the bank transfer. Required if `tokenizedType` is `bank_transfer`",required:!1,options:{options:[{label:"sepa",value:"sepa"}]}}),transactionId:t.Number({displayName:"Transaction Id",description:"The ID of the Transaction object, created when you initiated the request.",required:!1})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/payment-methods",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["tokenizedType","bankTransferType","transactionId"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Af=s({auth:o,name:"paymentMethodRead",displayName:"Resources - Users - Payment Method Read",description:"Get information for a payment method by ID.",audience:"both",aiMetadata:{description:"Fetch a single payment method for an AMPECO user, identified by user id and payment method id. Read-only and idempotent. Use Payment Methods Listing to discover the ids first.",idempotent:!0},props:{user:t.Number({displayName:"User",description:"",required:!0}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/payment-methods/{paymentMethodId}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Nf=s({auth:o,name:"paymentMethodUpdate",displayName:"Resources - Users - Payment Method Update",description:'Update Payment method. Please note that ";balance"; and ";corporate"; payment methods CANNOT be set as default',audience:"both",aiMetadata:{description:"Update a payment method for an AMPECO user, identified by user id and payment method id; primarily toggles whether it is the user's default. Re-running with the same value is safe. Built-in 'balance' and 'corporate' methods cannot be set as default.",idempotent:!1},props:{user:t.Number({displayName:"User",description:"",required:!0}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:"",required:!0}),default:t.StaticDropdown({displayName:"Default",description:"",required:!1,options:{options:[{label:"true",value:"true"},{label:"false",value:"false"}]}})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/payment-methods/{paymentMethodId}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["default"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Sf=s({auth:o,name:"paymentMethodDelete",displayName:"Resources - Users - Payment Method Delete",description:'Delete Payment method. Please note that ";balance"; and ";corporate"; payment methods CANNOT be removed from this interface.',audience:"both",aiMetadata:{description:"Remove a single payment method from an AMPECO user, identified by user id and payment method id. Destructive and irreversible. Built-in 'balance' and 'corporate' payment methods cannot be deleted here. Idempotent in effect once the method is gone, but it does not silently succeed on an unknown id.",idempotent:!1},props:{user:t.Number({displayName:"User",description:"",required:!0}),paymentMethodId:t.ShortText({displayName:"Payment Method Id",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/users/v1.0/{user}/payment-methods/{paymentMethodId}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var Tf=s({auth:o,name:"listUtilities",displayName:"Resources - Utilities - List Utilities",description:"Get all Utilities.",audience:"both",aiMetadata:{description:"List all AMPECO utility (electricity provider) records. Read-only and safe to repeat; supports automatic pagination to fetch every utility across pages. Use to discover utility IDs and names; use the get utility action when you already know a single utility ID.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/utilities/v1.0",e.propsValue),a=p(e.propsValue,["per_page","cursor"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Cf=s({auth:o,name:"createUtility",displayName:"Resources - Utilities - Create Utility",description:"Create Utility.",audience:"both",aiMetadata:{description:"Create a new AMPECO utility (electricity provider) record with a name. Not idempotent: each call adds another utility, so re-running creates duplicates. Use the update utility action to rename an existing one.",idempotent:!1},props:{name:t.ShortText({displayName:"Name",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/utilities/v1.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Rf=s({auth:o,name:"getUtility",displayName:"Resources - Utilities - Get Utility",description:"Get a single Utility.",audience:"both",aiMetadata:{description:"Fetch a single AMPECO utility (electricity provider) record by its numeric ID. Read-only and safe to repeat. Use when you already know the utility ID; use the list utilities action to browse or find IDs.",idempotent:!0},props:{utility:t.Number({displayName:"Utility",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/utilities/v1.0/{utility}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var _f=s({auth:o,name:"updateUtility",displayName:"Resources - Utilities - Update Utility",description:"Update a single Utility.",audience:"both",aiMetadata:{description:"Update an existing AMPECO utility (electricity provider) record by its numeric ID, setting its name. Not idempotent in the create sense: the utility must already exist and this overwrites its name. Use the create utility action to add a new utility.",idempotent:!1},props:{utility:t.Number({displayName:"Utility",description:"",required:!0}),name:t.ShortText({displayName:"Name",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/utilities/v1.0/{utility}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["name"]);return await n(e.auth,r,"PUT",i,a)}catch(r){u(r)}}});var wf=s({auth:o,name:"deleteUtility",displayName:"Resources - Utilities - Delete Utility",description:"Delete a single Utility.",audience:"both",aiMetadata:{description:"Permanently delete a single AMPECO utility (electricity provider) record by its numeric ID. Destructive and not reversible. Effectively idempotent once removed, but the first call deletes the utility, so confirm the ID first.",idempotent:!1},props:{utility:t.Number({displayName:"Utility",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/utilities/v1.0/{utility}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var If=s({auth:o,name:"vendorErrorCodesListing",displayName:"Resources - Vendor Error Codes - Vendor Error Codes Listing",description:"Get all Vendor Error Codes.",audience:"both",aiMetadata:{description:"List all vendor error codes configured in AMPECO. Read-only and safe to repeat. Enable the pagination option to fetch every page in one call; otherwise a single page (up to per_page, max 100) is returned. Use to discover available codes when you do not have a specific identifier.",idempotent:!0},props:{per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/vendor-error-codes/v2.0",e.propsValue),a=p(e.propsValue,["page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var Ef=s({auth:o,name:"vendorErrorCodeCreate",displayName:"Resources - Vendor Error Codes - Vendor Error Code Create",description:"Create new Vendor Error Code.",audience:"both",aiMetadata:{description:"Create a new vendor error code mapping from a vendor ID and error code, with optional description and recommended customer action. Not idempotent: each call adds a separate entry, so re-running produces duplicates. Use Update to change an existing mapping.",idempotent:!1},props:{vendorId:t.ShortText({displayName:"Vendor Id",description:"Unique identifier of the Vendor, reported from the Charge point",required:!0}),errorCode:t.ShortText({displayName:"Error Code",description:"The code reported from the charge point when the hardwareStatus is faulted",required:!0}),errorCodeDescription:t.ShortText({displayName:"Error Code Description",description:"Description of the error provided by the vendor",required:!1}),errorCodeCustomerAction:t.ShortText({displayName:"Error Code Customer Action",description:"Recommended actions by the customer when this error occurs",required:!1})},async run(e){try{let r=l("/public-api/resources/vendor-error-codes/v2.0",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["vendorId","errorCode","errorCodeDescription","errorCodeCustomerAction"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Df=s({auth:o,name:"vendorErrorCodeRead",displayName:"Resources - Vendor Error Codes - Vendor Error Code Read",description:"Get a Vendor Error Code.",audience:"both",aiMetadata:{description:"Retrieve a single vendor error code from AMPECO by its numeric identifier. Read-only lookup, safe to repeat; returns the same record on each call. Use when you already know the specific code and want its full detail rather than scanning the full list.",idempotent:!0},props:{vendorErrorCode:t.Number({displayName:"Vendor Error Code",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/vendor-error-codes/v2.0/{vendorErrorCode}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var xf=s({auth:o,name:"vendorErrorCodeUpdate",displayName:"Resources - Vendor Error Codes - Vendor Error Code Update",description:"Vendor Error Code.",audience:"both",aiMetadata:{description:"Update an existing vendor error code entry (by its numeric ID), setting the vendor ID, error code, and optional description/customer-action text. Idempotent: applying the same values repeatedly leaves the entry unchanged. Use this to modify an existing mapping rather than Create (which would add a duplicate).",idempotent:!0},props:{vendorErrorCode:t.Number({displayName:"Vendor Error Code",description:"",required:!0}),vendorId:t.ShortText({displayName:"Vendor Id",description:"Unique identifier of the Vendor, reported from the Charge point",required:!0}),errorCode:t.ShortText({displayName:"Error Code",description:"The code reported from the charge point when the hardwareStatus is faulted",required:!0}),errorCodeDescription:t.ShortText({displayName:"Error Code Description",description:"Description of the error provided by the vendor",required:!1}),errorCodeCustomerAction:t.ShortText({displayName:"Error Code Customer Action",description:"Recommended actions by the customer when this error occurs",required:!1})},async run(e){try{let r=l("/public-api/resources/vendor-error-codes/v2.0/{vendorErrorCode}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["vendorId","errorCode","errorCodeDescription","errorCodeCustomerAction"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Mf=s({auth:o,name:"vendorErrorCodeDelete",displayName:"Resources - Vendor Error Codes - Vendor Error Code Delete",description:"Delete a Vendor Error Code.",audience:"both",aiMetadata:{description:"Permanently delete a vendor error code from AMPECO by its numeric identifier. This destructive write cannot be undone; repeating it after success will fail because the record no longer exists. Confirm the correct code before calling.",idempotent:!1},props:{vendorErrorCode:t.Number({displayName:"Vendor Error Code",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/vendor-error-codes/v2.0/{vendorErrorCode}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var kf=s({auth:o,name:"vouchersListing",displayName:"Resources - Vouchers - Vouchers Listing",description:"Get all Vouchers.",audience:"both",aiMetadata:{description:"List vouchers, with optional filters by type, status, code substring, redeeming user, and creation/redemption/expiry date ranges. Read-only and idempotent. Use this to search or count vouchers; to fetch one known voucher prefer Voucher Read. Enable Paginate Results for the full set across pages.",idempotent:!0},props:{filter__type:t.StaticDropdown({displayName:"Filter - Type",description:"Lists only vouchers that are with one of these types `voucher`, `manual_top_up`, `top_up_auto`, `auto_top_up`, `top_up_by_operator`, `api_top_up`, `promo_code`, `subscribe_to_plan`.",required:!1,options:{options:[{label:"voucher",value:"voucher"},{label:"manual_top_up",value:"manual_top_up"},{label:"auto_top_up",value:"auto_top_up"},{label:"top_up_by_operator",value:"top_up_by_operator"},{label:"api_top_up",value:"api_top_up"},{label:"promo_code",value:"promo_code"},{label:"subscribe_to_plan",value:"subscribe_to_plan"}]}}),filter__status:t.StaticDropdown({displayName:"Filter - Status",description:"Lists only the vouchers that are with one of these statuses `enabled`, `disabled`.",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),filter__createdAt:t.DateTime({displayName:"Filter - Created At",description:"Lists only vouchers that are created on a particular date. Please provide the value in the following format `YYYY-MM-DD`.",required:!1}),filter__redeemedAfter:t.DateTime({displayName:"Filter - Redeemed After",description:"Lists only vouchers that are redeemed after the specified date and time. Please provide the value in ISO 8601 formatted date.",required:!1}),filter__redeemedBefore:t.DateTime({displayName:"Filter - Redeemed Before",description:"Lists only vouchers that were redeemed before the specified date and time. Please provide the value in ISO 8601 formatted date.",required:!1}),filter__userId:t.Number({displayName:"Filter - User Id",description:"Lists only vouchers that were redeemed by a particular user.",required:!1}),filter__expireDateAfter:t.DateTime({displayName:"Filter - Expire Date After",description:"Lists only vouchers with expiration date after the specified date. Please provide the value in RFC 3339 formatted date `YYYY-MM-DD`.",required:!1}),filter__expireDateBefore:t.DateTime({displayName:"Filter - Expire Date Before",description:"Lists only vouchers with expiration date before the specified date. Please provide the value in RFC 3339 formatted date `YYYY-MM-DD`.",required:!1}),filter__code:t.ShortText({displayName:"Filter - Code",description:"Lists only vouchers with code which contains the specified string. Please provide min 3 chars value.",required:!1}),per_page:t.Number({displayName:"Per page",description:"When pagination is enabled: maximum total results across all pages. When pagination is disabled: number of results per API request (max 100).",required:!1,defaultValue:100}),usePagination:t.Checkbox({displayName:"Paginate Results",description:"Whether to automatically paginate to fetch all results",required:!1,defaultValue:!1})},async run(e){try{let r=l("/public-api/resources/vouchers/v2.1",e.propsValue),a=p(e.propsValue,["filter","page","per_page"]),i=void 0;return e.propsValue.usePagination?await A({auth:e.auth,method:"GET",path:r,queryParams:a,body:i,perPage:e.propsValue.per_page??100,dataPath:"data"}):await n(e.auth,r,"GET",i,a)}catch(r){u(r)}}});var qf=s({auth:o,name:"voucherCreate",displayName:"Resources - Vouchers - Voucher Create",description:"Create new Voucher.",audience:"both",aiMetadata:{description:"Create a new voucher with an amount and optional expiry/validity period, assign-before date, code prefix, description, and localized titles. Not idempotent: each call mints a distinct voucher, so avoid retrying on uncertain failures. To change an existing voucher use Voucher Update instead.",idempotent:!1},props:{amount:t.Number({displayName:"Amount",description:"",required:!0}),expireDate:t.DateTime({displayName:"Expire Date",description:"RFC 3339 formatted date. Defines the date on which the voucher expires. The field can be calculated based on the `redeemedAt` timestamp and the `validityPeriod` field if the `validityPeriod` is set and the `expireDate` is not.",required:!1}),validityPeriod:t.StaticDropdown({displayName:"Validity Period",description:"Defines the validity period for the voucher. When a user redeems the voucher, this period is added to the `redeemedAt` timestamp to calculate the voucher's `expireDate`. This field is only used when `expireDate` is not already set - if `expireDate` has a value, this period is ignored and the defined `expireDate` is used instead.",required:!1,options:{options:[{label:"1 month",value:"1 month"},{label:"3 months",value:"3 months"},{label:"6 months",value:"6 months"},{label:"1 year",value:"1 year"},{label:"2 years",value:"2 years"},{label:"3 years",value:"3 years"},{label:"5 years",value:"5 years"}]}}),assignBeforeDate:t.DateTime({displayName:"Assign Before Date",description:"The date before which the voucher should be assigned to user in order to be valid. RFC 3339 formatted date",required:!1}),description:t.ShortText({displayName:"Description",description:"",required:!1}),prefix:t.ShortText({displayName:"Prefix",description:"The prefix of the voucher's code.",required:!1}),title:t.Array({displayName:"Title",description:"The title of the voucher.",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/vouchers/v2.1",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["amount","expireDate","validityPeriod","assignBeforeDate","description","prefix","title"]);return await n(e.auth,r,"POST",i,a)}catch(r){u(r)}}});var Of=s({auth:o,name:"voucherRead",displayName:"Resources - Vouchers - Voucher Read",description:"Get a Voucher.",audience:"both",aiMetadata:{description:"Fetch a single voucher by its numeric id. Read-only and idempotent. Use this when you already know the id; to discover vouchers by code, status, or date use Vouchers Listing instead.",idempotent:!0},props:{voucher:t.Number({displayName:"Voucher",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/vouchers/v2.1/{voucher}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"GET",void 0,a)}catch(r){u(r)}}});var Lf=s({auth:o,name:"voucherUpdate",displayName:"Resources - Vouchers - Voucher Update",description:"Update a Voucher.",audience:"both",aiMetadata:{description:"Update an existing voucher identified by its numeric id - status, amount, expiry/validity period, assign-before date, prefix, and localized titles. Targets one known voucher (it does not create); idempotent when sending the same values, since it sets fields to the supplied state.",idempotent:!0},props:{voucher:t.Number({displayName:"Voucher",description:"",required:!0}),status:t.StaticDropdown({displayName:"Status",description:"",required:!1,options:{options:[{label:"enabled",value:"enabled"},{label:"disabled",value:"disabled"}]}}),expireDate:t.DateTime({displayName:"Expire Date",description:"RFC 3339 formatted date. Defines the date on which the voucher expires. The field can be calculated based on the `redeemedAt` timestamp and the `validityPeriod` field if the `validityPeriod` is set and the `expireDate` is not.",required:!1}),validityPeriod:t.StaticDropdown({displayName:"Validity Period",description:"Defines the validity period for the voucher. When a user redeems the voucher, this period is added to the `redeemedAt` timestamp to calculate the voucher's `expireDate`. This field is only used when `expireDate` is not already set - if `expireDate` has a value, this period is ignored and the defined `expireDate` is used instead.",required:!1,options:{options:[{label:"1 month",value:"1 month"},{label:"3 months",value:"3 months"},{label:"6 months",value:"6 months"},{label:"1 year",value:"1 year"},{label:"2 years",value:"2 years"},{label:"3 years",value:"3 years"},{label:"5 years",value:"5 years"}]}}),assignBeforeDate:t.DateTime({displayName:"Assign Before Date",description:"The date before which the voucher should be assigned to user in order to be valid. RFC 3339 formatted date",required:!1}),amount:t.Number({displayName:"Amount",description:"",required:!0}),prefix:t.ShortText({displayName:"Prefix",description:"The prefix of the voucher's code.",required:!1}),title:t.Array({displayName:"Title",description:"The title of the voucher.",required:!1,properties:{locale:t.ShortText({displayName:"Locale",description:"valid locale.",required:!1}),translation:t.ShortText({displayName:"Translation",description:"",required:!1})}})},async run(e){try{let r=l("/public-api/resources/vouchers/v2.1/{voucher}",e.propsValue),a=p(e.propsValue,[]),i=m(e.propsValue,["status","expireDate","validityPeriod","assignBeforeDate","amount","prefix","title"]);return await n(e.auth,r,"PATCH",i,a)}catch(r){u(r)}}});var Uf=s({auth:o,name:"voucherDelete",displayName:"Resources - Vouchers - Voucher Delete",description:"Delete a Voucher.",audience:"both",aiMetadata:{description:"Permanently delete a voucher by its numeric id. Destructive and not reversible; deleting an already-removed id will error. Do not retry blindly.",idempotent:!1},props:{voucher:t.Number({displayName:"Voucher",description:"",required:!0})},async run(e){try{let r=l("/public-api/resources/vouchers/v2.1/{voucher}",e.propsValue),a=p(e.propsValue,[]);return await n(e.auth,r,"DELETE",void 0,a)}catch(r){u(r)}}});var yv="**Live URL:**\n```text\n{{webhookUrl}}\n```\ngenerate sample data & triggers published flow.\n\n",Vf=No({auth:o,name:"new_notification",displayName:"New notification",description:"Triggers when a webhook notification event is received from Ampeco",aiMetadata:{description:"Fires when one of the selected Ampeco notification events occurs, such as a charging session starting or stopping, a charge point or EVSE changing state, an authorization, reservation, tariff, user, subscription, payment method, or balance change, a circuit consumption update, a CDR being received, or a settlement report being created. The event represents a real-time push from the Ampeco EV charging platform for the notification types subscribed to in the trigger configuration; the payload contains the raw notification body for the event that fired."},type:"WEBHOOK",props:{liveMarkdown:t.MarkDown({value:yv,variant:"BORDERLESS"}),notifications:t.StaticMultiSelectDropdown({displayName:"Notification events",description:"Select the notification events to listen for",required:!0,options:{options:[{label:"Authorization Notification",value:"AuthorizationNotification"},{label:"Authorization.changed",value:"authorization.changed"},{label:"Boot Notification",value:"BootNotification"},{label:"Charge Point Changed Notification",value:"ChargePointChangedNotification"},{label:"Charge Point.changed",value:"chargePoint.changed"},{label:"Evse.changed",value:"evse.changed"},{label:"Charge Point Sync Configuration Notification",value:"ChargePointSyncConfigurationNotification"},{label:"Circuit Consumption Notification",value:"CircuitConsumptionNotification"},{label:"Circuit.changed",value:"circuit.changed"},{label:"Diagnostics Status Notification",value:"DiagnosticsStatusNotification"},{label:"Hardware Status Notification",value:"HardwareStatusNotification"},{label:"Location Changed Notification",value:"LocationChangedNotification"},{label:"Network Status Notification",value:"NetworkStatusNotification"},{label:"Security Event Notification",value:"SecurityEventNotification"},{label:"Session Meter Values Notification",value:"SessionMeterValuesNotification"},{label:"Session Start Stop Notification",value:"SessionStartStopNotification"},{label:"Session.start.stop.notification",value:"session.start.stop.notification"},{label:"Session Update Notification",value:"SessionUpdateNotification"},{label:"User Changed Notification",value:"UserChangedNotification"},{label:"Sub Operator Changed Notification",value:"SubOperatorChangedNotification"},{label:"Tariff Changed Notification",value:"TariffChangedNotification"},{label:"User.subscription Changed",value:"user.subscriptionChanged"},{label:"User.subscription.changed",value:"user.subscription.changed"},{label:"Reservation Changed Notification",value:"ReservationChangedNotification"},{label:"Payment Method Changed Notification",value:"PaymentMethodChangedNotification"},{label:"Partner Invite Changed Notification",value:"PartnerInviteChangedNotification"},{label:"Reservation.changed",value:"reservation.changed"},{label:"User.payment Method.changed",value:"user.paymentMethod.changed"},{label:"User Balance.changed",value:"userBalance.changed"},{label:"Partner Invite.changed",value:"partnerInvite.changed"},{label:"Roaming Platform.changed",value:"roamingPlatform.changed"},{label:"Parking Space.occupancy Status.changed",value:"parkingSpace.occupancyStatus.changed"},{label:"Partner.changed",value:"partner.changed"},{label:"Transaction.changed",value:"transaction.changed"},{label:"Settlement Report.created",value:"settlementReport.created"},{label:"Id Tag.changed",value:"idTag.changed"},{label:"Charge Point.data Transfer Received",value:"chargePoint.dataTransferReceived"},{label:"Subscription Plan.changed",value:"subscriptionPlan.changed"},{label:"User.invoice Details.changed",value:"user.invoiceDetails.changed"},{label:"Cdr.received",value:"cdr.received"},{label:"Charging Profile.applied",value:"chargingProfile.applied"},{label:"Installer Job.changed",value:"installerJob.changed"}]}})},async onEnable(e){let r=await n(e.auth,"/public-api/notifications/v2.0","POST",{via:"webhook",notifications:e.propsValue.notifications,webhook:{callbackUrl:e.webhookUrl}});await e.store.put("_new_notification_trigger_id",r.data?.id||null)},async onDisable(e){let r=await e.store.get("_new_notification_trigger_id");r&&(await n(e.auth,`/public-api/notifications/v2.0/${r}`,"DELETE"),await e.store.delete("_new_notification_trigger_id"))},async run(e){return[e.payload.body]},sampleData:{data:{notification:"SessionStartStopNotification"}}});var bv=To({displayName:"AMPECO",description:"AMPECO piece provides integrations of APIs and webhook notifications of the AMPECO platform for managing EV charging infrastructure and operations.",minimumSupportedRelease:"0.60.0",logoUrl:"https://cdn.activepieces.com/pieces/ampeco.png",authors:["Ampeco"],auth:o,actions:[Vs({baseUrl:c(e=>`${e?.props.baseApiUrl}`,"baseUrl"),auth:o,authMapping:c(async e=>({Authorization:`Bearer ${e.props.token}`}),"authMapping")}),zs,Fs,Bs,$s,Gs,Hs,Ws,Ks,Zs,js,Qs,Ys,Js,Xs,el,tl,rl,al,il,ol,nl,sl,ll,ip,op,np,sp,lp,pp,up,cp,dp,mp,fp,hp,yp,bp,gp,vp,Pp,Ap,Np,Sp,Tp,Cp,Rp,_p,wp,Ip,Ep,Dp,xp,Mp,kp,qp,Op,Lp,Up,Vp,zp,Fp,Bp,$p,Gp,Hp,Wp,Kp,Zp,jp,Qp,Yp,pl,ul,cl,dl,ml,fl,hl,yl,du,mu,fu,hu,yu,bu,gu,vu,Pu,bl,zu,Fu,Bu,$u,Gu,Hu,Wu,Ku,Zu,ju,Qu,Yu,Ju,Xu,ec,tc,rc,ac,ic,oc,nc,gl,vl,sc,lc,pc,uc,cc,Pl,Al,_c,wc,Ic,Ec,Dc,xc,Mc,kc,qc,Nl,Oc,Lc,Uc,Vc,zc,Sl,Zc,jc,Qc,Yc,Jc,Xc,ed,td,rd,ad,Tl,Cl,id,od,nd,sd,ld,Rl,Ud,Vd,zd,Fd,Bd,_l,wl,Kd,Zd,jd,Qd,Yd,Jd,Xd,em,tm,rm,am,im,om,nm,sm,lm,pm,um,cm,Il,El,Dl,Pm,Am,Nm,Sm,Tm,xl,Mm,km,qm,Om,Lm,Ml,kl,ql,rf,af,of,nf,Ol,Ll,Ul,Vl,zl,Fl,Bl,$l,df,mf,ff,hf,yf,bf,gf,vf,Pf,Af,Nf,Sf,Gl,Hl,Wl,Kl,Zl,jl,Ql,Yl,Jl,Xl,ep,tp,rp,ap,Jp,Xp,eu,tu,ru,au,iu,ou,nu,su,lu,pu,uu,cu,Au,Nu,Su,Tu,Cu,Ru,_u,wu,Iu,Eu,Du,xu,Mu,ku,qu,Ou,Lu,Uu,Vu,dc,mc,fc,hc,yc,bc,gc,vc,Pc,Ac,Nc,Sc,Tc,Cc,Rc,Fc,Bc,$c,Gc,Hc,Wc,Kc,pd,ud,cd,dd,md,fd,hd,yd,bd,gd,vd,Pd,Ad,Nd,Sd,Td,Cd,Rd,_d,wd,Id,Ed,Dd,xd,Md,kd,qd,Od,Ld,$d,Gd,Hd,Wd,dm,mm,fm,hm,ym,bm,gm,vm,Cm,Rm,_m,wm,Im,Em,Dm,xm,Um,Vm,zm,Fm,Bm,$m,Gm,Hm,Wm,Km,Zm,jm,Qm,Ym,Jm,Xm,ef,tf,sf,lf,pf,uf,cf,Tf,Cf,Rf,_f,wf,If,Ef,Df,xf,Mf,kf,qf,Of,Lf,Uf],triggers:[Vf]});0&&(module.exports={ampeco});
|
|
127
|
+
/*! Bundled license information:
|
|
128
|
+
|
|
129
|
+
mime-types/index.js:
|
|
130
|
+
(*!
|
|
131
|
+
* mime-types
|
|
132
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
133
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
134
|
+
* MIT Licensed
|
|
135
|
+
*)
|
|
136
|
+
*/
|