@bimdata/typescript-fetch-api-client

中文文档
10.49.0发布于 2026/11/07TypeScriptCommonJS零依赖构建来源已验证近 30 天下载 2414

OpenAPI client for @bimdata/typescript-fetch-api-client

原始使用文档
文档目录3 节
  1. Installation
  2. Usage
  3. Initialize and use an API client

@bimdata/typescript-fetch-api-client

This package provide a javascript client to interact with BIMData API as well as all necessary typings for usage in typescript projects and autocompletion in VSCode.

This package is generated using OpenAPI Generator.

Installation

To install this package simply run: npm install @bimdata/typescript-fetch-api-client

Usage

Note: This section is about using the typescript-fetch API client in your project, if you want to know more about BIMData API and what's possible to do with it, please refer to the documentation.

Initialize and use an API client

In order to perform calls to the API you'll need to create an API client with a configuration object. The snippet below shows an example of how to do it.

The credentials argument is optional and adds this option to the fetch method. If it is not set, the default option for fetch will be used.

import { makeBIMDataApiClient } from '@bimdata/typescript-fetch-api-client';

const apiClient = makeBIMDataApiClient({ apiUrl, accessToken, credentials });

apiClient.collaborationApi.getClouds().then(
  clouds => console.log('Here is the list of clouds: ', clouds)
);

Once the client is created you can update its access token this way:

apiClient.accessToken = newAccessToken

版本与发布记录

@bimdata/typescript-fetch-api-client 共发布 233 个版本,首次发布于 2021/01/18;过去 12 个月发布了 30 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
10.49.0latest2026/11/071 天前
10.48.12026/10/1919 天前
10.48.02026/08/262 个月前
10.47.02026/07/243 个月前
10.46.12026/07/203 个月前
10.46.02026/07/163 个月前

其他发布通道:alpha → 11.0.0-alpha.1。

关于 @bimdata/typescript-fetch-api-client 的常见问题

@bimdata/typescript-fetch-api-client 是什么?

OpenAPI client for @bimdata/typescript-fetch-api-client

如何安装 @bimdata/typescript-fetch-api-client?

在项目目录运行 npm install @bimdata/typescript-fetch-api-client,或使用 pnpm add / yarn add / bun add。

@bimdata/typescript-fetch-api-client 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bimdata/typescript-fetch-api-client 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@bimdata/typescript-fetch-api-client 可以商用吗?

@bimdata/typescript-fetch-api-client 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@bimdata/typescript-fetch-api-client 的下载量有多少?

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

@bimdata/typescript-fetch-api-client 还在维护吗?

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