@carthooks/arcubase-cli 0.1.21 → 0.1.22

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 (56) hide show
  1. package/bundle/arcubase-admin.mjs +1297 -79
  2. package/bundle/arcubase.mjs +1297 -79
  3. package/dist/generated/command_registry.generated.d.ts +285 -0
  4. package/dist/generated/command_registry.generated.d.ts.map +1 -1
  5. package/dist/generated/command_registry.generated.js +395 -0
  6. package/dist/generated/help_examples.generated.d.ts +77 -0
  7. package/dist/generated/help_examples.generated.d.ts.map +1 -1
  8. package/dist/generated/help_examples.generated.js +122 -0
  9. package/dist/generated/type_index.generated.d.ts +40 -1
  10. package/dist/generated/type_index.generated.d.ts.map +1 -1
  11. package/dist/generated/type_index.generated.js +42 -1
  12. package/dist/generated/zod_registry.generated.d.ts +29 -1
  13. package/dist/generated/zod_registry.generated.d.ts.map +1 -1
  14. package/dist/generated/zod_registry.generated.js +37 -0
  15. package/dist/runtime/dev_sdk_gen.d.ts +9 -0
  16. package/dist/runtime/dev_sdk_gen.d.ts.map +1 -0
  17. package/dist/runtime/dev_sdk_gen.js +319 -0
  18. package/dist/runtime/execute.d.ts.map +1 -1
  19. package/dist/runtime/execute.js +280 -1
  20. package/dist/runtime/zod_registry.d.ts.map +1 -1
  21. package/dist/runtime/zod_registry.js +58 -0
  22. package/package.json +1 -1
  23. package/sdk-dist/api/admin/index.ts +1 -0
  24. package/sdk-dist/api/admin/public-link.ts +48 -0
  25. package/sdk-dist/api/shared-link/form.ts +42 -1
  26. package/sdk-dist/api/user/index.ts +0 -1
  27. package/sdk-dist/docs/runtime-reference/dashboard.md +15 -0
  28. package/sdk-dist/docs/runtime-reference/dev-sdk-gen.md +41 -0
  29. package/sdk-dist/docs/runtime-reference/help-examples/admin/dashboard/update-layout.json +16 -0
  30. package/sdk-dist/docs/runtime-reference/help-examples/admin/widget/create.json +33 -0
  31. package/sdk-dist/docs/runtime-reference/help-examples/admin/widget/preview-data.json +42 -0
  32. package/sdk-dist/docs/runtime-reference/widgets.md +40 -0
  33. package/sdk-dist/generated/command_registry.generated.ts +395 -0
  34. package/sdk-dist/generated/help_examples.generated.ts +122 -0
  35. package/sdk-dist/generated/type_index.generated.ts +42 -1
  36. package/sdk-dist/generated/zod_registry.generated.ts +56 -0
  37. package/sdk-dist/types/app.ts +37 -1
  38. package/sdk-dist/types/common.ts +77 -35
  39. package/sdk-dist/types/index.ts +1 -1
  40. package/sdk-dist/types/public-link.ts +10 -0
  41. package/sdk-dist/types/shared-link.ts +16 -1
  42. package/sdk-dist/types/user-action.ts +1 -43
  43. package/src/generated/command_registry.generated.ts +395 -0
  44. package/src/generated/help_examples.generated.ts +122 -0
  45. package/src/generated/type_index.generated.ts +42 -1
  46. package/src/generated/zod_registry.generated.ts +56 -0
  47. package/src/runtime/dev_sdk_gen.ts +360 -0
  48. package/src/runtime/execute.ts +325 -1
  49. package/src/runtime/zod_registry.ts +58 -0
  50. package/src/tests/command_registry.test.ts +20 -2
  51. package/src/tests/dev_sdk_gen.test.ts +226 -0
  52. package/src/tests/docs_readability.test.ts +15 -0
  53. package/src/tests/execute_validation.test.ts +129 -0
  54. package/src/tests/help.test.ts +70 -0
  55. package/sdk-dist/api/user/copilot.ts +0 -20
  56. package/sdk-dist/types/copilot.ts +0 -34
