The index.ts code example in "Create Workflow" section of the Marketplace Vendor Tutorial contains TypeScript errors that prevent successful compilation:
Missing transform import: The tutorial uses the transform function on line 33, but it's not imported from "@medusajs/framework/workflows-sdk"
TypeScript union type complexity error: When working with the useQueryGraphStep function, TypeScript throws "Expression produces a union type that is too complex to represent" error
Incorrect export name: On line 67, the export is export default createVendorAdminWorkflow but the workflow is defined as createVendorWorkflow (line 24)
These errors make it impossible for developers to follow the tutorial successfully without debugging TypeScript errors.
Closes#12301
* feat(index): add filterable fields to link definition
* rm comment
* break recursion
* validate read only links
* validate filterable
* gql schema array
* link parents
* isInverse
* push id when not present
* Fix ciruclar relationships and add tests to ensure proper behaviour (part 1)
* log and fallback to entity.alias
* cleanup and fixes
* cleanup and fixes
* cleanup and fixes
* fix get attributes
* gql type
* unit test
* array inference
* rm only
* package.json
* pacvkage.json
* fix link retrieval on duplicated entity type and aliases + tests
* link parents as array
* Match only parent entity
* rm comment
* remove hard coded schema
* extend types
* unit test
* test
* types
* pagination type
* type
* fix integration tests
* Improve performance of in selection
* use @@ to filter property
* escape jsonPath
* add Event Bus by default
* changeset
* rm postgres analyze
* estimate count
* new query
* parent aliases
* inner query w/ filter and sort relations
* address comments
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
The instructed filename now is the same as in the code-block below (`algolia-sync.ts`) and the instructions don't have naming conflicts (see next step which is instructing to create a file named `product-sync.ts`).
This extends the `$schema.json` by the 4 placeholders, later used in `product-create-general-section.tsx`. The placeholders affected by this are for the title, subtitle, handle and description. Should be all on this page. There is no plain / hard-coded text left in there. The translations were made for each accordingly.
https://docs.medusajs.com/learn/configurations/ts-aliases
`npm run resolve:aliases` should run after `medusa build` to change out the aliases in the build output.
So instead of the current guide
`"build": "npm run resolve:aliases && medusa build"`
I should be
`"build": "medusa build && npm run resolve:aliases"`
* fix: oas CLI to convert Windows paths to unix
* Create tidy-pigs-heal.md
* refactor: revert to isolate the issue
* refactor: add back the change with logs
* fix: remove external dependency
* fix: return fulfillment creation
* chore: changeset
* fix: link
* fix: cancel claim flow
* chore: test fulfillment creation as a part of return lifecycle test
* fix: exchanges cancle flow
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>