npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@imtf/dms-core

v8.0.0

Published

Typings for dms-core plugin system

Downloads

759

Readme

@imtf/dms-core

TypeScript typings for dms-core (the ICOS front end) - for typing your own code against its domain model, and for the IMTFPlugins plugin system it exposes at runtime.

Prerequisites

  • TypeScript 5+.
  • IMTFPlugins is a global provided at runtime by dms-core itself, inside a plugin bundle it loads - this package only supplies its types. Referencing IMTFPlugins outside that runtime (e.g. an isolated unit test) will be undefined unless you mock it.

Installation

npm install --save-dev @imtf/dms-core

This is a types-only package - it ships no runtime code, only .d.ts declarations.

Using the domain types

Import any of the exported domain types directly to type your own functions, components, or utilities - this works regardless of whether the code is a registered plugin. The package exports the domain types used across dms-core's plugin surface (Case, Task, Inode, Entity, and others); rely on your editor's autocomplete on @imtf/dms-core for the full, current list rather than a list here that can drift out of date.

import type { Case, Task } from "@imtf/dms-core";

function getCaseLabel(currentCase: Case): string {
  return currentCase.label;
}

function isOpenTask(task: Task): boolean {
  return task.status === "open";
}

Using the IMTFPlugins global

When dms-core starts, it registers a global IMTFPlugins object - the entry point for building custom plugins that extend Core without modifying it. This package types that global so you get autocomplete and type-checking while authoring plugins.

Registering a plugin (available plugin types are exposed at runtime via IMTFPlugins.TYPES - use autocomplete there too):

import MyPluginComponent from "./MyPlugin";

IMTFPlugins.register(
  IMTFPlugins.TYPES.QUESTIONNAIRE_PART,
  "myPlugin",
  MyPluginComponent,
);

Reading data via the hooks API (namespaced under IMTFPlugins.hooks, grouped by domain - app, case, task, mdm, inode):

export default function MyComponent({ item }: { item: Case }) {
  const { data: currentCase } = IMTFPlugins.hooks.case.useCase(item);
  // ...
}

Calling an action:

const { getAction, TYPES } = IMTFPlugins.actions;

const action = getAction(TYPES.APP.OPEN_IN_NEW_WINDOW, [item]);
if (action) {
  action();
}

Versioning

This package follows semantic versioning, always aligned with the dms-core product release version (e.g. 7.4.X) — so the version you install tells you exactly which dms-core release its types were generated from.

  • Stable releases (x.y.z, no suffix) are published under the latest npm dist-tag. npm install @imtf/dms-core without pinning a version resolves to one of these.
  • Prereleases and variant lines (e.g. x.y.z-beta.n, x.y.z-natwest.n) publish under their own identifier as the npm dist-tag (beta, natwest, ...) rather than latest, so they're never picked up unless explicitly requested - either by pinning the exact version (e.g. "@imtf/dms-core": "1.1.0-beta.6") or installing via that tag (e.g. npm install @imtf/dms-core@beta).