dubhe-sdk-delegate v1.0.73
dubhe-sdk-delegate
dubhe-sdk-delegate - JavaScript client for dubhe delegate service
- Package version: 1.0.71
- Build date: 2023-08-16 11:02:50
For more information, please visit http://www.billion-byte.com
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install dubhe-sdk-delegate --save
Finally, you need to build the module:
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:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
To use the link you just defined in your project, switch to the directory you want to use your dubhe-sdk-delegate from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
Finally, you need to build the module:
npm run build
Getting Started
Please follow the installation instruction and execute the following JS code:
import { CacheApiControllerApi } from 'dubhe-sdk-delegate';
const api = new CacheApiControllerApi(ApiContext.getInstance());
const businessType = "businessType_example"; // {String} 系统编码
var opts = {
'categoryCode': "categoryCode_example" // {String} categoryCode
};
try {
const {data} = await api.fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT(businessType, opts);
} catch(error) {
console.error(error);
}
API Endpoints
All URIs are relative to http://91.2.3.65:28790/DELEGATE
Class | Method | HTTP request | Description |
---|---|---|---|
CacheApiControllerApi | fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT | GET /rest/delegate/cache/fetchCmCodeItemBusiByBusinessTypeAndCategoryCodeMT | 通过businessType查询业务码值 |
CacheApiControllerApi | fetchProdNameByProdCodeListMT | POST /rest/delegate/cache/fetchProdNameByProdCodeListMT | prodCode获取产品名称 |
CmFineReportControllerApi | disableCmFineReport | PUT /rest/delegate/cmFineReport/disable/{id} | 禁用fine报表配置 |
CmFineReportControllerApi | enableCmFineReport | PUT /rest/delegate/cmFineReport/enable/{id} | 启用fine报表配置 |
CmFineReportControllerApi | fetchCmFineReportDetail | GET /rest/delegate/cmFineReport/detail/{id} | 获取fine报表配置详细 |
CmFineReportControllerApi | fetchCmFineReportList | GET /rest/delegate/cmFineReport/list | 获取fine报表配置列表 |
CmFineReportControllerApi | fetchCmFineReportListByBks | GET /rest/delegate/cmFineReport/fetchByBks | fetchCmFineReportListByBks |
CmFineReportControllerApi | removeCmFineReport | DELETE /rest/delegate/cmFineReport/remove/{id} | 删除fine报表配置 |
CmFineReportControllerApi | removeCmFineReportListByBks | DELETE /rest/delegate/cmFineReport/removeByBks | removeCmFineReportListByBks |
CmFineReportControllerApi | saveCmFineReport | POST /rest/delegate/cmFineReport/save | 保存fine报表配置 |
CmFineReportControllerApi | updateCmFineReport | PATCH /rest/delegate/cmFineReport/update | 更新fine报表配置 |
CmFineReportControllerApi | updateForceCmFineReport | PUT /rest/delegate/cmFineReport/updateForce | 刷新fine报表配置 |
CmGisControllerApi | fetchGisDetail | GET /rest/delegate/gis/fetchGisDetail | GIS详情 |
CmGisControllerApi | fetchGisList | POST /rest/delegate/gis/fetchGisList | GIS列表 |
DecisionControllerApi | fetchDsmFlowChainList | GET /rest/delegate/decision/fetchDsmFlowChainList | 获取决策流基础表列表 |
DecisionControllerApi | fetchDsmRuleChainList | GET /rest/delegate/decision/fetchDsmRuleChainList | 获取决策树列表 |
DecisionControllerApi | fetchDsmScoreChainList | GET /rest/delegate/decision/fetchDsmScoreChainList | 获取评分卡列表 |
DecisionControllerApi | fetchIndexCiteList | GET /rest/delegate/decision/fetchIndexCiteList | 获取指标引用详情列表 |
DiscoveryControllerApi | allApplication | GET /rest/delegate/discovery/allApplication | allApplication |
DiscoveryControllerApi | discoveryService | GET /rest/delegate/discovery/discoveryService/{serviceName} | discoveryService |
DoExpressControllerApi | doExpress | POST /rest/delegate/express/doExpress | 表达式 |
DoExpressControllerApi | fetchCustomeFuncList | GET /rest/delegate/express/fetchCustomeFuncList | 获取所有的自定义Groovy函数 |
IndicatorControllerApi | feignFetchIndexDetail | GET /rest/delegate/indicator/indexDetail/{indexCode} | 获取指标详情 |
IndicatorControllerApi | fetchGroupNameAndProductName | GET /rest/delegate/indicator/fetchGroupNameAndProductName | 根据后端服务URL查询分组名称和服务编码 |
IndicatorControllerApi | fetchIndexByProductCode | GET /rest/delegate/indicator/fetchIndexByProductCode/{productCode} | 根据服务编码查询指标列表信息 |
IndicatorControllerApi | fetchIndicatorList | POST /rest/delegate/indicator/fetchIndicatorList | 指标抓取 |
IndicatorEngineControllerApi | fetchCmDataSourceDetailIE | GET /rest/delegate/indicatorEngine/fetchCmDataSourceDetailIE/{dsCode} | 获取数据源详细 |
IndicatorEngineControllerApi | validateRegExpressIE | PATCH /rest/delegate/indicatorEngine/ValidateRegExpressIE | 验证正则表达式 |
MidletApiControllerApi | doExpressOpen | POST /rest/delegate/midlet/doExpress | 表达式 |
MidletApiControllerApi | fetchAreaBySysConfig | GET /rest/delegate/midlet/fetchAreaBySysConfig | 通过配置获取区域 |
MidletApiControllerApi | fetchCmAreaInfoByAreaCodeMT | GET /rest/delegate/midlet/fetchCmAreaInfoByAreaCodeMT | 获取区域列表 |
MidletApiControllerApi | fetchCmAreaInfoByAreaLevelMT | GET /rest/delegate/midlet/fetchCmAreaInfoByAreaLevelMT | 获取区域列表 |
MidletApiControllerApi | fetchCmAreaInfoLikeAreaCodeMT | GET /rest/delegate/midlet/fetchCmAreaInfoLikeAreaCodeMT | 获取区域列表 |
MidletApiControllerApi | fetchCmCodeItemByCategoryCodeListMT | POST /rest/delegate/midlet/fetchCmCodeItemByCategoryCodeListMT | 通过CategoryCodes查询公共码值 |
MidletApiControllerApi | fetchFullCmArea | GET /rest/delegate/midlet/fetchFullCmArea | 获取区域上级 |
MidletApiControllerApi | genCodeMT | GET /rest/delegate/midlet/genCodeMT | 根据编码规则生成唯一code |
MidletApiControllerApi | saveCmCodeRuleMT | POST /rest/delegate/midlet/saveCmCodeRuleMT | 新建编码规则 |
MockCacheControllerApi | doMockCache | GET /rest/delegate/mockCache/doMockCache | doMockCache |
PingControllerApi | systemPing | GET /open/delegate/ping/ping/ping | systemPing |
ServiceOfflineControllerApi | fireOffline | DELETE /rest/delegate/serviceOffline/fireOffline | fireOffline |
ServiceReportControllerApi | genReport | POST /rest/delegate/serviceReport/genReport | 生成报告 |
SysGlobalConfigDelegateControllerApi | bindTagByConfigCode | PUT /open/delegate/sysGlobalConfigDelegate/bindTagByConfigCode/{tag} | 绑定配置到tag |
SysGlobalConfigDelegateControllerApi | deleteTagByConfigCode | POST /open/delegate/sysGlobalConfigDelegate/deleteTagByConfigCode | 删除tag里的配置列表 |
SysGlobalConfigDelegateControllerApi | fetchCmCustomerConfigByTag | GET /open/delegate/sysGlobalConfigDelegate/fetchCmCustomerConfigByTag | 通过tag获取cm_customer_config详情 |
SysGlobalConfigDelegateControllerApi | fetchSysGlobalConfigDelegateDetail | GET /open/delegate/sysGlobalConfigDelegate/detail/{configCode} | 获取sys_global_config详细 |
SysGlobalConfigDelegateControllerApi | fetchSysGlobalConfigDelegateList | GET /open/delegate/sysGlobalConfigDelegate/list | 获取SysGlobalConfigDelegate列表 |
SysGlobalConfigDelegateControllerApi | fetchTagList | GET /open/delegate/sysGlobalConfigDelegate/fetchTagList | 获取tag列表 |
SysResourceWithSecondControllerApi | fetchSysResourceWithSecondList | GET /open/delegate/sysResourceWithSecond/list | 获取SysResourceWithSecond列表 |
SysSpringConfigControllerApi | fetchSysSpringConfigDetail | GET /rest/delegate/SysSpringConfig/detail/{actionCode} | 获取sys_spring_config详细 |
SysSpringConfigControllerApi | fetchSysSpringConfigList | GET /rest/delegate/SysSpringConfig/list | 获取sys_spring_config列表 |
SysSpringConfigControllerApi | generateSysSpringConfig | POST /rest/delegate/SysSpringConfig/generate/{actionCode} | 生成sys_spring_config配置 |
SysSpringConfigControllerApi | previewSysSpringConfig | POST /rest/delegate/SysSpringConfig/preview | 预览配置信息 |
SystemCacheControllerApi | systemCacheClearAll | POST /rest/delegate/systemCache/clearAll | 清理L2CACHE全部缓存 |
SystemCacheControllerApi | systemCacheClearMulti | POST /rest/delegate/systemCache/clearMulti | 清理L2CACHE缓存 |
SystemCacheControllerApi | systemCacheList | GET /rest/delegate/systemCache/list | list |
TfhrmsControllerApi | fetchTfhrmsDetail | GET /open/delegate/tfhrms/fetchDetail | 获取详细信息 |
Models
- Bean
- CacheStatsWraper
- CaptureIndicatorBean
- CmAreaBean
- CmCodeItemBean
- CmCodeRule
- CmDataSource
- CmFineReport
- CmGis
- DeScoreModule
- DropDownVO
- DsmFlowChainEntity
- DsmFlowConditionBean
- DsmFlowDetailEntity
- DsmFlowDirection
- DsmFlowNode
- DsmFlowNodeRel
- DsmScoreModuleConf
- DsmScoreRiskConf
- ExpressParam
- ExpressParamRun
- GroovyCutstomFuncBean
- GroupNameAndProductNameBean
- IndexBean
- IndexCiteEntity
- RuleChainEntity
- RuleDetailEntity
- RulesetEntity
- SPcb2PIndexlist
- ScoreChainEntity
- ScoreDetailEntity
- ScoreItemEntity
- SysConfigTag
- SysGlobalConfig
- SysGlobalConfigDelegateBean
- SysResourceWithSecondBean
- SysSpringCommonConfig
- SysSpringConfig
- SysSpringDatasourceConfig
- SysSpringRabbitmqConfig
- SysSpringRedisConfig
- TfhrmsInfobean
- ValidateRegExpressBean