Carlos R. L. Rodrigues
4b0e3fb2a7
feat(medusa,orchestration): Decouple Product in Cart domain ( #4945 )
2023-09-08 17:24:46 +02:00
github-actions[bot]
98b91d1137
chore: Version Packages ( #4891 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-08 14:09:39 +02:00
Oli Juhl
d3d8f0bf58
chore(admin, medusa-payment-stripe): Fix deps ( #4987 )
2023-09-08 13:55:03 +02:00
Shahed Nasser
240b038006
feat(create-medusa-app): add install Next.js storefront option ( #4968 )
...
* feat(create-medusa-app): add install Next.js storefront option
* added config for yes option
* added more instructions to exit message
* handle duplicate directories and next errors
* use next.js branch
* add line break in storefront question
* pass next.js directory name as env variable
* change question message
* address PR feedback
* fix(medusa-cli): remove .git directory in `new` command
* fix deleting a directory error
2023-09-08 12:17:48 +02:00
mortenengel
11fb523051
feat(medusa, admin-ui): Improve gift card application ( #4944 )
...
Fix for the problems identified in issue #4892
Bugfix: admin-ui order summary no longer uses gift card total from order when displaying how much has been withdrawn from each giftcard.
Bugfix(?): no longer keep applying gift cards (at 0 value) when sufficient balance has been reached
Feature: multiple giftcards are now applied in ordered fashion. First by end_date (supports null), then by remaining balance. In order to ensure that customers ends up with as long lasting and few remaining gift cards as possible after the transaction.
2023-09-07 16:56:36 +00:00
Josip Matić
5890d3b313
fix(medusa-plugin-brightpearl): Inventory sync for OOS items in brightpearl ( #4966 )
2023-09-07 11:29:48 +00:00
Josip Matić
c7b149a7bc
feat(medusa-fulfillment-webshipper): Create webshipper return order ( #4846 )
...
Adds option to create a webshipper return order if return_portal is defined through webshipper options. Return order allows additional features in webshipper, such as marking the return as "Arrived" or "Processed" which enables us to create a webhook and automatically mark return as received in medusa.
Note:
Return portal is a "required" relationship in webshipper when doing a return order POST request, hence it should be defined in options prior to using this feature.
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-07 10:21:03 +00:00
Riqwan Thamir
c3dba06948
fix(modules-sdk, orchestration): add missing dependencies + fix default handling in medusa-app & remote query ( #4930 )
2023-09-07 07:53:46 +00:00
Adrien de Peretti
86f4ca369f
fix(orchestration): Fix remote joiner filtering fields ( #4970 )
...
* fix(orchestration): Fix remote joiner filtering fields
* cleanup test
2023-09-07 09:10:16 +02:00
Riqwan Thamir
66bd9a835c
feat(products,types,pricing): allow scoping products by collection_id + pricing by currency_code ( #4965 )
...
* chore: allow scoping products by collection_id
* chore: scope money amounts by currency code + change category_ids to category_id
* chore: add an extra product to test without collection
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-07 09:06:50 +02:00
Adrien de Peretti
b71776738c
feat(medusa): Event bus db failure handling ( #4963 )
...
* feat(medusa): Event bus db failure handling
* naming
* Create olive-years-heal.md
2023-09-06 17:07:29 +02:00
Shahed Nasser
9781089ca3
chore(oas): Update OAS for upload endpoints ( #4953 )
...
* chore(oas): Update OAS for upload endpoints
* added changeset
* address pr feedback
2023-09-06 17:39:19 +03:00
Kasper Fabricius Kristensen
545022145b
fix(admin): Export RouteProps and SettingProps ( #4950 )
...
* fix: export SettingProps and RouteProps from admin package
* add changeset
2023-09-05 19:22:52 +02:00
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