Stevche Radevski
00a6e512dc
feat: Add support in BE for setting tax inclusivity on currency ( #8037 )
2024-07-09 15:22:24 +02:00
Riqwan Thamir
b6fd82e31e
feat(order,core-flows): added order change create workflow ( #8033 )
...
what:
- adds anorder change create workflow
- remove order change service, brings validation to entry point service
2024-07-09 12:12:05 +00:00
Harminder Virk
9516890bb3
fix: attempt to fix flaky migration tests ( #8034 )
2024-07-09 17:13:45 +05:30
Stevche Radevski
1c3ef13371
feat: Add necessary middlewares for tax inclusive pricing ( #7827 )
...
We are adding tax inclusive pricing calculation when listing products.
Two things to keep in mind:
- `region_id` will be required if you request calculated prices.
- We won't accept `currency_code` anymore, as that will come from the region info (since ultimately a cart and its currency are tied to a region)
REF CORE-2376
DEPENDS ON #8003
2024-07-09 09:37:13 +00:00
Stevche Radevski
db6969578f
feat: Plug tax inclusivity in cart and order workflows ( #8013 )
2024-07-09 11:10:42 +02:00
Stevche Radevski
cbf2fcd559
Feat: Add tax inclusivity to admin ( #8003 )
...
* feat: Add price preference to sdk
* feat: Plug tax inclusivity settings for region in UI
* feat: Add price inclusivity indicator to variant and shipping price table columns
* fix: Rename price title to correct variable name
* feat: Add support for tax inclusive crud on region
* fix: Use the region endpoint for updating tax inclusivity
* chore: Factor out price columns from hooks
2024-07-09 09:26:20 +02:00
Harminder Virk
4b391fc3cf
Initial implementation with just the generate method ( #7973 )
2024-07-09 12:32:02 +05:30
Adrien de Peretti
10848c8bf2
chore: rename source to linkable in defineLink options ( #8016 )
...
* chore: rename source to linkable in defineLink options
* rm unused const
2024-07-08 16:44:03 +02:00
Adrien de Peretti
fc7f5ff71a
fix: Modules providers loading mechanism to infer the source dir ( #8015 )
...
* fix: Modules providers loading mechanism to infer the source dir
* finalize
2024-07-08 14:11:45 +02:00
Adrien de Peretti
b450628481
fix: error 4082 when using defineLink ( #8014 )
2024-07-08 12:05:44 +02:00
Adrien de Peretti
9750047af1
chore: Rename entity to model ( #7977 )
...
**What**
Start renaming `entity` to `model`
2024-07-08 07:43:49 +00:00
Adrien de Peretti
b24c8503d5
feat: Add types to the workflow conditional ( #7979 )
...
**What**
Add typing to the when conditional workflow step
FIXES CORE-2494
2024-07-05 14:43:16 +00:00
Adrien de Peretti
b368251ca3
chore: Migrate modules to use the Module util ( #7964 )
...
**What**
Apply the `Module` util to each module to handle the export and provide the linkable configuration object.
- Most joiner config that does not have any special config are removed/cleaned up in favor of the autogenerated one or simpler one
- linkable are now available in all modules
- cleaned up the dependencies of the modules
FIXES CORE-2410
2024-07-05 13:00:40 +00:00
Adrien de Peretti
1393f51046
fix: Improve get caller file path util ( #7974 )
...
* fix: Improve get caller file path util
* improve compatibility
* update comment
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-07-05 12:54:27 +02:00
Carlos R. L. Rodrigues
9badad24aa
feat(workflows-sdk): conditional step ( #7912 )
...
* chore: move ModuleRegistrationName to utils
* chore(workflows-sdk): conditional step
* type
* when condition
2024-07-05 10:54:18 +02:00
Stevche Radevski
3e86cb6ac3
feat: Add HTTP endpoints and workflows for price preference management ( #7960 )
...
REF CORE-2376
Remaining pieces are adding UI to manage the flag, showing the flag in price editor, plugging it in cart calculations, and https://github.com/medusajs/medusa/pull/7827
2024-07-05 08:47:01 +00:00
Adrien de Peretti
8c30f0a54d
chore: rm database extra ( #7963 )
2024-07-05 09:53:15 +02:00
Adrien de Peretti
f49139b20f
fix: custom link resolution in medusa app ( #7950 )
...
* fix custom link resolution in medusa app
* improve
* fix duplicate
2024-07-04 16:50:53 +02:00
Stevche Radevski
5544303b91
feat: Add support for managing tax inclusivity ( #7943 )
...
UI / HTTP / Workflows will come in separate PRs
REF CORE-2376
2024-07-04 14:50:09 +00:00
Adrien de Peretti
7b84d854f0
Feat/mikro orm based linkable ( #7944 )
...
**What**
- Generate simple linkable for mikro orm based modules
- fix module util
- fix joiner config builder
- fix define link relationship extension
- fix migrations not loading custom links
2024-07-04 13:30:47 +00:00
Carlos R. L. Rodrigues
d036130604
fix(cart): add shipping method to cart ( #7945 )
2024-07-04 12:47:39 +00:00
Adrien de Peretti
cb36655b63
chore: Update defineMikroOrmCliConfig api ( #7940 )
...
* chore: Update defineMikroOrmCliConfig api
* update usage
2024-07-04 12:58:43 +02:00
Carlos R. L. Rodrigues
56394fe0d4
fix(order): order list payment and fulfillment status ( #7934 )
2024-07-04 06:37:25 -03:00
Adrien de Peretti
41c4307fc7
feat: define link util ( #7931 )
...
* feat: define link util
* handle pluralized fieldAlias for isList
* serviceName ar reference
* finalize
* todo
* WIP
* finalize
* fix tests
* update typings
* fix Module
* linkable
* update errors
2024-07-04 10:37:30 +02:00
Shahed Nasser
9b1688944e
fix: fix docs link in payment provider tsdocs ( #7939 )
...
* fix: fix docs link in payment provider tsdocs
* add a note
2024-07-04 11:09:29 +03:00
Harminder Virk
cc3eb8698d
fix: omit mikro orm entities values from the config ( #7938 )
2024-07-04 13:21:52 +05:30
Riqwan Thamir
78a4bcc700
fix(dashboard): breaking store page due to default currency ( #7915 )
...
* chore: fix breaking store page due to default currency
* fix: remote query checks all data when scoped by id
* chore: minor change
2024-07-04 09:37:36 +02:00
Harminder Virk
aa0390af4b
Prettify DML properties when inferred ( #7937 )
2024-07-04 12:24:07 +05:30
Stevche Radevski
012a624ee4
feat: Flatten the provider config for all modules ( #7930 )
2024-07-03 16:57:12 +02:00
Riqwan Thamir
b6e4435c23
chore: cleanup migrations logs ( #7924 )
...
what:
when running `medusa run migrations`, cleanup logs with short descriptive message.
Before:
<img width="1262" alt="Screenshot 2024-07-03 at 14 31 36" src="https://github.com/medusajs/medusa/assets/5105988/504e9c24-371c-476d-9b6d-2dfe1a4088dc ">
After:
<img width="1004" alt="Screenshot 2024-07-03 at 14 42 57" src="https://github.com/medusajs/medusa/assets/5105988/a89eaed5-04a4-4efb-a2e9-ca480f1eaa6e ">
2024-07-03 13:53:59 +00:00
Adrien de Peretti
2711012d96
feat: Make the Module require the service name ( #7923 )
...
* feat: Make the Module require the service name
* finalize types
2024-07-03 15:44:57 +02:00
Riqwan Thamir
fdee0bd55a
chore: use campaign http types from types package ( #7922 )
2024-07-03 14:13:44 +02:00
Adrien de Peretti
617a5972bf
feat: refactor module joiner config and links generation ( #7859 )
...
* feat: refactor module joiner config and links generation
* improve typings
* WIP
* WIP
* WIP
* rename type file
* create link config
* finish typings and add utils
* improve links
* WIP typings
* finalize ExportModule utils
* finalize ExportModule utils
* fix: dml tests
* improve and fixes
* simplify typings with id changes
* add toJSON
* multiple fixes and entity builder fixes
* fix currency searchable
* fix tests
* medusa service refactoring
* cleanup
* cleanup and fixes
* make module name optional
* renaming
---------
Co-authored-by: Harminder Virk <virk.officials@gmail.com >
2024-07-03 13:12:49 +02:00
Carlos R. L. Rodrigues
a7844efd09
chore: move ModuleRegistrationName to utils ( #7911 )
2024-07-03 06:30:56 -03:00
Harminder Virk
46f15b4909
fix: inferring of relationship types ( #7913 )
...
FIXES: CORE-2448
2024-07-03 13:29:27 +05:30
Stevche Radevski
b4aa7fb9a7
fix: Disallow creating duplicate prices ( #7866 )
...
* fix: Disallow creating duplicate prices
* fix: Don't pass id to manager create in upsertWithReplace
2024-07-02 17:06:58 +02:00
Frane Polić
87375db9ef
feat(dashboard): create shipment flow ( #7898 )
...
**What**
- add "Mark shipped" to Fulfillment section
---
CLOSES CORE-2427
2024-07-02 14:50:15 +00:00
Stevche Radevski
8244fe03b7
fix: Several fixes based on preview testing ( #7906 )
...
* fix: Add searchable properties on currency
* fix: Format product type dates in table
* fix: Preserve line whitespace in section row
* fix: Continue through tabs on Enter in create product form
* fix: Pagination in variant prices section
* fix: Add missing inventory edit item translation
* fix: Use the correct options URL for editing
* fix: Correctly get the variant title in inventory item details
* fix: Completely remove variant titles section in inventory item
2024-07-02 14:56:34 +02:00
Stevche Radevski
ef5f5363a1
fix: Delete before upsert in upsertWithReplace to handle relations with unique constraint ( #7875 )
2024-07-02 13:56:12 +02:00
Carlos R. L. Rodrigues
07715e6b50
chore(order): cancel return ( #7881 )
2024-07-02 06:52:58 -03:00
Harminder Virk
b3236ff31c
Add support for native enums ( #7903 )
2024-07-02 15:22:09 +05:30
Harminder Virk
074e4a888e
Mark keys as primary with explicit method call ( #7900 )
2024-07-02 13:27:21 +05:30
Carlos R. L. Rodrigues
17e6a83b59
fix(utils): joiner config from medusa project ( #7896 )
2024-07-01 13:48:34 -03:00
Riqwan Thamir
d58a626d0a
fix: fix tabs + required fields ( #7892 )
2024-07-01 17:23:45 +02:00
Stevche Radevski
5c7c28709f
fix: Only list price set prices when calling the price set methods ( #7889 )
...
FIXES CORE-2417
2024-07-01 14:24:14 +00:00
Stevche Radevski
9daec5d7ac
chore: Migrate notification module to DML ( #7835 )
2024-07-01 09:17:32 +00:00
Stevche Radevski
c661180c44
feat: Completely revamp the pricing module ( #7852 )
...
* feat: Completely revamp the pricing module
* chore: Update all places to the new pricing interfaces
* fix: Remove unnecessary join to itself
* chore: Add data migration for existing users
* fix: Apply the correct index to price rule
2024-07-01 09:47:03 +02:00
Shahed Nasser
72f7500c84
chore(docs): DML API Reference ( #7863 )
...
* added dml options
* added tsdocs + configurations
2024-07-01 10:21:56 +03:00
Shahed Nasser
9ded63cc62
chore: OAS and TSDoc fixes ( #7864 )
2024-07-01 10:21:34 +03:00
Oli Juhl
fa6cd84049
chore: Migrate region module to use DML ( #7837 )
2024-06-29 13:14:52 +00:00