mstate-cli 0.2.8 → 0.2.9
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/.prettierrc +5 -5
- package/Readme.md +50 -50
- package/package.json +45 -45
- package/rollup.config.mjs +34 -34
- package/src/common/constant.ts +26 -26
- package/src/common/enum.ts +16 -17
- package/src/common/helpers.ts +42 -42
- package/src/common/utils.ts +67 -67
- package/src/handlers/action.handler.ts +131 -131
- package/src/handlers/company.handler.ts +274 -274
- package/src/handlers/environment.handler.ts +111 -111
- package/src/handlers/help.handler.ts +48 -48
- package/src/handlers/mobioffice.handler.ts +78 -78
- package/src/handlers/workflow.handler.ts +238 -238
- package/src/index.ts +85 -88
- package/src/interface.d.ts +43 -43
- package/tsconfig.json +18 -18
- package/dist/index.js +0 -298
package/src/interface.d.ts
CHANGED
@@ -1,43 +1,43 @@
|
|
1
|
-
interface WorkflowConfig {
|
2
|
-
name: string;
|
3
|
-
states: State[];
|
4
|
-
}
|
5
|
-
|
6
|
-
interface State {
|
7
|
-
name: string;
|
8
|
-
actions: Action[];
|
9
|
-
}
|
10
|
-
|
11
|
-
interface Action {
|
12
|
-
name: string;
|
13
|
-
when?: string;
|
14
|
-
on: {
|
15
|
-
[key: string]: {
|
16
|
-
name: string;
|
17
|
-
type: 'ACTION' | 'STATE';
|
18
|
-
};
|
19
|
-
done: {
|
20
|
-
name: string;
|
21
|
-
type: 'ACTION' | 'STATE';
|
22
|
-
};
|
23
|
-
error: {
|
24
|
-
name: string;
|
25
|
-
type: 'ACTION' | 'STATE';
|
26
|
-
};
|
27
|
-
};
|
28
|
-
}
|
29
|
-
|
30
|
-
interface ActionConfig {
|
31
|
-
name: string;
|
32
|
-
version: string;
|
33
|
-
meta?: unknown;
|
34
|
-
type: 'MANUAL' | 'AUTO' | 'CHAINED';
|
35
|
-
steps: Step[];
|
36
|
-
completionWebhook?: string;
|
37
|
-
}
|
38
|
-
|
39
|
-
interface Step {
|
40
|
-
id: string;
|
41
|
-
module: string;
|
42
|
-
config: unknown;
|
43
|
-
}
|
1
|
+
interface WorkflowConfig {
|
2
|
+
name: string;
|
3
|
+
states: State[];
|
4
|
+
}
|
5
|
+
|
6
|
+
interface State {
|
7
|
+
name: string;
|
8
|
+
actions: Action[];
|
9
|
+
}
|
10
|
+
|
11
|
+
interface Action {
|
12
|
+
name: string;
|
13
|
+
when?: string;
|
14
|
+
on: {
|
15
|
+
[key: string]: {
|
16
|
+
name: string;
|
17
|
+
type: 'ACTION' | 'STATE';
|
18
|
+
};
|
19
|
+
done: {
|
20
|
+
name: string;
|
21
|
+
type: 'ACTION' | 'STATE';
|
22
|
+
};
|
23
|
+
error: {
|
24
|
+
name: string;
|
25
|
+
type: 'ACTION' | 'STATE';
|
26
|
+
};
|
27
|
+
};
|
28
|
+
}
|
29
|
+
|
30
|
+
interface ActionConfig {
|
31
|
+
name: string;
|
32
|
+
version: string;
|
33
|
+
meta?: unknown;
|
34
|
+
type: 'MANUAL' | 'AUTO' | 'CHAINED';
|
35
|
+
steps: Step[];
|
36
|
+
completionWebhook?: string;
|
37
|
+
}
|
38
|
+
|
39
|
+
interface Step {
|
40
|
+
id: string;
|
41
|
+
module: string;
|
42
|
+
config: unknown;
|
43
|
+
}
|
package/tsconfig.json
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
{
|
2
|
-
"extends": "../tsconfig.base.json",
|
3
|
-
"compilerOptions": {
|
4
|
-
"target": "ESNext",
|
5
|
-
"module": "ESNext",
|
6
|
-
"moduleResolution": "Node",
|
7
|
-
"strict": true,
|
8
|
-
"rootDir": "../",
|
9
|
-
"baseUrl": ".",
|
10
|
-
"esModuleInterop": true,
|
11
|
-
"resolveJsonModule": true,
|
12
|
-
"skipLibCheck": true,
|
13
|
-
"outDir": "./dist",
|
14
|
-
"declaration": true
|
15
|
-
},
|
16
|
-
"include": ["src/**/*.ts", "../shared/**/*"],
|
17
|
-
"exclude": ["node_modules", "dist", ".vscode"]
|
18
|
-
}
|
1
|
+
{
|
2
|
+
"extends": "../tsconfig.base.json",
|
3
|
+
"compilerOptions": {
|
4
|
+
"target": "ESNext",
|
5
|
+
"module": "ESNext",
|
6
|
+
"moduleResolution": "Node",
|
7
|
+
"strict": true,
|
8
|
+
"rootDir": "../",
|
9
|
+
"baseUrl": ".",
|
10
|
+
"esModuleInterop": true,
|
11
|
+
"resolveJsonModule": true,
|
12
|
+
"skipLibCheck": true,
|
13
|
+
"outDir": "./dist",
|
14
|
+
"declaration": true
|
15
|
+
},
|
16
|
+
"include": ["src/**/*.ts", "../shared/**/*"],
|
17
|
+
"exclude": ["node_modules", "dist", ".vscode"]
|
18
|
+
}
|