@etohq/notification 1.5.3 → 1.5.4-alpha.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DAL, InferEntityType, Logger, NotificationTypes } from "@etohq/framework/types";
|
|
2
|
+
import { ModulesSdkUtils } from "@etohq/framework/utils";
|
|
2
3
|
import { NotificationProvider } from "../models";
|
|
3
4
|
import { NotificationProviderRegistrationPrefix } from "../types";
|
|
4
5
|
type InjectedDependencies = {
|
|
@@ -7,29 +8,10 @@ type InjectedDependencies = {
|
|
|
7
8
|
[key: `${typeof NotificationProviderRegistrationPrefix}${string}`]: NotificationTypes.INotificationProvider;
|
|
8
9
|
};
|
|
9
10
|
type Provider = InferEntityType<typeof NotificationProvider>;
|
|
10
|
-
declare const NotificationProviderService_base:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
is_enabled: import("@etohq/framework/utils").BooleanProperty;
|
|
15
|
-
channels: import("@etohq/framework/utils").ArrayProperty;
|
|
16
|
-
notifications: import("@etohq/framework/utils").HasMany<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder<{
|
|
17
|
-
id: import("@etohq/framework/utils").PrimaryKeyModifier<string, import("@etohq/framework/utils").IdProperty>;
|
|
18
|
-
to: import("@etohq/framework/utils").TextProperty;
|
|
19
|
-
channel: import("@etohq/framework/utils").TextProperty;
|
|
20
|
-
template: import("@etohq/framework/utils").TextProperty;
|
|
21
|
-
data: import("@etohq/framework/utils").NullableModifier<Record<string, unknown>, import("@etohq/framework/utils").JSONProperty>;
|
|
22
|
-
trigger_type: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
23
|
-
resource_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
24
|
-
resource_type: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
25
|
-
receiver_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
26
|
-
original_notification_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
27
|
-
idempotency_key: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
28
|
-
external_id: import("@etohq/framework/utils").NullableModifier<string, import("@etohq/framework/utils").TextProperty>;
|
|
29
|
-
status: import("@etohq/framework/utils").EnumProperty<typeof import("@etohq/framework/utils").NotificationStatus>;
|
|
30
|
-
provider: import("@etohq/framework/utils").RelationNullableModifier<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "notificationProvider">, import("@etohq/framework/utils").BelongsTo<() => import("@etohq/framework/utils").DmlEntity<import("@etohq/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "notificationProvider">, undefined>, true>;
|
|
31
|
-
}>, "notification">>;
|
|
32
|
-
}>, "notificationProvider">, InjectedDependencies>;
|
|
11
|
+
declare const NotificationProviderService_base: {
|
|
12
|
+
new <TContainer extends object = object, TEntity extends object = any>(container: TContainer): import("@etohq/framework/types").IEtoInternalService<TEntity, TContainer>;
|
|
13
|
+
setEventSubscriber(subscriber: ModulesSdkUtils.EtoMikroOrmEventSubscriber): void;
|
|
14
|
+
};
|
|
33
15
|
export default class NotificationProviderService extends NotificationProviderService_base {
|
|
34
16
|
#private;
|
|
35
17
|
protected readonly notificationProviderRepository_: DAL.RepositoryService<InferEntityType<typeof NotificationProvider>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-provider.d.ts","sourceRoot":"","sources":["../../src/services/notification-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,eAAe,EACf,MAAM,EACN,iBAAiB,EAClB,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"notification-provider.d.ts","sourceR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EAAE,eAAe,CAAC,OAAO,oBAAoB,CAAC,EACtD,YAAY,EAAE,iBAAiB,CAAC,2BAA2B,GAC1D,OAAO,CAAC,iBAAiB,CAAC,kCAAkC,CAAC;CAIjE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etohq/notification",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.4-alpha.0",
|
|
4
4
|
"description": "Eto Notification module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"rimraf": "5.0.2",
|
|
36
36
|
"tsc-alias": "1.8.6",
|
|
37
37
|
"typescript": "5.8.3",
|
|
38
|
-
"@etohq/
|
|
39
|
-
"@etohq/
|
|
40
|
-
"@etohq/
|
|
38
|
+
"@etohq/types": "1.5.4-alpha.0",
|
|
39
|
+
"@etohq/test-utils": "1.5.4-alpha.0",
|
|
40
|
+
"@etohq/framework": "1.5.4-alpha.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"awilix": "8.0.1"
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@mikro-orm/migrations": "6.4.3",
|
|
48
48
|
"@mikro-orm/postgresql": "6.4.3",
|
|
49
49
|
"awilix": "8.0.1",
|
|
50
|
-
"@etohq/framework": "1.5.
|
|
51
|
-
"@etohq/types": "1.5.
|
|
50
|
+
"@etohq/framework": "1.5.4-alpha.0",
|
|
51
|
+
"@etohq/types": "1.5.4-alpha.0"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"watch": "tsc --build --watch",
|