Stevche Radevski
ccb50bb3da
fix: Switch to zod for customer endpoints, fix inconsistencies ( #7094 )
2024-04-18 10:30:45 +02:00
Stevche Radevski
44829f296a
chore: Move several more endpoints to use zod for validation, unify APIs ( #7086 )
2024-04-18 06:51:43 +00:00
Riqwan Thamir
8d356217bd
feat(medusa,core-flows,types): adds batch operations to price list prices ( #7077 )
...
what:
- adds batch operations to price list prices
RESOLVES CORE-1969
RESOLVES CORE-1970
2024-04-17 15:36:09 +00:00
Stevche Radevski
a7df6235f9
chore: Move several modules to use zod for validation and cleanup routes ( #7079 )
2024-04-16 18:06:56 +02:00
Riqwan Thamir
00e6b21bb5
feat(medusa,dashboard,tax): added tax rates and regions UI ( #7026 )
...
whats missing:
- make rules required for overrides
- conditions for other rules
- populating condition reference ids with labels on update
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-04-16 08:26:12 +00:00
Adrien de Peretti
c78915c7c5
feat: Add support for shipping options prices update ( #7028 )
2024-04-11 18:34:55 +02:00
Philip Korsholm
ab7ff64c4a
Feat(admin-next, core-flows, link-modules, medusa, types): Inventory end to end flows ( #7020 )
...
* add reservation endpoints
* add changeset
* initial
* add reservations table
* add edit-item modal
* udpate inventory item attributes
* manage locations skeleton
* add combi batch endpoint
* cleanup
* fix manage locations
* add adjust inventory
* prep for pr
* update versions
* fix for pr
* fix for pr
* cleanup
* Update packages/core-flows/src/inventory/workflows/bulk-create-delete-levels.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* Update packages/core-flows/src/inventory/steps/delete-levels-by-item-and-location.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* rm wack import
* fix build
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-04-10 15:17:54 +02:00
Adrien de Peretti
e1a0960e20
feat: delete shipping options ( #6993 )
2024-04-09 15:30:22 +02:00
Riqwan Thamir
8eb2a4156d
chore: disable turbo and jest cache ( #7024 )
...
* chore: disable turbo cache
* chore: remove cache for build
* chore: disable jest cache
2024-04-09 14:04:31 +02:00
Oli Juhl
3882cac622
feat: Admin V2 customer group ( #7000 )
2024-04-09 12:32:27 +02:00
Riqwan Thamir
5e953f8cf3
chore: add batch update prices for price lists ( #6999 )
2024-04-08 09:23:23 +02:00
Carlos R. L. Rodrigues
dd35a4dbff
fix(modules-sdk): Remote Query "order" as config options ( #6925 )
2024-04-08 08:17:53 +02:00
Oli Juhl
4f88743591
feat: Admin V2 Customers ( #6998 )
2024-04-07 21:38:50 +02:00
Adrien de Peretti
f132929c7e
feat(*): shipping options update API ( #6987 )
...
**What**
- Update the `updateShippingOptions` module service API to follow the newest convention
- Add upsert support for shipping options
- update shipping options workflow
- update shipping options api end point and validation
- update shipping options all integration tests
FIXES CORE-1926
2024-04-07 16:28:59 +00:00
Adrien de Peretti
bc06ad2db4
feat: Clean up shipping options management ( #6977 )
...
**What**
- cleanup existing route on some aspects but not all
- add new create shipping options end point and types
- add set of integration tests
- cleanup existing fulfillment routes
- align existing integration tests
- transform old type to zod types and validators
- fix stock location route
2024-04-06 16:52:05 +00:00
Frane Polić
58c68f6715
feat(dashboard): Admin UI regions v2 ( #6943 )
2024-04-06 17:41:54 +02:00
Carlos R. L. Rodrigues
df0751f122
Feat: draft order api ( #6797 )
2024-04-06 16:35:10 +02:00
Adrien de Peretti
65794f4bb5
feat: Create shipping options workflow ( #6962 )
...
**What**
- Create main workflow
- Update create pricing rule types step to be idempotent
- update remote joiner to support granular isList confguration on field aliases
- Add full workflow integration tests
2024-04-06 11:51:48 +00:00
Riqwan Thamir
5e30b8cce6
feat(dashboard): added details page for promotions + edit sliders ( #6882 )
...
* chore: added details page for promotions
* chore: add edit rules, edit details and edit campaign pages
* chore: change to type button
* chore: connection for rules
* chore: listing rule labels of multiple modules
* chore: add badge summary list
* chore: fix campaigns
2024-04-06 13:20:31 +02:00
Carlos R. L. Rodrigues
d333db0842
chore(orchestration): serialize error ( #6967 )
2024-04-06 11:22:48 +02:00
Stevche Radevski
20e8df914e
feat: Normalize known DB errors to a MedusaError when possible ( #6922 )
...
Before we would swallow the error and return a generic error to the user. This will provide more information to the caller if it is one of the known errors.
2024-04-04 19:12:59 +00:00
Adrien de Peretti
e944a627f0
feat: region payment providers management workflows/api ( #6864 )
2024-04-04 20:41:34 +02:00
Riqwan Thamir
483bf98a49
feat(medusa): added endpoints for rule attribute/operator/values options ( #6911 )
...
what:
adds endpoints that returns attribute options, operator options and value options for a particular rule.
2024-04-04 09:56:17 +00:00
Carlos R. L. Rodrigues
1c6ba4468e
feat(modules-sdk): remote query retrieve ( #6849 )
...
What:
Remote Joiner options to check if keys exist on entry points or relations
2024-03-29 09:26:24 +00:00
Oli Juhl
ea8d9d4d42
feat: API key sales channel link ( #6851 )
...
What
- Add link between API key and sales channels
- Add API route for batch adding sales channels to a publishable API key
- Clean up API key API routes responses
- Move API key test suite from `integration-tests/modules` to `integration-tests/api`
2024-03-28 10:15:11 +00:00
Riqwan Thamir
f176aa2b7b
chore: remove noop tests ( #6855 )
2024-03-28 09:40:34 +01:00
Philip Korsholm
ff84f749d5
feat(medusa): add list location levels endpoint in api v2 ( #6741 )
2024-03-27 18:59:38 +01:00
Adrien de Peretti
d4d1f9b2f2
fix: integration tests modules expectations ( #6848 )
...
**What**
- fix tests
- cleanup deprecated jest conf
2024-03-27 15:39:20 +00:00
Adrien de Peretti
5d9aea053c
fix(utils): Mikro orm prop filtering should check existence ( #6842 )
...
**What**
- Should return non decorated but visible properties.
- Should only prevent circular on non scalar fields
2024-03-27 14:31:26 +00:00
Oli Juhl
0b23e7efb8
feat: Support invites in CLI for V2 ( #6798 )
...
**What**
- Add invite support to cli for 2.0
- Allow email to be passed upon accepting an invite
2024-03-26 20:02:56 +00:00
Riqwan Thamir
509ddf9a56
feat(medusa): migrate medusa unit tests / plugins integration tests to swc jest ( #6820 )
...
what:
- migrates medusa package to swc/jest
- migrates plugins integration tests to swc/jest
- parallelises a few of the heavy test packages
- fixes typeorm circular dependencies
**Unit Tests**
Before: 1 job => ~30 mins
After: 2 jobs => ~5 mins
<img width="260" alt="Screenshot 2024-03-25 at 15 11 49" src="https://github.com/medusajs/medusa/assets/5105988/e1df6985-5bd6-48d0-b87b-336d3c77d0cf ">
**Plugins**
Before: 1 job => ~10 mins
After: 1 job => ~5 mins
<img width="254" alt="Screenshot 2024-03-25 at 15 26 03" src="https://github.com/medusajs/medusa/assets/5105988/c1cec0e2-a1c3-41d1-9372-46d114d804c6 ">
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-03-25 17:55:34 +00:00
Riqwan Thamir
9073d7aba3
feat(core-flows,medusa,types,utils): rename psma to prices ( #6796 )
...
What:
Renames pricesetmoneyamount to prices
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-03-25 13:15:25 +00:00
Philip Korsholm
aa154665de
feat(core-flows, types, medusa): Add Update location level endpoint for api-v2 ( #6743 )
...
* initialize update-location-level
* update middlewares
* readd middleware
* pr feedback
2024-03-25 07:43:41 +01:00
Carlos R. L. Rodrigues
7e93eda1a4
feat(orchestration,workflows-sdk,core-flows): workflow cancel ( #6778 )
2024-03-22 15:03:06 +01:00
Riqwan Thamir
4c98545ab3
feat: shard modules and API integration tests ( #6775 )
...
what:
- runs module and api integration tests in matrix strategy
- v28 of jest comes with sharding support, which we can utilize when we upgrade
- splits the tests by number of matrix jobs and run them in parallel
- This introduced some flakiness in some specs, but couldn't reproduce locally. Those have been skipped for now.
- uses swc/jest for added performance
- Locally, a chunk took 90 seconds with babel and 30 seconds with swc.
- This translated to 2 mins saved per shard in CI, but haven't tested this enough.
2024-03-22 11:15:01 +00:00
Riqwan Thamir
b792c4cab5
chore: merge money amounts and price set money amounts ( #6768 )
...
what:
- merges price set money amounts and money amount
2024-03-21 16:10:13 +00:00
Riqwan Thamir
cf8b5ce85b
chore: pricing models uses standardized relationships attributes ( #6767 )
...
what:
- all relationships under all models are standardized
2024-03-21 10:01:52 +00:00
Carlos R. L. Rodrigues
60070fb65f
fix(link-modules): recreate dismissed link ( #6764 )
...
* fix(link-modules): recreate dismissed link
* rm type
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-03-20 19:12:48 +01:00
Riqwan Thamir
20243e22ee
feat(pricing): pricing models are made soft deletable ( #6732 )
...
what:
- pricing models are made soft deletable
- adds missing timestamp attributes
- removes unwanted relationships + cascade cleanup
2024-03-20 16:03:17 +00:00
Philip Korsholm
64c2731e46
feat(medusa, core-flows): add ppdate inventory item endpoint ( #6735 )
...
* init update inventory item
* prep for pr
2024-03-20 14:45:06 +01:00
Oli Juhl
8155e2cfad
feat: Init. v2 implementation in admin ( #6715 )
2024-03-20 14:28:28 +01:00
Philip Korsholm
62d5803b20
Feat(core-flows, medusa): delete inventory item ( #6708 )
...
* initial get-inventory-item
* add exception throw test
* remove console log
* add changeset
* remove inventory item
* add changeset
* fix pr feedback
* use links
* use modules instead of property names
2024-03-19 10:40:18 +01:00
Philip Korsholm
c20eb15cd9
Feat(core-flows, medusa, types): Add delete location level api-v2 endpoint ( #6727 )
...
* add delete inventory level endpoint
* add changeset
* rename step
* rename step
2024-03-19 10:06:37 +01:00
Philip Korsholm
390bc3e72f
Feat(core-flows, inventory-next, medusa, types): Add create inventory item endpoint ( #6693 )
...
* init create inventory item
* fix integration tests
* pr feedback
* rename to validate
* pr feedback
* bulk delete
* undo change w/ naming
* update dto body
* move integration test
* pr fixes
* fix for pr review
* revert medusa-config changes
* pr feedback
* fix build
2024-03-19 09:20:30 +01:00
Riqwan Thamir
0c705d7bd4
feat(core-flows,medusa,types): create/update workflows to create and update PriceList prices ( #6711 )
...
what:
- create and update workflows for price list prices
- update price list endpoint does a "set"
2024-03-18 14:14:28 +00:00
Philip Korsholm
84b8836cbf
Feat(core-flows, inventory-next, medusa, types): Add create location level endpoint ( #6695 )
...
* initialize create location levels
* add enough from pr to make code build and test
* fix integration tests
* pr feedback
* fix errors
* rm dto
* Update packages/core-flows/src/inventory/steps/validate-inventory-locations.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-03-18 10:28:57 +01:00
Philip Korsholm
56a6ec0227
feat(medusa): Add get inventory item endpoint ( #6704 )
...
* initial get-inventory-item
* add exception throw test
* remove console log
* add changeset
* remove unused import
2024-03-15 16:00:27 +01:00
Adrien de Peretti
3188e703b3
feat(fulfillment): Separate list and context rules validation ( #6674 )
...
**What**
- Add method to validate fulfillment option from the provider
- Separate list/list and count from context rules validation and add listShippingOptionsForContext
FIXES CORE-1861
2024-03-15 13:25:51 +00:00
Stevche Radevski
1956dce80a
feat: Update the product options model and refactor the product module ( #6685 )
...
The changes in this PR are:
1. Change how product options are created and stored. The relationship changed from
`options --> option values <-- variants`
to
`options --> option values --> variant options <-- variants`
Now we can enforce non-duplicate option values, easier creation and updates of options, and more.
2. Refactors the product module. The product module did a lot of things in a non-ideal approach, and this is a step towards a more consistent usage of the base repository and methods exposed by a module. There is still work left to improve the module, but a large chunk of the changes are included in this PR
Things to do as a follow-up:
1. Remove many-to-many relationships if an empty list is passed in the base repository.
2. Improve the typings of the module
3. Further cleanup and improvements (there are few questions that I need answered before I can improve the API)
2024-03-15 12:35:46 +00:00
Riqwan Thamir
9288f53327
feat(core-flows,medusa,pricing,types,utils): added price list workflows + endpoints ( #6648 )
...
Apologies for the giant PR in advance, but most of these are removing of files and migrations from old workflows and routes to new.
What:
- Adds CRUD endpoints for price lists
- Migrate workflows from old sdk to new
- Added missing updatePriceListPrices method to pricing module
2024-03-15 11:09:02 +00:00