@carthooks/arcubase-cli 0.1.3 → 0.1.5

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 (64) hide show
  1. package/bundle/arcubase-admin.mjs +546 -243
  2. package/bundle/arcubase.mjs +546 -243
  3. package/dist/bin/arcubase-admin.js +0 -0
  4. package/dist/bin/arcubase.js +0 -0
  5. package/dist/generated/command_registry.generated.d.ts +36 -112
  6. package/dist/generated/command_registry.generated.d.ts.map +1 -1
  7. package/dist/generated/command_registry.generated.js +40 -163
  8. package/dist/generated/type_index.generated.d.ts +0 -12
  9. package/dist/generated/type_index.generated.d.ts.map +1 -1
  10. package/dist/generated/type_index.generated.js +0 -12
  11. package/dist/generated/zod_registry.generated.d.ts +1 -19
  12. package/dist/generated/zod_registry.generated.d.ts.map +1 -1
  13. package/dist/generated/zod_registry.generated.js +0 -21
  14. package/dist/runtime/command_registry.d.ts +19 -1
  15. package/dist/runtime/command_registry.d.ts.map +1 -1
  16. package/dist/runtime/command_registry.js +19 -1
  17. package/dist/runtime/errors.d.ts +1 -0
  18. package/dist/runtime/errors.d.ts.map +1 -1
  19. package/dist/runtime/execute.d.ts.map +1 -1
  20. package/dist/runtime/execute.js +321 -8
  21. package/dist/runtime/upload.d.ts +13 -0
  22. package/dist/runtime/upload.d.ts.map +1 -0
  23. package/dist/runtime/upload.js +148 -0
  24. package/dist/runtime/zod_registry.d.ts.map +1 -1
  25. package/dist/runtime/zod_registry.js +50 -30
  26. package/dist/tests/command_registry.test.js +11 -4
  27. package/dist/tests/execute_validation.test.js +221 -13
  28. package/dist/tests/help.test.js +29 -6
  29. package/dist/tests/upload.test.d.ts +2 -0
  30. package/dist/tests/upload.test.d.ts.map +1 -0
  31. package/dist/tests/upload.test.js +107 -0
  32. package/package.json +1 -1
  33. package/sdk-dist/api/admin/app.ts +8 -1
  34. package/sdk-dist/docs/runtime-reference/README.md +33 -15
  35. package/sdk-dist/docs/runtime-reference/app-discovery.md +68 -0
  36. package/sdk-dist/docs/runtime-reference/entity-schema/README.md +2 -2
  37. package/sdk-dist/docs/runtime-reference/entity-schema/file.md +9 -0
  38. package/sdk-dist/docs/runtime-reference/entity-schema/image.md +9 -0
  39. package/sdk-dist/docs/runtime-reference/entity-schema/subform.md +2 -2
  40. package/sdk-dist/docs/runtime-reference/entity-schema.md +2 -2
  41. package/sdk-dist/docs/runtime-reference/examples/README.md +1 -1
  42. package/sdk-dist/docs/runtime-reference/examples/oms-01/README.md +23 -4
  43. package/sdk-dist/docs/runtime-reference/examples/oms-01/app-overview.md +1 -1
  44. package/sdk-dist/docs/runtime-reference/row-crud.md +8 -6
  45. package/sdk-dist/docs/runtime-reference/search-and-bulk-actions.md +5 -5
  46. package/sdk-dist/docs/runtime-reference/table-lifecycle.md +34 -6
  47. package/sdk-dist/docs/runtime-reference/uploads.md +106 -0
  48. package/sdk-dist/generated/command_registry.generated.ts +40 -163
  49. package/sdk-dist/generated/type_index.generated.ts +0 -12
  50. package/sdk-dist/generated/zod_registry.generated.ts +0 -36
  51. package/sdk-dist/types/app.ts +7 -0
  52. package/src/generated/command_registry.generated.ts +40 -163
  53. package/src/generated/type_index.generated.ts +0 -12
  54. package/src/generated/zod_registry.generated.ts +0 -36
  55. package/src/runtime/command_registry.ts +38 -2
  56. package/src/runtime/errors.ts +1 -0
  57. package/src/runtime/execute.ts +368 -8
  58. package/src/runtime/upload.ts +196 -0
  59. package/src/runtime/zod_registry.ts +50 -30
  60. package/src/tests/command_registry.test.ts +13 -4
  61. package/src/tests/execute_validation.test.ts +257 -13
  62. package/src/tests/help.test.ts +35 -6
  63. package/src/tests/upload.test.ts +133 -0
  64. package/sdk-dist/docs/runtime-reference/workflow/README.md +0 -19
