Commit Graph

6218 Commits

Author SHA1 Message Date
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
Shahed Nasser 571b64cd16 docs: added link to next.js starter demo (#6108) 2024-01-17 10:31:38 +00:00
Oli Juhl 4d1653b4e7 chore: Update CODEOWNERS 2024-01-17 11:03:16 +01: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
Oli Juhl cc6a1a8d7c chore: Update CODEOWNERS 2024-01-17 10:32:01 +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 90328ca02b chore: Update CODEOWNERS 2024-01-16 17:38:12 +01: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 fc6b1772a7 chore: changeset 2024-01-16 10:02:58 +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
Shahed Nasser 5d1965f2fa docs: add new troubleshooting section for create-medusa-app (#6071)
* docs: add new troubleshooting section for create-medusa-app

* small fixes
2024-01-15 13:33:53 +02: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
github-actions[bot] 304efb9ad8 chore(docs): Removed Docs Announcement Bar (automated) (#6086)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2024-01-15 10:28:38 +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
Shahed Nasser 33ff2415ae fix: eslint configurations in the root (#6049)
When running `yarn lint` in the root of the monorepo, we get the following error:

```bash
Oops! Something went wrong! :(

ESLint: 8.44.0

Error: ESLint configuration in .eslintrc.js is invalid:
	- Unexpected top-level property "overrides[4].ignorePatterns".
```

Rmoving the `ignorePatterns` in configurations for `packages/admin-next/dashboard/**/*` and instead adding the path `packages/admin-next/dashboard/**/dist` fixes the issue.
2024-01-13 13:21:16 +00:00
invalid w 57e00e7803 docs: typo backendUrl default url (#6073)
`http://location:9000` should be `http://localhost:9000`
2024-01-12 14:11:29 +00: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
fPolic 00ee67c228 chore: refactor 2024-01-12 14:02:45 +01:00
Riqwan Thamir b782d3bcb7 feat(utils,types): added item/shipping adjustments for order/items/shipping_methods (#6050)
what:

- adds compute actions for the following cases:
  - items => each & across
  - shipping_method => each & across
  - order
- adds a remove compute actions when code is no longer present in adjustments array

RESOLVES CORE-1625
RESOLVES CORE-1626
RESOLVES CORE-1627
RESOLVES CORE-1628
RESOLVES CORE-1585
2024-01-12 13:00:06 +00:00
fPolic f2a4f454fe fix: Refund/Capture delete, add indexes 2024-01-12 12:03:17 +01:00