-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/cart-module-data-models
- Loading branch information
Showing
103 changed files
with
2,983 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@medusajs/types": patch | ||
"@medusajs/utils": patch | ||
--- | ||
|
||
feat(types,utils): added promotion create with rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@medusajs/pricing": patch | ||
"@medusajs/types": patch | ||
"@medusajs/utils": patch | ||
--- | ||
|
||
feat(pricing, types): add soft deletion for money-amounts | ||
feat(utils): cascade soft delete across 1:1 relationships |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"medusa-test-utils": patch | ||
"@medusajs/link-modules": patch | ||
"@medusajs/pricing": patch | ||
"@medusajs/product": patch | ||
"@medusajs/utils": patch | ||
--- | ||
|
||
fix(medusa-test-utils, utils, link-modules, pricing, product): upgrade mikro-orm version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@medusajs/medusa": patch | ||
--- | ||
|
||
fix(medusa): Update cart sales channel should not remove all line items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@medusajs/medusa": patch | ||
"medusa-payment-stripe": patch | ||
--- | ||
|
||
fix(medusa, medusa-payment-stripe): fix stripe error handling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@medusajs/link-modules": patch | ||
"@medusajs/core-flows": patch | ||
"@medusajs/medusa": patch | ||
"@medusajs/utils": patch | ||
--- | ||
|
||
feat: sales channel <> order link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
packages/link-modules/src/definitions/order-sales-channel.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import { ModuleJoinerConfig } from "@medusajs/types" | ||
|
||
import { LINKS } from "../links" | ||
|
||
export const OrderSalesChannel: ModuleJoinerConfig = { | ||
serviceName: LINKS.OrderSalesChannel, | ||
isLink: true, | ||
databaseConfig: { | ||
tableName: "order_sales_channel", | ||
idPrefix: "ordersc", | ||
}, | ||
alias: [ | ||
{ | ||
name: "order_sales_channel", | ||
}, | ||
{ | ||
name: "order_sales_channels", | ||
}, | ||
], | ||
primaryKeys: ["id", "order_id", "sales_channel_id"], | ||
relationships: [ | ||
{ | ||
serviceName: "orderService", | ||
isInternalService: true, | ||
primaryKey: "id", | ||
foreignKey: "order_id", | ||
alias: "order", | ||
}, | ||
{ | ||
serviceName: "salesChannelService", | ||
isInternalService: true, | ||
primaryKey: "id", | ||
foreignKey: "sales_channel_id", | ||
alias: "sales_channel", | ||
}, | ||
], | ||
extends: [ | ||
{ | ||
serviceName: "orderService", | ||
fieldAlias: { | ||
sales_channel: "sales_channel_link.sales_channel", | ||
}, | ||
relationship: { | ||
serviceName: LINKS.OrderSalesChannel, | ||
isInternalService: true, | ||
primaryKey: "order_id", | ||
foreignKey: "id", | ||
alias: "sales_channel_link", | ||
}, | ||
}, | ||
{ | ||
serviceName: "salesChannelService", | ||
fieldAlias: { | ||
orders: "order_link.order", | ||
}, | ||
relationship: { | ||
serviceName: LINKS.OrderSalesChannel, | ||
isInternalService: true, | ||
primaryKey: "sales_channel_id", | ||
foreignKey: "id", | ||
alias: "order_link", | ||
isList: true, | ||
}, | ||
}, | ||
], | ||
} |
Oops, something went wrong.