@ningboyz/types 1.8.68 → 1.8.70
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/package.json +1 -1
- package/src/core/ISysSecretResponse.ts +104 -0
- package/src/core/index.ts +6 -1
package/package.json
CHANGED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
export interface ISysSecretResponse {
|
|
2
|
+
/** 服务器标识(TokenUsr.WhoBuild) */
|
|
3
|
+
whoBuild: number;
|
|
4
|
+
/** 租户实例(TokenUsr.UserRoot;house 全表惯例,Parse4User 已按令牌租户锁定 query) */
|
|
5
|
+
userIndx: number;
|
|
6
|
+
/** 同租户下自增,与 whoBuild+userIndx 构成三元组主键 */
|
|
7
|
+
idEntity: number;
|
|
8
|
+
|
|
9
|
+
dataStat: 0 | 1;
|
|
10
|
+
/** 隐藏标记 */
|
|
11
|
+
dataHide: number;
|
|
12
|
+
/** 排序号 */
|
|
13
|
+
dataOrdr: number;
|
|
14
|
+
/** 数据来源 */
|
|
15
|
+
dataFrom: number;
|
|
16
|
+
/** 业务日期(int64,如 20261027) */
|
|
17
|
+
dataDate: number;
|
|
18
|
+
dataTime: number;
|
|
19
|
+
|
|
20
|
+
createBy: string;
|
|
21
|
+
createAt: number;
|
|
22
|
+
updateBy: string;
|
|
23
|
+
updateAt: number;
|
|
24
|
+
deleteBy: string;
|
|
25
|
+
deleteAt: number;
|
|
26
|
+
|
|
27
|
+
/** 公开标识(ak_ 前缀),唯一索引,验签点查入口 */
|
|
28
|
+
accessId: string;
|
|
29
|
+
/** 0 禁用 / 1 启用 */
|
|
30
|
+
enableOn: 0 | 1;
|
|
31
|
+
/** 调用次数累计 */
|
|
32
|
+
validCnt: number;
|
|
33
|
+
/** QPS 限额(预留) */
|
|
34
|
+
limitQps: number;
|
|
35
|
+
/** 过期时刻(Unix 秒),0 = 永久有效 */
|
|
36
|
+
expireAt: number;
|
|
37
|
+
/** 最后调用时刻 */
|
|
38
|
+
lastCall: number;
|
|
39
|
+
/** 密钥脱敏尾号,仅用于列表识别,非敏感 */
|
|
40
|
+
key4Last: string;
|
|
41
|
+
envrType: number;
|
|
42
|
+
/** 环境名称 */
|
|
43
|
+
envrName: string;
|
|
44
|
+
/** 环境备注(兼用途备注) */
|
|
45
|
+
envrMemo: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export class TSysSecretResponse implements ISysSecretResponse {
|
|
49
|
+
/** 服务器标识(TokenUsr.WhoBuild) */
|
|
50
|
+
whoBuild: number = 0;
|
|
51
|
+
/** 租户实例(TokenUsr.UserRoot;house 全表惯例,Parse4User 已按令牌租户锁定 query) */
|
|
52
|
+
userIndx: number = 0;
|
|
53
|
+
/** 同租户下自增,与 whoBuild+userIndx 构成三元组主键 */
|
|
54
|
+
idEntity: number = 0;
|
|
55
|
+
|
|
56
|
+
dataStat: 0 | 1 = 0;
|
|
57
|
+
/** 隐藏标记 */
|
|
58
|
+
dataHide: number = 0;
|
|
59
|
+
/** 排序号 */
|
|
60
|
+
dataOrdr: number = 0;
|
|
61
|
+
/** 数据来源 */
|
|
62
|
+
dataFrom: number = 0;
|
|
63
|
+
/** 业务日期(int64,如 20261027) */
|
|
64
|
+
dataDate: number = 0;
|
|
65
|
+
dataTime: number = 0;
|
|
66
|
+
|
|
67
|
+
createBy: string = "";
|
|
68
|
+
createAt: number = 0;
|
|
69
|
+
updateBy: string = "";
|
|
70
|
+
updateAt: number = 0;
|
|
71
|
+
deleteBy: string = "";
|
|
72
|
+
deleteAt: number = 0;
|
|
73
|
+
|
|
74
|
+
/** 公开标识(ak_ 前缀),唯一索引,验签点查入口 */
|
|
75
|
+
accessId: string = "";
|
|
76
|
+
/** 0 禁用 / 1 启用 */
|
|
77
|
+
enableOn: 0 | 1 = 0;
|
|
78
|
+
/** 调用次数累计 */
|
|
79
|
+
validCnt: number = 0;
|
|
80
|
+
/** QPS 限额(预留) */
|
|
81
|
+
limitQps: number = 0;
|
|
82
|
+
/** 过期时刻(Unix 秒),0 = 永久有效 */
|
|
83
|
+
expireAt: number = 0;
|
|
84
|
+
/** 最后调用时刻 */
|
|
85
|
+
lastCall: number = 0;
|
|
86
|
+
/** 密钥脱敏尾号,仅用于列表识别,非敏感 */
|
|
87
|
+
key4Last: string = "";
|
|
88
|
+
envrType: number = 0;
|
|
89
|
+
/** 环境名称 */
|
|
90
|
+
envrName: string = "";
|
|
91
|
+
/** 环境备注(兼用途备注) */
|
|
92
|
+
envrMemo: string = "";
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** 签发响应,secretId 明文仅在签发时返回一次。 */
|
|
96
|
+
export interface ISysSecretIssueResponse {
|
|
97
|
+
credential: ISysSecretResponse;
|
|
98
|
+
secretId: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export class TSysSecretIssueResponse implements ISysSecretIssueResponse {
|
|
102
|
+
credential: ISysSecretResponse = new TSysSecretResponse();
|
|
103
|
+
secretId: string = "";
|
|
104
|
+
}
|
package/src/core/index.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { IUserMembResponse, TUserMembResponse } from "./IUserMembResponse";
|
|
|
35
35
|
import { IUserDutyResponse, TUserDutyResponse } from "./IUserDutyResponse";
|
|
36
36
|
import { INhtfLineResponse, TNhtfLineResponse, INhtfDataResponse, TNhtfDataResponse, IRsDataResponse, TRsDataResponse } from "./INhtfDataResponse.ts";
|
|
37
37
|
import { IDeptFindResponse, TDeptFindResponse } from "./IDeptFindResponse.ts";
|
|
38
|
+
import { ISysSecretIssueResponse, ISysSecretResponse, TSysSecretIssueResponse, TSysSecretResponse } from "./ISysSecretResponse.ts";
|
|
38
39
|
|
|
39
40
|
export {
|
|
40
41
|
// 类
|
|
@@ -80,6 +81,8 @@ export {
|
|
|
80
81
|
TUserMembResponse,
|
|
81
82
|
TUserDutyResponse,
|
|
82
83
|
TDeptFindResponse,
|
|
84
|
+
TSysSecretResponse,
|
|
85
|
+
TSysSecretIssueResponse,
|
|
83
86
|
// 接口
|
|
84
87
|
type IRsDataResponse,
|
|
85
88
|
type ICoreValidResponse,
|
|
@@ -122,5 +125,7 @@ export {
|
|
|
122
125
|
type IUserPassResponse,
|
|
123
126
|
type IUserMembResponse,
|
|
124
127
|
type IUserDutyResponse,
|
|
125
|
-
type IDeptFindResponse
|
|
128
|
+
type IDeptFindResponse,
|
|
129
|
+
type ISysSecretResponse,
|
|
130
|
+
type ISysSecretIssueResponse
|
|
126
131
|
};
|