Commit Graph

2883 Commits

Author SHA1 Message Date
Riqwan Thamir
a12c28b7d5 feat(medusa,types): add promotion list/get endpoint (#6110)
what:

- adds get promotion endpoint (RESOLVES CORE-1677)
- adds list promotions endpoint (RESOLVES CORE-1676)
- uses new API routes
2024-01-18 16:01:19 +00:00
fPolic
16945f4fd2 Merge branch 'develop' into feat/payment-module-interfaces 2024-01-18 16:04:00 +01:00
fPolic
8e4e6b043d Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces 2024-01-18 16:01:51 +01:00
Frane Polić
844a5d990c feat: Payment module models (#6065) 2024-01-18 15:50:56 +01:00
invalid w
2cca3627c3 fix(admin-ui->Collections): add key for map fn. resolve #6106 (#6107)
resolve #6106.


just add key for map fn.
2024-01-18 14:32:45 +00:00
Kasper Fabricius Kristensen
e49b6944e3 feat(dashboard): 3.0 product collection (#6120) 2024-01-18 15:01:34 +01:00
Frane Polić
491848bb45 Merge branch 'develop' into feat/payment-module-models 2024-01-18 14:41:24 +01:00
Oli Juhl
b132ff7669 feat(cart): Add line items in cart-creation (#6114) 2024-01-18 14:39:40 +01:00
Frane Polić
af61195aad Merge branch 'develop' into feat/payment-module-models 2024-01-18 14:19:18 +01:00
Oli Juhl
7f7cb2a263 feat(cart): Shipping methods (#6101) 2024-01-18 12:16:15 +01:00
fPolic
c332375ff2 chore: update fields to new convention 2024-01-18 11:56:10 +01:00
fPolic
81544088d3 fix: change type 2024-01-18 10:52:14 +01:00
fPolic
a6aa09ad27 Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces 2024-01-18 10:51:28 +01:00
fPolic
d5af7cc5f9 fix: add column type 2024-01-18 10:50:46 +01:00
Sebastian Rindom
5cfb662ec0 fix: migrate segment subscribers + typescript support (#5904)
Fixes #6068.

**What**

- Uses new Subscriber API.
- Adds support for typescript files in Segment plugin.
- Adds a peerDependency on @medusajs/medusa for the version that introduced new Subscriber API.
2024-01-18 09:38:33 +00:00
Adrien de Peretti
130c641e5c chore: Abstract module services (#6087)
**What**
Create a service abstraction for the modules internal service layer. The objective is to reduce the effort of building new modules when the logic is the same or otherwise allow to override the default behavior.

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-01-18 09:20:08 +00:00
Kasper Fabricius Kristensen
80feb972cb feat(dashboard): Customer groups domain (#6098)
**What**
- Adds list, detail, edit, create, add customers views to the CG domain.

**Note**
- Missing metadata in forms (coming in separate PR for entire admin)
- Missing table filters (separate PR)

CLOSES CORE-1648
2024-01-17 14:25:59 +00:00
Carlos R. L. Rodrigues
19bbae61f8 fix(modules-sdk): create workflow returning step transformer (#6102) 2024-01-17 09:17:37 -03:00
fPolic
e7d8c53b04 Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces 2024-01-17 12:14:56 +01:00
fPolic
aa1585b52c feat: add region index 2024-01-17 12:14:30 +01:00
Philip Korsholm
2b9f98895e Feat(modules-sdk): Run hooks on application start (#6111)
**What**
- run `onApplicationStart` hook when starting modules
2024-01-17 10:46:44 +00:00
fPolic
57b88968a7 fix: update DTO 2024-01-17 10:59:59 +01:00
fPolic
dfcb5e7995 Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces 2024-01-17 10:57:35 +01:00
fPolic
6341533eb0 fix: region id 2024-01-17 10:55:03 +01:00
fPolic
e4438ae2e8 Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces 2024-01-17 09:43:23 +01:00
fPolic
ef7f51afe6 fix: remove is selected 2024-01-17 09:43:00 +01:00
Riqwan Thamir
68ddd866a5 feat(utils,types): add registerUsages for promotions + computeActions consider usage (#6094)
RESOLVES CORE-1639
RESOLVES CORE-1640
RESOLVES CORE-1634
2024-01-16 20:06:06 +00:00
Oli Juhl
a5e8bf06c6 feat(cart): Line items operations (#6066) 2024-01-16 15:44:49 +01:00
Kasper Fabricius Kristensen
6315a61189 feat(dashboard): add customers domain (#6093) 2024-01-16 15:23:45 +01:00
fPolic
ca0d6f5a9f fix: method overloads 2024-01-16 14:13:48 +01:00
fPolic
dcdb6df6f8 fix: listPaymentCollections shape 2024-01-16 12:26:07 +01:00
fPolic
33e5b7f72f fix: Payment merge 2024-01-16 12:25:24 +01:00
fPolic
67acdcdc92 Merge branch 'feat/payment-module-models' into feat/payment-module-interfaces
# Conflicts:
#	packages/payment/src/models/payment.ts
2024-01-16 12:20:07 +01:00
fPolic
eab0ca4b9f fix: serializer 2024-01-16 12:19:03 +01:00
fPolic
bc7829db3c fix: update models 2024-01-16 11:58:14 +01:00
fPolic
22254a22c0 fix: address feedback partial 2024-01-16 10:30:52 +01:00
fPolic
1cc888df80 feat: Sessions API update 2024-01-16 09:56:54 +01:00
Riqwan Thamir
e28fa7fbdf feat(utils): add campaign + promotion create / update (#6077)
* chore: add campaign + promotion operations

* chore: update type

* chore: added validation for campaign_id and campaign

* chore: added update promotions for campaigns

* chore: update campaign on promotion

* chore: fix lint

* chore: add test to remove promotions
2024-01-16 09:37:57 +01:00
fPolic
66ec3d0931 wip: session methods 2024-01-15 18:40:05 +01:00
fPolic
89d6d7e846 fix: add order_edit_id to Payment 2024-01-15 18:04:39 +01:00
fPolic
fbd3fedb68 wip: service 2024-01-15 17:15:49 +01:00
fPolic
56752039cf wip: interface and types 2024-01-15 15:18:02 +01:00
Kasper Fabricius Kristensen
a2c149e7e5 feat(dashboard,ui): Streamline spacing and sizing (#6061) 2024-01-15 11:43:16 +01:00
Frane Polić
efdc59fd53 Merge branch 'develop' into feat/payment-module-models 2024-01-15 11:19:55 +01:00
fPolic
1d82294ba4 fix: currency code 2024-01-15 10:58:31 +01:00
fPolic
aabe164793 fix: partial feedback address 2024-01-15 10:34:45 +01:00
Shahed Nasser
5dacd4ac9f docs: fix example of createFulfillment (#6088) 2024-01-15 11:20:55 +02:00
Adrien de Peretti
72bc52231c chore(utils): Update base repository to infer primary keys and support composite (#6062) 2024-01-14 17:13:25 +01:00
Riqwan Thamir
fade8ea7bf feat(utils,types): campaigns and campaign budgets + services CRUD (#6063)
* chore: added item/shipping adjustments for order/items/shipping_methods

* chore: add validation for order type and target rules

* chore: add comment for applied promotions

* chore: add shipping method and item adjustments

* chore: include applied promotions to items/shipping_method for each case

* chore: handle case for items across and order to consider existing applications

* chore: handle case for applied promo values to shipping => across

* chore: added changeset

* chore: update return of function

* chore: campaigns and campaign budgets + services CRUD

* Apply suggestions from code review

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* chore: minor refactor

* chore: added single/bulk interfaces

* Apply suggestions from code review

Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>

* chore: use DAL date entity

* chore: align nullable

* Update packages/promotion/src/models/promotion-rule.ts

* chore: fix types

* chore: review changes

* Update packages/promotion/src/utils/compute-actions/shipping-methods.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
2024-01-12 14:14:34 +01:00
fPolic
a7f74bdfb8 fix: add missing indexes 2024-01-12 14:10:56 +01:00