@@ -0,0 +1,106 @@
1
+ # Uploads
2
+
3
+ Use this page when a row contains a `file` or `image` field.
4
+
5
+ The successful path is:
6
+
7
+ 1. run `arcubase upload <local-file>`
8
+ 2. use the returned JSON array directly as the field value
9
+ 3. insert or update the row with `arcubase rows insert-entity` or `arcubase rows update-entity-row`
10
+
11
+ Do not construct `upload_id`, `assets_id`, or OSS form fields by hand.
12
+
13
+ ## Upload one local file
14
+
15
+ Command:
16
+
17
+ ```bash
18
+ arcubase upload ./contract.pdf
19
+ ```
20
+
21
+ Optional flags:
22
+
23
+ - `--filename <name>`
24
+ - `--global`
25
+
26
+ Example:
27
+
28
+ ```bash
29
+ arcubase upload ./lead-photo.jpg --filename lead-photo.jpg
30
+ ```
31
+
32
+ ## Upload result shape
33
+
34
+ The command returns a JSON array.
35
+
36
+ Example:
37
+
38
+ ```json
39
+ {
40
+ "data": [
41
+ {
42
+ "upload_id": 123456,
43
+ "file": "contract.pdf",
44
+ "file_name": "contract.pdf",
45
+ "meta": {}
46
+ }
47
+ ]
48
+ }
49
+ ```
50
+
51
+ Use the `data` array directly as the field value for a `file` or `image` field.
52
+
53
+ ## Insert a row with a file field
54
+
55
+ ```json
56
+ {
57
+ "fields": {
58
+ "1001": "Lead A",
59
+ "1007": [
60
+ {
61
+ "upload_id": 123456,
62
+ "file": "contract.pdf",
63
+ "file_name": "contract.pdf",
64
+ "meta": {}
65
+ }
66
+ ]
67
+ }
68
+ }
69
+ ```
70
+
71
+ ## Update a row with an image field
72
+
73
+ ```json
74
+ {
75
+ "data": {
76
+ "1008": [
77
+ {
78
+ "upload_id": 123457,
79
+ "file": "lead-photo.jpg",
80
+ "file_name": "lead-photo.jpg",
81
+ "meta": {}
82
+ }
83
+ ]
84
+ },
85
+ "changed_fields": [1008]
86
+ }
87
+ ```
88
+
89
+ ## Preview an uploaded file
90
+
91
+ Command:
92
+
93
+ ```bash
94
+ arcubase common upload-preview --body-file preview.json
95
+ ```
96
+
97
+ Example `preview.json`:
98
+
99
+ ```json
100
+ {
101
+ "upload_id": 123456,
102
+ "fname": "contract.pdf"
103
+ }
104
+ ```
105
+
106
+ This returns a preview URL for the upload token entry. It does not insert or update a row.
@@ -103,6 +103,22 @@ export const adminCommands = [
103
103
  "scalarParams": [],
104
104
  "responseType": "AppCreateByTenantsRespVO"
105
105
  },
106
+ {
107
+ "scope": "admin",
108
+ "module": "app",
109
+ "functionName": "listApps",
110
+ "commandPath": [
111
+ "app",
112
+ "list-apps"
113
+ ],
114
+ "method": "GET",
115
+ "endpoint": "/apps",
116
+ "endpointParams": [],
117
+ "controller": "App.ListApps",
118
+ "requestType": null,
119
+ "scalarParams": [],
120
+ "responseType": "AppListRespVO"
121
+ },
106
122
  {
107
123
  "scope": "admin",
108
124
  "module": "app",
@@ -3108,88 +3124,6 @@ export const adminCommands = [
3108
3124
  }
3109
3125
  ],
3110
3126
  "responseType": "TenantUsageDailyRespVO"
