1 | export interface RmqRecordOptions {
|
2 | expiration?: string | number;
|
3 | userId?: string;
|
4 | CC?: string | string[];
|
5 | mandatory?: boolean;
|
6 | persistent?: boolean;
|
7 | deliveryMode?: boolean | number;
|
8 | BCC?: string | string[];
|
9 | contentType?: string;
|
10 | contentEncoding?: string;
|
11 | headers?: Record<string, string>;
|
12 | priority?: number;
|
13 | messageId?: string;
|
14 | timestamp?: number;
|
15 | type?: string;
|
16 | appId?: string;
|
17 | }
|
18 | export declare class RmqRecord<TData = any> {
|
19 | readonly data: TData;
|
20 | options?: RmqRecordOptions;
|
21 | constructor(data: TData, options?: RmqRecordOptions);
|
22 | }
|
23 | export declare class RmqRecordBuilder<TData> {
|
24 | private data?;
|
25 | private options?;
|
26 | constructor(data?: TData);
|
27 | setOptions(options: RmqRecordOptions): this;
|
28 | setData(data: TData): this;
|
29 | build(): RmqRecord;
|
30 | }
|