ngx-kel-agent 1.0.5 → 1.1.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/index.d.ts CHANGED
@@ -1,5 +1,638 @@
1
+ import { Subject, BehaviorSubject, ReplaySubject } from 'rxjs';
2
+ import * as i0 from '@angular/core';
3
+
4
+ declare class AgentMessageService {
5
+ rxMessage$: Subject<any>;
6
+ txMessage$: Subject<any>;
7
+ constructor();
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentMessageService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgentMessageService>;
10
+ }
11
+
12
+ interface HamlibRigState {
13
+ /** Transceiver model name */
14
+ model: string;
15
+ /** Dial frequency of the "current" VFO in Hz */
16
+ frequency: number;
17
+ /** Mode name of the "current" VFO */
18
+ mode: string;
19
+ /** Width of the current passband filter in Hz */
20
+ passbandWidthHz: number;
21
+ }
22
+
23
+ declare class HamlibService {
24
+ private messages;
25
+ /** Whether we're getting any messages from Hamlib. */
26
+ readonly connected$: BehaviorSubject<boolean>;
27
+ /** Subject for listening to Hamlib "RigState" messages. */
28
+ readonly rigState$: BehaviorSubject<HamlibRigState | null>;
29
+ constructor(messages: AgentMessageService);
30
+ setupBehaviors(): void;
31
+ private handleMessage;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<HamlibService, never>;
33
+ static ɵprov: i0.ɵɵInjectableDeclaration<HamlibService>;
34
+ }
35
+
1
36
  /**
2
- * Generated bundle index. Do not edit.
37
+ * The heartbeat message shall be sent on a periodic basis every
38
+ * 15 seconds. This
39
+ * message is intended to be used by servers to detect the presence
40
+ * of a client and also the unexpected disappearance of a client
41
+ * and by clients to learn the schema negotiated by the server
42
+ * after it receives the initial heartbeat message from a client.
43
+ *
44
+ * See
45
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l110).
3
46
  */
