@apple/cktool.api.base

中文文档
1.3.2发布于 2022/06/04SEE LICENSE IN LICENSE.mdTypeScriptESM + CJS近 30 天下载 2569

Apple CKTool JS 'base' API

原始使用文档
文档目录4 节
  1. Getting Started
  2. API Promise Mixin
  3. Methods
  4. TypeScript Types

CKTool JS - "base" API Package

This package is part of the CKTool JS JavaScript client library suite and includes operations and TypeScript types related to "base".

Each operation has a corresponding function that returns a CancellablePromise that resolves if successful and rejects if the operation fails.

Don't use this package on its own. It is automatically pulled in when you include @apple/cktool.database in your package.json dependencies.

Getting Started

See Apple Developer Documentation for more details on how to get started using CKTool JS.

API Promise Mixin

BasePromisesApiMixin

Don't use this mixin directly. Instead, use PromisesApi from @apple/cktool.database.

Methods

The following methods are added by the mixin.

  • getContainers Fetches containers for a team.
  • getTeams Fetches a list of teams the current user is in.

TypeScript Types

  • AuthenticationRequiredError
  • CKDatabaseType
  • CKEnvironment
  • Container
  • ContainersResponse
  • ContainersSortByField
  • RequestError
  • SortDirection
  • Team
  • TeamsResponse

版本与发布记录

@apple/cktool.api.base 共发布 8 个版本,首次发布于 2021/12/01;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.3.2latest2022/06/044 年前
1.2.3412022/04/264 年前
1.2.282021/12/034 年前
1.2.152021/12/014 年前
1.2.132021/12/014 年前
1.2.72021/12/014 年前

关于 @apple/cktool.api.base 的常见问题

@apple/cktool.api.base 是什么?

Apple CKTool JS 'base' API

如何安装 @apple/cktool.api.base?

在项目目录运行 npm install @apple/cktool.api.base,或使用 pnpm add / yarn add / bun add。

@apple/cktool.api.base 支持 TypeScript 吗?

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

@apple/cktool.api.base 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@apple/cktool.api.base 可以商用吗?

@apple/cktool.api.base 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@apple/cktool.api.base 的下载量有多少?

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

@apple/cktool.api.base 还在维护吗?

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