Skip to content

Commit

Permalink
feat(box): Add move, delete operations.
Browse files Browse the repository at this point in the history
Minor refactorings
  • Loading branch information
sbuettner committed Dec 24, 2024
1 parent 52a8e7e commit 5f5d8a5
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 113 deletions.
187 changes: 135 additions & 52 deletions connectors/box/element-templates/box-outbound-connector.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"name" : "Box Outbound Connector",
"id" : "io.camunda.connectors.box",
"description" : "Interact with the Box Document API",
"metadata" : {
"keywords" : [ ]
},
"documentationRef" : "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/box/",
"version" : 1,
"category" : {
Expand Down Expand Up @@ -237,20 +240,29 @@
}, {
"name" : "Delete Folder",
"value" : "deleteFolder"
}, {
"name" : "Upload File",
"value" : "uploadFile"
}, {
"name" : "Download File",
"value" : "downloadFile"
}, {
"name" : "Move File",
"value" : "moveFile"
}, {
"name" : "Delete File",
"value" : "deleteFile"
}, {
"name" : "Search",
"value" : "search"
}, {
"name" : "Upload File",
"value" : "uploadFile"
} ]
}, {
"id" : "operation.createFolderName",
"label" : "Create folder name",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
Expand All @@ -267,6 +279,9 @@
"id" : "operation.createFolderParentPath",
"label" : "Create folder parent path",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
Expand All @@ -283,6 +298,9 @@
"id" : "operation.deleteFolderPath",
"label" : "Delete folder path",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
Expand Down Expand Up @@ -312,6 +330,63 @@
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.uploadFileName",
"label" : "Upload file name",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.name",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "uploadFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.uploadFileFolderPath",
"label" : "Upload file folder path",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.folderPath",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "uploadFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.uploadFileDocument",
"label" : "Upload file document",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "required",
"group" : "operation",
"binding" : {
"name" : "operation.document",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "uploadFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.downloadFilePath",
"label" : "Download file path",
Expand All @@ -328,6 +403,63 @@
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.moveFilePath",
"label" : "File path",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.filePath",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "moveFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.moveFileFolderPath",
"label" : "Target folder path",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.folderPath",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "moveFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.deleteFilePath",
"label" : "File path",
"optional" : false,
"constraints" : {
"notEmpty" : true
},
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.filePath",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "deleteFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.searchQuery",
"label" : "Search query",
Expand Down Expand Up @@ -422,54 +554,6 @@
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.uploadFileName",
"label" : "Upload file name",
"optional" : false,
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.name",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "uploadFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.uploadFileFolderPath",
"label" : "Upload file folder path",
"optional" : false,
"feel" : "optional",
"group" : "operation",
"binding" : {
"name" : "operation.folderPath",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "uploadFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "operation.uploadFileDocument",
"label" : "Upload file document",
"optional" : false,
"feel" : "required",
"group" : "operation",
"binding" : {
"name" : "operation.document",
"type" : "zeebe:input"
},
"condition" : {
"property" : "operation.type",
"equals" : "uploadFile",
"type" : "simple"
},
"type" : "String"
}, {
"id" : "resultVariable",
"label" : "Result variable",
Expand Down Expand Up @@ -519,7 +603,6 @@
"label" : "Retry backoff",
"description" : "ISO-8601 duration to wait between retries",
"value" : "PT0S",
"feel" : "optional",
"group" : "retries",
"binding" : {
"key" : "retryBackoff",
Expand Down
Loading

0 comments on commit 5f5d8a5

Please sign in to comment.