@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.
Files changed (157) hide show
  1. package/bundle/arcubase-admin.mjs +9875 -0
  2. package/bundle/arcubase.mjs +9875 -0
  3. package/dist/bin/arcubase-admin.d.ts +2 -0
  4. package/dist/bin/arcubase-admin.d.ts.map +1 -0
  5. package/dist/bin/arcubase-admin.js +22 -0
  6. package/dist/bin/arcubase.d.ts +2 -0
  7. package/dist/bin/arcubase.d.ts.map +1 -0
  8. package/dist/bin/arcubase.js +22 -0
  9. package/dist/generated/command_registry.generated.d.ts +3072 -0
  10. package/dist/generated/command_registry.generated.d.ts.map +1 -0
  11. package/dist/generated/command_registry.generated.js +4587 -0
  12. package/dist/generated/type_index.generated.d.ts +496 -0
  13. package/dist/generated/type_index.generated.d.ts.map +1 -0
  14. package/dist/generated/type_index.generated.js +502 -0
  15. package/dist/generated/zod_registry.generated.d.ts +356 -0
  16. package/dist/generated/zod_registry.generated.d.ts.map +1 -0
  17. package/dist/generated/zod_registry.generated.js +483 -0
  18. package/dist/index.d.ts +5 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +4 -0
  21. package/dist/runtime/argv.d.ts +8 -0
  22. package/dist/runtime/argv.d.ts.map +1 -0
  23. package/dist/runtime/argv.js +31 -0
  24. package/dist/runtime/body_loader.d.ts +3 -0
  25. package/dist/runtime/body_loader.d.ts.map +1 -0
  26. package/dist/runtime/body_loader.js +26 -0
  27. package/dist/runtime/command_registry.d.ts +9 -0
  28. package/dist/runtime/command_registry.d.ts.map +1 -0
  29. package/dist/runtime/command_registry.js +14 -0
  30. package/dist/runtime/env.d.ts +14 -0
  31. package/dist/runtime/env.d.ts.map +1 -0
  32. package/dist/runtime/env.js +42 -0
  33. package/dist/runtime/errors.d.ts +23 -0
  34. package/dist/runtime/errors.d.ts.map +1 -0
  35. package/dist/runtime/errors.js +18 -0
  36. package/dist/runtime/execute.d.ts +17 -0
  37. package/dist/runtime/execute.d.ts.map +1 -0
  38. package/dist/runtime/execute.js +183 -0
  39. package/dist/runtime/http.d.ts +4 -0
  40. package/dist/runtime/http.d.ts.map +1 -0
  41. package/dist/runtime/http.js +21 -0
  42. package/dist/runtime/output.d.ts +2 -0
  43. package/dist/runtime/output.d.ts.map +1 -0
  44. package/dist/runtime/output.js +3 -0
  45. package/dist/runtime/paths.d.ts +4 -0
  46. package/dist/runtime/paths.d.ts.map +1 -0
  47. package/dist/runtime/paths.js +8 -0
  48. package/dist/runtime/zod_registry.d.ts +10 -0
  49. package/dist/runtime/zod_registry.d.ts.map +1 -0
  50. package/dist/runtime/zod_registry.js +50 -0
  51. package/dist/tests/bootstrap.test.d.ts +2 -0
  52. package/dist/tests/bootstrap.test.d.ts.map +1 -0
  53. package/dist/tests/bootstrap.test.js +59 -0
  54. package/dist/tests/command_registry.test.d.ts +2 -0
  55. package/dist/tests/command_registry.test.d.ts.map +1 -0
  56. package/dist/tests/command_registry.test.js +22 -0
  57. package/dist/tests/execute_validation.test.d.ts +2 -0
  58. package/dist/tests/execute_validation.test.d.ts.map +1 -0
  59. package/dist/tests/execute_validation.test.js +41 -0
  60. package/dist/tests/help.test.d.ts +2 -0
  61. package/dist/tests/help.test.d.ts.map +1 -0
  62. package/dist/tests/help.test.js +22 -0
  63. package/dist/tests/zod_registry.test.d.ts +2 -0
  64. package/dist/tests/zod_registry.test.d.ts.map +1 -0
  65. package/dist/tests/zod_registry.test.js +26 -0
  66. package/package.json +46 -0
  67. package/sdk-dist/api/admin/app-entity-share.ts +52 -0
  68. package/sdk-dist/api/admin/app.ts +187 -0
  69. package/sdk-dist/api/admin/automate-rule.ts +59 -0
  70. package/sdk-dist/api/admin/business-hooks.ts +17 -0
  71. package/sdk-dist/api/admin/config.ts +12 -0
  72. package/sdk-dist/api/admin/dashboard.ts +88 -0
  73. package/sdk-dist/api/admin/dataset.ts +133 -0
  74. package/sdk-dist/api/admin/departments.ts +223 -0
  75. package/sdk-dist/api/admin/developer.ts +126 -0
  76. package/sdk-dist/api/admin/entity-tags.ts +71 -0
  77. package/sdk-dist/api/admin/entity.ts +188 -0
  78. package/sdk-dist/api/admin/extension.ts +19 -0
  79. package/sdk-dist/api/admin/index.ts +21 -0
  80. package/sdk-dist/api/admin/ingress.ts +117 -0
  81. package/sdk-dist/api/admin/integration.ts +64 -0
  82. package/sdk-dist/api/admin/kiosk-flow.ts +67 -0
  83. package/sdk-dist/api/admin/print-template-background.ts +43 -0
  84. package/sdk-dist/api/admin/print-templates.ts +60 -0
  85. package/sdk-dist/api/admin/tenant.ts +231 -0
  86. package/sdk-dist/api/admin/workflow.ts +51 -0
  87. package/sdk-dist/api/kiosk/index.ts +4 -0
  88. package/sdk-dist/api/kiosk/starter.ts +34 -0
  89. package/sdk-dist/api/kiosk/ui.ts +79 -0
  90. package/sdk-dist/api/open/api.ts +11 -0
  91. package/sdk-dist/api/open/index.ts +3 -0
  92. package/sdk-dist/api/shared-link/form.ts +103 -0
  93. package/sdk-dist/api/shared-link/index.ts +3 -0
  94. package/sdk-dist/api/user/common.ts +159 -0
  95. package/sdk-dist/api/user/context.ts +10 -0
  96. package/sdk-dist/api/user/copilot.ts +20 -0
  97. package/sdk-dist/api/user/dashboard.ts +43 -0
  98. package/sdk-dist/api/user/entity.ts +213 -0
  99. package/sdk-dist/api/user/flow.ts +20 -0
  100. package/sdk-dist/api/user/global-action.ts +128 -0
  101. package/sdk-dist/api/user/index.ts +12 -0
  102. package/sdk-dist/api/user/kiosk.ts +12 -0
  103. package/sdk-dist/api/user/profile.ts +57 -0
  104. package/sdk-dist/api/user/workflow.ts +186 -0
  105. package/sdk-dist/generated/command_registry.generated.ts +4603 -0
  106. package/sdk-dist/generated/type_index.generated.ts +503 -0
  107. package/sdk-dist/generated/zod_registry.generated.ts +713 -0
  108. package/sdk-dist/types/app-user.ts +0 -0
  109. package/sdk-dist/types/app.ts +182 -0
  110. package/sdk-dist/types/auth.ts +174 -0
  111. package/sdk-dist/types/automate-rule.ts +100 -0
  112. package/sdk-dist/types/business-hooks.ts +37 -0
  113. package/sdk-dist/types/common.ts +676 -0
  114. package/sdk-dist/types/copilot.ts +34 -0
  115. package/sdk-dist/types/dashboard.ts +122 -0
  116. package/sdk-dist/types/dataset.ts +168 -0
  117. package/sdk-dist/types/departments.ts +351 -0
  118. package/sdk-dist/types/developer.ts +190 -0
  119. package/sdk-dist/types/entity.ts +400 -0
  120. package/sdk-dist/types/extension.ts +15 -0
  121. package/sdk-dist/types/global-action.ts +206 -0
  122. package/sdk-dist/types/index.ts +26 -0
  123. package/sdk-dist/types/ingress.ts +173 -0
  124. package/sdk-dist/types/kiosk-starter.ts +46 -0
  125. package/sdk-dist/types/kiosk-ui.ts +94 -0
  126. package/sdk-dist/types/oauth-authorize.ts +52 -0
  127. package/sdk-dist/types/oauth.ts +33 -0
  128. package/sdk-dist/types/openapi.ts +24 -0
  129. package/sdk-dist/types/platform-setup.ts +26 -0
  130. package/sdk-dist/types/shared-link.ts +41 -0
  131. package/sdk-dist/types/tenant.ts +340 -0
  132. package/sdk-dist/types/upload.ts +0 -0
  133. package/sdk-dist/types/user-action.ts +871 -0
  134. package/sdk-dist/types/user-flow.ts +90 -0
  135. package/sdk-dist/types/widgets.ts +115 -0
  136. package/sdk-dist/types/workflow.ts +162 -0
  137. package/src/bin/arcubase-admin.ts +23 -0
  138. package/src/bin/arcubase.ts +23 -0
  139. package/src/generated/command_registry.generated.ts +4603 -0
  140. package/src/generated/type_index.generated.ts +503 -0
  141. package/src/generated/zod_registry.generated.ts +713 -0
  142. package/src/index.ts +4 -0
  143. package/src/runtime/argv.ts +39 -0
  144. package/src/runtime/body_loader.ts +26 -0
  145. package/src/runtime/command_registry.ts +22 -0
  146. package/src/runtime/env.ts +60 -0
  147. package/src/runtime/errors.ts +41 -0
  148. package/src/runtime/execute.ts +206 -0
  149. package/src/runtime/http.ts +23 -0
  150. package/src/runtime/output.ts +3 -0
  151. package/src/runtime/paths.ts +8 -0
  152. package/src/runtime/zod_registry.ts +53 -0
  153. package/src/tests/bootstrap.test.ts +67 -0
  154. package/src/tests/command_registry.test.ts +27 -0
  155. package/src/tests/execute_validation.test.ts +50 -0
  156. package/src/tests/help.test.ts +25 -0
  157. package/src/tests/zod_registry.test.ts +33 -0
