@camstack/addon-post-analysis 1.2.28 → 1.2.29
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/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-B7qyOMi9.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BNpbrkKP.mjs} +1 -1
- package/dist/pipeline-analytics/{hostInit-CXz29iwU.mjs → hostInit-Cn_w2I8X.mjs} +1 -1
- package/dist/pipeline-analytics/index.js +20 -2
- package/dist/pipeline-analytics/index.mjs +20 -2
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -632,7 +632,12 @@ var NC_ALARM_DEVICE_NAME = "Alarm";
|
|
|
632
632
|
* does not belong in here.
|
|
633
633
|
*/
|
|
634
634
|
async function ensureAlarmPanel(deps) {
|
|
635
|
-
const
|
|
635
|
+
const existingIntegration = await deps.getIntegration(deps.addonId);
|
|
636
|
+
if (existingIntegration !== null && !existingIntegration.fixed) {
|
|
637
|
+
await deps.markFixed(existingIntegration.id);
|
|
638
|
+
deps.logger.info("marked the notification-center integration as fixed", { meta: { integrationId: existingIntegration.id } });
|
|
639
|
+
}
|
|
640
|
+
const integration = existingIntegration ?? await deps.createIntegration({
|
|
636
641
|
addonId: deps.addonId,
|
|
637
642
|
name: deps.integrationName,
|
|
638
643
|
info: { fixed: true }
|
|
@@ -22347,7 +22352,20 @@ var PipelineAnalyticsAddon = class extends require_dist.BaseAddon {
|
|
|
22347
22352
|
logger: this.ctx.logger.child("alarm"),
|
|
22348
22353
|
addonId: PIPELINE_ANALYTICS_ADDON_ID,
|
|
22349
22354
|
integrationName: NC_INTEGRATION_NAME,
|
|
22350
|
-
getIntegration: async (addonId) =>
|
|
22355
|
+
getIntegration: async (addonId) => {
|
|
22356
|
+
const found = await api.integrations.getByAddonId.query({ addonId });
|
|
22357
|
+
return found === null ? null : {
|
|
22358
|
+
id: found.id,
|
|
22359
|
+
fixed: found.info?.["fixed"] === true
|
|
22360
|
+
};
|
|
22361
|
+
},
|
|
22362
|
+
markFixed: async (integrationId) => {
|
|
22363
|
+
await api.integrations.update.mutate({
|
|
22364
|
+
id: integrationId,
|
|
22365
|
+
info: { fixed: true },
|
|
22366
|
+
skipRestart: true
|
|
22367
|
+
});
|
|
22368
|
+
},
|
|
22351
22369
|
createIntegration: async (input) => api.integrations.create.mutate(input),
|
|
22352
22370
|
findDeviceByStableId: async (stableId) => {
|
|
22353
22371
|
const found = (await api.deviceManager.listAll.query({ addonId: PIPELINE_ANALYTICS_ADDON_ID })).find((d) => d.stableId === stableId);
|
|
@@ -626,7 +626,12 @@ var NC_ALARM_DEVICE_NAME = "Alarm";
|
|
|
626
626
|
* does not belong in here.
|
|
627
627
|
*/
|
|
628
628
|
async function ensureAlarmPanel(deps) {
|
|
629
|
-
const
|
|
629
|
+
const existingIntegration = await deps.getIntegration(deps.addonId);
|
|
630
|
+
if (existingIntegration !== null && !existingIntegration.fixed) {
|
|
631
|
+
await deps.markFixed(existingIntegration.id);
|
|
632
|
+
deps.logger.info("marked the notification-center integration as fixed", { meta: { integrationId: existingIntegration.id } });
|
|
633
|
+
}
|
|
634
|
+
const integration = existingIntegration ?? await deps.createIntegration({
|
|
630
635
|
addonId: deps.addonId,
|
|
631
636
|
name: deps.integrationName,
|
|
632
637
|
info: { fixed: true }
|
|
@@ -22341,7 +22346,20 @@ var PipelineAnalyticsAddon = class extends BaseAddon {
|
|
|
22341
22346
|
logger: this.ctx.logger.child("alarm"),
|
|
22342
22347
|
addonId: PIPELINE_ANALYTICS_ADDON_ID,
|
|
22343
22348
|
integrationName: NC_INTEGRATION_NAME,
|
|
22344
|
-
getIntegration: async (addonId) =>
|
|
22349
|
+
getIntegration: async (addonId) => {
|
|
22350
|
+
const found = await api.integrations.getByAddonId.query({ addonId });
|
|
22351
|
+
return found === null ? null : {
|
|
22352
|
+
id: found.id,
|
|
22353
|
+
fixed: found.info?.["fixed"] === true
|
|
22354
|
+
};
|
|
22355
|
+
},
|
|
22356
|
+
markFixed: async (integrationId) => {
|
|
22357
|
+
await api.integrations.update.mutate({
|
|
22358
|
+
id: integrationId,
|
|
22359
|
+
info: { fixed: true },
|
|
22360
|
+
skipRestart: true
|
|
22361
|
+
});
|
|
22362
|
+
},
|
|
22345
22363
|
createIntegration: async (input) => api.integrations.create.mutate(input),
|
|
22346
22364
|
findDeviceByStableId: async (stableId) => {
|
|
22347
22365
|
const found = (await api.deviceManager.listAll.query({ addonId: PIPELINE_ANALYTICS_ADDON_ID })).find((d) => d.stableId === stableId);
|
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-BNpbrkKP.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-post-analysis",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.29",
|
|
4
4
|
"description": "Post-Analysis bundle — enrichment, embedding-encoder, pipeline-analytics. Multi-entry npm package shipping addons that consume pipeline output.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|