@@ -21,10 +21,47 @@ export const typeIndex = {
21
21
  "file": "types/ingress.ts",
22
22
  "dependencies": []
23
23
  },
24
+ "AppNewWidgetsReqVO": {
25
+ "file": "types/widgets.ts",
26
+ "dependencies": []
27
+ },
28
+ "AppPreviewWidgetsDataReqVO": {
29
+ "file": "types/widgets.ts",
30
+ "dependencies": []
31
+ },
24
32
  "AppUpdateAppReqVO": {
25
33
  "file": "types/app.ts",
26
34
  "dependencies": []
27
35
  },
36
+ "AppUpdateWidgetsIngressOptionsReqVO": {
37
+ "file": "types/widgets.ts",
38
+ "dependencies": []
39
+ },
40
+ "AppUpdateWidgetsReqVO": {
41
+ "file": "types/widgets.ts",
42
+ "dependencies": []
43
+ },
44
+ "DashboardCreateReqVO": {
45
+ "file": "types/dashboard.ts",
46
+ "dependencies": []
47
+ },
48
+ "DashboardUpdateLayoutReqVO": {
49
+ "file": "types/dashboard.ts",
50
+ "dependencies": [
51
+ {
52
+ "symbol": "LayoutPosition",
53
+ "file": "types/dashboard.ts"
54
+ }
55
+ ]
56
+ },
57
+ "DashboardUpdateOptionsReqVO": {
58
+ "file": "types/dashboard.ts",
59
+ "dependencies": []
60
+ },
61
+ "DashboardUpdateTitleReqVO": {
62
+ "file": "types/dashboard.ts",
63
+ "dependencies": []
64
+ },
28
65
  "EntityBulkUpdateReqVO": {
29
66
  "file": "types/user-action.ts",
30
67
  "dependencies": []
@@ -34,7 +71,7 @@ export const typeIndex = {
34
71
  "dependencies": []
35
72
  },
36
73
  "EntityQueryRelationReqVO": {
37
- "file": "types/user-action.ts",
74
+ "file": "types/common.ts",
38
75
  "dependencies": []
39
76
  },
40
77
  "EntityQueryReqVO": {
@@ -73,6 +110,10 @@ export const typeIndex = {
73
110
  "file": "types/workflow.ts",
74
111
  "dependencies": []
75
112
  },
113
+ "FetchWidgetsDataReqVO": {
114
+ "file": "types/user-action.ts",
115
+ "dependencies": []
116
+ },
76
117
  "GetUploadTokenReqVO": {
77
118
  "file": "types/user-action.ts",
78
119
  "dependencies": []
@@ -42,12 +42,46 @@ export const AppIngressCreateReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({
42
42
 
43
43
  export const AppIngressUpdateReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "enabled": z.boolean().optional(), "name": z.string().optional(), "options": EntityIngressOptionsSchema.optional(), "update": z.array(z.string()).optional() }).strict())
44
44
 
45
+ export const WidgetsTypeCodeSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal(1), z.literal(2)]))
46
+
47
+ export const WidgetsTypeSchema: z.ZodTypeAny = z.lazy(() => z.object({ "dashboard_id": z.number().optional(), "ingress_id": z.number().optional(), "type": WidgetsTypeCodeSchema.optional() }).strict())
48
+
49
+ export const AppNewWidgetsReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "options": WidgetsTypeSchema.optional(), "type": z.string().optional() }).strict())
50
+
51
+ export const CubeDimensionSchema: z.ZodTypeAny = z.lazy(() => z.object({ "FieldID": z.number().optional(), "IsField": z.boolean().optional(), "Label": z.string().optional(), "Name": z.string().optional(), "Options": z.record(z.string(), z.any()).optional(), "OrderBy": z.string().optional(), "PropName": z.string().optional() }).strict())
52
+
53
+ export const CubeMeasureAggregateSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal("sum"), z.literal("avg"), z.literal("max"), z.literal("min"), z.literal("count"), z.literal("distinct_count")]))
54
+
55
+ export const CubeMeasureSchema: z.ZodTypeAny = z.lazy(() => z.object({ "Aggregate": CubeMeasureAggregateSchema.optional(), "FieldID": z.number().optional(), "Label": z.string().optional(), "Name": z.string().optional(), "Options": z.record(z.string(), z.any()).optional(), "OrderBy": z.string().optional() }).strict())
56
+
57
+ export const AppPreviewWidgetsDataReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "conditions": PermitConditionSetSchema.optional(), "dataSource": z.number().optional(), "dataSourceType": z.string().optional(), "dimensions": z.array(CubeDimensionSchema).optional(), "measures": z.array(CubeMeasureSchema).optional() }).strict())
58
+
45
59
  export const GormDeletedAtSchema: z.ZodTypeAny = z.lazy(() => z.object({ "Time": z.string().optional(), "Valid": z.boolean().optional() }).strict())
