@facteurjs/adonisjs 1.0.0-beta.0 → 1.0.0-beta.1
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/channels/aws-sns.d.ts +12 -0
- package/dist/channels/aws-sns.js +3 -0
- package/dist/channels/expo.d.ts +2 -0
- package/dist/channels/expo.js +3 -0
- package/dist/channels/fcm.js +3 -0
- package/dist/channels/socketio.d.ts +12 -0
- package/dist/channels/socketio.js +3 -0
- package/dist/channels/transmit.js +3 -0
- package/dist/channels/twilio.js +3 -0
- package/dist/channels/webpush.js +3 -0
- package/dist/channels.d.ts +11 -4
- package/dist/channels.js +18 -0
- package/package.json +9 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "@facteurjs/core/channels/aws-sns";
|
|
2
|
+
export * from "@facteurjs/core/channels/aws-sns/types";
|
|
3
|
+
|
|
4
|
+
//#region src/channels/aws-sns.d.ts
|
|
5
|
+
|
|
6
|
+
import * as import___facteurjs_core_channels_aws_sns from "@facteurjs/core/channels/aws-sns";
|
|
7
|
+
__reExport(aws_sns_d_exports, import___facteurjs_core_channels_aws_sns);
|
|
8
|
+
import * as import___facteurjs_core_channels_aws_sns_types from "@facteurjs/core/channels/aws-sns/types";
|
|
9
|
+
__reExport(aws_sns_d_exports, import___facteurjs_core_channels_aws_sns_types);
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { aws_sns_d_exports };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "@facteurjs/core/channels/socketio";
|
|
2
|
+
export * from "@facteurjs/core/channels/socketio/types";
|
|
3
|
+
|
|
4
|
+
//#region src/channels/socketio.d.ts
|
|
5
|
+
|
|
6
|
+
import * as import___facteurjs_core_channels_socketio from "@facteurjs/core/channels/socketio";
|
|
7
|
+
__reExport(socketio_d_exports, import___facteurjs_core_channels_socketio);
|
|
8
|
+
import * as import___facteurjs_core_channels_socketio_types from "@facteurjs/core/channels/socketio/types";
|
|
9
|
+
__reExport(socketio_d_exports, import___facteurjs_core_channels_socketio_types);
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { socketio_d_exports };
|
package/dist/channels.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
import { aws_sns_d_exports } from "./channels/aws-sns.js";
|
|
1
2
|
import { database_d_exports } from "./channels/database.js";
|
|
2
3
|
import { discord_d_exports } from "./channels/discord.js";
|
|
3
|
-
import { twilio_d_exports } from "./channels/twilio.js";
|
|
4
|
-
import { transmit_d_exports } from "./channels/transmit.js";
|
|
5
|
-
import { MailChannel } from "./channels/mail.js";
|
|
6
4
|
import { fcm_d_exports } from "./channels/fcm.js";
|
|
5
|
+
import { socketio_d_exports } from "./channels/socketio.js";
|
|
6
|
+
import { transmit_d_exports } from "./channels/transmit.js";
|
|
7
|
+
import { twilio_d_exports } from "./channels/twilio.js";
|
|
7
8
|
import { webpush_d_exports } from "./channels/webpush.js";
|
|
9
|
+
import { MailChannel } from "./channels/mail.js";
|
|
8
10
|
import { DiscordOptions } from "@facteurjs/core/channels/discord/types";
|
|
9
11
|
import { SlackOptions } from "@facteurjs/core/channels/slack/types";
|
|
10
|
-
import { ConfigProvider } from "@adonisjs/core/types";
|
|
11
12
|
import { TwilioConfig } from "@facteurjs/core/channels/twilio/types";
|
|
12
13
|
import { FcmConfig } from "@facteurjs/core/channels/fcm/types";
|
|
13
14
|
import { WebpushConfig } from "@facteurjs/core/channels/webpush/types";
|
|
15
|
+
import { ExpoChannel } from "@facteurjs/core/channels/expo";
|
|
16
|
+
import { ExpoConfig } from "@facteurjs/core/channels/expo/types";
|
|
17
|
+
import { ConfigProvider } from "@adonisjs/core/types";
|
|
14
18
|
|
|
15
19
|
//#region src/channels.d.ts
|
|
16
20
|
interface DatabaseConfig {
|
|
@@ -30,6 +34,9 @@ declare const channels: {
|
|
|
30
34
|
mail(): ConfigProvider<MailChannel>;
|
|
31
35
|
fcm(config: FcmConfig): ConfigProvider<fcm_d_exports.FcmChannel>;
|
|
32
36
|
webpush(config: WebpushConfig): ConfigProvider<webpush_d_exports.WebpushChannel>;
|
|
37
|
+
socketIo(config: socketio_d_exports.SocketIOConfig): ConfigProvider<socketio_d_exports.SocketIOChannel>;
|
|
38
|
+
awsSns(config: aws_sns_d_exports.AwsSnsConfig): ConfigProvider<aws_sns_d_exports.AwsSnsChannel>;
|
|
39
|
+
expo(config: ExpoConfig): ConfigProvider<ExpoChannel>;
|
|
33
40
|
};
|
|
34
41
|
//#endregion
|
|
35
42
|
export { channels };
|
package/dist/channels.js
CHANGED
|
@@ -74,6 +74,24 @@ const channels = {
|
|
|
74
74
|
const { webpushChannel } = await import("@facteurjs/core/channels/webpush");
|
|
75
75
|
return webpushChannel(config);
|
|
76
76
|
});
|
|
77
|
+
},
|
|
78
|
+
socketIo(config) {
|
|
79
|
+
return configProvider.create(async () => {
|
|
80
|
+
const { socketIoChannel } = await import("@facteurjs/core/channels/socketio");
|
|
81
|
+
return socketIoChannel(config);
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
awsSns(config) {
|
|
85
|
+
return configProvider.create(async () => {
|
|
86
|
+
const { awsSnsChannel } = await import("@facteurjs/core/channels/aws-sns");
|
|
87
|
+
return awsSnsChannel(config);
|
|
88
|
+
});
|
|
89
|
+
},
|
|
90
|
+
expo(config) {
|
|
91
|
+
return configProvider.create(async () => {
|
|
92
|
+
const { expoChannel } = await import("@facteurjs/core/channels/expo");
|
|
93
|
+
return expoChannel(config);
|
|
94
|
+
});
|
|
77
95
|
}
|
|
78
96
|
};
|
|
79
97
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@facteurjs/adonisjs",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"description": "AdonisJS integration for Facteur",
|
|
6
6
|
"author": "Julien Ripouteau <julien@ripouteau.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -11,10 +11,17 @@
|
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
13
|
".": "./dist/index.js",
|
|
14
|
+
"./channels/aws-sns": "./dist/channels/aws-sns.js",
|
|
14
15
|
"./channels/database": "./dist/channels/database.js",
|
|
15
16
|
"./channels/discord": "./dist/channels/discord.js",
|
|
17
|
+
"./channels/expo": "./dist/channels/expo.js",
|
|
18
|
+
"./channels/fcm": "./dist/channels/fcm.js",
|
|
16
19
|
"./channels/slack": "./dist/channels/slack.js",
|
|
20
|
+
"./channels/socketio": "./dist/channels/socketio.js",
|
|
21
|
+
"./channels/transmit": "./dist/channels/transmit.js",
|
|
22
|
+
"./channels/twilio": "./dist/channels/twilio.js",
|
|
17
23
|
"./channels/webhook": "./dist/channels/webhook.js",
|
|
24
|
+
"./channels/webpush": "./dist/channels/webpush.js",
|
|
18
25
|
"./database": "./dist/database/index.js",
|
|
19
26
|
"./providers/facteur_provider": "./dist/providers/facteur_provider.js",
|
|
20
27
|
"./services/main": "./dist/services/main.js",
|
|
@@ -47,7 +54,7 @@
|
|
|
47
54
|
}
|
|
48
55
|
},
|
|
49
56
|
"dependencies": {
|
|
50
|
-
"@facteurjs/core": "1.0.0-beta.
|
|
57
|
+
"@facteurjs/core": "1.0.0-beta.1",
|
|
51
58
|
"@julr/utils": "1.9.0",
|
|
52
59
|
"@poppinss/exception": "^1.2.2"
|
|
53
60
|
},
|