@types/rascal 10.0.6 → 10.0.7
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.
- rascal/LICENSE +0 -0
- rascal/README.md +1 -1
- rascal/index.d.ts +63 -63
- rascal/package.json +3 -3
rascal/LICENSE
CHANGED
|
File without changes
|
rascal/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for rascal (https://guidesmiths.github.io
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rascal.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
|
|
12
12
|
* Dependencies: [@types/amqplib](https://npmjs.com/package/@types/amqplib), [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
rascal/index.d.ts
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
/// <reference types="node" />
|
|
10
10
|
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { Channel, Connection, Message, Options } from "amqplib";
|
|
12
|
+
import { EventEmitter } from "events";
|
|
13
13
|
|
|
14
14
|
export interface BindingConfig {
|
|
15
15
|
source?: string | undefined;
|
|
16
16
|
destination?: string | undefined;
|
|
17
|
-
destinationType?:
|
|
17
|
+
destinationType?: "queue" | "exchange" | undefined;
|
|
18
18
|
bindingKey?: string | undefined;
|
|
19
19
|
bindingKeys?: string[] | undefined;
|
|
20
20
|
options?: any;
|
|
@@ -31,7 +31,7 @@ export interface ExchangeConfig {
|
|
|
31
31
|
name?: string | undefined;
|
|
32
32
|
assert?: boolean | undefined;
|
|
33
33
|
check?: boolean | undefined;
|
|
34
|
-
type?:
|
|
34
|
+
type?: "direct" | "fanout" | "headers" | "topic" | undefined;
|
|
35
35
|
options?: Options.AssertExchange | undefined;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -50,21 +50,21 @@ export interface ConnectionAttributes {
|
|
|
50
50
|
loggableUrl?: string | undefined;
|
|
51
51
|
options?:
|
|
52
52
|
| {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
heartbeat?: number | undefined;
|
|
54
|
+
timeout?: number | undefined;
|
|
55
|
+
channelMax?: number | undefined;
|
|
56
|
+
connection_timeout?: number | undefined;
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}
|
|
59
59
|
| undefined;
|
|
60
60
|
socketOptions?:
|
|
61
61
|
| {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
timeout?: number | undefined;
|
|
63
|
+
clientProperties?: {
|
|
64
|
+
connection_name?: string | undefined;
|
|
65
|
+
[key: string]: string | undefined;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
68
|
| undefined;
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@ export interface RetryConfig {
|
|
|
72
72
|
factor?: number | undefined;
|
|
73
73
|
max?: number | undefined;
|
|
74
74
|
min?: number | undefined;
|
|
75
|
-
strategy?:
|
|
75
|
+
strategy?: "exponential" | "linear" | undefined;
|
|
76
76
|
delay?: number | undefined;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -96,40 +96,40 @@ export interface VhostConfig {
|
|
|
96
96
|
namespace?: string | boolean | undefined;
|
|
97
97
|
publicationChannelPools?:
|
|
98
98
|
| {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
regularPool?: ChannelPoolConfig | undefined;
|
|
100
|
+
confirmPool?: ChannelPoolConfig | undefined;
|
|
101
|
+
}
|
|
102
102
|
| undefined;
|
|
103
103
|
connection?: ConnectionConfig | undefined;
|
|
104
104
|
connections?: ConnectionConfig[] | undefined;
|
|
105
|
-
connectionStrategy?:
|
|
105
|
+
connectionStrategy?: "random" | "fixed" | undefined;
|
|
106
106
|
exchanges?:
|
|
107
107
|
| {
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
[key: string]: ExchangeConfig;
|
|
109
|
+
}
|
|
110
110
|
| Array<string | ExchangeConfig>
|
|
111
111
|
| undefined;
|
|
112
112
|
queues?:
|
|
113
113
|
| {
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
[key: string]: QueueConfig;
|
|
115
|
+
}
|
|
116
116
|
| Array<string | QueueConfig>
|
|
117
117
|
| undefined;
|
|
118
118
|
bindings?:
|
|
119
119
|
| {
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
[key: string]: BindingConfig;
|
|
121
|
+
}
|
|
122
122
|
| Array<string | BindingConfig>
|
|
123
123
|
| undefined;
|
|
124
124
|
publications?:
|
|
125
125
|
| {
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
[key: string]: PublicationConfig;
|
|
127
|
+
}
|
|
128
128
|
| undefined;
|
|
129
129
|
subscriptions?:
|
|
130
130
|
| {
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
[key: string]: SubscriptionConfig;
|
|
132
|
+
}
|
|
133
133
|
| undefined;
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -154,16 +154,16 @@ export interface Encryption {
|
|
|
154
154
|
export interface Redelivery {
|
|
155
155
|
counters?:
|
|
156
156
|
| {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
[key: string]: {
|
|
158
|
+
type: "stub" | "inMemory" | "inMemoryCluster";
|
|
159
|
+
size?: number | undefined;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
162
|
| undefined;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
export interface Recovery {
|
|
166
|
-
strategy:
|
|
166
|
+
strategy: "ack" | "nack" | "republish" | "forward";
|
|
167
167
|
defer?: number | undefined;
|
|
168
168
|
attempts?: number | undefined;
|
|
169
169
|
requeue?: boolean | undefined;
|
|
@@ -188,40 +188,40 @@ export interface SubscriptionConfig {
|
|
|
188
188
|
autoCreated?: boolean | undefined;
|
|
189
189
|
redeliveries?:
|
|
190
190
|
| {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
counter: string;
|
|
192
|
+
limit: number;
|
|
193
|
+
timeout?: number | undefined;
|
|
194
|
+
}
|
|
195
195
|
| undefined;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
interface BrokerConfig {
|
|
199
199
|
vhosts?:
|
|
200
200
|
| {
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
[key: string]: VhostConfig;
|
|
202
|
+
}
|
|
203
203
|
| undefined;
|
|
204
204
|
publications?:
|
|
205
205
|
| {
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
[key: string]: PublicationConfig;
|
|
207
|
+
}
|
|
208
208
|
| undefined;
|
|
209
209
|
subscriptions?:
|
|
210
210
|
| {
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
[key: string]: SubscriptionConfig;
|
|
212
|
+
}
|
|
213
213
|
| undefined;
|
|
214
214
|
redeliveries?: Redelivery | undefined;
|
|
215
215
|
recovery?:
|
|
216
216
|
| {
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
[key: string]: Recovery | Recovery[];
|
|
218
|
+
}
|
|
219
219
|
| undefined;
|
|
220
220
|
defaults?: VhostConfig | undefined;
|
|
221
221
|
encryption?:
|
|
222
222
|
| {
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
[key: string]: Encryption;
|
|
224
|
+
}
|
|
225
225
|
| undefined;
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -445,10 +445,10 @@ export class SubscriberSessionAsPromised extends EventEmitter {
|
|
|
445
445
|
name: string;
|
|
446
446
|
cancel(): Promise<void>;
|
|
447
447
|
|
|
448
|
-
on(event:
|
|
449
|
-
on(event:
|
|
448
|
+
on(event: "message", listener: (message: Message, content: any, ackOrNackFn: AckOrNack) => void): this;
|
|
449
|
+
on(event: "error" | "cancelled", listener: (err: Error) => void): this;
|
|
450
450
|
on(
|
|
451
|
-
event:
|
|
451
|
+
event: "invalid_content" | "redeliveries_exceeded" | "redeliveries_error",
|
|
452
452
|
listener: (err: Error, message: Message, ackOrNackFn: AckOrNack) => void,
|
|
453
453
|
): this;
|
|
454
454
|
}
|
|
@@ -474,10 +474,10 @@ export class SubscriptionSession extends EventEmitter {
|
|
|
474
474
|
isCancelled(): boolean;
|
|
475
475
|
cancel(next: ErrorCb): void;
|
|
476
476
|
|
|
477
|
-
on(event:
|
|
478
|
-
on(event:
|
|
477
|
+
on(event: "message", listener: (message: Message, content: any, ackOrNackFn: AckOrNack) => void): this;
|
|
478
|
+
on(event: "error" | "cancelled", listener: (err: Error) => void): this;
|
|
479
479
|
on(
|
|
480
|
-
event:
|
|
480
|
+
event: "invalid_content" | "redeliveries_exceeded" | "redeliveries_error",
|
|
481
481
|
listener: (err: Error, message: Message, ackOrNackFn: AckOrNack) => void,
|
|
482
482
|
): this;
|
|
483
483
|
}
|
|
@@ -523,9 +523,9 @@ export class PublicationSession extends EventEmitter {
|
|
|
523
523
|
isAborted(): boolean;
|
|
524
524
|
emitPaused(): void;
|
|
525
525
|
|
|
526
|
-
on(event:
|
|
527
|
-
on(event:
|
|
528
|
-
on(event:
|
|
526
|
+
on(event: "error", cb: (err: Error, messageId: string) => void): this;
|
|
527
|
+
on(event: "success", cb: (messageId: string) => void): this;
|
|
528
|
+
on(event: "return", cb: (message: Message) => void): this;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
export class Vhost extends EventEmitter {
|
|
@@ -567,15 +567,15 @@ declare namespace counters {
|
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
export {
|
|
570
|
+
AckOrNack,
|
|
570
571
|
Broker,
|
|
571
572
|
BrokerAsPromised,
|
|
573
|
+
BrokerConfig,
|
|
574
|
+
counters,
|
|
572
575
|
createBroker,
|
|
573
576
|
createBrokerAsPromised,
|
|
574
577
|
defaultConfig,
|
|
575
578
|
testConfig,
|
|
576
579
|
withDefaultConfig,
|
|
577
580
|
withTestConfig,
|
|
578
|
-
counters,
|
|
579
|
-
BrokerConfig,
|
|
580
|
-
AckOrNack,
|
|
581
581
|
};
|
rascal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/rascal",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.7",
|
|
4
4
|
"description": "TypeScript definitions for rascal",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rascal",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"@types/amqplib": "*",
|
|
34
34
|
"@types/node": "*"
|
|
35
35
|
},
|
|
36
|
-
"typesPublisherContentHash": "
|
|
37
|
-
"typeScriptVersion": "4.
|
|
36
|
+
"typesPublisherContentHash": "f5b8bb75b41943a942c7c349af570a57bf61748dc121efa751289a78ed4950ea",
|
|
37
|
+
"typeScriptVersion": "4.5"
|
|
38
38
|
}
|