@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,10 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
FetchUserTokenRespVO
|
|
4
|
+
} from '../../types'
|
|
5
|
+
|
|
6
|
+
// @endpoint POST /api/context/user-token
|
|
7
|
+
// @controller BusinessHooks.GetContextUserToken
|
|
8
|
+
export async function getContextUserToken(): Promise<FetchUserTokenRespVO> {
|
|
9
|
+
return getDefaultClient().post('/context/user-token')
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
CopilotInitConversationRespVO,
|
|
4
|
+
CopilotSendMessageReqVO,
|
|
5
|
+
CopilotSendMessageRespVO
|
|
6
|
+
} from '../../types/copilot'
|
|
7
|
+
|
|
8
|
+
// @endpoint POST /copilot/init
|
|
9
|
+
// @controller CopilotController.InitConversation
|
|
10
|
+
export async function initCopilotConversation(): Promise<CopilotInitConversationRespVO> {
|
|
11
|
+
return getDefaultClient().post('/copilot/init')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// @endpoint POST /copilot/send-message
|
|
15
|
+
// @controller CopilotController.SendMessage
|
|
16
|
+
export async function sendCopilotMessage(
|
|
17
|
+
data: CopilotSendMessageReqVO
|
|
18
|
+
): Promise<CopilotSendMessageRespVO> {
|
|
19
|
+
return getDefaultClient().post('/copilot/send-message', data)
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
DashboardGetRespVO,
|
|
4
|
+
DashboardWidgets,
|
|
5
|
+
FetchWidgetsDataReqVO,
|
|
6
|
+
FetchWidgetsDataRespVO,
|
|
7
|
+
ExportTaskRespVO,
|
|
8
|
+
} from '../../types'
|
|
9
|
+
|
|
10
|
+
// @endpoint GET /dashboard/:app_id/:dashboard_id
|
|
11
|
+
// @controller UserAction.DashboardGet
|
|
12
|
+
export async function getDashboard(
|
|
13
|
+
appId: string,
|
|
14
|
+
dashboardId: string
|
|
15
|
+
): Promise<DashboardGetRespVO> {
|
|
16
|
+
return getDefaultClient().get(`/dashboard/${appId}/${dashboardId}`)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// @endpoint GET /dashboard/:app_id/:dashboard_id/widgets
|
|
20
|
+
// @controller UserAction.DashboardWidgets
|
|
21
|
+
export async function getDashboardWidgets(
|
|
22
|
+
appId: string,
|
|
23
|
+
dashboardId: string
|
|
24
|
+
): Promise<DashboardWidgets[]> {
|
|
25
|
+
return getDefaultClient().get(`/dashboard/${appId}/${dashboardId}/widgets`)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// @endpoint GET /export-task/:id
|
|
29
|
+
// @controller UserAction.ExportTask
|
|
30
|
+
export async function getExportTask(
|
|
31
|
+
id: string
|
|
32
|
+
): Promise<ExportTaskRespVO> {
|
|
33
|
+
return getDefaultClient().get(`/export-task/${id}`)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @endpoint POST /apps/:app_id/widgets-data
|
|
37
|
+
// @controller UserAction.FetchWidgetsData
|
|
38
|
+
export async function fetchWidgetsData(
|
|
39
|
+
appId: string,
|
|
40
|
+
data: FetchWidgetsDataReqVO
|
|
41
|
+
): Promise<FetchWidgetsDataRespVO> {
|
|
42
|
+
return getDefaultClient().post(`/apps/${appId}/widgets-data`, data)
|
|
43
|
+
}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
EntityAddCommentReqVO,
|
|
4
|
+
EntityAddCommentRespVO,
|
|
5
|
+
EntityAIImportConfigReqVO,
|
|
6
|
+
EntityAIImportConfigRespVO,
|
|
7
|
+
EntityBulkUpdateReqVO,
|
|
8
|
+
EntityBulkUpdateRespVO,
|
|
9
|
+
EntityBulkUpdateSaveAsReqVO,
|
|
10
|
+
EntityBulkUpdateSaveAsRespVO,
|
|
11
|
+
EntityDelCommentReqVO,
|
|
12
|
+
EntityDelCommentRespVO,
|
|
13
|
+
EntityDoActionReqVO,
|
|
14
|
+
EntityDoActionRespVO,
|
|
15
|
+
EntityDoFsmActionReqVO,
|
|
16
|
+
EntityDoFsmActionRespVO,
|
|
17
|
+
EntityExportReqVO,
|
|
18
|
+
EntityExportRespVO,
|
|
19
|
+
CommonQueryFormVO,
|
|
20
|
+
EntityGetCommentsRespVO,
|
|
21
|
+
EntityGetLogsRespVO,
|
|
22
|
+
EntityImportReqVO,
|
|
23
|
+
EntityImportActionVO,
|
|
24
|
+
ImporterPostUploadRespVO,
|
|
25
|
+
ImporterDoProcessRespVO,
|
|
26
|
+
ImporterGetStateRespVO,
|
|
27
|
+
ImporterInitTokenRespVO,
|
|
28
|
+
EntityImportPrepareReqVO,
|
|
29
|
+
EntityImportPrepareRespVO,
|
|
30
|
+
EntityInfoRespVO,
|
|
31
|
+
EntityInvokeBatchOperatorReqVO,
|
|
32
|
+
EntityInvokeBatchOperatorRespVO,
|
|
33
|
+
InvokeRequestVO,
|
|
34
|
+
EntityInvokeHookRespVO,
|
|
35
|
+
EntityProcessMapRespVO,
|
|
36
|
+
EntityPrintTemplatesListRespVO
|
|
37
|
+
} from '../../types'
|
|
38
|
+
|
|
39
|
+
// @endpoint POST /entity/:app_id/:entity_id/row/:row_id/comment-add
|
|
40
|
+
// @controller UserAction.EntityAddComment
|
|
41
|
+
export async function addEntityComment(
|
|
42
|
+
appId: string,
|
|
43
|
+
entityId: string,
|
|
44
|
+
rowId: string,
|
|
45
|
+
data: EntityAddCommentReqVO
|
|
46
|
+
): Promise<EntityAddCommentRespVO> {
|
|
47
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/row/${rowId}/comment-add`, data)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// @endpoint POST /entity/:app_id/:entity_id/import-ai-config
|
|
51
|
+
// @controller UserAction.EntityAIImportConfig
|
|
52
|
+
export async function configEntityAIImport(
|
|
53
|
+
appId: string,
|
|
54
|
+
entityId: string,
|
|
55
|
+
data: EntityAIImportConfigReqVO
|
|
56
|
+
): Promise<EntityAIImportConfigRespVO> {
|
|
57
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/import-ai-config`, data)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @endpoint POST /entity/:app_id/:entity_id/bulk-update
|
|
61
|
+
// @controller UserAction.EntityBulkUpdate
|
|
62
|
+
export async function updateEntityBulk(
|
|
63
|
+
appId: string,
|
|
64
|
+
entityId: string,
|
|
65
|
+
data: EntityBulkUpdateReqVO
|
|
66
|
+
): Promise<EntityBulkUpdateRespVO> {
|
|
67
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/bulk-update`, data)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// @endpoint POST /entity/:app_id/:entity_id/bulk-update-save-as
|
|
71
|
+
// @controller UserAction.EntityBulkUpdateSaveAs
|
|
72
|
+
export async function saveEntityBulkUpdateAs(
|
|
73
|
+
appId: string,
|
|
74
|
+
entityId: string,
|
|
75
|
+
data: EntityBulkUpdateSaveAsReqVO
|
|
76
|
+
): Promise<EntityBulkUpdateSaveAsRespVO> {
|
|
77
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/bulk-update-save-as`, data)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// @endpoint POST /entity/:app_id/:entity_id/row/:row_id/comment-delete
|
|
81
|
+
// @controller UserAction.EntityDelComment
|
|
82
|
+
export async function deleteEntityComment(
|
|
83
|
+
appId: string,
|
|
84
|
+
entityId: string,
|
|
85
|
+
rowId: string,
|
|
86
|
+
data: EntityDelCommentReqVO
|
|
87
|
+
): Promise<EntityDelCommentRespVO> {
|
|
88
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/row/${rowId}/comment-delete`, data)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// @endpoint POST /entity/:app_id/:entity_id/row/:row_id/action/:action
|
|
92
|
+
// @controller UserAction.EntityDoAction
|
|
93
|
+
export async function doEntityAction(
|
|
94
|
+
appId: string,
|
|
95
|
+
entityId: string,
|
|
96
|
+
rowId: string,
|
|
97
|
+
action: string,
|
|
98
|
+
data: EntityDoActionReqVO
|
|
99
|
+
): Promise<EntityDoActionRespVO> {
|
|
100
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/row/${rowId}/action/${action}`, data)
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// @endpoint POST /entity/:app_id/:entity_id/convert/:action_code
|
|
104
|
+
// @controller UserAction.EntityDoFsmAction
|
|
105
|
+
export async function doEntityFsmAction(
|
|
106
|
+
appId: string,
|
|
107
|
+
entityId: string,
|
|
108
|
+
actionCode: string,
|
|
109
|
+
data: EntityDoFsmActionReqVO
|
|
110
|
+
): Promise<EntityDoFsmActionRespVO> {
|
|
111
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/convert/${actionCode}`, data)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// @endpoint POST /entity/:app_id/:entity_id/export
|
|
115
|
+
// @controller UserAction.EntityExport
|
|
116
|
+
export async function exportEntity(
|
|
117
|
+
appId: string,
|
|
118
|
+
entityId: string,
|
|
119
|
+
data: EntityExportReqVO
|
|
120
|
+
): Promise<EntityExportRespVO> {
|
|
121
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/export`, data)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// @endpoint POST /entity/:app_id/:entity_id/row/:row_id/comment-query
|
|
125
|
+
// @controller UserAction.EntityGetComments
|
|
126
|
+
export async function getEntityComments(
|
|
127
|
+
appId: string,
|
|
128
|
+
entityId: string,
|
|
129
|
+
rowId: string,
|
|
130
|
+
data: CommonQueryFormVO
|
|
131
|
+
): Promise<EntityGetCommentsRespVO> {
|
|
132
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/row/${rowId}/comment-query`, data)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// @endpoint POST /entity/:app_id/:entity_id/row/:row_id/log-query
|
|
136
|
+
// @controller UserAction.EntityGetLogs
|
|
137
|
+
export async function getEntityLogs(
|
|
138
|
+
appId: string,
|
|
139
|
+
entityId: string,
|
|
140
|
+
rowId: string,
|
|
141
|
+
data: CommonQueryFormVO
|
|
142
|
+
): Promise<EntityGetLogsRespVO> {
|
|
143
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/row/${rowId}/log-query`, data)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// @endpoint POST /entity/:app_id/:entity_id/import
|
|
147
|
+
// @controller UserAction.EntityImport
|
|
148
|
+
export async function importEntity(
|
|
149
|
+
appId: string,
|
|
150
|
+
entityId: string,
|
|
151
|
+
data: EntityImportReqVO & EntityImportActionVO
|
|
152
|
+
): Promise<ImporterPostUploadRespVO | ImporterDoProcessRespVO | ImporterGetStateRespVO | ImporterInitTokenRespVO> {
|
|
153
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/import`, data)
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// @endpoint POST /entity/:app_id/:entity_id/import-prepare
|
|
157
|
+
// @controller UserAction.EntityImportPrepare
|
|
158
|
+
export async function prepareEntityImport(
|
|
159
|
+
appId: string,
|
|
160
|
+
entityId: string,
|
|
161
|
+
data: EntityImportPrepareReqVO
|
|
162
|
+
): Promise<EntityImportPrepareRespVO> {
|
|
163
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/import-prepare`, data)
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// @endpoint GET /entity/:app_id/:entity_id
|
|
167
|
+
// @controller UserAction.EntityInfo
|
|
168
|
+
export async function getEntityInfo(
|
|
169
|
+
appId: string,
|
|
170
|
+
entityId: string,
|
|
171
|
+
): Promise<EntityInfoRespVO> {
|
|
172
|
+
return getDefaultClient().get(`/entity/${appId}/${entityId}`)
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @endpoint POST /entity/:app_id/:entity_id/invoke-batch-operator
|
|
176
|
+
// @controller UserAction.EntityInvokeBatchOperator
|
|
177
|
+
export async function invokeEntityBatchOperator(
|
|
178
|
+
appId: string,
|
|
179
|
+
entityId: string,
|
|
180
|
+
data: EntityInvokeBatchOperatorReqVO & InvokeRequestVO
|
|
181
|
+
): Promise<EntityInvokeBatchOperatorRespVO> {
|
|
182
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/invoke-batch-operator`, data)
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// @endpoint POST /entity/:app_id/:entity_id/invoke/:action_id
|
|
186
|
+
// @controller UserAction.EntityInvokeHook
|
|
187
|
+
export async function invokeEntityHook(
|
|
188
|
+
appId: string,
|
|
189
|
+
entityId: string,
|
|
190
|
+
actionId: string,
|
|
191
|
+
data: InvokeRequestVO
|
|
192
|
+
): Promise<EntityInvokeHookRespVO> {
|
|
193
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/invoke/${actionId}`, data)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// @endpoint GET /entity/:app_id/:entity_id/row/:row_id/process-map
|
|
197
|
+
// @controller UserAction.EntityProcessMap
|
|
198
|
+
export async function getEntityProcessMap(
|
|
199
|
+
appId: string,
|
|
200
|
+
entityId: string,
|
|
201
|
+
rowId: string
|
|
202
|
+
): Promise<EntityProcessMapRespVO> {
|
|
203
|
+
return getDefaultClient().get(`/entity/${appId}/${entityId}/row/${rowId}/process-map`)
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// @endpoint POST /entity/:app_id/:entity_id/print-templates
|
|
207
|
+
// @controller UserAction.GetPrintTemplates
|
|
208
|
+
export async function getEntityPrintTemplates(
|
|
209
|
+
appId: string,
|
|
210
|
+
entityId: string
|
|
211
|
+
): Promise<EntityPrintTemplatesListRespVO> {
|
|
212
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/print-templates`)
|
|
213
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
UserFlowQueryReqVO,
|
|
4
|
+
UserFlowQueryRespVO,
|
|
5
|
+
UserFlowStatusRespVO
|
|
6
|
+
} from '../../types/user-flow'
|
|
7
|
+
|
|
8
|
+
// @endpoint POST /flows
|
|
9
|
+
// @controller UserFlow.Query
|
|
10
|
+
export async function queryUserFlow(
|
|
11
|
+
data: UserFlowQueryReqVO
|
|
12
|
+
): Promise<UserFlowQueryRespVO> {
|
|
13
|
+
return getDefaultClient().post('/flows', data)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// @endpoint POST /flows/status
|
|
17
|
+
// @controller UserFlow.Status
|
|
18
|
+
export async function getUserFlowStatus(): Promise<UserFlowStatusRespVO> {
|
|
19
|
+
return getDefaultClient().post('/flows/status')
|
|
20
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
GlobalActionAcceptInvitationReqVO,
|
|
4
|
+
GlobalActionAcceptInvitationRespVO,
|
|
5
|
+
GlobalActionAcceptInvitationLinkReqVO,
|
|
6
|
+
GlobalActionAcceptInvitationLinkRespVO,
|
|
7
|
+
GlobalActionCreateTenantReqVO,
|
|
8
|
+
GlobalActionCreateTenantRespVO,
|
|
9
|
+
GlobalActionEmailVerifyReqVO,
|
|
10
|
+
GlobalActionEmailVerifyRespVO,
|
|
11
|
+
GlobalActionEmailVerifyResendReqVO,
|
|
12
|
+
GlobalActionEmailVerifyResendRespVO,
|
|
13
|
+
GlobalActionEmailVerifyStatusRespVO,
|
|
14
|
+
GlobalActionEntryRespVO,
|
|
15
|
+
GlobalActionGetAuthRoleRespVO,
|
|
16
|
+
GlobalActionGetInvitationLinkRespVO,
|
|
17
|
+
GlobalActionProfileSetEmailReqVO,
|
|
18
|
+
GlobalActionProfileSetEmailRespVO,
|
|
19
|
+
GlobalActionProfileSetEmailCancelRespVO,
|
|
20
|
+
GlobalActionProfileSetEmailHistoryRespVO,
|
|
21
|
+
GlobalActionSetDefaultTenantReqVO,
|
|
22
|
+
GlobalActionSetDefaultTenantRespVO
|
|
23
|
+
} from '../../types/global-action'
|
|
24
|
+
|
|
25
|
+
// @endpoint POST /tenant/accept-invitation
|
|
26
|
+
// @controller GlobalAction.AcceptInvitation
|
|
27
|
+
export async function acceptTenantInvitation(
|
|
28
|
+
data: GlobalActionAcceptInvitationReqVO
|
|
29
|
+
): Promise<GlobalActionAcceptInvitationRespVO> {
|
|
30
|
+
return getDefaultClient().post('/tenant/accept-invitation', data)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// @endpoint POST /tenant/accept-invitation-link
|
|
34
|
+
// @controller GlobalAction.AcceptInvitationLink
|
|
35
|
+
export async function acceptTenantInvitationLink(
|
|
36
|
+
data: GlobalActionAcceptInvitationLinkReqVO
|
|
37
|
+
): Promise<GlobalActionAcceptInvitationLinkRespVO> {
|
|
38
|
+
return getDefaultClient().post('/tenant/accept-invitation-link', data)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// @endpoint POST /tenant
|
|
42
|
+
// @controller GlobalAction.CreateTenant
|
|
43
|
+
export async function createTenant(
|
|
44
|
+
data: GlobalActionCreateTenantReqVO
|
|
45
|
+
): Promise<GlobalActionCreateTenantRespVO> {
|
|
46
|
+
return getDefaultClient().post('/tenant', data)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// @endpoint POST /tenant/set-default
|
|
50
|
+
// @controller GlobalAction.SetDefaultTenant
|
|
51
|
+
export async function setDefaultTenant(
|
|
52
|
+
data: GlobalActionSetDefaultTenantReqVO
|
|
53
|
+
): Promise<GlobalActionSetDefaultTenantRespVO> {
|
|
54
|
+
return getDefaultClient().post('/tenant/set-default', data)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// @endpoint POST /auth/email-verify
|
|
58
|
+
// @controller GlobalAction.EmailVerify
|
|
59
|
+
export async function verifyEmail(
|
|
60
|
+
data: GlobalActionEmailVerifyReqVO
|
|
61
|
+
): Promise<GlobalActionEmailVerifyRespVO> {
|
|
62
|
+
return getDefaultClient().post('/auth/email-verify', data)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// @endpoint POST /auth/resend-email-verify
|
|
66
|
+
// @controller GlobalAction.EmailVerifyResend
|
|
67
|
+
export async function resendEmailVerify(
|
|
68
|
+
data: GlobalActionEmailVerifyResendReqVO
|
|
69
|
+
): Promise<GlobalActionEmailVerifyResendRespVO> {
|
|
70
|
+
return getDefaultClient().post('/auth/resend-email-verify', data)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// @endpoint POST /auth/email-verify-status
|
|
74
|
+
// @controller GlobalAction.EmailVerifyStatus
|
|
75
|
+
export async function getEmailVerifyStatus(): Promise<GlobalActionEmailVerifyStatusRespVO> {
|
|
76
|
+
return getDefaultClient().post('/auth/email-verify-status')
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// @endpoint GET /entry
|
|
80
|
+
// @controller GlobalAction.Entry
|
|
81
|
+
export async function getEntry(refresh: boolean = false): Promise<GlobalActionEntryRespVO> {
|
|
82
|
+
// mock cached
|
|
83
|
+
return getDefaultClient().get('/entry')
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// @endpoint GET /tenant/authrole
|
|
87
|
+
// @controller GlobalAction.GetAuthRole
|
|
88
|
+
export async function getTenantAuthRole(): Promise<GlobalActionGetAuthRoleRespVO> {
|
|
89
|
+
return getDefaultClient().get('/tenant/authrole')
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @endpoint GET /tenant/invitation-link/:id
|
|
93
|
+
// @controller GlobalAction.GetInvitationLink
|
|
94
|
+
export async function getTenantInvitationLink(
|
|
95
|
+
id: string
|
|
96
|
+
): Promise<GlobalActionGetInvitationLinkRespVO> {
|
|
97
|
+
return getDefaultClient().get(`/tenant/invitation-link/${id}`)
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// @endpoint GET /link/:name
|
|
101
|
+
// @controller GlobalAction.LinkTo
|
|
102
|
+
export async function getLink(
|
|
103
|
+
name: string
|
|
104
|
+
): Promise<void> {
|
|
105
|
+
return getDefaultClient().get(`/link/${name}`)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// @endpoint POST /user-profile/set-email
|
|
109
|
+
// @controller GlobalAction.ProfileSetEmail
|
|
110
|
+
export async function setProfileEmail(
|
|
111
|
+
data: GlobalActionProfileSetEmailReqVO
|
|
112
|
+
): Promise<GlobalActionProfileSetEmailRespVO> {
|
|
113
|
+
return getDefaultClient().post('/user-profile/set-email', data)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// @endpoint DELETE /user-profile/set-email/:hashid
|
|
117
|
+
// @controller GlobalAction.ProfileSetEmailCancel
|
|
118
|
+
export async function cancelProfileEmail(
|
|
119
|
+
hashid: string
|
|
120
|
+
): Promise<GlobalActionProfileSetEmailCancelRespVO> {
|
|
121
|
+
return getDefaultClient().delete(`/user-profile/set-email/${hashid}`)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// @endpoint GET /user-profile/set-email
|
|
125
|
+
// @controller GlobalAction.ProfileSetEmailHistory
|
|
126
|
+
export async function getProfileEmailHistory(): Promise<GlobalActionProfileSetEmailHistoryRespVO> {
|
|
127
|
+
return getDefaultClient().get('/user-profile/set-email')
|
|
128
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
|
|
3
|
+
export * from './entity'
|
|
4
|
+
export * from './dashboard'
|
|
5
|
+
export * from './profile'
|
|
6
|
+
export * from './common'
|
|
7
|
+
export * from './workflow'
|
|
8
|
+
export * from './kiosk'
|
|
9
|
+
export * from './copilot'
|
|
10
|
+
export * from './flow'
|
|
11
|
+
export * from './context'
|
|
12
|
+
export * from './global-action'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
KioskScreensRespVO
|
|
4
|
+
} from '../../types'
|
|
5
|
+
|
|
6
|
+
// @endpoint GET /apps/:app_id/kiosk
|
|
7
|
+
// @controller UserAction.KioskScreens
|
|
8
|
+
export async function getKioskScreens(
|
|
9
|
+
appId: string
|
|
10
|
+
): Promise<KioskScreensRespVO> {
|
|
11
|
+
return getDefaultClient().get(`/apps/${appId}/kiosk`)
|
|
12
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
UserProfileRespVO,
|
|
4
|
+
UserProfileUpdateReqVO,
|
|
5
|
+
UserProfileUpdateRespVO,
|
|
6
|
+
UpdateAvatarReqVO,
|
|
7
|
+
UpdateAvatarRespVO,
|
|
8
|
+
AuthChannelsRespVO,
|
|
9
|
+
ChangePasswordReqVO,
|
|
10
|
+
ChangePasswordRespVO,
|
|
11
|
+
FetchUserTokenRespVO
|
|
12
|
+
} from '../../types'
|
|
13
|
+
|
|
14
|
+
// @endpoint GET /user-profile
|
|
15
|
+
// @controller UserAction.UserProfile
|
|
16
|
+
export async function getUserProfile(): Promise<UserProfileRespVO> {
|
|
17
|
+
return getDefaultClient().get('/user-profile')
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// @endpoint PUT /user-profile
|
|
21
|
+
// @controller UserAction.UserProfileUpdate
|
|
22
|
+
export async function updateUserProfile(
|
|
23
|
+
data: UserProfileUpdateReqVO
|
|
24
|
+
): Promise<UserProfileUpdateRespVO> {
|
|
25
|
+
return getDefaultClient().put('/user-profile', data)
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// @endpoint PUT /user-profile/update-avatar
|
|
29
|
+
// @controller UserAction.UpdateAvatar
|
|
30
|
+
export async function updateUserAvatar(
|
|
31
|
+
data: UpdateAvatarReqVO
|
|
32
|
+
): Promise<UpdateAvatarRespVO> {
|
|
33
|
+
return getDefaultClient().put('/user-profile/update-avatar', data)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// @endpoint GET /user-profile/auth-channels
|
|
37
|
+
// @controller UserAction.AuthChannels
|
|
38
|
+
export async function getUserAuthChannels(): Promise<AuthChannelsRespVO> {
|
|
39
|
+
return getDefaultClient().get('/user-profile/auth-channels')
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @endpoint POST /user-profile/change-password
|
|
43
|
+
// @controller UserAction.ChangePassword
|
|
44
|
+
export async function changeUserPassword(
|
|
45
|
+
data: ChangePasswordReqVO
|
|
46
|
+
): Promise<ChangePasswordRespVO> {
|
|
47
|
+
return getDefaultClient().post('/user-profile/change-password', data)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// @endpoint POST /entity/:app_id/:entity_id/user-token
|
|
51
|
+
// @controller UserAction.FetchUserToken
|
|
52
|
+
export async function fetchEntityUserToken(
|
|
53
|
+
appId: string,
|
|
54
|
+
entityId: string
|
|
55
|
+
): Promise<FetchUserTokenRespVO> {
|
|
56
|
+
return getDefaultClient().post(`/entity/${appId}/${entityId}/user-token`)
|
|
57
|
+
}
|