4
- /// <amd-module name="ngx-kel-agent" />
5
- export * from './public-api';
47
+ interface WsjtxHeartbeat {
48
+ /** WSJT-X client name */
49
+ id: string;
50
+ /** WSJT-X client's supported schema version */
51
+ maxSchemaVersion: number;
52
+ /** WSJT-X client's commit hash */
53
+ revision: string;
54
+ /** WSJT-X client's semantic version */
55
+ version: string;
56
+ }
57
+ /**
58
+ * WSJT-X sends this status message when various internal state
59
+ * changes to allow the server to track the relevant state of each
60
+ * client without the need for polling commands.
61
+ *
62
+ * See
63
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l141).
64
+ */
65
+ interface WsjtxStatus {
66
+ configName: string;
67
+ /** Local station's callsign */
68
+ deCall: string;
69
+ /** Local station's Maidenhead grid */
70
+ deGrid: string;
71
+ /** Whether WSJT-X is currently decoding */
72
+ decoding: boolean;
73
+ /** The connected transceiver's dial frequency in hertz */
74
+ dialFrequency: number;
75
+ /** Remote station's callsign */
76
+ dxCall: string;
77
+ /** Remote station's Maidenhead grid */
78
+ dxGrid: string;
79
+ fastMode: boolean;
80
+ frequencyTolerance: number;
81
+ /** WSJT-X client name */
82
+ id: string;
83
+ /** The receive protocol that WSJT-X is decoding */
84
+ mode: string;
85
+ /** The local station's signal report for the remote station */
86
+ report: string;
87
+ /** The listening frequency in hertz above the dial frequency */
88
+ rxDeltaFreq: number;
89
+ /** If non-zero, WSJT-X is in a special mode like Fox/Hound or Field Day */
90
+ specialMode: number;
91
+ submode: string;
92
+ /** Whether WSJT-X is transmitting */
93
+ transmitting: boolean;
94
+ /** The transmit frequency in hertz above the dial frequency */
95
+ txDeltaFreq: number;
96
+ /** Whether WSJT-X is allowed to transmit during the next window */
97
+ txEnabled: boolean;
98
+ txMode: string;
99
+ txRxPeriod: number;
100
+ txWatchdog: boolean;
101
+ /** The message being transmitted */
102
+ txMessage: string;
103
+ }
104
+ /**
105
+ * The decode message is sent when a new decode is completed, in
106
+ * this case the 'New' field is true. It is also used in response
107
+ * to a "Replay" message where each old decode in the "Band
108
+ * activity" window, that has not been erased, is sent in order
109
+ * as a one of these messages with the 'New' field set to false.
110
+ *
111
+ * See
112
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l208).
113
+ */
114
+ interface WsjtxDecode {
115
+ /** The decode's frequency in hertz above the dial frequency */
116
+ deltaFrequency: number;
117
+ /** The perceived clock differential between the local station and remote station, in seconds. */
118
+ deltaTime: number;
119
+ /** WSJT-X client name */
120
+ id: string;
121
+ lowConfidence: boolean;
122
+ /** The message payload contained in the decode */
123
+ message: string;
124
+ /** The protocol of the decoded message */
125
+ mode: string;
126
+ /** Whether the decode is new or replayed */
127
+ new: boolean;
128
+ /** Whether the decode came from playback of a recording */
129
+ offAir: boolean;
130
+ /** Local station's perceived signal to noise ratio */
131
+ snr: number;
132
+ /** Clock time in milliseconds since midnight */
133
+ time: number;
134
+ }
135
+ /**
136
+ * This message is send when all prior "Decode" messages in the
137
+ * "Band Activity" window have been discarded and therefore are
138
+ * no long available for actioning with a "Reply" message.
139
+ *
140
+ * See
141
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l234).
142
+ */
143
+ interface WsjtxClear {
144
+ /** WSJT-X client name */
145
+ id: string;
146
+ /** Which window to clear (send only). Send 0 to clear Band Activity, 1 to clear Rx Frequency, */
147
+ /** or 2 to clear both. */
148
+ window: number;
149
+ }
150
+ /**
151
+ * In order for a server to provide a useful cooperative service
152
+ * to WSJT-X it is possible for it to initiate a QSO by sending
153
+ * this message to a client. WSJT-X filters this message and only
154
+ * acts upon it if the message exactly describes a prior decode
155
+ * and that decode is a CQ or QRZ message. The action taken is
156
+ * exactly equivalent to the user double clicking the message in
157
+ * the "Band activity" window.
158
+ *
159
+ * See
160
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l255).
161
+ */
162
+ interface WsjtxReply {
163
+ /** WSJT-X client name */
164
+ id: string;
165
+ /** Clock time in milliseconds since midnight */
166
+ time: number;
167
+ /** Local station's perceived signal to noise ratio */
168
+ snr: number;
169
+ /** The perceived clock differential between the local station and remote station, in seconds. */
170
+ deltaTime: number;
171
+ /** The decode's frequency in hertz above the dial frequency */
172
+ deltaFrequency: number;
173
+ /** The protocol of the decoded message */
174
+ mode: string;
175
+ /** The message payload contained in the decode */
176
+ message: string;
177
+ lowConfidence: boolean;
178
+ /**
179
+ * The Modifiers field allows the equivalent of keyboard
180
+ * modifiers to be sent "as if" those modifier keys where pressed
181
+ * while double-clicking the specified decoded message. See
182
+ * the WSJT-X source link above. */
183
+ modifiers: number;
184
+ }
185
+ /**
186
+ * The QSO logged message is sent when the WSJT-X user accepts the "Log QSO" dialog by clicking
187
+ * the "OK" button.
188
+ *
189
+ * See
190
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l295).
191
+ */
192
+ interface WsjtxQsoLogged {
193
+ comments: string;
194
+ dateTimeOff: Date;
195
+ dateTimeOn: Date;
196
+ /** remote station's callsign */
197
+ dxCall: string;
198
+ /** remote station's Maidenhead grid */
199
+ dxGrid: string;
200
+ /** contest exchange received */
201
+ exchangeReceived: string;
202
+ /** contest exchange sent */
203
+ exchangeSent: string;
204
+ mode: string;
205
+ /** local station's callsign */
206
+ myCall: string;
207
+ /** local station's Maidenhead grid */
208
+ myGrid: string;
209
+ /** remote station's operator's name */
210
+ name: string;
211
+ /** remote stations operator's callsign (if different from station) */
212
+ operatorCall: string;
213
+ /** signal report received */
214
+ reportReceived: string;
215
+ /** signal report sent */
216
+ reportSent: string;
217
+ /** frequency in hertz */
218
+ txFrequency: number;
219
+ /** power in watts */
220
+ txPower: string;
221
+ /** WSJT-X client name */
222
+ id: string;
223
+ /** Propagation mode using ADIF enumerations */
224
+ propagationMode: string;
225
+ }
226
+ /**
227
+ * Close is sent by a client immediately prior to it shutting
228
+ * down gracefully.
229
+ *
230
+ * See
231
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l320).
232
+ */
233
+ interface WsjtxClose {
234
+ /** WSJT-X client name */
235
+ id: string;
236
+ }
237
+ /**
238
+ * When a server starts it may be useful for it to determine the
239
+ * state of preexisting clients. Sending this message to each
240
+ * client as it is discovered will cause that client (WSJT-X) to
241
+ * send a "Decode" message for each decode currently in its "Band
242
+ * activity" window. Each "Decode" message sent will have the
243
+ * "New" flag set to false so that they can be distinguished from
244
+ * new decodes. After all the old decodes have been broadcast a
245
+ * "Status" message is also broadcast. If the server wishes to
246
+ * determine the status of a newly discovered client; this
247
+ * message should be used.
248
+ *
249
+ * See
250
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l328).
251
+ */
252
+ interface WsjtxReplay {
253
+ /** WSJT-X client name */
254
+ id: string;
255
+ }
256
+ /**
257
+ * The server may stop a client from transmitting messages either
258
+ * immediately or at the end of the current transmission period
259
+ * using this message.
260
+ *
261
+ * See
262
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l343).
263
+ */
264
+ interface WsjtxHaltTx {
265
+ /** WSJT-X client name */
266
+ id: string;
267
+ /** If `false`, stop the ongoing transmission immediately. If `true`, this doesn't halt the
268
+ * current transmission, it just disables WSJT-X from transmitting after the current round. */
269
+ autoTxOnly: boolean;
270
+ }
271
+ /**
272
+ * This message allows the server to set the current free text
273
+ * message content. Sending this message with a non-empty "Text"
274
+ * field is equivalent to typing a new message (old contents are
275
+ * discarded) in to the WSJT-X free text message field or "Tx5"
276
+ * field (both are updated) and if the "Send" flag is set then
277
+ * clicking the "Now" radio button for the "Tx5" field if tab one
278
+ * is current or clicking the "Free msg" radio button if tab two
279
+ * is current.
280
+ *
281
+ * See
282
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l352).
283
+ */
284
+ interface WsjtxFreeText {
285
+ /** WSJT-X client name */
286
+ id: string;
287
+ /** Custom text to send. May be truncated if too long */
288
+ text: string;
289
+ /** Whether to also click "Now" to begin transmitting when appropriate */
290
+ send: boolean;
291
+ }
292
+ /**
293
+ * The decode message is sent when a new decode is completed, in
294
+ * this case the 'New' field is true.
295
+ *
296
+ * See
297
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l383).
298
+ */
299
+ interface WsjtxWsprDecode {
300
+ /** WSJT-X client name */
301
+ id: string;
302
+ /** Whether the decode is new or replayed */
303
+ new: boolean;
304
+ /** Clock time in milliseconds since midnight */
305
+ time: number;
306
+ /** Local station's perceived signal to noise ratio */
307
+ snr: number;
308
+ /** The perceived clock differential between the local station and remote station, in seconds. */
309
+ deltaTime: number;
310
+ frequency: number;
311
+ drift: number;
312
+ /** remote station's callsign */
313
+ callsign: string;
314
+ /** remote station's Maidenhead grid */
315
+ grid: string;
316
+ /** power in dBm */
317
+ power: number;
318
+ /** whether the decode came from playback of a recording */
319
+ offAir: boolean;
320
+ }
321
+ /**
322
+ * This message allows the server to set the current current
323
+ * geographical location of operation. The supplied location is
324
+ * not persistent but is used as a session lifetime replacement
325
+ * loction that overrides the Maidenhead grid locater set in the
326
+ * application settings.
327
+ *
328
+ * See
329
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l406).
330
+ */
331
+ interface WsjtxLocation {
332
+ /** WSJT-X client name */
333
+ id: string;
334
+ /** Maidenhead grid to set as the local station's position */
335
+ location: string;
336
+ }
337
+ /**
338
+ * The logged ADIF message is sent to the server(s) when the
339
+ * WSJT-X user accepts the "Log QSO" dialog by clicking the "OK"
340
+ * button.
341
+ *
342
+ * See
343
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l423).
344
+ */
345
+ interface WsjtxLoggedAdif {
346
+ /** WSJT-X client name */
347
+ id: string;
348
+ /** ADIF encoded QSO data */
349
+ adif: string;
350
+ }
351
+ /**
352
+ * The server may send this message at any time. The message
353
+ * specifies the background and foreground color that will be
354
+ * used to highlight the specified callsign in the decoded
355
+ * messages printed in the Band Activity panel.
356
+ *
357
+ * See
358
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l444).
359
+ */
360
+ interface WsjtxHighlightCallsign {
361
+ /** WSJT-X client name */
362
+ id: string;
363
+ /** Which callsign to highlight */
364
+ callsign: string;
365
+ /** Background color. All CSS Color Module Level 4 formats should be valid.
366
+ * See https://www.w3.org/TR/css-color-4/ */
367
+ backgroundColor: string;
368
+ /** Foreground color. All CSS Color Module Level 4 formats should be valid.
369
+ * See https://www.w3.org/TR/css-color-4/ */
370
+ foregroundColor: string;
371
+ /** The "Highlight last" field allows the sender to request that
372
+ * all instances of "Callsign" in the last period only, instead
373
+ * of all instances in all periods, be highlighted. */
374
+ highlightLast: boolean;
375
+ /** Whether to reset the highlighting to default (overrides background and foreground colors) */
376
+ reset: boolean;
377
+ }
378
+ /**
379
+ * The server may send this message at any time. The message
380
+ * specifies the name of the configuration to switch to. The new
381
+ * configuration must exist.
382
+ *
383
+ * See
384
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l445).
385
+ */
386
+ interface WsjtxSwitchConfiguration {
387
+ /** WSJT-X client name */
388
+ id: string;
389
+ /** New configuration set to use (must already exist) */
390
+ configurationName: string;
391
+ }
392
+ /**
393
+ * The server may send this message at any time. The message
394
+ * specifies various configuration options. For utf8 string
395
+ * fields an empty value implies no change, for the quint32 Rx DF
396
+ * and Frequency Tolerance fields the maximum quint32 value
397
+ * implies no change. Invalid or unrecognized values will be
398
+ * silently ignored.
399
+ *
400
+ * See
401
+ * [WSJT-X source](https://sourceforge.net/p/wsjt/wsjtx/ci/wsjtx-2.5.2/tree/Network/NetworkMessage.hpp#l479).
402
+ */
403
+ interface WsjtxConfigure {
404
+ /** WSJT-X client name */
405
+ id: string;
406
+ /** Which protocol to decode and send */
407
+ mode: string;
408
+ frequencyTolerance: number;
409
+ /** Which sub-protocol to decode and send */
410
+ submode: string;
411
+ fastMode: boolean;
412
+ /** Which protocol to decode and send */
413
+ trPeriod: number;
414
+ /** Receive delta (above dial) frequency in hertz(?) */
415
+ rxDF: number;
416
+ /** The remote station's callsign */
417
+ dxCall: string;
418
+ /** The remote station's Maidenhead grid */
419
+ dxGrid: string;
420
+ /** Regenerate the standard messages */
421
+ generateMessages: boolean;
422
+ }
423
+
424
+ declare class WsjtxService {
425
+ private messages;
426
+ /** Whether we're getting any messages from WSJT-X. */
427
+ readonly connected$: BehaviorSubject<boolean>;
428
+ /** Subject for listening to WSJT-X "Heartbeat" messages. */
429
+ readonly heartbeat$: ReplaySubject<WsjtxHeartbeat | null>;
430
+ /** Subject for listening to WSJT-X "Status" messages. */
431
+ readonly status$: ReplaySubject<WsjtxStatus | null>;
432
+ /** Subject for listening to WSJT-X "Decode" messages. */
433
+ readonly decode$: Subject<WsjtxDecode>;
434
+ /** Subject for listening to WSJT-X "Clear" messages. */
435
+ readonly clear$: Subject<WsjtxClear>;
436
+ /** Subject for listening to WSJT-X "QsoLogged" messages. */
437
+ readonly qsoLogged$: Subject<WsjtxQsoLogged>;
438
+ /** Subject for listening to WSJT-X "Close" messages. */
439
+ readonly close$: Subject<WsjtxClose>;
440
+ /** Subject for listening to WSJT-X "WsprDecode" messages. */
441
+ readonly wsprDecode$: Subject<WsjtxWsprDecode>;
442
+ /** Subject for listening to WSJT-X "LoggedAdif" messages. */
443
+ readonly loggedAdif$: Subject<WsjtxLoggedAdif>;
444
+ private wsjtxId;
445
+ constructor(messages: AgentMessageService);
446
+ private setupBehaviors;
447
+ private handleMessage;
448
+ /** Send a command to WSJT-X to clear the Band Activity window. */
449
+ clearBandActivity(): void;
450
+ /** Send a command to WSJT-X to clear the Rx Frequency window. */
451
+ clearRxFreqWindow(): void;
452
+ /** Send a command to WSJT-X to clear the Band Activity and Rx Frequency windows. */
453
+ clearAll(): void;
454
+ /** Send a command to WSJT-X to replay messages. Useful for a fresh client that wants to hear
455
+ * previous WSJT-X decodes. */
456
+ replay(): void;
457
+ /** Send a command to WSJT-X to halt any transmissions immediately. */
458
+ haltTxNow(): void;
459
+ /** Send a command to WSJT-X to stop auto-transmitting after finishing the current round. */
460
+ haltTxAfterCurrent(): void;
461
+ /** Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ. */
462
+ reply(decode: WsjtxDecode): void;
463
+ /** Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ. */
464
+ highlightCallsign(highlightMsg: WsjtxHighlightCallsign): void;
465
+ /**
466
+ * Send a command to WSJT-X to transmit the given free text. If the text is too long to be
467
+ * encoded in a single message, it may be silently truncated. */
468
+ sendFreeText(freeText: WsjtxFreeText): void;
469
+ /** Send a command to WSJT-X to set the local station's Maidenhead grid. This is temporary,
470
+ * lasting only as long as WSJT-X is running. */
471
+ setLocation(grid: string): void;
472
+ /** Send a command to WSJT-X to switch to the named configuration. */
473
+ switchConfiguration(configName: string): void;
474
+ /** Send a command to WSJT-X to set the given configuration parameters. */
475
+ configure(config: WsjtxConfigure): void;
476
+ /** Given a decode message, format a string the same way as displayed in the WSJT-X Band
477
+ * Activity/Rx Frequency windows. */
478
+ static formatDecode(msg: WsjtxDecode): string;
479
+ /** Given a time in milliseconds since midnight UTC, format as HHMMSS. */
480
+ static formatTime(time: number): string;
481
+ static ɵfac: i0.ɵɵFactoryDeclaration<WsjtxService, never>;
482
+ static ɵprov: i0.ɵɵInjectableDeclaration<WsjtxService>;
483
+ }
484
+
485
+ declare class AgentService {
486
+ private messages;
487
+ private hamlibService;
488
+ private wsjtxService;
489
+ /** Whether we're connected to the agent. */
490
+ readonly connectedState$: BehaviorSubject<boolean>;
491
+ /**
492
+ * Whether we're getting any messages from WSJT-X.
493
+ *
494
+ * @deprecated Use {@link WsjtxService.connected$} instead.
495
+ */
496
+ readonly wsjtxState$: BehaviorSubject<boolean>;
497
+ /**
498
+ * Subject for listening to WSJT-X "Heartbeat" messages.
499
+ *
500
+ * @deprecated Use {@link WsjtxService.heartbeat$} instead.
501
+ */
502
+ readonly wsjtxHeartbeat$: ReplaySubject<WsjtxHeartbeat | null>;
503
+ /**
504
+ * Subject for listening to WSJT-X "Status" messages.
505
+ *
506
+ * @deprecated Use {@link WsjtxService.status$} instead.
507
+ */
508
+ readonly wsjtxStatus$: ReplaySubject<WsjtxStatus | null>;
509
+ /**
510
+ * Subject for listening to WSJT-X "Decode" messages.
511
+ *
512
+ * @deprecated Use {@link WsjtxService.decode$} instead.
513
+ */
514
+ readonly wsjtxDecode$: Subject<WsjtxDecode>;
515
+ /**
516
+ * Subject for listening to WSJT-X "Clear" messages.
517
+ *
518
+ * @deprecated Use {@link WsjtxService.clear$} instead.
519
+ */
520
+ readonly wsjtxClear$: Subject<WsjtxClear>;
521
+ /**
522
+ * Subject for listening to WSJT-X "QsoLogged" messages.
523
+ *
524
+ * @deprecated Use {@link WsjtxService.qsoLogged$} instead.
525
+ */
526
+ readonly wsjtxQsoLogged$: Subject<WsjtxQsoLogged>;
527
+ /**
528
+ * Subject for listening to WSJT-X "Close" messages.
529
+ *
530
+ * @deprecated Use {@link WsjtxService.close$} instead.
531
+ */
532
+ readonly wsjtxClose$: Subject<WsjtxClose>;
533
+ /**
534
+ * Subject for listening to WSJT-X "WsprDecode" messages.
535
+ *
536
+ * @deprecated Use {@link WsjtxService.wsprDecode$} instead.
537
+ */
538
+ readonly wsjtxWsprDecode$: Subject<WsjtxWsprDecode>;
539
+ /**
540
+ * Subject for listening to WSJT-X "LoggedAdif" messages.
541
+ *
542
+ * @deprecated Use {@link WsjtxService.loggedAdif$} instead.
543
+ */
544
+ readonly wsjtxLoggedAdif$: Subject<WsjtxLoggedAdif>;
545
+ /**
546
+ * Whether we're getting any messages from Hamlib.
547
+ *
548
+ * @deprecated Use {@link HamlibService.connected$} instead.
549
+ */
550
+ readonly hamlibState$: BehaviorSubject<boolean>;
551
+ /**
552
+ * Subject for listening to Hamlib "RigState" messages.
553
+ *
554
+ * @deprecated Use {@link HamlibService.rigState$} instead.
555
+ */
556
+ readonly hamlibRigState$: BehaviorSubject<HamlibRigState | null>;
557
+ private readonly defaultAgentHost;
558
+ private readonly defaultAgentPort;
559
+ private readonly localStorageHostKey;
560
+ private readonly localStoragePortKey;
561
+ private agentHost;
562
+ private agentPort;
563
+ private agentWebSocketSubject;
564
+ private agentWebsocketSubscription;
565
+ constructor(messages: AgentMessageService, hamlibService: HamlibService, wsjtxService: WsjtxService);
566
+ init(): void;
567
+ /** Connect (or reconnect) the websocket to the kel-agent server. */
568
+ connect(): void;
569
+ /** Get the currently configured kel-agent host. */
570
+ getHost(): string;
571
+ /** Get the currently configured kel-agent port. */
572
+ getPort(): number;
573
+ /** Set the kel-agent host. */
574
+ setHost(host: string): void;
575
+ /** Set the kel-agent port. */
576
+ setPort(port: number): void;
577
+ private send;
578
+ /**
579
+ * Send a command to WSJT-X to clear the Band Activity window.
580
+ *
581
+ * @deprecated Use {@link WsjtxService.clearBandActivity} instead.
582
+ */
583
+ sendWsjtxClearBandActivity(): void;
584
+ /**
585
+ * Send a command to WSJT-X to clear the Rx Frequency window.
586
+ *
587
+ * @deprecated Use {@link WsjtxService.clearRxFreqWindow} instead.
588
+ */
589
+ sendWsjtxClearRxFreqWindow(): void;
590
+ /**
591
+ * Send a command to WSJT-X to clear the Band Activity and Rx Frequency windows.
592
+ *
593
+ * @deprecated Use {@link WsjtxService.clearAll} instead.
594
+ */
595
+ sendWsjtxClearAll(): void;
596
+ /**
597
+ * Send a command to WSJT-X to replay messages. Useful for a fresh client that wants to hear
598
+ * previous WSJT-X decodes.
599
+ *
600
+ * @deprecated Use {@link WsjtxService.replay} instead.
601
+ */
602
+ sendWsjtxReplay(): void;
603
+ /**
604
+ * Send a command to WSJT-X to halt any transmissions immediately.
605
+ *
606
+ * @deprecated Use {@link WsjtxService.haltTxNow} instead.
607
+ */
608
+ sendWsjtxHaltTxNow(): void;
609
+ /** Send a command to WSJT-X to stop auto-transmitting after finishing the current round.
610
+ *
611
+ * @deprecated Use {@link WsjtxService.haltTxAfterCurrent} instead.
612
+ */
613
+ sendWsjtxHaltTxAfterCurrent(): void;
614
+ /**
615
+ * Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ.
616
+ *
617
+ * @deprecated Use {@link WsjtxService.reply} instead.
618
+ */
619
+ sendWsjtxReply(decode: WsjtxDecode): void;
620
+ /**
621
+ * Send a command to WSJT-X to reply to the given decode. The message must include CQ or QRZ.
622
+ *
623
+ * @deprecated Use {@link WsjtxService.highlightCallsign} instead.
624
+ */
625
+ sendWsjtxHighlightCallsign(highlightMsg: WsjtxHighlightCallsign): void;
626
+ /**
627
+ * Given a decode message, format a string the same way as displayed in the WSJT-X Band
628
+ * Activity/Rx Frequency windows.
629
+ *
630
+ * @deprecated Use {@link WsjtxService.formatDecode} instead.
631
+ */
632
+ static formatDecode(msg: WsjtxDecode): string;
633
+ static ɵfac: i0.ɵɵFactoryDeclaration<AgentService, never>;
634
+ static ɵprov: i0.ɵɵInjectableDeclaration<AgentService>;
635
+ }
636
+
637
+ export { AgentMessageService, AgentService, HamlibService, WsjtxService };
638
+ export type { HamlibRigState, WsjtxClear, WsjtxClose, WsjtxConfigure, WsjtxDecode, WsjtxFreeText, WsjtxHaltTx, WsjtxHeartbeat, WsjtxHighlightCallsign, WsjtxLocation, WsjtxLoggedAdif, WsjtxQsoLogged, WsjtxReplay, WsjtxReply, WsjtxStatus, WsjtxSwitchConfiguration, WsjtxWsprDecode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-kel-agent",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "license": "Apache-2.0",
5
5
  "homepage": "https://github.com/k0swe/ngx-kel-agent/tree/main/projects/ngx-kel-agent#readme",
6
6
  "repository": {
@@ -1,9 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class AgentMessageService {
4
- rxMessage$: Subject<any>;
5
- txMessage$: Subject<any>;
6
- constructor();
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AgentMessageService, never>;
8
- static ɵprov: i0.ɵɵInjectableDeclaration<AgentMessageService>;
9
- }