46
60
 
47
61
  export const AppOptionsSchema: z.ZodTypeAny = z.lazy(() => z.object({ "use_home_dashboard": z.boolean().optional() }).strict())
48
62
 
49
63
  export const AppUpdateAppReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "CreatedAt": z.string().optional(), "DeletedAt": GormDeletedAtSchema.optional(), "ID": z.number().optional(), "Options": AppOptionsSchema.optional(), "UpdatedAt": z.string().optional(), "changed": z.array(z.string()).optional(), "has_workflow": z.boolean().optional(), "icon_color": z.string().optional(), "icon_name": z.string().optional(), "name": z.string().optional(), "tenant_id": z.number().optional(), "use_home_dashboard": z.boolean().optional() }).strict())
50
64
 
65
+ export const WidgetsListViewOptionsSchema: z.ZodTypeAny = z.lazy(() => z.object({ "cond_follow": z.boolean().optional(), "cond_follow_cols": z.array(z.string()).optional(), "cond_follow_tab": z.boolean().optional(), "link": z.record(z.string(), z.any()).optional() }).strict())
66
+
67
+ export const AppUpdateWidgetsIngressOptionsReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "options": WidgetsListViewOptionsSchema.optional() }).strict())
68
+
69
+ export const ChartOptionSchema: z.ZodTypeAny = z.lazy(() => z.object({ "conditions": PermitConditionSetSchema.optional(), "dimensions": z.array(CubeDimensionSchema).optional(), "entity_id": z.number().optional(), "measures": z.array(CubeMeasureSchema).optional(), "options": z.record(z.string(), z.any()).optional(), "type": z.string().optional() }).strict())
70
+
71
+ export const WidgetsOptionSchema: z.ZodTypeAny = z.lazy(() => z.object({ "charts": ChartOptionSchema.optional(), "ingress": WidgetsListViewOptionsSchema.optional(), "render": z.record(z.string(), z.any()).optional() }).strict())
72
+
73
+ export const AppUpdateWidgetsReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "entity_id": z.number().optional(), "options": WidgetsOptionSchema.optional() }).strict())
74
+
75
+ export const DashboardCreateReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "name": z.string().optional() }).strict())
76
+
77
+ export const LayoutPositionSchema: z.ZodTypeAny = z.lazy(() => z.object({ "h": z.number().optional(), "id": z.number().optional(), "w": z.number().optional(), "x": z.number().optional(), "y": z.number().optional() }).strict())
78
+
79
+ export const DashboardUpdateLayoutReqVOSchema: z.ZodTypeAny = z.lazy(() => z.array(LayoutPositionSchema))
80
+
81
+ export const DashboardUpdateOptionsReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "changed": z.array(z.string()).optional(), "i18n_name": z.record(z.string(), z.string()).optional(), "theme": z.object({ "gutter": z.number().optional(), "has_shadow": z.boolean().optional(), "round_corners": z.number().optional() }).strict().optional(), "users": z.array(PermitUserScopeSchema).optional() }).strict())
82
+
83
+ export const DashboardUpdateTitleReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "name": z.string().optional() }).strict())
84
+
51
85
  export const EntityBulkUpdateActionVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "number_add": z.number().optional(), "number_mul": z.number().optional(), "number_sub": z.number().optional(), "text_append": z.string().optional(), "text_prepend": z.string().optional(), "text_replace": z.string().optional(), "text_search": z.string().optional(), "type": z.string().optional(), "value": z.any().optional() }).strict())