3111
- },
3112
- {
3113
- "scope": "admin",
3114
- "module": "workflow",
3115
- "functionName": "deployEntityWorkflow",
3116
- "commandPath": [
3117
- "workflow",
3118
- "deploy-entity-workflow"
3119
- ],
3120
- "method": "POST",
3121
- "endpoint": "/apps/:app_id/entity/:entity_id/workflow/deploy",
3122
- "endpointParams": [
3123
- "app_id",
3124
- "entity_id"
3125
- ],
3126
- "controller": "Entity.WorkflowDeploy",
3127
- "requestType": "EntityWorkflowDeployReqVO",
3128
- "scalarParams": [],
3129
- "responseType": "EntityWorkflowDeployRespVO"
3130
- },
3131
- {
3132
- "scope": "admin",
3133
- "module": "workflow",
3134
- "functionName": "getEntityWorkflow",
3135
- "commandPath": [
3136
- "workflow",
3137
- "get-entity-workflow"
3138
- ],
3139
- "method": "GET",
3140
- "endpoint": "/apps/:app_id/entity/:entity_id/workflow",
3141
- "endpointParams": [
3142
- "app_id",
3143
- "entity_id"
3144
- ],
3145
- "controller": "Entity.WorkflowGet",
3146
- "requestType": null,
3147
- "scalarParams": [
3148
- {
3149
- "name": "workingId",
3150
- "type": "string",
3151
- "hasDefault": true
3152
- }
3153
- ],
3154
- "responseType": "EntityWorkflowGetRespVO"
3155
- },
3156
- {
3157
- "scope": "admin",
3158
- "module": "workflow",
3159
- "functionName": "createEntityWorkflowVersion",
3160
- "commandPath": [
3161
- "workflow",
3162
- "create-entity-workflow-version"
3163
- ],
3164
- "method": "POST",
3165
- "endpoint": "/apps/:app_id/entity/:entity_id/workflow/new",
3166
- "endpointParams": [
3167
- "app_id",
3168
- "entity_id"
3169
- ],
3170
- "controller": "Entity.WorkflowNewVersion",
3171
- "requestType": null,
3172
- "scalarParams": [],
3173
- "responseType": "EntityWorkflowNewVersionRespVO"
3174
- },
3175
- {
3176
- "scope": "admin",
3177
- "module": "workflow",
3178
- "functionName": "updateEntityWorkflow",
3179
- "commandPath": [
3180
- "workflow",
3181
- "update-entity-workflow"
3182
- ],
3183
- "method": "POST",
3184
- "endpoint": "/apps/:app_id/entity/:entity_id/workflow",
3185
- "endpointParams": [
3186
- "app_id",
3187
- "entity_id"
3188
- ],
3189
- "controller": "Entity.WorkflowUpdate",
3190
- "requestType": "EntityWorkflowUpdateReqVO",
3191
- "scalarParams": [],
3192
- "responseType": "EntityWorkflowUpdateRespVO"
3193
3127
  }
3194
3128
  ] as const
3195
3129
 
@@ -4307,10 +4241,10 @@ export const userCommands = [
4307
4241
  },
