Adrien de Peretti
8a68919ed3
chore: Allow to fetch remote link using the service name or the alias from the use remote link step ( #8140 )
...
* chore: Allow to fetch remote link using the service name or the alias from the use remote link step
* revert package.json
* fix packages
2024-07-16 11:03:41 +02:00
Oli Juhl
ffd4b195ee
feat: Add exchange return shipping ( #8108 )
...
* wip
* finalize tests
* feat: Add exchange return shipping
* add shipping to preview
* test input
* move utils and ignore already inserted shipping method
* use custom price
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
2024-07-15 22:04:20 +02:00
Harminder Virk
5bb870948a
fix: defineMikroOrmCliConfig helper to provide default db credentials ( #8131 )
2024-07-15 15:49:00 +05:30
Oli Juhl
7e82f981f9
feat: Add return shipping method workflow ( #8106 )
2024-07-13 13:09:07 +02:00
Adrien de Peretti
136da3f3ce
fix: Handle multiple id prop generation ( #8097 )
...
* fix: Handle multiple id prop generation
* throw on duplicate id + cleanup
* fix mistakenly removed files
* fix
* fix
* passzord string
* passzord string
2024-07-12 16:41:19 +02:00
Adrien de Peretti
104b00d4e9
feat(migrations): CLI generate command ( #8103 )
2024-07-12 13:12:49 +02:00
Shahed Nasser
85c15dbb25
fix(utils): error message when isQueryable is possibly not enabled. ( #8096 )
2024-07-11 18:54:43 +02:00
Adrien de Peretti
79ec2bcfe2
fix: Migration generator and generated migrations ( #8090 )
2024-07-11 18:21:09 +02:00
Shahed Nasser
66acb3023e
fix(migrations): small fix to the text ( #8091 )
...
Small fix to the migrations text.
2024-07-11 13:16:11 +00:00
Harminder Virk
e489b0c037
fix: gracefully handle migrations that cannot be reverted ( #8087 )
2024-07-11 17:40:34 +05:30
Harminder Virk
45c573b03a
Feat: Improvements to the migrations CLI and workflow ( #8060 )
2024-07-11 16:52:34 +05:30
Adrien de Peretti
1789b8e315
chore: properly infer return type from model config ( #8079 )
2024-07-11 10:36:07 +02:00
Carlos R. L. Rodrigues
f460348280
fix(utils): define link alias + pluralize ( #8070 )
...
What:
* Fix alias of models that have "compound names": eg "related_product"
* `deleteCascade` option
* Package to pluralize english words correctly
2024-07-10 22:37:14 +00:00
Adrien de Peretti
e778870c68
chore: Ensure the events are emitted with the same shape all accross ( #8063 )
...
* chore: Ensure the events are emitted with the same shape all accross
* fixes:
* rm unsues type
* types
* fix tests
2024-07-10 19:34:28 +02:00
Riqwan Thamir
bec2dcd667
feat(core-flows, order): add workflow to create change order actions ( #8056 )
...
what:
- adds workflow to create change order actions
2024-07-10 10:35:03 +00:00
Carlos R. L. Rodrigues
2b2e2fbb3d
chore(order): preview order change ( #8025 )
...
What:
- new method `previewOrderChange`
- Calculate all the actions related to an order change.
- Return the preview of the final Order, with all the calculated values.
- Associate actions with items and shipping_methods they modified.
FIXES: CORE-2509
2024-07-09 14:45:55 +00:00
Stevche Radevski
101ebbe0f0
fix: Have shipping options open by default ( #8040 )
...
CLOSES CORE-2455
2024-07-09 13:59:45 +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
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
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
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
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
Adrien de Peretti
cb36655b63
chore: Update defineMikroOrmCliConfig api ( #7940 )
...
* chore: Update defineMikroOrmCliConfig api
* update usage
2024-07-04 12:58:43 +02: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
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
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
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
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
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
Oli Juhl
fa6cd84049
chore: Migrate region module to use DML ( #7837 )
2024-06-29 13:14:52 +00:00
Carlos R. L. Rodrigues
9f3998393b
fix(totals): order item totals ( #7867 )
2024-06-28 09:34:25 -03:00