52
86
 
53
87
  export const EntityBulkUpdateFieldVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "action": EntityBulkUpdateActionVOSchema.optional(), "id": z.number().optional() }).strict())
@@ -144,6 +178,10 @@ export const EntityWorkflowDeployReqVOSchema: z.ZodTypeAny = z.lazy(() => z.obje
144
178
 
145
179
  export const EntityWorkflowUpdateReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "diagram": WorkflowConfigDiagramSchema.optional(), "id": z.number().optional(), "options": WorkflowOptionsSchema.optional() }).strict())
146
180
 
181
+ export const EntityUtilsQueryOrderSchema: z.ZodTypeAny = z.lazy(() => z.object({ "column": z.string().optional(), "order": z.string().optional() }).strict())
182
+
183
+ export const FetchWidgetsDataReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "dashboard_id": z.number().optional(), "ingress_hash_id": z.string().optional(), "ingress_id": z.number().optional(), "querys": z.object({ "search": z.record(z.string(), z.any()).optional(), "sorts": z.array(EntityUtilsQueryOrderSchema).optional() }).strict().optional(), "type": WidgetsTypeCodeSchema.optional() }).strict())
184
+
147
185
  export const GetUploadTokenReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "global": z.boolean().optional() }).strict())
148
186
 
149
187
  export const InsertReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "fields": z.record(z.string(), z.any()).optional(), "policy_id": z.string().optional() }).strict())
