@carthooks/arcubase-cli 0.1.4 → 0.1.6

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 (49) hide show
  1. package/bundle/arcubase-admin.mjs +188 -210
  2. package/bundle/arcubase.mjs +188 -210
  3. package/dist/generated/command_registry.generated.d.ts +36 -112
  4. package/dist/generated/command_registry.generated.d.ts.map +1 -1
  5. package/dist/generated/command_registry.generated.js +40 -163
  6. package/dist/generated/type_index.generated.d.ts +0 -12
  7. package/dist/generated/type_index.generated.d.ts.map +1 -1
  8. package/dist/generated/type_index.generated.js +0 -12
  9. package/dist/generated/zod_registry.generated.d.ts +1 -19
  10. package/dist/generated/zod_registry.generated.d.ts.map +1 -1
  11. package/dist/generated/zod_registry.generated.js +0 -21
  12. package/dist/runtime/command_registry.d.ts +19 -1
  13. package/dist/runtime/command_registry.d.ts.map +1 -1
  14. package/dist/runtime/command_registry.js +19 -1
  15. package/dist/runtime/execute.d.ts.map +1 -1
  16. package/dist/runtime/execute.js +119 -9
  17. package/dist/runtime/zod_registry.d.ts.map +1 -1
  18. package/dist/runtime/zod_registry.js +24 -7
  19. package/dist/tests/command_registry.test.js +11 -4
  20. package/dist/tests/execute_validation.test.js +72 -17
  21. package/dist/tests/help.test.js +16 -9
  22. package/package.json +1 -1
  23. package/sdk-dist/api/admin/app.ts +8 -1
  24. package/sdk-dist/docs/runtime-reference/README.md +24 -16
  25. package/sdk-dist/docs/runtime-reference/app-discovery.md +84 -0
  26. package/sdk-dist/docs/runtime-reference/entity-schema/README.md +2 -2
  27. package/sdk-dist/docs/runtime-reference/entity-schema/subform.md +2 -2
  28. package/sdk-dist/docs/runtime-reference/entity-schema.md +2 -2
  29. package/sdk-dist/docs/runtime-reference/examples/README.md +1 -1
  30. package/sdk-dist/docs/runtime-reference/examples/oms-01/README.md +4 -4
  31. package/sdk-dist/docs/runtime-reference/examples/oms-01/app-overview.md +1 -1
  32. package/sdk-dist/docs/runtime-reference/row-crud.md +6 -6
  33. package/sdk-dist/docs/runtime-reference/search-and-bulk-actions.md +5 -5
  34. package/sdk-dist/docs/runtime-reference/table-lifecycle.md +24 -8
  35. package/sdk-dist/docs/runtime-reference/uploads.md +1 -1
  36. package/sdk-dist/generated/command_registry.generated.ts +40 -163
  37. package/sdk-dist/generated/type_index.generated.ts +0 -12
  38. package/sdk-dist/generated/zod_registry.generated.ts +0 -36
  39. package/sdk-dist/types/app.ts +7 -0
  40. package/src/generated/command_registry.generated.ts +40 -163
  41. package/src/generated/type_index.generated.ts +0 -12
  42. package/src/generated/zod_registry.generated.ts +0 -36
  43. package/src/runtime/command_registry.ts +38 -2
  44. package/src/runtime/execute.ts +127 -9
  45. package/src/runtime/zod_registry.ts +25 -7
  46. package/src/tests/command_registry.test.ts +13 -4
  47. package/src/tests/execute_validation.test.ts +78 -17
  48. package/src/tests/help.test.ts +17 -9
  49. package/sdk-dist/docs/runtime-reference/workflow/README.md +0 -19
@@ -14,7 +14,7 @@ Use this page for:
14
14
  Use:
15
15
 
16
16
  ```bash
17
- arcubase workflow query-entity \
17
+ arcubase rows query-entity \
18
18
  --app-id <app_id> \
19
19
  --entity-id <entity_id> \
20
20
  --body-file query.json
@@ -83,7 +83,7 @@ Archived view requires both:
83
83
  Command:
84
84
 
85
85
  ```bash
86
- arcubase workflow query-entity \
86
+ arcubase rows query-entity \
87
87
  --app-id <app_id> \
