@medusajs/notification 2.11.2-snapshot-20251029124358 → 2.11.2-snapshot-20251029143232
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/migrations/Migration20251028172715.d.ts +6 -0
- package/dist/migrations/Migration20251028172715.d.ts.map +1 -0
- package/dist/migrations/Migration20251028172715.js +16 -0
- package/dist/migrations/Migration20251028172715.js.map +1 -0
- package/dist/models/notification-provider.d.ts +1 -1
- package/dist/models/notification.d.ts +1 -1
- package/dist/models/notification.js +1 -1
- package/dist/models/notification.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20251028172715.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251028172715.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAErC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAKnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAKrC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Migration20251028172715 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20251028172715 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`alter table if exists "notification" alter column "template" type text using ("template"::text);`);
|
|
8
|
+
this.addSql(`alter table if exists "notification" alter column "template" drop not null;`);
|
|
9
|
+
}
|
|
10
|
+
async down() {
|
|
11
|
+
this.addSql(`alter table if exists "notification" alter column "template" type text using ("template"::text);`);
|
|
12
|
+
this.addSql(`alter table if exists "notification" alter column "template" set not null;`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Migration20251028172715 = Migration20251028172715;
|
|
16
|
+
//# sourceMappingURL=Migration20251028172715.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20251028172715.js","sourceRoot":"","sources":["../../src/migrations/Migration20251028172715.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,kGAAkG,CAAC,CAAC;QAChH,IAAI,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC;IAC7F,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,kGAAkG,CAAC,CAAC;QAChH,IAAI,CAAC,MAAM,CAAC,4EAA4E,CAAC,CAAC;IAC5F,CAAC;CAEF;AAZD,0DAYC"}
|
|
@@ -8,7 +8,7 @@ export declare const NotificationProvider: import("@medusajs/framework/utils").D
|
|
|
8
8
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
9
9
|
to: import("@medusajs/framework/utils").TextProperty;
|
|
10
10
|
channel: import("@medusajs/framework/utils").TextProperty;
|
|
11
|
-
template: import("@medusajs/framework/utils").TextProperty
|
|
11
|
+
template: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
12
12
|
data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
13
13
|
trigger_type: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
14
14
|
resource_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
@@ -3,7 +3,7 @@ export declare const Notification: import("@medusajs/framework/utils").DmlEntity
|
|
|
3
3
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
4
4
|
to: import("@medusajs/framework/utils").TextProperty;
|
|
5
5
|
channel: import("@medusajs/framework/utils").TextProperty;
|
|
6
|
-
template: import("@medusajs/framework/utils").TextProperty
|
|
6
|
+
template: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
7
7
|
data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
8
8
|
trigger_type: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
9
9
|
resource_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
@@ -10,7 +10,7 @@ exports.Notification = utils_1.model.define("notification", {
|
|
|
10
10
|
to: utils_1.model.text().searchable(),
|
|
11
11
|
channel: utils_1.model.text(),
|
|
12
12
|
// The template name in the provider's system.
|
|
13
|
-
template: utils_1.model.text(),
|
|
13
|
+
template: utils_1.model.text().nullable(),
|
|
14
14
|
// The data that gets passed over to the provider for rendering the notification.
|
|
15
15
|
data: utils_1.model.json().nullable(),
|
|
16
16
|
// This can be the event name, the workflow, or anything else that can help to identify what triggered the notification.
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["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AAS,CAAC,GAAG,EAAE,CAAC,4CAAoB,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;SACpE,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
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/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.6.2"}
|
|
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/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.6.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/notification",
|
|
3
|
-
"version": "2.11.2-snapshot-
|
|
3
|
+
"version": "2.11.2-snapshot-20251029143232",
|
|
4
4
|
"description": "Medusa Notification module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,8 +36,8 @@
|
|
|
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.2-snapshot-
|
|
40
|
-
"@medusajs/test-utils": "2.11.2-snapshot-
|
|
39
|
+
"@medusajs/framework": "2.11.2-snapshot-20251029143232",
|
|
40
|
+
"@medusajs/test-utils": "2.11.2-snapshot-20251029143232",
|
|
41
41
|
"@swc/core": "^1.7.28",
|
|
42
42
|
"@swc/jest": "^0.2.36",
|
|
43
43
|
"jest": "^29.7.0",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"typescript": "^5.6.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@medusajs/framework": "2.11.2-snapshot-
|
|
49
|
+
"@medusajs/framework": "2.11.2-snapshot-20251029143232"
|
|
50
50
|
}
|
|
51
51
|
}
|