@@ -172,7 +210,15 @@ export const generatedRequestTypes = [
172
210
  "AppIngressBulkApplyReqVO",
173
211
  "AppIngressCreateReqVO",
174
212
  "AppIngressUpdateReqVO",
213
+ "AppNewWidgetsReqVO",
214
+ "AppPreviewWidgetsDataReqVO",
175
215
  "AppUpdateAppReqVO",
216
+ "AppUpdateWidgetsIngressOptionsReqVO",
217
+ "AppUpdateWidgetsReqVO",
218
+ "DashboardCreateReqVO",
219
+ "DashboardUpdateLayoutReqVO",
220
+ "DashboardUpdateOptionsReqVO",
221
+ "DashboardUpdateTitleReqVO",
176
222
  "EntityBulkUpdateReqVO",
177
223
  "EntityDoActionReqVO",
178
224
  "EntityQueryRelationReqVO",
@@ -185,6 +231,7 @@ export const generatedRequestTypes = [
185
231
  "EntityWorkflowApproveUsersReqVO",
186
232
  "EntityWorkflowDeployReqVO",
187
233
  "EntityWorkflowUpdateReqVO",
234
+ "FetchWidgetsDataReqVO",
188
235
  "GetUploadTokenReqVO",
189
236
  "InsertReqVO",
190
237
  "MobileUploadCheckReqVO",
@@ -199,7 +246,15 @@ export const bodySchemas = {
199
246
  "AppIngressBulkApplyReqVO": AppIngressBulkApplyReqVOSchema,
200
247
  "AppIngressCreateReqVO": AppIngressCreateReqVOSchema,
201
248
  "AppIngressUpdateReqVO": AppIngressUpdateReqVOSchema,
249
+ "AppNewWidgetsReqVO": AppNewWidgetsReqVOSchema,
250
+ "AppPreviewWidgetsDataReqVO": AppPreviewWidgetsDataReqVOSchema,
202
251
  "AppUpdateAppReqVO": AppUpdateAppReqVOSchema,
252
+ "AppUpdateWidgetsIngressOptionsReqVO": AppUpdateWidgetsIngressOptionsReqVOSchema,
253
+ "AppUpdateWidgetsReqVO": AppUpdateWidgetsReqVOSchema,
254
+ "DashboardCreateReqVO": DashboardCreateReqVOSchema,
255
+ "DashboardUpdateLayoutReqVO": DashboardUpdateLayoutReqVOSchema,
256
+ "DashboardUpdateOptionsReqVO": DashboardUpdateOptionsReqVOSchema,
257
+ "DashboardUpdateTitleReqVO": DashboardUpdateTitleReqVOSchema,
203
258
  "EntityBulkUpdateReqVO": EntityBulkUpdateReqVOSchema,
204
259
  "EntityDoActionReqVO": EntityDoActionReqVOSchema,
205
260
  "EntityQueryRelationReqVO": EntityQueryRelationReqVOSchema,
@@ -212,6 +267,7 @@ export const bodySchemas = {
212
267
  "EntityWorkflowApproveUsersReqVO": EntityWorkflowApproveUsersReqVOSchema,
213
268
  "EntityWorkflowDeployReqVO": EntityWorkflowDeployReqVOSchema,
214
269
  "EntityWorkflowUpdateReqVO": EntityWorkflowUpdateReqVOSchema,
270
+ "FetchWidgetsDataReqVO": FetchWidgetsDataReqVOSchema,
215
271
  "GetUploadTokenReqVO": GetUploadTokenReqVOSchema,
216
272
  "InsertReqVO": InsertReqVOSchema,
217
273
  "MobileUploadCheckReqVO": MobileUploadCheckReqVOSchema,
@@ -10,7 +10,23 @@
10
10
  * ---------------------------------------------------------------
11
11
  */
12
12
 
13
- import type { GormDeletedAt, AppOptions, IngressGroup, IngressItem, I18NText, AppGetEntitiesEntityVO, ErrorResponse } from './common'
13
+ /** @format int32 */
14
+ import type { PermitValueFrom, PermitEntityProp, GormDeletedAt, AppOptions, IngressGroup, IngressItem, I18NText, PermitConditionSet, PermitFieldPermit, PermitPermit, PermitRecordCondition, AppGetEntitiesEntityVO, ErrorResponse } from './common'
15
+
16
+ export interface EntityPublicLinkOptions {
17
+ fieldPermits?: PermitPermit;
18
+ page_description?: string;
19
+ page_title?: string;
20
+ query_condition?: PermitConditionSet;
21
+ query_limit?: number;
22
+ query_sorts?: EntityPublicQuerySort[];
23
+ search_fields?: number[];
24
+ }
25
+
26
+ export interface EntityPublicQuerySort {
27
+ column?: string;
28
+ order?: string;
29
+ }
14
30
 
15
31
  export interface AppCreateByTenantsReqVO {
16
32
  icon_color?: string;
@@ -173,6 +189,26 @@ export interface IngressGroupReqVO {
173
189
  name?: string;
174
190
  }
175
191
 
192
+ export interface PublicLinkConfigItemVO {
193
+ enabled?: boolean;
194
+ options?: EntityPublicLinkOptions;
195
+ sharing_id?: string;
196
+ type?: string;
197
+ url?: string;
198
+ }
199
+
200
+ export interface PublicLinkConfigReqVO {
201
+ enabled?: boolean;
202
+ options?: EntityPublicLinkOptions;
203
+ }
204
+
205
+ export type PublicLinkConfigRespVO = Record<string, PublicLinkConfigItemVO>;
206
+
207
+ export interface PublicRecordLinkRespVO {
208
+ sharing_id?: string;
209
+ url?: string;
210
+ }
211
+
176
212
  export type AppListRespVO = AppListItemVO[];
177
213
 
178
214
  export type AppGetEntitiesRespVO = AppGetEntitiesEntityVO[];
@@ -14,6 +14,19 @@
14
14
  * This file is auto-generated to avoid duplicate type definitions
15
15
  */
16
16
 
17
+ export enum PermitValueFrom {
18
+ ValueFromStatic = 1,
19
+ ValueFromRelation = 2,
20
+ /** 新增:计算表达式 */
21
+ ValueFromFormula = 3,
22
+ }
23
+
24
+ export enum PermitEntityProp {
25
+ PropCreateTime = "created",
26
+ PropUpdateTime = "updated",
27
+ PropCreateBy = "creator",
28
+ }
29
+
17
30
  export interface GormDeletedAt {
18
31
  Time?: string;
19
32
  /** Valid is true if Time is not NULL */
@@ -44,6 +57,34 @@ export interface IngressItem {
44
57
 
45
58
  export type I18NText = Record<string, string>;
46
59
 
60
+ export interface PermitConditionSet {
61
+ conditions?: PermitRecordCondition[];
62
+ /** and, or */
63
+ mode?: string;
64
+ }
65
+
66
+ export interface PermitFieldPermit {
67
+ key?: string;
68
+ read?: boolean;
69
+ report?: boolean;
70
+ write?: boolean;
71
+ }
72
+
73
+ export interface PermitPermit {
74
+ all_fields_read?: boolean;
75
+ all_fields_write?: boolean;
76
+ fields?: PermitFieldPermit[];
77
+ }
78
+
79
+ export interface PermitRecordCondition {
80
+ column?: PermitEntityProp;
81
+ operator?: string;
82
+ subset?: PermitConditionSet;
83
+ value?: any;
84
+ value_from?: PermitValueFrom;
85
+ value_relation?: PermitEntityProp;
86
+ }
87
+
47
88
  export interface AppGetEntitiesEntityVO {
48
89
  id?: number;
49
90
  name?: string;
@@ -116,19 +157,6 @@ export interface AuthSessionVO {
116
157
  token_type?: string;
117
158
  }
118
159
 
119
- export enum PermitValueFrom {
120
- ValueFromStatic = 1,
121
- ValueFromRelation = 2,
122
- /** 新增:计算表达式 */
123
- ValueFromFormula = 3,
124
- }
125
-
126
- export enum PermitEntityProp {
127
- PropCreateTime = "created",
128
- PropUpdateTime = "updated",
129
- PropCreateBy = "creator",
130
- }
131
-
132
160
  export enum PermitEntityEvent {
133
161
  EntityCreated = 1,
134
162
  EntityUpdated = 2,
@@ -139,21 +167,6 @@ export enum PermitEntityEvent {
139
167
  EntityFlowAction = 12,
140
168
  }
141
169
 
142
- export interface PermitConditionSet {
143
- conditions?: PermitRecordCondition[];
144
- /** and, or */
145
- mode?: string;
146
- }
147
-
148
- export interface PermitRecordCondition {
149
- column?: PermitEntityProp;
150
- operator?: string;
151
- subset?: PermitConditionSet;
152
- value?: any;
153
- value_from?: PermitValueFrom;
154
- value_relation?: PermitEntityProp;
155
- }
156
-
157
170
  export interface CommonPagination {
158
171
  page?: number;
159
172
  size?: number;
@@ -478,13 +491,6 @@ export interface PermitEntityListWidget {
478
491
  width?: number;
479
492
  }
480
493
 
481
- export interface PermitFieldPermit {
482
- key?: string;
483
- read?: boolean;
484
- report?: boolean;
485
- write?: boolean;
486
- }
487
-
488
494
  export interface PermitPolicy {
489
495
  actions?: string[];
490
496
  all_fields_read?: boolean;
@@ -580,6 +586,42 @@ export interface OpenAPITenantInfo {
580
586
  SiteLogoUrl?: string;
581
587
  }
582
588
 
589
+ export interface EntityQueryLinkToValuesReqVO {
590
+ addition?: boolean;
591
+ data?: Record<string, any>;
592
+ entity?: boolean;
593
+ field_id?: number;
594
+ input?: string;
595
+ limit?: number;
596
+ offset?: number;
597
+ policies?: boolean;
598
+ query?: string;
599
+ record_id?: number;
600
+ total?: boolean;
601
+ }
602
+
603
+ export interface EntityQueryRelationReqVO {
604
+ addition?: boolean;
605
+ data?: Record<string, any>;
606
+ entity?: boolean;
607
+ field_id?: number;
608
+ input?: string;
609
+ limit?: number;
610
+ offset?: number;
611
+ policies?: boolean;
612
+ query?: string;
613
+ total?: boolean;
614
+ }
615
+
616
+ export interface EntityQueryRelationRespVO {
617
+ add_policy?: PermitPolicy;
618
+ addition?: PostqueryAppendData;
619
+ entity?: EntityVO;
620
+ records?: DataRecord[];
621
+ total?: number;
622
+ view_policy?: PermitPolicy;
623
+ }
624
+
583
625
  export interface EntityValidateUniqFieldVO {
584
626
  field_id?: number;
585
627
  value?: string;
@@ -9,7 +9,6 @@ export * from './dashboard'
9
9
  export * from './oauth'
10
10
  export * from './oauth-authorize'
11
11
  export * from './platform-setup'
12
- export * from './copilot'
13
12
  export * from './extension'
14
13
  export * from './automate-rule'
15
14
  export * from './business-hooks'
@@ -24,3 +23,4 @@ export * from './widgets'
24
23
  export * from './ingress'
25
24
  export * from './workflow'
26
25
  export * from './openapi'
26
+ export * from './public-link'
@@ -0,0 +1,10 @@
1
+ export type {
2
+ EntityPublicLinkOptions,
3
+ EntityPublicQuerySort,
4
+ PublicLinkConfigItemVO,
5
+ PublicLinkConfigReqVO,
6
+ PublicLinkConfigRespVO,
7
+ PublicRecordLinkRespVO
8
+ } from './app'
9
+
10
+ export type EntityPublicLinkType = 'form_create' | 'form_public_query' | 'record_read'
@@ -10,7 +10,8 @@
10
10
  * ---------------------------------------------------------------
11
11
  */
12
12
 
13
- import type { EntityValidateUniqFieldVO, EntityValidateUniqReqVO, EntityValidateUniqRespVO, UploadPreviewReqVO } from './common'
13
+ /** @format int32 */
14
+ import type { WorkflowStateType, PermitValueFrom, PermitEntityProp, PermitEntityEvent, NotificationPayloadMode, NotificationNotificationType, PronounsType, MagicStringPartType, AiOptions, ApiEndpoint, ApiEndpointParam, ApiOptions, Button, CustomAction, DataRecord, EntityFrontEvent, EntityOptions, EntityVO, Fields, MagicString, MagicStringPart, DataRecordProcess, DataRecordResource, DataRecordTrans, PermitConditionSet, PermitFieldPermit, PermitPolicy, PermitRecordCondition, PostqueryAppendData, PostqueryUserData, PostqueryAssetsData, PostqueryDepartmentData, PostqueryLinktoData, StorageUrlSets, EntityQueryLinkToValuesReqVO, EntityQueryRelationReqVO, EntityQueryRelationRespVO, EntityValidateUniqFieldVO, EntityValidateUniqReqVO, EntityValidateUniqRespVO, ErrorResponse, UploadPreviewReqVO } from './common'
14
15
 
15
16
  export interface SharedLinkGetUploadTokenRespVO {
16
17
  id?: number;
@@ -23,6 +24,20 @@ export interface SharedLinkInitRespVO {
23
24
  type?: string;
24
25
  }
25
26
 
27
+ export interface SharedLinkPublicQueryReqVO {
28
+ limit?: number;
29
+ offset?: number;
30
+ search?: string[];
31
+ }
32
+
33
+ export interface SharedLinkPublicQueryRespVO {
34
+ additional?: any;
35
+ items?: DataRecord[];
36
+ limit?: number;
37
+ offset?: number;
38
+ total?: number;
39
+ }
40
+
26
41
  export interface SharedLinkPushMobileUploadReqVO {
27
42
  file?: string;
28
43
  file_name?: string;
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  /** @format int32 */
14
- import type { WorkflowStateType, PermitValueFrom, PermitEntityProp, PermitEntityEvent, NotificationPayloadMode, NotificationNotificationType, WidgetsTypeCode, PronounsType, MagicStringPartType, CubeMeasureAggregate, GormDeletedAt, AiOptions, ApiEndpoint, ApiEndpointParam, ApiOptions, App, AppOptions, Assets, Button, ChartOption, CubeDimension, CubeMeasure, CustomAction, DashboardOptions, DashboardWidgets, DataRecord, EntityFrontEvent, EntityOptions, EntityPrintTemplate, EntityVO, Fields, IngressGroup, IngressItem, MagicString, MagicStringPart, Tenant, TenantDepartment, User, WidgetsListViewOptions, WidgetsOption, DataRecordProcess, DataRecordResource, DataRecordTrans, I18NText, PermitColumn, PermitConditionSet, PermitEntityListOptions, PermitEntityListTab, PermitEntityListWidget, PermitFieldPermit, PermitPolicy, PermitRecordCondition, PermitSearchColumn, PermitUserScope, PostqueryAppendData, PostqueryUserData, PostqueryAssetsData, PostqueryDepartmentData, PostqueryLinktoData, SqlNullTime, StorageUrlSets, CommonPagination, EntityValidateUniqFieldVO, EntityValidateUniqReqVO, EntityValidateUniqRespVO, EntityWorkflowNodeVO, EntityWorkflowVersionVO, ErrorResponse, UploadPreviewReqVO } from './common'
14
+ import type { WorkflowStateType, PermitValueFrom, PermitEntityProp, PermitEntityEvent, NotificationPayloadMode, NotificationNotificationType, WidgetsTypeCode, PronounsType, MagicStringPartType, CubeMeasureAggregate, GormDeletedAt, AiOptions, ApiEndpoint, ApiEndpointParam, ApiOptions, App, AppOptions, Assets, Button, ChartOption, CubeDimension, CubeMeasure, CustomAction, DashboardOptions, DashboardWidgets, DataRecord, EntityFrontEvent, EntityOptions, EntityPrintTemplate, EntityVO, Fields, IngressGroup, IngressItem, MagicString, MagicStringPart, Tenant, TenantDepartment, User, WidgetsListViewOptions, WidgetsOption, DataRecordProcess, DataRecordResource, DataRecordTrans, I18NText, PermitColumn, PermitConditionSet, PermitEntityListOptions, PermitEntityListTab, PermitEntityListWidget, PermitFieldPermit, PermitPermit, PermitPolicy, PermitRecordCondition, PermitSearchColumn, PermitUserScope, PostqueryAppendData, PostqueryUserData, PostqueryAssetsData, PostqueryDepartmentData, PostqueryLinktoData, SqlNullTime, StorageUrlSets, CommonPagination, EntityQueryLinkToValuesReqVO, EntityQueryRelationReqVO, EntityQueryRelationRespVO, EntityValidateUniqFieldVO, EntityValidateUniqReqVO, EntityValidateUniqRespVO, EntityWorkflowNodeVO, EntityWorkflowVersionVO, ErrorResponse, UploadPreviewReqVO } from './common'
15
15
 
16
16
  export enum EventTrigger {
17
17
  EventTriggerAutomate = 1,
@@ -149,12 +149,6 @@ export interface PermitFilterCond {
149
149
  number_in?: number[];
150
150
  }
151
151
 
152
- export interface PermitPermit {
153
- all_fields_read?: boolean;
154
- all_fields_write?: boolean;
155
- fields?: PermitFieldPermit[];
156
- }
157
-
158
152
  export interface AppDetailDashboardVO {
159
153
  id?: number;
160
154
  name?: string;
@@ -470,47 +464,11 @@ export interface EntityQueryFilterRespVO {
470
464
  items?: any;
471
465
  }
472
466
 
473
- export interface EntityQueryLinkToValuesReqVO {
474
- addition?: boolean;
475
- data?: Record<string, any>;
476
- entity?: boolean;
477
- field_id?: number;
478
- input?: string;
479
- limit?: number;
480
- offset?: number;
481
- policies?: boolean;
482
- query?: string;
483
- record_id?: number;
484
- total?: boolean;
485
- }
486
-
487
467
  export interface EntityQueryOrderVO {
488
468
  column?: string;
489
469
  order?: string;
490
470
  }
491
471
 
492
- export interface EntityQueryRelationReqVO {
493
- addition?: boolean;
494
- data?: Record<string, any>;
495
- entity?: boolean;
496
- field_id?: number;
497
- input?: string;
498
- limit?: number;
499
- offset?: number;
500
- policies?: boolean;
501
- query?: string;
502
- total?: boolean;
503
- }
504
-
505
- export interface EntityQueryRelationRespVO {
506
- add_policy?: PermitPolicy;
507
- addition?: PostqueryAppendData;
508
- entity?: EntityVO;
509
- records?: DataRecord[];
510
- total?: number;
511
- view_policy?: PermitPolicy;
512
- }
513
-
514
472
  export interface EntityQueryReqVO {
515
473
  limit?: number;
516
474
  offset?: number;