@bluealba/pae-core

中文文档
6.2.0-develop-232发布于 2026/11/03PolyForm-Noncommercial-1.0.0TypeScriptCommonJS近 30 天下载 1999

Core package for the PAE project

原始使用文档
文档目录9 节
  1. Services
  2. Authorization Service
  3. Application Service
  4. Domain Models
  5. Application
  6. Operation
  7. Role
  8. Data Transfer Objects
  9. CreateApplicationDTO

Pillar CORE Library

This library is a collection of common utilities and services that are used across all Pillar services.

Services

Authorization Service

The Authorization Service provides methods for managing user roles and operations.

Methods

createOperation(data: CreateOperationDTO): Promise<Operation>

Creates a new operation.

References
getOperations(): Promise<Operation[]>
createRole(data: CreateRoleDTO): Promise<Role>

Creates a new role.

References

Application Service

The Application Service provides methods for managing Pillar applications.

Methods

createApplication(data: CreateApplicationDTO): Promise<Application>

Creates a new application.

References
getApplications(): Promise<Application[]>

Retrieves all applications.

References

Domain Models

Application

The Application domain model represents a Pillar application.

Properties

  • id (number): The unique identifier of the application.
  • name (string): The name of the application.
  • description (string): The description of the application.
  • isGlobal (boolean): A flag indicating whether the application is global or not.
  • createdAt (Date): The date and time when the application was created.
  • updatedAt (Date): The date and time when the application was last updated.
  • createdBy (string): The user who created the application.
  • updatedBy (string): The user who last updated the application.

Operation

The Operation domain model represents an operation that can be performed by a user.

Properties

  • id (number): The unique identifier of the operation.
  • name (string): The name of the operation.
  • description (string): The description of the operation.
  • createdAt (Date): The date and time when the operation was created.
  • updatedAt (Date): The date and time when the operation was last updated.
  • createdBy (string): The user who created the operation.
  • updatedBy (string): The user who last updated the operation.

Role

The Role domain model represents a role that can be assigned to a user.

Properties

  • id (number): The unique identifier of the role.
  • name (string): The name of the role.
  • description (string): The description of the role.
  • createdAt (Date): The date and time when the role was created.
  • updatedAt (Date): The date and time when the role was last updated.
  • createdBy (string): The user who created the role.
  • updatedBy (string): The user who last updated the role.

Data Transfer Objects

CreateApplicationDTO

The CreateApplicationDTO model represents the data required to create a new application.

版本与发布记录

@bluealba/pae-core 共发布 120 个版本,首次发布于 2024/07/18;过去 12 个月发布了 119 个版本。

版本发布日期距今
6.2.0-develop-232latest2026/11/035 天前
6.2.0-feature-navbar-user-title-6882026/11/017 天前
5.10.0-feature-v4-turbo-doodle-1972026/10/1029 天前
6.2.02026/10/061 个月前
6.2.0-develop-1772026/10/061 个月前
6.2.0-rc.1752026/10/051 个月前

其他发布通道:pillar-v4 → 6.1.0-pillar-v4.0。

关于 @bluealba/pae-core 的常见问题

@bluealba/pae-core 是什么?

Core package for the PAE project

如何安装 @bluealba/pae-core?

在项目目录运行 npm install @bluealba/pae-core,或使用 pnpm add / yarn add / bun add。

@bluealba/pae-core 支持 TypeScript 吗?

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

@bluealba/pae-core 支持 ESM 还是 CommonJS?

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

@bluealba/pae-core 可以商用吗?

@bluealba/pae-core 使用 PolyForm-Noncommercial-1.0.0 许可。声明的许可为 PolyForm-Noncommercial-1.0.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@bluealba/pae-core 的下载量有多少?

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

@bluealba/pae-core 还在维护吗?

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