@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
|
File without changes
|
|
@@ -0,0 +1,182 @@
|
|
|
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
|
+
import type { GormDeletedAt, AppOptions, IngressGroup, IngressItem, I18NText, ErrorResponse } from './common'
|
|
14
|
+
|
|
15
|
+
export interface AppCreateByTenantsReqVO {
|
|
16
|
+
icon_color?: string;
|
|
17
|
+
icon_name?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AppCreateByTenantsRespVO {
|
|
22
|
+
created_at?: number;
|
|
23
|
+
has_workflow?: boolean;
|
|
24
|
+
icon_color?: string;
|
|
25
|
+
icon_name?: string;
|
|
26
|
+
id?: number;
|
|
27
|
+
name?: string;
|
|
28
|
+
tenant_id?: number;
|
|
29
|
+
updated_at?: number;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AppCreateEntityReqVO {
|
|
33
|
+
name?: string;
|
|
34
|
+
parent?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface AppCreateEntityRespVO {
|
|
38
|
+
id?: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface AppCreateEntityShareReqVO {
|
|
42
|
+
source_entity_id: number;
|
|
43
|
+
target_app_ids: number[];
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface AppDeleteEntityShareReqVO {
|
|
47
|
+
source_entity_id: number;
|
|
48
|
+
target_app_id: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface AppEntityShareItemVO {
|
|
52
|
+
created_at?: number;
|
|
53
|
+
entity_name?: string;
|
|
54
|
+
id?: number;
|
|
55
|
+
source_app_id?: number;
|
|
56
|
+
source_entity_id?: number;
|
|
57
|
+
target_app_id?: number;
|
|
58
|
+
target_app_name?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface AppGetAppSchemaEntityVO {
|
|
62
|
+
app_id?: number;
|
|
63
|
+
fields?: AppGetAppSchemaFieldVO[];
|
|
64
|
+
id?: number;
|
|
65
|
+
name?: string;
|
|
66
|
+
prototypes?: string[];
|
|
67
|
+
workflow_enabled?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface AppGetAppSchemaFieldVO {
|
|
71
|
+
children?: AppGetAppSchemaFieldVO[];
|
|
72
|
+
id?: number;
|
|
73
|
+
label?: string;
|
|
74
|
+
options?: Record<string, any>;
|
|
75
|
+
type?: string;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface AppGetAppSchemaRespVO {
|
|
79
|
+
entities?: AppGetAppSchemaEntityVO[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface AppGetEntitiesEntityVO {
|
|
83
|
+
id?: number;
|
|
84
|
+
name?: string;
|
|
85
|
+
prototypes?: string[];
|
|
86
|
+
total_number?: number;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export interface AppGetEntitySharesRespVO {
|
|
90
|
+
shares?: AppEntityShareItemVO[];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface AppGetSiteMapsItemVO {
|
|
94
|
+
enabled?: boolean;
|
|
95
|
+
i18n_names?: Record<string, string>;
|
|
96
|
+
id?: number;
|
|
97
|
+
name?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface AppGetSiteMapsRespVO {
|
|
101
|
+
dashboards?: AppGetSiteMapsItemVO[];
|
|
102
|
+
ingresses?: IngressGroup[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface AppRenameReqVO {
|
|
106
|
+
name?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface AppRenameRespVO {
|
|
110
|
+
created_at?: number;
|
|
111
|
+
has_workflow?: boolean;
|
|
112
|
+
icon_color?: string;
|
|
113
|
+
icon_name?: string;
|
|
114
|
+
id?: number;
|
|
115
|
+
name?: string;
|
|
116
|
+
tenant_id?: number;
|
|
117
|
+
updated_at?: number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface AppSaveSiteMapsReqVO {
|
|
121
|
+
dashboards?: DashboardMenuItemVO[];
|
|
122
|
+
ingresses?: IngressGroupReqVO[];
|
|
123
|
+
to_delete_ingress?: string[];
|
|
124
|
+
use_home_dashboard?: boolean;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export interface AppUpdateAppReqVO {
|
|
128
|
+
CreatedAt?: string;
|
|
129
|
+
DeletedAt?: GormDeletedAt;
|
|
130
|
+
ID?: number;
|
|
131
|
+
Options?: AppOptions;
|
|
132
|
+
UpdatedAt?: string;
|
|
133
|
+
changed?: string[];
|
|
134
|
+
has_workflow?: boolean;
|
|
135
|
+
icon_color?: string;
|
|
136
|
+
icon_name?: string;
|
|
137
|
+
name?: string;
|
|
138
|
+
tenant_id?: number;
|
|
139
|
+
use_home_dashboard?: boolean;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface AppUpdateAppRespVO {
|
|
143
|
+
created_at?: number;
|
|
144
|
+
has_workflow?: boolean;
|
|
145
|
+
icon_color?: string;
|
|
146
|
+
icon_name?: string;
|
|
147
|
+
id?: number;
|
|
148
|
+
name?: string;
|
|
149
|
+
tenant_id?: number;
|
|
150
|
+
updated_at?: number;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export interface AppUpdateI18NReqVO {
|
|
154
|
+
data?: Record<string, any>;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export interface AppUpdateI18NRespVO {
|
|
158
|
+
success?: boolean;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface DashboardMenuItemVO {
|
|
162
|
+
enabled?: boolean;
|
|
163
|
+
i18n_names?: Record<string, string>;
|
|
164
|
+
id?: number;
|
|
165
|
+
name?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface IngressGroupReqVO {
|
|
169
|
+
default?: boolean;
|
|
170
|
+
i18n_name?: I18NText;
|
|
171
|
+
icon_name?: string;
|
|
172
|
+
id?: number;
|
|
173
|
+
is_new?: boolean;
|
|
174
|
+
items?: IngressItem[];
|
|
175
|
+
name?: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export type AppGetEntitiesRespVO = AppGetEntitiesEntityVO[];
|
|
179
|
+
|
|
180
|
+
export type AppUpdateI18nReqVO = AppUpdateI18NReqVO;
|
|
181
|
+
|
|
182
|
+
export type AppUpdateI18nRespVO = AppUpdateI18NRespVO;
|
|
@@ -0,0 +1,174 @@
|
|
|
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 { PronounsType, Tenant, User, SqlNullTime, AuthSessionVO, ErrorResponse } from './common'
|
|
15
|
+
|
|
16
|
+
export interface ExtensionAuthmethod {
|
|
17
|
+
UUID?: string;
|
|
18
|
+
component?: ServiceAssets;
|
|
19
|
+
configJson?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
extension_id?: string;
|
|
22
|
+
logoutScript?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface ServiceAssets {
|
|
27
|
+
path?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface AuthCredentialReqVO {
|
|
31
|
+
authMethod?: string;
|
|
32
|
+
credential?: Record<string, string>;
|
|
33
|
+
extension?: string;
|
|
34
|
+
organization_id?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface AuthCredentialRespVO {
|
|
38
|
+
addon?: {
|
|
39
|
+
validation_expired?: number;
|
|
40
|
+
};
|
|
41
|
+
auth?: string;
|
|
42
|
+
session?: AuthSessionVO;
|
|
43
|
+
tenants?: Tenant[];
|
|
44
|
+
token?: string;
|
|
45
|
+
user?: User;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface AuthEmailVerifyChangeReqVO {
|
|
49
|
+
code?: string;
|
|
50
|
+
id?: string;
|
|
51
|
+
password?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AuthEmailVerifyChangeRespVO {
|
|
55
|
+
addon?: {
|
|
56
|
+
validation_expired?: number;
|
|
57
|
+
};
|
|
58
|
+
auth?: string;
|
|
59
|
+
/** 需要重置密码时返回此字段 */
|
|
60
|
+
need_reset_password?: boolean;
|
|
61
|
+
session?: AuthSessionVO;
|
|
62
|
+
tenants?: Tenant[];
|
|
63
|
+
/** 成功时返回登录信息 */
|
|
64
|
+
token?: string;
|
|
65
|
+
user?: User;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface AuthEmployeeIdLoginReqVO {
|
|
69
|
+
employee_id?: string;
|
|
70
|
+
kiosk_group_id?: string;
|
|
71
|
+
organization_id?: string;
|
|
72
|
+
password?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface AuthEmployeeIdLoginRespVO {
|
|
76
|
+
addon?: {
|
|
77
|
+
validation_expired?: number;
|
|
78
|
+
};
|
|
79
|
+
auth?: string;
|
|
80
|
+
session?: AuthSessionVO;
|
|
81
|
+
tenants?: Tenant[];
|
|
82
|
+
token?: string;
|
|
83
|
+
user?: User;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface AuthIdCardLoginReqVO {
|
|
87
|
+
code?: string;
|
|
88
|
+
kiosk_group_id?: string;
|
|
89
|
+
organization_id?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface AuthIdCardLoginRespVO {
|
|
93
|
+
addon?: {
|
|
94
|
+
validation_expired?: number;
|
|
95
|
+
};
|
|
96
|
+
auth?: string;
|
|
97
|
+
session?: AuthSessionVO;
|
|
98
|
+
tenants?: Tenant[];
|
|
99
|
+
token?: string;
|
|
100
|
+
user?: User;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface AuthPasswordLoginReqVO {
|
|
104
|
+
email?: string;
|
|
105
|
+
organization_id?: string;
|
|
106
|
+
password?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface AuthPasswordLoginRespVO {
|
|
110
|
+
addon?: {
|
|
111
|
+
validation_expired?: number;
|
|
112
|
+
};
|
|
113
|
+
auth?: string;
|
|
114
|
+
session?: AuthSessionVO;
|
|
115
|
+
tenants?: Tenant[];
|
|
116
|
+
token?: string;
|
|
117
|
+
user?: User;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface AuthRegisterReqVO {
|
|
121
|
+
email?: string;
|
|
122
|
+
locale?: string;
|
|
123
|
+
organization_id?: string;
|
|
124
|
+
password?: string;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type AuthRegisterRespVO = object;
|
|
128
|
+
|
|
129
|
+
export interface AuthResetPasswordReqVO {
|
|
130
|
+
code?: string;
|
|
131
|
+
organization_id?: string;
|
|
132
|
+
password?: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface AuthResetPasswordRespVO {
|
|
136
|
+
success?: boolean;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface AuthSendResetPasswordEmailReqVO {
|
|
140
|
+
email?: string;
|
|
141
|
+
locale?: string;
|
|
142
|
+
organization_id?: string;
|
|
143
|
+
user?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface AuthSendResetPasswordEmailRespVO {
|
|
147
|
+
validation_id?: number;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface AuthStrategyRespVO {
|
|
151
|
+
allow_credential_login?: boolean;
|
|
152
|
+
banner?: string;
|
|
153
|
+
banner_bg_color?: string;
|
|
154
|
+
banner_bg_mode?: string;
|
|
155
|
+
banner_bg_url?: string;
|
|
156
|
+
methods?: ExtensionAuthmethod[];
|
|
157
|
+
organization_id?: string;
|
|
158
|
+
require_organization_id?: boolean;
|
|
159
|
+
role?: string;
|
|
160
|
+
shared_domain_login_mode?: string;
|
|
161
|
+
site_icon_url?: string;
|
|
162
|
+
site_logo_url?: string;
|
|
163
|
+
tenant_icon_url?: string;
|
|
164
|
+
tenant_logo_url?: string;
|
|
165
|
+
tenant_name?: string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export interface AuthVerifyEmailResetPasswordCodeReqVO {
|
|
169
|
+
code?: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface AuthVerifyEmailResetPasswordCodeRespVO {
|
|
173
|
+
email?: string;
|
|
174
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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, PermitEntityEvent, PermitConditionSet, PermitRecordCondition, ErrorResponse } from './common'
|
|
15
|
+
|
|
16
|
+
export enum PermitAction {
|
|
17
|
+
Create = 1,
|
|
18
|
+
Read = 2,
|
|
19
|
+
Update = 3,
|
|
20
|
+
Delete = 4,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ActionAction {
|
|
24
|
+
Action?: PermitAction;
|
|
25
|
+
AppID?: number;
|
|
26
|
+
EntityID?: number;
|
|
27
|
+
Fields?: ActionFieldValue[];
|
|
28
|
+
Filter?: PermitConditionSet;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ActionFieldValue {
|
|
32
|
+
field_id?: number;
|
|
33
|
+
value?: any;
|
|
34
|
+
/** 新增:用于存储 JsonLogic 表达式 */
|
|
35
|
+
value_formula?: ActionFormulaExpr;
|
|
36
|
+
value_from?: PermitValueFrom;
|
|
37
|
+
value_relation?: PermitEntityProp;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ActionFormulaExpr {
|
|
41
|
+
/** 人类可读公式,例如 "[[target.current_qty]] + [[this.qty]]" */
|
|
42
|
+
code?: string;
|
|
43
|
+
/** 实际执行的 JsonLogic(使用 RawMessage 与 FormulaOperator 保持一致) */
|
|
44
|
+
jsonlogic?: number[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface AutomateRuleCreateReqVO {
|
|
48
|
+
action: ActionAction;
|
|
49
|
+
event: PermitEntityEvent;
|
|
50
|
+
filter?: PermitConditionSet;
|
|
51
|
+
name?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface AutomateRuleCreateRespVO {
|
|
55
|
+
enabled?: boolean;
|
|
56
|
+
event?: number;
|
|
57
|
+
id?: number;
|
|
58
|
+
name?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface AutomateRuleGetRespVO {
|
|
62
|
+
enabled?: boolean;
|
|
63
|
+
event?: number;
|
|
64
|
+
id?: number;
|
|
65
|
+
name?: string;
|
|
66
|
+
options?: {
|
|
67
|
+
action?: ActionAction;
|
|
68
|
+
filter?: PermitConditionSet;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface AutomateRuleItem {
|
|
73
|
+
enabled?: boolean;
|
|
74
|
+
event?: number;
|
|
75
|
+
id?: number;
|
|
76
|
+
name?: string;
|
|
77
|
+
options?: {
|
|
78
|
+
action?: ActionAction;
|
|
79
|
+
filter?: PermitConditionSet;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface AutomateRuleListRespVO {
|
|
84
|
+
rules?: AutomateRuleItem[];
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface AutomateRuleUpdateReqVO {
|
|
88
|
+
action: ActionAction;
|
|
89
|
+
enabled?: boolean;
|
|
90
|
+
event: PermitEntityEvent;
|
|
91
|
+
filter?: PermitConditionSet;
|
|
92
|
+
name?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface AutomateRuleUpdateRespVO {
|
|
96
|
+
enabled?: boolean;
|
|
97
|
+
event?: number;
|
|
98
|
+
id?: number;
|
|
99
|
+
name?: string;
|
|
100
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import type { CommonPagination, ErrorResponse } from './common'
|
|
14
|
+
|
|
15
|
+
export interface BusinessHooksConnectionVO {
|
|
16
|
+
description?: string;
|
|
17
|
+
hooklet_id?: string;
|
|
18
|
+
icon_url?: string;
|
|
19
|
+
id?: string;
|
|
20
|
+
status?: number;
|
|
21
|
+
title?: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface BusinessHooksGetAppConnectionsRespVO {
|
|
25
|
+
items?: BusinessHooksConnectionVO[];
|
|
26
|
+
pagination?: CommonPagination;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface BusinessHooksGetAvailableHookletsRespVO {
|
|
30
|
+
addition?: any;
|
|
31
|
+
items?: any;
|
|
32
|
+
pagination?: CommonPagination;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface FetchUserTokenRespVO {
|
|
36
|
+
user_token?: string;
|
|
37
|
+
}
|