@medusajs/store 3.0.0-snapshot-20251216103925 → 3.0.0-snapshot-20251216122339
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/dist/models/locale.d.ts +9 -0
- package/dist/models/locale.d.ts.map +1 -1
- package/dist/models/locale.js +9 -0
- package/dist/models/locale.js.map +1 -1
- package/dist/models/store.d.ts +5 -0
- package/dist/models/store.d.ts.map +1 -1
- package/dist/models/store.js +5 -0
- package/dist/models/store.js.map +1 -1
- package/package.json +4 -4
package/dist/models/locale.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 2.12.3
|
|
3
|
+
*/
|
|
1
4
|
declare const StoreLocale: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
2
5
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
6
|
+
/**
|
|
7
|
+
* The BCP 47 language tag code of the locale.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* "en-US"
|
|
11
|
+
*/
|
|
3
12
|
locale_code: import("@medusajs/framework/utils").TextProperty;
|
|
4
13
|
store: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
5
14
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/models/locale.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../src/models/locale.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,QAAA,MAAM,WAAW;;IAEf;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAOH,CAAA;AAEF,eAAe,WAAW,CAAA"}
|
package/dist/models/locale.js
CHANGED
|
@@ -5,8 +5,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const utils_1 = require("@medusajs/framework/utils");
|
|
7
7
|
const store_1 = __importDefault(require("./store"));
|
|
8
|
+
/**
|
|
9
|
+
* @since 2.12.3
|
|
10
|
+
*/
|
|
8
11
|
const StoreLocale = utils_1.model.define("StoreLocale", {
|
|
9
12
|
id: utils_1.model.id({ prefix: "stloc" }).primaryKey(),
|
|
13
|
+
/**
|
|
14
|
+
* The BCP 47 language tag code of the locale.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* "en-US"
|
|
18
|
+
*/
|
|
10
19
|
locale_code: utils_1.model.text().searchable(),
|
|
11
20
|
store: utils_1.model
|
|
12
21
|
.belongsTo(() => store_1.default, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/models/locale.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,oDAA2B;AAE3B,MAAM,WAAW,GAAG,aAAK,CAAC,MAAM,CAAC,aAAa,EAAE;IAC9C,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE;IAC9C,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IACtC,KAAK,EAAE,aAAK;SACT,SAAS,CAAC,GAAG,EAAE,CAAC,eAAK,EAAE;QACtB,QAAQ,EAAE,mBAAmB;KAC9B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF,kBAAe,WAAW,CAAA"}
|
|
1
|
+
{"version":3,"file":"locale.js","sourceRoot":"","sources":["../../src/models/locale.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,oDAA2B;AAE3B;;GAEG;AACH,MAAM,WAAW,GAAG,aAAK,CAAC,MAAM,CAAC,aAAa,EAAE;IAC9C,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE;IAC9C;;;;;OAKG;IACH,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IACtC,KAAK,EAAE,aAAK;SACT,SAAS,CAAC,GAAG,EAAE,CAAC,eAAK,EAAE;QACtB,QAAQ,EAAE,mBAAmB;KAC9B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAEF,kBAAe,WAAW,CAAA"}
|
package/dist/models/store.d.ts
CHANGED
|
@@ -11,6 +11,11 @@ declare const Store: import("@medusajs/framework/utils").DmlEntity<import("@medu
|
|
|
11
11
|
is_default: import("@medusajs/framework/utils").BooleanProperty;
|
|
12
12
|
store: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Store">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "Store">, undefined>, true>;
|
|
13
13
|
}>, "StoreCurrency">>;
|
|
14
|
+
/**
|
|
15
|
+
* The supported locales of the store.
|
|
16
|
+
*
|
|
17
|
+
* @since 2.12.3
|
|
18
|
+
*/
|
|
14
19
|
supported_locales: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
15
20
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
16
21
|
locale_code: import("@medusajs/framework/utils").TextProperty;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/models/store.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/models/store.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,KAAK;;;;;;;;;;;;;IAWP;;;;OAIG;;;;;;YAOH,CAAA;AAEJ,eAAe,KAAK,CAAA"}
|
package/dist/models/store.js
CHANGED
|
@@ -17,6 +17,11 @@ const Store = utils_1.model
|
|
|
17
17
|
supported_currencies: utils_1.model.hasMany(() => currency_1.default, {
|
|
18
18
|
mappedBy: "store",
|
|
19
19
|
}),
|
|
20
|
+
/**
|
|
21
|
+
* The supported locales of the store.
|
|
22
|
+
*
|
|
23
|
+
* @since 2.12.3
|
|
24
|
+
*/
|
|
20
25
|
supported_locales: utils_1.model.hasMany(() => locale_1.default, {
|
|
21
26
|
mappedBy: "store",
|
|
22
27
|
}),
|
package/dist/models/store.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/models/store.ts"],"names":[],"mappings":";;;;;AAAA,qDAAiD;AACjD,0DAAsC;AACtC,sDAAkC;AAElC,MAAM,KAAK,GAAG,aAAK;KAChB,MAAM,CAAC,OAAO,EAAE;IACf,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE;IAC9C,IAAI,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,UAAU,EAAE;IACvD,wBAAwB,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACjD,iBAAiB,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC1C,mBAAmB,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACjC,oBAAoB,EAAE,a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,EAAE,CAAC,sBAAsB,EAAE,mBAAmB,CAAC;CACtD,CAAC,CAAA;AAEJ,kBAAe,KAAK,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/store",
|
|
3
|
-
"version": "3.0.0-snapshot-
|
|
3
|
+
"version": "3.0.0-snapshot-20251216122339",
|
|
4
4
|
"description": "Medusa Store module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@medusajs/framework": "3.0.0-snapshot-
|
|
40
|
-
"@medusajs/test-utils": "3.0.0-snapshot-
|
|
39
|
+
"@medusajs/framework": "3.0.0-snapshot-20251216122339",
|
|
40
|
+
"@medusajs/test-utils": "3.0.0-snapshot-20251216122339"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@medusajs/framework": "3.0.0-snapshot-
|
|
43
|
+
"@medusajs/framework": "3.0.0-snapshot-20251216122339"
|
|
44
44
|
}
|
|
45
45
|
}
|