@medusajs/notification 2.12.0-preview-20251103150145 → 2.12.0
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/loaders/providers.d.ts.map +1 -1
- package/dist/migrations/Migration20251028172715.d.ts +1 -1
- package/dist/migrations/Migration20251028172715.d.ts.map +1 -1
- package/dist/migrations/Migration20251028172715.js +1 -1
- package/dist/migrations/Migration20251028172715.js.map +1 -1
- package/dist/migrations/Migration20251121123942.d.ts +6 -0
- package/dist/migrations/Migration20251121123942.d.ts.map +1 -0
- package/dist/migrations/Migration20251121123942.js +14 -0
- package/dist/migrations/Migration20251121123942.js.map +1 -0
- package/dist/migrations/Migration20251121150408.d.ts +6 -0
- package/dist/migrations/Migration20251121150408.d.ts.map +1 -0
- package/dist/migrations/Migration20251121150408.js +14 -0
- package/dist/migrations/Migration20251121150408.js.map +1 -0
- package/dist/models/notification-provider.d.ts +3 -1
- package/dist/models/notification-provider.d.ts.map +1 -1
- package/dist/models/notification.d.ts +4 -2
- package/dist/models/notification.d.ts.map +1 -1
- package/dist/models/notification.js +4 -0
- package/dist/models/notification.js.map +1 -1
- package/dist/providers/medusa-cloud-email.d.ts.map +1 -1
- package/dist/providers/medusa-cloud-email.js +1 -0
- package/dist/providers/medusa-cloud-email.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/loaders/providers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAQ1E,OAAO,EAEL,yBAAyB,EAE1B,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/loaders/providers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAQ1E,OAAO,EAEL,yBAAyB,EAE1B,MAAM,QAAQ,CAAA;yBAkCO,yBAGnB,aAAa,CACd,CACI,eAAe,CAAC,8BAA8B,GAC9C,eAAe,CAAC,6CAA6C,CAChE,GACC,yBAAyB,CAC5B,KAAG,OAAO,CAAC,IAAI,CAAC;AATjB,wBAgDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20251028172715.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251028172715.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Migration20251028172715.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251028172715.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAEpE,qBAAa,uBAAwB,SAAQ,SAAS;IACrC,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IASnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQrC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20251028172715 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20251028172715 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`alter table if exists "notification" alter column "template" type text using ("template"::text);`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Migration20251028172715.js","sourceRoot":"","sources":["../../src/migrations/Migration20251028172715.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"Migration20251028172715.js","sourceRoot":"","sources":["../../src/migrations/Migration20251028172715.ts"],"names":[],"mappings":";;;AAAA,yEAAoE;AAEpE,MAAa,uBAAwB,SAAQ,sBAAS;IAC3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,kGAAkG,CACnG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,6EAA6E,CAC9E,CAAA;IACH,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CACT,kGAAkG,CACnG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAA;IACH,CAAC;CACF;AAlBD,0DAkBC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20251121150408.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20251121150408.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.Migration20251121150408 = void 0;
|
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
|
5
|
+
class Migration20251121150408 extends migrations_1.Migration {
|
|
6
|
+
async up() {
|
|
7
|
+
this.addSql(`alter table if exists "notification" add column if not exists "provider_data" jsonb null;`);
|
|
8
|
+
}
|
|
9
|
+
async down() {
|
|
10
|
+
this.addSql(`alter table if exists "notification" drop column if exists "provider_data";`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.Migration20251121150408 = Migration20251121150408;
|
|
14
|
+
//# sourceMappingURL=Migration20251121150408.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Migration20251121150408.js","sourceRoot":"","sources":["../../src/migrations/Migration20251121150408.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAE3C,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,2FAA2F,CAAC,CAAC;IAC3G,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,6EAA6E,CAAC,CAAC;IAC7F,CAAC;CAEF;AAVD,0DAUC"}
|
|
@@ -7,9 +7,11 @@ 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>;
|
|
14
|
+
provider_data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
13
15
|
trigger_type: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
14
16
|
resource_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
15
17
|
resource_type: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
@@ -18,7 +20,7 @@ export declare const NotificationProvider: import("@medusajs/framework/utils").D
|
|
|
18
20
|
idempotency_key: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
19
21
|
external_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
20
22
|
status: import("@medusajs/framework/utils").EnumProperty<typeof import("@medusajs/framework/utils").NotificationStatus>;
|
|
21
|
-
provider: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
23
|
+
provider: import("@medusajs/framework/utils").RelationNullableModifier<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "notificationProvider">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "notificationProvider">, undefined>, true>;
|
|
22
24
|
}>, "notification">>;
|
|
23
25
|
}>, "notificationProvider">;
|
|
24
26
|
//# sourceMappingURL=notification-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-provider.d.ts","sourceRoot":"","sources":["../../src/models/notification-provider.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB
|
|
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,9 +2,11 @@ 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>;
|
|
9
|
+
provider_data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
8
10
|
trigger_type: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
9
11
|
resource_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
10
12
|
resource_type: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
@@ -19,14 +21,14 @@ export declare const Notification: import("@medusajs/framework/utils").DmlEntity
|
|
|
19
21
|
name: import("@medusajs/framework/utils").TextProperty;
|
|
20
22
|
is_enabled: import("@medusajs/framework/utils").BooleanProperty;
|
|
21
23
|
channels: import("@medusajs/framework/utils").ArrayProperty;
|
|
22
|
-
notifications: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
24
|
+
notifications: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "notification">>;
|
|
23
25
|
}>, "notificationProvider">, import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
24
26
|
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
25
27
|
handle: import("@medusajs/framework/utils").TextProperty;
|
|
26
28
|
name: import("@medusajs/framework/utils").TextProperty;
|
|
27
29
|
is_enabled: import("@medusajs/framework/utils").BooleanProperty;
|
|
28
30
|
channels: import("@medusajs/framework/utils").ArrayProperty;
|
|
29
|
-
notifications: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
31
|
+
notifications: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "notification">>;
|
|
30
32
|
}>, "notificationProvider">, undefined>, true>;
|
|
31
33
|
}>, "notification">;
|
|
32
34
|
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgCvB,CAAA"}
|
|
@@ -8,11 +8,15 @@ 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(),
|
|
14
16
|
// The data that gets passed over to the provider for rendering the notification.
|
|
15
17
|
data: utils_1.model.json().nullable(),
|
|
18
|
+
// Additional data specific to the channel or provider. For example, cc and bcc for emails.
|
|
19
|
+
provider_data: utils_1.model.json().nullable(),
|
|
16
20
|
// This can be the event name, the workflow, or anything else that can help to identify what triggered the notification.
|
|
17
21
|
trigger_type: utils_1.model.text().nullable(),
|
|
18
22
|
// The ID of the resource this notification is for, if applicable. Useful for displaying relevant information in the UI
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../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,IAAI,EAAE,CAAC,QAAQ,EAAE;IACjD,eAAe,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjD,mEAAmE;IACnE,WAAW,EAAE,aAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpC,iCAAiC;IACjC,MAAM,EAAE,aAAK,CAAC,IAAI,CAAC,0BAAkB,CAAC,CAAC,OAAO,CAAC,0BAAkB,CAAC,OAAO,CAAC;IAE1E,QAAQ,EAAE,aAAK;SACZ,SAAS,CAAC,GAAG,EAAE,CAAC,4CAAoB,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC;SACpE,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medusa-cloud-email.d.ts","sourceRoot":"","sources":["../../src/providers/medusa-cloud-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,qBAAa,oCAAqC,SAAQ,mCAAmC;IAC3F,MAAM,CAAC,UAAU,SAAoC;IACrD,SAAS,CAAC,QAAQ,EAAE,uBAAuB,CAAA;IAC3C,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;gBAEb,EAAE,IAAA,EAAE,OAAO,EAAE,uBAAuB;IAM1C,IAAI,CACR,YAAY,EAAE,iBAAiB,CAAC,2BAA2B,GAC1D,OAAO,CAAC,iBAAiB,CAAC,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"medusa-cloud-email.d.ts","sourceRoot":"","sources":["../../src/providers/medusa-cloud-email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,mCAAmC,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAEhD,qBAAa,oCAAqC,SAAQ,mCAAmC;IAC3F,MAAM,CAAC,UAAU,SAAoC;IACrD,SAAS,CAAC,QAAQ,EAAE,uBAAuB,CAAA;IAC3C,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;gBAEb,EAAE,IAAA,EAAE,OAAO,EAAE,uBAAuB;IAM1C,IAAI,CACR,YAAY,EAAE,iBAAiB,CAAC,2BAA2B,GAC1D,OAAO,CAAC,iBAAiB,CAAC,kCAAkC,CAAC;CAyCjE"}
|
|
@@ -28,6 +28,7 @@ class MedusaCloudEmailNotificationProvider extends utils_1.AbstractNotificationP
|
|
|
28
28
|
attachments: notification.attachments,
|
|
29
29
|
template: notification.template,
|
|
30
30
|
data: notification.data,
|
|
31
|
+
provider_data: notification.provider_data,
|
|
31
32
|
content: notification.content,
|
|
32
33
|
}),
|
|
33
34
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"medusa-cloud-email.js","sourceRoot":"","sources":["../../src/providers/medusa-cloud-email.ts"],"names":[],"mappings":";;;AACA,qDAA+E;AAG/E,MAAa,oCAAqC,SAAQ,2CAAmC;IAK3F,YAAY,EAAE,EAAE,OAAgC;QAC9C,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAA;IACzB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,YAA2D;QAE3D,MAAM,OAAO,GAAG;YACd,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,SAAS,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;SAChD,CAAA;QAED,IAAI,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,CAAC;YACjC,OAAO,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAA;QACnE,CAAC;QAED,IAAI,IAAI,CAAC,QAA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,OAAO,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,CAAA;QAChC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QAC3D,CAAC;IACH,CAAC;;AArDH,oFAsDC;AArDQ,+CAAU,GAAG,iCAAiC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/index.ts","../src/loaders/providers.ts","../src/migrations/
|
|
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/migrations/migration20251121150408.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.12.0
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Medusa Notification module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,28 +24,22 @@
|
|
|
24
24
|
"author": "Medusa",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"watch": "tsc --build --watch",
|
|
28
|
-
"watch:test": "tsc --build tsconfig.spec.json --watch",
|
|
29
|
-
"resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
|
|
30
|
-
"build": "rimraf dist && tsc --build && npm run resolve:aliases",
|
|
31
|
-
"test": "jest --bail --forceExit --passWithNoTests --
|
|
32
|
-
"test:integration": "jest --forceExit --
|
|
27
|
+
"watch": "yarn run -T tsc --build --watch",
|
|
28
|
+
"watch:test": "yarn run -T tsc --build tsconfig.spec.json --watch",
|
|
29
|
+
"resolve:aliases": "yarn run -T tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && yarn run -T tsc-alias -p tsconfig.resolved.json && yarn run -T rimraf tsconfig.resolved.json",
|
|
30
|
+
"build": "yarn run -T rimraf dist && yarn run -T tsc --build && npm run resolve:aliases",
|
|
31
|
+
"test": "../../../node_modules/.bin/jest --bail --forceExit --passWithNoTests --testPathPattern=src",
|
|
32
|
+
"test:integration": "../../../node_modules/.bin/jest --passWithNoTests --forceExit --testPathPattern=\"integration-tests/__tests__/.*\\.spec\\.ts\"",
|
|
33
33
|
"migration:initial": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm migration:create --initial -n InitialSetupMigration",
|
|
34
34
|
"migration:create": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm migration:create",
|
|
35
35
|
"migration:up": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm migration:up",
|
|
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.12.0
|
|
40
|
-
"@medusajs/test-utils": "2.12.0
|
|
41
|
-
"@swc/core": "^1.7.28",
|
|
42
|
-
"@swc/jest": "^0.2.36",
|
|
43
|
-
"jest": "^29.7.0",
|
|
44
|
-
"rimraf": "^5.0.1",
|
|
45
|
-
"tsc-alias": "^1.8.7",
|
|
46
|
-
"typescript": "^5.6.2"
|
|
39
|
+
"@medusajs/framework": "2.12.0",
|
|
40
|
+
"@medusajs/test-utils": "2.12.0"
|
|
47
41
|
},
|
|
48
42
|
"peerDependencies": {
|
|
49
|
-
"@medusajs/framework": "2.12.0
|
|
43
|
+
"@medusajs/framework": "2.12.0"
|
|
50
44
|
}
|
|
51
45
|
}
|