@medusajs/notification 2.22.1 → 2.22.2-preview-20261028132907
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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/loaders/providers.d.ts +1 -1
- package/dist/loaders/providers.js +2 -2
- package/dist/providers/medusa-cloud-email.d.ts +1 -1
- package/dist/services/notification-module-service.d.ts +1 -1
- package/dist/services/notification-module-service.js +1 -1
- package/dist/services/notification-provider.d.ts +2 -2
- package/dist/services/notification-provider.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./types";
|
|
2
|
-
import { NotificationModuleService } from "./services";
|
|
2
|
+
import { NotificationModuleService } from "./services/index.js";
|
|
3
3
|
declare const _default: import("@medusajs/types").ModuleExports<typeof NotificationModuleService> & {
|
|
4
4
|
linkable: Record<string, any>;
|
|
5
5
|
};
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
require("./types");
|
|
7
|
-
const _services_1 = require("./services");
|
|
7
|
+
const _services_1 = require("./services/index.js");
|
|
8
8
|
const providers_1 = __importDefault(require("./loaders/providers"));
|
|
9
9
|
const utils_1 = require("@medusajs/framework/utils");
|
|
10
10
|
exports.default = (0, utils_1.Module)(utils_1.Modules.NOTIFICATION, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoaderOptions, ModulesSdkTypes } from "@medusajs/framework/types";
|
|
2
|
-
import { NotificationModuleOptions } from "../types";
|
|
2
|
+
import { NotificationModuleOptions } from "../types/index.js";
|
|
3
3
|
declare const _default: ({ container, options, }: LoaderOptions<(ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions) & NotificationModuleOptions>) => Promise<void>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const awilix_1 = require("@medusajs/framework/awilix");
|
|
4
4
|
const modules_sdk_1 = require("@medusajs/framework/modules-sdk");
|
|
5
5
|
const utils_1 = require("@medusajs/framework/utils");
|
|
6
|
-
const _services_1 = require("../services");
|
|
7
|
-
const _types_1 = require("../types");
|
|
6
|
+
const _services_1 = require("../services/index.js");
|
|
7
|
+
const _types_1 = require("../types/index.js");
|
|
8
8
|
const medusa_cloud_email_1 = require("../providers/medusa-cloud-email");
|
|
9
9
|
const validateCloudOptions = (options) => {
|
|
10
10
|
const { api_key, endpoint, environment_handle, sandbox_handle } = options ?? {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger, NotificationTypes } from "@medusajs/framework/types";
|
|
2
2
|
import { AbstractNotificationProviderService } from "@medusajs/framework/utils";
|
|
3
|
-
import { MedusaCloudEmailOptions } from "../types";
|
|
3
|
+
import { MedusaCloudEmailOptions } from "../types/index.js";
|
|
4
4
|
export declare class MedusaCloudEmailNotificationProvider extends AbstractNotificationProviderService {
|
|
5
5
|
static identifier: string;
|
|
6
6
|
protected options_: MedusaCloudEmailOptions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, DAL, InferEntityType, INotificationModuleService, InternalModuleDeclaration, Logger, ModulesSdkTypes, NotificationTypes } from "@medusajs/framework/types";
|
|
2
|
-
import { Notification } from "../models";
|
|
2
|
+
import { Notification } from "../models/index.js";
|
|
3
3
|
import NotificationProviderService from "./notification-provider";
|
|
4
4
|
type InjectedDependencies = {
|
|
5
5
|
logger?: Logger;
|
|
@@ -13,7 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const utils_1 = require("@medusajs/framework/utils");
|
|
16
|
-
const _models_1 = require("../models");
|
|
16
|
+
const _models_1 = require("../models/index.js");
|
|
17
17
|
class NotificationModuleService extends (0, utils_1.MedusaService)({ Notification: _models_1.Notification }) {
|
|
18
18
|
constructor({ baseRepository, notificationService, notificationProviderService, }, moduleDeclaration) {
|
|
19
19
|
// @ts-ignore
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context, DAL, InferEntityType, Logger, NotificationTypes } from "@medusajs/framework/types";
|
|
2
2
|
import { ModulesSdkUtils } from "@medusajs/framework/utils";
|
|
3
|
-
import { NotificationProvider } from "../models";
|
|
4
|
-
import { NotificationProviderRegistrationPrefix } from "../types";
|
|
3
|
+
import { NotificationProvider } from "../models/index.js";
|
|
4
|
+
import { NotificationProviderRegistrationPrefix } from "../types/index.js";
|
|
5
5
|
type InjectedDependencies = {
|
|
6
6
|
logger?: Logger;
|
|
7
7
|
notificationProviderRepository: DAL.RepositoryService<InferEntityType<typeof NotificationProvider>>;
|
|
@@ -13,8 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _NotificationProviderService_logger;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
const utils_1 = require("@medusajs/framework/utils");
|
|
16
|
-
const _models_1 = require("../models");
|
|
17
|
-
const _types_1 = require("../types");
|
|
16
|
+
const _models_1 = require("../models/index.js");
|
|
17
|
+
const _types_1 = require("../types/index.js");
|
|
18
18
|
class NotificationProviderService extends utils_1.ModulesSdkUtils.MedusaInternalService(_models_1.NotificationProvider) {
|
|
19
19
|
constructor(container) {
|
|
20
20
|
super(container);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/notification",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.2-preview-20261028132907",
|
|
4
4
|
"description": "Medusa Notification module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@medusajs/framework": "2.22.
|
|
47
|
-
"@medusajs/test-utils": "2.22.
|
|
46
|
+
"@medusajs/framework": "2.22.2-preview-20261028132907",
|
|
47
|
+
"@medusajs/test-utils": "2.22.2-preview-20261028132907"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@medusajs/framework": "2.22.
|
|
50
|
+
"@medusajs/framework": "2.22.2-preview-20261028132907"
|
|
51
51
|
}
|
|
52
52
|
}
|