@@ -0,0 +1,206 @@
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, PostqueryUserData, SqlNullTime, AuthSessionVO } from './common'
15
+
16
+ export interface AppInfo {
17
+ ID?: number;
18
+ has_workflow?: boolean;
19
+ icon_color?: string;
20
+ icon_name?: string;
21
+ name?: string;
22
+ task_count?: number;
23
+ }
24
+
25
+ export interface EmailChangeRecord {
26
+ content?: string;
27
+ created_at?: number;
28
+ id?: string;
29
+ }
30
+
31
+ export interface EmbeddedApp {
32
+ address?: string;
33
+ icon_address?: string;
34
+ name?: string;
35
+ path?: string;
36
+ }
37
+
38
+ export interface GlobalActionAcceptInvitationLinkReqVO {
39
+ id?: string;
40
+ }
41
+
42
+ export interface GlobalActionAcceptInvitationLinkRespVO {
43
+ result?: string;
44
+ status?: string;
45
+ tenant?: Tenant;
46
+ }
47
+
48
+ export interface GlobalActionAcceptInvitationReqVO {
49
+ id?: number;
50
+ }
51
+
52
+ export interface GlobalActionAcceptInvitationRespVO {
53
+ CreatedAt?: string;
54
+ DeletedAt?: SqlNullTime;
55
+ /** not in db */
56
+ HashID?: string;
57
+ ID?: number;
58
+ UpdatedAt?: string;
59
+ color_schema?: string;
60
+ currency?: string;
61
+ icon_assets_id?: number;
62
+ icon_url?: string;
63
+ join_able?: boolean;
64
+ locale?: string;
65
+ logo_assets_id?: number;
66
+ logo_url?: string;
67
+ name?: string;
68
+ slug?: string;
69
+ timezone?: string;
70
+ }
71
+
72
+ export interface GlobalActionCreateTenantReqVO {
73
+ name?: string;
74
+ }
75
+
76
+ export interface GlobalActionCreateTenantRespVO {
77
+ CreatedAt?: string;
78
+ DeletedAt?: SqlNullTime;
79
+ /** not in db */
80
+ HashID?: string;
81
+ ID?: number;
82
+ UpdatedAt?: string;
83
+ color_schema?: string;
84
+ currency?: string;
85
+ icon_assets_id?: number;
86
+ icon_url?: string;
87
+ join_able?: boolean;
88
+ locale?: string;
89
+ logo_assets_id?: number;
90
+ logo_url?: string;
91
+ name?: string;
92
+ slug?: string;
93
+ timezone?: string;
94
+ }
95
+
96
+ export interface GlobalActionEmailVerifyReqVO {
97
+ code?: string;
98
+ locale?: string;
99
+ }
100
+
101
+ export interface GlobalActionEmailVerifyResendReqVO {
102
+ locale?: string;
103
+ }
104
+
105
+ export interface GlobalActionEmailVerifyResendRespVO {
106
+ email?: string;
107
+ validation_expired?: number;
108
+ validation_send_at?: number;
109
+ verified?: boolean;
110
+ }
111
+
112
+ export interface GlobalActionEmailVerifyRespVO {
113
+ addon?: {
114
+ validation_expired?: number;
115
+ };
116
+ auth?: string;
117
+ session?: AuthSessionVO;
118
+ tenants?: Tenant[];
119
+ token?: string;
120
+ user?: User;
121
+ }
122
+
123
+ export interface GlobalActionEmailVerifyStatusRespVO {
124
+ email?: string;
125
+ validation_expired?: number;
126
+ validation_send_at?: number;
127
+ verified?: boolean;
128
+ }
129
+
130
+ export interface GlobalActionEntryRespVO {
131
+ account_name?: string;
132
+ apps?: AppInfo[];
133
+ config?: GlobalConfig;
134
+ default_tenant_id?: number;
135
+ embedded_apps?: EmbeddedApp[];
136
+ invitations?: InvitationInfo[];
137
+ is_tenant_admin?: boolean;
138
+ lockin_tenant?: number;
139
+ multi_tenant?: boolean;
140
+ tenant_id?: number;
141
+ tenant_name?: string;
142
+ tenants?: TenantInfo[];
143
+ user?: PostqueryUserData;
144
+ }
145
+
146
+ export interface GlobalActionGetInvitationLinkRespVO {
147
+ invitation?: InvitationLinkInfo;
148
+ }
149
+
150
+ export interface GlobalActionProfileSetEmailCancelRespVO {
151
+ id?: number;
152
+ }
153
+
154
+ export interface GlobalActionProfileSetEmailReqVO {
155
+ email?: string;
156
+ reset_password?: boolean;
157
+ }
158
+
159
+ export interface GlobalActionProfileSetEmailRespVO {
160
+ content?: string;
161
+ id?: string;
162
+ }
163
+
164
+ export interface GlobalActionSetDefaultTenantReqVO {
165
+ tenant_id?: number;
166
+ }
167
+
168
+ export interface GlobalActionSetDefaultTenantRespVO {
169
+ success?: boolean;
170
+ }
171
+
172
+ export interface GlobalConfig {
173
+ currency?: string[];
174
+ locales?: string[];
175
+ prefer_currency?: string;
176
+ prefer_local?: string;
177
+ site_icon?: string;
178
+ site_logo?: string;
179
+ timezone?: string;
180
+ }
181
+
182
+ export interface InvitationInfo {
183
+ id?: number;
184
+ tenant_icon?: string;
185
+ tenant_id?: number;
186
+ tenant_name?: string;
187
+ }
188
+
189
+ export interface InvitationLinkInfo {
190
+ expired_at?: number;
191
+ tenant_icon?: string;
192
+ tenant_name?: string;
193
+ }
194
+
195
+ export interface TenantInfo {
196
+ ID?: number;
197
+ IconUrl?: string;
198
+ /** Whether user is admin of this tenant */
199
+ IsAdmin?: boolean;
200
+ Name?: string;
201
+ SiteLogoUrl?: string;
202
+ }
203
+
204
+ export type GlobalActionGetAuthRoleRespVO = string;
205
+
206
+ export type GlobalActionProfileSetEmailHistoryRespVO = EmailChangeRecord[];
@@ -0,0 +1,26 @@
1
+ export * from './common'
2
+ export * from './auth'
3
+ export * from './entity'
4
+ export * from './app'
5
+ export * from './tenant'
6
+ export * from './user-action'
7
+ export * from './global-action'
8
+ export * from './dashboard'
9
+ export * from './oauth'
10
+ export * from './oauth-authorize'
11
+ export * from './platform-setup'
12
+ export * from './copilot'
13
+ export * from './extension'
14
+ export * from './automate-rule'
15
+ export * from './business-hooks'
16
+ export * from './kiosk-starter'
17
+ export * from './kiosk-ui'
18
+ export * from './dataset'
19
+ export * from './developer'
20
+ export * from './departments'
21
+ export * from './shared-link'
22
+ export * from './user-flow'
23
+ export * from './widgets'
24
+ export * from './ingress'
25
+ export * from './workflow'
26
+ export * from './openapi'
@@ -0,0 +1,173 @@
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, I18NText, PermitColumn, PermitConditionSet, PermitEntityListOptions, PermitEntityListTab, PermitEntityListWidget, PermitFieldPermit, PermitPolicy, PermitRecordCondition, PermitSearchColumn, PermitUserScope, SqlNullTime, ErrorResponse } from './common'
15
+
16
+ export interface EntityIngress {
17
+ CreatedAt?: string;
18
+ DeletedAt?: SqlNullTime;
19
+ /** not in db */
20
+ HashID?: string;
21
+ ID?: number;
22
+ UpdatedAt?: string;
23
+ app_id?: number;
24
+ enabled?: boolean;
25
+ entity_id?: number;
26
+ icon_name?: string;
27
+ last_modified_by?: number;
28
+ menu_group_id?: number;
29
+ mode?: string;
30
+ name?: string;
31
+ options?: EntityIngressOptions;
32
+ sort?: number;
33
+ type?: string;
34
+ url?: string;
35
+ }
36
+
37
+ export interface EntityIngressOptions {
38
+ i18n_name?: I18NText;
39
+ list_options?: PermitEntityListOptions;
40
+ policy?: PermitPolicy;
41
+ user_scope?: PermitUserScope[];
42
+ }
43
+
44
+ export interface IngressBlock {
45
+ code?: string;
46
+ content?: string;
47
+ id?: number;
48
+ ingress_id?: number;
49
+ }
50
+
51
+ export interface AppIngressBlockVO {
52
+ code?: string;
53
+ content?: string;
54
+ }
55
+
56
+ export interface AppIngressCreateReqVO {
57
+ enabled?: boolean;
58
+ entity_id?: number;
59
+ icon_name?: string;
60
+ name?: string;
61
+ options?: EntityIngressOptions;
62
+ type?: string;
63
+ url?: string;
64
+ }
65
+
66
+ export interface AppIngressCreateRespVO {
67
+ app_id?: number;
68
+ created_at?: number;
69
+ enabled?: boolean;
70
+ entity_id?: number;
71
+ icon_name?: string;
72
+ id?: number;
73
+ last_modified_by?: number;
74
+ menu_group_id?: number;
75
+ mode?: string;
76
+ name?: string;
77
+ options?: EntityIngressOptions;
78
+ sort?: number;
79
+ type?: string;
80
+ updated_at?: number;
81
+ url?: string;
82
+ }
83
+
84
+ export interface AppIngressDeleteRespVO {
85
+ app_id?: number;
86
+ created_at?: number;
87
+ enabled?: boolean;
88
+ entity_id?: number;
89
+ icon_name?: string;
90
+ id?: number;
91
+ last_modified_by?: number;
92
+ menu_group_id?: number;
93
+ mode?: string;
94
+ name?: string;
95
+ options?: EntityIngressOptions;
96
+ sort?: number;
97
+ type?: string;
98
+ updated_at?: number;
99
+ url?: string;
100
+ }
101
+
102
+ export interface AppIngressGetByHashIDRespVO {
103
+ app_id?: number;
104
+ created_at?: number;
105
+ enabled?: boolean;
106
+ entity_id?: number;
107
+ icon_name?: string;
108
+ id?: number;
109
+ last_modified_by?: number;
110
+ menu_group_id?: number;
111
+ mode?: string;
112
+ name?: string;
113
+ options?: EntityIngressOptions;
114
+ sort?: number;
115
+ type?: string;
116
+ updated_at?: number;
117
+ url?: string;
118
+ }
119
+
120
+ export interface AppIngressGetRespVO {
121
+ app_id?: number;
122
+ created_at?: number;
123
+ enabled?: boolean;
124
+ entity_id?: number;
125
+ icon_name?: string;
126
+ id?: number;
127
+ last_modified_by?: number;
128
+ menu_group_id?: number;
129
+ mode?: string;
130
+ name?: string;
131
+ options?: EntityIngressOptions;
132
+ sort?: number;
133
+ type?: string;
134
+ updated_at?: number;
135
+ url?: string;
136
+ }
137
+
138
+ export interface AppIngressUpdateBlocksReqVO {
139
+ blocks?: AppIngressBlockVO[];
140
+ }
141
+
142
+ export interface AppIngressUpdateBlocksRespVO {
143
+ success?: boolean;
144
+ }
145
+
146
+ export interface AppIngressUpdateReqVO {
147
+ enabled?: boolean;
148
+ name?: string;
149
+ options?: EntityIngressOptions;
150
+ update?: string[];
151
+ }
152
+
153
+ export interface AppIngressUpdateRespVO {
154
+ app_id?: number;
155
+ created_at?: number;
156
+ enabled?: boolean;
157
+ entity_id?: number;
158
+ icon_name?: string;
159
+ id?: number;
160
+ last_modified_by?: number;
161
+ menu_group_id?: number;
162
+ mode?: string;
163
+ name?: string;
164
+ options?: EntityIngressOptions;
165
+ sort?: number;
166
+ type?: string;
167
+ updated_at?: number;
168
+ url?: string;
169
+ }
170
+
171
+ export type AppIngressGetBlocksRespVO = IngressBlock[];
172
+
173
+ export type AppIngressListRespVO = EntityIngress[];
@@ -0,0 +1,46 @@
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 { ErrorResponse } from './common'
14
+
15
+ export interface KioskStarterGetGroupInfoRespVO {
16
+ name?: string;
17
+ }
18
+
19
+ export interface KioskStarterRegisterNodeReqVO {
20
+ fingerprint?: string;
21
+ replace?: boolean;
22
+ secret?: string;
23
+ station?: number;
24
+ }
25
+
26
+ export interface KioskStarterRegisterNodeRespVO {
27
+ registered?: boolean;
28
+ station_id?: number;
29
+ station_name?: string;
30
+ }
31
+
32
+ export interface KioskStarterValidateReqVO {
33
+ fingerprint?: string;
34
+ secret?: string;
35
+ }
36
+
37
+ export interface KioskStarterValidateRespVO {
38
+ freeStations?: StationInfo[];
39
+ validated?: boolean;
40
+ }
41
+
42
+ export interface StationInfo {
43
+ Current?: boolean;
44
+ ID?: number;
45
+ Name?: string;
46
+ }
@@ -0,0 +1,94 @@
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, KioskConfig, KioskScreen, AiOptions, ApiEndpoint, ApiEndpointParam, ApiOptions, Button, CustomAction, DataRecord, EntityFrontEvent, EntityOptions, EntityVO, Fields, MagicString, MagicStringPart, DataRecordProcess, DataRecordResource, DataRecordTrans, PostqueryAppendData, PostqueryUserData, PostqueryAssetsData, PostqueryDepartmentData, PostqueryLinktoData, StorageUrlSets, ErrorResponse, OpenAPITenantInfo } from './common'
15
+
16
+ export interface CheckPrintDuplicateReqVO {
17
+ /** kiosk flow id */
18
+ key?: string;
19
+ /** 超时时间(小时) */
20
+ timeout?: number;
21
+ /** PDF URL */
22
+ url?: string;
23
+ }
24
+
25
+ export interface CheckPrintDuplicateRespVO {
26
+ /** 是否重复 */
27
+ is_duplicate?: boolean;
28
+ }
29
+
30
+ export interface KioskFlow {
31
+ icon_name?: string;
32
+ last_updated?: number;
33
+ name?: string;
34
+ title_color?: string;
35
+ }
36
+
37
+ export interface KioskUICreateItemReqVO {
38
+ fields?: Record<string, any>;
39
+ }
40
+
41
+ export interface KioskUICreateItemRespVO {
42
+ id?: number;
43
+ record?: DataRecord;
44
+ }
45
+
46
+ export interface KioskUIKioskGetRespVO {
47
+ config?: KioskConfig;
48
+ entity?: EntityVO;
49
+ kiosk_flow?: KioskFlow;
50
+ tenant_info?: OpenAPITenantInfo;
51
+ }
52
+
53
+ export interface KioskUISearchAndLockRespVO {
54
+ additional?: PostqueryAppendData;
55
+ record?: DataRecord;
56
+ }
57
+
58
+ export interface KioskUIUpdateItemReqVO {
59
+ changed?: number[];
60
+ fields?: Record<string, any>;
61
+ record_id?: number;
62
+ tags?: string[];
63
+ }
64
+
65
+ export interface KioskUIUpdateItemRespVO {
66
+ created_at?: number;
67
+ creator?: number;
68
+ data_version?: number;
69
+ fields?: Record<string, any>;
70
+ id?: number;
71
+ lock_subject?: string;
72
+ lock_user_id?: number;
73
+ locked?: boolean;
74
+ parent_id?: number;
75
+ process?: DataRecordProcess;
76
+ process_state?: WorkflowStateType;
77
+ resources?: DataRecordResource[];
78
+ subform_id?: number;
79
+ tags?: string[];
80
+ title?: string;
81
+ updated_at?: number;
82
+ }
83
+
84
+ export interface RecordPrintReqVO {
85
+ /** kiosk flow id */
86
+ key?: string;
87
+ /** PDF URL */
88
+ url?: string;
89
+ }
90
+
91
+ export interface RecordPrintRespVO {
92
+ /** 记录成功 */
93
+ success?: boolean;
94
+ }
@@ -0,0 +1,52 @@
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 { DeveloperClientType, DeveloperClientStatus, GormDeletedAt, ErrorResponse, OpenAPITenantInfo } from './common'
15
+
16
+ export interface DeveloperDevClient {
17
+ CreatedAt?: string;
18
+ DeletedAt?: GormDeletedAt;
19
+ /** not in db */
20
+ HashID?: string;
21
+ UpdatedAt?: string;
22
+ /** 新增:逗号分隔的 origin 白名单 */
23
+ allowed_origins?: string;
24
+ /** 新增:空格分隔的 scope 列表 */
25
+ allowed_scopes?: string;
26
+ /** 客户端类型 */
27
+ client_type?: DeveloperClientType;
28
+ description?: string;
29
+ last_active_at?: string;
30
+ name?: string;
31
+ /** 是否跳过用户确认 */
32
+ skip_user_confirmation?: boolean;
33
+ status?: DeveloperClientStatus;
34
+ /** 租户级客户端所属租户 */
35
+ tenant_id?: number;
36
+ user_token_required?: boolean;
37
+ }
38
+
39
+ export interface OAuthClientInfoRespVO {
40
+ client?: DeveloperDevClient;
41
+ tenant?: OpenAPITenantInfo;
42
+ }
43
+
44
+ export interface OAuthGetAuthorizeCodeReqVO {
45
+ client_id?: string;
46
+ redirect_uri?: string;
47
+ state?: string;
48
+ }
49
+
50
+ export interface OAuthGetAuthorizeCodeRespVO {
51
+ redirect_url?: string;
52
+ }
@@ -0,0 +1,33 @@
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 { ErrorResponse } from './common'
14
+
15
+ export interface OAuthTokenReqVO {
16
+ client_id?: string;
17
+ client_secret?: string;
18
+ code?: string;
19
+ grant_type?: string;
20
+ redirect_uri?: string;
21
+ /** For refresh_token grant type */
22
+ refresh_token?: string;
23
+ user_access_token?: string;
24
+ }
25
+
26
+ export interface OAuthTokenRespVO {
27
+ access_token?: string;
28
+ expires_in?: number;
29
+ /** Only for authorization_code and user token modes */
30
+ refresh_token?: string;
31
+ scope?: string;
32
+ token_type?: string;
33
+ }
@@ -0,0 +1,24 @@
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
+ export interface EntityPrototype {
14
+ mappings?: Record<string, string>;
15
+ type?: string;
16
+ }
17
+
18
+ export interface OpenAPIGetEntityRespVO {
19
+ fields?: string[];
20
+ id?: number;
21
+ name?: string;
22
+ prototypes?: EntityPrototype[];
23
+ updated_at?: number;
24
+ }
@@ -0,0 +1,26 @@
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 { ErrorResponse } from './common'
14
+
15
+ export interface PlatformSetupInitSystemReqVO {
16
+ admin_email?: string;
17
+ admin_locale?: string;
18
+ admin_password?: string;
19
+ admin_password_confirmation?: string;
20
+ site_name?: string;
21
+ system_setup_password?: string;
22
+ }
23
+
24
+ export interface PlatformSetupStatusRespVO {
25
+ status?: boolean;
26
+ }