@carthooks/arcubase-cli 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/arcubase-admin.mjs +1041 -5061
- package/bundle/arcubase.mjs +1041 -5061
- package/dist/generated/command_registry.generated.d.ts +693 -2812
- package/dist/generated/command_registry.generated.d.ts.map +1 -1
- package/dist/generated/command_registry.generated.js +812 -4100
- package/dist/generated/type_index.generated.d.ts +8 -397
- package/dist/generated/type_index.generated.d.ts.map +1 -1
- package/dist/generated/type_index.generated.js +8 -403
- package/dist/generated/zod_registry.generated.d.ts +33 -261
- package/dist/generated/zod_registry.generated.d.ts.map +1 -1
- package/dist/generated/zod_registry.generated.js +36 -365
- package/dist/runtime/body_loader.d.ts.map +1 -1
- package/dist/runtime/body_loader.js +12 -0
- package/dist/runtime/command_registry.d.ts +3 -21
- package/dist/runtime/command_registry.d.ts.map +1 -1
- package/dist/runtime/command_registry.js +17 -23
- package/dist/runtime/env.d.ts +0 -2
- package/dist/runtime/env.d.ts.map +1 -1
- package/dist/runtime/env.js +0 -2
- package/dist/runtime/execute.d.ts +3 -3
- package/dist/runtime/execute.d.ts.map +1 -1
- package/dist/runtime/execute.js +53 -157
- package/dist/runtime/http.d.ts +1 -1
- package/dist/runtime/http.d.ts.map +1 -1
- package/dist/runtime/http.js +1 -5
- package/dist/runtime/upload.js +3 -3
- package/dist/runtime/zod_registry.d.ts.map +1 -1
- package/dist/runtime/zod_registry.js +7 -24
- package/dist/tests/bootstrap.test.js +1 -12
- package/dist/tests/command_registry.test.js +81 -28
- package/dist/tests/execute_validation.test.js +175 -510
- package/dist/tests/help.test.js +39 -63
- package/dist/tests/upload.test.js +4 -5
- package/dist/tests/zod_registry.test.js +0 -10
- package/package.json +1 -1
- package/sdk-dist/docs/runtime-reference/README.md +20 -36
- package/sdk-dist/docs/runtime-reference/entity-schema/README.md +4 -5
- package/sdk-dist/docs/runtime-reference/entity-schema/linkto.md +3 -3
- package/sdk-dist/docs/runtime-reference/entity-schema/query.md +3 -3
- package/sdk-dist/docs/runtime-reference/entity-schema/relation.md +3 -3
- package/sdk-dist/docs/runtime-reference/entity-schema/relationfield.md +3 -3
- package/sdk-dist/docs/runtime-reference/entity-schema/subform.md +2 -2
- package/sdk-dist/docs/runtime-reference/entity-schema.md +4 -4
- package/sdk-dist/docs/runtime-reference/examples/README.md +2 -2
- package/sdk-dist/docs/runtime-reference/examples/oms-01/README.md +12 -12
- package/sdk-dist/docs/runtime-reference/examples/oms-01/app-overview.md +1 -1
- package/sdk-dist/docs/runtime-reference/row-crud.md +11 -32
- package/sdk-dist/docs/runtime-reference/search-and-bulk-actions.md +16 -47
- package/sdk-dist/docs/runtime-reference/table-lifecycle.md +11 -27
- package/sdk-dist/docs/runtime-reference/uploads.md +1 -1
- package/sdk-dist/docs/runtime-reference/workflow/README.md +19 -0
- package/sdk-dist/generated/command_registry.generated.ts +814 -4102
- package/sdk-dist/generated/type_index.generated.ts +8 -403
- package/sdk-dist/generated/zod_registry.generated.ts +44 -500
- package/sdk-dist/types/app.ts +3 -10
- package/sdk-dist/types/common.ts +7 -0
- package/sdk-dist/types/global-action.ts +2 -1
- package/src/generated/command_registry.generated.ts +814 -4102
- package/src/generated/type_index.generated.ts +8 -403
- package/src/generated/zod_registry.generated.ts +44 -500
- package/src/runtime/body_loader.ts +11 -0
- package/src/runtime/command_registry.ts +22 -44
- package/src/runtime/env.ts +0 -4
- package/src/runtime/execute.ts +58 -168
- package/src/runtime/http.ts +2 -6
- package/src/runtime/upload.ts +3 -3
- package/src/runtime/zod_registry.ts +7 -25
- package/src/tests/bootstrap.test.ts +1 -12
- package/src/tests/command_registry.test.ts +81 -31
- package/src/tests/execute_validation.test.ts +199 -640
- package/src/tests/help.test.ts +36 -70
- package/src/tests/upload.test.ts +4 -5
- package/src/tests/zod_registry.test.ts +0 -13
- package/sdk-dist/docs/runtime-reference/app-discovery.md +0 -84
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export const AppCreateByTenantsReqVOSchema = z.lazy(() => z.object({ "icon_color": z.string().optional(), "icon_name": z.string().optional(), "name": z.string().optional() }).strict());
|
|
4
4
|
export const AppCreateEntityReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional(), "parent": z.number().optional() }).strict());
|
|
5
|
-
export const AppCreateEntityShareReqVOSchema = z.lazy(() => z.object({ "source_entity_id": z.number(), "target_app_ids": z.array(z.number()) }).strict());
|
|
6
|
-
export const AppDeleteEntityShareReqVOSchema = z.lazy(() => z.object({ "source_entity_id": z.number(), "target_app_id": z.number() }).strict());
|
|
7
5
|
export const I18NTextSchema = z.lazy(() => z.record(z.string(), z.string()));
|
|
8
6
|
export const PermitColumnSchema = z.lazy(() => z.object({ "field_id": z.number().optional(), "is_field": z.boolean().optional(), "prop": z.string().optional() }).strict());
|
|
9
7
|
export const PermitSearchColumnSchema = z.lazy(() => z.object({ "default": z.boolean().optional(), "default_value": z.array(z.number()).optional(), "field_id": z.number().optional(), "infilter": z.boolean().optional(), "is_field": z.boolean().optional(), "pinned": z.boolean().optional(), "prop": z.string().optional(), "wildcard": z.boolean().optional() }).strict());
|
|
@@ -19,444 +17,117 @@ export const PermitPolicySchema = z.lazy(() => z.object({ "actions": z.array(z.s
|
|
|
19
17
|
export const PermitUserScopeSchema = z.lazy(() => z.object({ "data": z.object({ "name": z.string().optional() }).strict().optional(), "id": z.number().optional(), "type": z.string().optional() }).strict());
|
|
20
18
|
export const EntityIngressOptionsSchema = z.lazy(() => z.object({ "i18n_name": I18NTextSchema.optional(), "list_options": PermitEntityListOptionsSchema.optional(), "policy": PermitPolicySchema.optional(), "user_scope": z.array(PermitUserScopeSchema).optional() }).strict());
|
|
21
19
|
export const AppIngressCreateReqVOSchema = z.lazy(() => z.object({ "enabled": z.boolean().optional(), "entity_id": z.number().optional(), "icon_name": z.string().optional(), "name": z.string().optional(), "options": EntityIngressOptionsSchema.optional(), "type": z.string().optional(), "url": z.string().optional() }).strict());
|
|
22
|
-
export const AppIngressBlockVOSchema = z.lazy(() => z.object({ "code": z.string().optional(), "content": z.string().optional() }).strict());
|
|
23
|
-
export const AppIngressUpdateBlocksReqVOSchema = z.lazy(() => z.object({ "blocks": z.array(AppIngressBlockVOSchema).optional() }).strict());
|
|
24
20
|
export const AppIngressUpdateReqVOSchema = z.lazy(() => z.object({ "enabled": z.boolean().optional(), "name": z.string().optional(), "options": EntityIngressOptionsSchema.optional(), "update": z.array(z.string()).optional() }).strict());
|
|
25
|
-
export const WidgetsTypeCodeSchema = z.lazy(() => z.union([z.literal(1), z.literal(2)]));
|
|
26
|
-
export const WidgetsTypeSchema = z.lazy(() => z.object({ "dashboard_id": z.number().optional(), "ingress_id": z.number().optional(), "type": WidgetsTypeCodeSchema.optional() }).strict());
|
|
27
|
-
export const AppNewWidgetsReqVOSchema = z.lazy(() => z.object({ "options": WidgetsTypeSchema.optional(), "type": z.string().optional() }).strict());
|
|
28
|
-
export const CubeDimensionSchema = 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());
|
|
29
|
-
export const CubeMeasureAggregateSchema = z.lazy(() => z.union([z.literal("sum"), z.literal("avg"), z.literal("max"), z.literal("min"), z.literal("count"), z.literal("distinct_count")]));
|
|
30
|
-
export const CubeMeasureSchema = 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());
|
|
31
|
-
export const AppPreviewWidgetsDataReqVOSchema = 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());
|
|
32
|
-
export const AppRenameReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
33
|
-
export const DashboardMenuItemVOSchema = z.lazy(() => z.object({ "enabled": z.boolean().optional(), "i18n_names": z.record(z.string(), z.string()).optional(), "id": z.number().optional(), "name": z.string().optional() }).strict());
|
|
34
|
-
export const IngressItemSchema = z.lazy(() => z.object({ "enabled": z.boolean().optional(), "i18n_name": I18NTextSchema.optional(), "id": z.string().optional(), "meta": z.record(z.string(), z.any()).optional(), "name": z.string().optional(), "type": z.string().optional() }).strict());
|
|
35
|
-
export const IngressGroupReqVOSchema = z.lazy(() => z.object({ "default": z.boolean().optional(), "i18n_name": I18NTextSchema.optional(), "icon_name": z.string().optional(), "id": z.number().optional(), "is_new": z.boolean().optional(), "items": z.array(IngressItemSchema).optional(), "name": z.string().optional() }).strict());
|
|
36
|
-
export const AppSaveSiteMapsReqVOSchema = z.lazy(() => z.object({ "dashboards": z.array(DashboardMenuItemVOSchema).optional(), "ingresses": z.array(IngressGroupReqVOSchema).optional(), "to_delete_ingress": z.array(z.string()).optional(), "use_home_dashboard": z.boolean().optional() }).strict());
|
|
37
21
|
export const GormDeletedAtSchema = z.lazy(() => z.object({ "Time": z.string().optional(), "Valid": z.boolean().optional() }).strict());
|
|
38
22
|
export const AppOptionsSchema = z.lazy(() => z.object({ "use_home_dashboard": z.boolean().optional() }).strict());
|
|
39
23
|
export const AppUpdateAppReqVOSchema = 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());
|
|
40
|
-
export const AppUpdateI18NReqVOSchema = z.lazy(() => z.object({ "data": z.record(z.string(), z.any()).optional() }).strict());
|
|
41
|
-
export const AppUpdateI18nReqVOSchema = z.lazy(() => AppUpdateI18NReqVOSchema);
|
|
42
|
-
export const WidgetsListViewOptionsSchema = 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());
|
|
43
|
-
export const AppUpdateWidgetsIngressOptionsReqVOSchema = z.lazy(() => z.object({ "options": WidgetsListViewOptionsSchema.optional() }).strict());
|
|
44
|
-
export const ChartOptionSchema = 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());
|
|
45
|
-
export const WidgetsOptionSchema = z.lazy(() => z.object({ "charts": ChartOptionSchema.optional(), "ingress": WidgetsListViewOptionsSchema.optional(), "render": z.record(z.string(), z.any()).optional() }).strict());
|
|
46
|
-
export const AppUpdateWidgetsReqVOSchema = z.lazy(() => z.object({ "entity_id": z.number().optional(), "options": WidgetsOptionSchema.optional() }).strict());
|
|
47
|
-
export const PermitActionSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4)]));
|
|
48
|
-
export const ActionFormulaExprSchema = z.lazy(() => z.object({ "code": z.string().optional(), "jsonlogic": z.array(z.number()).optional() }).strict());
|
|
49
|
-
export const ActionFieldValueSchema = z.lazy(() => z.object({ "field_id": z.number().optional(), "value": z.any().optional(), "value_formula": ActionFormulaExprSchema.optional(), "value_from": PermitValueFromSchema.optional(), "value_relation": PermitEntityPropSchema.optional() }).strict());
|
|
50
|
-
export const ActionActionSchema = z.lazy(() => z.object({ "Action": PermitActionSchema.optional(), "AppID": z.number().optional(), "EntityID": z.number().optional(), "Fields": z.array(ActionFieldValueSchema).optional(), "Filter": PermitConditionSetSchema.optional() }).strict());
|
|
51
|
-
export const PermitEntityEventSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4), z.literal(99), z.literal(11), z.literal(12)]));
|
|
52
|
-
export const AutomateRuleCreateReqVOSchema = z.lazy(() => z.object({ "action": ActionActionSchema, "event": PermitEntityEventSchema, "filter": PermitConditionSetSchema.optional(), "name": z.string().optional() }).strict());
|
|
53
|
-
export const AutomateRuleUpdateReqVOSchema = z.lazy(() => z.object({ "action": ActionActionSchema, "enabled": z.boolean().optional(), "event": PermitEntityEventSchema, "filter": PermitConditionSetSchema.optional(), "name": z.string().optional() }).strict());
|
|
54
|
-
export const ChangePasswordReqVOSchema = z.lazy(() => z.object({ "newPassword": z.string().optional(), "oldPassword": z.string().optional(), "userId": z.number().optional() }).strict());
|
|
55
|
-
export const CommonPaginationSchema = z.lazy(() => z.object({ "page": z.number().optional(), "size": z.number().optional(), "total": z.number().optional() }).strict());
|
|
56
|
-
export const CommonQueryFormVOSchema = z.lazy(() => z.object({ "filter": z.string().optional(), "pagination": CommonPaginationSchema.optional() }).strict());
|
|
57
|
-
export const CopilotMessageSchema = z.lazy(() => z.object({ "Content": z.string().optional(), "Type": z.string().optional() }).strict());
|
|
58
|
-
export const CopilotSendMessageReqVOSchema = z.lazy(() => z.object({ "conversation_id": z.string().optional(), "current_view": z.string().optional(), "messages": z.array(CopilotMessageSchema).optional(), "params": z.record(z.string(), z.string()).optional() }).strict());
|
|
59
|
-
export const DashboardCreateReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
60
|
-
export const LayoutPositionSchema = 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());
|
|
61
|
-
export const DashboardUpdateLayoutReqVOSchema = z.lazy(() => z.array(LayoutPositionSchema));
|
|
62
|
-
export const DashboardUpdateOptionsReqVOSchema = 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());
|
|
63
|
-
export const DashboardUpdateTitleReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
64
|
-
export const DatasetCreateDatasetReqVOSchema = z.lazy(() => z.object({ "app_id": z.number().optional(), "count": z.number().optional(), "group": z.string().optional(), "i18n_name": z.record(z.string(), z.string()).optional(), "id": z.number().optional(), "name": z.string().optional(), "readonly": z.boolean().optional(), "tenant_id": z.number().optional(), "updated_at": z.string().optional() }).strict());
|
|
65
|
-
export const DatasetRowSchema = z.lazy(() => z.object({ "DeletedAt": GormDeletedAtSchema.optional(), "child_count": z.number().optional(), "children": z.array(DatasetRowSchema).optional(), "code": z.string().optional(), "dataset_id": z.number().optional(), "i18n_name": I18NTextSchema.optional(), "id": z.number().optional(), "meta": z.record(z.string(), z.any()).optional(), "name": z.string().optional(), "parent_id": z.number().optional(), "tenant_id": z.number().optional(), "updated_at": z.string().optional() }).strict());
|
|
66
|
-
export const DatasetCreateNodeReqVOSchema = z.lazy(() => z.object({ "DeletedAt": GormDeletedAtSchema.optional(), "child_count": z.number().optional(), "children": z.array(DatasetRowSchema).optional(), "code": z.string().optional(), "dataset_id": z.number().optional(), "i18n_name": I18NTextSchema.optional(), "id": z.number().optional(), "meta": z.record(z.string(), z.any()).optional(), "name": z.string().optional(), "parent_id": z.number().optional(), "tenant_id": z.number().optional(), "updated_at": z.string().optional() }).strict());
|
|
67
|
-
export const DatasetImportReqVOSchema = z.lazy(() => z.object({ "dataset_id": z.number().optional(), "node_id": z.number().optional() }).strict());
|
|
68
|
-
export const DatasetMoveReqVOSchema = z.lazy(() => z.object({ "target_id": z.number().optional(), "type": z.string().optional() }).strict());
|
|
69
|
-
export const DatasetUpdateReqVOSchema = z.lazy(() => z.object({ "DeletedAt": GormDeletedAtSchema.optional(), "child_count": z.number().optional(), "children": z.array(DatasetRowSchema).optional(), "code": z.string().optional(), "dataset_id": z.number().optional(), "i18n_name": I18NTextSchema.optional(), "id": z.number().optional(), "meta": z.record(z.string(), z.any()).optional(), "name": z.string().optional(), "parent_id": z.number().optional(), "tenant_id": z.number().optional(), "updated_at": z.string().optional() }).strict());
|
|
70
|
-
export const DepartmentsAddActorReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
71
|
-
export const DepartmentsAddReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional(), "parent_id": z.number().optional() }).strict());
|
|
72
|
-
export const DepartmentsCreateServiceAccountReqVOSchema = z.lazy(() => z.object({ "bio": z.string().optional(), "departments": z.array(z.number()).optional(), "name": z.string().optional() }).strict());
|
|
73
|
-
export const DepartmentsDeleteActorReqVOSchema = z.lazy(() => z.object({ "actor_id": z.number().optional() }).strict());
|
|
74
|
-
export const DepartmentsEmployeeAccountChangePasswordReqVOSchema = z.lazy(() => z.object({ "id": z.number().optional(), "password": z.string().optional() }).strict());
|
|
75
|
-
export const DepartmentsEmployeeAccountCreateReqVOSchema = z.lazy(() => z.object({ "employee_id": z.string().optional(), "name": z.string().optional(), "password": z.string().optional() }).strict());
|
|
76
|
-
export const DepartmentsGetOrganizationUsersReqVOSchema = z.lazy(() => z.object({ "actor": z.array(z.number()).optional(), "department": z.array(z.number()).optional(), "pager": z.object({ "page": z.number().optional(), "size": z.number().optional() }).strict().optional(), "search": z.string().optional(), "status": z.array(z.number()).optional() }).strict());
|
|
77
|
-
export const DepartmentsInviteCodeHistoryReqVOSchema = z.lazy(() => z.object({ "pager": z.object({ "page": z.number().optional(), "size": z.number().optional() }).strict().optional() }).strict());
|
|
78
|
-
export const DepartmentsInviteCodeSwitchReqVOSchema = z.lazy(() => z.object({ "disabled": z.boolean().optional(), "id": z.string().optional() }).strict());
|
|
79
|
-
export const DepartmentsInviteOneByOneReqVOSchema = z.lazy(() => z.object({ "departments": z.array(z.object({ "id": z.number().optional() }).strict()).optional(), "email": z.string().optional(), "mobile": z.string().optional(), "name": z.string().optional(), "staff_id": z.string().optional() }).strict());
|
|
80
|
-
export const DepartmentsMakeLinkReqVOSchema = z.lazy(() => z.object({ "departments": z.array(z.object({ "id": z.number().optional() }).strict()).optional(), "expired": z.number().optional(), "role": z.number().optional() }).strict());
|
|
81
|
-
export const DepartmentsRelocateReqVOSchema = z.lazy(() => z.object({ "target_id": z.number().optional(), "type": z.string().optional() }).strict());
|
|
82
|
-
export const DepartmentsRenameReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
83
|
-
export const DepartmentsResendInviteReqVOSchema = z.lazy(() => z.object({ "id": z.number().optional() }).strict());
|
|
84
|
-
export const DepartmentsSetDeptPolicyReqVOSchema = z.lazy(() => z.object({ "policy": z.any().optional() }).strict());
|
|
85
|
-
export const DepartmentsUpdateUserReqVOSchema = z.lazy(() => z.object({ "actor_ids": z.array(z.number()).optional(), "avatar": z.string().optional(), "bio": z.string().optional(), "department_ids": z.array(z.number()).optional(), "email": z.string().optional(), "external_source": z.string().optional(), "external_subject_id": z.string().optional(), "external_subject_type": z.string().optional(), "id": z.number().optional(), "id_card_number": z.string().optional(), "is_admin": z.boolean().optional(), "kiosk_user": z.boolean().optional(), "metadata": z.record(z.string(), z.string()).optional(), "mobile": z.string().optional(), "name": z.string().optional(), "profile_synced_at": z.any().optional(), "service_account_binding_status": z.string().optional(), "service_account_id": z.string().optional(), "staff_id": z.string().optional(), "status": z.number().optional(), "type": z.number().optional(), "user_email": z.string().optional() }).strict());
|
|
86
|
-
export const DeveloperClientCreateReqVOSchema = z.lazy(() => z.object({ "allowed_origins": z.string().optional(), "allowed_scopes": z.string().optional(), "description": z.string().optional(), "name": z.string(), "user_token_required": z.boolean().optional() }).strict());
|
|
87
|
-
export const DeveloperClientUpdateReqVOSchema = z.lazy(() => z.object({ "allowed_origins": z.string().optional(), "allowed_scopes": z.string().optional(), "description": z.string().optional(), "name": z.string(), "status": z.number().optional(), "user_token_required": z.boolean().optional() }).strict());
|
|
88
|
-
export const DeveloperHookletCreateReqVOSchema = z.lazy(() => z.object({ "config": z.string().optional(), "dev_client_id": z.number(), "name": z.string() }).strict());
|
|
89
|
-
export const DeveloperHookletUpdateReqVOSchema = z.lazy(() => z.object({ "config": z.string().optional(), "name": z.string() }).strict());
|
|
90
|
-
export const EntityAIImportConfigReqVOSchema = z.lazy(() => z.object({ "currentColumns": z.array(z.any()).optional(), "fields": z.array(z.any()).optional() }).strict());
|
|
91
|
-
export const EntityCommentStorageTypeVOSchema = z.lazy(() => z.object({ "assets_id": z.number().optional(), "file": z.string().optional(), "file_name": z.string().optional(), "meta": z.record(z.string(), z.any()).optional(), "upload_id": z.number().optional() }).strict());
|
|
92
|
-
export const EntityAddCommentReqVOSchema = z.lazy(() => z.object({ "attachments": z.array(EntityCommentStorageTypeVOSchema).optional(), "content": z.string().optional(), "field_id": z.number().optional(), "quote": z.string().optional(), "transition_id": z.number().optional() }).strict());
|
|
93
24
|
export const EntityBulkUpdateActionVOSchema = 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());
|
|
94
25
|
export const EntityBulkUpdateFieldVOSchema = z.lazy(() => z.object({ "action": EntityBulkUpdateActionVOSchema.optional(), "id": z.number().optional() }).strict());
|
|
95
26
|
export const EntityBulkUpdateReqVOSchema = z.lazy(() => z.object({ "fields": z.array(EntityBulkUpdateFieldVOSchema).optional(), "policy_id": z.string().optional() }).strict());
|
|
96
|
-
export const
|
|
97
|
-
export const EntityCloneReqVOSchema = z.lazy(() => z.object({ "app_id": z.number().optional(), "copy_workflow": z.boolean().optional(), "entity_id": z.number().optional(), "name": z.string().optional() }).strict());
|
|
98
|
-
export const MagicStringPartTypeSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3)]));
|
|
99
|
-
export const MagicStringPartSchema = z.lazy(() => z.object({ "Data": z.string().optional(), "FieldID": z.number().optional(), "Type": MagicStringPartTypeSchema.optional() }).strict());
|
|
100
|
-
export const MagicStringSchema = z.lazy(() => z.object({ "Body": z.string().optional(), "Fields": z.array(z.number()).optional(), "Parts": z.array(MagicStringPartSchema).optional() }).strict());
|
|
101
|
-
export const AiOptionsSchema = z.lazy(() => z.object({ "custom": MagicStringSchema.optional(), "result_map": z.array(z.object({ "field_id": z.number().optional(), "type": z.string().optional(), "var": z.string().optional() }).strict()).optional(), "type": z.string().optional() }).strict());
|
|
102
|
-
export const ApiOptionsSchema = z.lazy(() => z.object({ "api_id": z.number().optional(), "input": z.any().optional(), "output": z.any().optional() }).strict());
|
|
103
|
-
export const ApiEndpointParamSchema = z.lazy(() => z.object({ "key": z.string().optional(), "value": MagicStringSchema.optional() }).strict());
|
|
104
|
-
export const ApiEndpointSchema = z.lazy(() => z.object({ "content_type": z.string().optional(), "headers": z.array(ApiEndpointParamSchema).optional(), "method": z.string().optional(), "params": z.array(ApiEndpointParamSchema).optional(), "sign_mode": z.string().optional(), "url": MagicStringSchema.optional() }).strict());
|
|
105
|
-
export const EntityFrontEventSchema = z.lazy(() => z.object({ "action": z.string().optional(), "ai_options": AiOptionsSchema.optional(), "api_options": ApiOptionsSchema.optional(), "backfills": z.any().optional(), "curl_options": ApiEndpointSchema.optional(), "description": z.string().optional(), "enabled": z.boolean().optional(), "id": z.string().optional(), "open_url_options": z.any().optional(), "setValues": z.any().optional(), "title": z.string().optional(), "trigger_field": z.number().optional(), "type": z.string().optional() }).strict());
|
|
106
|
-
export const EntityDebugInvokeHookReqVOSchema = z.lazy(() => z.object({ "action": EntityFrontEventSchema.optional(), "input": z.record(z.string(), z.any()).optional() }).strict());
|
|
107
|
-
export const EntityDelCommentReqVOSchema = z.lazy(() => z.object({ "comment_id": z.number().optional() }).strict());
|
|
27
|
+
export const EntityCommentStorageTypeVOSchema = z.lazy(() => z.object({ "assets_id": z.number().optional(), "file": z.string().optional(), "file_name": z.string().optional(), "meta": z.record(z.string(), z.any()).optional(), "upload_id": z.number().optional() }).strict());
|
|
108
28
|
export const EntityDoActionCommentVOSchema = z.lazy(() => z.object({ "attachments": z.array(EntityCommentStorageTypeVOSchema).optional(), "content": z.string().optional(), "field_id": z.number().optional(), "quote": z.string().optional(), "transition_id": z.number().optional() }).strict());
|
|
109
29
|
export const EntityDoActionUserScopeVOSchema = z.lazy(() => z.object({ "id": z.number().optional(), "type": z.string().optional() }).strict());
|
|
110
30
|
export const EntityDoActionReqVOSchema = z.lazy(() => z.object({ "backstep": z.number().optional(), "changed": z.array(z.number()).optional(), "comment": EntityDoActionCommentVOSchema.optional(), "deferReason": z.string().optional(), "deferTime": z.number().optional(), "fields": z.record(z.string(), z.any()).optional(), "task_id": z.number().optional(), "user": z.array(EntityDoActionUserScopeVOSchema).optional() }).strict());
|
|
111
|
-
export const EntityDoFsmActionReqVOSchema = z.lazy(() => z.object({ "append": z.record(z.string(), z.any()).optional(), "policy_id": z.string().optional(), "required_count": z.number().optional() }).strict());
|
|
112
|
-
export const EntityExportReqVOSchema = z.lazy(() => z.object({ "fields": z.array(z.number()).optional(), "options": z.object({ "has_id": z.boolean().optional() }).strict().optional(), "policy_id": z.string().optional(), "propnames": z.record(z.string(), z.string()).optional(), "props": z.array(z.string()).optional() }).strict());
|
|
113
|
-
export const EntityImportPrepareReqVOSchema = z.lazy(() => z.object({ "task_id": z.string().optional() }).strict());
|
|
114
|
-
export const EntityImportReqVOSchema = z.lazy(() => z.object({ "dataset_id": z.number().optional(), "node_id": z.number().optional() }).strict());
|
|
115
|
-
export const EntityImportActionVOSchema = z.lazy(() => z.object({ "action": z.string().optional(), "taskId": z.string().optional() }).strict());
|
|
116
|
-
export const InlineSchema1Schema = z.lazy(() => z.intersection(EntityImportReqVOSchema, EntityImportActionVOSchema));
|
|
117
|
-
export const EntitySelectionQueryOrderVOSchema = z.lazy(() => z.object({ "column": z.string().optional(), "order": z.string().optional() }).strict());
|
|
118
|
-
export const EntitySelectionVOSchema = z.lazy(() => z.object({ "condition": z.record(z.string(), z.any()).optional(), "ids": z.array(z.number()).optional(), "length": z.number().optional(), "sorts": z.array(EntitySelectionQueryOrderVOSchema).optional(), "type": z.string().optional() }).strict());
|
|
119
|
-
export const EntityInvokeBatchOperatorDataVOSchema = z.lazy(() => z.object({ "action_id": z.string().optional(), "policy_id": z.string().optional(), "selection": EntitySelectionVOSchema.optional() }).strict());
|
|
120
|
-
export const EntityInvokeBatchOperatorReqVOSchema = z.lazy(() => z.object({ "data": EntityInvokeBatchOperatorDataVOSchema.optional(), "id": z.string().optional() }).strict());
|
|
121
|
-
export const InvokeRequestVOSchema = z.lazy(() => z.object({ "params": z.record(z.string(), z.any()).optional() }).strict());
|
|
122
|
-
export const InlineSchema2Schema = z.lazy(() => z.intersection(EntityInvokeBatchOperatorReqVOSchema, InvokeRequestVOSchema));
|
|
123
|
-
export const KioskScreenSchema = z.lazy(() => z.record(z.string(), z.any()));
|
|
124
|
-
export const KioskConfigSchema = z.lazy(() => z.object({ "interactiveMode": z.string().optional(), "lookupFields": z.array(z.number()).optional(), "options": z.record(z.string(), z.any()).optional(), "screens": z.array(KioskScreenSchema).optional(), "theme": z.string().optional() }).strict());
|
|
125
|
-
export const EntityKioskFlowCreateReqVOSchema = z.lazy(() => z.object({ "config": KioskConfigSchema.optional(), "enabled": z.boolean().optional(), "name": z.string().optional(), "user_scope": z.array(PermitUserScopeSchema).optional() }).strict());
|
|
126
|
-
export const EntityKioskFlowUpdateReqVOSchema = z.lazy(() => z.object({ "UpdatedAt": z.string().optional(), "app_id": z.number().optional(), "changed": z.array(z.string()).optional(), "config": KioskConfigSchema.optional(), "enabled": z.boolean().optional(), "entity_id": z.number().optional(), "icon_name": z.string().optional(), "id": z.string().optional(), "last_modified_by": z.number().optional(), "name": z.string().optional(), "tenant_id": z.number().optional(), "title_color": z.string().optional(), "user_scope": z.array(PermitUserScopeSchema).optional() }).strict());
|
|
127
|
-
export const AssetsSchema = z.lazy(() => z.object({ "CreatedAt": z.string().optional(), "DeletedAt": GormDeletedAtSchema.optional(), "ID": z.number().optional(), "UpdatedAt": z.string().optional(), "content_type": z.string().optional(), "file": z.string().optional(), "file_name": z.string().optional(), "file_size": z.number().optional(), "is_public": z.boolean().optional(), "platform": z.string().optional() }).strict());
|
|
128
|
-
export const EntityPrintTemplatesCreateReqVOSchema = z.lazy(() => z.object({ "background_assets": AssetsSchema.optional(), "background_assets_id": z.number().optional(), "entity_id": z.number().optional(), "id": z.number().optional(), "name": z.string().optional(), "size": z.string().optional(), "template": z.record(z.string(), z.any()).optional() }).strict());
|
|
129
|
-
export const EntityPrintTemplatesUpdateReqVOSchema = z.lazy(() => z.object({ "background_assets": AssetsSchema.optional(), "background_assets_id": z.number().optional(), "entity_id": z.number().optional(), "id": z.number().optional(), "name": z.string().optional(), "size": z.string().optional(), "template": z.record(z.string(), z.any()).optional() }).strict());
|
|
130
|
-
export const EntityPutQueryKeeperReqVOSchema = z.lazy(() => z.object({ "policy_id": z.string().optional(), "selection": EntitySelectionVOSchema.optional() }).strict());
|
|
131
|
-
export const EntityQueryFilterReqVOSchema = z.lazy(() => z.object({ "column": z.string().optional(), "policy_id": z.string().optional(), "query": z.string().optional() }).strict());
|
|
132
|
-
export const EntityQueryLinkToValuesReqVOSchema = z.lazy(() => z.object({ "addition": z.boolean().optional(), "data": z.record(z.string(), z.any()).optional(), "entity": z.boolean().optional(), "field_id": z.number().optional(), "input": z.string().optional(), "limit": z.number().optional(), "offset": z.number().optional(), "policies": z.boolean().optional(), "query": z.string().optional(), "record_id": z.number().optional(), "total": z.boolean().optional() }).strict());
|
|
133
31
|
export const EntityQueryRelationReqVOSchema = z.lazy(() => z.object({ "addition": z.boolean().optional(), "data": z.record(z.string(), z.any()).optional(), "entity": z.boolean().optional(), "field_id": z.number().optional(), "input": z.string().optional(), "limit": z.number().optional(), "offset": z.number().optional(), "policies": z.boolean().optional(), "query": z.string().optional(), "total": z.boolean().optional() }).strict());
|
|
134
32
|
export const EntityQueryOrderVOSchema = z.lazy(() => z.object({ "column": z.string().optional(), "order": z.string().optional() }).strict());
|
|
135
33
|
export const EntityQueryReqVOSchema = 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());
|
|
136
|
-
export const
|
|
137
|
-
export const EntitySaveCustomKeysReqVOSchema = z.lazy(() => z.array(EntitySaveCustomKeysFieldVOSchema));
|
|
34
|
+
export const EntityResolveWorkflowReqVOSchema = 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());
|
|
138
35
|
export const EntitySaveNameReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
139
36
|
export const EntitySerialUpdaterVOSchema = z.lazy(() => z.object({ "reset": z.string().optional(), "value": z.number().optional() }).strict());
|
|
140
37
|
export const FieldsSchema = z.lazy(() => z.record(z.string(), z.any()));
|
|
141
38
|
export const ButtonSchema = z.lazy(() => z.object({ "Action": z.record(z.string(), z.any()).optional(), "Label": z.string().optional(), "Type": z.string().optional() }).strict());
|
|
39
|
+
export const MagicStringPartTypeSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3)]));
|
|
40
|
+
export const MagicStringPartSchema = z.lazy(() => z.object({ "Data": z.string().optional(), "FieldID": z.number().optional(), "Type": MagicStringPartTypeSchema.optional() }).strict());
|
|
41
|
+
export const MagicStringSchema = z.lazy(() => z.object({ "Body": z.string().optional(), "Fields": z.array(z.number()).optional(), "Parts": z.array(MagicStringPartSchema).optional() }).strict());
|
|
42
|
+
export const AiOptionsSchema = z.lazy(() => z.object({ "custom": MagicStringSchema.optional(), "result_map": z.array(z.object({ "field_id": z.number().optional(), "type": z.string().optional(), "var": z.string().optional() }).strict()).optional(), "type": z.string().optional() }).strict());
|
|
43
|
+
export const ApiOptionsSchema = z.lazy(() => z.object({ "api_id": z.number().optional(), "input": z.any().optional(), "output": z.any().optional() }).strict());
|
|
44
|
+
export const ApiEndpointParamSchema = z.lazy(() => z.object({ "key": z.string().optional(), "value": MagicStringSchema.optional() }).strict());
|
|
45
|
+
export const ApiEndpointSchema = z.lazy(() => z.object({ "content_type": z.string().optional(), "headers": z.array(ApiEndpointParamSchema).optional(), "method": z.string().optional(), "params": z.array(ApiEndpointParamSchema).optional(), "sign_mode": z.string().optional(), "url": MagicStringSchema.optional() }).strict());
|
|
46
|
+
export const EntityFrontEventSchema = z.lazy(() => z.object({ "action": z.string().optional(), "ai_options": AiOptionsSchema.optional(), "api_options": ApiOptionsSchema.optional(), "backfills": z.any().optional(), "curl_options": ApiEndpointSchema.optional(), "description": z.string().optional(), "enabled": z.boolean().optional(), "id": z.string().optional(), "open_url_options": z.any().optional(), "setValues": z.any().optional(), "title": z.string().optional(), "trigger_field": z.number().optional(), "type": z.string().optional() }).strict());
|
|
142
47
|
export const CustomActionSchema = z.lazy(() => z.object({ "actions": z.array(EntityFrontEventSchema).optional(), "id": z.string().optional(), "label": z.string().optional(), "options": z.any().optional() }).strict());
|
|
48
|
+
export const PermitEntityEventSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3), z.literal(4), z.literal(99), z.literal(11), z.literal(12)]));
|
|
143
49
|
export const NotificationPayloadModeSchema = z.lazy(() => z.union([z.literal(0), z.literal(1)]));
|
|
144
50
|
export const NotificationNotificationTypeSchema = z.lazy(() => z.union([z.literal("webhook"), z.literal("sqs")]));
|
|
145
51
|
export const EntityOptionsSchema = z.lazy(() => z.object({ "ArchiveSearchFieldID": z.number().optional(), "Buttons": z.array(ButtonSchema).optional(), "CommentAble": z.boolean().optional(), "CustomActions": z.array(CustomActionSchema).optional(), "CustomTitle": z.boolean().optional(), "EnableArchive": z.boolean().optional(), "EnableDraft": z.boolean().optional(), "EnableFastEdit": z.boolean().optional(), "EnableLog": z.boolean().optional(), "EnableOffline": z.boolean().optional(), "EnableSuccessScreen": z.boolean().optional(), "EnableTags": z.boolean().optional(), "FrontendEvents": z.array(EntityFrontEventSchema).optional(), "SuccessScreen": z.string().optional(), "TitleFormat": MagicStringSchema.optional(), "misc": z.record(z.string(), z.any()).optional(), "notifications": z.array(z.object({ "enabled": z.boolean().optional(), "events": z.array(PermitEntityEventSchema).optional(), "events_map": z.record(z.string(), z.boolean()).optional(), "mode": NotificationPayloadModeSchema.optional(), "template": z.string().optional(), "type": NotificationNotificationTypeSchema.optional(), "url": z.string().optional(), "version": z.string().optional() }).strict()).optional() }).strict());
|
|
146
52
|
export const EntitySaveReqVOSchema = z.lazy(() => z.object({ "app_id": z.number().optional(), "current_serial": EntitySerialUpdaterVOSchema.optional(), "field_id_seq": z.number().optional(), "fields": FieldsSchema.optional(), "id": z.number().optional(), "layout": z.array(z.array(z.number())).optional(), "name": z.string().optional(), "options": EntityOptionsSchema.optional(), "prototypes": z.array(z.number()).optional(), "schema_version": z.number().optional(), "workflow_enabled": z.boolean().optional() }).strict());
|
|
53
|
+
export const EntitySelectionQueryOrderVOSchema = z.lazy(() => z.object({ "column": z.string().optional(), "order": z.string().optional() }).strict());
|
|
54
|
+
export const EntitySelectionVOSchema = z.lazy(() => z.object({ "condition": z.record(z.string(), z.any()).optional(), "ids": z.array(z.number()).optional(), "length": z.number().optional(), "sorts": z.array(EntitySelectionQueryOrderVOSchema).optional(), "type": z.string().optional() }).strict());
|
|
147
55
|
export const EntitySelectionActionReqVOSchema = z.lazy(() => z.object({ "limit": z.number().optional(), "offset": z.number().optional(), "policy_id": z.string().optional(), "selection": EntitySelectionVOSchema.optional() }).strict());
|
|
148
|
-
export const EntitySerialInitValReqVOSchema = z.lazy(() => z.object({ "command": z.string().optional(), "field_id": z.number().optional(), "reset": z.string().optional() }).strict());
|
|
149
|
-
export const EntityTestNotificationReqVOSchema = z.lazy(() => z.object({ "secret": z.string().optional(), "type": z.string().optional(), "url": z.string().optional() }).strict());
|
|
150
|
-
export const EntityUpdateButtonsReqVOSchema = z.lazy(() => z.array(ButtonSchema));
|
|
151
|
-
export const NotificationConfigSchema = z.lazy(() => z.object({ "type": z.union([z.literal("webhook"), z.literal("sqs")]), "url": z.string(), "mode": z.number().optional(), "template": z.string().optional() }).strict());
|
|
152
|
-
export const EntityUpdateNotificationsReqVOSchema = z.lazy(() => z.array(NotificationConfigSchema));
|
|
153
|
-
export const EntityUpdateOptionsReqVOSchema = z.lazy(() => z.object({ "ArchiveSearchFieldID": z.number().optional(), "CommentAble": z.boolean().optional(), "CustomTitle": z.boolean().optional(), "EnableArchive": z.boolean().optional(), "EnableFastEdit": z.boolean().optional(), "EnableLog": z.boolean().optional(), "EnableTags": z.boolean().optional(), "TitleFormat": MagicStringSchema.optional() }).strict());
|
|
154
56
|
export const EntityUpdateReqVOSchema = z.lazy(() => z.object({ "changed_fields": z.array(z.number()).optional(), "data": z.record(z.string(), z.any()).optional(), "policy_id": z.string().optional(), "tags": z.array(z.string()).optional() }).strict());
|
|
155
|
-
export const
|
|
156
|
-
export const
|
|
157
|
-
export const
|
|
158
|
-
export const
|
|
159
|
-
export const
|
|
160
|
-
export const
|
|
161
|
-
export const
|
|
162
|
-
export const
|
|
57
|
+
export const EntityWorkflowApproveUsersReqVOSchema = z.lazy(() => z.object({ "node_id": z.number().optional(), "policy_id": z.string().optional(), "record_id": z.number().optional(), "version_id": z.number().optional() }).strict());
|
|
58
|
+
export const ActionBulkUpdateActionSchema = 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());
|
|
59
|
+
export const ActionBulkUpdateSchema = z.lazy(() => z.object({ "action": ActionBulkUpdateActionSchema.optional(), "id": z.number().optional() }).strict());
|
|
60
|
+
export const WorkflowActionConfigSchema = 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());
|
|
61
|
+
export const WorkflowVoteTypeSchema = z.lazy(() => z.union([z.literal(0), z.literal(1)]));
|
|
62
|
+
export const NotificationWebhookConfigSchema = z.lazy(() => z.object({ "mode": NotificationPayloadModeSchema.optional(), "template": z.string().optional(), "url": z.string().optional(), "version": z.string().optional() }).strict());
|
|
63
|
+
export const WorkflowConfigNodeSchema = 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());
|
|
64
|
+
export const WorkflowConfigDiagramSchema = 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());
|
|
65
|
+
export const WorkflowAutoApproveRuleSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3)]));
|
|
66
|
+
export const WorkflowRetractRuleSchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(3)]));
|
|
67
|
+
export const WorkflowSLATriggerSchema = 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());
|
|
68
|
+
export const WorkflowSLAConfigSchema = 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());
|
|
69
|
+
export const WorkflowOptionsSchema = 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());
|
|
70
|
+
export const EntityWorkflowDeployReqVOSchema = z.lazy(() => z.object({ "diagram": WorkflowConfigDiagramSchema.optional(), "id": z.number().optional(), "options": WorkflowOptionsSchema.optional() }).strict());
|
|
71
|
+
export const EntityWorkflowUpdateReqVOSchema = z.lazy(() => z.object({ "diagram": WorkflowConfigDiagramSchema.optional(), "id": z.number().optional(), "options": WorkflowOptionsSchema.optional() }).strict());
|
|
163
72
|
export const GetUploadTokenReqVOSchema = z.lazy(() => z.object({ "global": z.boolean().optional() }).strict());
|
|
164
|
-
export const GlobalActionAcceptInvitationLinkReqVOSchema = z.lazy(() => z.object({ "id": z.string().optional() }).strict());
|
|
165
|
-
export const GlobalActionAcceptInvitationReqVOSchema = z.lazy(() => z.object({ "id": z.number().optional() }).strict());
|
|
166
|
-
export const GlobalActionCreateTenantReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
167
|
-
export const GlobalActionEmailVerifyReqVOSchema = z.lazy(() => z.object({ "code": z.string().optional(), "locale": z.string().optional() }).strict());
|
|
168
|
-
export const GlobalActionEmailVerifyResendReqVOSchema = z.lazy(() => z.object({ "locale": z.string().optional() }).strict());
|
|
169
|
-
export const GlobalActionProfileSetEmailReqVOSchema = z.lazy(() => z.object({ "email": z.string().optional(), "reset_password": z.boolean().optional() }).strict());
|
|
170
|
-
export const GlobalActionSetDefaultTenantReqVOSchema = z.lazy(() => z.object({ "tenant_id": z.number().optional() }).strict());
|
|
171
|
-
export const PermitFilterCondSchema = z.lazy(() => z.object({ "at": z.any().optional(), "eq": z.number().optional(), "expr": z.array(z.number()).optional(), "ge": z.number().optional(), "gt": z.number().optional(), "in": z.array(z.string()).optional(), "is": z.string().optional(), "le": z.number().optional(), "lt": z.number().optional(), "null": z.boolean().optional(), "number_in": z.array(z.number()).optional() }).strict());
|
|
172
|
-
export const PermitFilterSchema = z.lazy(() => z.object({ "column": z.string().optional(), "conditions": PermitFilterCondSchema.optional() }).strict());
|
|
173
|
-
export const PermitEntityUserTabSchema = z.lazy(() => z.object({ "base": z.string().optional(), "filters": z.array(PermitFilterSchema).optional(), "label": z.string().optional(), "query": z.string().optional() }).strict());
|
|
174
|
-
export const IngressSetOptionsTabberReqVOSchema = z.lazy(() => z.object({ "tabs": z.array(PermitEntityUserTabSchema).optional() }).strict());
|
|
175
|
-
export const InsertPrepareReqVOSchema = z.lazy(() => z.object({ "policy_id": z.string().optional() }).strict());
|
|
176
73
|
export const InsertReqVOSchema = z.lazy(() => z.object({ "fields": z.record(z.string(), z.any()).optional(), "policy_id": z.string().optional() }).strict());
|
|
177
74
|
export const MobileUploadCheckReqVOSchema = z.lazy(() => z.object({ "id": z.number().optional(), "ignored": z.record(z.string(), z.boolean()).optional(), "secret": z.string().optional() }).strict());
|
|
178
75
|
export const MobileUploadReqVOSchema = z.lazy(() => z.object({ "options": z.record(z.string(), z.any()).optional() }).strict());
|
|
179
|
-
export const PrintTemplateBackgroundUploadReqVOSchema = z.lazy(() => z.object({ "upload_id": z.number(), "filename": z.string() }).strict());
|
|
180
|
-
export const TenantConfigGetReqVOSchema = z.lazy(() => z.object({ "code": z.array(z.string()).optional() }).strict());
|
|
181
|
-
export const TenantConfigUpdateAuthBgImageReqVOSchema = z.lazy(() => z.object({ "filename": z.string().optional(), "upload_id": z.number().optional() }).strict());
|
|
182
|
-
export const TenantConfigUpdateAuthReqVOSchema = z.lazy(() => z.object({ "auth_banner": z.string().optional(), "auth_banner_bgcolor": z.string().optional(), "auth_banner_bgmode": z.string().optional(), "auth_banner_enabled": z.boolean().optional(), "auth_idcard_ip": z.string().optional() }).strict());
|
|
183
|
-
export const TenantConfigUpdateEmailReqVOSchema = z.lazy(() => z.object({ "from": z.string().optional(), "smtp_encryption": z.string().optional(), "smtp_host": z.string().optional(), "smtp_password": z.string().optional(), "smtp_port": z.number().optional(), "smtp_username": z.string().optional() }).strict());
|
|
184
|
-
export const TenantConfigUpdateIconReqVOSchema = z.lazy(() => z.object({ "filename": z.string().optional(), "upload_id": z.number().optional() }).strict());
|
|
185
|
-
export const TenantConfigUpdateLogoReqVOSchema = z.lazy(() => z.object({ "filename": z.string().optional(), "upload_id": z.number().optional() }).strict());
|
|
186
|
-
export const TenantUserMetaDataPolicySchema = z.lazy(() => z.union([z.literal(1), z.literal(2), z.literal(4)]));
|
|
187
|
-
export const TenantUserMetaDataSchema = z.lazy(() => z.object({ "code": z.string().optional(), "description": z.string().optional(), "name": z.string().optional(), "user_can_edit": z.boolean().optional(), "user_can_see": TenantUserMetaDataPolicySchema.optional() }).strict());
|
|
188
|
-
export const TenantConfigUpdateMetaReqVOSchema = z.lazy(() => z.object({ "meta": z.array(TenantUserMetaDataSchema).optional() }).strict());
|
|
189
|
-
export const TenantConfigUpdateNameReqVOSchema = z.lazy(() => z.object({ "name": z.string().optional() }).strict());
|
|
190
|
-
export const TenantConfigUpdateReqVOSchema = z.lazy(() => z.object({ "currency": z.string().optional(), "locale": z.string().optional(), "timezone": z.string().optional() }).strict());
|
|
191
|
-
export const TenantCreateCustomDomainReqVOSchema = z.lazy(() => z.object({ "domain_name": z.string().optional() }).strict());
|
|
192
|
-
export const TenantKioskGroupCreateReqVOSchema = z.lazy(() => z.object({ "description": z.string().optional(), "name": z.string().optional() }).strict());
|
|
193
|
-
export const TenantKioskGroupQueryReqVOSchema = z.lazy(() => z.object({ "limit": z.number().optional(), "query": z.string().optional() }).strict());
|
|
194
|
-
export const TenantKioskGroupUpdateReqVOSchema = z.lazy(() => z.object({ "description": z.string().optional(), "name": z.string().optional() }).strict());
|
|
195
|
-
export const TenantVerifyCustomDomainOwnerReqVOSchema = z.lazy(() => z.object({ "domain_name": z.string().optional() }).strict());
|
|
196
|
-
export const UpdateAvatarReqVOSchema = z.lazy(() => z.object({ "filename": z.string().optional(), "upload_id": z.number().optional() }).strict());
|
|
197
76
|
export const UploadPreviewReqVOSchema = z.lazy(() => z.object({ "fname": z.string().optional(), "upload_id": z.number().optional() }).strict());
|
|
198
|
-
export const WorkflowTransitionTypeSchema = z.lazy(() => z.union([z.literal(0), z.literal(1), z.literal(2)]));
|
|
199
|
-
export const UserFlowQueryReqVOSchema = z.lazy(() => z.object({ "app_id": z.number().optional(), "expired": z.boolean().optional(), "finished": z.boolean().optional(), "limit": z.number().optional(), "offset": z.number().optional(), "paused": z.boolean().optional(), "pending_cosign": z.boolean().optional(), "reverse": z.boolean().optional(), "rollback": z.boolean().optional(), "skip_entities": z.array(z.number()).optional(), "urged": z.boolean().optional(), "user_actor": WorkflowTransitionTypeSchema.optional(), "without_cancelled": z.boolean().optional() }).strict());
|
|
200
77
|
export const SqlNullTimeSchema = z.lazy(() => z.object({ "Time": z.string().optional(), "Valid": z.boolean().optional() }).strict());
|
|
201
78
|
export const TenantSchema = z.lazy(() => z.object({ "CreatedAt": z.string().optional(), "DeletedAt": SqlNullTimeSchema.optional(), "HashID": z.string().optional(), "ID": z.number().optional(), "UpdatedAt": z.string().optional(), "color_schema": z.string().optional(), "currency": z.string().optional(), "icon_assets_id": z.number().optional(), "icon_url": z.string().optional(), "join_able": z.boolean().optional(), "locale": z.string().optional(), "logo_assets_id": z.number().optional(), "logo_url": z.string().optional(), "name": z.string().optional(), "slug": z.string().optional(), "timezone": z.string().optional() }).strict());
|
|
202
79
|
export const PronounsTypeSchema = z.lazy(() => z.union([z.literal(0), z.literal(1), z.literal(2), z.literal(3), z.literal(4)]));
|
|
203
80
|
export const UserSchema = z.lazy(() => z.object({ "bio": z.string().optional(), "city": z.string().optional(), "country": z.string().optional(), "custom_pronouns": z.string().optional(), "email": z.string().optional(), "locale": z.string().optional(), "mobile": z.string().optional(), "mobile_prefix": z.string().optional(), "name": z.string().optional(), "pronouns": PronounsTypeSchema.optional(), "t": z.number().optional(), "timezone": z.string().optional() }).strict());
|
|
204
81
|
export const TenantUserSchema = z.lazy(() => z.object({ "AuthUserID": z.string().optional(), "CreatedAt": z.string().optional(), "DeletedAt": SqlNullTimeSchema.optional(), "Email": z.string().optional(), "HashID": z.string().optional(), "ID": z.number().optional(), "IDCardNumber": z.string().optional(), "IsAdmin": z.boolean().optional(), "JoinAt": z.string().optional(), "KioskUserOnly": z.boolean().optional(), "Mobile": z.string().optional(), "Name": z.string().optional(), "StaffID": z.string().optional(), "Status": z.number().optional(), "Tenant": TenantSchema.optional(), "TenantID": z.number().optional(), "UpdatedAt": z.string().optional(), "User": UserSchema.optional(), "UserID": z.number().optional() }).strict());
|
|
205
82
|
export const UserProfileUpdateReqVOSchema = z.lazy(() => z.object({ "Changed": z.record(z.string(), z.boolean()).optional(), "TenantUser": TenantUserSchema.optional(), "User": UserSchema.optional() }).strict());
|
|
206
|
-
export const InlineSchema3Schema = z.lazy(() => z.object({ "name": z.string() }).strict());
|
|
207
|
-
export const InlineSchema4Schema = z.lazy(() => z.object({ "policy_id": z.string(), "selection": z.any(), "tag_names": z.array(z.string()) }).strict());
|
|
208
|
-
export const InlineSchema5Schema = z.lazy(() => z.object({ "policy_id": z.string(), "selection": z.any() }).strict());
|
|
209
|
-
export const InlineSchema6Schema = z.lazy(() => z.object({ "policy_id": z.string(), "tags": z.array(z.string()) }).strict());
|
|
210
83
|
export const generatedRequestTypes = [
|
|
211
84
|
"AppCreateByTenantsReqVO",
|
|
212
85
|
"AppCreateEntityReqVO",
|
|
213
|
-
"AppCreateEntityShareReqVO",
|
|
214
|
-
"AppDeleteEntityShareReqVO",
|
|
215
86
|
"AppIngressCreateReqVO",
|
|
216
|
-
"AppIngressUpdateBlocksReqVO",
|
|
217
87
|
"AppIngressUpdateReqVO",
|
|
218
|
-
"AppNewWidgetsReqVO",
|
|
219
|
-
"AppPreviewWidgetsDataReqVO",
|
|
220
|
-
"AppRenameReqVO",
|
|
221
|
-
"AppSaveSiteMapsReqVO",
|
|
222
88
|
"AppUpdateAppReqVO",
|
|
223
|
-
"AppUpdateI18nReqVO",
|
|
224
|
-
"AppUpdateWidgetsIngressOptionsReqVO",
|
|
225
|
-
"AppUpdateWidgetsReqVO",
|
|
226
|
-
"AutomateRuleCreateReqVO",
|
|
227
|
-
"AutomateRuleUpdateReqVO",
|
|
228
|
-
"ChangePasswordReqVO",
|
|
229
|
-
"CommonQueryFormVO",
|
|
230
|
-
"CopilotSendMessageReqVO",
|
|
231
|
-
"DashboardCreateReqVO",
|
|
232
|
-
"DashboardUpdateLayoutReqVO",
|
|
233
|
-
"DashboardUpdateOptionsReqVO",
|
|
234
|
-
"DashboardUpdateTitleReqVO",
|
|
235
|
-
"DatasetCreateDatasetReqVO",
|
|
236
|
-
"DatasetCreateNodeReqVO",
|
|
237
|
-
"DatasetImportReqVO",
|
|
238
|
-
"DatasetMoveReqVO",
|
|
239
|
-
"DatasetUpdateReqVO",
|
|
240
|
-
"DepartmentsAddActorReqVO",
|
|
241
|
-
"DepartmentsAddReqVO",
|
|
242
|
-
"DepartmentsCreateServiceAccountReqVO",
|
|
243
|
-
"DepartmentsDeleteActorReqVO",
|
|
244
|
-
"DepartmentsEmployeeAccountChangePasswordReqVO",
|
|
245
|
-
"DepartmentsEmployeeAccountCreateReqVO",
|
|
246
|
-
"DepartmentsGetOrganizationUsersReqVO",
|
|
247
|
-
"DepartmentsInviteCodeHistoryReqVO",
|
|
248
|
-
"DepartmentsInviteCodeSwitchReqVO",
|
|
249
|
-
"DepartmentsInviteOneByOneReqVO",
|
|
250
|
-
"DepartmentsMakeLinkReqVO",
|
|
251
|
-
"DepartmentsRelocateReqVO",
|
|
252
|
-
"DepartmentsRenameReqVO",
|
|
253
|
-
"DepartmentsResendInviteReqVO",
|
|
254
|
-
"DepartmentsSetDeptPolicyReqVO",
|
|
255
|
-
"DepartmentsUpdateUserReqVO",
|
|
256
|
-
"DeveloperClientCreateReqVO",
|
|
257
|
-
"DeveloperClientUpdateReqVO",
|
|
258
|
-
"DeveloperHookletCreateReqVO",
|
|
259
|
-
"DeveloperHookletUpdateReqVO",
|
|
260
|
-
"EntityAIImportConfigReqVO",
|
|
261
|
-
"EntityAddCommentReqVO",
|
|
262
89
|
"EntityBulkUpdateReqVO",
|
|
263
|
-
"EntityBulkUpdateSaveAsReqVO",
|
|
264
|
-
"EntityCloneReqVO",
|
|
265
|
-
"EntityDebugInvokeHookReqVO",
|
|
266
|
-
"EntityDelCommentReqVO",
|
|
267
90
|
"EntityDoActionReqVO",
|
|
268
|
-
"EntityDoFsmActionReqVO",
|
|
269
|
-
"EntityExportReqVO",
|
|
270
|
-
"EntityImportPrepareReqVO",
|
|
271
|
-
"EntityImportReqVO & EntityImportActionVO",
|
|
272
|
-
"EntityInvokeBatchOperatorReqVO & InvokeRequestVO",
|
|
273
|
-
"EntityKioskFlowCreateReqVO",
|
|
274
|
-
"EntityKioskFlowUpdateReqVO",
|
|
275
|
-
"EntityPrintTemplatesCreateReqVO",
|
|
276
|
-
"EntityPrintTemplatesUpdateReqVO",
|
|
277
|
-
"EntityPutQueryKeeperReqVO",
|
|
278
|
-
"EntityQueryFilterReqVO",
|
|
279
|
-
"EntityQueryLinkToValuesReqVO",
|
|
280
91
|
"EntityQueryRelationReqVO",
|
|
281
92
|
"EntityQueryReqVO",
|
|
282
|
-
"
|
|
93
|
+
"EntityResolveWorkflowReqVO",
|
|
283
94
|
"EntitySaveNameReqVO",
|
|
284
95
|
"EntitySaveReqVO",
|
|
285
96
|
"EntitySelectionActionReqVO",
|
|
286
|
-
"EntitySerialInitValReqVO",
|
|
287
|
-
"EntityTestNotificationReqVO",
|
|
288
|
-
"EntityUpdateButtonsReqVO",
|
|
289
|
-
"EntityUpdateNotificationsReqVO",
|
|
290
|
-
"EntityUpdateOptionsReqVO",
|
|
291
97
|
"EntityUpdateReqVO",
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"GetOrganizationTreeReqVO",
|
|
296
|
-
"GetOrganizationUsersReqVO",
|
|
297
|
-
"GetSubformItemsReqVO",
|
|
98
|
+
"EntityWorkflowApproveUsersReqVO",
|
|
99
|
+
"EntityWorkflowDeployReqVO",
|
|
100
|
+
"EntityWorkflowUpdateReqVO",
|
|
298
101
|
"GetUploadTokenReqVO",
|
|
299
|
-
"GlobalActionAcceptInvitationLinkReqVO",
|
|
300
|
-
"GlobalActionAcceptInvitationReqVO",
|
|
301
|
-
"GlobalActionCreateTenantReqVO",
|
|
302
|
-
"GlobalActionEmailVerifyReqVO",
|
|
303
|
-
"GlobalActionEmailVerifyResendReqVO",
|
|
304
|
-
"GlobalActionProfileSetEmailReqVO",
|
|
305
|
-
"GlobalActionSetDefaultTenantReqVO",
|
|
306
|
-
"IngressSetOptionsTabberReqVO",
|
|
307
|
-
"InsertPrepareReqVO",
|
|
308
102
|
"InsertReqVO",
|
|
309
|
-
"InvokeRequestVO",
|
|
310
103
|
"MobileUploadCheckReqVO",
|
|
311
104
|
"MobileUploadReqVO",
|
|
312
|
-
"PrintTemplateBackgroundUploadReqVO",
|
|
313
|
-
"TenantConfigGetReqVO",
|
|
314
|
-
"TenantConfigUpdateAuthBgImageReqVO",
|
|
315
|
-
"TenantConfigUpdateAuthReqVO",
|
|
316
|
-
"TenantConfigUpdateEmailReqVO",
|
|
317
|
-
"TenantConfigUpdateIconReqVO",
|
|
318
|
-
"TenantConfigUpdateLogoReqVO",
|
|
319
|
-
"TenantConfigUpdateMetaReqVO",
|
|
320
|
-
"TenantConfigUpdateNameReqVO",
|
|
321
|
-
"TenantConfigUpdateReqVO",
|
|
322
|
-
"TenantCreateCustomDomainReqVO",
|
|
323
|
-
"TenantKioskGroupCreateReqVO",
|
|
324
|
-
"TenantKioskGroupQueryReqVO",
|
|
325
|
-
"TenantKioskGroupUpdateReqVO",
|
|
326
|
-
"TenantVerifyCustomDomainOwnerReqVO",
|
|
327
|
-
"UpdateAvatarReqVO",
|
|
328
105
|
"UploadPreviewReqVO",
|
|
329
|
-
"UserFlowQueryReqVO",
|
|
330
106
|
"UserProfileUpdateReqVO",
|
|
331
|
-
"{ name: string }",
|
|
332
|
-
"{ policy_id: string selection: any tag_names: string[] }",
|
|
333
|
-
"{ policy_id: string selection: any }",
|
|
334
|
-
"{ policy_id: string tags: string[] }",
|
|
335
107
|
];
|
|
336
108
|
export const bodySchemas = {
|
|
337
109
|
"AppCreateByTenantsReqVO": AppCreateByTenantsReqVOSchema,
|
|
338
110
|
"AppCreateEntityReqVO": AppCreateEntityReqVOSchema,
|
|
339
|
-
"AppCreateEntityShareReqVO": AppCreateEntityShareReqVOSchema,
|
|
340
|
-
"AppDeleteEntityShareReqVO": AppDeleteEntityShareReqVOSchema,
|
|
341
111
|
"AppIngressCreateReqVO": AppIngressCreateReqVOSchema,
|
|
342
|
-
"AppIngressUpdateBlocksReqVO": AppIngressUpdateBlocksReqVOSchema,
|
|
343
112
|
"AppIngressUpdateReqVO": AppIngressUpdateReqVOSchema,
|
|
344
|
-
"AppNewWidgetsReqVO": AppNewWidgetsReqVOSchema,
|
|
345
|
-
"AppPreviewWidgetsDataReqVO": AppPreviewWidgetsDataReqVOSchema,
|
|
346
|
-
"AppRenameReqVO": AppRenameReqVOSchema,
|
|
347
|
-
"AppSaveSiteMapsReqVO": AppSaveSiteMapsReqVOSchema,
|
|
348
113
|
"AppUpdateAppReqVO": AppUpdateAppReqVOSchema,
|
|
349
|
-
"AppUpdateI18nReqVO": AppUpdateI18nReqVOSchema,
|
|
350
|
-
"AppUpdateWidgetsIngressOptionsReqVO": AppUpdateWidgetsIngressOptionsReqVOSchema,
|
|
351
|
-
"AppUpdateWidgetsReqVO": AppUpdateWidgetsReqVOSchema,
|
|
352
|
-
"AutomateRuleCreateReqVO": AutomateRuleCreateReqVOSchema,
|
|
353
|
-
"AutomateRuleUpdateReqVO": AutomateRuleUpdateReqVOSchema,
|
|
354
|
-
"ChangePasswordReqVO": ChangePasswordReqVOSchema,
|
|
355
|
-
"CommonQueryFormVO": CommonQueryFormVOSchema,
|
|
356
|
-
"CopilotSendMessageReqVO": CopilotSendMessageReqVOSchema,
|
|
357
|
-
"DashboardCreateReqVO": DashboardCreateReqVOSchema,
|
|
358
|
-
"DashboardUpdateLayoutReqVO": DashboardUpdateLayoutReqVOSchema,
|
|
359
|
-
"DashboardUpdateOptionsReqVO": DashboardUpdateOptionsReqVOSchema,
|
|
360
|
-
"DashboardUpdateTitleReqVO": DashboardUpdateTitleReqVOSchema,
|
|
361
|
-
"DatasetCreateDatasetReqVO": DatasetCreateDatasetReqVOSchema,
|
|
362
|
-
"DatasetCreateNodeReqVO": DatasetCreateNodeReqVOSchema,
|
|
363
|
-
"DatasetImportReqVO": DatasetImportReqVOSchema,
|
|
364
|
-
"DatasetMoveReqVO": DatasetMoveReqVOSchema,
|
|
365
|
-
"DatasetUpdateReqVO": DatasetUpdateReqVOSchema,
|
|
366
|
-
"DepartmentsAddActorReqVO": DepartmentsAddActorReqVOSchema,
|
|
367
|
-
"DepartmentsAddReqVO": DepartmentsAddReqVOSchema,
|
|
368
|
-
"DepartmentsCreateServiceAccountReqVO": DepartmentsCreateServiceAccountReqVOSchema,
|
|
369
|
-
"DepartmentsDeleteActorReqVO": DepartmentsDeleteActorReqVOSchema,
|
|
370
|
-
"DepartmentsEmployeeAccountChangePasswordReqVO": DepartmentsEmployeeAccountChangePasswordReqVOSchema,
|
|
371
|
-
"DepartmentsEmployeeAccountCreateReqVO": DepartmentsEmployeeAccountCreateReqVOSchema,
|
|
372
|
-
"DepartmentsGetOrganizationUsersReqVO": DepartmentsGetOrganizationUsersReqVOSchema,
|
|
373
|
-
"DepartmentsInviteCodeHistoryReqVO": DepartmentsInviteCodeHistoryReqVOSchema,
|
|
374
|
-
"DepartmentsInviteCodeSwitchReqVO": DepartmentsInviteCodeSwitchReqVOSchema,
|
|
375
|
-
"DepartmentsInviteOneByOneReqVO": DepartmentsInviteOneByOneReqVOSchema,
|
|
376
|
-
"DepartmentsMakeLinkReqVO": DepartmentsMakeLinkReqVOSchema,
|
|
377
|
-
"DepartmentsRelocateReqVO": DepartmentsRelocateReqVOSchema,
|
|
378
|
-
"DepartmentsRenameReqVO": DepartmentsRenameReqVOSchema,
|
|
379
|
-
"DepartmentsResendInviteReqVO": DepartmentsResendInviteReqVOSchema,
|
|
380
|
-
"DepartmentsSetDeptPolicyReqVO": DepartmentsSetDeptPolicyReqVOSchema,
|
|
381
|
-
"DepartmentsUpdateUserReqVO": DepartmentsUpdateUserReqVOSchema,
|
|
382
|
-
"DeveloperClientCreateReqVO": DeveloperClientCreateReqVOSchema,
|
|
383
|
-
"DeveloperClientUpdateReqVO": DeveloperClientUpdateReqVOSchema,
|
|
384
|
-
"DeveloperHookletCreateReqVO": DeveloperHookletCreateReqVOSchema,
|
|
385
|
-
"DeveloperHookletUpdateReqVO": DeveloperHookletUpdateReqVOSchema,
|
|
386
|
-
"EntityAIImportConfigReqVO": EntityAIImportConfigReqVOSchema,
|
|
387
|
-
"EntityAddCommentReqVO": EntityAddCommentReqVOSchema,
|
|
388
114
|
"EntityBulkUpdateReqVO": EntityBulkUpdateReqVOSchema,
|
|
389
|
-
"EntityBulkUpdateSaveAsReqVO": EntityBulkUpdateSaveAsReqVOSchema,
|
|
390
|
-
"EntityCloneReqVO": EntityCloneReqVOSchema,
|
|
391
|
-
"EntityDebugInvokeHookReqVO": EntityDebugInvokeHookReqVOSchema,
|
|
392
|
-
"EntityDelCommentReqVO": EntityDelCommentReqVOSchema,
|
|
393
115
|
"EntityDoActionReqVO": EntityDoActionReqVOSchema,
|
|
394
|
-
"EntityDoFsmActionReqVO": EntityDoFsmActionReqVOSchema,
|
|
395
|
-
"EntityExportReqVO": EntityExportReqVOSchema,
|
|
396
|
-
"EntityImportPrepareReqVO": EntityImportPrepareReqVOSchema,
|
|
397
|
-
"EntityImportReqVO & EntityImportActionVO": InlineSchema1Schema,
|
|
398
|
-
"EntityInvokeBatchOperatorReqVO & InvokeRequestVO": InlineSchema2Schema,
|
|
399
|
-
"EntityKioskFlowCreateReqVO": EntityKioskFlowCreateReqVOSchema,
|
|
400
|
-
"EntityKioskFlowUpdateReqVO": EntityKioskFlowUpdateReqVOSchema,
|
|
401
|
-
"EntityPrintTemplatesCreateReqVO": EntityPrintTemplatesCreateReqVOSchema,
|
|
402
|
-
"EntityPrintTemplatesUpdateReqVO": EntityPrintTemplatesUpdateReqVOSchema,
|
|
403
|
-
"EntityPutQueryKeeperReqVO": EntityPutQueryKeeperReqVOSchema,
|
|
404
|
-
"EntityQueryFilterReqVO": EntityQueryFilterReqVOSchema,
|
|
405
|
-
"EntityQueryLinkToValuesReqVO": EntityQueryLinkToValuesReqVOSchema,
|
|
406
116
|
"EntityQueryRelationReqVO": EntityQueryRelationReqVOSchema,
|
|
407
117
|
"EntityQueryReqVO": EntityQueryReqVOSchema,
|
|
408
|
-
"
|
|
118
|
+
"EntityResolveWorkflowReqVO": EntityResolveWorkflowReqVOSchema,
|
|
409
119
|
"EntitySaveNameReqVO": EntitySaveNameReqVOSchema,
|
|
410
120
|
"EntitySaveReqVO": EntitySaveReqVOSchema,
|
|
411
121
|
"EntitySelectionActionReqVO": EntitySelectionActionReqVOSchema,
|
|
412
|
-
"EntitySerialInitValReqVO": EntitySerialInitValReqVOSchema,
|
|
413
|
-
"EntityTestNotificationReqVO": EntityTestNotificationReqVOSchema,
|
|
414
|
-
"EntityUpdateButtonsReqVO": EntityUpdateButtonsReqVOSchema,
|
|
415
|
-
"EntityUpdateNotificationsReqVO": EntityUpdateNotificationsReqVOSchema,
|
|
416
|
-
"EntityUpdateOptionsReqVO": EntityUpdateOptionsReqVOSchema,
|
|
417
122
|
"EntityUpdateReqVO": EntityUpdateReqVOSchema,
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"
|
|
421
|
-
"GetOrganizationTreeReqVO": GetOrganizationTreeReqVOSchema,
|
|
422
|
-
"GetOrganizationUsersReqVO": GetOrganizationUsersReqVOSchema,
|
|
423
|
-
"GetSubformItemsReqVO": GetSubformItemsReqVOSchema,
|
|
123
|
+
"EntityWorkflowApproveUsersReqVO": EntityWorkflowApproveUsersReqVOSchema,
|
|
124
|
+
"EntityWorkflowDeployReqVO": EntityWorkflowDeployReqVOSchema,
|
|
125
|
+
"EntityWorkflowUpdateReqVO": EntityWorkflowUpdateReqVOSchema,
|
|
424
126
|
"GetUploadTokenReqVO": GetUploadTokenReqVOSchema,
|
|
425
|
-
"GlobalActionAcceptInvitationLinkReqVO": GlobalActionAcceptInvitationLinkReqVOSchema,
|
|
426
|
-
"GlobalActionAcceptInvitationReqVO": GlobalActionAcceptInvitationReqVOSchema,
|
|
427
|
-
"GlobalActionCreateTenantReqVO": GlobalActionCreateTenantReqVOSchema,
|
|
428
|
-
"GlobalActionEmailVerifyReqVO": GlobalActionEmailVerifyReqVOSchema,
|
|
429
|
-
"GlobalActionEmailVerifyResendReqVO": GlobalActionEmailVerifyResendReqVOSchema,
|
|
430
|
-
"GlobalActionProfileSetEmailReqVO": GlobalActionProfileSetEmailReqVOSchema,
|
|
431
|
-
"GlobalActionSetDefaultTenantReqVO": GlobalActionSetDefaultTenantReqVOSchema,
|
|
432
|
-
"IngressSetOptionsTabberReqVO": IngressSetOptionsTabberReqVOSchema,
|
|
433
|
-
"InsertPrepareReqVO": InsertPrepareReqVOSchema,
|
|
434
127
|
"InsertReqVO": InsertReqVOSchema,
|
|
435
|
-
"InvokeRequestVO": InvokeRequestVOSchema,
|
|
436
128
|
"MobileUploadCheckReqVO": MobileUploadCheckReqVOSchema,
|
|
437
129
|
"MobileUploadReqVO": MobileUploadReqVOSchema,
|
|
438
|
-
"PrintTemplateBackgroundUploadReqVO": PrintTemplateBackgroundUploadReqVOSchema,
|
|
439
|
-
"TenantConfigGetReqVO": TenantConfigGetReqVOSchema,
|
|
440
|
-
"TenantConfigUpdateAuthBgImageReqVO": TenantConfigUpdateAuthBgImageReqVOSchema,
|
|
441
|
-
"TenantConfigUpdateAuthReqVO": TenantConfigUpdateAuthReqVOSchema,
|
|
442
|
-
"TenantConfigUpdateEmailReqVO": TenantConfigUpdateEmailReqVOSchema,
|
|
443
|
-
"TenantConfigUpdateIconReqVO": TenantConfigUpdateIconReqVOSchema,
|
|
444
|
-
"TenantConfigUpdateLogoReqVO": TenantConfigUpdateLogoReqVOSchema,
|
|
445
|
-
"TenantConfigUpdateMetaReqVO": TenantConfigUpdateMetaReqVOSchema,
|
|
446
|
-
"TenantConfigUpdateNameReqVO": TenantConfigUpdateNameReqVOSchema,
|
|
447
|
-
"TenantConfigUpdateReqVO": TenantConfigUpdateReqVOSchema,
|
|
448
|
-
"TenantCreateCustomDomainReqVO": TenantCreateCustomDomainReqVOSchema,
|
|
449
|
-
"TenantKioskGroupCreateReqVO": TenantKioskGroupCreateReqVOSchema,
|
|
450
|
-
"TenantKioskGroupQueryReqVO": TenantKioskGroupQueryReqVOSchema,
|
|
451
|
-
"TenantKioskGroupUpdateReqVO": TenantKioskGroupUpdateReqVOSchema,
|
|
452
|
-
"TenantVerifyCustomDomainOwnerReqVO": TenantVerifyCustomDomainOwnerReqVOSchema,
|
|
453
|
-
"UpdateAvatarReqVO": UpdateAvatarReqVOSchema,
|
|
454
130
|
"UploadPreviewReqVO": UploadPreviewReqVOSchema,
|
|
455
|
-
"UserFlowQueryReqVO": UserFlowQueryReqVOSchema,
|
|
456
131
|
"UserProfileUpdateReqVO": UserProfileUpdateReqVOSchema,
|
|
457
|
-
"{ name: string }": InlineSchema3Schema,
|
|
458
|
-
"{ policy_id: string selection: any tag_names: string[] }": InlineSchema4Schema,
|
|
459
|
-
"{ policy_id: string selection: any }": InlineSchema5Schema,
|
|
460
|
-
"{ policy_id: string tags: string[] }": InlineSchema6Schema,
|
|
461
132
|
};
|
|
462
133
|
export const unsupportedBodySchemas = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body_loader.d.ts","sourceRoot":"","sources":["../../src/runtime/body_loader.ts"],"names":[],"mappings":"AAWA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"body_loader.d.ts","sourceRoot":"","sources":["../../src/runtime/body_loader.ts"],"names":[],"mappings":"AAWA,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,OAAO,GAAG,SAAS,CAe9F;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAQ3G"}
|
|
@@ -10,6 +10,18 @@ function parseJSONFile(filePath, label) {
|
|
|
10
10
|
}
|
|
11
11
|
export function loadBodyFromFlags(flags) {
|
|
12
12
|
const bodyFile = typeof flags['body-file'] === 'string' ? flags['body-file'] : undefined;
|
|
13
|
+
const bodyJSON = typeof flags['body-json'] === 'string' ? flags['body-json'] : undefined;
|
|
14
|
+
if (bodyFile && bodyJSON) {
|
|
15
|
+
throw new CLIError('BODY_JSON_CONFLICT', 'use either --body-file or --body-json, not both', 2);
|
|
16
|
+
}
|
|
17
|
+
if (bodyJSON !== undefined) {
|
|
18
|
+
try {
|
|
19
|
+
return JSON.parse(bodyJSON);
|
|
20
|
+
}
|
|
21
|
+
catch {
|
|
22
|
+
throw new CLIError('INVALID_BODY_JSON', 'body json is invalid', 2);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
13
25
|
if (!bodyFile)
|
|
14
26
|
return undefined;
|
|
15
27
|
return parseJSONFile(bodyFile, 'body');
|