@medusajs/link-modules 2.22.6 → 2.22.7-snapshot-20261112111749
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/dist/definitions/readonly/product-translation.d.ts.map +1 -1
- package/dist/definitions/readonly/product-translation.js +0 -2
- package/dist/definitions/readonly/product-translation.js.map +1 -1
- package/dist/definitions/readonly/store-locale.d.ts.map +1 -1
- package/dist/definitions/readonly/store-locale.js +0 -2
- package/dist/definitions/readonly/store-locale.js.map +1 -1
- package/package.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -30,7 +30,7 @@ export const ProductVariantInventoryItem: ModuleJoinerConfig = {
|
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
- Hand-written: explicit `tableName` (e.g. `product_variant_price_set`), `idPrefix`, `alias`, `fieldAlias` shortcuts (e.g. `variant.inventory` -> `inventory_items.inventory`), `deleteCascade`, `isList`. `serviceName` comes from the `LINKS` map in `packages/core/utils/src/link/links.ts`.
|
|
33
|
-
- `defineLink(a, b, options)` (`packages/core/utils/src/modules-sdk/define-link.ts`) generates the same `ModuleJoinerConfig` from data model references: `serviceName` = `composeLinkName(...)`, table name from `composeTableName(moduleA, keyA, moduleB, keyB)`, entry point `<aliasA>_<aliasB>`, validation of primary keys, plus `database.extraColumns`, `filterable` (Index Module) and `readOnly`. Both feed into the same `initialize()`.
|
|
33
|
+
- `defineLink(a, b, options)` (`packages/core/utils/src/modules-sdk/define-link.ts`) generates the same `ModuleJoinerConfig` from data model references: `serviceName` = `composeLinkName(...)`, table name from `composeTableName(moduleA, keyA, moduleB, keyB)`, entry point `<aliasA>_<aliasB>`, validation of primary keys, plus `database.extraColumns`, `filterable` (deprecated, Index Module only) and `readOnly`. Both feed into the same `initialize()`.
|
|
34
34
|
- Read-only links (`src/definitions/readonly/`, `isReadOnlyLink: true`) have no table: they only `extends` an entity with a relation resolved through an existing foreign key column (e.g. `OrderLineItem.product_id` -> `Product`, `Cart.region_id` -> `Region`, `Store.currency_code` -> `Currency`).
|
|
35
35
|
|
|
36
36
|
Pivot tables defined here: `cart_payment_collection`, `cart_promotion`, `customer_account_holder`, `location_fulfillment_provider`, `location_fulfillment_set`, `invite_rbac_role`, `user_rbac_role`, `order_cart`, `order_fulfillment`, `order_payment_collection`, `order_promotion`, `return_fulfillment`, `product_sales_channel`, `product_shipping_profile`, `product_variant_inventory_item`, `product_variant_price_set`, `publishable_api_key_sales_channel`, `region_payment_provider`, `sales_channel_stock_location`, `shipping_option_price_set`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-translation.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/product-translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"product-translation.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/product-translation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,kBAAkB,EAAE,kBA2IV,CAAA"}
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProductTranslation = void 0;
|
|
4
4
|
const utils_1 = require("@medusajs/framework/utils");
|
|
5
5
|
exports.ProductTranslation = {
|
|
6
|
-
[utils_1.MEDUSA_SKIP_FILE]: !(utils_1.FeatureFlag.isFeatureEnabled("translation") ||
|
|
7
|
-
process.env.MEDUSA_FF_TRANSLATION === "true"),
|
|
8
6
|
isLink: true,
|
|
9
7
|
isReadOnlyLink: true,
|
|
10
8
|
extends: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-translation.js","sourceRoot":"","sources":["../../../src/definitions/readonly/product-translation.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"product-translation.js","sourceRoot":"","sources":["../../../src/definitions/readonly/product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gBACrB,UAAU,EAAE,cAAc;gBAC1B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,cAAc;gBACrB,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE;oBACJ,YAAY,EAAE,cAAc;iBAC7B;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,aAAa;YACrB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,OAAO;gBAC5B,MAAM,EAAE,SAAS;gBACjB,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,cAAc;gBAC1B,KAAK,EAAE,SAAS;gBAChB,IAAI,EAAE;oBACJ,YAAY,EAAE,UAAU;iBACzB;aACF;SACF;KACF;CACoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-locale.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/store-locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"store-locale.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/store-locale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG9D,eAAO,MAAM,YAAY,EAAE,kBAmBJ,CAAA"}
|
|
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.StoreLocales = void 0;
|
|
4
4
|
const utils_1 = require("@medusajs/framework/utils");
|
|
5
5
|
exports.StoreLocales = {
|
|
6
|
-
[utils_1.MEDUSA_SKIP_FILE]: !(utils_1.FeatureFlag.isFeatureEnabled("translation") ||
|
|
7
|
-
process.env.MEDUSA_FF_TRANSLATION === "true"),
|
|
8
6
|
isLink: true,
|
|
9
7
|
isReadOnlyLink: true,
|
|
10
8
|
extends: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-locale.js","sourceRoot":"","sources":["../../../src/definitions/readonly/store-locale.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"store-locale.js","sourceRoot":"","sources":["../../../src/definitions/readonly/store-locale.ts"],"names":[],"mappings":";;;AACA,qDAAmD;AAEtC,QAAA,YAAY,GAAuB;IAC9C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,aAAa;YACrB,YAAY,EAAE;gBACZ,WAAW,EAAE,eAAO,CAAC,WAAW;gBAChC,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE,MAAM;gBAClB,UAAU,EAAE,aAAa;gBACzB,KAAK,EAAE,QAAQ;gBACf,IAAI,EAAE;oBACJ,YAAY,EAAE,SAAS;iBACxB;aACF;SACF;KACF;CACoB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/link-modules",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.7-snapshot-20261112111749",
|
|
4
4
|
"description": "Medusa Default Link Modules Package and Definitions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"test:integration": "../../../node_modules/.bin/jest --passWithNoTests --forceExit --testPathPatterns=\"integration-tests/__tests__/.*\\.ts\""
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@medusajs/framework": "2.22.
|
|
44
|
-
"@medusajs/test-utils": "2.22.
|
|
43
|
+
"@medusajs/framework": "2.22.7-snapshot-20261112111749",
|
|
44
|
+
"@medusajs/test-utils": "2.22.7-snapshot-20261112111749",
|
|
45
45
|
"cross-env": "^10.1.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@medusajs/framework": "2.22.
|
|
48
|
+
"@medusajs/framework": "2.22.7-snapshot-20261112111749"
|
|
49
49
|
}
|
|
50
50
|
}
|