@m4l/gclick-realtime 1.10.0 → 1.11.0
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/consumer/RealTimeConsumerContext.d.ts +10 -0
- package/consumer/RealTimeConsumerContext.d.ts.map +1 -0
- package/consumer/RealTimeConsumerContext.js +128 -0
- package/consumer/index.d.ts +4 -0
- package/consumer/index.d.ts.map +1 -0
- package/consumer/index.js +7 -0
- package/consumer/types.d.ts +47 -0
- package/consumer/types.d.ts.map +1 -0
- package/consumer/useRealTimeConsumer.d.ts.map +1 -0
- package/{web/consumer → consumer}/useRealTimeConsumer.js +2 -2
- package/contracts/deviceData.d.ts +19 -22
- package/contracts/deviceData.d.ts.map +1 -1
- package/contracts/deviceDetail.d.ts +0 -2
- package/contracts/deviceDetail.d.ts.map +1 -1
- package/contracts/index.d.ts +1 -1
- package/contracts/index.d.ts.map +1 -1
- package/dummy/catalogs/baseDeviceTemplate.d.ts.map +1 -1
- package/dummy/catalogs/baseDeviceTemplate.js +4 -35
- package/dummy/catalogs/blueprints.d.ts +9 -54
- package/dummy/catalogs/blueprints.d.ts.map +1 -1
- package/dummy/catalogs/blueprints.js +25 -42
- package/dummy/catalogs/departments.d.ts +10 -0
- package/dummy/catalogs/departments.d.ts.map +1 -0
- package/dummy/catalogs/departments.js +43 -0
- package/dummy/index.d.ts +3 -3
- package/dummy/index.d.ts.map +1 -1
- package/dummy/index.js +28 -28
- package/dummy/shared/types.d.ts +2 -4
- package/dummy/shared/types.d.ts.map +1 -1
- package/dummy/{runtime → simulation}/simulation.d.ts +1 -1
- package/dummy/simulation/simulation.d.ts.map +1 -0
- package/dummy/{runtime → simulation}/simulation.js +333 -423
- package/dummy/{runtime/dummy.d.ts → source-data/SourceDataDummy.d.ts} +8 -3
- package/dummy/source-data/SourceDataDummy.d.ts.map +1 -0
- package/dummy/{runtime/dummy.js → source-data/SourceDataDummy.js} +117 -128
- package/mobile/index.d.ts +4 -0
- package/mobile/index.d.ts.map +1 -0
- package/mobile/index.js +23 -0
- package/mobile/resourceTypes.d.ts +48 -0
- package/mobile/resourceTypes.d.ts.map +1 -0
- package/mobile/resourceTypes.js +54 -0
- package/mobile/runtime/atmosphere.d.ts +10 -0
- package/mobile/runtime/atmosphere.d.ts.map +1 -0
- package/mobile/runtime/atmosphere.js +16 -0
- package/mobile/runtime/dummy.d.ts +11 -0
- package/mobile/runtime/dummy.d.ts.map +1 -0
- package/mobile/runtime/dummy.js +16 -0
- package/mobile/runtime/index.d.ts +11 -0
- package/mobile/runtime/index.d.ts.map +1 -0
- package/mobile/runtime/runtimeRegistry.d.ts +17 -0
- package/mobile/runtime/runtimeRegistry.d.ts.map +1 -0
- package/mobile/runtime/runtimeRegistry.js +24 -0
- package/mobile/runtime/sourceDataFactory.d.ts +6 -0
- package/mobile/runtime/sourceDataFactory.d.ts.map +1 -0
- package/mobile/runtime/sourceDataFactory.js +29 -0
- package/mobile/runtime/types.d.ts +8 -0
- package/mobile/runtime/types.d.ts.map +1 -0
- package/package.json +37 -1
- package/payload/mergeDevicePayloadWithUpdatedAtGuard.d.ts +1 -1
- package/payload/mergeDevicePayloadWithUpdatedAtGuard.d.ts.map +1 -1
- package/rt_alarms/constants.d.ts +6 -0
- package/rt_alarms/constants.d.ts.map +1 -0
- package/rt_alarms/constants.js +7 -0
- package/rt_alarms/index.d.ts +15 -0
- package/rt_alarms/index.d.ts.map +1 -0
- package/rt_alarms/index.js +18 -0
- package/rt_devices/constants.d.ts +4 -0
- package/rt_devices/constants.d.ts.map +1 -0
- package/rt_devices/constants.js +5 -0
- package/rt_devices/index.d.ts +22 -0
- package/rt_devices/index.d.ts.map +1 -0
- package/rt_devices/index.js +150 -0
- package/rt_devices/resourceTypeMergeStrategies.d.ts +12 -0
- package/rt_devices/resourceTypeMergeStrategies.d.ts.map +1 -0
- package/rt_devices/resourceTypeMergeStrategies.js +19 -0
- package/shared/atmosphereHost.d.ts +5 -0
- package/shared/atmosphereHost.d.ts.map +1 -0
- package/shared/atmosphereHost.js +7 -0
- package/shared/index.d.ts +5 -0
- package/shared/index.d.ts.map +1 -0
- package/shared/index.js +11 -0
- package/shared/performanceMetrics.d.ts +64 -0
- package/shared/performanceMetrics.d.ts.map +1 -0
- package/shared/performanceMetrics.js +73 -0
- package/shared/runtimeRegistry.d.ts +17 -0
- package/shared/runtimeRegistry.d.ts.map +1 -0
- package/shared/runtimeRegistry.js +27 -0
- package/shared/runtimeResourceTypesKey.d.ts +14 -0
- package/shared/runtimeResourceTypesKey.d.ts.map +1 -0
- package/shared/runtimeResourceTypesKey.js +18 -0
- package/shared/startupSnapshots.d.ts +28 -0
- package/shared/startupSnapshots.d.ts.map +1 -0
- package/shared/startupSnapshots.js +29 -0
- package/web/diagnostics/performanceMetrics.d.ts +34 -0
- package/web/diagnostics/performanceMetrics.d.ts.map +1 -0
- package/web/diagnostics/performanceMetrics.js +61 -0
- package/web/host/devicesResourceType.d.ts +3 -11
- package/web/host/devicesResourceType.d.ts.map +1 -1
- package/web/host/devicesResourceType.js +58 -171
- package/web/host/hostRuntime.d.ts +6 -8
- package/web/host/hostRuntime.d.ts.map +1 -1
- package/web/host/hostRuntime.js +29 -38
- package/web/host/index.d.ts +2 -2
- package/web/host/index.d.ts.map +1 -1
- package/web/host/launchContract.d.ts +19 -13
- package/web/host/launchContract.d.ts.map +1 -1
- package/web/host/launchContract.js +82 -76
- package/web/index.d.ts +2 -7
- package/web/index.d.ts.map +1 -1
- package/web/index.js +34 -62
- package/web/runtime/atmosphere.d.ts +12 -0
- package/web/runtime/atmosphere.d.ts.map +1 -0
- package/web/runtime/atmosphere.js +22 -0
- package/web/runtime/dummy.d.ts +11 -0
- package/web/runtime/dummy.d.ts.map +1 -0
- package/web/runtime/dummy.js +22 -0
- package/web/runtime/index.d.ts +8 -9
- package/web/runtime/index.d.ts.map +1 -1
- package/web/runtime/performanceMetricReporter.d.ts +8 -0
- package/web/runtime/performanceMetricReporter.d.ts.map +1 -0
- package/web/runtime/performanceMetricReporter.js +10 -0
- package/web/runtime/runtimeRegistry.d.ts +21 -5
- package/web/runtime/runtimeRegistry.d.ts.map +1 -1
- package/web/runtime/runtimeRegistry.js +22 -7
- package/web/runtime/sourceDataFactory.d.ts +7 -0
- package/web/runtime/sourceDataFactory.d.ts.map +1 -0
- package/web/runtime/sourceDataFactory.js +26 -0
- package/web/{producer → runtime}/types.d.ts +2 -7
- package/web/runtime/types.d.ts.map +1 -0
- package/dummy/catalogs/group.d.ts +0 -10
- package/dummy/catalogs/group.d.ts.map +0 -1
- package/dummy/catalogs/group.js +0 -46
- package/dummy/runtime/dummy.d.ts.map +0 -1
- package/dummy/runtime/simulation.d.ts.map +0 -1
- package/libs/observability/mf/src/browserRuntimeHandles.js +0 -350
- package/libs/observability/mf/src/diagnosticPolicies/catalog.js +0 -12
- package/libs/observability/mf/src/diagnosticPolicies/contracts.js +0 -8
- package/libs/observability/mf/src/diagnosticPolicies/host.js +0 -127
- package/libs/observability/mf/src/diagnosticPolicies/operativeMyGpsDevices.js +0 -79
- package/web/consumer/RealTimeConsumerContext.d.ts +0 -10
- package/web/consumer/RealTimeConsumerContext.d.ts.map +0 -1
- package/web/consumer/RealTimeConsumerContext.js +0 -156
- package/web/consumer/index.d.ts +0 -6
- package/web/consumer/index.d.ts.map +0 -1
- package/web/consumer/store.d.ts +0 -10
- package/web/consumer/store.d.ts.map +0 -1
- package/web/consumer/store.helpers.d.ts +0 -62
- package/web/consumer/store.helpers.d.ts.map +0 -1
- package/web/consumer/store.helpers.js +0 -141
- package/web/consumer/store.js +0 -227
- package/web/consumer/types.d.ts +0 -161
- package/web/consumer/types.d.ts.map +0 -1
- package/web/consumer/useRealTimeConsumer.d.ts.map +0 -1
- package/web/host/startupSnapshots.d.ts +0 -45
- package/web/host/startupSnapshots.d.ts.map +0 -1
- package/web/host/startupSnapshots.js +0 -103
- package/web/producer/RealTimeProducerContext.d.ts +0 -9
- package/web/producer/RealTimeProducerContext.d.ts.map +0 -1
- package/web/producer/RealTimeProducerContext.js +0 -16
- package/web/producer/index.d.ts +0 -7
- package/web/producer/index.d.ts.map +0 -1
- package/web/producer/sourceDataFactory.d.ts +0 -13
- package/web/producer/sourceDataFactory.d.ts.map +0 -1
- package/web/producer/sourceDataFactory.js +0 -32
- package/web/producer/store.d.ts +0 -7
- package/web/producer/store.d.ts.map +0 -1
- package/web/producer/store.js +0 -5
- package/web/producer/types.d.ts.map +0 -1
- package/web/producer/useRealTimeProducer.d.ts +0 -7
- package/web/producer/useRealTimeProducer.d.ts.map +0 -1
- package/web/producer/useRealTimeProducer.js +0 -15
- package/web/runtime/resourceTypeMergeStrategies.d.ts +0 -10
- package/web/runtime/resourceTypeMergeStrategies.d.ts.map +0 -1
- package/web/runtime/resourceTypeMergeStrategies.js +0 -19
- package/web/runtime/runtime.d.ts +0 -16
- package/web/runtime/runtime.d.ts.map +0 -1
- package/web/runtime/runtime.js +0 -28
- package/web/runtime/runtimeAtmosphereOnly.d.ts +0 -11
- package/web/runtime/runtimeAtmosphereOnly.d.ts.map +0 -1
- package/web/runtime/runtimeAtmosphereOnly.js +0 -28
- package/web/runtime/runtimeRegistry.shared.d.ts +0 -23
- package/web/runtime/runtimeRegistry.shared.d.ts.map +0 -1
- package/web/runtime/runtimeRegistry.shared.js +0 -47
- package/web/runtime/runtimeRegistryAtmosphereOnly.d.ts +0 -9
- package/web/runtime/runtimeRegistryAtmosphereOnly.d.ts.map +0 -1
- package/web/runtime/runtimeRegistryAtmosphereOnly.js +0 -13
- package/web/shared/constants.d.ts +0 -11
- package/web/shared/constants.d.ts.map +0 -1
- package/web/shared/constants.js +0 -11
- package/web/shared/index.d.ts +0 -3
- package/web/shared/index.d.ts.map +0 -1
- package/web/shared/performanceMetrics.d.ts +0 -48
- package/web/shared/performanceMetrics.d.ts.map +0 -1
- package/web/shared/performanceMetrics.js +0 -70
- package/web/shared/runtimeTypes.d.ts +0 -4
- package/web/shared/runtimeTypes.d.ts.map +0 -1
- /package/{web/consumer → consumer}/useRealTimeConsumer.d.ts +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RealTimeProducerStoreStateWithActions } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Select one slice from the current realtime producer store.
|
|
4
|
-
*/
|
|
5
|
-
export declare function useRealTimeProducer<T>(selector: (state: RealTimeProducerStoreStateWithActions) => T, equalityFn?: (left: T, right: T) => boolean): T;
|
|
6
|
-
export default useRealTimeProducer;
|
|
7
|
-
//# sourceMappingURL=useRealTimeProducer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRealTimeProducer.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/producer/useRealTimeProducer.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,SAAS,CAAC;AAErE;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,qCAAqC,KAAK,CAAC,EAC7D,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAO,GAC1C,CAAC,CAUH;AAED,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r as t } from "../../_virtual/index.js";
|
|
2
|
-
import { useStore as u } from "../../node_modules/zustand/esm/index.js";
|
|
3
|
-
import { RealTimeProducerContext as i } from "./RealTimeProducerContext.js";
|
|
4
|
-
function a(r, o) {
|
|
5
|
-
const e = t.useContext(i);
|
|
6
|
-
if (!e)
|
|
7
|
-
throw new Error(
|
|
8
|
-
"useRealTimeProducer must be used inside RealTimeProducerContext"
|
|
9
|
-
);
|
|
10
|
-
return u(e, r, o);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
a as default,
|
|
14
|
-
a as useRealTimeProducer
|
|
15
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RealTimeResourceSourceMechanismConfigBase } from '../shared/runtimeTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Attach the default GClick merge strategy for one resource type when the caller did not provide one.
|
|
4
|
-
*/
|
|
5
|
-
export declare function withGClickResourceTypeMergeStrategy<TConfig extends RealTimeResourceSourceMechanismConfigBase>(config: TConfig): TConfig;
|
|
6
|
-
/**
|
|
7
|
-
* Attach default GClick merge strategies to all configured realtime resource types.
|
|
8
|
-
*/
|
|
9
|
-
export declare function withGClickResourceTypeMergeStrategies<TConfig extends RealTimeResourceSourceMechanismConfigBase>(resourceTypesConfig: TConfig[]): TConfig[];
|
|
10
|
-
//# sourceMappingURL=resourceTypeMergeStrategies.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resourceTypeMergeStrategies.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/resourceTypeMergeStrategies.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,yCAAyC,EAE1C,MAAM,wBAAwB,CAAC;AAShC;;GAEG;AACH,wBAAgB,mCAAmC,CACjD,OAAO,SAAS,yCAAyC,EACzD,MAAM,EAAE,OAAO,GAAG,OAAO,CAY1B;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CACnD,OAAO,SAAS,yCAAyC,EACzD,mBAAmB,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAE3C"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { mergeDevicePayloadWithUpdatedAtGuard as t } from "../../payload/mergeDevicePayloadWithUpdatedAtGuard.js";
|
|
2
|
-
import { EnumResourceTypesIds as a } from "../shared/constants.js";
|
|
3
|
-
const o = {
|
|
4
|
-
[a.devices]: t
|
|
5
|
-
};
|
|
6
|
-
function u(e) {
|
|
7
|
-
const r = o[e.resourceTypeId];
|
|
8
|
-
return !r || e.mergePayloadStrategy ? e : {
|
|
9
|
-
...e,
|
|
10
|
-
mergePayloadStrategy: r
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function y(e) {
|
|
14
|
-
return e.map(u);
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
y as withGClickResourceTypeMergeStrategies,
|
|
18
|
-
u as withGClickResourceTypeMergeStrategy
|
|
19
|
-
};
|
package/web/runtime/runtime.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RealtimeRuntime, RealTimeProducerTools } from '@m4l/realtime-runtime';
|
|
2
|
-
import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
3
|
-
import { RealTimeProducerStoreType } from '../producer/store';
|
|
4
|
-
export type { CreateRealtimeRuntimeProps, RealtimeRuntimeBundle, } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
5
|
-
/**
|
|
6
|
-
* GClick runtime object that keeps the neutral engine API plus the current compatibility fields.
|
|
7
|
-
*/
|
|
8
|
-
export interface GClickRealtimeRuntime extends RealtimeRuntime {
|
|
9
|
-
store: RealTimeProducerStoreType;
|
|
10
|
-
tools: RealTimeProducerTools;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Create one GClick runtime that supports every registered source mechanism.
|
|
14
|
-
*/
|
|
15
|
-
export declare function createRealtimeRuntime(props: CreateRealtimeRuntimeProps): GClickRealtimeRuntime;
|
|
16
|
-
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtime.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAKnC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAKnE,YAAY,EACV,0BAA0B,EAC1B,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,KAAK,EAAE,yBAAyB,CAAC;IACjC,KAAK,EAAE,qBAAqB,CAAC;CAC9B;AAyBD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,0BAA0B,GAChC,qBAAqB,CAevB"}
|
package/web/runtime/runtime.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { SourceDataFactory as o } from "../producer/sourceDataFactory.js";
|
|
2
|
-
import { createRealtimeRuntimeBundle as c } from "@m4l/realtime-runtime/web";
|
|
3
|
-
import { isRealtimePerformanceMetricsEnabled as i, recordRealtimePerformanceMetric as n } from "../shared/performanceMetrics.js";
|
|
4
|
-
import { withGClickResourceTypeMergeStrategies as a } from "./resourceTypeMergeStrategies.js";
|
|
5
|
-
function m(e) {
|
|
6
|
-
if (!(!e && !i()))
|
|
7
|
-
return (r, t) => {
|
|
8
|
-
n(r, t), e?.(r, t);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function s(e) {
|
|
12
|
-
const r = a(
|
|
13
|
-
e.resourceTypesConfig
|
|
14
|
-
);
|
|
15
|
-
return c(
|
|
16
|
-
{
|
|
17
|
-
...e,
|
|
18
|
-
resourceTypesConfig: r,
|
|
19
|
-
onPerformanceMetric: m(
|
|
20
|
-
e.onPerformanceMetric
|
|
21
|
-
)
|
|
22
|
-
},
|
|
23
|
-
o.createSourceDataFactory()
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
s as createRealtimeRuntime
|
|
28
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
2
|
-
import { RealTimeResourceSourceMechanismConfigAtmosphere } from '../shared/runtimeTypes';
|
|
3
|
-
import { GClickRealtimeRuntime } from './runtime';
|
|
4
|
-
export type CreateAtmosphereRealtimeRuntimeProps = Omit<CreateRealtimeRuntimeProps, 'resourceTypesConfig'> & {
|
|
5
|
-
resourceTypesConfig: RealTimeResourceSourceMechanismConfigAtmosphere[];
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Create one GClick runtime restricted to Atmosphere-backed resource types.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createAtmosphereRealtimeRuntime(props: CreateAtmosphereRealtimeRuntimeProps): GClickRealtimeRuntime;
|
|
11
|
-
//# sourceMappingURL=runtimeAtmosphereOnly.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeAtmosphereOnly.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeAtmosphereOnly.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EACV,+CAA+C,EAChD,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAKvD,MAAM,MAAM,oCAAoC,GAAG,IAAI,CACrD,0BAA0B,EAC1B,qBAAqB,CACtB,GAAG;IACF,mBAAmB,EAAE,+CAA+C,EAAE,CAAC;CACxE,CAAC;AAyBF;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,oCAAoC,GAC1C,qBAAqB,CAevB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createAtmosphereSourceDataFactory as o } from "@m4l/realtime-runtime";
|
|
2
|
-
import { createRealtimeRuntimeBundle as i } from "@m4l/realtime-runtime/web";
|
|
3
|
-
import { isRealtimePerformanceMetricsEnabled as c, recordRealtimePerformanceMetric as n } from "../shared/performanceMetrics.js";
|
|
4
|
-
import { withGClickResourceTypeMergeStrategies as m } from "./resourceTypeMergeStrategies.js";
|
|
5
|
-
function a(e) {
|
|
6
|
-
if (!(!e && !c()))
|
|
7
|
-
return (r, t) => {
|
|
8
|
-
n(r, t), e?.(r, t);
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function l(e) {
|
|
12
|
-
const r = m(
|
|
13
|
-
e.resourceTypesConfig
|
|
14
|
-
);
|
|
15
|
-
return i(
|
|
16
|
-
{
|
|
17
|
-
...e,
|
|
18
|
-
resourceTypesConfig: r,
|
|
19
|
-
onPerformanceMetric: a(
|
|
20
|
-
e.onPerformanceMetric
|
|
21
|
-
)
|
|
22
|
-
},
|
|
23
|
-
o()
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
l as createAtmosphereRealtimeRuntime
|
|
28
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { RealtimeRuntime } from '@m4l/realtime-runtime';
|
|
2
|
-
import { CreateRealtimeRuntimeProps } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
3
|
-
export type GClickRealtimeRuntimeFamily = 'standard' | 'atmosphere-only';
|
|
4
|
-
export interface GClickRealtimeRuntimeKeyProps {
|
|
5
|
-
runtimeKey: string;
|
|
6
|
-
storeId?: string;
|
|
7
|
-
}
|
|
8
|
-
export type GetOrCreateGClickRealtimeRuntimePropsFor<TCreateProps extends {
|
|
9
|
-
storeId?: string;
|
|
10
|
-
}> = Omit<TCreateProps, 'storeId'> & GClickRealtimeRuntimeKeyProps;
|
|
11
|
-
export type GetOrCreateGClickRealtimeRuntimeProps = GetOrCreateGClickRealtimeRuntimePropsFor<CreateRealtimeRuntimeProps>;
|
|
12
|
-
export interface CreateGetOrCreateGClickRealtimeRuntimeOptions {
|
|
13
|
-
runtimeFamily?: GClickRealtimeRuntimeFamily;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create one typed get-or-create helper for GClick-owned runtime factories.
|
|
17
|
-
*/
|
|
18
|
-
export declare function createGetOrCreateGClickRealtimeRuntime<TCreateProps extends CreateRealtimeRuntimeProps, TRuntime extends RealtimeRuntime>(createRuntime: (props: TCreateProps) => TRuntime, options?: CreateGetOrCreateGClickRealtimeRuntimeOptions): (props: GetOrCreateGClickRealtimeRuntimePropsFor<TCreateProps>) => TRuntime;
|
|
19
|
-
/**
|
|
20
|
-
* Dispose every cached GClick runtime family associated with the provided public runtime key.
|
|
21
|
-
*/
|
|
22
|
-
export declare function disposeGClickRealtimeRuntime(runtimeKey: string): void;
|
|
23
|
-
//# sourceMappingURL=runtimeRegistry.shared.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeRegistry.shared.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistry.shared.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAE5E,MAAM,MAAM,2BAA2B,GAAG,UAAU,GAAG,iBAAiB,CAAC;AAEzE,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,wCAAwC,CAClD,YAAY,SAAS;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,IACvC,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,GAAG,6BAA6B,CAAC;AAElE,MAAM,MAAM,qCAAqC,GAC/C,wCAAwC,CAAC,0BAA0B,CAAC,CAAC;AAEvE,MAAM,WAAW,6CAA6C;IAC5D,aAAa,CAAC,EAAE,2BAA2B,CAAC;CAC7C;AA+BD;;GAEG;AACH,wBAAgB,sCAAsC,CACpD,YAAY,SAAS,0BAA0B,EAC/C,QAAQ,SAAS,eAAe,EAEhC,aAAa,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,QAAQ,EAChD,OAAO,GAAE,6CAAkD,IAWzD,OAAO,wCAAwC,CAAC,YAAY,CAAC,KAC5D,QAAQ,CAeZ;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,QAe9D"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { createGetOrCreateRuntime as R, disposeRealtimeRuntime as l } from "@m4l/realtime-runtime";
|
|
2
|
-
const s = "standard", C = [
|
|
3
|
-
"standard",
|
|
4
|
-
"atmosphere-only"
|
|
5
|
-
];
|
|
6
|
-
function m(t) {
|
|
7
|
-
const e = t.trim();
|
|
8
|
-
if (!e)
|
|
9
|
-
throw new Error("GClick realtime runtime requires a non-empty runtimeKey.");
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
function o(t, e) {
|
|
13
|
-
return `gclick-realtime:${e}:${m(t)}`;
|
|
14
|
-
}
|
|
15
|
-
function I(t, e = {}) {
|
|
16
|
-
const {
|
|
17
|
-
runtimeFamily: r = s
|
|
18
|
-
} = e, a = R(t);
|
|
19
|
-
return function(u) {
|
|
20
|
-
const { runtimeKey: c, ...i } = u, n = m(c);
|
|
21
|
-
return a({
|
|
22
|
-
createProps: {
|
|
23
|
-
...i,
|
|
24
|
-
storeId: i.storeId ?? n
|
|
25
|
-
},
|
|
26
|
-
runtimeKey: o(
|
|
27
|
-
n,
|
|
28
|
-
r
|
|
29
|
-
)
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function E(t) {
|
|
34
|
-
const e = t.trim();
|
|
35
|
-
e && C.forEach((r) => {
|
|
36
|
-
l(
|
|
37
|
-
o(
|
|
38
|
-
e,
|
|
39
|
-
r
|
|
40
|
-
)
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
export {
|
|
45
|
-
I as createGetOrCreateGClickRealtimeRuntime,
|
|
46
|
-
E as disposeGClickRealtimeRuntime
|
|
47
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { disposeGClickRealtimeRuntime, GetOrCreateGClickRealtimeRuntimePropsFor } from './runtimeRegistry.shared';
|
|
2
|
-
import { CreateAtmosphereRealtimeRuntimeProps } from './runtimeAtmosphereOnly';
|
|
3
|
-
export type GetOrCreateGClickAtmosphereRealtimeRuntimeProps = GetOrCreateGClickRealtimeRuntimePropsFor<CreateAtmosphereRealtimeRuntimeProps>;
|
|
4
|
-
/**
|
|
5
|
-
* Lazily create or reuse one Atmosphere-only host-owned runtime for the requested runtime key.
|
|
6
|
-
*/
|
|
7
|
-
export declare const getOrCreateGClickAtmosphereRealtimeRuntime: (props: GetOrCreateGClickRealtimeRuntimePropsFor<CreateAtmosphereRealtimeRuntimeProps>) => import('./runtime').GClickRealtimeRuntime;
|
|
8
|
-
export { disposeGClickRealtimeRuntime };
|
|
9
|
-
//# sourceMappingURL=runtimeRegistryAtmosphereOnly.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeRegistryAtmosphereOnly.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/runtime/runtimeRegistryAtmosphereOnly.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,4BAA4B,EAC5B,KAAK,wCAAwC,EAC9C,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,oCAAoC,EACrC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,+CAA+C,GACzD,wCAAwC,CAAC,oCAAoC,CAAC,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,0CAA0C,sIAMpD,CAAC;AAEJ,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createAtmosphereRealtimeRuntime as e } from "./runtimeAtmosphereOnly.js";
|
|
2
|
-
import { createGetOrCreateGClickRealtimeRuntime as t } from "./runtimeRegistry.shared.js";
|
|
3
|
-
import { disposeGClickRealtimeRuntime as l } from "./runtimeRegistry.shared.js";
|
|
4
|
-
const i = t(
|
|
5
|
-
e,
|
|
6
|
-
{
|
|
7
|
-
runtimeFamily: "atmosphere-only"
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
export {
|
|
11
|
-
l as disposeGClickRealtimeRuntime,
|
|
12
|
-
i as getOrCreateGClickAtmosphereRealtimeRuntime
|
|
13
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const PROCCESS_MESSAGES_INTERVAL = 1;
|
|
2
|
-
export declare const REALTIME_PRODUCER_SOTORE_ID = "M4LRealTimeProducerStore";
|
|
3
|
-
export declare const REALTIME_CONSUMER_SOTORE_ID = "M4LRealTimeConsumerStore";
|
|
4
|
-
export declare enum EnumResourceTypesIds {
|
|
5
|
-
alarms = "rt_alarms",
|
|
6
|
-
devices = "rt_devices",
|
|
7
|
-
user = "rt_user"
|
|
8
|
-
}
|
|
9
|
-
export declare const RESOURCE_TYPE_ALARMS = EnumResourceTypesIds.alarms;
|
|
10
|
-
export declare const RESOURCE_TYPE_DEVICES = EnumResourceTypesIds.devices;
|
|
11
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/shared/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAC5C,eAAO,MAAM,2BAA2B,6BAA6B,CAAC;AACtE,eAAO,MAAM,2BAA2B,6BAA6B,CAAC;AAEtE,oBAAY,oBAAoB;IAC9B,MAAM,cAAc;IACpB,OAAO,eAAe;IACtB,IAAI,YAAY;CACjB;AAED,eAAO,MAAM,oBAAoB,8BAA8B,CAAC;AAChE,eAAO,MAAM,qBAAqB,+BAA+B,CAAC"}
|
package/web/shared/constants.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const _ = 1, t = "M4LRealTimeProducerStore", R = "M4LRealTimeConsumerStore";
|
|
2
|
-
var r = /* @__PURE__ */ ((E) => (E.alarms = "rt_alarms", E.devices = "rt_devices", E.user = "rt_user", E))(r || {});
|
|
3
|
-
const S = "rt_alarms", e = "rt_devices";
|
|
4
|
-
export {
|
|
5
|
-
r as EnumResourceTypesIds,
|
|
6
|
-
_ as PROCCESS_MESSAGES_INTERVAL,
|
|
7
|
-
R as REALTIME_CONSUMER_SOTORE_ID,
|
|
8
|
-
t as REALTIME_PRODUCER_SOTORE_ID,
|
|
9
|
-
S as RESOURCE_TYPE_ALARMS,
|
|
10
|
-
e as RESOURCE_TYPE_DEVICES
|
|
11
|
-
};
|
package/web/shared/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { EnumResourceTypesIds, PROCCESS_MESSAGES_INTERVAL, REALTIME_CONSUMER_SOTORE_ID, REALTIME_PRODUCER_SOTORE_ID, RESOURCE_TYPE_ALARMS, RESOURCE_TYPE_DEVICES, } from './constants';
|
|
2
|
-
export type { MessageQueueManager, OnMessagesStoreCallback, OnRealTimeConsumerMessageCallback, OnRealTimeTransportReconnectCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessagePayload, RealTimeResourceSerialId, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeTransportReconnectEvent, RealTimeResourceTypeId, RealTimeStatus, SubscribeTransportReconnectOptions, SubscribeOptions, Subscriber, } from './runtimeTypes';
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,iCAAiC,EACjC,oCAAoC,EACpC,mCAAmC,EACnC,eAAe,EACf,sBAAsB,EACtB,wBAAwB,EACxB,+CAA+C,EAC/C,yCAAyC,EACzC,+BAA+B,EAC/B,sBAAsB,EACtB,cAAc,EACd,kCAAkC,EAClC,gBAAgB,EAChB,UAAU,GACX,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { realtimePerformanceDebugHandle } from '../../../../../libs/observability/mf/src/index.ts';
|
|
2
|
-
import { RealTimeProducerMetricName } from '@m4l/realtime-runtime';
|
|
3
|
-
type RealtimePerformanceMetricId = RealTimeProducerMetricName | 'consumerActiveStoreCount' | 'consumerActiveSubscriptionCount' | 'consumerIncomingBatch' | 'consumerDrainSet' | 'consumerQueueLength' | 'consumerResourceCount' | 'consumerSnapshotResourceCount' | 'consumerSnapshotApplyDurationMs' | 'consumerSnapshotChunkCount' | 'consumerSnapshotChunkSize' | 'consumerSnapshotYieldCount' | 'consumerApplyNotifyDurationMs' | 'consumerProcessDurationMs';
|
|
4
|
-
interface RealtimePerformanceMetric {
|
|
5
|
-
lastBatchSize: number;
|
|
6
|
-
lastEventAt: number;
|
|
7
|
-
lastValue: number;
|
|
8
|
-
lastWindowDurationMs: number;
|
|
9
|
-
perSecondCount: number;
|
|
10
|
-
perSecondItems: number;
|
|
11
|
-
perSecondMaxBatchSize: number;
|
|
12
|
-
perSecondMaxValue: number;
|
|
13
|
-
perSecondValue: number;
|
|
14
|
-
totalCount: number;
|
|
15
|
-
totalItems: number;
|
|
16
|
-
totalMaxBatchSize: number;
|
|
17
|
-
totalMaxValue: number;
|
|
18
|
-
totalValue: number;
|
|
19
|
-
windowCount: number;
|
|
20
|
-
windowItems: number;
|
|
21
|
-
windowMaxBatchSize: number;
|
|
22
|
-
windowMaxValue: number;
|
|
23
|
-
windowStartedAt: number;
|
|
24
|
-
windowValue: number;
|
|
25
|
-
}
|
|
26
|
-
interface RealtimePerformanceDebugState {
|
|
27
|
-
metrics: Partial<Record<RealtimePerformanceMetricId, RealtimePerformanceMetric>>;
|
|
28
|
-
updatedAt: number;
|
|
29
|
-
}
|
|
30
|
-
declare global {
|
|
31
|
-
interface globalThis {
|
|
32
|
-
[realtimePerformanceDebugHandle.property]?: RealtimePerformanceDebugState;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Return whether browser-readable realtime debug metrics are enabled for this build.
|
|
37
|
-
*/
|
|
38
|
-
export declare function isRealtimePerformanceMetricsEnabled(): boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Read a monotonic timestamp for local duration metrics.
|
|
41
|
-
*/
|
|
42
|
-
export declare function getRealtimePerformanceNowMs(): number;
|
|
43
|
-
/**
|
|
44
|
-
* Record one realtime performance sample that can be inspected from the browser console.
|
|
45
|
-
*/
|
|
46
|
-
export declare function recordRealtimePerformanceMetric(metricId: RealtimePerformanceMetricId, value?: number): void;
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=performanceMetrics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"performanceMetrics.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/shared/performanceMetrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAMxE,KAAK,2BAA2B,GAC5B,0BAA0B,GAC1B,0BAA0B,GAC1B,iCAAiC,GACjC,uBAAuB,GACvB,kBAAkB,GAClB,qBAAqB,GACrB,uBAAuB,GACvB,+BAA+B,GAC/B,iCAAiC,GACjC,4BAA4B,GAC5B,2BAA2B,GAC3B,4BAA4B,GAC5B,+BAA+B,GAC/B,2BAA2B,CAAC;AAEhC,UAAU,yBAAyB;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,6BAA6B;IACrC,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,2BAA2B,EAAE,yBAAyB,CAAC,CAAC,CAAC;IACjF,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU;QAClB,CAAC,8BAA8B,CAAC,QAAQ,CAAC,CAAC,EACxC,6BAA6B,CAAC;KACjC;CACF;AAeD;;GAEG;AACH,wBAAgB,mCAAmC,YAElD;AAED;;GAEG;AACH,wBAAgB,2BAA2B,WAI1C;AA0FD;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,2BAA2B,EACrC,KAAK,SAAI,QAqCV"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { realtimePerformanceDebugHandle as l } from "../../libs/observability/mf/src/browserRuntimeHandles.js";
|
|
2
|
-
import "../../libs/observability/mf/src/diagnosticPolicies/catalog.js";
|
|
3
|
-
const u = 1e3, w = globalThis, d = typeof M4L_ENABLE_REALTIME_DEBUG_METRICS < "u" ? M4L_ENABLE_REALTIME_DEBUG_METRICS : !1;
|
|
4
|
-
function x() {
|
|
5
|
-
return d;
|
|
6
|
-
}
|
|
7
|
-
function p() {
|
|
8
|
-
return typeof globalThis.performance?.now == "function" ? globalThis.performance.now() : Date.now();
|
|
9
|
-
}
|
|
10
|
-
function c(e) {
|
|
11
|
-
return {
|
|
12
|
-
lastBatchSize: 0,
|
|
13
|
-
lastEventAt: e,
|
|
14
|
-
lastValue: 0,
|
|
15
|
-
lastWindowDurationMs: u,
|
|
16
|
-
perSecondCount: 0,
|
|
17
|
-
perSecondItems: 0,
|
|
18
|
-
perSecondMaxBatchSize: 0,
|
|
19
|
-
perSecondMaxValue: 0,
|
|
20
|
-
perSecondValue: 0,
|
|
21
|
-
totalCount: 0,
|
|
22
|
-
totalItems: 0,
|
|
23
|
-
totalMaxBatchSize: 0,
|
|
24
|
-
totalMaxValue: 0,
|
|
25
|
-
totalValue: 0,
|
|
26
|
-
windowCount: 0,
|
|
27
|
-
windowItems: 0,
|
|
28
|
-
windowMaxBatchSize: 0,
|
|
29
|
-
windowMaxValue: 0,
|
|
30
|
-
windowStartedAt: e,
|
|
31
|
-
windowValue: 0
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function M(e, a) {
|
|
35
|
-
const o = a - e.windowStartedAt;
|
|
36
|
-
o < u || (e.perSecondCount = e.windowCount, e.perSecondItems = e.windowItems, e.perSecondMaxBatchSize = e.windowMaxBatchSize, e.perSecondValue = e.windowValue, e.perSecondMaxValue = e.windowMaxValue, e.lastWindowDurationMs = o, e.windowCount = 0, e.windowItems = 0, e.windowMaxBatchSize = 0, e.windowValue = 0, e.windowMaxValue = 0, e.windowStartedAt = a);
|
|
37
|
-
}
|
|
38
|
-
function s(e) {
|
|
39
|
-
return Number.isFinite(e) ? Math.max(0, e) : 1;
|
|
40
|
-
}
|
|
41
|
-
function S() {
|
|
42
|
-
if (!d)
|
|
43
|
-
return;
|
|
44
|
-
const e = Date.now();
|
|
45
|
-
w[l.property] || (w[l.property] = {
|
|
46
|
-
metrics: {},
|
|
47
|
-
updatedAt: e
|
|
48
|
-
});
|
|
49
|
-
const a = w[l.property];
|
|
50
|
-
if (a)
|
|
51
|
-
return a.metrics = a.metrics ?? {}, a;
|
|
52
|
-
}
|
|
53
|
-
function E(e, a = 1) {
|
|
54
|
-
const o = S();
|
|
55
|
-
if (!o)
|
|
56
|
-
return;
|
|
57
|
-
const r = Date.now(), n = s(a), i = Math.floor(Math.max(1, n)), t = o.metrics[e] ?? (o.metrics[e] = c(r));
|
|
58
|
-
M(t, r), t.windowCount += 1, t.windowItems += i, t.windowMaxBatchSize = Math.max(
|
|
59
|
-
t.windowMaxBatchSize,
|
|
60
|
-
i
|
|
61
|
-
), t.windowValue += n, t.windowMaxValue = Math.max(t.windowMaxValue, n), t.totalCount += 1, t.totalItems += i, t.totalMaxBatchSize = Math.max(
|
|
62
|
-
t.totalMaxBatchSize,
|
|
63
|
-
i
|
|
64
|
-
), t.totalValue += n, t.totalMaxValue = Math.max(t.totalMaxValue, n), t.lastBatchSize = i, t.lastValue = n, t.lastEventAt = r, o.updatedAt = r;
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
p as getRealtimePerformanceNowMs,
|
|
68
|
-
x as isRealtimePerformanceMetricsEnabled,
|
|
69
|
-
E as recordRealtimePerformanceMetric
|
|
70
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { OnMessagesStoreCallback, OnRealTimeConsumerMessageCallback, OnRealTimeTransportReconnectCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessageIngressReason, RealTimeMessagePayload, RealTimeResourceMessageNormalizeContext, RealTimeResourceMessageNormalizeStrategy, RealTimeReadonlyResourceHash, RealTimeResourceMergeContext, RealTimeResourceSerialId, RealTimeResourcePayloadMergeStrategy, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeTransportReconnectEvent, RealTimeResourceTypeId, RealTimeStatus, SubscribeTransportReconnectOptions, SubscribeOptions, Subscriber } from '@m4l/realtime-runtime';
|
|
2
|
-
import { MessageQueueManager } from '../../../../../dist/packages/@m4l/realtime-runtime/web';
|
|
3
|
-
export type { MessageQueueManager, OnMessagesStoreCallback, OnRealTimeConsumerMessageCallback, OnRealTimeTransportReconnectCallback, OnRealtimeConsumerSubscribeCallback, RealTimeMessage, RealTimeMessageIngressReason, RealTimeMessagePayload, RealTimeResourceMessageNormalizeContext, RealTimeResourceMessageNormalizeStrategy, RealTimeReadonlyResourceHash, RealTimeResourceMergeContext, RealTimeResourcePayloadMergeStrategy, RealTimeResourceSerialId, RealTimeResourceSourceMechanismConfigAtmosphere, RealTimeResourceSourceMechanismConfigBase, RealTimeTransportReconnectEvent, RealTimeResourceTypeId, RealTimeStatus, SubscribeTransportReconnectOptions, SubscribeOptions, Subscriber, };
|
|
4
|
-
//# sourceMappingURL=runtimeTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeTypes.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/web/shared/runtimeTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,iCAAiC,EACjC,oCAAoC,EACpC,mCAAmC,EACnC,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,uCAAuC,EACvC,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,EAC5B,wBAAwB,EACxB,oCAAoC,EACpC,+CAA+C,EAC/C,yCAAyC,EACzC,+BAA+B,EAC/B,sBAAsB,EACtB,cAAc,EACd,kCAAkC,EAClC,gBAAgB,EAChB,UAAU,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,mBAAmB,EACnB,uBAAuB,EACvB,iCAAiC,EACjC,oCAAoC,EACpC,mCAAmC,EACnC,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,uCAAuC,EACvC,wCAAwC,EACxC,4BAA4B,EAC5B,4BAA4B,EAC5B,oCAAoC,EACpC,wBAAwB,EACxB,+CAA+C,EAC/C,yCAAyC,EACzC,+BAA+B,EAC/B,sBAAsB,EACtB,cAAc,EACd,kCAAkC,EAClC,gBAAgB,EAChB,UAAU,GACX,CAAC"}
|
|
File without changes
|