@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
|
@@ -14,10 +14,10 @@ export type PasteLocation = InsideBranchPasteLocation | OutsideBranchPasteLocati
|
|
|
14
14
|
export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion: FlowVersion, pastingDetails: PasteLocation) => ({
|
|
15
15
|
type: FlowOperationType.MOVE_ACTION;
|
|
16
16
|
request: {
|
|
17
|
-
branchIndex?: number | undefined;
|
|
18
|
-
stepLocationRelativeToNewParent?: StepLocationRelativeToParent | undefined;
|
|
19
17
|
name: string;
|
|
20
18
|
newParentStep: string;
|
|
19
|
+
stepLocationRelativeToNewParent?: StepLocationRelativeToParent | undefined;
|
|
20
|
+
branchIndex?: number | undefined;
|
|
21
21
|
};
|
|
22
22
|
} | {
|
|
23
23
|
type: FlowOperationType.CHANGE_STATUS;
|
|
@@ -36,62 +36,59 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
36
36
|
};
|
|
37
37
|
} | {
|
|
38
38
|
type: FlowOperationType.LOCK_FLOW;
|
|
39
|
-
request:
|
|
39
|
+
request: Record<string, never>;
|
|
40
40
|
} | {
|
|
41
41
|
type: FlowOperationType.IMPORT_FLOW;
|
|
42
42
|
request: {
|
|
43
|
-
schemaVersion?: string | null | undefined;
|
|
44
|
-
notes?: {
|
|
45
|
-
ownerId?: string | null | undefined;
|
|
46
|
-
id: string;
|
|
47
|
-
content: string;
|
|
48
|
-
color: import("..").NoteColorVariant;
|
|
49
|
-
position: {
|
|
50
|
-
x: number;
|
|
51
|
-
y: number;
|
|
52
|
-
};
|
|
53
|
-
size: {
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
};
|
|
57
|
-
createdAt: string;
|
|
58
|
-
updatedAt: string;
|
|
59
|
-
}[] | null | undefined;
|
|
60
43
|
displayName: string;
|
|
61
44
|
trigger: {
|
|
62
|
-
nextAction?: any;
|
|
63
45
|
type: import("../triggers/trigger").FlowTriggerType.EMPTY;
|
|
64
|
-
name: string;
|
|
65
46
|
settings: any;
|
|
47
|
+
name: string;
|
|
66
48
|
valid: boolean;
|
|
67
49
|
displayName: string;
|
|
68
|
-
} | {
|
|
69
50
|
nextAction?: any;
|
|
51
|
+
} | {
|
|
70
52
|
type: import("../triggers/trigger").FlowTriggerType.PIECE;
|
|
71
|
-
name: string;
|
|
72
53
|
settings: {
|
|
73
|
-
|
|
54
|
+
propertySettings: Record<string, {
|
|
55
|
+
type: import("..").PropertyExecutionType;
|
|
56
|
+
schema?: any;
|
|
57
|
+
}>;
|
|
58
|
+
pieceName: string;
|
|
59
|
+
pieceVersion: string;
|
|
60
|
+
input: Record<string, any>;
|
|
74
61
|
sampleData?: {
|
|
62
|
+
[x: string]: unknown;
|
|
75
63
|
sampleDataFileId?: string | undefined;
|
|
76
64
|
sampleDataInputFileId?: string | undefined;
|
|
77
65
|
lastTestDate?: string | undefined;
|
|
78
66
|
} | undefined;
|
|
79
67
|
customLogoUrl?: string | undefined;
|
|
80
|
-
|
|
81
|
-
pieceVersion: string;
|
|
82
|
-
input: {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
};
|
|
85
|
-
propertySettings: {
|
|
86
|
-
[x: string]: {
|
|
87
|
-
schema?: any;
|
|
88
|
-
type: import("..").PropertyExecutionType;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
68
|
+
triggerName?: string | undefined;
|
|
91
69
|
};
|
|
70
|
+
name: string;
|
|
92
71
|
valid: boolean;
|
|
93
72
|
displayName: string;
|
|
73
|
+
nextAction?: any;
|
|
94
74
|
};
|
|
75
|
+
schemaVersion?: string | null | undefined;
|
|
76
|
+
notes?: {
|
|
77
|
+
id: string;
|
|
78
|
+
content: string;
|
|
79
|
+
color: import("..").NoteColorVariant;
|
|
80
|
+
position: {
|
|
81
|
+
x: number;
|
|
82
|
+
y: number;
|
|
83
|
+
};
|
|
84
|
+
size: {
|
|
85
|
+
width: number;
|
|
86
|
+
height: number;
|
|
87
|
+
};
|
|
88
|
+
createdAt: string;
|
|
89
|
+
updatedAt: string;
|
|
90
|
+
ownerId?: string | null | undefined;
|
|
91
|
+
}[] | null | undefined;
|
|
95
92
|
};
|
|
96
93
|
} | {
|
|
97
94
|
type: FlowOperationType.CHANGE_NAME;
|
|
@@ -106,64 +103,44 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
106
103
|
} | {
|
|
107
104
|
type: FlowOperationType.UPDATE_ACTION;
|
|
108
105
|
request: {
|
|
109
|
-
|
|
110
|
-
type: import("../actions/action").FlowActionType.ROUTER;
|
|
111
|
-
name: string;
|
|
106
|
+
type: import("../actions/action").FlowActionType.CODE;
|
|
112
107
|
settings: {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
sourceCode: {
|
|
109
|
+
packageJson: string;
|
|
110
|
+
code: string;
|
|
111
|
+
};
|
|
112
|
+
input: Record<string, any>;
|
|
113
|
+
errorHandlingOptions?: {
|
|
114
|
+
continueOnFailure?: {
|
|
115
|
+
value?: boolean | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
retryOnFailure?: {
|
|
118
|
+
value?: boolean | undefined;
|
|
119
|
+
} | undefined;
|
|
117
120
|
} | undefined;
|
|
118
|
-
customLogoUrl?: string | undefined;
|
|
119
|
-
branches: ({
|
|
120
|
-
conditions: ({
|
|
121
|
-
caseSensitive?: boolean | undefined;
|
|
122
|
-
operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
|
|
123
|
-
firstValue: string;
|
|
124
|
-
secondValue: string;
|
|
125
|
-
} | {
|
|
126
|
-
operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
|
|
127
|
-
firstValue: string;
|
|
128
|
-
secondValue: string;
|
|
129
|
-
} | {
|
|
130
|
-
operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
|
|
131
|
-
firstValue: string;
|
|
132
|
-
secondValue: string;
|
|
133
|
-
} | {
|
|
134
|
-
operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
|
|
135
|
-
firstValue: string;
|
|
136
|
-
})[][];
|
|
137
|
-
branchType: import("../actions/action").BranchExecutionType.CONDITION;
|
|
138
|
-
branchName: string;
|
|
139
|
-
} | {
|
|
140
|
-
branchType: import("../actions/action").BranchExecutionType.FALLBACK;
|
|
141
|
-
branchName: string;
|
|
142
|
-
})[];
|
|
143
|
-
executionType: import("../actions/action").RouterExecutionType;
|
|
144
|
-
};
|
|
145
|
-
valid: boolean;
|
|
146
|
-
displayName: string;
|
|
147
|
-
} | {
|
|
148
|
-
skip?: boolean | undefined;
|
|
149
|
-
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
150
|
-
name: string;
|
|
151
|
-
settings: {
|
|
152
121
|
sampleData?: {
|
|
122
|
+
[x: string]: unknown;
|
|
153
123
|
sampleDataFileId?: string | undefined;
|
|
154
124
|
sampleDataInputFileId?: string | undefined;
|
|
155
125
|
lastTestDate?: string | undefined;
|
|
156
126
|
} | undefined;
|
|
157
127
|
customLogoUrl?: string | undefined;
|
|
158
|
-
items: string;
|
|
159
128
|
};
|
|
129
|
+
name: string;
|
|
160
130
|
valid: boolean;
|
|
161
131
|
displayName: string;
|
|
162
|
-
} | {
|
|
163
132
|
skip?: boolean | undefined;
|
|
133
|
+
} | {
|
|
164
134
|
type: import("../actions/action").FlowActionType.PIECE;
|
|
165
|
-
name: string;
|
|
166
135
|
settings: {
|
|
136
|
+
propertySettings: Record<string, {
|
|
137
|
+
type: import("..").PropertyExecutionType;
|
|
138
|
+
schema?: any;
|
|
139
|
+
}>;
|
|
140
|
+
pieceName: string;
|
|
141
|
+
pieceVersion: string;
|
|
142
|
+
input: Record<string, unknown>;
|
|
143
|
+
actionName?: string | undefined;
|
|
167
144
|
errorHandlingOptions?: {
|
|
168
145
|
continueOnFailure?: {
|
|
169
146
|
value?: boolean | undefined;
|
|
@@ -173,121 +150,117 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
173
150
|
} | undefined;
|
|
174
151
|
} | undefined;
|
|
175
152
|
sampleData?: {
|
|
153
|
+
[x: string]: unknown;
|
|
176
154
|
sampleDataFileId?: string | undefined;
|
|
177
155
|
sampleDataInputFileId?: string | undefined;
|
|
178
156
|
lastTestDate?: string | undefined;
|
|
179
157
|
} | undefined;
|
|
180
158
|
customLogoUrl?: string | undefined;
|
|
181
|
-
actionName?: string | undefined;
|
|
182
|
-
pieceName: string;
|
|
183
|
-
pieceVersion: string;
|
|
184
|
-
input: {
|
|
185
|
-
[x: string]: unknown;
|
|
186
|
-
};
|
|
187
|
-
propertySettings: {
|
|
188
|
-
[x: string]: {
|
|
189
|
-
schema?: any;
|
|
190
|
-
type: import("..").PropertyExecutionType;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
159
|
};
|
|
160
|
+
name: string;
|
|
194
161
|
valid: boolean;
|
|
195
162
|
displayName: string;
|
|
196
|
-
} | {
|
|
197
163
|
skip?: boolean | undefined;
|
|
198
|
-
|
|
199
|
-
|
|
164
|
+
} | {
|
|
165
|
+
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
200
166
|
settings: {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
} | undefined;
|
|
167
|
+
items: string;
|
|
168
|
+
sampleData?: {
|
|
169
|
+
[x: string]: unknown;
|
|
170
|
+
sampleDataFileId?: string | undefined;
|
|
171
|
+
sampleDataInputFileId?: string | undefined;
|
|
172
|
+
lastTestDate?: string | undefined;
|
|
208
173
|
} | undefined;
|
|
174
|
+
customLogoUrl?: string | undefined;
|
|
175
|
+
};
|
|
176
|
+
name: string;
|
|
177
|
+
valid: boolean;
|
|
178
|
+
displayName: string;
|
|
179
|
+
skip?: boolean | undefined;
|
|
180
|
+
} | {
|
|
181
|
+
type: import("../actions/action").FlowActionType.ROUTER;
|
|
182
|
+
settings: {
|
|
183
|
+
branches: ({
|
|
184
|
+
conditions: ({
|
|
185
|
+
firstValue: string;
|
|
186
|
+
secondValue: string;
|
|
187
|
+
caseSensitive?: boolean | undefined;
|
|
188
|
+
operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
firstValue: string;
|
|
191
|
+
secondValue: string;
|
|
192
|
+
operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
|
|
193
|
+
} | {
|
|
194
|
+
firstValue: string;
|
|
195
|
+
secondValue: string;
|
|
196
|
+
operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
|
|
197
|
+
} | {
|
|
198
|
+
firstValue: string;
|
|
199
|
+
operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
|
|
200
|
+
})[][];
|
|
201
|
+
branchType: import("../actions/action").BranchExecutionType.CONDITION;
|
|
202
|
+
branchName: string;
|
|
203
|
+
} | {
|
|
204
|
+
branchType: import("../actions/action").BranchExecutionType.FALLBACK;
|
|
205
|
+
branchName: string;
|
|
206
|
+
})[];
|
|
207
|
+
executionType: import("../actions/action").RouterExecutionType;
|
|
209
208
|
sampleData?: {
|
|
209
|
+
[x: string]: unknown;
|
|
210
210
|
sampleDataFileId?: string | undefined;
|
|
211
211
|
sampleDataInputFileId?: string | undefined;
|
|
212
212
|
lastTestDate?: string | undefined;
|
|
213
213
|
} | undefined;
|
|
214
214
|
customLogoUrl?: string | undefined;
|
|
215
|
-
input: {
|
|
216
|
-
[x: string]: any;
|
|
217
|
-
};
|
|
218
|
-
sourceCode: {
|
|
219
|
-
packageJson: string;
|
|
220
|
-
code: string;
|
|
221
|
-
};
|
|
222
215
|
};
|
|
216
|
+
name: string;
|
|
223
217
|
valid: boolean;
|
|
224
218
|
displayName: string;
|
|
219
|
+
skip?: boolean | undefined;
|
|
225
220
|
};
|
|
226
221
|
} | {
|
|
227
222
|
type: FlowOperationType.ADD_ACTION;
|
|
228
223
|
request: {
|
|
229
|
-
stepLocationRelativeToParent?: StepLocationRelativeToParent | undefined;
|
|
230
|
-
branchIndex?: number | undefined;
|
|
231
224
|
parentStep: string;
|
|
232
225
|
action: {
|
|
233
|
-
|
|
234
|
-
type: import("../actions/action").FlowActionType.ROUTER;
|
|
235
|
-
name: string;
|
|
226
|
+
type: import("../actions/action").FlowActionType.CODE;
|
|
236
227
|
settings: {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
228
|
+
sourceCode: {
|
|
229
|
+
packageJson: string;
|
|
230
|
+
code: string;
|
|
231
|
+
};
|
|
232
|
+
input: Record<string, any>;
|
|
233
|
+
errorHandlingOptions?: {
|
|
234
|
+
continueOnFailure?: {
|
|
235
|
+
value?: boolean | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
retryOnFailure?: {
|
|
238
|
+
value?: boolean | undefined;
|
|
239
|
+
} | undefined;
|
|
241
240
|
} | undefined;
|
|
242
|
-
customLogoUrl?: string | undefined;
|
|
243
|
-
branches: ({
|
|
244
|
-
conditions: ({
|
|
245
|
-
caseSensitive?: boolean | undefined;
|
|
246
|
-
operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
|
|
247
|
-
firstValue: string;
|
|
248
|
-
secondValue: string;
|
|
249
|
-
} | {
|
|
250
|
-
operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
|
|
251
|
-
firstValue: string;
|
|
252
|
-
secondValue: string;
|
|
253
|
-
} | {
|
|
254
|
-
operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
|
|
255
|
-
firstValue: string;
|
|
256
|
-
secondValue: string;
|
|
257
|
-
} | {
|
|
258
|
-
operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
|
|
259
|
-
firstValue: string;
|
|
260
|
-
})[][];
|
|
261
|
-
branchType: import("../actions/action").BranchExecutionType.CONDITION;
|
|
262
|
-
branchName: string;
|
|
263
|
-
} | {
|
|
264
|
-
branchType: import("../actions/action").BranchExecutionType.FALLBACK;
|
|
265
|
-
branchName: string;
|
|
266
|
-
})[];
|
|
267
|
-
executionType: import("../actions/action").RouterExecutionType;
|
|
268
|
-
};
|
|
269
|
-
valid: boolean;
|
|
270
|
-
displayName: string;
|
|
271
|
-
} | {
|
|
272
|
-
skip?: boolean | undefined;
|
|
273
|
-
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
274
|
-
name: string;
|
|
275
|
-
settings: {
|
|
276
241
|
sampleData?: {
|
|
242
|
+
[x: string]: unknown;
|
|
277
243
|
sampleDataFileId?: string | undefined;
|
|
278
244
|
sampleDataInputFileId?: string | undefined;
|
|
279
245
|
lastTestDate?: string | undefined;
|
|
280
246
|
} | undefined;
|
|
281
247
|
customLogoUrl?: string | undefined;
|
|
282
|
-
items: string;
|
|
283
248
|
};
|
|
249
|
+
name: string;
|
|
284
250
|
valid: boolean;
|
|
285
251
|
displayName: string;
|
|
286
|
-
} | {
|
|
287
252
|
skip?: boolean | undefined;
|
|
253
|
+
} | {
|
|
288
254
|
type: import("../actions/action").FlowActionType.PIECE;
|
|
289
|
-
name: string;
|
|
290
255
|
settings: {
|
|
256
|
+
propertySettings: Record<string, {
|
|
257
|
+
type: import("..").PropertyExecutionType;
|
|
258
|
+
schema?: any;
|
|
259
|
+
}>;
|
|
260
|
+
pieceName: string;
|
|
261
|
+
pieceVersion: string;
|
|
262
|
+
input: Record<string, unknown>;
|
|
263
|
+
actionName?: string | undefined;
|
|
291
264
|
errorHandlingOptions?: {
|
|
292
265
|
continueOnFailure?: {
|
|
293
266
|
value?: boolean | undefined;
|
|
@@ -297,92 +270,109 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
297
270
|
} | undefined;
|
|
298
271
|
} | undefined;
|
|
299
272
|
sampleData?: {
|
|
273
|
+
[x: string]: unknown;
|
|
300
274
|
sampleDataFileId?: string | undefined;
|
|
301
275
|
sampleDataInputFileId?: string | undefined;
|
|
302
276
|
lastTestDate?: string | undefined;
|
|
303
277
|
} | undefined;
|
|
304
278
|
customLogoUrl?: string | undefined;
|
|
305
|
-
actionName?: string | undefined;
|
|
306
|
-
pieceName: string;
|
|
307
|
-
pieceVersion: string;
|
|
308
|
-
input: {
|
|
309
|
-
[x: string]: unknown;
|
|
310
|
-
};
|
|
311
|
-
propertySettings: {
|
|
312
|
-
[x: string]: {
|
|
313
|
-
schema?: any;
|
|
314
|
-
type: import("..").PropertyExecutionType;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
279
|
};
|
|
280
|
+
name: string;
|
|
318
281
|
valid: boolean;
|
|
319
282
|
displayName: string;
|
|
320
|
-
} | {
|
|
321
283
|
skip?: boolean | undefined;
|
|
322
|
-
|
|
323
|
-
|
|
284
|
+
} | {
|
|
285
|
+
type: import("../actions/action").FlowActionType.LOOP_ON_ITEMS;
|
|
324
286
|
settings: {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
} | undefined;
|
|
287
|
+
items: string;
|
|
288
|
+
sampleData?: {
|
|
289
|
+
[x: string]: unknown;
|
|
290
|
+
sampleDataFileId?: string | undefined;
|
|
291
|
+
sampleDataInputFileId?: string | undefined;
|
|
292
|
+
lastTestDate?: string | undefined;
|
|
332
293
|
} | undefined;
|
|
294
|
+
customLogoUrl?: string | undefined;
|
|
295
|
+
};
|
|
296
|
+
name: string;
|
|
297
|
+
valid: boolean;
|
|
298
|
+
displayName: string;
|
|
299
|
+
skip?: boolean | undefined;
|
|
300
|
+
} | {
|
|
301
|
+
type: import("../actions/action").FlowActionType.ROUTER;
|
|
302
|
+
settings: {
|
|
303
|
+
branches: ({
|
|
304
|
+
conditions: ({
|
|
305
|
+
firstValue: string;
|
|
306
|
+
secondValue: string;
|
|
307
|
+
caseSensitive?: boolean | undefined;
|
|
308
|
+
operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
|
|
309
|
+
} | {
|
|
310
|
+
firstValue: string;
|
|
311
|
+
secondValue: string;
|
|
312
|
+
operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
|
|
313
|
+
} | {
|
|
314
|
+
firstValue: string;
|
|
315
|
+
secondValue: string;
|
|
316
|
+
operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
|
|
317
|
+
} | {
|
|
318
|
+
firstValue: string;
|
|
319
|
+
operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
|
|
320
|
+
})[][];
|
|
321
|
+
branchType: import("../actions/action").BranchExecutionType.CONDITION;
|
|
322
|
+
branchName: string;
|
|
323
|
+
} | {
|
|
324
|
+
branchType: import("../actions/action").BranchExecutionType.FALLBACK;
|
|
325
|
+
branchName: string;
|
|
326
|
+
})[];
|
|
327
|
+
executionType: import("../actions/action").RouterExecutionType;
|
|
333
328
|
sampleData?: {
|
|
329
|
+
[x: string]: unknown;
|
|
334
330
|
sampleDataFileId?: string | undefined;
|
|
335
331
|
sampleDataInputFileId?: string | undefined;
|
|
336
332
|
lastTestDate?: string | undefined;
|
|
337
333
|
} | undefined;
|
|
338
334
|
customLogoUrl?: string | undefined;
|
|
339
|
-
input: {
|
|
340
|
-
[x: string]: any;
|
|
341
|
-
};
|
|
342
|
-
sourceCode: {
|
|
343
|
-
packageJson: string;
|
|
344
|
-
code: string;
|
|
345
|
-
};
|
|
346
335
|
};
|
|
336
|
+
name: string;
|
|
347
337
|
valid: boolean;
|
|
348
338
|
displayName: string;
|
|
339
|
+
skip?: boolean | undefined;
|
|
349
340
|
};
|
|
341
|
+
stepLocationRelativeToParent?: StepLocationRelativeToParent | undefined;
|
|
342
|
+
branchIndex?: number | undefined;
|
|
350
343
|
};
|
|
351
344
|
} | {
|
|
352
345
|
type: FlowOperationType.UPDATE_TRIGGER;
|
|
353
346
|
request: {
|
|
354
|
-
nextAction?: any;
|
|
355
347
|
type: import("../triggers/trigger").FlowTriggerType.EMPTY;
|
|
356
|
-
name: string;
|
|
357
348
|
settings: any;
|
|
349
|
+
name: string;
|
|
358
350
|
valid: boolean;
|
|
359
351
|
displayName: string;
|
|
360
|
-
} | {
|
|
361
352
|
nextAction?: any;
|
|
353
|
+
} | {
|
|
362
354
|
type: import("../triggers/trigger").FlowTriggerType.PIECE;
|
|
363
|
-
name: string;
|
|
364
355
|
settings: {
|
|
365
|
-
|
|
356
|
+
propertySettings: Record<string, {
|
|
357
|
+
type: import("..").PropertyExecutionType;
|
|
358
|
+
schema?: any;
|
|
359
|
+
}>;
|
|
360
|
+
pieceName: string;
|
|
361
|
+
pieceVersion: string;
|
|
362
|
+
input: Record<string, any>;
|
|
366
363
|
sampleData?: {
|
|
364
|
+
[x: string]: unknown;
|
|
367
365
|
sampleDataFileId?: string | undefined;
|
|
368
366
|
sampleDataInputFileId?: string | undefined;
|
|
369
367
|
lastTestDate?: string | undefined;
|
|
370
368
|
} | undefined;
|
|
371
369
|
customLogoUrl?: string | undefined;
|
|
372
|
-
|
|
373
|
-
pieceVersion: string;
|
|
374
|
-
input: {
|
|
375
|
-
[x: string]: any;
|
|
376
|
-
};
|
|
377
|
-
propertySettings: {
|
|
378
|
-
[x: string]: {
|
|
379
|
-
schema?: any;
|
|
380
|
-
type: import("..").PropertyExecutionType;
|
|
381
|
-
};
|
|
382
|
-
};
|
|
370
|
+
triggerName?: string | undefined;
|
|
383
371
|
};
|
|
372
|
+
name: string;
|
|
384
373
|
valid: boolean;
|
|
385
374
|
displayName: string;
|
|
375
|
+
nextAction?: any;
|
|
386
376
|
};
|
|
387
377
|
} | {
|
|
388
378
|
type: FlowOperationType.CHANGE_FOLDER;
|
|
@@ -397,65 +387,63 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
397
387
|
} | {
|
|
398
388
|
type: FlowOperationType.DELETE_BRANCH;
|
|
399
389
|
request: {
|
|
400
|
-
stepName: string;
|
|
401
390
|
branchIndex: number;
|
|
391
|
+
stepName: string;
|
|
402
392
|
};
|
|
403
393
|
} | {
|
|
404
394
|
type: FlowOperationType.ADD_BRANCH;
|
|
405
395
|
request: {
|
|
396
|
+
branchIndex: number;
|
|
397
|
+
stepName: string;
|
|
398
|
+
branchName: string;
|
|
406
399
|
conditions?: ({
|
|
407
|
-
caseSensitive?: boolean | undefined;
|
|
408
|
-
operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
|
|
409
400
|
firstValue: string;
|
|
410
401
|
secondValue: string;
|
|
402
|
+
caseSensitive?: boolean | undefined;
|
|
403
|
+
operator?: import("../actions/action").BranchOperator.TEXT_CONTAINS | import("../actions/action").BranchOperator.TEXT_DOES_NOT_CONTAIN | import("../actions/action").BranchOperator.TEXT_EXACTLY_MATCHES | import("../actions/action").BranchOperator.TEXT_DOES_NOT_EXACTLY_MATCH | import("../actions/action").BranchOperator.TEXT_STARTS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_START_WITH | import("../actions/action").BranchOperator.TEXT_ENDS_WITH | import("../actions/action").BranchOperator.TEXT_DOES_NOT_END_WITH | import("../actions/action").BranchOperator.LIST_CONTAINS | import("../actions/action").BranchOperator.LIST_DOES_NOT_CONTAIN | undefined;
|
|
411
404
|
} | {
|
|
412
|
-
operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
|
|
413
405
|
firstValue: string;
|
|
414
406
|
secondValue: string;
|
|
407
|
+
operator?: import("../actions/action").BranchOperator.NUMBER_IS_GREATER_THAN | import("../actions/action").BranchOperator.NUMBER_IS_LESS_THAN | import("../actions/action").BranchOperator.NUMBER_IS_EQUAL_TO | undefined;
|
|
415
408
|
} | {
|
|
416
|
-
operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
|
|
417
409
|
firstValue: string;
|
|
418
410
|
secondValue: string;
|
|
411
|
+
operator?: import("../actions/action").BranchOperator.DATE_IS_BEFORE | import("../actions/action").BranchOperator.DATE_IS_EQUAL | import("../actions/action").BranchOperator.DATE_IS_AFTER | undefined;
|
|
419
412
|
} | {
|
|
420
|
-
operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
|
|
421
413
|
firstValue: string;
|
|
414
|
+
operator?: import("../actions/action").BranchOperator.BOOLEAN_IS_TRUE | import("../actions/action").BranchOperator.BOOLEAN_IS_FALSE | import("../actions/action").BranchOperator.LIST_IS_EMPTY | import("../actions/action").BranchOperator.LIST_IS_NOT_EMPTY | import("../actions/action").BranchOperator.EXISTS | import("../actions/action").BranchOperator.DOES_NOT_EXIST | undefined;
|
|
422
415
|
})[][] | undefined;
|
|
423
|
-
stepName: string;
|
|
424
|
-
branchName: string;
|
|
425
|
-
branchIndex: number;
|
|
426
416
|
};
|
|
427
417
|
} | {
|
|
428
418
|
type: FlowOperationType.DUPLICATE_BRANCH;
|
|
429
419
|
request: {
|
|
430
|
-
stepName: string;
|
|
431
420
|
branchIndex: number;
|
|
421
|
+
stepName: string;
|
|
432
422
|
};
|
|
433
423
|
} | {
|
|
434
424
|
type: FlowOperationType.SET_SKIP_ACTION;
|
|
435
425
|
request: {
|
|
436
|
-
skip: boolean;
|
|
437
426
|
names: string[];
|
|
427
|
+
skip: boolean;
|
|
438
428
|
};
|
|
439
429
|
} | {
|
|
440
430
|
type: FlowOperationType.UPDATE_METADATA;
|
|
441
431
|
request: {
|
|
442
|
-
metadata?:
|
|
443
|
-
[x: string]: unknown;
|
|
444
|
-
} | null | undefined;
|
|
432
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
445
433
|
};
|
|
446
434
|
} | {
|
|
447
435
|
type: FlowOperationType.MOVE_BRANCH;
|
|
448
436
|
request: {
|
|
449
|
-
stepName: string;
|
|
450
437
|
sourceBranchIndex: number;
|
|
451
438
|
targetBranchIndex: number;
|
|
439
|
+
stepName: string;
|
|
452
440
|
};
|
|
453
441
|
} | {
|
|
454
442
|
type: FlowOperationType.SAVE_SAMPLE_DATA;
|
|
455
443
|
request: {
|
|
456
|
-
type: import("..").SampleDataFileType;
|
|
457
444
|
stepName: string;
|
|
458
445
|
payload: unknown;
|
|
446
|
+
type: import("..").SampleDataFileType;
|
|
459
447
|
};
|
|
460
448
|
} | {
|
|
461
449
|
type: FlowOperationType.UPDATE_MINUTES_SAVED;
|
|
@@ -470,7 +458,6 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
470
458
|
} | {
|
|
471
459
|
type: FlowOperationType.UPDATE_NOTE;
|
|
472
460
|
request: {
|
|
473
|
-
ownerId?: string | null | undefined;
|
|
474
461
|
id: string;
|
|
475
462
|
content: string;
|
|
476
463
|
color: import("..").NoteColorVariant;
|
|
@@ -482,6 +469,7 @@ export declare const _getOperationsForPaste: (actions: FlowAction[], flowVersion
|
|
|
482
469
|
width: number;
|
|
483
470
|
height: number;
|
|
484
471
|
};
|
|
472
|
+
ownerId?: string | null | undefined;
|
|
485
473
|
};
|
|
486
474
|
} | {
|
|
487
475
|
type: FlowOperationType.DELETE_NOTE;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports._updateAction = _updateAction;
|
|
4
|
-
const compiler_1 = require("@sinclair/typebox/compiler");
|
|
5
4
|
const common_1 = require("../../../core/common");
|
|
6
5
|
const action_1 = require("../actions/action");
|
|
7
6
|
const flow_structure_util_1 = require("../util/flow-structure-util");
|
|
8
|
-
const actionSchemaValidator = compiler_1.TypeCompiler.Compile(action_1.SingleActionSchema);
|
|
9
7
|
function _updateAction(flowVersion, request) {
|
|
10
8
|
return flow_structure_util_1.flowStructureUtil.transferFlow(flowVersion, (stepToUpdate) => {
|
|
11
9
|
if (stepToUpdate.name !== request.name) {
|
|
@@ -37,7 +35,8 @@ function _updateAction(flowVersion, request) {
|
|
|
37
35
|
break;
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
|
-
const
|
|
38
|
+
const parseResult = action_1.SingleActionSchema.safeParse(updatedAction);
|
|
39
|
+
const valid = ((0, common_1.isNil)(request.valid) ? true : request.valid) && parseResult.success;
|
|
41
40
|
return Object.assign(Object.assign({}, updatedAction), { valid });
|
|
42
41
|
});
|
|
43
42
|
}
|