# dubhe-report-api

> dubhe_report_demo

Latest version **1.0.8** (published 2021-07-05) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install dubhe-report-api
pnpm add dubhe-report-api
yarn add dubhe-report-api
bun add dubhe-report-api
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2021-07-05 |
| First published | 2021-06-06 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dalang81 |

## Links

- npm: https://www.npmjs.com/package/dubhe-report-api
- npm.io page: https://npm.io/package/dubhe-report-api

## Dependencies (4)

- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.0.0
- [superagent](https://npm.io/package/superagent.md) ^5.3.0
- [querystring](https://npm.io/package/querystring.md) ^0.2.1

## Recent versions

- 1.0.8 (latest) — 2021-07-05
- 1.0.7 — 2021-07-01
- 1.0.6 — 2021-06-29
- 1.0.5 — 2021-06-29
- 1.0.4 — 2021-06-11
- 1.0.3 — 2021-06-09
- 1.0.2 — 2021-06-06
- 1.0.1 — 2021-06-06

## README

# dubhe-report-api

DubheReportApi - JavaScript client for dubhe-report-api
dubhe report demo
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.2
- Package version: 1.0.2
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit [http://www.openkosmos.com](http://www.openkosmos.com)

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install dubhe-report-api --save
```

Finally, you need to build the module:

```shell
npm run build
```

##### Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:

```shell
npm install
```

Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:

```shell
npm link
```

To use the link you just defined in your project, switch to the directory you want to use your dubhe-report-api from, and run:

```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```

Finally, you need to build the module:

```shell
npm run build
```

#### git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var DubheReportApi = require('dubhe-report-api');


var api = new DubheReportApi.AccessControllerApi()
api.fetchAccessesUsingPOST().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});


```

## Documentation for API Endpoints

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

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DubheReportApi.AccessControllerApi* | [**fetchAccessesUsingPOST**](docs/AccessControllerApi.md#fetchAccessesUsingPOST) | **POST** /rest/access/fetch | 获取权限
*DubheReportApi.AccessControllerApi* | [**fetchMenuUsingPOST**](docs/AccessControllerApi.md#fetchMenuUsingPOST) | **POST** /rest/access/menu | 获取菜单
*DubheReportApi.AuthControllerApi* | [**loginUsingPOST**](docs/AuthControllerApi.md#loginUsingPOST) | **POST** /auth/login | 认证接口
*DubheReportApi.CdcReportControllerApi* | [**addCdc**](docs/CdcReportControllerApi.md#addCdc) | **POST** /api/cdc/add | 保存报卡
*DubheReportApi.CdcReportControllerApi* | [**addCdc1**](docs/CdcReportControllerApi.md#addCdc1) | **POST** /rest/cdc/add | 保存报卡
*DubheReportApi.CdcReportControllerApi* | [**addCdcMulti**](docs/CdcReportControllerApi.md#addCdcMulti) | **POST** /api/cdc/addMulti/{immediately} | 保存报卡
*DubheReportApi.CdcReportControllerApi* | [**addCdcMulti1**](docs/CdcReportControllerApi.md#addCdcMulti1) | **POST** /rest/cdc/addMulti/{immediately} | 保存报卡
*DubheReportApi.CdcReportControllerApi* | [**cdcReportImmediately**](docs/CdcReportControllerApi.md#cdcReportImmediately) | **GET** /api/cdc/report/immediately | 批量报卡
*DubheReportApi.CdcReportControllerApi* | [**cdcReportImmediately1**](docs/CdcReportControllerApi.md#cdcReportImmediately1) | **GET** /rest/cdc/report/immediately | 批量报卡
*DubheReportApi.CdcReportControllerApi* | [**cdcsetting**](docs/CdcReportControllerApi.md#cdcsetting) | **GET** /api/cdc/setting | 获取CDC设置
*DubheReportApi.CdcReportControllerApi* | [**cdcsetting1**](docs/CdcReportControllerApi.md#cdcsetting1) | **GET** /rest/cdc/setting | 获取CDC设置
*DubheReportApi.CdcReportControllerApi* | [**detailCdc**](docs/CdcReportControllerApi.md#detailCdc) | **GET** /api/cdc/detail/{id} | 获取CDC请求详情
*DubheReportApi.CdcReportControllerApi* | [**detailCdc1**](docs/CdcReportControllerApi.md#detailCdc1) | **GET** /rest/cdc/detail/{id} | 获取CDC请求详情
*DubheReportApi.CdcReportControllerApi* | [**listCdc**](docs/CdcReportControllerApi.md#listCdc) | **GET** /api/cdc/list | 获取CDC全部上报请求
*DubheReportApi.CdcReportControllerApi* | [**listCdc1**](docs/CdcReportControllerApi.md#listCdc1) | **GET** /rest/cdc/list | 获取CDC全部上报请求
*DubheReportApi.CdcReportControllerApi* | [**removeCdc**](docs/CdcReportControllerApi.md#removeCdc) | **DELETE** /api/cdc/delete/{id} | 撤销报卡
*DubheReportApi.CdcReportControllerApi* | [**removeCdc1**](docs/CdcReportControllerApi.md#removeCdc1) | **DELETE** /rest/cdc/delete/{id} | 撤销报卡
*DubheReportApi.CdcReportControllerApi* | [**reportCdc**](docs/CdcReportControllerApi.md#reportCdc) | **POST** /api/cdc/report/{id} | 上报CDC
*DubheReportApi.CdcReportControllerApi* | [**reportCdc1**](docs/CdcReportControllerApi.md#reportCdc1) | **POST** /rest/cdc/report/{id} | 上报CDC
*DubheReportApi.CdcReportControllerApi* | [**testDetailCdc**](docs/CdcReportControllerApi.md#testDetailCdc) | **GET** /api/cdc/testDetailCdc/{id} | 获取CDC请求详情
*DubheReportApi.CdcReportControllerApi* | [**testDetailCdc1**](docs/CdcReportControllerApi.md#testDetailCdc1) | **GET** /rest/cdc/testDetailCdc/{id} | 获取CDC请求详情
*DubheReportApi.CdcReportControllerApi* | [**testPublishUsingGET**](docs/CdcReportControllerApi.md#testPublishUsingGET) | **GET** /api/cdc/report/testPublish | testPublish
*DubheReportApi.CdcReportControllerApi* | [**testPublishUsingGET1**](docs/CdcReportControllerApi.md#testPublishUsingGET1) | **GET** /rest/cdc/report/testPublish | testPublish
*DubheReportApi.CdcReportControllerApi* | [**vpnstatus**](docs/CdcReportControllerApi.md#vpnstatus) | **GET** /api/cdc/vpnstatus | 获取CDC VPN状态
*DubheReportApi.CdcReportControllerApi* | [**vpnstatus1**](docs/CdcReportControllerApi.md#vpnstatus1) | **GET** /rest/cdc/vpnstatus | 获取CDC VPN状态
*DubheReportApi.DigitalCertificateControllerApi* | [**fetchLicenseUsingGET**](docs/DigitalCertificateControllerApi.md#fetchLicenseUsingGET) | **GET** /license/info | 获取license信息
*DubheReportApi.DigitalCertificateControllerApi* | [**reloadUsingGET**](docs/DigitalCertificateControllerApi.md#reloadUsingGET) | **GET** /license/reload | 重载license信息
*DubheReportApi.LoginControllerApi* | [**refreshTokenUsingPOST**](docs/LoginControllerApi.md#refreshTokenUsingPOST) | **POST** /rest/login/refresh/token | 登录接口
*DubheReportApi.MonitorStatusDemoControllerApi* | [**fetchMonitorStatusPageSqlUsingGET**](docs/MonitorStatusDemoControllerApi.md#fetchMonitorStatusPageSqlUsingGET) | **GET** /rest/test/fetchMonitorStatusPageSql | 测试fetch分页sql
*DubheReportApi.MonitorStatusDemoControllerApi* | [**fetchMonitorStatusPageUsingGET**](docs/MonitorStatusDemoControllerApi.md#fetchMonitorStatusPageUsingGET) | **GET** /rest/test/fetchMonitorStatusPage | 测试fetch分页nosql
*DubheReportApi.MonitorStatusDemoControllerApi* | [**fetchMonitorStatusUsingGET**](docs/MonitorStatusDemoControllerApi.md#fetchMonitorStatusUsingGET) | **GET** /rest/test/fetchMonitorStatus | 测试fetch
*DubheReportApi.RecordControllerApi* | [**fetchListRecords**](docs/RecordControllerApi.md#fetchListRecords) | **GET** /rest/record/fetchListRecords | 获取操作记录全部信息
*DubheReportApi.ReportControllerApi* | [**addExposeReportUsingPOST**](docs/ReportControllerApi.md#addExposeReportUsingPOST) | **POST** /rest/cases/exposeReport | addExposeReport
*DubheReportApi.ReportControllerApi* | [**addGatherReportUsingPOST**](docs/ReportControllerApi.md#addGatherReportUsingPOST) | **POST** /rest/cases/gatherReport | addGatherReport
*DubheReportApi.ReportControllerApi* | [**addReportUsingPOST**](docs/ReportControllerApi.md#addReportUsingPOST) | **POST** /rest/cases/report | addReport
*DubheReportApi.ReportControllerApi* | [**cancelReportUsingPOST**](docs/ReportControllerApi.md#cancelReportUsingPOST) | **POST** /rest/cases/cancelReport | cancelReport
*DubheReportApi.ReportControllerApi* | [**deleteGatherReportUsingPOST**](docs/ReportControllerApi.md#deleteGatherReportUsingPOST) | **POST** /rest/cases/deleteGatherReport | deleteGatherReport
*DubheReportApi.ReportControllerApi* | [**deleteReportUsingPOST**](docs/ReportControllerApi.md#deleteReportUsingPOST) | **POST** /rest/cases/deleteReport | deleteReport
*DubheReportApi.ReportControllerApi* | [**listExposeReportsUsingGET**](docs/ReportControllerApi.md#listExposeReportsUsingGET) | **GET** /rest/cases/exposeReports | listExposeReports
*DubheReportApi.ReportControllerApi* | [**listGatherReportsRangeUsingGET**](docs/ReportControllerApi.md#listGatherReportsRangeUsingGET) | **GET** /rest/cases/gatherReports/range | listGatherReportsRange
*DubheReportApi.ReportControllerApi* | [**listGatherReportsUsingGET**](docs/ReportControllerApi.md#listGatherReportsUsingGET) | **GET** /rest/cases/gatherReports | listGatherReports
*DubheReportApi.ReportControllerApi* | [**listReportsUsingGET**](docs/ReportControllerApi.md#listReportsUsingGET) | **GET** /rest/cases/reports | listReports
*DubheReportApi.ReportControllerApi* | [**recallReportUsingPOST**](docs/ReportControllerApi.md#recallReportUsingPOST) | **POST** /rest/cases/recallReport | recallReport
*DubheReportApi.ReportControllerApi* | [**reportReportUsingPOST**](docs/ReportControllerApi.md#reportReportUsingPOST) | **POST** /rest/cases/reportReport | reportReport
*DubheReportApi.ReportControllerApi* | [**submitReportUsingPOST**](docs/ReportControllerApi.md#submitReportUsingPOST) | **POST** /rest/cases/submit | submitReport
*DubheReportApi.SystemConfigControllerApi* | [**fetchAllItemSettingUsingGET**](docs/SystemConfigControllerApi.md#fetchAllItemSettingUsingGET) | **GET** /rest/systemConfig/fetchAllItemSetting | 获取全部配置项设置值
*DubheReportApi.SystemConfigControllerApi* | [**fetchConfigByGroupCodeUsingGET**](docs/SystemConfigControllerApi.md#fetchConfigByGroupCodeUsingGET) | **GET** /rest/systemConfig/fetchConfigByGroupCode/{groupCode} | 获取配置组信息
*DubheReportApi.SystemConfigControllerApi* | [**fetchItemSettingByItemCodeUsingGET**](docs/SystemConfigControllerApi.md#fetchItemSettingByItemCodeUsingGET) | **GET** /rest/systemConfig/fetchItemSettingByItemCode/{itemCode} | 获取配置项设置值
*DubheReportApi.SystemConfigControllerApi* | [**updateConfigByGroupSettingUsingPUT**](docs/SystemConfigControllerApi.md#updateConfigByGroupSettingUsingPUT) | **PUT** /rest/systemConfig/updateSystemConfigGroupSetting | 保存组配置信息
*DubheReportApi.SystemConfigControllerApi* | [**updateDisableSystemConfigUsingPUT**](docs/SystemConfigControllerApi.md#updateDisableSystemConfigUsingPUT) | **PUT** /rest/systemConfig/updateDisableSystemConfig/{itemCode} | 禁用配置项
*DubheReportApi.SystemConfigControllerApi* | [**updateEnableSystemConfigUsingPUT**](docs/SystemConfigControllerApi.md#updateEnableSystemConfigUsingPUT) | **PUT** /rest/systemConfig/updateEnableSystemConfig/{itemCode} | 启用配置项
*DubheReportApi.SystemConfigControllerApi* | [**updateSystemConfigSettingUsingPUT**](docs/SystemConfigControllerApi.md#updateSystemConfigSettingUsingPUT) | **PUT** /rest/systemConfig/updateSystemConfigItemSetting | 保存项配置信息
*DubheReportApi.UserControllerApi* | [**all**](docs/UserControllerApi.md#all) | **GET** /rest/user/all | 获取当前用户信息
*DubheReportApi.UserControllerApi* | [**current**](docs/UserControllerApi.md#current) | **POST** /rest/user/current | 获取当前用户信息
*DubheReportApi.UserControllerApi* | [**currentDetail**](docs/UserControllerApi.md#currentDetail) | **GET** /rest/user/currentDetail | 获取当前用户信息
*DubheReportApi.XhlReportControllerApi* | [**addXhl**](docs/XhlReportControllerApi.md#addXhl) | **POST** /rest/xhl/add | 保存报卡
*DubheReportApi.XhlReportControllerApi* | [**addXhlMulti**](docs/XhlReportControllerApi.md#addXhlMulti) | **POST** /rest/xhl/addMulti/{immediately} | 保存报卡
*DubheReportApi.XhlReportControllerApi* | [**detailXhl**](docs/XhlReportControllerApi.md#detailXhl) | **GET** /rest/xhl/detail/{id} | 获取现换率请求详情
*DubheReportApi.XhlReportControllerApi* | [**listXhl**](docs/XhlReportControllerApi.md#listXhl) | **GET** /rest/xhl/list | 获取现换率全部上报请求
*DubheReportApi.XhlReportControllerApi* | [**removeXhl**](docs/XhlReportControllerApi.md#removeXhl) | **DELETE** /rest/xhl/delete/{id} | 撤销报卡
*DubheReportApi.XhlReportControllerApi* | [**reportXhl**](docs/XhlReportControllerApi.md#reportXhl) | **POST** /rest/xhl/report/{id} | 上报现换率


## Documentation for Models

 - [DubheReportApi.AuthResponse](docs/AuthResponse.md)
 - [DubheReportApi.CdcReportReq](docs/CdcReportReq.md)
 - [DubheReportApi.CdcReportRes](docs/CdcReportRes.md)
 - [DubheReportApi.ExposeInfo](docs/ExposeInfo.md)
 - [DubheReportApi.GatherInfo](docs/GatherInfo.md)
 - [DubheReportApi.IUser](docs/IUser.md)
 - [DubheReportApi.LicenseInfo](docs/LicenseInfo.md)
 - [DubheReportApi.Record](docs/Record.md)
 - [DubheReportApi.ReportBodyReq](docs/ReportBodyReq.md)
 - [DubheReportApi.ReportBodyRes](docs/ReportBodyRes.md)
 - [DubheReportApi.ReportReq](docs/ReportReq.md)
 - [DubheReportApi.ReportRes](docs/ReportRes.md)
 - [DubheReportApi.ResponseResultListExposeInfo](docs/ResponseResultListExposeInfo.md)
 - [DubheReportApi.ResponseResultListGatherInfo](docs/ResponseResultListGatherInfo.md)
 - [DubheReportApi.ResponseResultListReport](docs/ResponseResultListReport.md)
 - [DubheReportApi.ResponseResultstring](docs/ResponseResultstring.md)
 - [DubheReportApi.SysGroupResource](docs/SysGroupResource.md)
 - [DubheReportApi.SysSystemConfig](docs/SysSystemConfig.md)
 - [DubheReportApi.Users](docs/Users.md)
 - [DubheReportApi.XhlGrqkReq](docs/XhlGrqkReq.md)
 - [DubheReportApi.XhlGrqkRes](docs/XhlGrqkRes.md)
 - [DubheReportApi.XhlReportReq](docs/XhlReportReq.md)
 - [DubheReportApi.XhlReportRes](docs/XhlReportRes.md)


## Documentation for Authorization

All endpoints do not require authorization.

---
_Source: https://npm.io/package/dubhe-report-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