4308
4242
  {
4309
4243
  "scope": "user",
4310
- "module": "workflow",
4244
+ "module": "rows",
4311
4245
  "functionName": "putEntityQueryKeeper",
4312
4246
  "commandPath": [
4313
- "workflow",
4247
+ "rows",
4314
4248
  "put-entity-query-keeper"
4315
4249
  ],
4316
4250
  "method": "POST",
@@ -4326,10 +4260,10 @@ export const userCommands = [
4326
4260
  },
4327
4261
  {
4328
4262
  "scope": "user",
4329
- "module": "workflow",
4263
+ "module": "rows",
4330
4264
  "functionName": "queryEntity",
4331
4265
  "commandPath": [
4332
- "workflow",
4266
+ "rows",
4333
4267
  "query-entity"
4334
4268
  ],
4335
4269
  "method": "POST",
@@ -4345,10 +4279,10 @@ export const userCommands = [
4345
4279
  },
4346
4280
  {
4347
4281
  "scope": "user",
4348
- "module": "workflow",
4282
+ "module": "rows",
4349
4283
  "functionName": "filterEntityQuery",
4350
4284
  "commandPath": [
4351
- "workflow",
4285
+ "rows",
4352
4286
  "filter-entity-query"
4353
4287
  ],
4354
4288
  "method": "POST",
@@ -4364,10 +4298,10 @@ export const userCommands = [
4364
4298
  },
4365
4299
  {
4366
4300
  "scope": "user",
4367
- "module": "workflow",
4301
+ "module": "rows",
4368
4302
  "functionName": "queryEntitySelection",
4369
4303
  "commandPath": [
4370
- "workflow",
4304
+ "rows",
4371
4305
  "query-entity-selection"
4372
4306
  ],
4373
4307
  "method": "POST",
@@ -4384,29 +4318,10 @@ export const userCommands = [
4384
4318
  },
4385
4319
  {
4386
4320
  "scope": "user",
4387
- "module": "workflow",
4388
- "functionName": "resolveEntityWorkflow",
4389
- "commandPath": [
4390
- "workflow",
4391
- "resolve-entity-workflow"
4392
- ],
4393
- "method": "POST",
4394
- "endpoint": "/entity/:app_id/:entity_id/resolve-workflow",
4395
- "endpointParams": [
4396
- "app_id",
4397
- "entity_id"
4398
- ],
4399
- "controller": "UserAction.EntityResolveWorkflow",
4400
- "requestType": "EntityResolveWorkflowReqVO",
4401
- "scalarParams": [],
4402
- "responseType": "EntityResolveWorkflowRespVO"
4403
- },
4404
- {
4405
- "scope": "user",
4406
- "module": "workflow",
4321
+ "module": "rows",
4407
4322
  "functionName": "getEntityRow",
4408
4323
  "commandPath": [
4409
- "workflow",
4324
+ "rows",
4410
4325
  "get-entity-row"
4411
4326
  ],
4412
4327
  "method": "GET",
@@ -4429,10 +4344,10 @@ export const userCommands = [
4429
4344
  },
4430
4345
  {
4431
4346
  "scope": "user",
4432
- "module": "workflow",
4347
+ "module": "rows",
4433
4348
  "functionName": "deleteEntityRow",
4434
4349
  "commandPath": [
4435
- "workflow",
4350
+ "rows",
4436
4351
  "delete-entity-row"
4437
4352
  ],
4438
4353
  "method": "POST",
@@ -4448,10 +4363,10 @@ export const userCommands = [
4448
4363
  },
4449
4364
  {
4450
4365
  "scope": "user",
4451
- "module": "workflow",
4366
+ "module": "rows",
4452
4367
  "functionName": "restoreEntityRow",
4453
4368
  "commandPath": [
4454
- "workflow",
4369
+ "rows",
4455
4370
  "restore-entity-row"
4456
4371
  ],
4457
4372
  "method": "POST",
@@ -4467,10 +4382,10 @@ export const userCommands = [
4467
4382
  },
4468
4383
  {
4469
4384
  "scope": "user",
4470
- "module": "workflow",
4385
+ "module": "rows",
4471
4386
  "functionName": "updateEntityRow",
4472
4387
  "commandPath": [
4473
- "workflow",
4388
+ "rows",
4474
4389
  "update-entity-row"
4475
4390
  ],
4476
4391
  "method": "PUT",
@@ -4487,10 +4402,10 @@ export const userCommands = [
4487
4402
  },
4488
4403
  {
4489
4404
  "scope": "user",
4490
- "module": "workflow",
4405
+ "module": "rows",
4491
4406
  "functionName": "validateEntityUniq",
4492
4407
  "commandPath": [
4493
- "workflow",
4408
+ "rows",
4494
4409
  "validate-entity-uniq"
4495
4410
  ],
4496
4411
  "method": "POST",
@@ -4506,10 +4421,10 @@ export const userCommands = [
4506
4421
  },
4507
4422
  {
4508
4423
  "scope": "user",
4509
- "module": "workflow",
4424
+ "module": "rows",
4510
4425
  "functionName": "insertEntity",
4511
4426
  "commandPath": [
4512
- "workflow",
4427
+ "rows",
4513
4428
  "insert-entity"
4514
4429
  ],
4515
4430
  "method": "POST",
@@ -4525,10 +4440,10 @@ export const userCommands = [
4525
4440
  },
4526
4441
  {
4527
4442
  "scope": "user",
4528
- "module": "workflow",
4443
+ "module": "rows",
4529
4444
  "functionName": "prepareEntityInsert",
4530
4445
  "commandPath": [
4531
- "workflow",
4446
+ "rows",
4532
4447
  "prepare-entity-insert"
4533
4448
  ],
4534
4449
  "method": "POST",
@@ -4544,48 +4459,10 @@ export const userCommands = [
4544
4459
  },
4545
4460
  {
4546
4461
  "scope": "user",
4547
- "module": "workflow",
4548
- "functionName": "queryEntityWorkflowApproveUsers",
4549
- "commandPath": [
4550
- "workflow",
4551
- "query-entity-workflow-approve-users"
4552
- ],
4553
- "method": "POST",
4554
- "endpoint": "/entity/:app_id/:entity_id/query-approve-users",
4555
- "endpointParams": [
4556
- "app_id",
4557
- "entity_id"
4558
- ],
4559
- "controller": "UserAction.EntityWorkflowApproveUsers",
4560
- "requestType": null,
4561
- "scalarParams": [],
4562
- "responseType": "EntityWorkflowApproveUsersRespVO"
4563
- },
4564
- {
4565
- "scope": "user",
4566
- "module": "workflow",
4567
- "functionName": "queryEntityWorkflowNodes",
4568
- "commandPath": [
4569
- "workflow",
4570
- "query-entity-workflow-nodes"
4571
- ],
4572
- "method": "POST",
4573
- "endpoint": "/entity/:app_id/:entity_id/query-workflow-nodes",
4574
- "endpointParams": [
4575
- "app_id",
4576
- "entity_id"
4577
- ],
4578
- "controller": "UserAction.EntityWorkflowNodes",
4579
- "requestType": null,
4580
- "scalarParams": [],
4581
- "responseType": "EntityWorkflowNodesRespVO"
4582
- },
4583
- {
4584
- "scope": "user",
4585
- "module": "workflow",
4462
+ "module": "rows",
4586
4463
  "functionName": "getEntitySubformItems",
4587
4464
  "commandPath": [
4588
- "workflow",
4465
+ "rows",
4589
4466
  "get-entity-subform-items"
4590
4467
  ],
4591
4468
  "method": "POST",
@@ -282,10 +282,6 @@ export const typeIndex = {
282
282
  "file": "/opt/arcubase-sdk/types/user-action.ts",
283
283
  "dependencies": []
284
284
  },
285
- "EntityResolveWorkflowReqVO": {
286
- "file": "/opt/arcubase-sdk/types/user-action.ts",
287
- "dependencies": []
288
- },
289
285
  "EntitySaveCustomKeysReqVO": {
290
286
  "file": "/opt/arcubase-sdk/types/entity.ts",
291
287
  "dependencies": [
@@ -344,14 +340,6 @@ export const typeIndex = {
344
340
  "file": "/opt/arcubase-sdk/types/common.ts",
345
341
  "dependencies": []
346
342
  },
347
- "EntityWorkflowDeployReqVO": {
348
- "file": "/opt/arcubase-sdk/types/workflow.ts",
349
- "dependencies": []
350
- },
351
- "EntityWorkflowUpdateReqVO": {
352
- "file": "/opt/arcubase-sdk/types/workflow.ts",
353
- "dependencies": []
354
- },
355
343
  "FetchWidgetsDataReqVO": {
356
344
  "file": "/opt/arcubase-sdk/types/user-action.ts",
357
345
  "dependencies": []
@@ -268,8 +268,6 @@ export const EntityQueryOrderVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "c
268
268
 
269
269
  export const EntityQueryReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "limit": z.number().optional(), "offset": z.number().optional(), "policy_id": z.string().optional(), "search": z.record(z.string(), z.any()).optional(), "sorts": z.array(EntityQueryOrderVOSchema).optional(), "view_mode": z.string().optional(), "withSubForm": z.boolean().optional() }).strict())
270
270
 
271
- export const EntityResolveWorkflowReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "approve_users": z.array(z.number()).optional(), "closeCurrentTasks": z.boolean().optional(), "node_id": z.number().optional(), "policy_id": z.string().optional(), "record_id": z.number().optional(), "version_id": z.number().optional() }).strict())
272
-
273
271
  export const EntitySaveCustomKeysFieldVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "id": z.number().optional(), "key": z.string().optional() }).strict())
274
272
 
275
273
  export const EntitySaveCustomKeysReqVOSchema: z.ZodTypeAny = z.lazy(() => z.array(EntitySaveCustomKeysFieldVOSchema))
@@ -314,34 +312,6 @@ export const EntityValidateUniqFieldVOSchema: z.ZodTypeAny = z.lazy(() => z.obje
314
312
 
315
313
  export const EntityValidateUniqReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "fields": z.array(EntityValidateUniqFieldVOSchema).optional(), "record_id": z.number().optional() }).strict())
316
314
 
317
- export const ActionBulkUpdateActionSchema: 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())
318
-
319
- export const ActionBulkUpdateSchema: z.ZodTypeAny = z.lazy(() => z.object({ "action": ActionBulkUpdateActionSchema.optional(), "id": z.number().optional() }).strict())
320
-
321
- export const WorkflowActionConfigSchema: z.ZodTypeAny = z.lazy(() => z.object({ "enabled": z.boolean().optional(), "options": z.object({ "comment_required": z.boolean().optional(), "desc": z.string().optional(), "modifiers": z.array(ActionBulkUpdateSchema).optional() }).strict().optional() }).strict())
322
-
323
- export const WorkflowVoteTypeSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal(0), z.literal(1)]))
324
-
325
- export const NotificationWebhookConfigSchema: z.ZodTypeAny = z.lazy(() => z.object({ "mode": NotificationPayloadModeSchema.optional(), "template": z.string().optional(), "url": z.string().optional(), "version": z.string().optional() }).strict())
326
-
327
- export const WorkflowConfigNodeSchema: z.ZodTypeAny = z.lazy(() => z.object({ "data": z.object({ "actions": z.record(z.string(), WorkflowActionConfigSchema).optional(), "approver_actions": z.array(z.number()).optional(), "approvers": z.array(PermitUserScopeSchema).optional(), "auto_forward": z.boolean().optional(), "cc": z.array(PermitUserScopeSchema).optional(), "fields": z.array(z.number()).optional(), "notify_email": z.boolean().optional(), "notify_email_tmpl": z.object({ "body": z.string().optional(), "subject": z.string().optional() }).strict().optional(), "submit_condition": z.array(z.number()).optional(), "use_cc": z.boolean().optional(), "vote_type": WorkflowVoteTypeSchema.optional(), "webhooks": z.array(NotificationWebhookConfigSchema).optional() }).strict().optional(), "events": z.array(z.number()).optional(), "id": z.string().optional(), "label": z.string().optional(), "mode": z.string().optional(), "position": z.array(z.number()).optional(), "type": z.string().optional() }).strict())
328
-
329
- export const WorkflowConfigDiagramSchema: z.ZodTypeAny = z.lazy(() => z.object({ "edges": z.array(z.number()).optional(), "id_seq": z.number().optional(), "nodes": z.array(WorkflowConfigNodeSchema).optional(), "viewport": z.array(z.number()).optional() }).strict())
330
-
331
- export const WorkflowAutoApproveRuleSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3)]))
332
-
333
- export const WorkflowRetractRuleSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3)]))
334
-
335
- export const WorkflowSLATriggerSchema: z.ZodTypeAny = z.lazy(() => z.object({ "hasUpdateField": z.boolean().optional(), "hasWebhook": z.boolean().optional(), "modifiers": z.array(ActionBulkUpdateSchema).optional(), "time_point": z.number().optional(), "webhook": NotificationWebhookConfigSchema.optional() }).strict())
336
-
337
- export const WorkflowSLAConfigSchema: z.ZodTypeAny = z.lazy(() => z.object({ "ddl": z.number().optional(), "enabled": z.boolean().optional(), "id": z.string().optional(), "name": z.string().optional(), "nodes": z.array(z.string()).optional(), "triggers": z.array(WorkflowSLATriggerSchema).optional() }).strict())
338
-
339
- export const WorkflowOptionsSchema: z.ZodTypeAny = z.lazy(() => z.object({ "allow_urge": z.boolean().optional(), "allow_view_diagram": z.boolean().optional(), "auto_approve_rule": WorkflowAutoApproveRuleSchema.optional(), "retract_rule": WorkflowRetractRuleSchema.optional(), "sla": z.array(WorkflowSLAConfigSchema).optional() }).strict())
340
-
341
- export const EntityWorkflowDeployReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "diagram": WorkflowConfigDiagramSchema.optional(), "id": z.number().optional(), "options": WorkflowOptionsSchema.optional() }).strict())
342
-
343
- export const EntityWorkflowUpdateReqVOSchema: z.ZodTypeAny = z.lazy(() => z.object({ "diagram": WorkflowConfigDiagramSchema.optional(), "id": z.number().optional(), "options": WorkflowOptionsSchema.optional() }).strict())
344
-
345
315
  export const EntityUtilsQueryOrderSchema: z.ZodTypeAny = z.lazy(() => z.object({ "column": z.string().optional(), "order": z.string().optional() }).strict())
