@enerlence/suntropy-cli 0.1.2 → 0.1.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enerlence/suntropy-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Agent-first CLI for Suntropy solar platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -120,31 +120,13 @@ suntropy inventory kits assemble \
120
120
  --custom-asset 2281:12 --custom-asset 2282:1
121
121
  ```
122
122
 
123
- ### Alternativa: Crear con JSON completo
124
-
125
- Para campos avanzados (garantías, useTotalKitCostAsPrice, etc.) usa `create --data`:
123
+ For advanced fields (warranties, useTotalKitCostAsPrice, etc.) use `update` after assembling:
126
124
 
127
125
  ```bash
128
- suntropy inventory kits create --data '{
129
- "identifier": "Kit Solar Premium 5kW",
130
- "kitSolarPanel": {"idKitSolarPanel": <panelId>},
131
- "kitInverter": {"idKitInverter": <inverterId>},
132
- "battery": {"batteryId": <batteryId>},
133
- "panelNumber": 12,
134
- "inverterNumber": 1,
135
- "peakPower": 5.4,
136
- "price": 6500,
137
- "phaseNumber": "single_phase",
138
- "coplanar": true,
139
- "defaultTaxesPercentage": 21,
126
+ suntropy inventory kits update <kitId> --data '{
140
127
  "manufacturingWarranty": 10,
141
128
  "materialsWarranty": 5,
142
- "useTotalKitCostAsPrice": false,
143
- "active": true,
144
- "solarKitCustomAssets": [
145
- {"customAsset": {"idCustomAsset": <assetId1>}, "units": 12},
146
- {"customAsset": {"idCustomAsset": <assetId2>}, "units": 1}
147
- ]
129
+ "useTotalKitCostAsPrice": false
148
130
  }'
149
131
  ```
150
132