@medusajs/store 3.0.0-snapshot-20251215162333 → 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.
@@ -1,4 +1,4 @@
1
- import { Migration } from '@mikro-orm/migrations';
1
+ import { Migration } from "@medusajs/framework/mikro-orm/migrations";
2
2
  export declare class Migration20251202184737 extends Migration {
3
3
  up(): Promise<void>;
4
4
  down(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20251202184737.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251202184737.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAQnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAIrC"}
1
+ {"version":3,"file":"Migration20251202184737.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251202184737.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAEpE,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Migration20251202184737 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
4
+ const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
5
5
  class Migration20251202184737 extends migrations_1.Migration {
6
6
  async up() {
7
7
  this.addSql(`create table if not exists "store_locale" ("id" text not null, "locale_code" text not null, "is_default" boolean not null default false, "store_id" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "store_locale_pkey" primary key ("id"));`);
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20251202184737.js","sourceRoot":"","sources":["../../src/migrations/Migration20251202184737.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,qVAAqV,CAAC,CAAC;QACnW,IAAI,CAAC,MAAM,CAAC,iHAAiH,CAAC,CAAC;QAC/H,IAAI,CAAC,MAAM,CAAC,qHAAqH,CAAC,CAAC;QAEnI,IAAI,CAAC,MAAM,CAAC,6KAA6K,CAAC,CAAC;IAC7L,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;IAC9D,CAAC;CAEF;AAdD,0DAcC"}
1
+ {"version":3,"file":"Migration20251202184737.js","sourceRoot":"","sources":["../../src/migrations/Migration20251202184737.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,qVAAqV,CACtV,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iHAAiH,CAClH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qHAAqH,CACtH,CAAA;QAED,IAAI,CAAC,MAAM,CACT,6KAA6K,CAC9K,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;IAC7D,CAAC;CACF;AApBD,0DAoBC"}
@@ -1,4 +1,4 @@
1
- import { Migration } from '@mikro-orm/migrations';
1
+ import { Migration } from "@medusajs/framework/mikro-orm/migrations";
2
2
  export declare class Migration20251212161429 extends Migration {
3
3
  up(): Promise<void>;
4
4
  down(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20251212161429.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251212161429.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAInB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAIrC"}
1
+ {"version":3,"file":"Migration20251212161429.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251212161429.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAEpE,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKrC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Migration20251212161429 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
4
+ const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
5
5
  class Migration20251212161429 extends migrations_1.Migration {
6
6
  async up() {
7
7
  this.addSql(`alter table if exists "store_locale" drop column if exists "is_default";`);
@@ -1 +1 @@
1
- {"version":3,"file":"Migration20251212161429.js","sourceRoot":"","sources":["../../src/migrations/Migration20251212161429.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,0EAA0E,CAAC,CAAC;IAC1F,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,4GAA4G,CAAC,CAAC;IAC5H,CAAC;CAEF;AAVD,0DAUC"}
1
+ {"version":3,"file":"Migration20251212161429.js","sourceRoot":"","sources":["../../src/migrations/Migration20251212161429.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,0EAA0E,CAC3E,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CACT,4GAA4G,CAC7G,CAAA;IACH,CAAC;CACF;AAZD,0DAYC"}
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAQf,CAAA;AAEF,eAAe,WAAW,CAAA"}
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"}
@@ -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"}
@@ -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;;;;;;;;;;;;;;;;;;YAiBP,CAAA;AAEJ,eAAe,KAAK,CAAA"}
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"}
@@ -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
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/models/store.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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,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,kBAAa,EAAE;QACvD,QAAQ,EAAE,OAAO;KAClB,CAAC;IACF;;;;OAIG;IACH,iBAAiB,EAAE,aAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,gBAAW,EAAE;QAClD,QAAQ,EAAE,OAAO;KAClB,CAAC;CACH,CAAC;KACD,QAAQ,CAAC;IACR,MAAM,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-20251215162333",
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-20251215162333",
40
- "@medusajs/test-utils": "3.0.0-snapshot-20251215162333"
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-20251215162333"
43
+ "@medusajs/framework": "3.0.0-snapshot-20251216122339"
44
44
  }
45
45
  }