346
316
 
347
317
  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())
@@ -518,7 +488,6 @@ export const generatedRequestTypes = [
518
488
  "EntityQueryLinkToValuesReqVO",
519
489
  "EntityQueryRelationReqVO",
520
490
  "EntityQueryReqVO",
521
- "EntityResolveWorkflowReqVO",
522
491
  "EntitySaveCustomKeysReqVO",
523
492
  "EntitySaveNameReqVO",
524
493
  "EntitySaveReqVO",
@@ -531,8 +500,6 @@ export const generatedRequestTypes = [
531
500
  "EntityUpdateReqVO",
532
501
  "EntityUpdateSuccessScreenReqVO",
533
502
  "EntityValidateUniqReqVO",
534
- "EntityWorkflowDeployReqVO",
535
- "EntityWorkflowUpdateReqVO",
536
503
  "FetchWidgetsDataReqVO",
537
504
  "GetOrganizationTreeReqVO",
538
505
  "GetOrganizationUsersReqVO",
@@ -648,7 +615,6 @@ export const bodySchemas = {
648
615
  "EntityQueryLinkToValuesReqVO": EntityQueryLinkToValuesReqVOSchema,
649
616
  "EntityQueryRelationReqVO": EntityQueryRelationReqVOSchema,
650
617
  "EntityQueryReqVO": EntityQueryReqVOSchema,
651
- "EntityResolveWorkflowReqVO": EntityResolveWorkflowReqVOSchema,
652
618
  "EntitySaveCustomKeysReqVO": EntitySaveCustomKeysReqVOSchema,
653
619
  "EntitySaveNameReqVO": EntitySaveNameReqVOSchema,
654
620
  "EntitySaveReqVO": EntitySaveReqVOSchema,
@@ -661,8 +627,6 @@ export const bodySchemas = {
661
627
  "EntityUpdateReqVO": EntityUpdateReqVOSchema,
662
628
  "EntityUpdateSuccessScreenReqVO": EntityUpdateSuccessScreenReqVOSchema,
663
629
  "EntityValidateUniqReqVO": EntityValidateUniqReqVOSchema,
664
- "EntityWorkflowDeployReqVO": EntityWorkflowDeployReqVOSchema,
665
- "EntityWorkflowUpdateReqVO": EntityWorkflowUpdateReqVOSchema,
666
630
  "FetchWidgetsDataReqVO": FetchWidgetsDataReqVOSchema,
667
631
  "GetOrganizationTreeReqVO": GetOrganizationTreeReqVOSchema,
668
632
  "GetOrganizationUsersReqVO": GetOrganizationUsersReqVOSchema,
@@ -86,6 +86,11 @@ export interface AppGetEntitiesEntityVO {
86
86
  total_number?: number;
87
87
  }
88
88
 
89
+ export interface AppListItemVO {
90
+ id?: number;
91
+ name?: string;
92
+ }
93
+
89
94
  export interface AppGetEntitySharesRespVO {
90
95
  shares?: AppEntityShareItemVO[];
91
96
  }
@@ -177,6 +182,8 @@ export interface IngressGroupReqVO {
177
182
 
178
183
  export type AppGetEntitiesRespVO = AppGetEntitiesEntityVO[];
179
184
 
185
+ export type AppListRespVO = AppListItemVO[];
186
+
180
187
  export type AppUpdateI18nReqVO = AppUpdateI18NReqVO;
181
188
 
182
189
  export type AppUpdateI18nRespVO = AppUpdateI18NRespVO;