open-index/open-npm huggingface dataset:
npm package: @manycore/camera-rest-client
Description: OpenAPI client for @manycore/camera-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/camera-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/camera-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*CameraApi* | [**getCameras**](docs/CameraApi.md#getcameras) | **GET** /camera/openapi/v1/apps/{app}/cameras | 获取相机列表


### Documentation For Models

 - [RestApiCamera](docs/RestApiCamera.md)
 - [RestApiCameraListResponse](docs/RestApiCameraListResponse.md)
 - [RestApiCameraListResponsePagination](docs/RestApiCameraListResponsePagination.md)
 - [RestApiCameraParameter](docs/RestApiCameraParameter.md)
 - [ToolAppType](docs/ToolAppType.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/koolux-rest-client
Description: OpenAPI client for @manycore/koolux-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/koolux-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/koolux-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*KooLuxLightApi* | [**batchUpdate**](docs/KooLuxLightApi.md#batchupdate) | **PUT** /koolux/openapi/rest/v1/designs/{kooLuxDesignId}/light:batchupdate | 批量更新照明场景数据
*KooLuxLightApi* | [**getSceneDocument**](docs/KooLuxLightApi.md#getscenedocument) | **GET** /koolux/openapi/rest/v1/designs/{kooLuxDesignId}/light | 查询照明场景数据（建设中，暂不可用）
*KooLuxLightApi* | [**importDataSource**](docs/KooLuxLightApi.md#importdatasource) | **POST** /koolux/openapi/rest/v1/light:importdatasource | 创建KooLux方案


### Documentation For Models

 - [CreateDesignRequest](docs/CreateDesignRequest.md)
 - [CreateDesignResponse](docs/CreateDesignResponse.md)
 - [IesSpotLightData](docs/IesSpotLightData.md)
 - [Light](docs/Light.md)
 - [LightCreateRequest](docs/LightCreateRequest.md)
 - [LightDeleteRequest](docs/LightDeleteRequest.md)
 - [LightUpdateRequest](docs/LightUpdateRequest.md)
 - [Model](docs/Model.md)
 - [ModelCreateRequest](docs/ModelCreateRequest.md)
 - [ModelDeleteRequest](docs/ModelDeleteRequest.md)
 - [ModelReplaceRequest](docs/ModelReplaceRequest.md)
 - [ModelUpdateRequest](docs/ModelUpdateRequest.md)
 - [SceneDocument](docs/SceneDocument.md)
 - [SceneDocumentBatchUpdateRequest](docs/SceneDocumentBatchUpdateRequest.md)
 - [SceneDocumentBatchUpdateResponse](docs/SceneDocumentBatchUpdateResponse.md)
 - [SceneDocumentOperateRequest](docs/SceneDocumentOperateRequest.md)
 - [SceneElement](docs/SceneElement.md)
 - [SceneElementUpdateResponse](docs/SceneElementUpdateResponse.md)
 - [SpectrumData](docs/SpectrumData.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/miniapp-mcp-server
Description: 群核科技小程序MCP Server
Author: gulu
Latest version: 1.0.1

# @manycore/miniapp-mcp-server

群核科技小程序 MCP Server

## 配置 MCP

```json
"manycore-miniapp-server": {
     "disabled": false,
     "timeout": 60,
     "type": "stdio",
     "command": "npx",
     "args": [
       "@manycore/miniapp-mcp-server"
     ],
     "env": {
       "API_KEY": "xxx"
     }
   }
```

API_KEY 需要联系群核科技技术支持获取；

## 开发规则配置

安装此包后，你可以在 `@manycore/miniapp-mcp-server/docs/` 目录下找到详细的开发规则文档：

-   **miniapp_coding_rule.md** - 群核科技小程序开发规则，包含开发规范、代码生成规范、注意事项等

建议将此开发规则添加到你的 IDE 的 AI 助手配置中（如 Cursor、Cline 等），以便 LLM 能够按照规范进行代码开发。
npm package: @manycore/projectdesign-rest-client
Description: OpenAPI client for @manycore/projectdesign-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/projectdesign-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/projectdesign-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*ProjectDesignApi* | [**batchGetProjectDesign**](docs/ProjectDesignApi.md#batchgetprojectdesign) | **POST** /projectdesign/openapi/v1/design:batchget | 批量获取设计方案
*ProjectDesignApi* | [**batchUpdateLevels**](docs/ProjectDesignApi.md#batchupdatelevels) | **POST** /projectdesign/openapi/v1/design/{designId}/level:batchupdate | 批量更新楼层信息
*ProjectDesignApi* | [**getProjectDesign**](docs/ProjectDesignApi.md#getprojectdesign) | **GET** /projectdesign/openapi/v1/design/{id} | 获取单个设计方案


### Documentation For Models

 - [LevelInfo](docs/LevelInfo.md)
 - [RestApiDesign](docs/RestApiDesign.md)
 - [RestApiDesignBatchGetRequest](docs/RestApiDesignBatchGetRequest.md)
 - [RestApiDesignBatchGetResponse](docs/RestApiDesignBatchGetResponse.md)
 - [RestApiDesignLevel](docs/RestApiDesignLevel.md)
 - [RestApiDesignStatus](docs/RestApiDesignStatus.md)
 - [RestApiLevelBatchUpdateRequest](docs/RestApiLevelBatchUpdateRequest.md)
 - [RestApiLevelBatchUpdateResponse](docs/RestApiLevelBatchUpdateResponse.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/rendercamera-rest-client
Description: OpenAPI client for @manycore/rendercamera-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/rendercamera-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/rendercamera-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*RenderCameraApi* | [**generateAutoCamera**](docs/RenderCameraApi.md#generateautocamera) | **POST** /rcs/openapi/rest/v1/designs/{obsDesignId}/levels/{levelId}/cameras:generateautocamera | 生成自动相机视角


### Documentation For Models

 - [AutoCameraCreateRequest](docs/AutoCameraCreateRequest.md)
 - [AutoCameraData](docs/AutoCameraData.md)
 - [AutoCameraResult](docs/AutoCameraResult.md)
 - [CameraData](docs/CameraData.md)
 - [CameraType](docs/CameraType.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/renderdata-rest-client
Description: OpenAPI client for @manycore/renderdata-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/renderdata-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/renderdata-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*RenderDataApi* | [**listLightStyles**](docs/RenderDataApi.md#listlightstyles) | **GET** /rds/openapi/rest/v1/lightstyles | 获取自动灯光列表
*RenderDataApi* | [**listSnapshotTypes**](docs/RenderDataApi.md#listsnapshottypes) | **GET** /rds/openapi/rest/v1/snapshottypes | 获取可用分辨率列表


### Documentation For Models

 - [CameraType](docs/CameraType.md)
 - [LightStyle](docs/LightStyle.md)
 - [LightStyleResponse](docs/LightStyleResponse.md)
 - [ResolutionType](docs/ResolutionType.md)
 - [SnapshotType](docs/SnapshotType.md)
 - [SnapshotTypeLevelType](docs/SnapshotTypeLevelType.md)
 - [SnapshotTypeListResponse](docs/SnapshotTypeListResponse.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/renderpic-rest-client
Description: OpenAPI client for @manycore/renderpic-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/renderpic-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/renderpic-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*RenderPicApi* | [**batchDeleteRenderPic**](docs/RenderPicApi.md#batchdeleterenderpic) | **POST** /ras/openapi/rest/v1/designs/{obsDesignId}/pics:batchdelete | 批量删除渲染图片
*RenderPicApi* | [**deleteRenderPic**](docs/RenderPicApi.md#deleterenderpic) | **DELETE** /ras/openapi/rest/v1/designs/{obsDesignId}/pics/{obsPicId} | 删除渲染图片
*RenderPicApi* | [**listRenderPics**](docs/RenderPicApi.md#listrenderpics) | **GET** /ras/openapi/rest/v1/designs/{obsDesignId}/pics | 分页查询渲染图片
*RenderPicApi* | [**updateRenderPic**](docs/RenderPicApi.md#updaterenderpic) | **PUT** /ras/openapi/rest/v1/designs/{obsDesignId}/pics/{obsPicId} | 更新渲染图片信息


### Documentation For Models

 - [CameraType](docs/CameraType.md)
 - [DesignSnapshotStatus](docs/DesignSnapshotStatus.md)
 - [PicBizInfo](docs/PicBizInfo.md)
 - [PicSceneType](docs/PicSceneType.md)
 - [RenderPicBatchDeleteRequest](docs/RenderPicBatchDeleteRequest.md)
 - [RenderPicDeleteResponse](docs/RenderPicDeleteResponse.md)
 - [RenderPicResponse](docs/RenderPicResponse.md)
 - [RenderPicUpdateRequest](docs/RenderPicUpdateRequest.md)
 - [RenderPicUpdateResponse](docs/RenderPicUpdateResponse.md)
 - [RenderPicView](docs/RenderPicView.md)
 - [RenderTaskInfo](docs/RenderTaskInfo.md)
 - [ResolutionType](docs/ResolutionType.md)
 - [SnapshotType](docs/SnapshotType.md)
 - [SnapshotTypeLevelType](docs/SnapshotTypeLevelType.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/rendertask-rest-client
Description: OpenAPI client for @manycore/rendertask-rest-client
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/rendertask-rest-client@0.0.1

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/rendertask-rest-client@0.0.1 --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *https://api.manycoreapis.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*RenderTaskApi* | [**cancelRenderTask**](docs/RenderTaskApi.md#cancelrendertask) | **POST** /drs/openapi/rest/v1/rendertasks/{taskId}:cancel | 取消渲染任务
*RenderTaskApi* | [**createRenderTask**](docs/RenderTaskApi.md#createrendertask) | **POST** /drs/openapi/rest/v1/rendertasks | 创建渲染任务
*RenderTaskApi* | [**listRunningRenderTasks**](docs/RenderTaskApi.md#listrunningrendertasks) | **GET** /drs/openapi/rest/v1/rendertasks:batchgetrunning | 查询设计下的正在运行的渲染任务
*RenderTaskApi* | [**listRunningRenderTasks1**](docs/RenderTaskApi.md#listrunningrendertasks1) | **GET** /drs/openapi/rest/v1/rendertasks | 查询设计下的正在运行的渲染任务
*RenderTaskApi* | [**pollingRenderTasks**](docs/RenderTaskApi.md#pollingrendertasks) | **POST** /drs/openapi/rest/v1/rendertasks:batchget | 批量轮询渲染任务状态


### Documentation For Models

 - [CameraData](docs/CameraData.md)
 - [CameraType](docs/CameraType.md)
 - [DesignSnapshotStatus](docs/DesignSnapshotStatus.md)
 - [MultiLevelLightData](docs/MultiLevelLightData.md)
 - [RenderShowRuleData](docs/RenderShowRuleData.md)
 - [RenderTaskCancelResult](docs/RenderTaskCancelResult.md)
 - [RenderTaskCreateRequest](docs/RenderTaskCreateRequest.md)
 - [RenderTaskCreateResponse](docs/RenderTaskCreateResponse.md)
 - [RenderTaskInfo](docs/RenderTaskInfo.md)
 - [RenderTaskListResponse](docs/RenderTaskListResponse.md)
 - [RenderTaskPollingRequest](docs/RenderTaskPollingRequest.md)
 - [RenderTaskPollingResponse](docs/RenderTaskPollingResponse.md)
 - [ResolutionType](docs/ResolutionType.md)
 - [SceneBizData](docs/SceneBizData.md)
 - [SceneLightInfo](docs/SceneLightInfo.md)
 - [SnapshotTypeLevelType](docs/SnapshotTypeLevelType.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/restapi-sdk-data
Description: OpenAPI client for @manycore/restapi-sdk-data
Author: OpenAPI-Generator Contributors
Latest version: 1.0.0-rc.2

## @manycore/restapi-sdk-data@0.0.1-SNAPSHOT

This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:

Environment
* Node.js
* Webpack
* Browserify

Language level
* ES5 - you must have a Promises/A+ library installed
* ES6

Module system
* CommonJS
* ES6 module system

It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))

### Building

To build and compile the typescript sources to javascript use:
```
npm install
npm run build
```

### Publishing

First build the package then run `npm publish`

### Consuming

navigate to the folder of your consuming project and run one of the following commands.

_published:_

```
npm install @manycore/restapi-sdk-data@0.0.1-SNAPSHOT --save
```

_unPublished (not recommended):_

```
npm install PATH_TO_GENERATED_PACKAGE --save
```

### Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------


### Documentation For Models

 - [ApiError](docs/ApiError.md)
 - [Code](docs/Code.md)
 - [ErrorDetails](docs/ErrorDetails.md)
 - [Help](docs/Help.md)
 - [Identifiable](docs/Identifiable.md)
 - [Locale](docs/Locale.md)
 - [LocalizedMessage](docs/LocalizedMessage.md)
 - [LongRunningRequest](docs/LongRunningRequest.md)
 - [Operation](docs/Operation.md)
 - [RestApiBatchRequest](docs/RestApiBatchRequest.md)
 - [RestApiBatchResponse](docs/RestApiBatchResponse.md)
 - [RestApiClientException](docs/RestApiClientException.md)
 - [RestApiDomain](docs/RestApiDomain.md)
 - [RestApiListResponse](docs/RestApiListResponse.md)
 - [RestApiProcessError](docs/RestApiProcessError.md)
 - [RestApiProcessException](docs/RestApiProcessException.md)
 - [RestApiProcessRuntimeException](docs/RestApiProcessRuntimeException.md)
 - [RestApiRequest](docs/RestApiRequest.md)
 - [StackTraceElement](docs/StackTraceElement.md)
 - [Throwable](docs/Throwable.md)
 - [WriteControl](docs/WriteControl.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.
npm package: @manycore/saas-miniapp-message
Description: placeholder
Latest version: 1.0.2

# `@manycore/saas-miniapp-message`

> 酷家乐商家后台小程序`Manycore`接口调用、消息通讯工具包

## 使用方式

```bash
# npm
npm install @manycore/saas-miniapp-message
# yarn
yarn add @manycore/saas-miniapp-message
```

```ts
/**
 * 广播事件
 *
 * @param type 事件 type
 * @param payload 事件传递的数据
 * @param {(FrameHost | Window)} [postMessager=window.parent]
 *
 * 当传入的对象 `payload` 不是 plain 对象的时候（如 Error、function、DOMElement、JSX 等），这里会报错
 * 「Uncaught DOMException: The object could not be cloned.」或 「DataCloneError: The object could not be cloned.」
 */
function broadcast<P = void>(type: string, payload?: P, postMessager?: FrameHost | Window): void;

/**
 * 广播事件，返回 Promise ， subscribe 中必须传入`postMessager`参数来承接该事件时，否则此 Promise 将永远 Pending
 *
 * @param type 事件 type
 * @param payload 事件传递的数据
 * @param {(FrameHost | Window)} [postMessager=window.parent]
 *
 * 当传入的对象 `payload` 不是 plain 对象的时候（如 Error、function、DOMElement、JSX 等），这里会报错
 * 「Uncaught DOMException: The object could not be cloned.」或 「DataCloneError: The object could not be cloned.」
 */
function broadcastPromise<T = void, P = void>(
    type: string,
    payload: P,
    postMessager?: FrameHost | Window
): Promise<T>;

/**
 * 注册广播的事件回调，返回可用于反注册的方法
 *
 * @param type 事件 type
 * @param fn 事件的处理函数
 */
function subscribe<T = void, P = void>(type: string, fn: (payload: P) => Promise<T>): () => void;
function subscribe<P = void>(type: string, fn: (payload: P) => void): () => void;

/**
 * 单次注册广播的事件回调，运行一次后将自动移除，返回可用于反注册的方法
 *
 * @param type 事件 type
 * @param fn 事件的处理函数
 */
function subscribeOnce<T = void, P = void>(
    type: string,
    fn: (payload: P) => Promise<T>
): () => void;
function subscribeOnce<P = void>(type: string, fn: (payload: P) => void): () => void;
```
npm package: @manydesigns/portofino
Description: A wrapper for portofino API endpoints
Author: Manydesigns
Latest version: 1.16.7

# Portofino JS

Stress da endpoint di portofino? Il solo pensiero di chiamare :selectionProvider ti causa l'orticaria? Ogni volta che devi riscrivere le chiamate di autenticazione perdi mezza giornata perchè non ti ricordi come diamine avevi fatto due mesi fa per quel diavolo di progetto che ti aveva fatto penare?

Allora perchè non hai già installato PortofinoJS?

Portofino JS è una libreria javascript per mappare le chiamate http di Portofino, la documentazione è disponibile su [manydesigns.github.io/portofino-js](https://manydesigns.github.io/portofino-js).

## Rilascio

Per eseguire un rilascio è sufficente lanciare manualmente la action `release`, questa si occuperà di far girare i test, generare il changelog e la nuova versione a partire dai conventional-commit e di rilasciarla su GitHub e su NPM.