@activepieces/shared
Advanced tools
Comparing version 0.3.28 to 0.3.29
{ | ||
"name": "@activepieces/shared", | ||
"version": "0.3.28", | ||
"version": "0.3.29", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -46,3 +46,2 @@ export * from "./lib/flows/actions/action"; | ||
export * from './lib/flows/dto/create-flow-request'; | ||
export { CloneFlowVersionRequest } from './lib/flows/dto/clone-flow-version-request'; | ||
export { SeekPage, Cursor } from './lib/common/seek-page'; | ||
@@ -49,0 +48,0 @@ export { apId, ApId } from './lib/common/id-generator'; |
@@ -8,2 +8,3 @@ "use strict"; | ||
const compiler_1 = require("@sinclair/typebox/compiler"); | ||
const flow_version_1 = require("./flow-version"); | ||
const activepieces_error_1 = require("../common/activepieces-error"); | ||
@@ -244,2 +245,5 @@ const actionSchemaValidator = compiler_1.TypeCompiler.Compile(action_1.Action); | ||
switch (operation.type) { | ||
case flow_operations_1.FlowOperationType.LOCK_FLOW: | ||
clonedVersion.state = flow_version_1.FlowVersionState.LOCKED; | ||
break; | ||
case flow_operations_1.FlowOperationType.CHANGE_NAME: | ||
@@ -246,0 +250,0 @@ clonedVersion.displayName = operation.request.displayName; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FlowOperationRequest = exports.UpdateTriggerRequest = exports.AddActionRequest = exports.UpdateActionRequest = exports.DeleteActionRequest = exports.ChangeNameRequest = exports.ChangeFolderRequest = exports.ImportFlowRequest = exports.StepLocationRelativeToParent = exports.FlowOperationType = void 0; | ||
exports.FlowOperationRequest = exports.UpdateTriggerRequest = exports.AddActionRequest = exports.UpdateActionRequest = exports.DeleteActionRequest = exports.ChangeNameRequest = exports.ChangeFolderRequest = exports.ImportFlowRequest = exports.LockFlowRequest = exports.StepLocationRelativeToParent = exports.FlowOperationType = void 0; | ||
const action_1 = require("./actions/action"); | ||
@@ -9,2 +9,3 @@ const trigger_1 = require("./triggers/trigger"); | ||
(function (FlowOperationType) { | ||
FlowOperationType["LOCK_FLOW"] = "LOCK_FLOW"; | ||
FlowOperationType["CHANGE_FOLDER"] = "CHANGE_FOLDER"; | ||
@@ -26,2 +27,5 @@ FlowOperationType["IMPORT_FLOW"] = "IMPORT_FLOW"; | ||
const optionalNextAction = typebox_1.Type.Object({ nextAction: typebox_1.Type.Optional(action_1.Action) }); | ||
exports.LockFlowRequest = typebox_1.Type.Object({ | ||
flowId: typebox_1.Type.String({}) | ||
}); | ||
exports.ImportFlowRequest = typebox_1.Type.Object({ | ||
@@ -49,2 +53,6 @@ displayName: typebox_1.Type.String({}), | ||
typebox_1.Type.Object({ | ||
type: typebox_1.Type.Literal(FlowOperationType.LOCK_FLOW), | ||
request: exports.LockFlowRequest | ||
}), | ||
typebox_1.Type.Object({ | ||
type: typebox_1.Type.Literal(FlowOperationType.IMPORT_FLOW), | ||
@@ -51,0 +59,0 @@ request: exports.ImportFlowRequest |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
262779
3705
209