@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,188 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
EntityDebugInvokeHookReqVO,
|
|
4
|
+
EntityDebugInvokeHookRespVO,
|
|
5
|
+
EntityDeleteEntityRespVO,
|
|
6
|
+
EntityFieldRecycleRespVO,
|
|
7
|
+
EntityInfoRespVO,
|
|
8
|
+
EntitySaveReqVO,
|
|
9
|
+
EntitySaveRespVO,
|
|
10
|
+
EntitySaveCustomKeysReqVO,
|
|
11
|
+
EntitySaveCustomKeysRespVO,
|
|
12
|
+
EntitySaveNameReqVO,
|
|
13
|
+
EntitySaveNameRespVO,
|
|
14
|
+
EntitySerialInitValReqVO,
|
|
15
|
+
EntitySerialInitValRespVO,
|
|
16
|
+
|
|
17
|
+
EntityUpdateButtonsReqVO,
|
|
18
|
+
EntityUpdateButtonsRespVO,
|
|
19
|
+
EntityUpdateOptionsReqVO,
|
|
20
|
+
EntityUpdateOptionsRespVO,
|
|
21
|
+
EntityUpdateSuccessScreenReqVO,
|
|
22
|
+
EntityUpdateSuccessScreenRespVO,
|
|
23
|
+
EntityUpdateNotificationsReqVO,
|
|
24
|
+
EntityUpdateNotificationsRespVO,
|
|
25
|
+
EntityTestNotificationReqVO,
|
|
26
|
+
EntityTestNotificationRespVO,
|
|
27
|
+
|
|
28
|
+
EntityCloneReqVO,
|
|
29
|
+
EntityCloneRespVO
|
|
30
|
+
} from '../../types/entity'
|
|
31
|
+
|
|
32
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/invoke-debug
|
|
33
|
+
// @controller Entity.DebugInvokeHook
|
|
34
|
+
export async function adminInvokeDebugHook(
|
|
35
|
+
appId: string,
|
|
36
|
+
entityId: string,
|
|
37
|
+
data: EntityDebugInvokeHookReqVO
|
|
38
|
+
): Promise<EntityDebugInvokeHookRespVO> {
|
|
39
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/invoke-debug`, data)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @endpoint DELETE /apps/:app_id/entity/:entity_id
|
|
43
|
+
// @controller Entity.DeleteEntity
|
|
44
|
+
export async function adminDeleteEntity(
|
|
45
|
+
appId: string,
|
|
46
|
+
entityId: string
|
|
47
|
+
): Promise<EntityDeleteEntityRespVO> {
|
|
48
|
+
return getDefaultClient().delete(`/apps/${appId}/entity/${entityId}`)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// @endpoint GET /apps/:app_id/entity-recycle
|
|
52
|
+
// @controller Entity.EntityRecycle
|
|
53
|
+
export async function adminGetEntityRecycle(
|
|
54
|
+
appId: string
|
|
55
|
+
): Promise<void> {
|
|
56
|
+
return getDefaultClient().get(`/apps/${appId}/entity-recycle`)
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/restore-fields
|
|
60
|
+
// @controller Entity.FieldRecycle
|
|
61
|
+
export async function adminGetFieldRecycle(
|
|
62
|
+
appId: string,
|
|
63
|
+
entityId: string
|
|
64
|
+
): Promise<EntityFieldRecycleRespVO> {
|
|
65
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/restore-fields`)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id
|
|
69
|
+
// @controller Entity.Info
|
|
70
|
+
export async function adminGetEntityInfo(
|
|
71
|
+
appId: string,
|
|
72
|
+
entityId: string
|
|
73
|
+
): Promise<EntityInfoRespVO> {
|
|
74
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}`)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id
|
|
78
|
+
// @controller Entity.Save
|
|
79
|
+
export async function adminSaveEntity(
|
|
80
|
+
appId: string,
|
|
81
|
+
entityId: string,
|
|
82
|
+
data: EntitySaveReqVO
|
|
83
|
+
): Promise<EntitySaveRespVO> {
|
|
84
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}`, data)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/custom-keys
|
|
88
|
+
// @controller Entity.SaveCustomKeys
|
|
89
|
+
export async function adminSaveEntityCustomKeys(
|
|
90
|
+
appId: string,
|
|
91
|
+
entityId: string,
|
|
92
|
+
data: EntitySaveCustomKeysReqVO
|
|
93
|
+
): Promise<EntitySaveCustomKeysRespVO> {
|
|
94
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/custom-keys`, data)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/name
|
|
98
|
+
// @controller Entity.SaveName
|
|
99
|
+
export async function adminSaveEntityName(
|
|
100
|
+
appId: string,
|
|
101
|
+
entityId: string,
|
|
102
|
+
data: EntitySaveNameReqVO
|
|
103
|
+
): Promise<EntitySaveNameRespVO> {
|
|
104
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/name`, data)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/serial-initval
|
|
108
|
+
// @controller Entity.SerialInitVal
|
|
109
|
+
export async function adminSetSerialInitValue(
|
|
110
|
+
appId: string,
|
|
111
|
+
entityId: string,
|
|
112
|
+
data: EntitySerialInitValReqVO
|
|
113
|
+
): Promise<EntitySerialInitValRespVO> {
|
|
114
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/serial-initval`, data)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/buttons
|
|
120
|
+
// @controller Entity.UpdateButtons
|
|
121
|
+
export async function adminUpdateEntityButtons(
|
|
122
|
+
appId: string,
|
|
123
|
+
entityId: string,
|
|
124
|
+
data: EntityUpdateButtonsReqVO
|
|
125
|
+
): Promise<EntityUpdateButtonsRespVO> {
|
|
126
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/buttons`, data)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/options
|
|
130
|
+
// @controller Entity.UpdateOptions
|
|
131
|
+
export async function adminUpdateEntityOptions(
|
|
132
|
+
appId: string,
|
|
133
|
+
entityId: string,
|
|
134
|
+
data: EntityUpdateOptionsReqVO
|
|
135
|
+
): Promise<EntityUpdateOptionsRespVO> {
|
|
136
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/options`, data)
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/success-screen
|
|
140
|
+
// @controller Entity.UpdateSuccessScreen
|
|
141
|
+
export async function adminUpdateEntitySuccessScreen(
|
|
142
|
+
appId: string,
|
|
143
|
+
entityId: string,
|
|
144
|
+
data: EntityUpdateSuccessScreenReqVO
|
|
145
|
+
): Promise<EntityUpdateSuccessScreenRespVO> {
|
|
146
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/success-screen`, data)
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/notifications
|
|
150
|
+
// @controller Entity.UpdateNotifications
|
|
151
|
+
export async function adminUpdateEntityNotifications(
|
|
152
|
+
appId: string,
|
|
153
|
+
entityId: string,
|
|
154
|
+
data: EntityUpdateNotificationsReqVO
|
|
155
|
+
): Promise<EntityUpdateNotificationsRespVO> {
|
|
156
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/notifications`, data)
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/test-notification
|
|
160
|
+
// @controller Entity.TestNotification
|
|
161
|
+
export async function adminTestEntityNotification(
|
|
162
|
+
appId: string,
|
|
163
|
+
entityId: string,
|
|
164
|
+
data: EntityTestNotificationReqVO
|
|
165
|
+
): Promise<EntityTestNotificationRespVO> {
|
|
166
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/test-notification`, data)
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/restore-data
|
|
172
|
+
// @controller Entity.DataRecycle
|
|
173
|
+
export async function adminGetEntityDataRecycle(
|
|
174
|
+
appId: string,
|
|
175
|
+
entityId: string
|
|
176
|
+
): Promise<any> {
|
|
177
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/restore-data`)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/clone
|
|
181
|
+
// @controller Entity.CloneEntity
|
|
182
|
+
export async function sendEntityClone(
|
|
183
|
+
appId: string,
|
|
184
|
+
entityId: string,
|
|
185
|
+
data: EntityCloneReqVO
|
|
186
|
+
): Promise<EntityCloneRespVO> {
|
|
187
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/clone`, data)
|
|
188
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
|
|
3
|
+
// @endpoint GET /extension/:id/*path
|
|
4
|
+
// @controller Extension.HttpRequest
|
|
5
|
+
export async function getExtensionHttpRequest(
|
|
6
|
+
id: string,
|
|
7
|
+
path: string
|
|
8
|
+
): Promise<void> {
|
|
9
|
+
return getDefaultClient().get(`/extension/${id}/${path}`)
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// @endpoint GET /extension/:id/*filepath
|
|
13
|
+
// @controller Extension.StaticFile
|
|
14
|
+
export async function getExtensionStaticFile(
|
|
15
|
+
id: string,
|
|
16
|
+
filepath: string
|
|
17
|
+
): Promise<void> {
|
|
18
|
+
return getDefaultClient().get(`/extension/${id}/${filepath}`)
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
|
|
3
|
+
export * from './app'
|
|
4
|
+
export * from './entity'
|
|
5
|
+
export * from './dashboard'
|
|
6
|
+
export * from './tenant'
|
|
7
|
+
export * from './departments'
|
|
8
|
+
export * from './developer'
|
|
9
|
+
export * from './dataset'
|
|
10
|
+
export * from './automate-rule'
|
|
11
|
+
export * from './business-hooks'
|
|
12
|
+
export * from './extension'
|
|
13
|
+
export * from './integration'
|
|
14
|
+
export * from './workflow'
|
|
15
|
+
export * from './kiosk-flow'
|
|
16
|
+
export * from './entity-tags'
|
|
17
|
+
export * from './print-templates'
|
|
18
|
+
export * from './print-template-background'
|
|
19
|
+
export * from './ingress'
|
|
20
|
+
export * from './config'
|
|
21
|
+
export * from './app-entity-share'
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
AppIngressCreateReqVO,
|
|
4
|
+
AppIngressCreateRespVO,
|
|
5
|
+
AppIngressDeleteRespVO,
|
|
6
|
+
AppIngressGetRespVO,
|
|
7
|
+
AppIngressGetBlocksRespVO,
|
|
8
|
+
AppIngressGetByHashIDRespVO,
|
|
9
|
+
AppIngressListRespVO,
|
|
10
|
+
AppIngressUpdateReqVO,
|
|
11
|
+
AppIngressUpdateRespVO,
|
|
12
|
+
AppIngressUpdateBlocksReqVO,
|
|
13
|
+
AppIngressUpdateBlocksRespVO
|
|
14
|
+
} from '../../types/ingress'
|
|
15
|
+
|
|
16
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/ingress
|
|
17
|
+
// @controller App.IngressCreate
|
|
18
|
+
export async function createEntityIngress(
|
|
19
|
+
appId: string,
|
|
20
|
+
entityId: string,
|
|
21
|
+
data: AppIngressCreateReqVO
|
|
22
|
+
): Promise<AppIngressCreateRespVO> {
|
|
23
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/ingress`, data)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/ingress?from_ingress_id=:id
|
|
27
|
+
// @controller App.IngressCreate (clone from existing ingress)
|
|
28
|
+
export async function createEntityIngressFrom(
|
|
29
|
+
appId: string,
|
|
30
|
+
entityId: string,
|
|
31
|
+
fromIngressId: string,
|
|
32
|
+
data: AppIngressCreateReqVO
|
|
33
|
+
): Promise<AppIngressCreateRespVO> {
|
|
34
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/ingress?from_ingress_id=${fromIngressId}`, data)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// @endpoint DELETE /apps/:app_id/entity/:entity_id/ingress/:id
|
|
38
|
+
// @controller App.IngressDelete
|
|
39
|
+
export async function deleteEntityIngress(
|
|
40
|
+
appId: string,
|
|
41
|
+
entityId: string,
|
|
42
|
+
id: string
|
|
43
|
+
): Promise<AppIngressDeleteRespVO> {
|
|
44
|
+
return getDefaultClient().delete(`/apps/${appId}/entity/${entityId}/ingress/${id}`)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/ingress/:id
|
|
48
|
+
// @controller App.IngressGet
|
|
49
|
+
export async function getEntityIngress(
|
|
50
|
+
appId: string,
|
|
51
|
+
entityId: string,
|
|
52
|
+
id: string
|
|
53
|
+
): Promise<AppIngressGetRespVO> {
|
|
54
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/ingress/${id}`)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/ingress-blocks/:id
|
|
58
|
+
// @controller App.IngressGetBlocks
|
|
59
|
+
export async function getEntityIngressBlocks(
|
|
60
|
+
appId: string,
|
|
61
|
+
entityId: string,
|
|
62
|
+
id: string
|
|
63
|
+
): Promise<AppIngressGetBlocksRespVO> {
|
|
64
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/ingress-blocks/${id}`)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/ingress-h/:id
|
|
68
|
+
// @controller App.IngressGetByHashID
|
|
69
|
+
export async function getEntityIngressByHashID(
|
|
70
|
+
appId: string,
|
|
71
|
+
entityId: string,
|
|
72
|
+
id: string
|
|
73
|
+
): Promise<AppIngressGetByHashIDRespVO> {
|
|
74
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/ingress-h/${id}`)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/ingress
|
|
78
|
+
// @controller App.IngressList
|
|
79
|
+
export async function getEntityIngressList(
|
|
80
|
+
appId: string,
|
|
81
|
+
entityId: string
|
|
82
|
+
): Promise<AppIngressListRespVO> {
|
|
83
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/ingress`)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/ingress/:id
|
|
87
|
+
// @controller App.IngressUpdate
|
|
88
|
+
export async function updateEntityIngress(
|
|
89
|
+
appId: string,
|
|
90
|
+
entityId: string,
|
|
91
|
+
id: string,
|
|
92
|
+
data: AppIngressUpdateReqVO
|
|
93
|
+
): Promise<AppIngressUpdateRespVO> {
|
|
94
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/ingress/${id}`, data)
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/ingress-blocks/:id
|
|
98
|
+
// @controller App.IngressUpdateBlocks
|
|
99
|
+
export async function updateEntityIngressBlocks(
|
|
100
|
+
appId: string,
|
|
101
|
+
entityId: string,
|
|
102
|
+
id: string,
|
|
103
|
+
data: AppIngressUpdateBlocksReqVO
|
|
104
|
+
): Promise<AppIngressUpdateBlocksRespVO> {
|
|
105
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/ingress-blocks/${id}`, data)
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/ingress-h/:id
|
|
109
|
+
// @controller App.IngressUpdateByHashID
|
|
110
|
+
export async function updateEntityIngressByHashID(
|
|
111
|
+
appId: string,
|
|
112
|
+
entityId: string,
|
|
113
|
+
id: string,
|
|
114
|
+
data: AppIngressUpdateReqVO
|
|
115
|
+
): Promise<AppIngressUpdateRespVO> {
|
|
116
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/ingress-h/${id}`, data)
|
|
117
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
|
|
3
|
+
// Note: Integration types are not generated from backend Swagger
|
|
4
|
+
// Using 'any' as temporary solution until backend types are added
|
|
5
|
+
type IntergrationGetTemplateCategoriesRespVO = any
|
|
6
|
+
type IntergrationChalaxyProxyRespVO = any
|
|
7
|
+
type IntergrationGetAllTemplatesRespVO = any
|
|
8
|
+
type IntergrationGetTemplateRespVO = any
|
|
9
|
+
type IntergrationGetConnectorsRespVO = any
|
|
10
|
+
|
|
11
|
+
// @endpoint GET /integration/templates-categories/
|
|
12
|
+
// @controller Intergration.GetTemplateCategroies
|
|
13
|
+
export async function getIntegrationTemplateCategories(): Promise<IntergrationGetTemplateCategoriesRespVO> {
|
|
14
|
+
return getDefaultClient().get('/integration/templates-categories/')
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// @endpoint GET /integration/*path
|
|
18
|
+
// @controller Intergration.ChalaxyProxy
|
|
19
|
+
export async function getIntegrationChalaxyProxy(
|
|
20
|
+
path: string
|
|
21
|
+
): Promise<IntergrationChalaxyProxyRespVO> {
|
|
22
|
+
return getDefaultClient().get(`/integration/${path}`)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// @endpoint GET /integration/templates/
|
|
26
|
+
// @controller Intergration.GetAllTemplates
|
|
27
|
+
export async function getIntegrationAllTemplates(): Promise<IntergrationGetAllTemplatesRespVO> {
|
|
28
|
+
return getDefaultClient().get('/integration/templates/')
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// @endpoint GET /integration/templates/:id
|
|
32
|
+
// @controller Intergration.GetTemplate
|
|
33
|
+
export async function getIntegrationTemplate(
|
|
34
|
+
id: string
|
|
35
|
+
): Promise<IntergrationGetTemplateRespVO> {
|
|
36
|
+
return getDefaultClient().get(`/integration/templates/${id}`)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @endpoint GET /integration/connectors
|
|
40
|
+
// @controller Intergration.ChalaxyProxy
|
|
41
|
+
export async function getIntegrationConnectors(
|
|
42
|
+
params?: { key?: string }
|
|
43
|
+
): Promise<IntergrationGetConnectorsRespVO> {
|
|
44
|
+
return getDefaultClient().get('/integration/connectors', params)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// @endpoint POST /integration/connectors/:id/start-auth
|
|
48
|
+
// @controller Intergration.ChalaxyProxy
|
|
49
|
+
export async function sendIntegrationConnectorStartAuth(
|
|
50
|
+
id: string,
|
|
51
|
+
data?: any
|
|
52
|
+
): Promise<IntergrationChalaxyProxyRespVO> {
|
|
53
|
+
return getDefaultClient().post(`/integration/connectors/${id}/start-auth`, data)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// @endpoint POST /integration/connectors/:id/invoke-trigger/:triggerKey
|
|
57
|
+
// @controller Intergration.ChalaxyProxy
|
|
58
|
+
export async function sendIntegrationConnectorInvokeTrigger(
|
|
59
|
+
id: string,
|
|
60
|
+
triggerKey: string,
|
|
61
|
+
data?: any
|
|
62
|
+
): Promise<IntergrationChalaxyProxyRespVO> {
|
|
63
|
+
return getDefaultClient().post(`/integration/connectors/${id}/invoke-trigger/${triggerKey}`, data)
|
|
64
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
EntityKioskFlowCreateReqVO,
|
|
4
|
+
EntityKioskFlowUpdateReqVO
|
|
5
|
+
} from '../../types/entity'
|
|
6
|
+
import type { EntityKioskFlow } from '../../types'
|
|
7
|
+
|
|
8
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/kiosk-flow/:id/clone
|
|
9
|
+
// @controller Entity.KioskFlowClone
|
|
10
|
+
export async function cloneKioskFlow(
|
|
11
|
+
appId: string,
|
|
12
|
+
entityId: string,
|
|
13
|
+
id: string,
|
|
14
|
+
data: any
|
|
15
|
+
): Promise<EntityKioskFlow> {
|
|
16
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/kiosk-flow/${id}/clone`, data)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/kiosk-flow
|
|
20
|
+
// @controller Entity.KioskFlowCreate
|
|
21
|
+
export async function createKioskFlow(
|
|
22
|
+
appId: string,
|
|
23
|
+
entityId: string,
|
|
24
|
+
data: EntityKioskFlowCreateReqVO
|
|
25
|
+
): Promise<EntityKioskFlow> {
|
|
26
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/kiosk-flow`, data)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// @endpoint DELETE /apps/:app_id/entity/:entity_id/kiosk-flow/:id
|
|
30
|
+
// @controller Entity.KioskFlowDelete
|
|
31
|
+
export async function deleteKioskFlow(
|
|
32
|
+
appId: string,
|
|
33
|
+
entityId: string,
|
|
34
|
+
id: string
|
|
35
|
+
): Promise<boolean> {
|
|
36
|
+
return getDefaultClient().delete(`/apps/${appId}/entity/${entityId}/kiosk-flow/${id}`)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/kiosk-flow/:id
|
|
40
|
+
// @controller Entity.KioskFlowGet
|
|
41
|
+
export async function getKioskFlow(
|
|
42
|
+
appId: string,
|
|
43
|
+
entityId: string,
|
|
44
|
+
id: string
|
|
45
|
+
): Promise<EntityKioskFlow> {
|
|
46
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/kiosk-flow/${id}`)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/kiosk-flow
|
|
50
|
+
// @controller Entity.KioskFlowList
|
|
51
|
+
export async function getKioskFlowList(
|
|
52
|
+
appId: string,
|
|
53
|
+
entityId: string
|
|
54
|
+
): Promise<EntityKioskFlow[]> {
|
|
55
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/kiosk-flow`)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/kiosk-flow/:id
|
|
59
|
+
// @controller Entity.KioskFlowUpdate
|
|
60
|
+
export async function updateKioskFlow(
|
|
61
|
+
appId: string,
|
|
62
|
+
entityId: string,
|
|
63
|
+
id: string,
|
|
64
|
+
data: EntityKioskFlowUpdateReqVO
|
|
65
|
+
): Promise<EntityKioskFlow> {
|
|
66
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/kiosk-flow/${id}`, data)
|
|
67
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory';
|
|
2
|
+
|
|
3
|
+
// @endpoint POST /api/apps/:app_id/entity/:entity_id/print-templates/:template_id/background
|
|
4
|
+
// @controller Entity.PrintTemplateBackgroundUpload
|
|
5
|
+
export async function uploadPrintTemplateBackground(
|
|
6
|
+
appId: string,
|
|
7
|
+
entityId: string,
|
|
8
|
+
templateId: string,
|
|
9
|
+
data: PrintTemplateBackgroundUploadReqVO
|
|
10
|
+
): Promise<PrintTemplateBackgroundUploadRespVO> {
|
|
11
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/print-templates/${templateId}/background`, data)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// @endpoint DELETE /api/apps/:app_id/entity/:entity_id/print-templates/:template_id/background
|
|
15
|
+
// @controller Entity.PrintTemplateBackgroundDelete
|
|
16
|
+
export async function deletePrintTemplateBackground(
|
|
17
|
+
appId: string,
|
|
18
|
+
entityId: string,
|
|
19
|
+
templateId: string
|
|
20
|
+
): Promise<PrintTemplateBackgroundDeleteRespVO> {
|
|
21
|
+
return getDefaultClient().delete(`/apps/${appId}/entity/${entityId}/print-templates/${templateId}/background`)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Request/Response types
|
|
25
|
+
export interface PrintTemplateBackgroundUploadReqVO {
|
|
26
|
+
upload_id: number;
|
|
27
|
+
filename: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface PrintTemplateBackgroundUploadRespVO {
|
|
31
|
+
assets_id: number;
|
|
32
|
+
file_name: string;
|
|
33
|
+
file_size: number;
|
|
34
|
+
content_type: string;
|
|
35
|
+
full_size_url: string;
|
|
36
|
+
thumb_url: string;
|
|
37
|
+
icon_url: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface PrintTemplateBackgroundDeleteRespVO {
|
|
41
|
+
success: boolean;
|
|
42
|
+
message: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { getDefaultClient } from '../../factory'
|
|
2
|
+
import type {
|
|
3
|
+
EntityPrintTemplatesCreateReqVO,
|
|
4
|
+
EntityPrintTemplatesCreateRespVO,
|
|
5
|
+
EntityPrintTemplatesDeleteRespVO,
|
|
6
|
+
EntityPrintTemplatesGetRespVO,
|
|
7
|
+
EntityPrintTemplatesListRespVO,
|
|
8
|
+
EntityPrintTemplatesUpdateReqVO,
|
|
9
|
+
EntityPrintTemplatesUpdateRespVO
|
|
10
|
+
} from '../../types/entity'
|
|
11
|
+
|
|
12
|
+
// @endpoint POST /apps/:app_id/entity/:entity_id/print-templates
|
|
13
|
+
// @controller Entity.PrintTemplatesCreate
|
|
14
|
+
export async function createEntityPrintTemplate(
|
|
15
|
+
appId: string,
|
|
16
|
+
entityId: string,
|
|
17
|
+
data: EntityPrintTemplatesCreateReqVO
|
|
18
|
+
): Promise<EntityPrintTemplatesCreateRespVO> {
|
|
19
|
+
return getDefaultClient().post(`/apps/${appId}/entity/${entityId}/print-templates`, data)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// @endpoint DELETE /apps/:app_id/entity/:entity_id/print-templates/:id
|
|
23
|
+
// @controller Entity.PrintTemplatesDelete
|
|
24
|
+
export async function deleteEntityPrintTemplate(
|
|
25
|
+
appId: string,
|
|
26
|
+
entityId: string,
|
|
27
|
+
id: string
|
|
28
|
+
): Promise<EntityPrintTemplatesDeleteRespVO> {
|
|
29
|
+
return getDefaultClient().delete(`/apps/${appId}/entity/${entityId}/print-templates/${id}`)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/print-templates/:id
|
|
33
|
+
// @controller Entity.PrintTemplatesGet
|
|
34
|
+
export async function getEntityPrintTemplate(
|
|
35
|
+
appId: string,
|
|
36
|
+
entityId: string,
|
|
37
|
+
id: string
|
|
38
|
+
): Promise<EntityPrintTemplatesGetRespVO> {
|
|
39
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/print-templates/${id}`)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @endpoint GET /apps/:app_id/entity/:entity_id/print-templates
|
|
43
|
+
// @controller Entity.PrintTemplatesList
|
|
44
|
+
export async function getEntityPrintTemplateList(
|
|
45
|
+
appId: string,
|
|
46
|
+
entityId: string
|
|
47
|
+
): Promise<EntityPrintTemplatesListRespVO> {
|
|
48
|
+
return getDefaultClient().get(`/apps/${appId}/entity/${entityId}/print-templates`)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// @endpoint PUT /apps/:app_id/entity/:entity_id/print-templates/:id
|
|
52
|
+
// @controller Entity.PrintTemplatesUpdate
|
|
53
|
+
export async function updateEntityPrintTemplate(
|
|
54
|
+
appId: string,
|
|
55
|
+
entityId: string,
|
|
56
|
+
id: string,
|
|
57
|
+
data: EntityPrintTemplatesUpdateReqVO
|
|
58
|
+
): Promise<EntityPrintTemplatesUpdateRespVO> {
|
|
59
|
+
return getDefaultClient().put(`/apps/${appId}/entity/${entityId}/print-templates/${id}`, data)
|
|
60
|
+
}
|