Commit Graph

5060 Commits

Author SHA1 Message Date
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
fPolic
1b882a90ed feat: optional props, update fields 2024-01-12 11:46:08 +01:00
Oli Juhl
192bc336cc feat(cart): Partial module service implementation (#6012)
Awaiting #6000 #6008  

**What**
- CRUD for Address in Cart Module service
- Tests for CRUD Carts + Address

**Not**
- Line items, shipping methods, tax lines, adjustment lines
2024-01-12 10:30:57 +00:00
fPolic
b601212398 Merge branch 'develop' into feat/payment-module-models
# Conflicts:
#	packages/payment/src/models/index.ts
#	packages/payment/src/models/payment.ts
2024-01-11 18:38:43 +01:00
fPolic
9e72d25203 feat: migration 2024-01-11 18:33:43 +01:00
fPolic
8a5888aeac feat: Payment models 2024-01-11 18:29:33 +01:00
Frane Polić
8472460f53 feat: Payment module package setup (#6059) 2024-01-11 16:41:40 +01:00
Oli Juhl
ce81cade88 feat(cart): Cart + Address services (#6055)
Duplicate of #6008, but I messed up my git history big time :'(

**What**
- CartService and CartRepository + tests
- AddressService and AddressRepository + tests
- CartModuleService skeleton. Full implementation + tests will be added in a separate PR
2024-01-11 14:40:13 +00:00
fPolic
85e4e6ce4b fix: changesets 2024-01-11 11:50:06 +01:00