@medusajs/notification 2.11.4-snapshot-20251118101717 → 2.11.4-snapshot-20251121130027

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.
@@ -0,0 +1,6 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ export declare class Migration20251121123942 extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=Migration20251121123942.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20251121123942.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251121123942.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"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Migration20251121123942 = void 0;
4
+ const migrations_1 = require("@mikro-orm/migrations");
5
+ class Migration20251121123942 extends migrations_1.Migration {
6
+ async up() {
7
+ this.addSql(`alter table if exists "notification" add column if not exists "from" text null;`);
8
+ }
9
+ async down() {
10
+ this.addSql(`alter table if exists "notification" drop column if exists "from";`);
11
+ }
12
+ }
13
+ exports.Migration20251121123942 = Migration20251121123942;
14
+ //# sourceMappingURL=Migration20251121123942.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20251121123942.js","sourceRoot":"","sources":["../../src/migrations/Migration20251121123942.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,iFAAiF,CAAC,CAAC;IACjG,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC;IACpF,CAAC;CAEF;AAVD,0DAUC"}
@@ -7,6 +7,7 @@ export declare const NotificationProvider: import("@medusajs/framework/utils").D
7
7
  notifications: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
8
8
  id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
9
9
  to: import("@medusajs/framework/utils").TextProperty;
10
+ from: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
10
11
  channel: import("@medusajs/framework/utils").TextProperty;
11
12
  template: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
12
13
  data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
@@ -1 +1 @@
1
- {"version":3,"file":"notification-provider.d.ts","sourceRoot":"","sources":["../../src/models/notification-provider.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;2BAO/B,CAAA"}
1
+ {"version":3,"file":"notification-provider.d.ts","sourceRoot":"","sources":["../../src/models/notification-provider.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;2BAO/B,CAAA"}
@@ -2,6 +2,7 @@ import { NotificationStatus } from "@medusajs/framework/utils";
2
2
  export declare const Notification: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
3
3
  id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
4
4
  to: import("@medusajs/framework/utils").TextProperty;
5
+ from: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
5
6
  channel: import("@medusajs/framework/utils").TextProperty;
6
7
  template: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
7
8
  data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
@@ -1 +1 @@
1
- {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/models/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAIrE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4BvB,CAAA"}
1
+ {"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/models/notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAIrE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA8BvB,CAAA"}
@@ -8,6 +8,8 @@ exports.Notification = utils_1.model.define("notification", {
8
8
  id: utils_1.model.id({ prefix: "noti" }).primaryKey(),
9
9
  // This can be an email, phone number, or username, depending on the channel.
10
10
  to: utils_1.model.text().searchable(),
11
+ // This can be an email, phone number, or username, depending on the channel.
12
+ from: utils_1.model.text().searchable().nullable(),
11
13
  channel: utils_1.model.text(),
12
14
  // The template name in the provider's system.
13
15
  template: utils_1.model.text().nullable(),
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/models/notification.ts"],"names":[],"mappings":";;;AAAA,qDAAqE;AACrE,mEAA8D;AAE9D,wHAAwH;AAC3G,QAAA,YAAY,GAAG,aAAK,CAAC,MAAM,CAAC,cAAc,EAAE;IACvD,EAAE,EAAE,aAAK,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,UAAU,EAAE;IAC7C,6EAA6E;IAC7E,EAAE,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,UAAU,EAAE;IAC7B,OAAO,EAAE,aAAK,CAAC,IAAI,EAAE;IACrB,8CAA8C;IAC9C,QAAQ,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC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.ts","../src/migrations/Migration20240509083918_InitialSetupMigration.ts","../src/migrations/Migration20240628075401.ts","../src/migrations/Migration20240830094712.ts","../src/migrations/Migration20250120110514.ts","../src/migrations/Migration20251028172715.ts","../src/models/index.ts","../src/models/notification-provider.ts","../src/models/notification.ts","../src/providers/medusa-cloud-email.ts","../src/services/index.ts","../src/services/notification-module-service.ts","../src/services/notification-provider.ts","../src/types/index.ts"],"version":"5.9.3"}
1
+ {"root":["../src/index.ts","../src/loaders/providers.ts","../src/migrations/Migration20240509083918_InitialSetupMigration.ts","../src/migrations/Migration20240628075401.ts","../src/migrations/Migration20240830094712.ts","../src/migrations/Migration20250120110514.ts","../src/migrations/Migration20251028172715.ts","../src/migrations/Migration20251121123942.ts","../src/models/index.ts","../src/models/notification-provider.ts","../src/models/notification.ts","../src/providers/medusa-cloud-email.ts","../src/services/index.ts","../src/services/notification-module-service.ts","../src/services/notification-provider.ts","../src/types/index.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/notification",
3
- "version": "2.11.4-snapshot-20251118101717",
3
+ "version": "2.11.4-snapshot-20251121130027",
4
4
  "description": "Medusa Notification 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": "2.11.4-snapshot-20251118101717",
40
- "@medusajs/test-utils": "2.11.4-snapshot-20251118101717"
39
+ "@medusajs/framework": "2.11.4-snapshot-20251121130027",
40
+ "@medusajs/test-utils": "2.11.4-snapshot-20251121130027"
41
41
  },
42
42
  "peerDependencies": {
43
- "@medusajs/framework": "2.11.4-snapshot-20251118101717"
43
+ "@medusajs/framework": "2.11.4-snapshot-20251121130027"
44
44
  }
45
45
  }