88
88
  --entity-id <entity_id> \
89
89
  --query-file archived-query.json \
@@ -195,7 +195,7 @@ Rules:
195
195
  Command:
196
196
 
197
197
  ```bash
198
- arcubase workflow query-entity-selection \
198
+ arcubase rows query-entity-selection \
199
199
  --app-id <app_id> \
200
200
  --entity-id <entity_id> \
201
201
  --action query \
@@ -235,7 +235,7 @@ Rules:
235
235
  Command:
236
236
 
237
237
  ```bash
238
- arcubase workflow query-entity-selection \
238
+ arcubase rows query-entity-selection \
239
239
  --app-id <app_id> \
240
240
  --entity-id <entity_id> \
241
241
  --action archive \
@@ -253,7 +253,7 @@ Rules:
253
253
  Command:
254
254
 
255
255
  ```bash
256
- arcubase workflow query-entity-selection \
256
+ arcubase rows query-entity-selection \
257
257
  --app-id <app_id> \
258
258
  --entity-id <entity_id> \
259
259
  --action batch_print \
@@ -2,6 +2,7 @@
2
2
 
3
3
  Use this page when the goal is:
4
4
 
5
+ - find the target app
5
6
  - create an app
6
7
  - create a table
7
8
  - save the schema
@@ -9,11 +10,12 @@ Use this page when the goal is:
9
10
 
10
11
  The successful path is command-first:
11
12
 
12
- 1. create the app
13
- 2. create the entity shell
14
- 3. fetch the current shell
15
- 4. save the full schema
16
- 5. probe rows with `query-entity`
13
+ 1. identify the target app
14
+ 2. create the app
15
+ 3. create the entity shell
16
+ 4. fetch the current shell
17
+ 5. save the full schema
18
+ 6. probe rows with `query-entity`
17
19
 
18
20
  Do not stop at shell creation.
19
21
 
@@ -24,6 +26,20 @@ CLI phase split:
24
26
  - the switch happens immediately after `admin-save-entity`
25
27
  - do not use `arcubase-admin` for row insert or row query
26
28
 
29
+ ## Step 0: identify the target app
30
+
31
+ Command:
32
+
33
+ ```bash
34
+ arcubase-admin app inventory
35
+ ```
36
+
37
+ Rules:
38
+
39
+ - always resolve the app first when the user refers to an existing app by name
40
+ - do not ask for `app_id` unless there is no match or more than one match
41
+ - do not ask for `entity_id` when creating a new table
42
+
27
43
  ## Step 1: create the app
28
44
 
29
45
  Command:
@@ -106,15 +122,15 @@ Read before writing `save-entity.json`:
106
122
 
107
123
  After `admin-save-entity`, switch binaries:
108
124
 
109
- - use `arcubase workflow insert-entity` for row insertion
110
- - use `arcubase workflow query-entity` for readiness and row reads
125
+ - use `arcubase rows insert-entity` for row insertion
126
+ - use `arcubase rows query-entity` for readiness and row reads
111
127
 
112
128
  ## Step 5: probe readiness
113
129
 
114
130
  Command:
115
131
 
116
132
  ```bash
117
- arcubase workflow query-entity \
133
+ arcubase rows query-entity \
118
134
  --app-id <app_id> \
119
135
  --entity-id <entity_id> \
120
136
  --body-file query.json
@@ -6,7 +6,7 @@ The successful path is:
6
6
 
7
7
  1. run `arcubase upload <local-file>`
8
8
  2. use the returned JSON array directly as the field value
9
- 3. insert or update the row with `arcubase workflow insert-entity` or `arcubase workflow update-entity-row`
9
+ 3. insert or update the row with `arcubase rows insert-entity` or `arcubase rows update-entity-row`
10
10
 
11
11
  Do not construct `upload_id`, `assets_id`, or OSS form fields by hand.
12
12
 
@@ -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,
@@ -102,6 +102,11 @@ export interface AppGetSiteMapsRespVO {
102
102
  ingresses?: IngressGroup[];
103
103
  }
104
104
 
105
+ export interface AppListItemVO {
106
+ id?: number;
107
+ name?: string;
108
+ }
109
+
105
110
  export interface AppRenameReqVO {
106
111
  name?: string;
107
112
  }
@@ -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;