Josip Matić
bb5ea9d5ca
fix(medusa): Double tax issue on return refund amount ( #4899 )
...
Closes #4686
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-05 08:14:45 +00:00
Carlos R. L. Rodrigues
a4906d0ac0
chore(medusa,orchestration,link-modules,modules-sdk): internal services as modules ( #4925 )
2023-09-04 11:36:05 -03:00
Oli Juhl
17d91c276a
feat(medusa): Add AbstractFulfillmentService ( #4922 )
...
* feat(medusa): Add abstract fulfillment service
* add data types
* add loaders
* Create nine-glasses-allow.md
* address pr comments
2023-09-03 20:05:36 +02:00
zulianrizki
c348263fdb
fix(medusa-payment-stripe): api endpoint for getStripePayments ( #4928 )
...
fixes https://github.com/medusajs/medusa/issues/4927
Co-authored-by: zulian-coconutlab <73976574+zulian-coconutlab@users.noreply.github.com >
2023-09-01 10:38:03 +00:00
Riqwan Thamir
fcb6b4f510
feat(pricing, utils, types): adds money amount to pricing module ( #4909 )
...
What:
- Adds money amount service / repo / model
- Adds money amount to entry service
- Adds tests for services
- Refreshes schema
- Update joiner config to include money amounts
RESOLVES CORE-1478
RESOLVES CORE-1479
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2023-08-31 13:03:10 +00:00
Frane Polić
4bf8acbdd4
fix(medusa): csv parser check match prop on column ( #4913 )
...
**What**
- if there is the `match` column with regex defined in the schema don't look up column definition by name
2023-08-31 09:38:52 +00:00
Riqwan Thamir
87bade096e
fix(utils, product, pricing, link-modules): add missing dependencies for utils + fix migration path issue ( #4915 )
...
* fix: add missing dependencies for utils
* chore: migration path is set from the calling package
* chore: update changeset
2023-08-31 09:16:02 +02:00
Carlos R. L. Rodrigues
4d16acf5f0
feat(link-modules,modules-sdk, utils, types, products) - Remote Link and Link modules ( #4695 )
...
What:
- Definition of all Modules links
- `link-modules` package to manage the creation of all pre-defined link or custom ones
```typescript
import { initialize as iniInventory } from "@medusajs/inventory";
import { initialize as iniProduct } from "@medusajs/product";
import {
initialize as iniLinks,
runMigrations as migrateLinks
} from "@medusajs/link-modules";
await Promise.all([iniInventory(), iniProduct()]);
await migrateLinks(); // create tables based on previous loaded modules
await iniLinks(); // load link based on previous loaded modules
await iniLinks(undefined, [
{
serviceName: "product_custom_translation_service_link",
isLink: true,
databaseConfig: {
tableName: "product_transalations",
},
alias: [
{
name: "translations",
},
],
primaryKeys: ["id", "product_id", "translation_id"],
relationships: [
{
serviceName: Modules.PRODUCT,
primaryKey: "id",
foreignKey: "product_id",
alias: "product",
},
{
serviceName: "custom_translation_service",
primaryKey: "id",
foreignKey: "translation_id",
alias: "transalation",
deleteCascade: true,
},
],
extends: [
{
serviceName: Modules.PRODUCT,
relationship: {
serviceName: "product_custom_translation_service_link",
primaryKey: "product_id",
foreignKey: "id",
alias: "translations",
isList: true,
},
},
{
serviceName: "custom_translation_service",
relationship: {
serviceName: "product_custom_translation_service_link",
primaryKey: "product_id",
foreignKey: "id",
alias: "product_link",
},
},
],
},
]); // custom links
```
Remote Link
```typescript
import { RemoteLink, Modules } from "@medusajs/modules-sdk";
// [...] initialize modules and links
const remoteLink = new RemoteLink();
// upsert the relationship
await remoteLink.create({ // one (object) or many (array)
[Modules.PRODUCT]: {
variant_id: "var_abc",
},
[Modules.INVENTORY]: {
inventory_item_id: "iitem_abc",
},
data: { // optional additional fields
required_quantity: 5
}
});
// dismiss (doesn't cascade)
await remoteLink.dismiss({ // one (object) or many (array)
[Modules.PRODUCT]: {
variant_id: "var_abc",
},
[Modules.INVENTORY]: {
inventory_item_id: "iitem_abc",
},
});
// delete
await remoteLink.delete({
// every key is a module
[Modules.PRODUCT]: {
// every key is a linkable field
variant_id: "var_abc", // single or multiple values
},
});
// restore
await remoteLink.restore({
// every key is a module
[Modules.PRODUCT]: {
// every key is a linkable field
variant_id: "var_abc", // single or multiple values
},
});
```
Co-authored-by: Riqwan Thamir <5105988+riqwan@users.noreply.github.com >
2023-08-30 14:31:32 +00:00
Andreas Deininger
a0bbc1893b
chore: fix typos ( #4877 )
...
* Chore: Fix typos
* Add generated resources
---------
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
2023-08-30 13:27:46 +03:00
Riqwan Thamir
460161a69f
feat(pricing, types, utils, medusa-sdk): Pricing Module Setup + Currency ( #4860 )
...
What:
- Setups the skeleton for pricing module
- Creates service/model/repository for currency model
- Setups types
- Setups DB
- Moved some utils to a common place
RESOLVES CORE-1477
RESOLVES CORE-1476
2023-08-29 21:58:34 +00:00
Rares Stefan
470379e631
fix(medusa, admin-ui): Add deleted_at to Return Reason unique constraint ( #4834 )
...
* Update return reason create to upsert
* Create strange-wombats-invite.md
* Revert upsert, make value index only apply on non-deleted entities
2023-08-29 19:26:58 +02:00
Lacey Pevey
046b0dcfa5
chore(medusa-file-s3): Add cache-control option + update to sdk v3 ( #4884 )
...
* add cache-control option, fix delete function, update to sdk v3
* Create cool-pears-trade.md
* reformat throw line, remove dev comment
* remove console.log debugging statement
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-29 19:25:17 +02:00
Micky Jittjana
4d439bed38
fix(medusa): Make event enqueuer reconnect the database when it lost the connection ( #4855 )
...
* Try to periodically reconnect database from enqueuer
* Create great-months-train.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2023-08-29 13:03:11 +02:00
Frane Polić
b7de679e9b
feat(admin-ui): batch job completed notification ( #4886 )
2023-08-28 20:21:42 +02:00
Frane Polić
758f035c2f
fix(admin-ui): delete customer group ( #4893 )
2023-08-28 19:05:31 +02:00
Frane Polić
50798d1189
fix(admin-ui): currency input exception ( #4888 )
...
* fix: infer cell formatting
* chore: changeset
* Update friendly-months-attack.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-28 16:58:34 +02:00
Andreas Deininger
88e68af501
chore(ci): Bump GitHub workflows to run on node 16 ( #4876 )
...
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-28 16:58:05 +02:00
Riqwan Thamir
a1110b3438
fix(medusa): category_id and q params for list products endpoint ld work ( #4889 )
...
Looks like during an earlier refactor, some of the categories logic wasn't ported over to the handler that works with q params.
what:
- adds a fix that allows queries to be made on category_id when q param is passed.
Fixes https://github.com/medusajs/medusa/issues/4885
2023-08-28 11:46:55 +00:00
Oli Juhl
af09a4b7b4
fix(medusa-file-*): Add types as devDeps ( #4871 )
2023-08-27 16:32:59 +02:00
github-actions[bot]
81904762b0
chore: Version Packages ( #4867 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 16:49:02 +02:00
github-actions[bot]
362abdfad7
chore: Version Packages ( #4826 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-25 16:15:33 +02:00
Oli Juhl
f28fa6a7b3
chore(admin): Add caret range to peer deps ( #4865 )
2023-08-25 16:07:43 +02:00
Shahed Nasser
d04b9635f9
chore(oas): fix Get Variant's Inventory OAS ( #4856 )
...
* chore(oas): fix Get Variant's Inventory OAS
* fix the curl example
2023-08-25 13:03:55 +03:00
Victor Frunza
9766758e19
Fixed: Typo for should in the "Create Region" form ( #4854 )
...
closes #4853
2023-08-25 08:41:54 +00:00
Frane Polić
0c7c2eeeab
feat(admin-ui): refresh products when a BatchJob is completed ( #4840 )
2023-08-25 07:34:48 +00:00
Rares Stefan
f4bf9ee169
fix(admin-ui): Fix variant creation when no stock locations provided ( #4843 )
...
* Update check on variant creation, whether to create stock locations
* Create spicy-shoes-type.md
2023-08-24 08:51:12 +02:00
Rares Stefan
57e199ef52
fix(admin-ui): Fix sign out in admin panel not redirecting correctly ( #4837 )
2023-08-23 21:54:45 +02:00
Frane Polić
8b860416d2
feat(medusa): PriceListImportStrategy descriptive errors ( #4842 )
2023-08-23 21:39:34 +02:00
Shahed Nasser
c58588904c
fix(medusa-telemetry): added missing babel dependencies ( #4817 )
2023-08-23 14:26:06 +02:00
Frane Polić
d8a6e3e0d8
feat(medusa-file-local): implement missing streaming methods ( #4788 )
2023-08-23 13:05:04 +02:00
olivermrbl
8a43a6bc1d
chore: Bump @medusajs/utils + @medusajs/product
2023-08-22 15:46:59 +02:00
Carlos R. L. Rodrigues
c53fa6cd3b
fix(utils,product): mikro orm connection loader ( #4825 )
...
Fix shared connection property check
2023-08-22 12:35:52 +00:00
Frane Polić
edf9ed4e59
fix(medusa-interfaces, medusa-file-*): flag for streaming to a private bucket ( #4771 )
...
* wip: unify file service api
* fix: flag type
* fix: update Spaces service
* fix: S3/Spaces - default to private
* fix: MinIO `isPrivate` for `getPresignedDownloadUrl`, add `isPrivate` to `GetUploadedFileType`
* chore: changeset
2023-08-22 13:05:30 +02:00
github-actions[bot]
db36258885
chore: Version Packages ( #4711 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-17 17:17:41 +02:00
Kasper Fabricius Kristensen
1e8d044b16
add versions ( #4795 )
2023-08-17 17:10:40 +02:00
Shahed Nasser
c684d16ec0
feat(create-medusa-app): remove --stable option and change to clone default branch ( #4794 )
2023-08-17 14:34:36 +00:00
Kasper Fabricius Kristensen
f1a05f4725
feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions ( #4761 )
...
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-17 12:14:45 +00:00
Shahed Nasser
320fab8aed
chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema ( #4780 )
...
* chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema
* ran build
2023-08-16 16:42:34 +03:00
Shahed Nasser
914d773d3a
api-ref: custom API reference ( #4770 )
...
* initialized next.js project
* finished markdown sections
* added operation schema component
* change page metadata
* eslint fixes
* fixes related to deployment
* added response schema
* resolve max stack issue
* support for different property types
* added support for property types
* added loading for components
* added more loading
* type fixes
* added oneOf type
* removed console
* fix replace with push
* refactored everything
* use static content for description
* fixes and improvements
* added code examples section
* fix path name
* optimizations
* fixed tag navigation
* add support for admin and store references
* general enhancements
* optimizations and fixes
* fixes and enhancements
* added search bar
* loading enhancements
* added loading
* added code blocks
* added margin top
* add empty response text
* fixed oneOf parameters
* added path and query parameters
* general fixes
* added base path env variable
* small fix for arrays
* enhancements
* design enhancements
* general enhancements
* fix isRequired
* added enum values
* enhancements
* general fixes
* general fixes
* changed oas generation script
* additions to the introduction section
* added copy button for code + other enhancements
* fix response code block
* fix metadata
* formatted store introduction
* move sidebar logic to Tags component
* added test env variables
* fix code block bug
* added loading animation
* added expand param + loading
* enhance operation loading
* made responsive + improvements
* added loading provider
* fixed loading
* adjustments for small devices
* added sidebar label for endpoints
* added feedback component
* fixed analytics
* general fixes
* listen to scroll for other headings
* added sample env file
* update api ref files + support new fields
* fix for external docs link
* added new sections
* fix last item in sidebar not showing
* move docs content to www/docs
* change redirect url
* revert change
* resolve build errors
* configure rewrites
* changed to environment variable url
* revert changing environment variable name
* add environment variable for API path
* fix links
* fix tailwind settings
* remove vercel file
* reconfigured api route
* move api page under api
* fix page metadata
* fix external link in navigation bar
* update api spec
* updated api specs
* fixed google lint error
* add max-height on request samples
* add padding before loading
* fix for one of name
* fix undefined types
* general fixes
* remove response schema example
* redesigned navigation bar
* redesigned sidebar
* fixed up paddings
* added feedback component + report issue
* fixed up typography, padding, and general styling
* redesigned code blocks
* optimization
* added error timeout
* fixes
* added indexing with algolia + fixes
* fix errors with algolia script
* redesign operation sections
* fix heading scroll
* design fixes
* fix padding
* fix padding + scroll issues
* fix scroll issues
* improve scroll performance
* fixes for safari
* optimization and fixes
* fixes to docs + details animation
* padding fixes for code block
* added tab animation
* fixed incorrect link
* added selection styling
* fix lint errors
* redesigned details component
* added detailed feedback form
* api reference fixes
* fix tabs
* upgrade + fixes
* updated documentation links
* optimizations to sidebar items
* fix spacing in sidebar item
* optimizations and fixes
* fix endpoint path styling
* remove margin
* final fixes
* change margin on small devices
* generated OAS
* fixes for mobile
* added feedback modal
* optimize dark mode button
* fixed color mode useeffect
* minimize dom size
* use new style system
* radius and spacing design system
* design fixes
* fix eslint errors
* added meta files
* change cron schedule
* fix docusaurus configurations
* added operating system to feedback data
* change content directory name
* fixes to contribution guidelines
* revert renaming content
* added api-reference to documentation workflow
* fixes for search
* added dark mode + fixes
* oas fixes
* handle bugs
* added code examples for clients
* changed tooltip text
* change authentication to card
* change page title based on selected section
* redesigned mobile navbar
* fix icon colors
* fix key colors
* fix medusa-js installation command
* change external regex in algolia
* change changeset
* fix padding on mobile
* fix hydration error
* update depedencies
2023-08-15 18:07:54 +03:00
Oli Juhl
16249ec280
fix(actions): Disable OAS unit tests + add flags to test commands ( #4767 )
...
* wip
* skip models test
* ignore plugins loader test
2023-08-15 14:32:58 +02:00
Shahed Nasser
30ce35b163
feat(create-medusa-app): add database options ( #4733 )
...
## What
Adds new options for easier usage of the `create-medusa-app` command for regular medusa users.
The following options are added:
- `--skip-db`: Skips creating the database, running migrations, and seeding, and subsequently skips opening the browser. Useful if the developer wants to set the database URL at a later point in the configurations.
- `--db-url <url>`: Skips database creation and sets the database URL to the provided URL. Throws an error if can't connect to the database. Will still run migrations and open the admin after project creation. Useful if the developer already has database created, locally or remotely.
- `--no-migrations`: Skips running migrations, creating admin user, and seeding. If used, it's expected that you pass the `--db-url` option with a url of a database that has all necessary migrations. Otherwise, unexpected errors will occur. Helpful only if combined with `--db-url`
- `--no-browser`: Disables opening the browser at the end of the project creation and only shows success message.
- `--directory-path <path>`: Allows specifying the directory path to install the project in. Useful for testing.
2023-08-15 08:08:54 +00:00
Frane Polić
4a448b68fd
feat(admin-ui): bulk advanced selections + copy/paste ( #4568 )
...
* wip: bulk editor copy/paste
* feat: exit edit mode with "enter" press
* wip: arrow navigation + onEnter
* wip: 2D select + arrow navigation
* feat: arrow navigation and multiselect, tabs navigation and multiselect
* fix: region cols offset
* feat: 2d copy
* feat: 2d paste
* fix: trailing tab
* fix: borders
* feat: ensure consistent copy order
* fix: off by one col, pass `cmd` keypress
* feat: `cmd` select
* refactor: cleanup 1
* refactor: cleanup 2, utils
* fix: copy paste
* fix: copy paste indicator
* fix: reduce dashed border size
* fix: issue with leading empty cell
* feat: cp support 2 formats of content, notification on copy, remove dashed box
* fix: last empty cell case
* feat: buffer content edge cases
* refactor: remove log
* feat: past fill selected area
* feat: simplify copy-paste
* fix: throw error if textual cell is in the buffer
* Create eighty-zebras-grow.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-14 21:37:12 +02:00
Sebastian Rindom
9d8f87b03b
fix(medusa): ignore region_id update w/o value change ( #4751 )
2023-08-13 09:26:32 +02:00
Josip Matić
803aca0689
feat(medusa-plugin-restock-notifications): Multi-warehouse support ( #4718 )
...
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-12 12:02:39 +00:00
Simons
d8a908bd8e
fix(medusa): removal of shipping methods on addOrUpdateLineItems ( #4725 )
...
* added removal of shipping methods on addOrUpdateLineItems
* Create lovely-beds-design.md
---------
Co-authored-by: Thijs Simons <thijs@careeraim.nl >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-08-12 12:44:35 +02:00
Oli Juhl
1d2637572b
chore: Remove rimraf from prepare ( #4741 )
2023-08-11 22:55:59 +02:00
Oli Juhl
9469063f64
fix(medusa-js): return type of collection hook + export ( #4747 )
2023-08-11 13:37:54 +02:00
Sebabrata Kundu
410ac86ae1
fix: Spelling medusa in desc of package.json of Stripe and PayPal package ( #2454 )
...
Fix the incorrect spelling of medusa in package.json file of paypal and stripe packages.
Closes #2453
2023-08-11 08:47:16 +00:00
Adrien de Peretti
a268d2cb0b
feat(workflows): Data aggregation ( #4732 )
...
* apply the aggregator automatically
* add comment
* apply aggregate
* improve pipe aggregation
* improve test cases
* improvements
* clean tests
* renameing to merge
* fix merge apply
* move merge apply
* cleanup cart workflow and end point
* fixes and naming
2023-08-10 14:01:56 +02:00
Adrien de Peretti
f8d3d5f91a
chore(product): remove decorator where it is not necessary and cleanup ( #4731 )
...
* chore(product): remove decorator where it is not necessary and cleanup
* Create twenty-gorillas-exist.md
2023-08-10 09:57:32 +02:00