feat: add Delta Pro 3 support to schemas and rest client#51
Merged
Conversation
…th timeout, and AC energy-saving functionalities
…gative values for timeout params
…ities such as timeouts, brightness, and output settings
…ce functionality updates
…wn, charge/discharge limits, and backup reserve level
…: generator controls, charging power, energy-saving mode, GFCI, Bluetooth timeout, and battery order
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
This PR adds first-class support for the EcoFlow Delta Pro 3 across both workspace packages:
@ecoflow-api/schemas@ecoflow-api/rest-clientIt introduces typed property/command schemas, a dedicated
DeltaPro3device implementation, factory integration, and comprehensive Jest coverage.What’s included
Added new
deltaPro3schema module in@ecoflow-api/schemas:serialNumbersupport forMR51*devices (DeltaPro3SerialNumber+ guard)getPropertiesschema (deltaPro3QuotaAllSchema)setCommandsschema definitions for Delta Pro 3 commandspackages/schemas/src/deltaPro3/index.tsand rootpackages/schemas/src/index.tsAdded new
DeltaPro3device in@ecoflow-api/rest-client:getPropertiesparsing viadeltaPro3QuotaAllSchemaIntegrated
DeltaPro3inDeviceFactoryand added factory test coverage.Added test fixture:
deltaPro3Propertiesfor shared property parsing/getter tests.Expanded tests:
DeltaPro3.test.tsfor command payloads + validation behaviorUpdated docs metadata:
packages/rest-client/README.mdnow lists Delta Pro 3 as supportedAdded changeset:
@ecoflow-api/rest-client@ecoflow-api/schemasRelease impact
featrest-client,schemas)