shcp-api-lib 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +206 -10
- package/dist/index.esm.js +273 -17
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +276 -16
- package/dist/index.js.map +1 -1
- package/dist/types/src/api/index.d.ts +4 -0
- package/dist/types/src/api/right-service-config-api.d.ts +1 -1
- package/dist/types/src/api/rule-api.d.ts +7 -7
- package/dist/types/src/api/system-AttachController-api.d.ts +23 -0
- package/dist/types/src/api/system-AuthClientController-api.d.ts +21 -0
- package/dist/types/src/api/system-OssController-api.d.ts +25 -0
- package/dist/types/src/api/system-SmsController-api.d.ts +25 -0
- package/dist/types/src/type/model/index.d.ts +4 -0
- package/dist/types/src/type/model/system-AttachController-model.d.ts +28 -0
- package/dist/types/src/type/model/system-AuthClientController-model.d.ts +24 -0
- package/dist/types/src/type/model/system-OssController-model.d.ts +28 -0
- package/dist/types/src/type/model/system-SmsController-model.d.ts +30 -0
- package/package.json +15 -13
@@ -71,3 +71,7 @@ export * from './system-MenuController-api';
|
|
71
71
|
export * from './system-DictBizController-api';
|
72
72
|
export * from './system-DictController-api';
|
73
73
|
export * from './system-DeptController-api';
|
74
|
+
export * from './system-AuthClientController-api';
|
75
|
+
export * from './system-AttachController-api';
|
76
|
+
export * from './system-OssController-api';
|
77
|
+
export * from './system-SmsController-api';
|
@@ -23,7 +23,7 @@ export declare class RightServiceConfigApi {
|
|
23
23
|
* 慢病管理.查询单个(按ID)
|
24
24
|
* URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/detail
|
25
25
|
*/
|
26
|
-
static getDiseaseCareDetail(
|
26
|
+
static getDiseaseCareDetail(rightId: number): Promise<CommonRes<DiseaseCareConfigDTO>>;
|
27
27
|
/**
|
28
28
|
* 慢病管理.查询单个(按条件)
|
29
29
|
* URL: /api/blade-system/${ShcpApiSdk.getApiSuffix()}/right/serviceConfig/diseaseCare/get
|
@@ -3,37 +3,37 @@ import { RuleDTO, RuleQuery, RuleCreateRequest, RuleUpdateRequest, RuleExecuteRe
|
|
3
3
|
export declare class RuleApi {
|
4
4
|
/**
|
5
5
|
* 单个查询(按ID)
|
6
|
-
* URL: /api/
|
6
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/detail
|
7
7
|
*/
|
8
8
|
static detail(id: number): Promise<CommonRes<RuleDTO>>;
|
9
9
|
/**
|
10
10
|
* 列表查询
|
11
|
-
* URL: /api/
|
11
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/list
|
12
12
|
*/
|
13
13
|
static list(query: RuleQuery): Promise<CommonRes<RuleDTO[]>>;
|
14
14
|
/**
|
15
15
|
* 分页查询
|
16
|
-
* URL: /api/
|
16
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/page
|
17
17
|
*/
|
18
18
|
static page(data: RuleQuery): Promise<CommonRes<PagedList<RuleDTO>>>;
|
19
19
|
/**
|
20
20
|
* 创建
|
21
|
-
* URL: /api/
|
21
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/create
|
22
22
|
*/
|
23
23
|
static create(request: RuleCreateRequest): Promise<CommonRes<number>>;
|
24
24
|
/**
|
25
25
|
* 更新
|
26
|
-
* URL: /api/
|
26
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/update
|
27
27
|
*/
|
28
28
|
static update(request: RuleUpdateRequest): Promise<CommonRes<number>>;
|
29
29
|
/**
|
30
30
|
* 删除
|
31
|
-
* URL: /api/
|
31
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/delete
|
32
32
|
*/
|
33
33
|
static delete(id: number): Promise<CommonRes<number>>;
|
34
34
|
/**
|
35
35
|
* 执行
|
36
|
-
* URL: /api/
|
36
|
+
* URL: /api/shcp-km/${ShcpApiSdk.getApiSuffix()}/rule/execute
|
37
37
|
*/
|
38
38
|
static execute(request: RuleExecuteRequest): Promise<CommonRes<Record<string, any>>>;
|
39
39
|
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { Attach, AttachVO } from "../type/model/system-AttachController-model";
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 附件管理 API
|
7
|
+
*/
|
8
|
+
export declare class AttachControllerApi {
|
9
|
+
/** 查看详情 */
|
10
|
+
static detail(attach: Partial<Attach>): Promise<CommonRes<Attach>>;
|
11
|
+
/** 分页获取附件 */
|
12
|
+
static list(attach: Partial<Attach>, query: PageRequest): Promise<CommonRes<PagedList<Attach>>>;
|
13
|
+
/** 自定义分页获取附件 */
|
14
|
+
static page(attach: Partial<AttachVO>, query: PageRequest): Promise<CommonRes<PagedList<AttachVO>>>;
|
15
|
+
/** 新增附件 */
|
16
|
+
static save(attach: Attach): Promise<CommonRes<boolean>>;
|
17
|
+
/** 修改附件 */
|
18
|
+
static update(attach: Attach): Promise<CommonRes<boolean>>;
|
19
|
+
/** 新增或修改附件 */
|
20
|
+
static submit(attach: Attach): Promise<CommonRes<boolean>>;
|
21
|
+
/** 删除附件 */
|
22
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
23
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { AuthClient } from "../type/model/system-AuthClientController-model";
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 应用管理 API
|
7
|
+
*/
|
8
|
+
export declare class AuthClientControllerApi {
|
9
|
+
/** 查看详情 */
|
10
|
+
static detail(authClient: Partial<AuthClient>): Promise<CommonRes<AuthClient>>;
|
11
|
+
/** 分页获取应用管理 */
|
12
|
+
static list(authClient: Partial<AuthClient>, query: PageRequest): Promise<CommonRes<PagedList<AuthClient>>>;
|
13
|
+
/** 新增应用管理 */
|
14
|
+
static save(authClient: AuthClient): Promise<CommonRes<boolean>>;
|
15
|
+
/** 修改应用管理 */
|
16
|
+
static update(authClient: AuthClient): Promise<CommonRes<boolean>>;
|
17
|
+
/** 新增或修改应用管理 */
|
18
|
+
static submit(authClient: AuthClient): Promise<CommonRes<boolean>>;
|
19
|
+
/** 删除应用管理 */
|
20
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
21
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { Oss, OssVO } from "../type/model/system-OssController-model";
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 对象存储管理 API
|
7
|
+
*/
|
8
|
+
export declare class OssControllerApi {
|
9
|
+
/** 查看详情 */
|
10
|
+
static detail(oss: Partial<Oss>): Promise<CommonRes<OssVO>>;
|
11
|
+
/** 分页获取对象存储 */
|
12
|
+
static list(oss: Partial<Oss>, query: PageRequest): Promise<CommonRes<PagedList<OssVO>>>;
|
13
|
+
/** 自定义分页获取对象存储 */
|
14
|
+
static page(oss: Partial<OssVO>, query: PageRequest): Promise<CommonRes<PagedList<OssVO>>>;
|
15
|
+
/** 新增对象存储 */
|
16
|
+
static save(oss: Oss): Promise<CommonRes<boolean>>;
|
17
|
+
/** 修改对象存储 */
|
18
|
+
static update(oss: Oss): Promise<CommonRes<boolean>>;
|
19
|
+
/** 新增或修改对象存储 */
|
20
|
+
static submit(oss: Oss): Promise<CommonRes<boolean>>;
|
21
|
+
/** 删除对象存储 */
|
22
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
23
|
+
/** 启用对象存储 */
|
24
|
+
static enable(id: number | string): Promise<CommonRes<boolean>>;
|
25
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { Sms, SmsVO } from "../type/model/system-SmsController-model";
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 短信资源管理 API
|
7
|
+
*/
|
8
|
+
export declare class SmsControllerApi {
|
9
|
+
/** 查看详情 */
|
10
|
+
static detail(sms: Partial<Sms>): Promise<CommonRes<SmsVO>>;
|
11
|
+
/** 分页获取短信配置 */
|
12
|
+
static list(sms: Partial<Sms>, query: PageRequest): Promise<CommonRes<PagedList<SmsVO>>>;
|
13
|
+
/** 自定义分页获取短信配置 */
|
14
|
+
static page(sms: Partial<SmsVO>, query: PageRequest): Promise<CommonRes<PagedList<SmsVO>>>;
|
15
|
+
/** 新增短信配置 */
|
16
|
+
static save(sms: Sms): Promise<CommonRes<boolean>>;
|
17
|
+
/** 修改短信配置 */
|
18
|
+
static update(sms: Sms): Promise<CommonRes<boolean>>;
|
19
|
+
/** 新增或修改短信配置 */
|
20
|
+
static submit(sms: Sms): Promise<CommonRes<boolean>>;
|
21
|
+
/** 删除短信配置 */
|
22
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
23
|
+
/** 启用短信配置 */
|
24
|
+
static enable(id: number | string): Promise<CommonRes<boolean>>;
|
25
|
+
}
|
@@ -56,3 +56,7 @@ export * from './system-MenuController-model';
|
|
56
56
|
export * from './system-DictBizController-model';
|
57
57
|
export * from './system-DictController-model';
|
58
58
|
export * from './system-DeptController-model';
|
59
|
+
export * from './system-AuthClientController-model';
|
60
|
+
export * from './system-AttachController-model';
|
61
|
+
export * from './system-OssController-model';
|
62
|
+
export * from './system-SmsController-model';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* 附件实体
|
3
|
+
*/
|
4
|
+
export interface Attach {
|
5
|
+
id?: number | string;
|
6
|
+
link?: string;
|
7
|
+
originalName?: string;
|
8
|
+
name?: string;
|
9
|
+
domain?: string;
|
10
|
+
bucket?: string;
|
11
|
+
fileType?: string;
|
12
|
+
attachType?: string;
|
13
|
+
uploadType?: string;
|
14
|
+
size?: number;
|
15
|
+
extension?: string;
|
16
|
+
objectName?: string;
|
17
|
+
createUser?: number | string;
|
18
|
+
createDept?: number | string;
|
19
|
+
createTime?: string;
|
20
|
+
updateUser?: number | string;
|
21
|
+
updateTime?: string;
|
22
|
+
isDeleted?: number;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* 附件视图对象
|
26
|
+
*/
|
27
|
+
export interface AttachVO extends Attach {
|
28
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* 应用管理实体
|
3
|
+
*/
|
4
|
+
export interface AuthClient {
|
5
|
+
id?: number | string;
|
6
|
+
clientId?: string;
|
7
|
+
clientSecret?: string;
|
8
|
+
clientName?: string;
|
9
|
+
resourceIds?: string;
|
10
|
+
scope?: string;
|
11
|
+
authorizedGrantTypes?: string;
|
12
|
+
webServerRedirectUri?: string;
|
13
|
+
authorities?: string;
|
14
|
+
accessTokenValidity?: number;
|
15
|
+
refreshTokenValidity?: number;
|
16
|
+
additionalInformation?: string;
|
17
|
+
autoapprove?: string;
|
18
|
+
createUser?: number | string;
|
19
|
+
createDept?: number | string;
|
20
|
+
createTime?: string;
|
21
|
+
updateUser?: number | string;
|
22
|
+
updateTime?: string;
|
23
|
+
isDeleted?: number;
|
24
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
/**
|
2
|
+
* 对象存储实体
|
3
|
+
*/
|
4
|
+
export interface Oss {
|
5
|
+
id?: number | string;
|
6
|
+
tenantId?: string;
|
7
|
+
tenantName?: string;
|
8
|
+
endpoint?: string;
|
9
|
+
accessKey?: string;
|
10
|
+
secretKey?: string;
|
11
|
+
bucketName?: string;
|
12
|
+
region?: string;
|
13
|
+
ossType?: string;
|
14
|
+
domain?: string;
|
15
|
+
isPrivate?: number;
|
16
|
+
remark?: string;
|
17
|
+
isDeleted?: number;
|
18
|
+
createUser?: number | string;
|
19
|
+
createDept?: number | string;
|
20
|
+
createTime?: string;
|
21
|
+
updateUser?: number | string;
|
22
|
+
updateTime?: string;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* 对象存储视图对象
|
26
|
+
*/
|
27
|
+
export interface OssVO extends Oss {
|
28
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* 短信配置实体
|
3
|
+
*/
|
4
|
+
export interface Sms {
|
5
|
+
id?: number | string;
|
6
|
+
tenantId?: string;
|
7
|
+
tenantName?: string;
|
8
|
+
provider?: string;
|
9
|
+
accessKey?: string;
|
10
|
+
secretKey?: string;
|
11
|
+
signName?: string;
|
12
|
+
templateCode?: string;
|
13
|
+
templateParam?: string;
|
14
|
+
region?: string;
|
15
|
+
smsType?: string;
|
16
|
+
domain?: string;
|
17
|
+
isEnabled?: number;
|
18
|
+
remark?: string;
|
19
|
+
isDeleted?: number;
|
20
|
+
createUser?: number | string;
|
21
|
+
createDept?: number | string;
|
22
|
+
createTime?: string;
|
23
|
+
updateUser?: number | string;
|
24
|
+
updateTime?: string;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* 短信配置视图对象
|
28
|
+
*/
|
29
|
+
export interface SmsVO extends Sms {
|
30
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shcp-api-lib",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.7",
|
4
4
|
"description": "SHCP Model Library",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -9,6 +9,18 @@
|
|
9
9
|
"files": [
|
10
10
|
"dist"
|
11
11
|
],
|
12
|
+
"scripts": {
|
13
|
+
"build": "rollup -c",
|
14
|
+
"dev": "rollup -c -w",
|
15
|
+
"clean": "rimraf dist",
|
16
|
+
"prebuild": "pnpm run clean",
|
17
|
+
"test": "node --loader ts-node/esm tests/example.ts",
|
18
|
+
"test:all": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.runAllExamples())\"",
|
19
|
+
"test:single": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example2_SingleModuleTest())\"",
|
20
|
+
"test:batch": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example3_BatchTest())\"",
|
21
|
+
"prepublishOnly": "pnpm run build",
|
22
|
+
"publish:local": "pnpm run build && pnpm pack"
|
23
|
+
},
|
12
24
|
"keywords": [
|
13
25
|
"shcp",
|
14
26
|
"model",
|
@@ -33,15 +45,5 @@
|
|
33
45
|
"tslib": "^2.8.1",
|
34
46
|
"typescript": "^5.0.0"
|
35
47
|
},
|
36
|
-
"
|
37
|
-
|
38
|
-
"dev": "rollup -c -w",
|
39
|
-
"clean": "rimraf dist",
|
40
|
-
"prebuild": "pnpm run clean",
|
41
|
-
"test": "node --loader ts-node/esm tests/example.ts",
|
42
|
-
"test:all": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.runAllExamples())\"",
|
43
|
-
"test:single": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example2_SingleModuleTest())\"",
|
44
|
-
"test:batch": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example3_BatchTest())\"",
|
45
|
-
"publish:local": "pnpm run build && pnpm pack"
|
46
|
-
}
|
47
|
-
}
|
48
|
+
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"
|
49
|
+
}
|