@digdir/dialogporten-schema

中文文档
1.126.0发布于 2026/11/04ISCES Module零依赖构建来源已验证近 30 天下载 6012

GraphQl schema and OpenAPI spec for Dialogporten

原始使用文档

Dialogporten Schema Package

This npm package contains both the Swagger and GraphQL schema definitions for the Dialogporten API. It is designed to provide developers with the necessary specifications to interact with the Dialogporten API effectively.

Description

This package includes:

  • GraphQL Schema (schema.verified.graphql): Defines the types, queries, and mutations available in the Dialogporten GraphQL API.
  • OpenAPI Specification (swagger.verified.json): Provides a detailed description of the RESTful endpoints, parameters, and models used in the Dialogporten API.

Usage

To use this package, include it in your project dependencies using npm: To install the Dialogporten Schema Package in your JavaScript project, follow these steps:

  1. Ensure you have npm installed. You can check by running npm -v in your terminal. If npm is not installed, download and install Node.js from nodejs.org, which includes npm.

  2. Add the Dialogporten Schema Package to your project dependencies. Run the following command in your project directory:

    npm install @digdir/dialogporten-schema
    

版本与发布记录

@digdir/dialogporten-schema 共发布 383 个版本,首次发布于 2024/04/19;过去 12 个月发布了 108 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.126.0latest2026/11/048 天前
1.125.1-9ffaee5prerelease2026/11/0210 天前
1.125.1-a11e9fd2026/10/2319 天前
1.125.02026/10/2221 天前
1.124.2-7162fd92026/10/2022 天前
1.124.2-0946da82026/10/1626 天前

关于 @digdir/dialogporten-schema 的常见问题

@digdir/dialogporten-schema 是什么?

GraphQl schema and OpenAPI spec for Dialogporten

如何安装 @digdir/dialogporten-schema?

在项目目录运行 npm install @digdir/dialogporten-schema,或使用 pnpm add / yarn add / bun add。

@digdir/dialogporten-schema 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/digdir__dialogporten-schema 是否存在。

@digdir/dialogporten-schema 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@digdir/dialogporten-schema 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js 24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@digdir/dialogporten-schema 可以商用吗?

@digdir/dialogporten-schema 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@digdir/dialogporten-schema 的下载量有多少?

根据 npm 官方下载统计,@digdir/dialogporten-schema 在 2026/10/12 – 2026/11/10 这 30 天内被下载 6,012 次,日均约 200 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@digdir/dialogporten-schema 还在维护吗?

最新版本 1.126.0 发布于 2026/11/04(8 天前);至今共发布 383 个版本,其中过去 12 个月发布了 108 个;首次发布于 2024/04/19。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。