@carthooks/arcubase-cli 0.1.0
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/bundle/arcubase-admin.mjs +9875 -0
- package/bundle/arcubase.mjs +9875 -0
- package/dist/bin/arcubase-admin.d.ts +2 -0
- package/dist/bin/arcubase-admin.d.ts.map +1 -0
- package/dist/bin/arcubase-admin.js +22 -0
- package/dist/bin/arcubase.d.ts +2 -0
- package/dist/bin/arcubase.d.ts.map +1 -0
- package/dist/bin/arcubase.js +22 -0
- package/dist/generated/command_registry.generated.d.ts +3072 -0
- package/dist/generated/command_registry.generated.d.ts.map +1 -0
- package/dist/generated/command_registry.generated.js +4587 -0
- package/dist/generated/type_index.generated.d.ts +496 -0
- package/dist/generated/type_index.generated.d.ts.map +1 -0
- package/dist/generated/type_index.generated.js +502 -0
- package/dist/generated/zod_registry.generated.d.ts +356 -0
- package/dist/generated/zod_registry.generated.d.ts.map +1 -0
- package/dist/generated/zod_registry.generated.js +483 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/runtime/argv.d.ts +8 -0
- package/dist/runtime/argv.d.ts.map +1 -0
- package/dist/runtime/argv.js +31 -0
- package/dist/runtime/body_loader.d.ts +3 -0
- package/dist/runtime/body_loader.d.ts.map +1 -0
- package/dist/runtime/body_loader.js +26 -0
- package/dist/runtime/command_registry.d.ts +9 -0
- package/dist/runtime/command_registry.d.ts.map +1 -0
- package/dist/runtime/command_registry.js +14 -0
- package/dist/runtime/env.d.ts +14 -0
- package/dist/runtime/env.d.ts.map +1 -0
- package/dist/runtime/env.js +42 -0
- package/dist/runtime/errors.d.ts +23 -0
- package/dist/runtime/errors.d.ts.map +1 -0
- package/dist/runtime/errors.js +18 -0
- package/dist/runtime/execute.d.ts +17 -0
- package/dist/runtime/execute.d.ts.map +1 -0
- package/dist/runtime/execute.js +183 -0
- package/dist/runtime/http.d.ts +4 -0
- package/dist/runtime/http.d.ts.map +1 -0
- package/dist/runtime/http.js +21 -0
- package/dist/runtime/output.d.ts +2 -0
- package/dist/runtime/output.d.ts.map +1 -0
- package/dist/runtime/output.js +3 -0
- package/dist/runtime/paths.d.ts +4 -0
- package/dist/runtime/paths.d.ts.map +1 -0
- package/dist/runtime/paths.js +8 -0
- package/dist/runtime/zod_registry.d.ts +10 -0
- package/dist/runtime/zod_registry.d.ts.map +1 -0
- package/dist/runtime/zod_registry.js +50 -0
- package/dist/tests/bootstrap.test.d.ts +2 -0
- package/dist/tests/bootstrap.test.d.ts.map +1 -0
- package/dist/tests/bootstrap.test.js +59 -0
- package/dist/tests/command_registry.test.d.ts +2 -0
- package/dist/tests/command_registry.test.d.ts.map +1 -0
- package/dist/tests/command_registry.test.js +22 -0
- package/dist/tests/execute_validation.test.d.ts +2 -0
- package/dist/tests/execute_validation.test.d.ts.map +1 -0
- package/dist/tests/execute_validation.test.js +41 -0
- package/dist/tests/help.test.d.ts +2 -0
- package/dist/tests/help.test.d.ts.map +1 -0
- package/dist/tests/help.test.js +22 -0
- package/dist/tests/zod_registry.test.d.ts +2 -0
- package/dist/tests/zod_registry.test.d.ts.map +1 -0
- package/dist/tests/zod_registry.test.js +26 -0
- package/package.json +46 -0
- package/sdk-dist/api/admin/app-entity-share.ts +52 -0
- package/sdk-dist/api/admin/app.ts +187 -0
- package/sdk-dist/api/admin/automate-rule.ts +59 -0
- package/sdk-dist/api/admin/business-hooks.ts +17 -0
- package/sdk-dist/api/admin/config.ts +12 -0
- package/sdk-dist/api/admin/dashboard.ts +88 -0
- package/sdk-dist/api/admin/dataset.ts +133 -0
- package/sdk-dist/api/admin/departments.ts +223 -0
- package/sdk-dist/api/admin/developer.ts +126 -0
- package/sdk-dist/api/admin/entity-tags.ts +71 -0
- package/sdk-dist/api/admin/entity.ts +188 -0
- package/sdk-dist/api/admin/extension.ts +19 -0
- package/sdk-dist/api/admin/index.ts +21 -0
- package/sdk-dist/api/admin/ingress.ts +117 -0
- package/sdk-dist/api/admin/integration.ts +64 -0
- package/sdk-dist/api/admin/kiosk-flow.ts +67 -0
- package/sdk-dist/api/admin/print-template-background.ts +43 -0
- package/sdk-dist/api/admin/print-templates.ts +60 -0
- package/sdk-dist/api/admin/tenant.ts +231 -0
- package/sdk-dist/api/admin/workflow.ts +51 -0
- package/sdk-dist/api/kiosk/index.ts +4 -0
- package/sdk-dist/api/kiosk/starter.ts +34 -0
- package/sdk-dist/api/kiosk/ui.ts +79 -0
- package/sdk-dist/api/open/api.ts +11 -0
- package/sdk-dist/api/open/index.ts +3 -0
- package/sdk-dist/api/shared-link/form.ts +103 -0
- package/sdk-dist/api/shared-link/index.ts +3 -0
- package/sdk-dist/api/user/common.ts +159 -0
- package/sdk-dist/api/user/context.ts +10 -0
- package/sdk-dist/api/user/copilot.ts +20 -0
- package/sdk-dist/api/user/dashboard.ts +43 -0
- package/sdk-dist/api/user/entity.ts +213 -0
- package/sdk-dist/api/user/flow.ts +20 -0
- package/sdk-dist/api/user/global-action.ts +128 -0
- package/sdk-dist/api/user/index.ts +12 -0
- package/sdk-dist/api/user/kiosk.ts +12 -0
- package/sdk-dist/api/user/profile.ts +57 -0
- package/sdk-dist/api/user/workflow.ts +186 -0
- package/sdk-dist/generated/command_registry.generated.ts +4603 -0
- package/sdk-dist/generated/type_index.generated.ts +503 -0
- package/sdk-dist/generated/zod_registry.generated.ts +713 -0
- package/sdk-dist/types/app-user.ts +0 -0
- package/sdk-dist/types/app.ts +182 -0
- package/sdk-dist/types/auth.ts +174 -0
- package/sdk-dist/types/automate-rule.ts +100 -0
- package/sdk-dist/types/business-hooks.ts +37 -0
- package/sdk-dist/types/common.ts +676 -0
- package/sdk-dist/types/copilot.ts +34 -0
- package/sdk-dist/types/dashboard.ts +122 -0
- package/sdk-dist/types/dataset.ts +168 -0
- package/sdk-dist/types/departments.ts +351 -0
- package/sdk-dist/types/developer.ts +190 -0
- package/sdk-dist/types/entity.ts +400 -0
- package/sdk-dist/types/extension.ts +15 -0
- package/sdk-dist/types/global-action.ts +206 -0
- package/sdk-dist/types/index.ts +26 -0
- package/sdk-dist/types/ingress.ts +173 -0
- package/sdk-dist/types/kiosk-starter.ts +46 -0
- package/sdk-dist/types/kiosk-ui.ts +94 -0
- package/sdk-dist/types/oauth-authorize.ts +52 -0
- package/sdk-dist/types/oauth.ts +33 -0
- package/sdk-dist/types/openapi.ts +24 -0
- package/sdk-dist/types/platform-setup.ts +26 -0
- package/sdk-dist/types/shared-link.ts +41 -0
- package/sdk-dist/types/tenant.ts +340 -0
- package/sdk-dist/types/upload.ts +0 -0
- package/sdk-dist/types/user-action.ts +871 -0
- package/sdk-dist/types/user-flow.ts +90 -0
- package/sdk-dist/types/widgets.ts +115 -0
- package/sdk-dist/types/workflow.ts +162 -0
- package/src/bin/arcubase-admin.ts +23 -0
- package/src/bin/arcubase.ts +23 -0
- package/src/generated/command_registry.generated.ts +4603 -0
- package/src/generated/type_index.generated.ts +503 -0
- package/src/generated/zod_registry.generated.ts +713 -0
- package/src/index.ts +4 -0
- package/src/runtime/argv.ts +39 -0
- package/src/runtime/body_loader.ts +26 -0
- package/src/runtime/command_registry.ts +22 -0
- package/src/runtime/env.ts +60 -0
- package/src/runtime/errors.ts +41 -0
- package/src/runtime/execute.ts +206 -0
- package/src/runtime/http.ts +23 -0
- package/src/runtime/output.ts +3 -0
- package/src/runtime/paths.ts +8 -0
- package/src/runtime/zod_registry.ts +53 -0
- package/src/tests/bootstrap.test.ts +67 -0
- package/src/tests/command_registry.test.ts +27 -0
- package/src/tests/execute_validation.test.ts +50 -0
- package/src/tests/help.test.ts +25 -0
- package/src/tests/zod_registry.test.ts +33 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** @format int32 */
|
|
14
|
+
import type { WorkflowStateType, PermitEntityEvent, NotificationPayloadMode, NotificationNotificationType, PronounsType, MagicStringPartType, GormDeletedAt, AiOptions, ApiEndpoint, ApiEndpointParam, ApiOptions, Button, CustomAction, EntityFrontEvent, EntityOptions, EntityVO, Fields, MagicString, MagicStringPart, PostqueryAppendData, PostqueryUserData, PostqueryAssetsData, PostqueryDepartmentData, PostqueryLinktoData, StorageUrlSets } from './common'
|
|
15
|
+
|
|
16
|
+
export enum WorkflowTransitionType {
|
|
17
|
+
Creator = 0,
|
|
18
|
+
Approvers = 1,
|
|
19
|
+
CC = 2,
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface WorkflowTask {
|
|
23
|
+
DeletedAt?: GormDeletedAt;
|
|
24
|
+
ID?: number;
|
|
25
|
+
app_id?: number;
|
|
26
|
+
brief?: WorkflowBriefItem[];
|
|
27
|
+
cancelled?: boolean;
|
|
28
|
+
consign_for?: number;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
deferred_at?: string;
|
|
31
|
+
deferred_reason?: string;
|
|
32
|
+
entity_id?: number;
|
|
33
|
+
expired_at?: string;
|
|
34
|
+
finished?: boolean;
|
|
35
|
+
node_label?: string;
|
|
36
|
+
pending_cosign?: boolean;
|
|
37
|
+
/** EntityName *string `json:"entity_name" gorm:"-"` */
|
|
38
|
+
process_id?: number;
|
|
39
|
+
process_status?: WorkflowStateType;
|
|
40
|
+
row_id?: number;
|
|
41
|
+
tenant_id?: number;
|
|
42
|
+
tenant_user_id?: number;
|
|
43
|
+
transition_id?: number;
|
|
44
|
+
unread?: boolean;
|
|
45
|
+
updated_at?: string;
|
|
46
|
+
urged?: boolean;
|
|
47
|
+
user_actor?: WorkflowTransitionType;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface UserFlowAddonInfoVO {
|
|
51
|
+
additional?: PostqueryAppendData;
|
|
52
|
+
entities?: EntityVO[];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface UserFlowPaginationVO {
|
|
56
|
+
page?: number;
|
|
57
|
+
size?: number;
|
|
58
|
+
total?: number;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface UserFlowQueryReqVO {
|
|
62
|
+
app_id?: number;
|
|
63
|
+
expired?: boolean;
|
|
64
|
+
finished?: boolean;
|
|
65
|
+
limit?: number;
|
|
66
|
+
offset?: number;
|
|
67
|
+
paused?: boolean;
|
|
68
|
+
pending_cosign?: boolean;
|
|
69
|
+
reverse?: boolean;
|
|
70
|
+
rollback?: boolean;
|
|
71
|
+
skip_entities?: number[];
|
|
72
|
+
urged?: boolean;
|
|
73
|
+
user_actor?: WorkflowTransitionType;
|
|
74
|
+
without_cancelled?: boolean;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface UserFlowQueryRespVO {
|
|
78
|
+
addon?: UserFlowAddonInfoVO;
|
|
79
|
+
items?: WorkflowTask[];
|
|
80
|
+
pagination?: UserFlowPaginationVO;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type UserFlowStatusRespVO = Record<string, number>;
|
|
84
|
+
|
|
85
|
+
export interface WorkflowBriefItem {
|
|
86
|
+
key?: string;
|
|
87
|
+
label?: string;
|
|
88
|
+
type?: string;
|
|
89
|
+
value?: any;
|
|
90
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** @format int32 */
|
|
14
|
+
import type { PermitValueFrom, PermitEntityProp, WidgetsTypeCode, CubeMeasureAggregate, GormDeletedAt, ChartOption, CubeDimension, CubeMeasure, DashboardWidgets, WidgetsListViewOptions, WidgetsOption, PermitConditionSet, PermitRecordCondition, ErrorResponse } from './common'
|
|
15
|
+
|
|
16
|
+
export interface WidgetsType {
|
|
17
|
+
dashboard_id?: number;
|
|
18
|
+
ingress_id?: number;
|
|
19
|
+
type?: WidgetsTypeCode;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface AppDeleteWidgetsRespVO {
|
|
23
|
+
success?: boolean;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface AppGetWidgetsReqVO {
|
|
27
|
+
dashboard_id?: number;
|
|
28
|
+
ingress_id?: number;
|
|
29
|
+
type?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AppNewWidgetsReqVO {
|
|
33
|
+
options?: WidgetsType;
|
|
34
|
+
type?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface AppNewWidgetsRespVO {
|
|
38
|
+
DeletedAt?: GormDeletedAt;
|
|
39
|
+
app_id?: number;
|
|
40
|
+
dashboard_id?: number;
|
|
41
|
+
entity_id?: number;
|
|
42
|
+
h?: number;
|
|
43
|
+
id?: number;
|
|
44
|
+
ingress_id?: number;
|
|
45
|
+
options?: WidgetsOption;
|
|
46
|
+
tenant_id?: number;
|
|
47
|
+
type?: string;
|
|
48
|
+
updated_at?: string;
|
|
49
|
+
w?: number;
|
|
50
|
+
x?: number;
|
|
51
|
+
y?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AppPreviewWidgetsDataReqVO {
|
|
55
|
+
conditions?: PermitConditionSet;
|
|
56
|
+
dataSource?: number;
|
|
57
|
+
dataSourceType?: string;
|
|
58
|
+
dimensions?: CubeDimension[];
|
|
59
|
+
measures?: CubeMeasure[];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface AppUpdateWidgetsIngressOptionsReqVO {
|
|
63
|
+
options?: WidgetsListViewOptions;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AppUpdateWidgetsIngressOptionsRespVO {
|
|
67
|
+
DeletedAt?: GormDeletedAt;
|
|
68
|
+
app_id?: number;
|
|
69
|
+
dashboard_id?: number;
|
|
70
|
+
entity_id?: number;
|
|
71
|
+
h?: number;
|
|
72
|
+
id?: number;
|
|
73
|
+
ingress_id?: number;
|
|
74
|
+
options?: WidgetsOption;
|
|
75
|
+
tenant_id?: number;
|
|
76
|
+
type?: string;
|
|
77
|
+
updated_at?: string;
|
|
78
|
+
w?: number;
|
|
79
|
+
x?: number;
|
|
80
|
+
y?: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface AppUpdateWidgetsReqVO {
|
|
84
|
+
entity_id?: number;
|
|
85
|
+
options?: WidgetsOption;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface AppUpdateWidgetsRespVO {
|
|
89
|
+
DeletedAt?: GormDeletedAt;
|
|
90
|
+
app_id?: number;
|
|
91
|
+
dashboard_id?: number;
|
|
92
|
+
entity_id?: number;
|
|
93
|
+
h?: number;
|
|
94
|
+
id?: number;
|
|
95
|
+
ingress_id?: number;
|
|
96
|
+
options?: WidgetsOption;
|
|
97
|
+
tenant_id?: number;
|
|
98
|
+
type?: string;
|
|
99
|
+
updated_at?: string;
|
|
100
|
+
w?: number;
|
|
101
|
+
x?: number;
|
|
102
|
+
y?: number;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface AppWidgetsListReqVO {
|
|
106
|
+
dashboard_id?: number;
|
|
107
|
+
ingress_id?: number;
|
|
108
|
+
type?: string;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type AppGetWidgetsRespVO = DashboardWidgets[];
|
|
112
|
+
|
|
113
|
+
export type AppPreviewWidgetsDataRespVO = Record<string, any>[];
|
|
114
|
+
|
|
115
|
+
export type AppWidgetsListRespVO = DashboardWidgets[];
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/** @format int32 */
|
|
14
|
+
import type { NotificationPayloadMode, ActionBulkUpdate, ActionBulkUpdateAction, GormDeletedAt, PermitUserScope, EntityWorkflowNodeVO, EntityWorkflowVersionVO, ErrorResponse } from './common'
|
|
15
|
+
|
|
16
|
+
export enum WorkflowVoteType {
|
|
17
|
+
AnyVote = 0,
|
|
18
|
+
AndVote = 1,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum WorkflowRetractRule {
|
|
22
|
+
/** - 不允许撤回 */
|
|
23
|
+
RetractNotAllowed = 1,
|
|
24
|
+
/** - 仅发起节点撤回 */
|
|
25
|
+
RetractOnlyStartNode = 2,
|
|
26
|
+
/** - 允许所有节点撤回 */
|
|
27
|
+
RetractAllNodes = 3,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum WorkflowAutoApproveRule {
|
|
31
|
+
/** - 负责人与上一节点相同 */
|
|
32
|
+
AutoApproveSameApprover = 1,
|
|
33
|
+
/** - 负责人处理该流程 */
|
|
34
|
+
AutoApproveCurrentNode = 2,
|
|
35
|
+
/** - 不启用 */
|
|
36
|
+
AutoApproveDisabled = 3,
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Workflow {
|
|
40
|
+
CreatedAt?: string;
|
|
41
|
+
DeletedAt?: GormDeletedAt;
|
|
42
|
+
EntityID?: number;
|
|
43
|
+
ID?: number;
|
|
44
|
+
TenantID?: number;
|
|
45
|
+
UpdatedAt?: string;
|
|
46
|
+
deployed?: boolean;
|
|
47
|
+
deployed_at?: string;
|
|
48
|
+
diagram?: WorkflowConfigDiagram;
|
|
49
|
+
options?: WorkflowOptions;
|
|
50
|
+
version?: number;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface WorkflowOptions {
|
|
54
|
+
/** 允许流程发起人催办 () */
|
|
55
|
+
allow_urge?: boolean;
|
|
56
|
+
/** 允许查看流程动态和流转图 () */
|
|
57
|
+
allow_view_diagram?: boolean;
|
|
58
|
+
/** 自动提交规则 */
|
|
59
|
+
auto_approve_rule?: WorkflowAutoApproveRule;
|
|
60
|
+
/** 流程撤回规则 */
|
|
61
|
+
retract_rule?: WorkflowRetractRule;
|
|
62
|
+
sla?: WorkflowSLAConfig[];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface NotificationWebhookConfig {
|
|
66
|
+
mode?: NotificationPayloadMode;
|
|
67
|
+
template?: string;
|
|
68
|
+
url?: string;
|
|
69
|
+
/** 新增:格式版本 */
|
|
70
|
+
version?: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface EntityWorkflowDeployReqVO {
|
|
74
|
+
diagram?: WorkflowConfigDiagram;
|
|
75
|
+
id?: number;
|
|
76
|
+
options?: WorkflowOptions;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface EntityWorkflowDeployRespVO {
|
|
80
|
+
versions?: EntityWorkflowVersionVO[];
|
|
81
|
+
working?: Workflow;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface EntityWorkflowGetRespVO {
|
|
85
|
+
versions?: EntityWorkflowVersionVO[];
|
|
86
|
+
working?: Workflow;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface EntityWorkflowNewVersionRespVO {
|
|
90
|
+
versions?: EntityWorkflowVersionVO[];
|
|
91
|
+
working?: Workflow;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface EntityWorkflowUpdateReqVO {
|
|
95
|
+
diagram?: WorkflowConfigDiagram;
|
|
96
|
+
id?: number;
|
|
97
|
+
options?: WorkflowOptions;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface EntityWorkflowUpdateRespVO {
|
|
101
|
+
versions?: EntityWorkflowVersionVO[];
|
|
102
|
+
working?: Workflow;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface WorkflowActionConfig {
|
|
106
|
+
enabled?: boolean;
|
|
107
|
+
options?: {
|
|
108
|
+
comment_required?: boolean;
|
|
109
|
+
desc?: string;
|
|
110
|
+
modifiers?: ActionBulkUpdate[];
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface WorkflowConfigDiagram {
|
|
115
|
+
edges?: number[];
|
|
116
|
+
id_seq?: number;
|
|
117
|
+
nodes?: WorkflowConfigNode[];
|
|
118
|
+
viewport?: number[];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface WorkflowConfigNode {
|
|
122
|
+
data?: {
|
|
123
|
+
actions?: Record<string, WorkflowActionConfig>;
|
|
124
|
+
approver_actions?: number[];
|
|
125
|
+
approvers?: PermitUserScope[];
|
|
126
|
+
auto_forward?: boolean;
|
|
127
|
+
cc?: PermitUserScope[];
|
|
128
|
+
fields?: number[];
|
|
129
|
+
notify_email?: boolean;
|
|
130
|
+
notify_email_tmpl?: {
|
|
131
|
+
body?: string;
|
|
132
|
+
subject?: string;
|
|
133
|
+
};
|
|
134
|
+
submit_condition?: number[];
|
|
135
|
+
use_cc?: boolean;
|
|
136
|
+
vote_type?: WorkflowVoteType;
|
|
137
|
+
webhooks?: NotificationWebhookConfig[];
|
|
138
|
+
};
|
|
139
|
+
events?: number[];
|
|
140
|
+
id?: string;
|
|
141
|
+
label?: string;
|
|
142
|
+
mode?: string;
|
|
143
|
+
position?: number[];
|
|
144
|
+
type?: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface WorkflowSLAConfig {
|
|
148
|
+
ddl?: number;
|
|
149
|
+
enabled?: boolean;
|
|
150
|
+
id?: string;
|
|
151
|
+
name?: string;
|
|
152
|
+
nodes?: string[];
|
|
153
|
+
triggers?: WorkflowSLATrigger[];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface WorkflowSLATrigger {
|
|
157
|
+
hasUpdateField?: boolean;
|
|
158
|
+
hasWebhook?: boolean;
|
|
159
|
+
modifiers?: ActionBulkUpdate[];
|
|
160
|
+
time_point?: number;
|
|
161
|
+
webhook?: NotificationWebhookConfig;
|
|
162
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { executeCLI } from '../runtime/execute.js'
|
|
2
|
+
import { CLIError } from '../runtime/errors.js'
|
|
3
|
+
import { writeJSON } from '../runtime/output.js'
|
|
4
|
+
|
|
5
|
+
export async function runArcubaseAdmin(argv = process.argv.slice(2)): Promise<void> {
|
|
6
|
+
try {
|
|
7
|
+
const result = await executeCLI('admin', argv)
|
|
8
|
+
if (result.kind === 'help') {
|
|
9
|
+
process.stdout.write(`${result.text}\n`)
|
|
10
|
+
return
|
|
11
|
+
}
|
|
12
|
+
writeJSON(result)
|
|
13
|
+
} catch (error) {
|
|
14
|
+
if (error instanceof CLIError) {
|
|
15
|
+
process.stderr.write(`${JSON.stringify(error.toJSON(), null, 2)}\n`)
|
|
16
|
+
process.exitCode = error.exitCode
|
|
17
|
+
return
|
|
18
|
+
}
|
|
19
|
+
throw error
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
await runArcubaseAdmin()
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { executeCLI } from '../runtime/execute.js'
|
|
2
|
+
import { CLIError } from '../runtime/errors.js'
|
|
3
|
+
import { writeJSON } from '../runtime/output.js'
|
|
4
|
+
|
|
5
|
+
export async function runArcubase(argv = process.argv.slice(2)): Promise<void> {
|
|
6
|
+
try {
|
|
7
|
+
const result = await executeCLI('user', argv)
|
|
8
|
+
if (result.kind === 'help') {
|
|
9
|
+
process.stdout.write(`${result.text}\n`)
|
|
10
|
+
return
|
|
11
|
+
}
|
|
12
|
+
writeJSON(result)
|
|
13
|
+
} catch (error) {
|
|
14
|
+
if (error instanceof CLIError) {
|
|
15
|
+
process.stderr.write(`${JSON.stringify(error.toJSON(), null, 2)}\n`)
|
|
16
|
+
process.exitCode = error.exitCode
|
|
17
|
+
return
|
|
18
|
+
}
|
|
19
|
+
throw error
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
await runArcubase()
|