@certd/pipeline 1.26.16 → 1.27.1

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.
@@ -1,3 +0,0 @@
1
- export * from "@certd/plus-core";
2
- export declare function checkPlus(): void;
3
- export declare function checkComm(): void;
@@ -1,15 +0,0 @@
1
- import { logger } from "../utils/index.js";
2
- import { setLogger, isPlus, isComm } from "@certd/plus-core";
3
- setLogger(logger);
4
- export * from "@certd/plus-core";
5
- export function checkPlus() {
6
- if (!isPlus()) {
7
- throw new Error("此为专业版功能,请升级到专业版");
8
- }
9
- }
10
- export function checkComm() {
11
- if (!isComm()) {
12
- throw new Error("此为商业版功能,请升级到商业版");
13
- }
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGljZW5zZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb3JlL2xpY2Vuc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQzNDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE1BQU0sRUFBRSxNQUFNLGtCQUFrQixDQUFDO0FBQzdELFNBQVMsQ0FBQyxNQUFNLENBQUMsQ0FBQztBQUNsQixjQUFjLGtCQUFrQixDQUFDO0FBRWpDLE1BQU0sVUFBVSxTQUFTO0lBQ3ZCLElBQUksQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDO1FBQ2QsTUFBTSxJQUFJLEtBQUssQ0FBQyxpQkFBaUIsQ0FBQyxDQUFDO0lBQ3JDLENBQUM7QUFDSCxDQUFDO0FBRUQsTUFBTSxVQUFVLFNBQVM7SUFDdkIsSUFBSSxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUM7UUFDZCxNQUFNLElBQUksS0FBSyxDQUFDLGlCQUFpQixDQUFDLENBQUM7SUFDckMsQ0FBQztBQUNILENBQUMifQ==
@@ -1,107 +0,0 @@
1
- /**
2
- * [x]-col的配置
3
- */
4
- export type ColProps = {
5
- span?: number;
6
- [props: string]: any;
7
- };
8
- export type FormItemProps = {
9
- /**
10
- * 字段label
11
- */
12
- title?: string;
13
- /**
14
- * 表单字段组件配置
15
- */
16
- component?: ComponentProps;
17
- /**
18
- * 表单字段 [a|el|n]-col的配置
19
- * 一般用来配置跨列:{span:24} 占满一行
20
- */
21
- col?: ColProps;
22
- /**
23
- * 默认值
24
- */
25
- value?: any;
26
- /**
27
- * 帮助提示配置
28
- */
29
- helper?: string | FormItemHelperProps;
30
- /**
31
- * 排序号
32
- */
33
- order?: number;
34
- /**
35
- * 是否显示此字段
36
- */
37
- show?: boolean;
38
- /**
39
- * 是否是空白占位栏
40
- */
41
- blank?: boolean;
42
- [key: string]: any;
43
- };
44
- /**
45
- * 表单字段帮助说明配置
46
- */
47
- export type FormItemHelperProps = {
48
- /**
49
- * 自定义渲染帮助说明
50
- * @param scope
51
- */
52
- render?: (scope: any) => any;
53
- /**
54
- * 帮助文本
55
- */
56
- text?: string;
57
- /**
58
- * 帮助说明所在的位置,[ undefined | label]
59
- */
60
- position?: string;
61
- /**
62
- * [a|el|n]-tooltip配置
63
- */
64
- tooltip?: object;
65
- [key: string]: any;
66
- };
67
- /**
68
- * 组件配置
69
- */
70
- export type ComponentProps = {
71
- /**
72
- * 组件的名称
73
- */
74
- name?: string | object;
75
- /**
76
- * vmodel绑定的目标属性名
77
- */
78
- vModel?: string;
79
- /**
80
- * 当原始组件名的参数被以上属性名占用时,可以配置在这里
81
- * 例如:原始组件有一个叫name的属性,你想要配置它,则可以按如下配置
82
- * ```
83
- * component:{
84
- * name:"组件的名称"
85
- * props:{
86
- * name:"组件的name属性" <-----------
87
- * }
88
- * }
89
- * ```
90
- */
91
- props?: {
92
- [key: string]: any;
93
- };
94
- /**
95
- * 组件事件监听
96
- */
97
- on?: {
98
- [key: string]: (context?: any) => void;
99
- };
100
- /**
101
- * 组件其他参数
102
- * 事件:onXxx:(event)=>void 组件原始事件监听
103
- * on.onXxx:(context)=>void 组件事件监听(对原始事件包装)
104
- * 样式:style、class等
105
- */
106
- [key: string]: any;
107
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFzdC1jcnVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2QudHMvZmFzdC1jcnVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,2 +0,0 @@
1
- export * from "./pipeline";
2
- export * from "./fast-crud";
@@ -1,3 +0,0 @@
1
- export * from "./pipeline";
2
- export * from "./fast-crud";
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZC50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLGFBQWEsQ0FBQyJ9
@@ -1,123 +0,0 @@
1
- export declare enum RunStrategy {
2
- AlwaysRun = 0,
3
- SkipWhenSucceed = 1
4
- }
5
- export declare enum ConcurrencyStrategy {
6
- Serial = 0,
7
- Parallel = 1
8
- }
9
- export declare enum NextStrategy {
10
- AllSuccess = 0,
11
- OneSuccess = 1
12
- }
13
- export declare enum HandlerType {
14
- ClearFollowStatus = 0,
15
- SendEmail = 1
16
- }
17
- export type EventHandler = {
18
- type: HandlerType;
19
- params: {
20
- [key: string]: any;
21
- };
22
- };
23
- export type RunnableStrategy = {
24
- runStrategy?: RunStrategy;
25
- onSuccess?: EventHandler[];
26
- onError?: EventHandler[];
27
- };
28
- export type Step = Runnable & {
29
- type: string;
30
- input: {
31
- [key: string]: any;
32
- };
33
- };
34
- export type Task = Runnable & {
35
- steps: Step[];
36
- };
37
- export type Stage = Runnable & {
38
- tasks: Task[];
39
- concurrency: ConcurrencyStrategy;
40
- next: NextStrategy;
41
- };
42
- export type Trigger = {
43
- id: string;
44
- title: string;
45
- cron: string;
46
- type: string;
47
- };
48
- export type FileItem = {
49
- id: string;
50
- filename: string;
51
- path: string;
52
- };
53
- export type Runnable = {
54
- id: string;
55
- title: string;
56
- strategy?: RunnableStrategy;
57
- runnableType?: string;
58
- status?: HistoryResult;
59
- timeout?: number;
60
- default?: {
61
- [key: string]: any;
62
- };
63
- context?: Context;
64
- };
65
- export type EmailOptions = {
66
- receivers: string[];
67
- };
68
- export type NotificationWhen = "error" | "success" | "turnToSuccess" | "start";
69
- export type NotificationType = "email" | "url";
70
- export type Notification = {
71
- type: NotificationType;
72
- when: NotificationWhen[];
73
- options: EmailOptions;
74
- };
75
- export type Pipeline = Runnable & {
76
- version?: number;
77
- userId: any;
78
- stages: Stage[];
79
- triggers: Trigger[];
80
- notifications?: Notification[];
81
- };
82
- export type Context = {
83
- [key: string]: any;
84
- };
85
- export type Log = {
86
- title: string;
87
- time: number;
88
- level: string;
89
- text: string;
90
- };
91
- export declare enum ResultType {
92
- start = "start",
93
- success = "success",
94
- error = "error",
95
- canceled = "canceled",
96
- skip = "skip",
97
- none = "none"
98
- }
99
- export type HistoryResultGroup = {
100
- [key: string]: {
101
- runnable: Runnable;
102
- res: HistoryResult;
103
- };
104
- };
105
- export type HistoryResult = {
106
- input: any;
107
- output: any;
108
- files?: FileItem[];
109
- /**
110
- * 任务状态
111
- */
112
- status: ResultType;
113
- startTime: number;
114
- endTime?: number;
115
- /**
116
- * 处理结果
117
- */
118
- result?: ResultType;
119
- message?: string;
120
- };
121
- export type RunnableMap = {
122
- [id: string]: Runnable;
123
- };
@@ -1,31 +0,0 @@
1
- export var RunStrategy;
2
- (function (RunStrategy) {
3
- RunStrategy[RunStrategy["AlwaysRun"] = 0] = "AlwaysRun";
4
- RunStrategy[RunStrategy["SkipWhenSucceed"] = 1] = "SkipWhenSucceed";
5
- })(RunStrategy || (RunStrategy = {}));
6
- export var ConcurrencyStrategy;
7
- (function (ConcurrencyStrategy) {
8
- ConcurrencyStrategy[ConcurrencyStrategy["Serial"] = 0] = "Serial";
9
- ConcurrencyStrategy[ConcurrencyStrategy["Parallel"] = 1] = "Parallel";
10
- })(ConcurrencyStrategy || (ConcurrencyStrategy = {}));
11
- export var NextStrategy;
12
- (function (NextStrategy) {
13
- NextStrategy[NextStrategy["AllSuccess"] = 0] = "AllSuccess";
14
- NextStrategy[NextStrategy["OneSuccess"] = 1] = "OneSuccess";
15
- })(NextStrategy || (NextStrategy = {}));
16
- export var HandlerType;
17
- (function (HandlerType) {
18
- //清空后续任务的状态
19
- HandlerType[HandlerType["ClearFollowStatus"] = 0] = "ClearFollowStatus";
20
- HandlerType[HandlerType["SendEmail"] = 1] = "SendEmail";
21
- })(HandlerType || (HandlerType = {}));
22
- export var ResultType;
23
- (function (ResultType) {
24
- ResultType["start"] = "start";
25
- ResultType["success"] = "success";
26
- ResultType["error"] = "error";
27
- ResultType["canceled"] = "canceled";
28
- ResultType["skip"] = "skip";
29
- ResultType["none"] = "none";
30
- })(ResultType || (ResultType = {}));
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZWxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZC50cy9waXBlbGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxXQUdYO0FBSEQsV0FBWSxXQUFXO0lBQ3JCLHVEQUFTLENBQUE7SUFDVCxtRUFBZSxDQUFBO0FBQ2pCLENBQUMsRUFIVyxXQUFXLEtBQVgsV0FBVyxRQUd0QjtBQUVELE1BQU0sQ0FBTixJQUFZLG1CQUdYO0FBSEQsV0FBWSxtQkFBbUI7SUFDN0IsaU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