@nsshunt/stsinstrumentmanagerclient 1.0.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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/index.cjs +5836 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +5836 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +62 -0
- package/types/commonTypes.d.ts +249 -0
- package/types/commonTypes.d.ts.map +1 -0
- package/types/globalServiceDefinitions.d.ts +57 -0
- package/types/globalServiceDefinitions.d.ts.map +1 -0
- package/types/index.d.ts +11 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.test.d.ts +2 -0
- package/types/index.test.d.ts.map +1 -0
- package/types/publish/agentinstrumentcontroller.d.ts +10 -0
- package/types/publish/agentinstrumentcontroller.d.ts.map +1 -0
- package/types/publish/middleware/requestLoggerMiddleware.d.ts +32 -0
- package/types/publish/middleware/requestLoggerMiddleware.d.ts.map +1 -0
- package/types/publish/publishInstrumentController.d.ts +41 -0
- package/types/publish/publishInstrumentController.d.ts.map +1 -0
- package/types/publish/publishInstruments.d.ts +19 -0
- package/types/publish/publishInstruments.d.ts.map +1 -0
- package/types/publish/publishers/publishTransportRESTServer.d.ts +9 -0
- package/types/publish/publishers/publishTransportRESTServer.d.ts.map +1 -0
- package/types/publish/stsPluginKeys.d.ts +2 -0
- package/types/publish/stsPluginKeys.d.ts.map +1 -0
- package/types/subscribe/observabilityPayloadTransformer.d.ts +33 -0
- package/types/subscribe/observabilityPayloadTransformer.d.ts.map +1 -0
- package/types/subscribe/observabilitymodelutils.d.ts +46 -0
- package/types/subscribe/observabilitymodelutils.d.ts.map +1 -0
- package/types/subscribe/restClientSubscriber.d.ts +10 -0
- package/types/subscribe/restClientSubscriber.d.ts.map +1 -0
- package/types/subscribe/socketClientSubscriber.d.ts +20 -0
- package/types/subscribe/socketClientSubscriber.d.ts.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observabilitymodelutils.d.ts","sourceRoot":"","sources":["../../src/subscribe/observabilitymodelutils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,KAAK,EAAc,MAAM,2BAA2B,CAAA;AACxG,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAIhI,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,WAAW,UAAU;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,wBAAwB;IACrC,GAAG,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,wBAAwB;IACrC,GAAG,EAAE,GAAG,CAAA;CACX;AAED,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,mBAAmB,EAAE,CAAA;IACjC,mBAAmB,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,oBAAoB,EAAE,CAAA;CAC/B;AAED,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,kBAAkB,GAAG,cAAc,CAAC,CAAA;IACnI,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,UAAU,CAAA;CACvB;AAED,qBAAa,uBAAuB;IAChC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;IAkB7C,MAAM,CAAC,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,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AAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI;IAuB5G,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI;CA0B7G"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ISubscriptions, IObservabilitySocketIOSubscriberOptions } from './../commonTypes';
|
|
2
|
+
export declare class RESTClientSubscriber {
|
|
3
|
+
#private;
|
|
4
|
+
KeepAliveAckBoundFunction: any;
|
|
5
|
+
constructor(options: IObservabilitySocketIOSubscriberOptions);
|
|
6
|
+
Subscribe(subscriptions: ISubscriptions): Promise<void>;
|
|
7
|
+
UnSubscribe(subscriptions: ISubscriptions): void;
|
|
8
|
+
UpdateModelCursor: (subscriptions: ISubscriptions) => void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=restClientSubscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restClientSubscriber.d.ts","sourceRoot":"","sources":["../../src/subscribe/restClientSubscriber.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiB,cAAc,EAA2C,uCAAuC,EAAE,MAAM,kBAAkB,CAAA;AAgBlJ,qBAAa,oBAAoB;;IAI7B,yBAAyB,EAAE,GAAG,CAAC;gBAGnB,OAAO,EAAE,uCAAuC;IAYtD,SAAS,CAAC,aAAa,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAc7D,WAAW,CAAC,aAAa,EAAE,cAAc;IAQzC,iBAAiB,GAAI,eAAe,cAAc,KAAG,IAAI,CAKxD;CAyMJ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Socket } from 'socket.io-client';
|
|
2
|
+
import { type ISubscriptions, ClientToServerEvents, ServerToClientEvents, ISubscription } from './../commonTypes';
|
|
3
|
+
import { SocketIoClient, STSDefaultClientToServerEvents, STSDefaultServerToClientEvents } from '@nsshunt/stssocketioutils';
|
|
4
|
+
import { IObservabilitySubscriberManagerOptions } from './../commonTypes';
|
|
5
|
+
export declare class SocketClientSubscriber extends SocketIoClient<ServerToClientEvents, ClientToServerEvents> {
|
|
6
|
+
#private;
|
|
7
|
+
protected subscriptions: Record<string, ISubscription>;
|
|
8
|
+
constructor(options: IObservabilitySubscriberManagerOptions);
|
|
9
|
+
get id(): string;
|
|
10
|
+
get logPrefix(): string;
|
|
11
|
+
UpdateModelCursor: (subscriptions: ISubscriptions) => void;
|
|
12
|
+
Subscribe(subscriptions: ISubscriptions): void;
|
|
13
|
+
UnSubscribe(subscriptions: ISubscriptions): void;
|
|
14
|
+
protected SocketConnect(socket: Socket<STSDefaultServerToClientEvents, STSDefaultClientToServerEvents>): void;
|
|
15
|
+
protected SocketError(error: Error): void;
|
|
16
|
+
protected SetupSocketEvents(socket: Socket<STSDefaultServerToClientEvents, STSDefaultClientToServerEvents>): void;
|
|
17
|
+
protected SocketConnectError(error: Error): void;
|
|
18
|
+
protected SocketDisconnect(reason: string): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=socketClientSubscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socketClientSubscriber.d.ts","sourceRoot":"","sources":["../../src/subscribe/socketClientSubscriber.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEzC,OAAO,EAAE,KAAK,cAAc,EAAE,oBAAoB,EAAwB,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAMvI,OAAO,EAAE,cAAc,EAAE,8BAA8B,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAA;AAI1H,OAAO,EAAE,sCAAsC,EAAE,MAAM,kBAAkB,CAAA;AAIzE,qBAAa,sBAAuB,SAAQ,cAAc,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;;IAKlG,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAO;gBAEjD,OAAO,EAAE,sCAAsC;IAa3D,IAAI,EAAE,WAEL;IAED,IAAI,SAAS,WAMZ;IAED,iBAAiB,GAAI,eAAe,cAAc,KAAG,IAAI,CAIxD;IAED,SAAS,CAAC,aAAa,EAAE,cAAc;IAqBvC,WAAW,CAAC,aAAa,EAAE,cAAc;IAoBzC,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,8BAA8B,EAAE,8BAA8B,CAAC,GAAG,IAAI;IAK7G,SAAS,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIzC,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,MAAM,CAAC,8BAA8B,EAAE,8BAA8B,CAAC,GAAG,IAAI;IAiBjH,SAAS,CAAC,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIhD,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAGnD"}
|