@activepieces/shared 0.41.1 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -4
- package/src/index.js +0 -4
- package/src/index.js.map +1 -1
- package/src/lib/automation/agents/index.d.ts +104 -118
- package/src/lib/automation/agents/index.js +22 -22
- package/src/lib/automation/agents/index.js.map +1 -1
- package/src/lib/automation/agents/tools.d.ts +141 -141
- package/src/lib/automation/agents/tools.js +30 -31
- package/src/lib/automation/agents/tools.js.map +1 -1
- package/src/lib/automation/app-connection/app-connection.d.ts +40 -42
- package/src/lib/automation/app-connection/app-connection.js +6 -8
- package/src/lib/automation/app-connection/app-connection.js.map +1 -1
- package/src/lib/automation/app-connection/dto/read-app-connection-request.d.ts +28 -28
- package/src/lib/automation/app-connection/dto/read-app-connection-request.js +15 -14
- package/src/lib/automation/app-connection/dto/read-app-connection-request.js.map +1 -1
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.d.ts +365 -365
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js +61 -102
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js.map +1 -1
- package/src/lib/automation/engine/engine-operation.d.ts +21 -21
- package/src/lib/automation/engine/engine-operation.js +14 -14
- package/src/lib/automation/engine/engine-operation.js.map +1 -1
- package/src/lib/automation/engine/execution-errors.d.ts +3 -0
- package/src/lib/automation/engine/execution-errors.js +7 -1
- package/src/lib/automation/engine/execution-errors.js.map +1 -1
- package/src/lib/automation/engine/requests.d.ts +88 -88
- package/src/lib/automation/engine/requests.js +35 -35
- package/src/lib/automation/engine/requests.js.map +1 -1
- package/src/lib/automation/flow-run/dto/list-flow-runs-request.d.ts +15 -15
- package/src/lib/automation/flow-run/dto/list-flow-runs-request.js +13 -12
- package/src/lib/automation/flow-run/dto/list-flow-runs-request.js.map +1 -1
- package/src/lib/automation/flow-run/execution/execution-output.d.ts +5 -4
- package/src/lib/automation/flow-run/execution/execution-output.js +4 -4
- package/src/lib/automation/flow-run/execution/execution-output.js.map +1 -1
- package/src/lib/automation/flow-run/execution/flow-execution.d.ts +55 -54
- package/src/lib/automation/flow-run/execution/flow-execution.js +24 -22
- package/src/lib/automation/flow-run/execution/flow-execution.js.map +1 -1
- package/src/lib/automation/flow-run/flow-run.d.ts +54 -56
- package/src/lib/automation/flow-run/flow-run.js +12 -12
- package/src/lib/automation/flow-run/flow-run.js.map +1 -1
- package/src/lib/automation/flow-run/test-flow-run-request.d.ts +43 -43
- package/src/lib/automation/flow-run/test-flow-run-request.js +31 -31
- package/src/lib/automation/flow-run/test-flow-run-request.js.map +1 -1
- package/src/lib/automation/flows/actions/action.d.ts +483 -571
- package/src/lib/automation/flows/actions/action.js +113 -118
- package/src/lib/automation/flows/actions/action.js.map +1 -1
- package/src/lib/automation/flows/dto/count-flows-request.d.ts +6 -6
- package/src/lib/automation/flows/dto/count-flows-request.js +4 -4
- package/src/lib/automation/flows/dto/count-flows-request.js.map +1 -1
- package/src/lib/automation/flows/dto/create-flow-request.d.ts +10 -11
- package/src/lib/automation/flows/dto/create-flow-request.js +8 -8
- package/src/lib/automation/flows/dto/create-flow-request.js.map +1 -1
- package/src/lib/automation/flows/dto/flow-mcp.requests.d.ts +7 -7
- package/src/lib/automation/flows/dto/flow-mcp.requests.js +5 -5
- package/src/lib/automation/flows/dto/flow-mcp.requests.js.map +1 -1
- package/src/lib/automation/flows/dto/list-flows-request.d.ts +23 -23
- package/src/lib/automation/flows/dto/list-flows-request.js +18 -17
- package/src/lib/automation/flows/dto/list-flows-request.js.map +1 -1
- package/src/lib/automation/flows/flow-version.d.ts +88 -90
- package/src/lib/automation/flows/flow-version.js +3 -3
- package/src/lib/automation/flows/flow-version.js.map +1 -1
- package/src/lib/automation/flows/flow.d.ts +135 -143
- package/src/lib/automation/flows/flow.js +9 -15
- package/src/lib/automation/flows/flow.js.map +1 -1
- package/src/lib/automation/flows/folders/folder-requests.d.ts +20 -20
- package/src/lib/automation/flows/folders/folder-requests.js +12 -12
- package/src/lib/automation/flows/folders/folder-requests.js.map +1 -1
- package/src/lib/automation/flows/folders/folder.d.ts +10 -10
- package/src/lib/automation/flows/folders/folder.js +2 -2
- package/src/lib/automation/flows/folders/folder.js.map +1 -1
- package/src/lib/automation/flows/form.d.ts +49 -49
- package/src/lib/automation/flows/form.js +22 -22
- package/src/lib/automation/flows/form.js.map +1 -1
- package/src/lib/automation/flows/note.d.ts +18 -18
- package/src/lib/automation/flows/note.js +14 -14
- package/src/lib/automation/flows/note.js.map +1 -1
- package/src/lib/automation/flows/operations/add-action.js +2 -3
- package/src/lib/automation/flows/operations/add-action.js.map +1 -1
- package/src/lib/automation/flows/operations/index.d.ts +1117 -1133
- package/src/lib/automation/flows/operations/index.js +132 -178
- package/src/lib/automation/flows/operations/index.js.map +1 -1
- package/src/lib/automation/flows/operations/paste-operations.d.ts +205 -217
- package/src/lib/automation/flows/operations/update-action.js +2 -3
- package/src/lib/automation/flows/operations/update-action.js.map +1 -1
- package/src/lib/automation/flows/operations/update-trigger.js +2 -3
- package/src/lib/automation/flows/operations/update-trigger.js.map +1 -1
- package/src/lib/automation/flows/properties/property.d.ts +6 -6
- package/src/lib/automation/flows/properties/property.js +4 -4
- package/src/lib/automation/flows/properties/property.js.map +1 -1
- package/src/lib/automation/flows/sample-data/index.d.ts +46 -46
- package/src/lib/automation/flows/sample-data/index.js +31 -33
- package/src/lib/automation/flows/sample-data/index.js.map +1 -1
- package/src/lib/automation/flows/step-file/step-file.d.ts +16 -16
- package/src/lib/automation/flows/step-file/step-file.js +10 -10
- package/src/lib/automation/flows/step-file/step-file.js.map +1 -1
- package/src/lib/automation/flows/test-trigger.d.ts +13 -13
- package/src/lib/automation/flows/test-trigger.js +4 -4
- package/src/lib/automation/flows/test-trigger.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.d.ts +18 -18
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js +10 -13
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.d.ts +14 -14
- package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js +8 -8
- package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger-run.d.ts +11 -11
- package/src/lib/automation/flows/triggers/trigger-run.js +7 -7
- package/src/lib/automation/flows/triggers/trigger-run.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger.d.ts +82 -82
- package/src/lib/automation/flows/triggers/trigger.js +15 -15
- package/src/lib/automation/flows/triggers/trigger.js.map +1 -1
- package/src/lib/automation/flows/util/flow-structure-util.d.ts +5 -5
- package/src/lib/automation/forms/index.d.ts +42 -42
- package/src/lib/automation/forms/index.js +21 -21
- package/src/lib/automation/forms/index.js.map +1 -1
- package/src/lib/automation/mcp/mcp.d.ts +105 -109
- package/src/lib/automation/mcp/mcp.js +7 -7
- package/src/lib/automation/mcp/mcp.js.map +1 -1
- package/src/lib/automation/mcp/pieces/mcp-piece.d.ts +24 -24
- package/src/lib/automation/mcp/pieces/mcp-piece.js +14 -14
- package/src/lib/automation/mcp/pieces/mcp-piece.js.map +1 -1
- package/src/lib/automation/pieces/dto/piece-requests.d.ts +67 -67
- package/src/lib/automation/pieces/dto/piece-requests.js +47 -58
- package/src/lib/automation/pieces/dto/piece-requests.js.map +1 -1
- package/src/lib/automation/pieces/piece.d.ts +56 -56
- package/src/lib/automation/pieces/piece.js +21 -21
- package/src/lib/automation/pieces/piece.js.map +1 -1
- package/src/lib/automation/project-release/project-release.d.ts +27 -27
- package/src/lib/automation/project-release/project-release.js +2 -2
- package/src/lib/automation/project-release/project-release.js.map +1 -1
- package/src/lib/automation/project-release/project-release.request.d.ts +65 -65
- package/src/lib/automation/project-release/project-release.request.js +25 -25
- package/src/lib/automation/project-release/project-release.request.js.map +1 -1
- package/src/lib/automation/project-release/project-state.d.ts +1246 -1286
- package/src/lib/automation/project-release/project-state.js +73 -73
- package/src/lib/automation/project-release/project-state.js.map +1 -1
- package/src/lib/automation/tables/cell.d.ts +11 -11
- package/src/lib/automation/tables/cell.js +2 -2
- package/src/lib/automation/tables/cell.js.map +1 -1
- package/src/lib/automation/tables/dto/fields.dto.d.ts +26 -26
- package/src/lib/automation/tables/dto/fields.dto.js +18 -18
- package/src/lib/automation/tables/dto/fields.dto.js.map +1 -1
- package/src/lib/automation/tables/dto/records.dto.d.ts +40 -40
- package/src/lib/automation/tables/dto/records.dto.js +26 -25
- package/src/lib/automation/tables/dto/records.dto.js.map +1 -1
- package/src/lib/automation/tables/dto/tables.dto.d.ts +55 -55
- package/src/lib/automation/tables/dto/tables.dto.js +32 -31
- package/src/lib/automation/tables/dto/tables.dto.js.map +1 -1
- package/src/lib/automation/tables/field.d.ts +26 -26
- package/src/lib/automation/tables/field.js +5 -5
- package/src/lib/automation/tables/field.js.map +1 -1
- package/src/lib/automation/tables/record.d.ts +23 -23
- package/src/lib/automation/tables/record.js +7 -13
- package/src/lib/automation/tables/record.js.map +1 -1
- package/src/lib/automation/tables/table-webhook.d.ts +11 -11
- package/src/lib/automation/tables/table-webhook.js +2 -2
- package/src/lib/automation/tables/table-webhook.js.map +1 -1
- package/src/lib/automation/tables/table.d.ts +49 -49
- package/src/lib/automation/tables/table.js +5 -8
- package/src/lib/automation/tables/table.js.map +1 -1
- package/src/lib/automation/trigger/index.d.ts +32 -32
- package/src/lib/automation/trigger/index.js +9 -9
- package/src/lib/automation/trigger/index.js.map +1 -1
- package/src/lib/automation/webhook/dto.d.ts +5 -5
- package/src/lib/automation/webhook/dto.js +2 -2
- package/src/lib/automation/webhook/dto.js.map +1 -1
- package/src/lib/automation/websocket/index.d.ts +6 -6
- package/src/lib/automation/websocket/index.js +4 -4
- package/src/lib/automation/websocket/index.js.map +1 -1
- package/src/lib/automation/workers/index.d.ts +365 -367
- package/src/lib/automation/workers/index.js +75 -75
- package/src/lib/automation/workers/index.js.map +1 -1
- package/src/lib/automation/workers/job-data.d.ts +773 -781
- package/src/lib/automation/workers/job-data.js +106 -106
- package/src/lib/automation/workers/job-data.js.map +1 -1
- package/src/lib/automation/workers/queue-metrics.d.ts +25 -25
- package/src/lib/automation/workers/queue-metrics.js +11 -11
- package/src/lib/automation/workers/queue-metrics.js.map +1 -1
- package/src/lib/core/authentication/dto/authentication-response.d.ts +25 -25
- package/src/lib/core/authentication/dto/authentication-response.js +6 -10
- package/src/lib/core/authentication/dto/authentication-response.js.map +1 -1
- package/src/lib/core/authentication/dto/sign-in-request.d.ts +6 -6
- package/src/lib/core/authentication/dto/sign-in-request.js +2 -2
- package/src/lib/core/authentication/dto/sign-in-request.js.map +1 -1
- package/src/lib/core/authentication/dto/sign-up-request.d.ts +14 -14
- package/src/lib/core/authentication/dto/sign-up-request.js +7 -11
- package/src/lib/core/authentication/dto/sign-up-request.js.map +1 -1
- package/src/lib/core/authentication/user-identity.d.ts +17 -17
- package/src/lib/core/authentication/user-identity.js +2 -2
- package/src/lib/core/authentication/user-identity.js.map +1 -1
- package/src/lib/core/common/activepieces-error.d.ts +6 -1
- package/src/lib/core/common/activepieces-error.js +1 -0
- package/src/lib/core/common/activepieces-error.js.map +1 -1
- package/src/lib/core/common/base-model.d.ts +9 -22
- package/src/lib/core/common/base-model.js +12 -21
- package/src/lib/core/common/base-model.js.map +1 -1
- package/src/lib/core/common/color.d.ts +3 -3
- package/src/lib/core/common/color.js +2 -4
- package/src/lib/core/common/color.js.map +1 -1
- package/src/lib/core/common/id-generator.d.ts +3 -3
- package/src/lib/core/common/id-generator.js +2 -4
- package/src/lib/core/common/id-generator.js.map +1 -1
- package/src/lib/core/common/metadata.d.ts +3 -3
- package/src/lib/core/common/metadata.js +2 -2
- package/src/lib/core/common/metadata.js.map +1 -1
- package/src/lib/core/common/multipart-file.d.ts +8 -8
- package/src/lib/core/common/multipart-file.js +6 -6
- package/src/lib/core/common/multipart-file.js.map +1 -1
- package/src/lib/core/common/seek-page.d.ts +2 -2
- package/src/lib/core/common/seek-page.js +5 -5
- package/src/lib/core/common/seek-page.js.map +1 -1
- package/src/lib/core/federated-authn/index.d.ts +50 -50
- package/src/lib/core/federated-authn/index.js +20 -20
- package/src/lib/core/federated-authn/index.js.map +1 -1
- package/src/lib/core/file/index.d.ts +17 -17
- package/src/lib/core/file/index.js +2 -2
- package/src/lib/core/file/index.js.map +1 -1
- package/src/lib/core/flag/flag.requests.d.ts +5 -5
- package/src/lib/core/flag/flag.requests.js +3 -3
- package/src/lib/core/flag/flag.requests.js.map +1 -1
- package/src/lib/core/health/index.d.ts +8 -8
- package/src/lib/core/health/index.js +6 -6
- package/src/lib/core/health/index.js.map +1 -1
- package/src/lib/core/license-keys/index.d.ts +58 -58
- package/src/lib/core/license-keys/index.js +35 -35
- package/src/lib/core/license-keys/index.js.map +1 -1
- package/src/lib/core/store-entry/dto/store-entry-request.d.ts +14 -14
- package/src/lib/core/store-entry/dto/store-entry-request.js +8 -10
- package/src/lib/core/store-entry/dto/store-entry-request.js.map +1 -1
- package/src/lib/core/tag/index.d.ts +32 -32
- package/src/lib/core/tag/index.js +11 -11
- package/src/lib/core/tag/index.js.map +1 -1
- package/src/lib/core/user/badges/index.d.ts +9 -9
- package/src/lib/core/user/badges/index.js +2 -2
- package/src/lib/core/user/badges/index.js.map +1 -1
- package/src/lib/core/user/index.d.ts +13 -13
- package/src/lib/core/user/index.js +9 -9
- package/src/lib/core/user/index.js.map +1 -1
- package/src/lib/core/user/user.d.ts +62 -62
- package/src/lib/core/user/user.js +27 -32
- package/src/lib/core/user/user.js.map +1 -1
- package/src/lib/ee/alerts/alerts-dto.d.ts +10 -10
- package/src/lib/ee/alerts/alerts-dto.js +2 -2
- package/src/lib/ee/alerts/alerts-dto.js.map +1 -1
- package/src/lib/ee/alerts/alerts-requests.d.ts +13 -13
- package/src/lib/ee/alerts/alerts-requests.js +7 -7
- package/src/lib/ee/alerts/alerts-requests.js.map +1 -1
- package/src/lib/ee/api-key/index.d.ts +37 -37
- package/src/lib/ee/api-key/index.js +8 -11
- package/src/lib/ee/api-key/index.js.map +1 -1
- package/src/lib/ee/audit-events/index.d.ts +1499 -1487
- package/src/lib/ee/audit-events/index.js +140 -113
- package/src/lib/ee/audit-events/index.js.map +1 -1
- package/src/lib/ee/authn/enterprise-local-authn/requests.d.ts +21 -21
- package/src/lib/ee/authn/enterprise-local-authn/requests.js +9 -12
- package/src/lib/ee/authn/enterprise-local-authn/requests.js.map +1 -1
- package/src/lib/ee/billing/index.d.ts +23 -23
- package/src/lib/ee/billing/index.js +15 -15
- package/src/lib/ee/billing/index.js.map +1 -1
- package/src/lib/ee/custom-domains/index.d.ts +19 -19
- package/src/lib/ee/custom-domains/index.js +7 -9
- package/src/lib/ee/custom-domains/index.js.map +1 -1
- package/src/lib/ee/event-destinations/dto.d.ts +20 -20
- package/src/lib/ee/event-destinations/dto.js +9 -9
- package/src/lib/ee/event-destinations/dto.js.map +1 -1
- package/src/lib/ee/event-destinations/index.d.ts +29 -29
- package/src/lib/ee/event-destinations/index.js +5 -5
- package/src/lib/ee/event-destinations/index.js.map +1 -1
- package/src/lib/ee/git-repo/index.d.ts +63 -63
- package/src/lib/ee/git-repo/index.js +22 -38
- package/src/lib/ee/git-repo/index.js.map +1 -1
- package/src/lib/ee/managed-authn/managed-authn-requests.d.ts +5 -5
- package/src/lib/ee/managed-authn/managed-authn-requests.js +4 -4
- package/src/lib/ee/managed-authn/managed-authn-requests.js.map +1 -1
- package/src/lib/ee/oauth-apps/oauth-app.d.ts +21 -21
- package/src/lib/ee/oauth-apps/oauth-app.js +9 -9
- package/src/lib/ee/oauth-apps/oauth-app.js.map +1 -1
- package/src/lib/ee/otp/otp-model.d.ts +11 -11
- package/src/lib/ee/otp/otp-model.js +2 -2
- package/src/lib/ee/otp/otp-model.js.map +1 -1
- package/src/lib/ee/otp/otp-requests.d.ts +6 -6
- package/src/lib/ee/otp/otp-requests.js +4 -4
- package/src/lib/ee/otp/otp-requests.js.map +1 -1
- package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.d.ts +50 -50
- package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js +24 -24
- package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js.map +1 -1
- package/src/lib/ee/product-embed/connection-keys/connection-requests.d.ts +46 -46
- package/src/lib/ee/product-embed/connection-keys/connection-requests.js +24 -24
- package/src/lib/ee/product-embed/connection-keys/connection-requests.js.map +1 -1
- package/src/lib/ee/project-members/project-member-request.d.ts +24 -24
- package/src/lib/ee/project-members/project-member-request.js +14 -14
- package/src/lib/ee/project-members/project-member-request.js.map +1 -1
- package/src/lib/ee/project-members/project-member.d.ts +49 -49
- package/src/lib/ee/project-members/project-member.js +6 -8
- package/src/lib/ee/project-members/project-member.js.map +1 -1
- package/src/lib/ee/scim/index.d.ts +167 -172
- package/src/lib/ee/scim/index.js +79 -79
- package/src/lib/ee/scim/index.js.map +1 -1
- package/src/lib/ee/secret-managers/dto.d.ts +59 -59
- package/src/lib/ee/secret-managers/dto.js +28 -29
- package/src/lib/ee/secret-managers/dto.js.map +1 -1
- package/src/lib/ee/secret-managers/index.d.ts +160 -208
- package/src/lib/ee/secret-managers/index.js +27 -27
- package/src/lib/ee/secret-managers/index.js.map +1 -1
- package/src/lib/ee/signing-key/signing-key-model.d.ts +11 -11
- package/src/lib/ee/signing-key/signing-key-model.js +3 -3
- package/src/lib/ee/signing-key/signing-key-model.js.map +1 -1
- package/src/lib/ee/signing-key/signing-key.request.d.ts +5 -5
- package/src/lib/ee/signing-key/signing-key.request.js +3 -3
- package/src/lib/ee/signing-key/signing-key.request.js.map +1 -1
- package/src/lib/management/ai-providers/index.d.ts +412 -419
- package/src/lib/management/ai-providers/index.js +74 -84
- package/src/lib/management/ai-providers/index.js.map +1 -1
- package/src/lib/management/analytics/index.d.ts +91 -91
- package/src/lib/management/analytics/index.js +29 -29
- package/src/lib/management/analytics/index.js.map +1 -1
- package/src/lib/management/invitations/index.d.ts +71 -71
- package/src/lib/management/invitations/index.js +23 -23
- package/src/lib/management/invitations/index.js.map +1 -1
- package/src/lib/management/platform/platform.model.d.ts +264 -270
- package/src/lib/management/platform/platform.model.js +39 -41
- package/src/lib/management/platform/platform.model.js.map +1 -1
- package/src/lib/management/platform/platform.request.d.ts +66 -66
- package/src/lib/management/platform/platform.request.js +28 -30
- package/src/lib/management/platform/platform.request.js.map +1 -1
- package/src/lib/management/project/project-requests.d.ts +32 -34
- package/src/lib/management/project/project-requests.js +23 -27
- package/src/lib/management/project/project-requests.js.map +1 -1
- package/src/lib/management/project/project.d.ts +118 -124
- package/src/lib/management/project/project.js +26 -31
- package/src/lib/management/project/project.js.map +1 -1
- package/src/lib/management/project-role/project-role.d.ts +12 -12
- package/src/lib/management/project-role/project-role.js +2 -2
- package/src/lib/management/project-role/project-role.js.map +1 -1
- package/src/lib/management/project-role/project-role.request.d.ts +17 -17
- package/src/lib/management/project-role/project-role.request.js +11 -15
- package/src/lib/management/project-role/project-role.request.js.map +1 -1
- package/src/lib/management/template/flow-template/flow-template.request.d.ts +5 -5
- package/src/lib/management/template/flow-template/flow-template.request.js +3 -3
- package/src/lib/management/template/flow-template/flow-template.request.js.map +1 -1
- package/src/lib/management/template/template-telemetry.d.ts +21 -21
- package/src/lib/management/template/template-telemetry.js +20 -21
- package/src/lib/management/template/template-telemetry.js.map +1 -1
- package/src/lib/management/template/template.d.ts +282 -286
- package/src/lib/management/template/template.js +44 -20
- package/src/lib/management/template/template.js.map +1 -1
- package/src/lib/management/template/template.requests.d.ts +219 -225
- package/src/lib/management/template/template.requests.js +26 -26
- package/src/lib/management/template/template.requests.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-action.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/operations/update-action.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"update-action.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/operations/update-action.ts"],"names":[],"mappings":";;AA0ES,sCAAa;AA1EtB,iDAA4C;AAC5C,8CAAkF;AAElF,qEAA+D;AAG/D,SAAS,aAAa,CAAC,WAAwB,EAAE,OAA4B;IACzE,OAAO,uCAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,YAAY,EAAE,EAAE;QAChE,IAAI,YAAY,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;YACrC,OAAO,YAAY,CAAA;QACvB,CAAC;QAED,MAAM,SAAS,GAA6B;YACxC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,kCACD,YAAY,CAAC,QAAQ,KACxB,aAAa,EAAE,OAAO,CAAC,QAAQ,CAAC,aAAa,GAChD;SACJ,CAAA;QAED,IAAI,aAAyB,CAAA;QAC7B,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,uBAAc,CAAC,IAAI,CAAC,CAAC,CAAC;gBACvB,aAAa,mCACN,SAAS,KACZ,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,IAAI,EAAE,uBAAc,CAAC,IAAI,EACzB,UAAU,EAAE,YAAY,CAAC,UAAU,GACtC,CAAA;gBACD,MAAK;YACT,CAAC;YACD,KAAK,uBAAc,CAAC,KAAK,CAAC,CAAC,CAAC;gBACxB,aAAa,mCACN,SAAS,KACZ,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,IAAI,EAAE,uBAAc,CAAC,KAAK,EAC1B,UAAU,EAAE,YAAY,CAAC,UAAU,GACtC,CAAA;gBACD,MAAK;YACT,CAAC;YACD,KAAK,uBAAc,CAAC,aAAa,CAAC,CAAC,CAAC;gBAChC,aAAa,mCACN,SAAS,KACZ,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,IAAI,EAAE,uBAAc,CAAC,aAAa,EAClC,eAAe,EAAE,iBAAiB,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,EAC7F,UAAU,EAAE,YAAY,CAAC,UAAU,GACtC,CAAA;gBACD,MAAK;YACT,CAAC;YAED,KAAK,uBAAc,CAAC,MAAM,CAAC,CAAC,CAAC;gBACzB,aAAa,mCACN,SAAS,KACZ,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,IAAI,EAAE,uBAAc,CAAC,MAAM,EAC3B,UAAU,EAAE,YAAY,CAAC,UAAU,EACnC,QAAQ,EAAE,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,GAC9E,CAAA;gBACD,MAAK;YACT,CAAC;QACL,CAAC;QACD,MAAM,WAAW,GAAG,2BAAkB,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;QAC/D,MAAM,KAAK,GAAG,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,OAAO,CAAA;QAClF,uCACO,aAAa,KAChB,KAAK,IACR;IACL,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports._updateTrigger = _updateTrigger;
|
|
4
|
-
const compiler_1 = require("@sinclair/typebox/compiler");
|
|
5
4
|
const common_1 = require("../../../core/common");
|
|
6
5
|
const trigger_1 = require("../triggers/trigger");
|
|
7
6
|
const flow_structure_util_1 = require("../util/flow-structure-util");
|
|
8
|
-
const triggerSchemaValidation = compiler_1.TypeCompiler.Compile(trigger_1.FlowTrigger);
|
|
9
7
|
function createTrigger(name, request, nextAction) {
|
|
10
8
|
const baseProperties = {
|
|
11
9
|
displayName: request.displayName,
|
|
@@ -22,7 +20,8 @@ function createTrigger(name, request, nextAction) {
|
|
|
22
20
|
trigger = Object.assign(Object.assign({}, baseProperties), { type: trigger_1.FlowTriggerType.PIECE, settings: request.settings });
|
|
23
21
|
break;
|
|
24
22
|
}
|
|
25
|
-
const
|
|
23
|
+
const parseResult = trigger_1.FlowTrigger.safeParse(trigger);
|
|
24
|
+
const valid = ((0, common_1.isNil)(request.valid) ? true : request.valid) && parseResult.success;
|
|
26
25
|
return Object.assign(Object.assign({}, trigger), { valid });
|
|
27
26
|
}
|
|
28
27
|
function _updateTrigger(flowVersion, request) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-trigger.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/operations/update-trigger.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"update-trigger.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/operations/update-trigger.ts"],"names":[],"mappings":";;AAkDS,wCAAc;AAlDvB,iDAA4C;AAG5C,iDAAkE;AAClE,qEAA+D;AAG/D,SAAS,aAAa,CAAC,IAAY,EAAE,OAA6B,EAAE,UAAkC;IAClG,MAAM,cAAc,GAAG;QACnB,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,IAAI;QACJ,KAAK,EAAE,KAAK;QACZ,UAAU;KACb,CAAA;IACD,IAAI,OAAoB,CAAA;IACxB,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,yBAAe,CAAC,KAAK;YACtB,OAAO,mCACA,cAAc,KACjB,IAAI,EAAE,yBAAe,CAAC,KAAK,EAC3B,QAAQ,EAAE,OAAO,CAAC,QAAQ,GAC7B,CAAA;YACD,MAAK;QACT,KAAK,yBAAe,CAAC,KAAK;YACtB,OAAO,mCACA,cAAc,KACjB,IAAI,EAAE,yBAAe,CAAC,KAAK,EAC3B,QAAQ,EAAE,OAAO,CAAC,QAAQ,GAC7B,CAAA;YACD,MAAK;IACb,CAAC;IACD,MAAM,WAAW,GAAG,qBAAW,CAAC,SAAS,CAAC,OAAO,CAAC,CAAA;IAClD,MAAM,KAAK,GAAG,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,OAAO,CAAA;IAClF,uCACO,OAAO,KACV,KAAK,IACR;AACL,CAAC;AAED,SAAS,cAAc,CAAC,WAAwB,EAAE,OAA6B;IAC3E,MAAM,OAAO,GAAG,uCAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;IACnF,MAAM,cAAc,GAAG,aAAa,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;IAC/E,OAAO,uCAAiB,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,UAAU,EAAE,EAAE;QAC9D,IAAI,UAAU,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC;YACnC,OAAO,cAAc,CAAA;QACzB,CAAC;QACD,OAAO,UAAU,CAAA;IACrB,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum PropertyExecutionType {
|
|
3
3
|
MANUAL = "MANUAL",
|
|
4
4
|
DYNAMIC = "DYNAMIC"
|
|
5
5
|
}
|
|
6
|
-
export declare const PropertySettings:
|
|
7
|
-
type:
|
|
8
|
-
schema:
|
|
9
|
-
}>;
|
|
10
|
-
export type PropertySettings =
|
|
6
|
+
export declare const PropertySettings: z.ZodObject<{
|
|
7
|
+
type: z.ZodEnum<typeof PropertyExecutionType>;
|
|
8
|
+
schema: z.ZodOptional<z.ZodAny>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type PropertySettings = z.infer<typeof PropertySettings>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PropertySettings = exports.PropertyExecutionType = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
var PropertyExecutionType;
|
|
6
6
|
(function (PropertyExecutionType) {
|
|
7
7
|
PropertyExecutionType["MANUAL"] = "MANUAL";
|
|
8
8
|
PropertyExecutionType["DYNAMIC"] = "DYNAMIC";
|
|
9
9
|
})(PropertyExecutionType || (exports.PropertyExecutionType = PropertyExecutionType = {}));
|
|
10
|
-
exports.PropertySettings =
|
|
11
|
-
type:
|
|
12
|
-
schema:
|
|
10
|
+
exports.PropertySettings = zod_1.z.object({
|
|
11
|
+
type: zod_1.z.nativeEnum(PropertyExecutionType),
|
|
12
|
+
schema: zod_1.z.any().optional(),
|
|
13
13
|
});
|
|
14
14
|
//# sourceMappingURL=property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/properties/property.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/properties/property.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,4CAAmB,CAAA;AACvB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC;AAEY,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,qBAAqB,CAAC;IACzC,MAAM,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum SampleDataFileType {
|
|
3
3
|
INPUT = "INPUT",
|
|
4
4
|
OUTPUT = "OUTPUT"
|
|
@@ -8,49 +8,49 @@ export declare enum SampleDataDataType {
|
|
|
8
8
|
JSON = "JSON",
|
|
9
9
|
STRING = "STRING"
|
|
10
10
|
}
|
|
11
|
-
export declare const SaveSampleDataRequest:
|
|
12
|
-
stepName:
|
|
13
|
-
payload:
|
|
14
|
-
type:
|
|
15
|
-
}>;
|
|
16
|
-
export type SaveSampleDataRequest =
|
|
17
|
-
export declare const GetSampleDataRequest:
|
|
18
|
-
flowId:
|
|
19
|
-
flowVersionId:
|
|
20
|
-
stepName:
|
|
21
|
-
projectId:
|
|
22
|
-
type:
|
|
23
|
-
}>;
|
|
24
|
-
export type GetSampleDataRequest =
|
|
25
|
-
export declare const CreateStepRunRequestBody:
|
|
26
|
-
projectId:
|
|
27
|
-
flowVersionId:
|
|
28
|
-
stepName:
|
|
29
|
-
}>;
|
|
30
|
-
export type CreateStepRunRequestBody =
|
|
31
|
-
export declare const StepRunResponse:
|
|
32
|
-
runId:
|
|
33
|
-
success:
|
|
34
|
-
input:
|
|
35
|
-
output:
|
|
36
|
-
sampleDataFileId:
|
|
37
|
-
sampleDataInputFileId:
|
|
38
|
-
standardError:
|
|
39
|
-
standardOutput:
|
|
40
|
-
}>;
|
|
41
|
-
export type StepRunResponse =
|
|
42
|
-
export declare const StepExecutionPath:
|
|
43
|
-
export type StepExecutionPath =
|
|
44
|
-
export declare const SampleDataSetting:
|
|
45
|
-
sampleDataFileId:
|
|
46
|
-
sampleDataInputFileId:
|
|
47
|
-
lastTestDate:
|
|
48
|
-
}>;
|
|
49
|
-
export type SampleDataSettings =
|
|
11
|
+
export declare const SaveSampleDataRequest: z.ZodObject<{
|
|
12
|
+
stepName: z.ZodString;
|
|
13
|
+
payload: z.ZodUnknown;
|
|
14
|
+
type: z.ZodEnum<typeof SampleDataFileType>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type SaveSampleDataRequest = z.infer<typeof SaveSampleDataRequest>;
|
|
17
|
+
export declare const GetSampleDataRequest: z.ZodObject<{
|
|
18
|
+
flowId: z.ZodString;
|
|
19
|
+
flowVersionId: z.ZodString;
|
|
20
|
+
stepName: z.ZodString;
|
|
21
|
+
projectId: z.ZodString;
|
|
22
|
+
type: z.ZodEnum<typeof SampleDataFileType>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type GetSampleDataRequest = z.infer<typeof GetSampleDataRequest>;
|
|
25
|
+
export declare const CreateStepRunRequestBody: z.ZodObject<{
|
|
26
|
+
projectId: z.ZodString;
|
|
27
|
+
flowVersionId: z.ZodString;
|
|
28
|
+
stepName: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type CreateStepRunRequestBody = z.infer<typeof CreateStepRunRequestBody>;
|
|
31
|
+
export declare const StepRunResponse: z.ZodObject<{
|
|
32
|
+
runId: z.ZodString;
|
|
33
|
+
success: z.ZodBoolean;
|
|
34
|
+
input: z.ZodUnknown;
|
|
35
|
+
output: z.ZodUnknown;
|
|
36
|
+
sampleDataFileId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
sampleDataInputFileId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
standardError: z.ZodString;
|
|
39
|
+
standardOutput: z.ZodString;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type StepRunResponse = z.infer<typeof StepRunResponse>;
|
|
42
|
+
export declare const StepExecutionPath: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodNumber], null>>;
|
|
43
|
+
export type StepExecutionPath = z.infer<typeof StepExecutionPath>;
|
|
44
|
+
export declare const SampleDataSetting: z.ZodObject<{
|
|
45
|
+
sampleDataFileId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
sampleDataInputFileId: z.ZodOptional<z.ZodString>;
|
|
47
|
+
lastTestDate: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
|
+
export type SampleDataSettings = z.infer<typeof SampleDataSetting>;
|
|
50
50
|
export declare const DEFAULT_SAMPLE_DATA_SETTINGS: SampleDataSettings;
|
|
51
|
-
export declare const SaveSampleDataResponse:
|
|
52
|
-
type:
|
|
53
|
-
id:
|
|
54
|
-
size:
|
|
55
|
-
}>;
|
|
56
|
-
export type SaveSampleDataResponse =
|
|
51
|
+
export declare const SaveSampleDataResponse: z.ZodObject<{
|
|
52
|
+
type: z.ZodEnum<typeof import("../../../core/file").FileType>;
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
export type SaveSampleDataResponse = z.infer<typeof SaveSampleDataResponse>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SaveSampleDataResponse = exports.DEFAULT_SAMPLE_DATA_SETTINGS = exports.SampleDataSetting = exports.StepExecutionPath = exports.StepRunResponse = exports.CreateStepRunRequestBody = exports.GetSampleDataRequest = exports.SaveSampleDataRequest = exports.SampleDataDataType = exports.DATA_TYPE_KEY_IN_FILE_METADATA = exports.SampleDataFileType = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const file_1 = require("../../../core/file");
|
|
6
6
|
var SampleDataFileType;
|
|
7
7
|
(function (SampleDataFileType) {
|
|
@@ -14,44 +14,42 @@ var SampleDataDataType;
|
|
|
14
14
|
SampleDataDataType["JSON"] = "JSON";
|
|
15
15
|
SampleDataDataType["STRING"] = "STRING";
|
|
16
16
|
})(SampleDataDataType || (exports.SampleDataDataType = SampleDataDataType = {}));
|
|
17
|
-
exports.SaveSampleDataRequest =
|
|
18
|
-
stepName:
|
|
19
|
-
payload:
|
|
20
|
-
type:
|
|
17
|
+
exports.SaveSampleDataRequest = zod_1.z.object({
|
|
18
|
+
stepName: zod_1.z.string(),
|
|
19
|
+
payload: zod_1.z.unknown(),
|
|
20
|
+
type: zod_1.z.nativeEnum(SampleDataFileType),
|
|
21
21
|
});
|
|
22
|
-
exports.GetSampleDataRequest =
|
|
23
|
-
flowId:
|
|
24
|
-
flowVersionId:
|
|
25
|
-
stepName:
|
|
26
|
-
projectId:
|
|
27
|
-
type:
|
|
22
|
+
exports.GetSampleDataRequest = zod_1.z.object({
|
|
23
|
+
flowId: zod_1.z.string(),
|
|
24
|
+
flowVersionId: zod_1.z.string(),
|
|
25
|
+
stepName: zod_1.z.string(),
|
|
26
|
+
projectId: zod_1.z.string(),
|
|
27
|
+
type: zod_1.z.nativeEnum(SampleDataFileType),
|
|
28
28
|
});
|
|
29
|
-
exports.CreateStepRunRequestBody =
|
|
30
|
-
projectId:
|
|
31
|
-
flowVersionId:
|
|
32
|
-
stepName:
|
|
29
|
+
exports.CreateStepRunRequestBody = zod_1.z.object({
|
|
30
|
+
projectId: zod_1.z.string(),
|
|
31
|
+
flowVersionId: zod_1.z.string(),
|
|
32
|
+
stepName: zod_1.z.string(),
|
|
33
33
|
});
|
|
34
|
-
exports.StepRunResponse =
|
|
35
|
-
runId:
|
|
36
|
-
success:
|
|
37
|
-
input:
|
|
38
|
-
output:
|
|
39
|
-
sampleDataFileId:
|
|
40
|
-
sampleDataInputFileId:
|
|
41
|
-
standardError:
|
|
42
|
-
standardOutput:
|
|
43
|
-
});
|
|
44
|
-
exports.StepExecutionPath = typebox_1.Type.Array(typebox_1.Type.Tuple([typebox_1.Type.String(), typebox_1.Type.Number()]));
|
|
45
|
-
exports.SampleDataSetting = typebox_1.Type.Object({
|
|
46
|
-
sampleDataFileId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
47
|
-
sampleDataInputFileId: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
48
|
-
lastTestDate: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
49
|
-
}, {
|
|
50
|
-
additionalProperties: true,
|
|
34
|
+
exports.StepRunResponse = zod_1.z.object({
|
|
35
|
+
runId: zod_1.z.string(),
|
|
36
|
+
success: zod_1.z.boolean(),
|
|
37
|
+
input: zod_1.z.unknown(),
|
|
38
|
+
output: zod_1.z.unknown(),
|
|
39
|
+
sampleDataFileId: zod_1.z.string().optional(),
|
|
40
|
+
sampleDataInputFileId: zod_1.z.string().optional(),
|
|
41
|
+
standardError: zod_1.z.string(),
|
|
42
|
+
standardOutput: zod_1.z.string(),
|
|
51
43
|
});
|
|
44
|
+
exports.StepExecutionPath = zod_1.z.array(zod_1.z.tuple([zod_1.z.string(), zod_1.z.number()]));
|
|
45
|
+
exports.SampleDataSetting = zod_1.z.object({
|
|
46
|
+
sampleDataFileId: zod_1.z.string().optional(),
|
|
47
|
+
sampleDataInputFileId: zod_1.z.string().optional(),
|
|
48
|
+
lastTestDate: zod_1.z.string().optional(),
|
|
49
|
+
}).passthrough();
|
|
52
50
|
exports.DEFAULT_SAMPLE_DATA_SETTINGS = {
|
|
53
51
|
sampleDataFileId: undefined,
|
|
54
52
|
sampleDataInputFileId: undefined,
|
|
55
53
|
};
|
|
56
|
-
exports.SaveSampleDataResponse =
|
|
54
|
+
exports.SaveSampleDataResponse = file_1.File.pick({ id: true, size: true, type: true });
|
|
57
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/sample-data/index.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/sample-data/index.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,6CAAyC;AAEzC,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,qCAAe,CAAA;IACf,uCAAiB,CAAA;AACrB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AAEY,QAAA,8BAA8B,GAAG,UAAU,CAAA;AAGxD,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC1B,mCAAa,CAAA;IACb,uCAAiB,CAAA;AACrB,CAAC,EAHW,kBAAkB,kCAAlB,kBAAkB,QAG7B;AACY,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;CACzC,CAAC,CAAA;AAGW,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC;CACzC,CAAC,CAAA;AAGW,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAIW,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE;IAClB,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE;IACnB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,qBAAqB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAA;AAIW,QAAA,iBAAiB,GAAG,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAA;AAE9D,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CACrC;IACI,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,qBAAqB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CACJ,CAAC,WAAW,EAAE,CAAA;AAIF,QAAA,4BAA4B,GAAuB;IAC5D,gBAAgB,EAAE,SAAS;IAC3B,qBAAqB,EAAE,SAAS;CACnC,CAAA;AAEY,QAAA,sBAAsB,GAAG,WAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAA"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const StepFileUpsertRequest:
|
|
3
|
-
flowId:
|
|
4
|
-
stepName:
|
|
5
|
-
file:
|
|
6
|
-
data:
|
|
7
|
-
}>>;
|
|
8
|
-
contentLength:
|
|
9
|
-
fileName:
|
|
10
|
-
}>;
|
|
11
|
-
export type StepFileUpsert =
|
|
12
|
-
export declare const StepFileUpsertResponse:
|
|
13
|
-
uploadUrl:
|
|
14
|
-
url:
|
|
15
|
-
}>;
|
|
16
|
-
export type StepFileUpsertResponse =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const StepFileUpsertRequest: z.ZodObject<{
|
|
3
|
+
flowId: z.ZodString;
|
|
4
|
+
stepName: z.ZodString;
|
|
5
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
data: z.ZodUnknown;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
contentLength: z.ZodNumber;
|
|
9
|
+
fileName: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type StepFileUpsert = z.infer<typeof StepFileUpsertRequest>;
|
|
12
|
+
export declare const StepFileUpsertResponse: z.ZodObject<{
|
|
13
|
+
uploadUrl: z.ZodOptional<z.ZodString>;
|
|
14
|
+
url: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type StepFileUpsertResponse = z.infer<typeof StepFileUpsertResponse>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StepFileUpsertResponse = exports.StepFileUpsertRequest = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../../../core/common");
|
|
6
|
-
exports.StepFileUpsertRequest =
|
|
7
|
-
flowId:
|
|
8
|
-
stepName:
|
|
9
|
-
file:
|
|
10
|
-
contentLength:
|
|
11
|
-
fileName:
|
|
6
|
+
exports.StepFileUpsertRequest = zod_1.z.object({
|
|
7
|
+
flowId: zod_1.z.string(),
|
|
8
|
+
stepName: zod_1.z.string(),
|
|
9
|
+
file: common_1.ApMultipartFile.pick({ data: true }).optional(),
|
|
10
|
+
contentLength: zod_1.z.number(),
|
|
11
|
+
fileName: zod_1.z.string(),
|
|
12
12
|
});
|
|
13
|
-
exports.StepFileUpsertResponse =
|
|
14
|
-
uploadUrl:
|
|
15
|
-
url:
|
|
13
|
+
exports.StepFileUpsertResponse = zod_1.z.object({
|
|
14
|
+
uploadUrl: zod_1.z.string().optional(),
|
|
15
|
+
url: zod_1.z.string(),
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=step-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-file.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/step-file/step-file.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"step-file.js","sourceRoot":"","sources":["../../../../../../src/lib/automation/flows/step-file/step-file.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,iDAAsD;AAEzC,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,wBAAe,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAIW,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum TriggerTestStrategy {
|
|
3
3
|
SIMULATION = "SIMULATION",
|
|
4
4
|
TEST_FUNCTION = "TEST_FUNCTION"
|
|
5
5
|
}
|
|
6
|
-
export declare const TestTriggerRequestBody:
|
|
7
|
-
projectId:
|
|
8
|
-
flowId:
|
|
9
|
-
flowVersionId:
|
|
10
|
-
testStrategy:
|
|
11
|
-
}>;
|
|
12
|
-
export type TestTriggerRequestBody =
|
|
13
|
-
export declare const CancelTestTriggerRequestBody:
|
|
14
|
-
projectId:
|
|
15
|
-
flowId:
|
|
16
|
-
}>;
|
|
17
|
-
export type CancelTestTriggerRequestBody =
|
|
6
|
+
export declare const TestTriggerRequestBody: z.ZodObject<{
|
|
7
|
+
projectId: z.ZodString;
|
|
8
|
+
flowId: z.ZodString;
|
|
9
|
+
flowVersionId: z.ZodString;
|
|
10
|
+
testStrategy: z.ZodEnum<typeof TriggerTestStrategy>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type TestTriggerRequestBody = z.infer<typeof TestTriggerRequestBody>;
|
|
13
|
+
export declare const CancelTestTriggerRequestBody: z.ZodObject<{
|
|
14
|
+
projectId: z.ZodString;
|
|
15
|
+
flowId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type CancelTestTriggerRequestBody = z.infer<typeof CancelTestTriggerRequestBody>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CancelTestTriggerRequestBody = exports.TestTriggerRequestBody = exports.TriggerTestStrategy = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const id_generator_1 = require("../../core/common/id-generator");
|
|
6
6
|
var TriggerTestStrategy;
|
|
7
7
|
(function (TriggerTestStrategy) {
|
|
8
8
|
TriggerTestStrategy["SIMULATION"] = "SIMULATION";
|
|
9
9
|
TriggerTestStrategy["TEST_FUNCTION"] = "TEST_FUNCTION";
|
|
10
10
|
})(TriggerTestStrategy || (exports.TriggerTestStrategy = TriggerTestStrategy = {}));
|
|
11
|
-
exports.TestTriggerRequestBody =
|
|
11
|
+
exports.TestTriggerRequestBody = zod_1.z.object({
|
|
12
12
|
projectId: id_generator_1.ApId,
|
|
13
13
|
flowId: id_generator_1.ApId,
|
|
14
14
|
flowVersionId: id_generator_1.ApId,
|
|
15
|
-
testStrategy:
|
|
15
|
+
testStrategy: zod_1.z.nativeEnum(TriggerTestStrategy),
|
|
16
16
|
});
|
|
17
|
-
exports.CancelTestTriggerRequestBody =
|
|
17
|
+
exports.CancelTestTriggerRequestBody = zod_1.z.object({
|
|
18
18
|
projectId: id_generator_1.ApId,
|
|
19
19
|
flowId: id_generator_1.ApId,
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-trigger.js","sourceRoot":"","sources":["../../../../../src/lib/automation/flows/test-trigger.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"test-trigger.js","sourceRoot":"","sources":["../../../../../src/lib/automation/flows/test-trigger.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,iEAAqD;AAErD,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,gDAAyB,CAAA;IACzB,sDAA+B,CAAA;AACnC,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAEY,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,SAAS,EAAE,mBAAI;IACf,MAAM,EAAE,mBAAI;IACZ,aAAa,EAAE,mBAAI;IACnB,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAClD,CAAC,CAAA;AAKW,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,SAAS,EAAE,mBAAI;IACf,MAAM,EAAE,mBAAI;CACf,CAAC,CAAA"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { BaseModel } from '../../../../core/common';
|
|
3
3
|
export type TriggerEventId = string;
|
|
4
|
-
export declare const TriggerEvent:
|
|
5
|
-
id:
|
|
6
|
-
projectId:
|
|
7
|
-
flowId:
|
|
8
|
-
sourceName:
|
|
9
|
-
fileId:
|
|
10
|
-
}>;
|
|
11
|
-
export type TriggerEvent =
|
|
12
|
-
export declare const TriggerEventWithPayload:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
flowId:
|
|
16
|
-
sourceName:
|
|
17
|
-
fileId:
|
|
18
|
-
payload:
|
|
19
|
-
}>;
|
|
20
|
-
export type TriggerEventWithPayload =
|
|
4
|
+
export declare const TriggerEvent: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
projectId: z.ZodString;
|
|
7
|
+
flowId: z.ZodString;
|
|
8
|
+
sourceName: z.ZodString;
|
|
9
|
+
fileId: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type TriggerEvent = z.infer<typeof TriggerEvent> & BaseModel<TriggerEventId>;
|
|
12
|
+
export declare const TriggerEventWithPayload: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
projectId: z.ZodString;
|
|
15
|
+
flowId: z.ZodString;
|
|
16
|
+
sourceName: z.ZodString;
|
|
17
|
+
fileId: z.ZodString;
|
|
18
|
+
payload: z.ZodUnknown;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type TriggerEventWithPayload = z.infer<typeof TriggerEventWithPayload>;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TriggerEventWithPayload = exports.TriggerEvent = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports.TriggerEvent =
|
|
6
|
-
id:
|
|
7
|
-
projectId:
|
|
8
|
-
flowId:
|
|
9
|
-
sourceName:
|
|
10
|
-
fileId:
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.TriggerEvent = zod_1.z.object({
|
|
6
|
+
id: zod_1.z.string(),
|
|
7
|
+
projectId: zod_1.z.string(),
|
|
8
|
+
flowId: zod_1.z.string(),
|
|
9
|
+
sourceName: zod_1.z.string(),
|
|
10
|
+
fileId: zod_1.z.string(),
|
|
11
|
+
});
|
|
12
|
+
exports.TriggerEventWithPayload = exports.TriggerEvent.extend({
|
|
13
|
+
payload: zod_1.z.unknown(),
|
|
11
14
|
});
|
|
12
|
-
exports.TriggerEventWithPayload = typebox_1.Type.Composite([
|
|
13
|
-
exports.TriggerEvent,
|
|
14
|
-
typebox_1.Type.Object({
|
|
15
|
-
payload: typebox_1.Type.Unknown(),
|
|
16
|
-
}),
|
|
17
|
-
]);
|
|
18
15
|
//# sourceMappingURL=trigger-event.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-event.js","sourceRoot":"","sources":["../../../../../../../src/lib/automation/flows/triggers/trigger-events/trigger-event.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"trigger-event.js","sourceRoot":"","sources":["../../../../../../../src/lib/automation/flows/triggers/trigger-events/trigger-event.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAKV,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAIW,QAAA,uBAAuB,GAAG,oBAAY,CAAC,MAAM,CAAC;IACvD,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { Cursor } from '../../../../core/common/seek-page';
|
|
3
3
|
import { FlowId } from '../../flow';
|
|
4
|
-
export declare const ListTriggerEventsRequest:
|
|
5
|
-
projectId:
|
|
6
|
-
flowId:
|
|
7
|
-
limit:
|
|
8
|
-
cursor:
|
|
9
|
-
}>;
|
|
10
|
-
export type ListTriggerEventsRequest = Omit<
|
|
4
|
+
export declare const ListTriggerEventsRequest: z.ZodObject<{
|
|
5
|
+
projectId: z.ZodString;
|
|
6
|
+
flowId: z.ZodString;
|
|
7
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
8
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type ListTriggerEventsRequest = Omit<z.infer<typeof ListTriggerEventsRequest>, 'flowId' | 'cursor'> & {
|
|
11
11
|
flowId: FlowId;
|
|
12
12
|
cursor: Cursor | undefined;
|
|
13
13
|
};
|
|
14
|
-
export declare const SaveTriggerEventRequest:
|
|
15
|
-
projectId:
|
|
16
|
-
flowId:
|
|
17
|
-
mockData:
|
|
18
|
-
}>;
|
|
19
|
-
export type SaveTriggerEventRequest =
|
|
14
|
+
export declare const SaveTriggerEventRequest: z.ZodObject<{
|
|
15
|
+
projectId: z.ZodString;
|
|
16
|
+
flowId: z.ZodString;
|
|
17
|
+
mockData: z.ZodUnknown;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type SaveTriggerEventRequest = z.infer<typeof SaveTriggerEventRequest>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SaveTriggerEventRequest = exports.ListTriggerEventsRequest = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const id_generator_1 = require("../../../../core/common/id-generator");
|
|
6
|
-
exports.ListTriggerEventsRequest =
|
|
6
|
+
exports.ListTriggerEventsRequest = zod_1.z.object({
|
|
7
7
|
projectId: id_generator_1.ApId,
|
|
8
|
-
flowId:
|
|
9
|
-
limit:
|
|
10
|
-
cursor:
|
|
8
|
+
flowId: zod_1.z.string(),
|
|
9
|
+
limit: zod_1.z.coerce.number().optional(),
|
|
10
|
+
cursor: zod_1.z.string().optional(),
|
|
11
11
|
});
|
|
12
|
-
exports.SaveTriggerEventRequest =
|
|
12
|
+
exports.SaveTriggerEventRequest = zod_1.z.object({
|
|
13
13
|
projectId: id_generator_1.ApId,
|
|
14
|
-
flowId:
|
|
15
|
-
mockData:
|
|
14
|
+
flowId: zod_1.z.string(),
|
|
15
|
+
mockData: zod_1.z.unknown(),
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=trigger-events-dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-events-dto.js","sourceRoot":"","sources":["../../../../../../../src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"trigger-events-dto.js","sourceRoot":"","sources":["../../../../../../../src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,uEAA2D;AAI9C,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,SAAS,EAAE,mBAAI;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA;AAOW,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,mBAAI;IACf,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAA"}
|