Shahed Nasser
6646a203df
chore(types, utils): add TSDocs for AbstractNotificationProviderService ( #7556 )
...
Add TSDocs for `AbstractNotificationProviderService` which will be used to generate a reference on how to create a notification provider module.
2024-06-04 13:36:06 +00:00
Kasper Fabricius Kristensen
67c88dfc96
fix(dashboard): styling of shipping profiles domain ( #7600 )
...
**What**
- Fixes h2 -> h1 in list view.
- Increases spacing between containers based on new design.
Resolves CORE-2121
2024-06-04 11:26:48 +00:00
Harminder Virk
8d9d78029b
Remove redundant methods from pricing module ( #7597 )
2024-06-04 16:33:06 +05:30
Carlos R. L. Rodrigues
41df24e2dc
chore(workflows-sdk): check exported workflow ( #7592 )
2024-06-04 07:18:40 -03:00
Carlos R. L. Rodrigues
68fb04b849
fix(order): ignore reservation when manage_inventory is false ( #7594 )
2024-06-04 07:08:54 -03:00
Stevche Radevski
0929c4f457
Feat: Add product tag endpoints, move tests to HTTP folder ( #7591 )
...
* chore: Move product type tests to HTTP folder
* feat: Add product tags endpoints and move tests to HTTP folder
2024-06-04 10:56:22 +02:00
Oli Juhl
ce40fe88f5
chore: Move admin invites + user tests to HTTP ( #7596 )
2024-06-04 10:53:01 +02:00
Riqwan Thamir
ecfbfcc707
feat(core-flows,modules-sdk,types,medusa,link-modules): adds variant <> inventory item link endpoints ( #7576 )
...
what:
- adds variant inventory link management endpoints:
```
Link inventory item to variant
POST /products/:id/variants/:vid/inventory-items
Update variant's inventory item link
POST /products/:id/variants/:vid/inventory-items/:iid
Unlink variant's inventory item
DELETE /products/:id/variants/:vid/inventory-items/:iid
```
- a batch endpoint that does the above 3 across variants
```
POST /products/:id/variants/inventory-items
```
2024-06-03 18:23:29 +00:00
Carlos R. L. Rodrigues
122186a78d
chore(order): cancel order ( #7586 )
2024-06-03 12:31:33 -03:00
Stevche Radevski
fdd9022376
chore: Move payment tests to http folder ( #7588 )
2024-06-03 15:04:18 +00:00
Adrien de Peretti
337b8ce0bb
chore: Resolve flaky integration tests ( #7587 )
2024-06-03 16:29:08 +02:00
Oli Juhl
0c0c510a37
chore: Move admin region tests ( #7582 )
2024-06-03 14:25:43 +02:00
Kasper Fabricius Kristensen
b299aec620
fix(dashboard): Fix the color of name field ( #7518 )
...
RESOLVES CORE-2111
2024-06-03 11:15:50 +00:00
Stevche Radevski
100154d905
chore: Move currency, collection, and auth tests to http folder ( #7581 )
...
* chore: Move auth tests to http folder
* chore: Migrate collection tests to http folder
* chore: Move currency tests to http folder
2024-06-03 12:13:22 +02:00
Oli Juhl
cabdb2fcd8
chore: Move sales channel tests ( #7579 )
...
What
- Move sales channel integration tests from `/api` to `/http`
Deleted tests that do not belong in the suite:
- POST /admin/products/:id
- Mutation sales channels on products
- POST /admin/products
- Creating a product with a sales channel
- GET /admin/products
- Filtering products by sales channel
- Expanding with a sales channel
- GET /admin/orders
- Filtering orders by sales channel
- Expanding with a sales channel
- POST /admin/orders/:id/swaps
- Creating a swap with a sales channel
2024-06-03 09:47:45 +00:00
Oli Juhl
65d3222973
chore: Move customer + customer group integration tests and fixes issues ( #7577 )
...
* chore: Move customer + customer group and fixes issues
* remove /customer sendpoint
2024-06-03 10:52:32 +02:00
Adrien de Peretti
9608bf06ef
feat: Event emitting part 1/N (Fulfillment) ( #7391 )
...
**What**
Add support for event emitting in the fulfillment module
**NOTE**
It does not include the review of the events for the abstract module factory if the method is not implemented in the module itself and rely on the default implementation
2024-06-03 08:29:35 +00:00
Shahed Nasser
28d2a5347a
chore(types, utils): added TSDocs for file provider module ( #7553 )
...
* chore(types, utils): added TSDocs for file provider module
* fix import
2024-06-03 10:18:02 +02:00
Shahed Nasser
872c42c6dc
chore(utils): added TSDocs to AbstractAuthModuleProvider ( #7550 )
...
Added TSDocs to AbstractAuthModuleProvider. These are used to generate the reference on how to create an auth provider module.
2024-06-03 07:41:09 +00:00
Carlos R. L. Rodrigues
af0140d317
feat(order): cancel fulfillment ( #7573 )
2024-06-02 09:33:24 -03:00
Stevche Radevski
3ede9d7863
fix: Use integer for variant and category ranks ( #7572 )
2024-06-01 16:25:04 +02:00
Stevche Radevski
97327670a5
feat: Add support for uploading media when creating a product ( #7567 )
2024-05-31 15:34:16 +00:00
Sebastian Rindom
e66cf9112d
fix(utils): support omitting modules in config ( #7563 )
...
* fix: skip module loading if mod: false
* fix: don't include disabled modules in config
* add test
* fix: revert changes to module loading in medusaapp
2024-05-31 15:28:52 +02:00
Stevche Radevski
cec9af1b80
feat: Add support for uploading media in admin ( #7564 )
2024-05-31 13:11:34 +02:00
Harminder Virk
11528526fa
feat: loosely typed container
2024-05-31 15:22:03 +05:30
Riqwan Thamir
2d956931b3
chore: append variants to created products on workflow ( #7560 )
2024-05-30 22:23:43 +02:00
Shahed Nasser
6b86b1d531
chore(types): add TSDocs to the user module's types ( #7549 )
2024-05-30 18:04:44 +03:00
Riqwan Thamir
22891060f9
chore: use product variant workflow in product create workflow ( #7548 )
...
what:
- reuses the product variant create workflow inside product create workflow
2024-05-30 14:04:59 +00:00
Stevche Radevski
4117beed58
chore: Refactor batch product workflows and add tests ( #7540 )
2024-05-30 15:53:03 +02:00
Shahed Nasser
fe96bd39b1
docs: change config snippets to use defineConfig ( #7546 )
2024-05-30 16:47:28 +03:00
Riqwan Thamir
15e9787465
feat(types,medusa): add inventory quantity to products endpoint ( #7541 )
...
what:
- when inventory_quantity is requested through the API, we calculate the inventory based on sales channels + stock locations and return the total available inventory.
A variant can have multiple inventory items. As an example:
Table: (variant)
- 4 (required_quantity via link) x legs (inventory item)
- 2 x table top
Only if all individual inventory items of a variant are available, do we mark the variant as available as a single unit.
RESOLVES CORE-2187
2024-05-30 13:20:06 +00:00
Adrien de Peretti
4e20588522
chore(core-flows): Cleanup old code ( #7547 )
...
Remove the old handlers and definitions that does not work anymore or are not used anymore. This legacy was bothering a refactoring we have with @thetutlage
2024-05-30 12:53:42 +00:00
Carlos R. L. Rodrigues
8a5d9d04a3
chore(payment): provider call outside db transaction ( #7536 )
2024-05-30 07:24:06 -03:00
Carlos R. L. Rodrigues
096372463e
chore(promotion): big number calc ( #7537 )
2024-05-30 07:23:57 -03:00
Adrien de Peretti
61977bd392
chore: Allow modules to discover resources from ts/js and local directories ( #7520 )
...
**What**
Update the module resources discovery to account to the source directory to look into.
example:
```ts
user: { resolve: 'user' }
```
The above config will load the resources from the resolved path looking from the node modules
```ts
user: { resolve: './modules/user' }
```
The above config will load the resources from the local directory under dist if not run with ts node and under src otherwise
2024-05-30 09:14:55 +00:00
Stevche Radevski
6698f3ab7b
feat: Add http integration tests and enable them in pipeline ( #7532 )
2024-05-30 10:51:31 +02:00
Stevche Radevski
5ad6864b82
feat: Improve zod error messages ( #7535 )
2024-05-30 09:52:47 +02:00
Shahed Nasser
27b64c23f0
feat(create-medusa-app): support more environment variables + fixes ( #7533 )
2024-05-29 21:25:31 +02:00
Shahed Nasser
65ee18c5bc
chore(modules-sdk): Small fix to error wording ( #7526 )
...
* chore(modules-sdk): Small fix to error wording
* rename variables
* fix tests
* rename plugins to providers in tests
2024-05-29 21:17:35 +02:00
Kasper Fabricius Kristensen
e73b6ce691
fix(ui,ui-preset,icons): Fix styling of Select, DropdownMenu, and Checkbox ( #7525 )
...
* progress
* progress
* fix: checkbox styling
* fix(ui,ui-preset): Fix the styling of Select, DropdownMenu, and Checkbox
* update ellipse-solid-mini icon
* cleanup
2024-05-29 21:16:54 +02:00
Stevche Radevski
89b0876abc
fix: Build auth-google as commonjs module ( #7528 )
2024-05-29 17:17:25 +02:00
Stevche Radevski
aeda24265d
feat: Remove returning token from customer and user endpoints ( #7523 )
...
* chore: Move generateJwtToken to utils
* feat: Stop returning token on user and customer endpoints
2024-05-29 17:13:01 +02:00
Kasper Fabricius Kristensen
e5e5eb6e18
fix(dashboard): Clean Edit Variant form payload of empty strings ( #7512 )
...
* fix(dashboard): Clean Edit Variant form paylod of empty strings
* fix(dashboard,medusa): Allow passing null to update variant to unset fields
* fix product edit form
* cleanup
* cleanup
* pass prop
2024-05-29 17:09:40 +02:00
Kasper Fabricius Kristensen
4483b7980d
fix(dashboard): Fix the color of general fields ( #7519 )
2024-05-29 17:09:13 +02:00
Riqwan Thamir
f0b9d5534e
chore: query inventory items by location id ( #7524 )
...
what:
- allows querying inventory items by the correct location_id
2024-05-29 14:14:10 +00:00
Harminder Virk
a40b6aef6d
Add defineConfig helper ( #7517 )
2024-05-29 17:10:15 +05:30
Carlos R. L. Rodrigues
f1ced57d5f
chore: payment auto capture + remove enum from utils ( #7513 )
...
What:
- handles payments session that are auto captured
- removes all the enums from `@medusajs/types`
- move all `@medusajs/types` to devDependencies
2024-05-29 11:12:59 +00:00
Carlos R. L. Rodrigues
bbca54efa7
chore(order): aggregate statuses ( #7497 )
2024-05-29 07:05:42 -03:00
Stevche Radevski
8e66e10995
fix: Use correct config for auth methods per actor ( #7515 )
2024-05-29 10:42:53 +02:00
Harminder Virk
51ea166df2
chore: use yarn@3.2.1 in all the packages ( #7514 )
2024-05-29 09:00:40 +02:00