alepha 0.11.4 → 0.11.6
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/api/files.d.ts +439 -1
- package/api/jobs.d.ts +290 -1
- package/api/notifications.d.ts +264 -1
- package/api/users.d.ts +924 -1
- package/batch.d.ts +154 -1
- package/bucket.d.ts +520 -1
- package/cache/redis.d.ts +40 -1
- package/cache.d.ts +288 -1
- package/command.d.ts +269 -1
- package/core.d.ts +1877 -1
- package/datetime.d.ts +1 -1
- package/devtools.d.ts +408 -1
- package/email.d.ts +187 -1
- package/fake.d.ts +73 -1
- package/file.d.ts +528 -1
- package/lock/redis.d.ts +24 -1
- package/lock.d.ts +552 -1
- package/logger.d.ts +288 -1
- package/package.json +51 -51
- package/postgres.d.ts +2146 -1
- package/queue/redis.d.ts +29 -1
- package/queue.d.ts +760 -1
- package/react/auth.d.ts +504 -1
- package/react/form.d.ts +208 -1
- package/react/head.d.ts +120 -1
- package/react/i18n.d.ts +168 -1
- package/react.d.ts +1261 -1
- package/redis.d.ts +82 -1
- package/retry.d.ts +84 -21
- package/scheduler.d.ts +145 -1
- package/security.d.ts +586 -1
- package/server/cache.d.ts +163 -1
- package/server/compress.d.ts +38 -1
- package/server/cookies.d.ts +144 -1
- package/server/cors.d.ts +45 -1
- package/server/health.d.ts +59 -1
- package/server/helmet.d.ts +98 -1
- package/server/links.d.ts +322 -1
- package/server/metrics.d.ts +35 -1
- package/server/multipart.d.ts +42 -1
- package/server/proxy.d.ts +234 -1
- package/server/security.d.ts +92 -1
- package/server/static.d.ts +119 -1
- package/server/swagger.d.ts +161 -1
- package/server.d.ts +849 -1
- package/topic/redis.d.ts +42 -1
- package/topic.d.ts +819 -1
- package/ui.d.ts +786 -1
- package/vite.d.ts +186 -1
package/topic/redis.d.ts
CHANGED
|
@@ -1 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
import * as _alepha_core1 from "alepha";
|
|
2
|
+
import { Alepha } from "alepha";
|
|
3
|
+
import { SubscribeCallback, TopicProvider, UnSubscribeFn } from "alepha/topic";
|
|
4
|
+
import * as _alepha_logger0 from "alepha/logger";
|
|
5
|
+
import { RedisProvider, RedisSubscriberProvider } from "alepha/redis";
|
|
6
|
+
|
|
7
|
+
//#region src/providers/RedisTopicProvider.d.ts
|
|
8
|
+
declare class RedisTopicProvider extends TopicProvider {
|
|
9
|
+
protected readonly env: {
|
|
10
|
+
REDIS_TOPIC_PREFIX: string;
|
|
11
|
+
};
|
|
12
|
+
protected readonly alepha: Alepha;
|
|
13
|
+
protected readonly redisProvider: RedisProvider;
|
|
14
|
+
protected readonly redisSubscriberProvider: RedisSubscriberProvider;
|
|
15
|
+
protected readonly log: _alepha_logger0.Logger;
|
|
16
|
+
protected readonly start: _alepha_core1.HookDescriptor<"start">;
|
|
17
|
+
prefix(queue: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Publish a message to a topic.
|
|
20
|
+
*/
|
|
21
|
+
publish(topic: string, message: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Subscribe to a topic.
|
|
24
|
+
*/
|
|
25
|
+
subscribe(name: string, callback: SubscribeCallback): Promise<UnSubscribeFn>;
|
|
26
|
+
/**
|
|
27
|
+
* Unsubscribe from a topic.
|
|
28
|
+
*/
|
|
29
|
+
unsubscribe(name: string, callback?: SubscribeCallback): Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/index.d.ts
|
|
33
|
+
/**
|
|
34
|
+
* Plugin for Alepha Topic that provides Redis pub/sub capabilities.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link RedisTopicProvider}
|
|
37
|
+
* @module alepha.topic.redis
|
|
38
|
+
*/
|
|
39
|
+
declare const AlephaTopicRedis: _alepha_core1.Service<_alepha_core1.Module>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { AlephaTopicRedis, RedisTopicProvider };
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|