Riqwan Thamir
557d86afbf
feat(medusa,core-flows): update cart adjustments on item updates ( #6539 )
2024-02-28 19:35:24 +01:00
Oli Juhl
c5d35ec7f2
chore(cart): Use module native soft-delete/delete methods ( #6491 )
2024-02-28 10:45:56 +00:00
Oli Juhl
3ee0f599c1
feat: Line Items API Routes ( #6478 )
...
**What**
- `POST /store/carts/:id/line-items`
- `POST /store/carts/:id/line-items/:id`
- `DELETE /store/carts/:id/line-items/:id`
**Outstanding**
- Integration tests
- Module integrations: Payment, Fulfillment, Promotions
Depends on #6475 and #6449 .
2024-02-27 12:47:00 +00:00
Riqwan Thamir
f5c2256286
feat(core-flows,medusa,types,utils): adds update cart API with promotions ( #6514 )
...
what:
- adds update cart API
- workflow
- promotions
- sales channel
- region
- customer
2024-02-27 12:09:30 +00:00
Oli Juhl
7ebe885ec9
feat: Create cart with line items ( #6449 )
...
**What**
- Add support for creating a cart with items
- Add endpoint `POST /store/carts/:id/line-items`
- Add `CreateCartWorkflow`
- Add `AddToCartWorkflow`
- Add steps for both workflows
**Testing**
- Endpoints
- Workflows
I would still call this a first iteration, as we are missing a few pieces of the full flow, such as payment sessions, discounts, and taxes.
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-02-26 13:32:16 +00:00
Riqwan Thamir
ac86362e81
feat(workflows-sdk,core-flows,medusa,types): add workflow to update promotions to cart ( #6474 )
...
what:
- adds API + workflow to add/remove promotions in a cart
- minor fixes in promotions module
- minor type fixes in cart module
- typing fix in workflows-sdk (Thanks @adrien2p)
- fix step result in workflows-sdk (Thanks @adrien2p)
RESOLVES CORE-1768
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-02-26 12:43:57 +00:00
Adrien de Peretti
f611865553
fix(workflows-sdk): Fix StepFunction typings and custom step name ( #6468 )
...
* fix(workflows=sdk): Fix StepFunction typings and custom step name
* Create smart-nails-switch.md
* fixes
* fixes
* fixes
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-02-22 11:59:53 +01:00
Oli Juhl
680dfcdad3
feat(core-flow, medusa): Create cart with Sales Channel ( #6427 )
2024-02-19 09:42:11 +01:00
Oli Juhl
5db3ec09e2
feat: Cart Customer link + create cart with customer ( #6426 )
2024-02-19 08:28:44 +01:00
Oli Juhl
1ba35b02dd
feat: Cart SalesChannel link + clean-up ( #6418 )
2024-02-16 20:48:56 +01:00
Oli Juhl
24fb102a56
feat: CartRegion link, definition + workflow ( #6392 )
2024-02-16 14:06:26 +00:00
Oli Juhl
1ed5f918c3
feat(cart): POST /store/carts/:id ( #6274 )
...
Depends on:
- #6262
- #6273
2024-02-14 15:03:02 +00:00
Oli Juhl
ede221d4f7
feat(cart): POST /store/carts ( #6273 )
...
Depends on #6262
2024-02-05 15:15:15 +00:00
Riqwan Thamir
10c67ecd74
chore(core-flows): reorganize folder structure for promotion workflows ( #6243 )
...
workflows folder structure:
```
- src/
- promotion/
- workflows/
- create-promotion.ts
- steps/
- prepare-create-promotion-data.ts
```
RESOLVES CORE-1688
2024-01-29 14:35:59 +00:00
Riqwan Thamir
99045848fd
feat(medusa,types,core-flows,utils): added delete endpoints for campaigns and promotions ( #6152 )
...
what:
adds delete endpoints for:
- campaigns (RESOLVES CORE-1686)
- promotions (RESOLVES CORE-1680)
2024-01-22 13:06:49 +00:00
Riqwan Thamir
da5cc4cf7f
feat(core-flows,medusa,utils): promotion and campaign create/update endpoint ( #6130 )
...
what:
- adds create endpoint for promotions including workflows and endpoint (RESOLVES CORE-1678)
- adds update endpoint for promotions including workflows and endpoint (RESOLVES CORE-1679)
- adds create endpoint for campaigns including workflows and endpoint (RESOLVES CORE-1684)
- adds update endpoint for campaigns including workflows and endpoint (RESOLVES CORE-1685)
2024-01-22 11:54:17 +00:00
Frane Polić
76332ca6c1
feat(medusa, link-modules): sales channel <> cart link ( #5459 )
...
* feat: sales channel joiner config
* feat: product sales channel link config, SC list method
* feat: migration
* fix: refactor list SC
* refactor: SC repo api
* chore: changeset
* feat: add dedicated FF
* wip: cart<>sc link and migration
* chore: changeset
* fix: update migration with the cart table constraints
* feat: populate the pivot table
* chore: remove relation from joiner config
* fix: constraint name
* fix: filter out link relations when calling internal services
* feat: product<> sc join entity
* fix: update case
* fix: add FF on in the repository, fix tests
* fix: assign id when FF is on
* fix: target table
* feat: product service - fetch SC with RQ
* feat: admin list products & SC with isolated product domain
* feat: get admin product
* feat: store endpoints
* fix: remove duplicate import
* fix: remove "name" prop
* feat: typeorm entity changes
* feat: pivot table, entity, on cart create changes
* feat: update carts' SC
* feat: cart - getValidatedSalesChannel with RQ
* feat: refactor
* wip: changes to create cart workflow
* fix: remove join table entity due to migrations failing
* fix: product seeder if FF is on
* feat: attach SC handler and test
* fix: env
* feat: workflow compensation, cart service retrieve with RQ
* fix: remote joiner implode map
* chore: update changesets
* fix: remove methods from SC service/repo
* feat: use remote link in handlers
* fix: remove SC service calls
* fix: link params
* fix: migration add constraint to make link upsert pass
* refactor: workflow product handlers to handle remote links
* fix: condition
* fix: use correct method
* fix: build
* wip: update FF
* fix: update FF in the handlers
* chore: migrate to medusav2 FF
* chore: uncomment test
* fix: product factory
* fix: unlinking SC and product
* fix: use module name variable
* refactor: cleanup query definitions
* fix: add constraint
* wip: migrate FF
* fix: comments
* feat: cart entity callbacks, fix tests
* fix: only create SC in test
* wip: services updates, changes to models
* chore: rename prop
* fix: add hook
* fix: address comments
* fix: temp sc filtering
* fix: use RQ to filter by SC
* fix: relations on retrieve
* feat: migration sync data, remove FF
* fix: revert order of queries
* fix: alter migration, relations in service
* fix: revert id
* fix: migrations
* fix: make expand work
* fix: remote link method call
* fix: try making tests work without id in the pivot table
* test: use remote link
* test: relations changes
* fix: preserve channel id column
* fix: seeder and factory
* fix: remove sales_channels from response
* feat: support feature flag arrays
* fix: cover everything with correct FF
* fix: remove verbose
* fix: unit and plugin tests
* chore: comments
* fix: reenable workflow handler, add comments, split cart create workflow tests
* chore: reenable link in the create mehod, update changesets
* fix: address feedback
* fix: revert migration
* fix: change the migration to follow link module
* fix: migration syntax
* fix: merge conflicts
* fix: typo
* feat: remove store sales channel foreign key
* fix: merge migrations
* fix: FF keys
* refactor: cart service
* refactor: FF missing key
* fix: comments
* fix: address PR comments
* fix: new changesets
* fix: revert flag router changes
* chore: refactor `isFeatureEnabled`
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-12-22 13:05:36 +01:00
Adrien de Peretti
ddbeed4ea6
chore(workflows, core-flows): Split workflows tooling and definitions ( #5705 )
2023-11-24 13:55:48 +00:00