feat(utils): autogenerates create and update methods when dto is provided (#6751)

what:

when you provide an optional create_dto or update_dto to the model factory types, the abstract service will generate a simple service method for the public services of the modules.

```
MoneyAmount: {
  dto: PricingTypes.MoneyAmountDTO
  create_dto: PricingTypes.CreateMoneyAmountDTO
}
```

In the above example, only a create method will be generated, but the update will be skipped.
This commit is contained in:
Riqwan Thamir
2024-03-20 14:33:24 +00:00
committed by GitHub
parent 64c2731e46
commit 4974f5e455
4 changed files with 146 additions and 104 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
feat(utils): autogenerates create and update methods when dto is provided