@qandq/cloud-gcs-core 1.2.65-1-1180 → 1.2.65-2-1180
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.
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
export interface IProviderApi {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Scans the provider topics for 5 seconds and returns all unique topic names discovered
|
|
4
|
+
* under the pattern `providerCode/S/aircraftName/+`.
|
|
5
|
+
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
6
|
+
* without starting a new scan.
|
|
7
|
+
*/
|
|
8
|
+
getProviderTopics(providerCode: string, aircraftName: string): Promise<string[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Scans all provider topics for 5 seconds and returns all unique topic names discovered
|
|
11
|
+
* under the pattern `providerCode/S/+/+`, regardless of aircraft.
|
|
12
|
+
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
13
|
+
* without starting a new scan.
|
|
14
|
+
*/
|
|
15
|
+
getAllProviderTopics(providerCode: string): Promise<string[]>;
|
|
16
|
+
/**
|
|
17
|
+
* Subscribes to the given provider topic for 5 seconds and resolves with the last received payload.
|
|
18
|
+
* If called again with the same topic while a scan is already in progress, returns the same
|
|
19
|
+
* in-flight promise without starting a new subscription.
|
|
20
|
+
* Resolves with null if no payload was received within the 5 second window.
|
|
21
|
+
*/
|
|
3
22
|
getProviderTopicPayload(providerTopic: string): Promise<any>;
|
|
4
23
|
}
|
package/package.json
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
export interface IProviderApi {
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Scans the provider topics for 5 seconds and returns all unique topic names discovered
|
|
4
|
+
* under the pattern `providerCode/S/aircraftName/+`.
|
|
5
|
+
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
6
|
+
* without starting a new scan.
|
|
7
|
+
*/
|
|
8
|
+
getProviderTopics(providerCode: string, aircraftName: string): Promise<string[]>;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Scans all provider topics for 5 seconds and returns all unique topic names discovered
|
|
12
|
+
* under the pattern `providerCode/S/+/+`, regardless of aircraft.
|
|
13
|
+
* If called again while a scan is already in progress, returns the same in-flight promise
|
|
14
|
+
* without starting a new scan.
|
|
15
|
+
*/
|
|
16
|
+
getAllProviderTopics(providerCode: string): Promise<string[]>;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Subscribes to the given provider topic for 5 seconds and resolves with the last received payload.
|
|
20
|
+
* If called again with the same topic while a scan is already in progress, returns the same
|
|
21
|
+
* in-flight promise without starting a new subscription.
|
|
22
|
+
* Resolves with null if no payload was received within the 5 second window.
|
|
23
|
+
*/
|
|
3
24
|
getProviderTopicPayload(providerTopic: string): Promise<any>;
|
|
4
25
|
}
|