grexx-api

中文文档
13.16.8发布于 2026/11/04TypeScriptCommonJS零依赖

Grexx Platform API library

原始使用文档
文档目录6 节
  1. Table of Contents
  2. Overview
  3. Installation
  4. Usage
  5. Initialization
  6. Examples

Grexx Platform API - TypeScript Client

This is the TypeScript client for the Grexx Platform API, generated from the OpenAPI 3.0.2 specification. It provides a strongly-typed interface to interact with the API endpoints.

Table of Contents


Overview

The Grexx Platform API allows you to interact with the Grexx platform for managing cases, datasets, forms, tasks, and more. This client provides a convenient way to access the API with TypeScript types and interfaces for better development experience.

Installation

Install the client package using npm or yarn:

npm install grexx-api-client
# or
yarn add grexx-api-client

Usage

Initialization

To use the client, initialize the OpenAPI configuration with the base URL of your Grexx platform and any required authentication details.

import { OpenAPI } from 'grexx-api';

OpenAPI.BASE = 'https://name.grexx.today/api/v1';
OpenAPI.TOKEN = 'your-api-key'; // Replace with your API key if required

Examples

Retrieve Case Information

import { CaseService } from 'grexx-api';

const casePath = 'example-case-id';

CaseService.caseInfo(casePath, { css: true, rootline: false })
  .then(response => {
    console.log('Case Info:', response);
  })
  .catch(error => {
    console.error('Error fetching case info:', error);
  });

Submit a Task

import { CaseService } from 'grexx-api';

const taskId = 12345;
const casePath = 'example-case-id';

CaseService.taskSubmit(taskId, casePath, {
  fields: { fieldName: 'value' },
  autoProgress: true,
})
  .then(response => {
    console.log('Task submitted successfully:', response);
  })
  .catch(error => {
    console.error('Error submitting task:', error);
  });

版本与发布记录

grexx-api 共发布 930 个版本,首次发布于 2025/04/03;过去 12 个月发布了 501 个版本。

版本发布日期距今
13.16.8latest2026/11/04今天
13.16.72026/11/04今天
13.16.62026/10/305 天前
13.16.52026/10/295 天前
13.16.42026/10/296 天前
13.16.32026/10/296 天前

关于 grexx-api 的常见问题

grexx-api 是什么?

Grexx平台API库

如何安装 grexx-api?

在项目目录运行 npm install grexx-api,或使用 pnpm add / yarn add / bun add。

grexx-api 支持 TypeScript 吗?

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

grexx-api 支持 ESM 还是 CommonJS?

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

grexx-api 可以商用吗?

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

grexx-api 还在维护吗?

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