@lodashventure/medusa-parcel-shipping 0.4.9 → 0.4.10

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.
@@ -2023,12 +2023,6 @@ const routeModule = {
2023
2023
  };
2024
2024
  const menuItemModule = {
2025
2025
  menuItems: [
2026
- {
2027
- label: config$3.label,
2028
- icon: config$3.icon,
2029
- path: "/areas",
2030
- nested: void 0
2031
- },
2032
2026
  {
2033
2027
  label: config$2.label,
2034
2028
  icon: config$2.icon,
@@ -2046,6 +2040,12 @@ const menuItemModule = {
2046
2040
  icon: config.icon,
2047
2041
  path: "/rates",
2048
2042
  nested: void 0
2043
+ },
2044
+ {
2045
+ label: config$3.label,
2046
+ icon: config$3.icon,
2047
+ path: "/areas",
2048
+ nested: void 0
2049
2049
  }
2050
2050
  ]
2051
2051
  };
@@ -2022,12 +2022,6 @@ const routeModule = {
2022
2022
  };
2023
2023
  const menuItemModule = {
2024
2024
  menuItems: [
2025
- {
2026
- label: config$3.label,
2027
- icon: config$3.icon,
2028
- path: "/areas",
2029
- nested: void 0
2030
- },
2031
2025
  {
2032
2026
  label: config$2.label,
2033
2027
  icon: config$2.icon,
@@ -2045,6 +2039,12 @@ const menuItemModule = {
2045
2039
  icon: config.icon,
2046
2040
  path: "/rates",
2047
2041
  nested: void 0
2042
+ },
2043
+ {
2044
+ label: config$3.label,
2045
+ icon: config$3.icon,
2046
+ path: "/areas",
2047
+ nested: void 0
2048
2048
  }
2049
2049
  ]
2050
2050
  };
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Migration20251109000000 = void 0;
4
+ const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
5
+ /**
6
+ * Ensure the `price` column exists on parcel_shipping_rate.
7
+ * Some environments were provisioned before the column was added in the plugin,
8
+ * so we defensively create it here to unblock rate CRUD.
9
+ */
10
+ class Migration20251109000000 extends migrations_1.Migration {
11
+ async up() {
12
+ this.addSql(`
13
+ ALTER TABLE "parcel_shipping_rate"
14
+ ADD COLUMN IF NOT EXISTS "price" double precision;
15
+ `);
16
+ this.addSql(`
17
+ UPDATE "parcel_shipping_rate"
18
+ SET "price" = COALESCE("price", 0);
19
+ `);
20
+ this.addSql(`
21
+ ALTER TABLE "parcel_shipping_rate"
22
+ ALTER COLUMN "price" SET DEFAULT 0,
23
+ ALTER COLUMN "price" SET NOT NULL;
24
+ `);
25
+ }
26
+ async down() {
27
+ this.addSql(`
28
+ ALTER TABLE "parcel_shipping_rate"
29
+ DROP COLUMN IF EXISTS "price";
30
+ `);
31
+ }
32
+ }
33
+ exports.Migration20251109000000 = Migration20251109000000;
34
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTExMDkwMDAwMDAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9wYXJjZWwtc2hpcHBpbmcvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MTEwOTAwMDAwMC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBcUU7QUFFckU7Ozs7R0FJRztBQUNILE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFDM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDOzs7S0FHWCxDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsTUFBTSxDQUFDOzs7S0FHWCxDQUFDLENBQUM7UUFFSCxJQUFJLENBQUMsTUFBTSxDQUFDOzs7O0tBSVgsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUM7OztLQUdYLENBQUMsQ0FBQztJQUNMLENBQUM7Q0FDRjtBQXpCRCwwREF5QkMifQ==
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodashventure/medusa-parcel-shipping",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Parcel box selection and Thailand shipping quotes for Medusa.",
5
5
  "author": "LodashVenture",
6
6
  "license": "MIT",