@camunda/connectors-element-templates 1.0.20 → 1.0.21

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.
Files changed (115) hide show
  1. package/package.json +2 -2
  2. package/src/connectors-template.js +1 -3
  3. package/src/connectors.js +4 -0
  4. package/src/element-templates/agenticai-adhoctoolsschema-outbound-connector.json +40 -40
  5. package/src/element-templates/agenticai-aiagent-job-worker.json +2483 -475
  6. package/src/element-templates/agenticai-aiagent-outbound-connector.json +5352 -3427
  7. package/src/element-templates/agenticai-mcp-client-outbound-connector.json +717 -35
  8. package/src/element-templates/agenticai-mcp-remote-client-outbound-connector.json +2254 -809
  9. package/src/element-templates/app-integrations-connector.json +1047 -0
  10. package/src/element-templates/asana-connector.json +1050 -216
  11. package/src/element-templates/automation-anywhere-outbound-connector.json +2046 -1553
  12. package/src/element-templates/aws-bedrock-agentcore-long-term-memory-outbound-connector.json +1067 -29
  13. package/src/element-templates/aws-bedrock-agentcore-runtime-outbound-connector.json +385 -4
  14. package/src/element-templates/aws-bedrock-codeinterpreter-outbound-connector.json +441 -4
  15. package/src/element-templates/aws-bedrock-knowledgebase-outbound-connector.json +416 -4
  16. package/src/element-templates/aws-bedrock-outbound-connector.json +2274 -624
  17. package/src/element-templates/aws-comprehend-outbound-connector.json +1572 -0
  18. package/src/element-templates/aws-dynamodb-outbound-connector.json +2385 -949
  19. package/src/element-templates/aws-eventbridge-connector-boundary.json +26 -26
  20. package/src/element-templates/aws-eventbridge-connector-intermediate.json +62 -62
  21. package/src/element-templates/aws-eventbridge-connector-start-event.json +20 -20
  22. package/src/element-templates/aws-eventbridge-outbound-connector.json +680 -266
  23. package/src/element-templates/aws-lambda-outbound-connector.json +462 -63
  24. package/src/element-templates/aws-s3-outbound-connector.json +1850 -329
  25. package/src/element-templates/aws-sagemaker-outbound-connector.json +680 -51
  26. package/src/element-templates/aws-sns-inbound-boundary.json +207 -206
  27. package/src/element-templates/aws-sns-inbound-intermediate.json +410 -409
  28. package/src/element-templates/aws-sns-inbound-message-start.json +4 -3
  29. package/src/element-templates/aws-sns-inbound-receive.json +4 -3
  30. package/src/element-templates/aws-sns-inbound-start-event.json +138 -138
  31. package/src/element-templates/aws-sns-outbound-connector.json +643 -186
  32. package/src/element-templates/aws-sqs-boundary-connector.json +1059 -540
  33. package/src/element-templates/aws-sqs-inbound-intermediate-connector.json +1046 -527
  34. package/src/element-templates/aws-sqs-outbound-connector.json +596 -143
  35. package/src/element-templates/aws-sqs-receive-connector.json +525 -7
  36. package/src/element-templates/aws-sqs-start-event-connector.json +401 -401
  37. package/src/element-templates/aws-sqs-start-message.json +736 -185
  38. package/src/element-templates/aws-textract-outbound-connector.json +925 -190
  39. package/src/element-templates/azure-blobstorage-outbound-connector.json +1648 -225
  40. package/src/element-templates/azure-open-ai-connector.json +1372 -9
  41. package/src/element-templates/blue-prism-connector.json +655 -76
  42. package/src/element-templates/box-outbound-connector.json +2331 -247
  43. package/src/element-templates/csv-outbound-connector.json +44 -44
  44. package/src/element-templates/easy-post-connector.json +1178 -97
  45. package/src/element-templates/email-outbound-connector.json +3087 -1013
  46. package/src/element-templates/embeddings-vector-database-outbound-connector.json +2160 -0
  47. package/src/element-templates/github-connector.json +14049 -9863
  48. package/src/element-templates/github-webhook-connector-boundary.json +24 -24
  49. package/src/element-templates/github-webhook-connector-intermediate.json +33 -33
  50. package/src/element-templates/github-webhook-connector-message-start.json +8 -8
  51. package/src/element-templates/github-webhook-connector-receive.json +8 -8
  52. package/src/element-templates/github-webhook-connector-start-event.json +54 -54
  53. package/src/element-templates/gitlab-connector.json +2110 -208
  54. package/src/element-templates/google-cloud-storage-outbound-connector.json +1448 -241
  55. package/src/element-templates/google-drive-outbound-connector.json +2246 -694
  56. package/src/element-templates/google-gemini-outbound-connector.json +8 -22
  57. package/src/element-templates/google-maps-platform-connector.json +688 -137
  58. package/src/element-templates/google-sheets-outbound-connector.json +3631 -2475
  59. package/src/element-templates/graphql-outbound-connector.json +3346 -789
  60. package/src/element-templates/http-json-connector.json +5295 -2803
  61. package/src/element-templates/http-polling-boundary-catch-event-connector.json +2550 -590
  62. package/src/element-templates/http-polling-connector.json +2886 -926
  63. package/src/element-templates/hubspot-outbound-connector.json +2786 -36
  64. package/src/element-templates/hugging-face-connector.json +44 -43
  65. package/src/element-templates/jdbc-outbound-connector.json +505 -8
  66. package/src/element-templates/kafka-inbound-connector-boundary.json +29 -32
  67. package/src/element-templates/kafka-inbound-connector-intermediate.json +615 -618
  68. package/src/element-templates/kafka-inbound-connector-receive.json +9 -12
  69. package/src/element-templates/kafka-inbound-connector-start-message.json +9 -12
  70. package/src/element-templates/kafka-inbound-connector.json +240 -240
  71. package/src/element-templates/kafka-outbound-connector.json +494 -498
  72. package/src/element-templates/microsoft-o365-email-boundary-event-connector.json +7 -10
  73. package/src/element-templates/microsoft-o365-email-intermediate-catch-event-connector.json +7 -10
  74. package/src/element-templates/microsoft-o365-email-message-start-event-connector.json +7 -10
  75. package/src/element-templates/microsoft-office365-mail-connector.json +1095 -39
  76. package/src/element-templates/microsoft-teams-outbound-connector.json +7335 -4894
  77. package/src/element-templates/openai-connector.json +596 -102
  78. package/src/element-templates/operate-connector.json +167 -170
  79. package/src/element-templates/orchestration-connector.json +1843 -0
  80. package/src/element-templates/power-automate-connector.json +64 -64
  81. package/src/element-templates/rabbitmq-inbound-connector-boundary.json +449 -451
  82. package/src/element-templates/rabbitmq-inbound-connector-intermediate.json +770 -772
  83. package/src/element-templates/rabbitmq-inbound-connector-message-start.json +576 -578
  84. package/src/element-templates/rabbitmq-inbound-connector-receive.json +5 -7
  85. package/src/element-templates/rabbitmq-inbound-connector-start-event.json +105 -105
  86. package/src/element-templates/rabbitmq-outbound-connector.json +319 -319
  87. package/src/element-templates/rpa-connector.json +6 -6
  88. package/src/element-templates/salesforce-connector.json +690 -56
  89. package/src/element-templates/send-message-connector-intermediate-throw-event.json +300 -0
  90. package/src/element-templates/send-message-connector-message-end-event.json +300 -0
  91. package/src/element-templates/send-message-connector-send-task.json +299 -0
  92. package/src/element-templates/sendgrid-outbound-connector.json +597 -597
  93. package/src/element-templates/servicenow-connector.json +1365 -8
  94. package/src/element-templates/servicenow-flow-starter-connector.json +15 -15
  95. package/src/element-templates/servicenow-incident-connector.json +1076 -30
  96. package/src/element-templates/slack-inbound-boundary.json +374 -374
  97. package/src/element-templates/slack-inbound-intermediate.json +766 -766
  98. package/src/element-templates/slack-inbound-message-start.json +145 -145
  99. package/src/element-templates/slack-inbound-receive.json +2 -2
  100. package/src/element-templates/slack-inbound-start-event.json +211 -211
  101. package/src/element-templates/slack-outbound-connector.json +2154 -1051
  102. package/src/element-templates/soap-outbound-connector.json +114 -118
  103. package/src/element-templates/twilio-connector.json +1181 -368
  104. package/src/element-templates/twilio-webhook-boundary-connector.json +29 -30
  105. package/src/element-templates/twilio-webhook-connector.json +56 -57
  106. package/src/element-templates/twilio-webhook-intermediate-connector.json +33 -34
  107. package/src/element-templates/twilio-webhook-message-start-connector.json +27 -28
  108. package/src/element-templates/twilio-webhook-receive-connector.json +9 -10
  109. package/src/element-templates/uipath-connector.json +681 -63
  110. package/src/element-templates/webhook-connector-boundary.json +1242 -587
  111. package/src/element-templates/webhook-connector-intermediate.json +1339 -684
  112. package/src/element-templates/webhook-connector-receive.json +659 -5
  113. package/src/element-templates/webhook-connector-start-event.json +1736 -1175
  114. package/src/element-templates/webhook-connector-start-message.json +1791 -1104
  115. package/src/element-templates/whatsapp-connector.json +386 -16
@@ -3,9 +3,18 @@
3
3
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
4
4
  "name": "Google Drive Outbound Connector",
5
5
  "id": "io.camunda.connectors.GoogleDrive.v1",
6
- "version": 2,
6
+ "description": "Manage Google Drive files and folders",
7
+ "keywords": [
8
+ "create file",
9
+ "create file from template",
10
+ "create folder",
11
+ "upload file",
12
+ "download file",
13
+ "file storage",
14
+ "document management"
15
+ ],
7
16
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
8
- "description": "Create folder or a file from template",
17
+ "version": 8,
9
18
  "category": {
10
19
  "id": "connectors",
11
20
  "name": "Connectors"
@@ -14,43 +23,92 @@
14
23
  "elementType": {
15
24
  "value": "bpmn:ServiceTask"
16
25
  },
26
+ "engines": {
27
+ "camunda": "^8.10"
28
+ },
17
29
  "groups": [
18
- {
19
- "id": "authentication",
20
- "label": "Authentication"
21
- },
22
30
  {
23
31
  "id": "operation",
24
32
  "label": "Select operation"
25
33
  },
34
+ {
35
+ "id": "authentication",
36
+ "label": "Authentication"
37
+ },
26
38
  {
27
39
  "id": "operationDetails",
28
40
  "label": "Operation details"
29
41
  },
42
+ {
43
+ "id": "connector",
44
+ "label": "Connector"
45
+ },
30
46
  {
31
47
  "id": "output",
32
48
  "label": "Output mapping"
33
49
  },
34
50
  {
35
- "id": "errors",
51
+ "id": "error",
36
52
  "label": "Error handling"
53
+ },
54
+ {
55
+ "id": "retries",
56
+ "label": "Retries"
37
57
  }
38
58
  ],
39
59
  "properties": [
40
60
  {
41
- "type": "Hidden",
42
61
  "value": "io.camunda:google-drive:1",
43
62
  "binding": {
44
- "type": "zeebe:taskDefinition",
45
- "property": "type"
46
- }
63
+ "property": "type",
64
+ "type": "zeebe:taskDefinition"
65
+ },
66
+ "type": "Hidden"
47
67
  },
48
68
  {
49
- "id": "authenticationType",
69
+ "id": "resource.type",
70
+ "label": "Operation",
71
+ "description": "Select the Google Drive operation to perform",
72
+ "value": "folder",
73
+ "group": "operation",
74
+ "binding": {
75
+ "name": "resource.type",
76
+ "type": "zeebe:input"
77
+ },
78
+ "type": "Dropdown",
79
+ "choices": [
80
+ {
81
+ "name": "Create folder",
82
+ "value": "folder"
83
+ },
84
+ {
85
+ "name": "Create file from template",
86
+ "value": "file"
87
+ },
88
+ {
89
+ "name": "Upload file",
90
+ "value": "upload"
91
+ },
92
+ {
93
+ "name": "Download file",
94
+ "value": "download"
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "id": "authentication.authType",
50
100
  "label": "Type",
101
+ "optional": false,
102
+ "value": "refresh",
103
+ "constraints": {
104
+ "notEmpty": true
105
+ },
51
106
  "group": "authentication",
107
+ "binding": {
108
+ "name": "authentication.authType",
109
+ "type": "zeebe:input"
110
+ },
52
111
  "type": "Dropdown",
53
- "value": "bearer",
54
112
  "choices": [
55
113
  {
56
114
  "name": "Bearer token",
@@ -60,256 +118,1442 @@
60
118
  "name": "Refresh token",
61
119
  "value": "refresh"
62
120
  }
63
- ],
64
- "binding": {
65
- "type": "zeebe:input",
66
- "name": "authentication.authType",
67
- "key": "authentication.authType"
68
- }
121
+ ]
69
122
  },
70
123
  {
124
+ "id": "authentication.bearerToken",
71
125
  "label": "Bearer token",
72
- "description": "Enter Google API Bearer token that is authorized to interact with desired Drive",
73
- "group": "authentication",
74
- "type": "String",
75
- "binding": {
76
- "type": "zeebe:input",
77
- "name": "authentication.bearerToken"
78
- },
126
+ "optional": false,
79
127
  "constraints": {
80
128
  "notEmpty": true
81
129
  },
130
+ "feel": "optional",
131
+ "group": "authentication",
132
+ "binding": {
133
+ "name": "authentication.bearerToken",
134
+ "type": "zeebe:input"
135
+ },
82
136
  "condition": {
83
- "property": "authenticationType",
84
- "equals": "bearer"
85
- }
137
+ "property": "authentication.authType",
138
+ "equals": "bearer",
139
+ "type": "simple"
140
+ },
141
+ "type": "String"
86
142
  },
87
143
  {
144
+ "id": "authentication.oauthClientId",
88
145
  "label": "Client ID",
89
- "description": "Enter Google API Client ID",
90
- "group": "authentication",
91
- "type": "String",
92
- "binding": {
93
- "type": "zeebe:input",
94
- "name": "authentication.oauthClientId"
95
- },
146
+ "optional": false,
96
147
  "constraints": {
97
148
  "notEmpty": true
98
149
  },
150
+ "feel": "optional",
151
+ "group": "authentication",
152
+ "binding": {
153
+ "name": "authentication.oauthClientId",
154
+ "type": "zeebe:input"
155
+ },
99
156
  "condition": {
100
- "property": "authenticationType",
101
- "equals": "refresh"
102
- }
157
+ "property": "authentication.authType",
158
+ "equals": "refresh",
159
+ "type": "simple"
160
+ },
161
+ "type": "String"
103
162
  },
104
163
  {
164
+ "id": "authentication.oauthClientSecret",
105
165
  "label": "Client secret",
106
- "description": "Enter Google API client Secret",
107
- "group": "authentication",
108
- "type": "String",
109
- "binding": {
110
- "type": "zeebe:input",
111
- "name": "authentication.oauthClientSecret"
112
- },
166
+ "optional": false,
113
167
  "constraints": {
114
168
  "notEmpty": true
115
169
  },
170
+ "feel": "optional",
171
+ "group": "authentication",
172
+ "binding": {
173
+ "name": "authentication.oauthClientSecret",
174
+ "type": "zeebe:input"
175
+ },
116
176
  "condition": {
117
- "property": "authenticationType",
118
- "equals": "refresh"
119
- }
177
+ "property": "authentication.authType",
178
+ "equals": "refresh",
179
+ "type": "simple"
180
+ },
181
+ "type": "String"
120
182
  },
121
183
  {
184
+ "id": "authentication.oauthRefreshToken",
122
185
  "label": "Refresh token",
123
- "description": "Enter Google API refresh token that is authorized to interact with desired Drive",
124
- "group": "authentication",
125
- "type": "String",
126
- "binding": {
127
- "type": "zeebe:input",
128
- "name": "authentication.oauthRefreshToken"
129
- },
186
+ "optional": false,
130
187
  "constraints": {
131
188
  "notEmpty": true
132
189
  },
133
- "condition": {
134
- "property": "authenticationType",
135
- "equals": "refresh"
136
- }
137
- },
138
- {
139
- "id": "resourceType",
140
- "group": "operation",
141
- "type": "Dropdown",
142
- "value": "folder",
143
- "choices": [
144
- {
145
- "name": "Create folder",
146
- "value": "folder"
147
- },
148
- {
149
- "name": "Create file from template",
150
- "value": "file"
151
- }
152
- ],
153
- "binding": {
154
- "type": "zeebe:input",
155
- "name": "resource.type",
156
- "key": "resource.type"
157
- }
158
- },
159
- {
160
- "label": "File name",
161
- "description": "Enter name for your file",
162
- "group": "operationDetails",
163
- "type": "String",
164
190
  "feel": "optional",
191
+ "group": "authentication",
165
192
  "binding": {
166
- "type": "zeebe:input",
167
- "name": "resource.name"
168
- },
169
- "constraints": {
170
- "notEmpty": true,
171
- "maxLength": 255
193
+ "name": "authentication.oauthRefreshToken",
194
+ "type": "zeebe:input"
172
195
  },
173
196
  "condition": {
174
- "property": "resourceType",
175
- "equals": "file"
176
- }
197
+ "property": "authentication.authType",
198
+ "equals": "refresh",
199
+ "type": "simple"
200
+ },
201
+ "type": "String"
177
202
  },
178
203
  {
179
- "label": "Folder name",
180
- "description": "Enter name for your folder",
181
- "group": "operationDetails",
182
- "type": "String",
204
+ "id": "resource.folderName",
205
+ "label": "New resource name",
206
+ "optional": false,
207
+ "constraints": {
208
+ "notEmpty": true
209
+ },
183
210
  "feel": "optional",
211
+ "group": "operationDetails",
184
212
  "binding": {
185
- "type": "zeebe:input",
186
- "name": "resource.name"
187
- },
188
- "constraints": {
189
- "notEmpty": true,
190
- "maxLength": 255
213
+ "name": "resource.name",
214
+ "type": "zeebe:input"
191
215
  },
192
216
  "condition": {
193
- "property": "resourceType",
194
- "equals": "folder"
195
- }
217
+ "property": "resource.type",
218
+ "equals": "folder",
219
+ "type": "simple"
220
+ },
221
+ "type": "String"
196
222
  },
197
223
  {
198
- "label": "Template ID",
199
- "description": "Enter ID of the template you are creating a file from",
200
- "group": "operationDetails",
201
- "type": "String",
224
+ "id": "resource.folderParent",
225
+ "label": "Parent folder ID",
226
+ "optional": true,
202
227
  "feel": "optional",
228
+ "group": "operationDetails",
203
229
  "binding": {
204
- "type": "zeebe:input",
205
- "name": "resource.template.id"
206
- },
207
- "constraints": {
208
- "notEmpty": true
230
+ "name": "resource.parent",
231
+ "type": "zeebe:input"
209
232
  },
210
233
  "condition": {
211
- "property": "resourceType",
234
+ "property": "resource.type",
235
+ "equals": "folder",
236
+ "type": "simple"
237
+ },
238
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
239
+ "type": "String"
240
+ },
241
+ {
242
+ "id": "resource.additionalGoogleDriveProperties",
243
+ "label": "Additional properties or metadata",
244
+ "optional": true,
245
+ "feel": "required",
246
+ "group": "operationDetails",
247
+ "binding": {
248
+ "name": "resource.additionalGoogleDriveProperties",
249
+ "type": "zeebe:input"
250
+ },
251
+ "condition": {
252
+ "property": "resource.type",
253
+ "equals": "folder",
254
+ "type": "simple"
255
+ },
256
+ "type": "String"
257
+ },
258
+ {
259
+ "id": "resource.fileName",
260
+ "label": "New resource name",
261
+ "optional": false,
262
+ "constraints": {
263
+ "notEmpty": true
264
+ },
265
+ "feel": "optional",
266
+ "group": "operationDetails",
267
+ "binding": {
268
+ "name": "resource.name",
269
+ "type": "zeebe:input"
270
+ },
271
+ "condition": {
272
+ "property": "resource.type",
273
+ "equals": "file",
274
+ "type": "simple"
275
+ },
276
+ "type": "String"
277
+ },
278
+ {
279
+ "id": "resource.fileParent",
280
+ "label": "Parent folder ID",
281
+ "optional": true,
282
+ "feel": "optional",
283
+ "group": "operationDetails",
284
+ "binding": {
285
+ "name": "resource.parent",
286
+ "type": "zeebe:input"
287
+ },
288
+ "condition": {
289
+ "property": "resource.type",
290
+ "equals": "file",
291
+ "type": "simple"
292
+ },
293
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
294
+ "type": "String"
295
+ },
296
+ {
297
+ "id": "resource.template.id",
298
+ "label": "Template ID",
299
+ "optional": false,
300
+ "constraints": {
301
+ "notEmpty": true
302
+ },
303
+ "feel": "optional",
304
+ "group": "operationDetails",
305
+ "binding": {
306
+ "name": "resource.template.id",
307
+ "type": "zeebe:input"
308
+ },
309
+ "condition": {
310
+ "property": "resource.type",
311
+ "equals": "file",
312
+ "type": "simple"
313
+ },
314
+ "type": "String"
315
+ },
316
+ {
317
+ "id": "resource.template.variables",
318
+ "label": "Template variables",
319
+ "optional": false,
320
+ "feel": "required",
321
+ "group": "operationDetails",
322
+ "binding": {
323
+ "name": "resource.template.variables",
324
+ "type": "zeebe:input"
325
+ },
326
+ "condition": {
327
+ "property": "resource.type",
328
+ "equals": "file",
329
+ "type": "simple"
330
+ },
331
+ "type": "String"
332
+ },
333
+ {
334
+ "id": "resource.uploadParent",
335
+ "label": "Parent folder ID",
336
+ "optional": true,
337
+ "feel": "optional",
338
+ "group": "operationDetails",
339
+ "binding": {
340
+ "name": "resource.parent",
341
+ "type": "zeebe:input"
342
+ },
343
+ "condition": {
344
+ "property": "resource.type",
345
+ "equals": "upload",
346
+ "type": "simple"
347
+ },
348
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
349
+ "type": "String"
350
+ },
351
+ {
352
+ "id": "resource.uploadData.document_documentSource",
353
+ "label": "Document source",
354
+ "value": "camunda",
355
+ "group": "operationDetails",
356
+ "binding": {
357
+ "name": "resource.uploadData.document_documentSource",
358
+ "type": "zeebe:input"
359
+ },
360
+ "condition": {
361
+ "property": "resource.type",
362
+ "equals": "upload",
363
+ "type": "simple"
364
+ },
365
+ "tooltip": "Upload a Camunda document. See the <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda document upload API</a>.",
366
+ "type": "Dropdown",
367
+ "choices": [
368
+ {
369
+ "name": "Camunda Document",
370
+ "value": "camunda"
371
+ },
372
+ {
373
+ "name": "Inline Content",
374
+ "value": "inline"
375
+ },
376
+ {
377
+ "name": "From URL",
378
+ "value": "external"
379
+ }
380
+ ]
381
+ },
382
+ {
383
+ "id": "resource.uploadData.document_camundaReference",
384
+ "label": "Camunda document",
385
+ "constraints": {
386
+ "notEmpty": true
387
+ },
388
+ "feel": "required",
389
+ "group": "operationDetails",
390
+ "binding": {
391
+ "name": "resource.uploadData.document_camundaReference",
392
+ "type": "zeebe:input"
393
+ },
394
+ "condition": {
395
+ "allMatch": [
396
+ {
397
+ "property": "resource.uploadData.document_documentSource",
398
+ "equals": "camunda",
399
+ "type": "simple"
400
+ },
401
+ {
402
+ "property": "resource.type",
403
+ "equals": "upload",
404
+ "type": "simple"
405
+ }
406
+ ]
407
+ },
408
+ "type": "String"
409
+ },
410
+ {
411
+ "id": "resource.uploadData.document_inline_content",
412
+ "label": "Content",
413
+ "constraints": {
414
+ "notEmpty": true
415
+ },
416
+ "feel": "optional",
417
+ "group": "operationDetails",
418
+ "binding": {
419
+ "name": "resource.uploadData.document_inline_content",
420
+ "type": "zeebe:input"
421
+ },
422
+ "condition": {
423
+ "allMatch": [
424
+ {
425
+ "property": "resource.uploadData.document_documentSource",
426
+ "equals": "inline",
427
+ "type": "simple"
428
+ },
429
+ {
430
+ "property": "resource.type",
431
+ "equals": "upload",
432
+ "type": "simple"
433
+ }
434
+ ]
435
+ },
436
+ "type": "String"
437
+ },
438
+ {
439
+ "id": "resource.uploadData.document_inline_fileName",
440
+ "label": "File name",
441
+ "feel": "optional",
442
+ "group": "operationDetails",
443
+ "binding": {
444
+ "name": "resource.uploadData.document_inline_fileName",
445
+ "type": "zeebe:input"
446
+ },
447
+ "condition": {
448
+ "allMatch": [
449
+ {
450
+ "property": "resource.uploadData.document_documentSource",
451
+ "equals": "inline",
452
+ "type": "simple"
453
+ },
454
+ {
455
+ "property": "resource.type",
456
+ "equals": "upload",
457
+ "type": "simple"
458
+ }
459
+ ]
460
+ },
461
+ "type": "String"
462
+ },
463
+ {
464
+ "id": "resource.uploadData.document_inline_contentType",
465
+ "label": "Content type",
466
+ "feel": "optional",
467
+ "group": "operationDetails",
468
+ "binding": {
469
+ "name": "resource.uploadData.document_inline_contentType",
470
+ "type": "zeebe:input"
471
+ },
472
+ "condition": {
473
+ "allMatch": [
474
+ {
475
+ "property": "resource.uploadData.document_documentSource",
476
+ "equals": "inline",
477
+ "type": "simple"
478
+ },
479
+ {
480
+ "property": "resource.type",
481
+ "equals": "upload",
482
+ "type": "simple"
483
+ }
484
+ ]
485
+ },
486
+ "type": "String"
487
+ },
488
+ {
489
+ "id": "resource.uploadData.document_external_url",
490
+ "label": "URL",
491
+ "constraints": {
492
+ "notEmpty": true
493
+ },
494
+ "feel": "optional",
495
+ "group": "operationDetails",
496
+ "binding": {
497
+ "name": "resource.uploadData.document_external_url",
498
+ "type": "zeebe:input"
499
+ },
500
+ "condition": {
501
+ "allMatch": [
502
+ {
503
+ "property": "resource.uploadData.document_documentSource",
504
+ "equals": "external",
505
+ "type": "simple"
506
+ },
507
+ {
508
+ "property": "resource.type",
509
+ "equals": "upload",
510
+ "type": "simple"
511
+ }
512
+ ]
513
+ },
514
+ "type": "String"
515
+ },
516
+ {
517
+ "id": "resource.uploadData.document_external_fileName",
518
+ "label": "File name",
519
+ "feel": "optional",
520
+ "group": "operationDetails",
521
+ "binding": {
522
+ "name": "resource.uploadData.document_external_fileName",
523
+ "type": "zeebe:input"
524
+ },
525
+ "condition": {
526
+ "allMatch": [
527
+ {
528
+ "property": "resource.uploadData.document_documentSource",
529
+ "equals": "external",
530
+ "type": "simple"
531
+ },
532
+ {
533
+ "property": "resource.type",
534
+ "equals": "upload",
535
+ "type": "simple"
536
+ }
537
+ ]
538
+ },
539
+ "type": "String"
540
+ },
541
+ {
542
+ "id": "resource.uploadData.document__composer",
543
+ "value": "=if document_documentSource = \"camunda\" then document_camundaReference else if document_documentSource = \"inline\" then { \"camunda.document.type\": \"inline\", content: document_inline_content, name: document_inline_fileName, contentType: document_inline_contentType } else if document_documentSource = \"external\" then { \"camunda.document.type\": \"external\", url: document_external_url, name: document_external_fileName } else null",
544
+ "group": "operationDetails",
545
+ "binding": {
546
+ "name": "resource.uploadData.document",
547
+ "type": "zeebe:input"
548
+ },
549
+ "condition": {
550
+ "property": "resource.type",
551
+ "equals": "upload",
552
+ "type": "simple"
553
+ },
554
+ "type": "Hidden"
555
+ },
556
+ {
557
+ "id": "resource.downloadData.fileId",
558
+ "label": "File ID",
559
+ "optional": false,
560
+ "constraints": {
561
+ "notEmpty": true
562
+ },
563
+ "feel": "optional",
564
+ "group": "operationDetails",
565
+ "binding": {
566
+ "name": "resource.downloadData.fileId",
567
+ "type": "zeebe:input"
568
+ },
569
+ "condition": {
570
+ "property": "resource.type",
571
+ "equals": "download",
572
+ "type": "simple"
573
+ },
574
+ "type": "String"
575
+ },
576
+ {
577
+ "id": "documentReturnFormat",
578
+ "label": "Response format",
579
+ "value": "DOCUMENT",
580
+ "group": "operationDetails",
581
+ "binding": {
582
+ "name": "documentReturnFormat.choice",
583
+ "type": "zeebe:input"
584
+ },
585
+ "condition": {
586
+ "allMatch": [
587
+ {
588
+ "property": "resource.type",
589
+ "equals": "download",
590
+ "type": "simple"
591
+ },
592
+ {
593
+ "property": "resource.type",
594
+ "equals": "download",
595
+ "type": "simple"
596
+ }
597
+ ]
598
+ },
599
+ "tooltip": "How the downloaded payload should be returned. Document reference uploads the payload to the document store; as text decodes it as a String; as JSON parses it into a structure you can access via dot notation.",
600
+ "type": "Dropdown",
601
+ "choices": [
602
+ {
603
+ "name": "Document reference",
604
+ "value": "DOCUMENT"
605
+ },
606
+ {
607
+ "name": "as text",
608
+ "value": "TEXT"
609
+ },
610
+ {
611
+ "name": "as JSON",
612
+ "value": "JSON"
613
+ }
614
+ ]
615
+ },
616
+ {
617
+ "id": "documentReturnFormatEncoding",
618
+ "label": "Encoding",
619
+ "description": "Character set used to decode the response. Default UTF-8.",
620
+ "value": "UTF-8",
621
+ "feel": "optional",
622
+ "group": "operationDetails",
623
+ "binding": {
624
+ "name": "documentReturnFormat.encoding",
625
+ "type": "zeebe:input"
626
+ },
627
+ "condition": {
628
+ "allMatch": [
629
+ {
630
+ "property": "resource.type",
631
+ "equals": "download",
632
+ "type": "simple"
633
+ },
634
+ {
635
+ "property": "documentReturnFormat",
636
+ "equals": "TEXT",
637
+ "type": "simple"
638
+ },
639
+ {
640
+ "property": "resource.type",
641
+ "equals": "download",
642
+ "type": "simple"
643
+ }
644
+ ]
645
+ },
646
+ "type": "String"
647
+ },
648
+ {
649
+ "id": "version",
650
+ "label": "Version",
651
+ "description": "Version of the element template",
652
+ "value": "8",
653
+ "group": "connector",
654
+ "binding": {
655
+ "key": "elementTemplateVersion",
656
+ "type": "zeebe:taskHeader"
657
+ },
658
+ "type": "Hidden"
659
+ },
660
+ {
661
+ "id": "id",
662
+ "label": "ID",
663
+ "description": "ID of the element template",
664
+ "value": "io.camunda.connectors.GoogleDrive.v1",
665
+ "group": "connector",
666
+ "binding": {
667
+ "key": "elementTemplateId",
668
+ "type": "zeebe:taskHeader"
669
+ },
670
+ "type": "Hidden"
671
+ },
672
+ {
673
+ "id": "resultVariable",
674
+ "label": "Result variable",
675
+ "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
676
+ "group": "output",
677
+ "binding": {
678
+ "key": "resultVariable",
679
+ "type": "zeebe:taskHeader"
680
+ },
681
+ "type": "String"
682
+ },
683
+ {
684
+ "id": "resultExpression",
685
+ "label": "Result expression",
686
+ "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
687
+ "feel": "required",
688
+ "group": "output",
689
+ "binding": {
690
+ "key": "resultExpression",
691
+ "type": "zeebe:taskHeader"
692
+ },
693
+ "type": "Text"
694
+ },
695
+ {
696
+ "id": "errorExpression",
697
+ "label": "Error expression",
698
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
699
+ "feel": "required",
700
+ "group": "error",
701
+ "binding": {
702
+ "key": "errorExpression",
703
+ "type": "zeebe:taskHeader"
704
+ },
705
+ "type": "Text"
706
+ },
707
+ {
708
+ "id": "retryCount",
709
+ "label": "Retries",
710
+ "description": "Number of retries",
711
+ "value": "3",
712
+ "feel": "optional",
713
+ "group": "retries",
714
+ "binding": {
715
+ "property": "retries",
716
+ "type": "zeebe:taskDefinition"
717
+ },
718
+ "type": "String"
719
+ },
720
+ {
721
+ "id": "retryBackoff",
722
+ "label": "Retry backoff",
723
+ "description": "ISO-8601 duration to wait between retries",
724
+ "value": "PT30S",
725
+ "group": "retries",
726
+ "binding": {
727
+ "key": "retryBackoff",
728
+ "type": "zeebe:taskHeader"
729
+ },
730
+ "type": "String"
731
+ }
732
+ ],
733
+ "steps": [
734
+ {
735
+ "name": "Create folder",
736
+ "description": "Create a new folder in Google Drive",
737
+ "keywords": [
738
+ "create folder",
739
+ "new folder",
740
+ "google drive",
741
+ "folder",
742
+ "directory"
743
+ ],
744
+ "presetId": "type_folder"
745
+ },
746
+ {
747
+ "name": "Create file from template",
748
+ "description": "Create a new file in Google Drive from a template",
749
+ "keywords": [
750
+ "create file",
751
+ "template",
752
+ "google drive",
753
+ "file from template",
754
+ "document",
755
+ "generate file"
756
+ ],
757
+ "presetId": "type_file"
758
+ },
759
+ {
760
+ "name": "Upload file",
761
+ "description": "Upload a file to Google Drive",
762
+ "keywords": [
763
+ "upload",
764
+ "upload file",
765
+ "google drive",
766
+ "file upload",
767
+ "store file",
768
+ "add file"
769
+ ],
770
+ "presetId": "type_upload"
771
+ },
772
+ {
773
+ "name": "Download file",
774
+ "description": "Download a file from Google Drive",
775
+ "keywords": [
776
+ "download",
777
+ "download file",
778
+ "google drive",
779
+ "retrieve file",
780
+ "get file",
781
+ "export file"
782
+ ],
783
+ "presetId": "type_download"
784
+ }
785
+ ],
786
+ "presets": [
787
+ {
788
+ "id": "type_folder",
789
+ "properties": {
790
+ "resource.type": "folder"
791
+ }
792
+ },
793
+ {
794
+ "id": "type_file",
795
+ "properties": {
796
+ "resource.type": "file"
797
+ }
798
+ },
799
+ {
800
+ "id": "type_upload",
801
+ "properties": {
802
+ "resource.type": "upload"
803
+ }
804
+ },
805
+ {
806
+ "id": "type_download",
807
+ "properties": {
808
+ "resource.type": "download"
809
+ }
810
+ }
811
+ ],
812
+ "icon": {
813
+ "contents": "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgODcuMyA3OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoIGQ9Im02LjYgNjYuODUgMy44NSA2LjY1Yy44IDEuNCAxLjk1IDIuNSAzLjMgMy4zbDEzLjc1LTIzLjhoLTI3LjVjMCAxLjU1LjQgMy4xIDEuMiA0LjV6IiBmaWxsPSIjMDA2NmRhIi8+Cgk8cGF0aCBkPSJtNDMuNjUgMjUtMTMuNzUtMjMuOGMtMS4zNS44LTIuNSAxLjktMy4zIDMuM2wtMjUuNCA0NGE5LjA2IDkuMDYgMCAwIDAgLTEuMiA0LjVoMjcuNXoiIGZpbGw9IiMwMGFjNDciLz4KCTxwYXRoIGQ9Im03My41NSA3Ni44YzEuMzUtLjggMi41LTEuOSAzLjMtMy4zbDEuNi0yLjc1IDcuNjUtMTMuMjVjLjgtMS40IDEuMi0yLjk1IDEuMi00LjVoLTI3LjUwMmw1Ljg1MiAxMS41eiIgZmlsbD0iI2VhNDMzNSIvPgoJPHBhdGggZD0ibTQzLjY1IDI1IDEzLjc1LTIzLjhjLTEuMzUtLjgtMi45LTEuMi00LjUtMS4yaC0xOC41Yy0xLjYgMC0zLjE1LjQ1LTQuNSAxLjJ6IiBmaWxsPSIjMDA4MzJkIi8+Cgk8cGF0aCBkPSJtNTkuOCA1M2gtMzIuM2wtMTMuNzUgMjMuOGMxLjM1LjggMi45IDEuMiA0LjUgMS4yaDUwLjhjMS42IDAgMy4xNS0uNDUgNC41LTEuMnoiIGZpbGw9IiMyNjg0ZmMiLz4KCTxwYXRoIGQ9Im03My40IDI2LjUtMTIuNy0yMmMtLjgtMS40LTEuOTUtMi41LTMuMy0zLjNsLTEzLjc1IDIzLjggMTYuMTUgMjhoMjcuNDVjMC0xLjU1LS40LTMuMS0xLjItNC41eiIgZmlsbD0iI2ZmYmEwMCIvPgo8L3N2Zz4="
814
+ }
815
+ },
816
+ {
817
+ "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
818
+ "name": "Google Drive connector",
819
+ "id": "io.camunda.connectors.GoogleDrive.v1",
820
+ "version": 1,
821
+ "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
822
+ "description": "Create folder or a file from template",
823
+ "category": {
824
+ "id": "connectors",
825
+ "name": "Connectors"
826
+ },
827
+ "appliesTo": ["bpmn:Task"],
828
+ "elementType": {
829
+ "value": "bpmn:ServiceTask"
830
+ },
831
+ "groups": [
832
+ {
833
+ "id": "authentication",
834
+ "label": "Authentication"
835
+ },
836
+ {
837
+ "id": "operation",
838
+ "label": "Select operation"
839
+ },
840
+ {
841
+ "id": "operationDetails",
842
+ "label": "Operation details"
843
+ },
844
+ {
845
+ "id": "output",
846
+ "label": "Output mapping"
847
+ },
848
+ {
849
+ "id": "errors",
850
+ "label": "Error handling"
851
+ }
852
+ ],
853
+ "properties": [
854
+ {
855
+ "type": "Hidden",
856
+ "value": "io.camunda:google-drive:1",
857
+ "binding": {
858
+ "type": "zeebe:taskDefinition",
859
+ "property": "type"
860
+ }
861
+ },
862
+ {
863
+ "id": "authenticationType",
864
+ "label": "Type",
865
+ "group": "authentication",
866
+ "type": "Dropdown",
867
+ "value": "bearer",
868
+ "choices": [
869
+ {
870
+ "name": "Bearer token",
871
+ "value": "bearer"
872
+ },
873
+ {
874
+ "name": "Refresh token",
875
+ "value": "refresh"
876
+ }
877
+ ],
878
+ "binding": {
879
+ "type": "zeebe:input",
880
+ "name": "authentication.authType",
881
+ "key": "authentication.authType"
882
+ }
883
+ },
884
+ {
885
+ "label": "Bearer token",
886
+ "description": "Enter Google API Bearer token that is authorized to interact with desired Drive",
887
+ "group": "authentication",
888
+ "type": "String",
889
+ "binding": {
890
+ "type": "zeebe:input",
891
+ "name": "authentication.bearerToken"
892
+ },
893
+ "constraints": {
894
+ "notEmpty": true
895
+ },
896
+ "condition": {
897
+ "property": "authenticationType",
898
+ "equals": "bearer"
899
+ }
900
+ },
901
+ {
902
+ "label": "Client ID",
903
+ "description": "Enter Google API Client ID",
904
+ "group": "authentication",
905
+ "type": "String",
906
+ "binding": {
907
+ "type": "zeebe:input",
908
+ "name": "authentication.oauthClientId"
909
+ },
910
+ "constraints": {
911
+ "notEmpty": true
912
+ },
913
+ "condition": {
914
+ "property": "authenticationType",
915
+ "equals": "refresh"
916
+ }
917
+ },
918
+ {
919
+ "label": "Client secret",
920
+ "description": "Enter Google API client Secret",
921
+ "group": "authentication",
922
+ "type": "String",
923
+ "binding": {
924
+ "type": "zeebe:input",
925
+ "name": "authentication.oauthClientSecret"
926
+ },
927
+ "constraints": {
928
+ "notEmpty": true
929
+ },
930
+ "condition": {
931
+ "property": "authenticationType",
932
+ "equals": "refresh"
933
+ }
934
+ },
935
+ {
936
+ "label": "Refresh token",
937
+ "description": "Enter Google API refresh token that is authorized to interact with desired Drive",
938
+ "group": "authentication",
939
+ "type": "String",
940
+ "binding": {
941
+ "type": "zeebe:input",
942
+ "name": "authentication.oauthRefreshToken"
943
+ },
944
+ "constraints": {
945
+ "notEmpty": true
946
+ },
947
+ "condition": {
948
+ "property": "authenticationType",
949
+ "equals": "refresh"
950
+ }
951
+ },
952
+ {
953
+ "id": "resourceType",
954
+ "group": "operation",
955
+ "type": "Dropdown",
956
+ "value": "folder",
957
+ "choices": [
958
+ {
959
+ "name": "Create folder",
960
+ "value": "folder"
961
+ },
962
+ {
963
+ "name": "Create file from template",
964
+ "value": "file"
965
+ }
966
+ ],
967
+ "binding": {
968
+ "type": "zeebe:input",
969
+ "name": "resource.type",
970
+ "key": "resource.type"
971
+ }
972
+ },
973
+ {
974
+ "label": "File name",
975
+ "description": "Enter name for your file",
976
+ "group": "operationDetails",
977
+ "type": "String",
978
+ "feel": "optional",
979
+ "binding": {
980
+ "type": "zeebe:input",
981
+ "name": "resource.name"
982
+ },
983
+ "constraints": {
984
+ "notEmpty": true,
985
+ "maxLength": 255
986
+ },
987
+ "condition": {
988
+ "property": "resourceType",
989
+ "equals": "file"
990
+ }
991
+ },
992
+ {
993
+ "label": "Folder name",
994
+ "description": "Enter name for your folder",
995
+ "group": "operationDetails",
996
+ "type": "String",
997
+ "feel": "optional",
998
+ "binding": {
999
+ "type": "zeebe:input",
1000
+ "name": "resource.name"
1001
+ },
1002
+ "constraints": {
1003
+ "notEmpty": true,
1004
+ "maxLength": 255
1005
+ },
1006
+ "condition": {
1007
+ "property": "resourceType",
1008
+ "equals": "folder"
1009
+ }
1010
+ },
1011
+ {
1012
+ "label": "Template ID",
1013
+ "description": "Enter ID of the template you are creating a file from",
1014
+ "group": "operationDetails",
1015
+ "type": "String",
1016
+ "feel": "optional",
1017
+ "binding": {
1018
+ "type": "zeebe:input",
1019
+ "name": "resource.template.id"
1020
+ },
1021
+ "constraints": {
1022
+ "notEmpty": true
1023
+ },
1024
+ "condition": {
1025
+ "property": "resourceType",
1026
+ "equals": "file"
1027
+ }
1028
+ },
1029
+ {
1030
+ "label": "Parent folder ID",
1031
+ "description": "Enter ID of the parent folder where new folder will be created",
1032
+ "group": "operationDetails",
1033
+ "type": "String",
1034
+ "feel": "optional",
1035
+ "optional": true,
1036
+ "binding": {
1037
+ "type": "zeebe:input",
1038
+ "name": "resource.parent"
1039
+ },
1040
+ "condition": {
1041
+ "property": "resourceType",
1042
+ "equals": "folder"
1043
+ }
1044
+ },
1045
+ {
1046
+ "label": "Parent folder ID",
1047
+ "description": "Enter ID of the parent folder where new file will be created",
1048
+ "group": "operationDetails",
1049
+ "type": "String",
1050
+ "feel": "optional",
1051
+ "optional": true,
1052
+ "binding": {
1053
+ "type": "zeebe:input",
1054
+ "name": "resource.parent"
1055
+ },
1056
+ "condition": {
1057
+ "property": "resourceType",
1058
+ "equals": "file"
1059
+ }
1060
+ },
1061
+ {
1062
+ "label": "Template variables",
1063
+ "description": "Use this field to pass and update variables in your template as JSON",
1064
+ "group": "operationDetails",
1065
+ "type": "Text",
1066
+ "feel": "required",
1067
+ "binding": {
1068
+ "type": "zeebe:input",
1069
+ "name": "resource.template.variables"
1070
+ },
1071
+ "condition": {
1072
+ "property": "resourceType",
212
1073
  "equals": "file"
213
1074
  }
214
1075
  },
215
1076
  {
216
- "label": "Parent folder ID",
217
- "description": "Enter ID of the parent folder where new folder will be created",
218
- "group": "operationDetails",
219
- "type": "String",
1077
+ "label": "Additional properties or metadata",
1078
+ "description": "Use this field to pass additional Google Drive parameters as JSON.",
1079
+ "group": "operationDetails",
1080
+ "type": "Text",
1081
+ "optional": true,
1082
+ "feel": "required",
1083
+ "binding": {
1084
+ "type": "zeebe:input",
1085
+ "name": "resource.additionalGoogleDriveProperties",
1086
+ "key": "resource.additionalGoogleDriveProperties"
1087
+ }
1088
+ },
1089
+ {
1090
+ "label": "Result variable",
1091
+ "description": "Enter name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>",
1092
+ "group": "output",
1093
+ "type": "String",
1094
+ "binding": {
1095
+ "type": "zeebe:taskHeader",
1096
+ "key": "resultVariable"
1097
+ }
1098
+ },
1099
+ {
1100
+ "label": "Result expression",
1101
+ "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>",
1102
+ "group": "output",
1103
+ "type": "Text",
1104
+ "feel": "required",
1105
+ "binding": {
1106
+ "type": "zeebe:taskHeader",
1107
+ "key": "resultExpression"
1108
+ }
1109
+ },
1110
+ {
1111
+ "label": "Error expression",
1112
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
1113
+ "group": "errors",
1114
+ "type": "Text",
1115
+ "feel": "required",
1116
+ "binding": {
1117
+ "type": "zeebe:taskHeader",
1118
+ "key": "errorExpression"
1119
+ }
1120
+ }
1121
+ ],
1122
+ "icon": {
1123
+ "contents": "data:image/svg+xml;utf8,%3Csvg width='18' height='18' viewBox='0 0 87.3 78' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z' fill='%230066da'/%3E%3Cpath d='m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z' fill='%2300ac47'/%3E%3Cpath d='m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z' fill='%23ea4335'/%3E%3Cpath d='m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z' fill='%2300832d'/%3E%3Cpath d='m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z' fill='%232684fc'/%3E%3Cpath d='m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z' fill='%23ffba00'/%3E%3C/svg%3E"
1124
+ },
1125
+ "engines": {
1126
+ "camunda": "^8.2"
1127
+ }
1128
+ },
1129
+ {
1130
+ "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1131
+ "name": "Google Drive Outbound Connector",
1132
+ "id": "io.camunda.connectors.GoogleDrive.v1",
1133
+ "description": "Manage Google Drive files and folders",
1134
+ "keywords": [
1135
+ "create file",
1136
+ "create file from template",
1137
+ "create folder",
1138
+ "upload file",
1139
+ "download file",
1140
+ "file storage",
1141
+ "document management"
1142
+ ],
1143
+ "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
1144
+ "version": 5,
1145
+ "category": {
1146
+ "id": "connectors",
1147
+ "name": "Connectors"
1148
+ },
1149
+ "appliesTo": ["bpmn:Task"],
1150
+ "elementType": {
1151
+ "value": "bpmn:ServiceTask"
1152
+ },
1153
+ "engines": {
1154
+ "camunda": "^8.3"
1155
+ },
1156
+ "groups": [
1157
+ {
1158
+ "id": "authentication",
1159
+ "label": "Authentication"
1160
+ },
1161
+ {
1162
+ "id": "operation",
1163
+ "label": "Select operation"
1164
+ },
1165
+ {
1166
+ "id": "operationDetails",
1167
+ "label": "Operation details"
1168
+ },
1169
+ {
1170
+ "id": "connector",
1171
+ "label": "Connector"
1172
+ },
1173
+ {
1174
+ "id": "output",
1175
+ "label": "Output mapping"
1176
+ },
1177
+ {
1178
+ "id": "error",
1179
+ "label": "Error handling"
1180
+ },
1181
+ {
1182
+ "id": "retries",
1183
+ "label": "Retries"
1184
+ }
1185
+ ],
1186
+ "properties": [
1187
+ {
1188
+ "value": "io.camunda:google-drive:1",
1189
+ "binding": {
1190
+ "property": "type",
1191
+ "type": "zeebe:taskDefinition"
1192
+ },
1193
+ "type": "Hidden"
1194
+ },
1195
+ {
1196
+ "id": "authentication.authType",
1197
+ "label": "Type",
1198
+ "optional": false,
1199
+ "value": "refresh",
1200
+ "constraints": {
1201
+ "notEmpty": true
1202
+ },
1203
+ "group": "authentication",
1204
+ "binding": {
1205
+ "name": "authentication.authType",
1206
+ "type": "zeebe:input"
1207
+ },
1208
+ "type": "Dropdown",
1209
+ "choices": [
1210
+ {
1211
+ "name": "Bearer token",
1212
+ "value": "bearer"
1213
+ },
1214
+ {
1215
+ "name": "Refresh token",
1216
+ "value": "refresh"
1217
+ }
1218
+ ]
1219
+ },
1220
+ {
1221
+ "id": "authentication.bearerToken",
1222
+ "label": "Bearer token",
1223
+ "description": "Enter a valid Google API Bearer token",
1224
+ "optional": false,
1225
+ "constraints": {
1226
+ "notEmpty": true
1227
+ },
1228
+ "feel": "optional",
1229
+ "group": "authentication",
1230
+ "binding": {
1231
+ "name": "authentication.bearerToken",
1232
+ "type": "zeebe:input"
1233
+ },
1234
+ "condition": {
1235
+ "property": "authentication.authType",
1236
+ "equals": "bearer",
1237
+ "type": "simple"
1238
+ },
1239
+ "type": "String"
1240
+ },
1241
+ {
1242
+ "id": "authentication.oauthClientId",
1243
+ "label": "Client ID",
1244
+ "description": "Enter Google API Client ID",
1245
+ "optional": false,
1246
+ "constraints": {
1247
+ "notEmpty": true
1248
+ },
1249
+ "feel": "optional",
1250
+ "group": "authentication",
1251
+ "binding": {
1252
+ "name": "authentication.oauthClientId",
1253
+ "type": "zeebe:input"
1254
+ },
1255
+ "condition": {
1256
+ "property": "authentication.authType",
1257
+ "equals": "refresh",
1258
+ "type": "simple"
1259
+ },
1260
+ "type": "String"
1261
+ },
1262
+ {
1263
+ "id": "authentication.oauthClientSecret",
1264
+ "label": "Client secret",
1265
+ "description": "Enter Google API client Secret",
1266
+ "optional": false,
1267
+ "constraints": {
1268
+ "notEmpty": true
1269
+ },
1270
+ "feel": "optional",
1271
+ "group": "authentication",
1272
+ "binding": {
1273
+ "name": "authentication.oauthClientSecret",
1274
+ "type": "zeebe:input"
1275
+ },
1276
+ "condition": {
1277
+ "property": "authentication.authType",
1278
+ "equals": "refresh",
1279
+ "type": "simple"
1280
+ },
1281
+ "type": "String"
1282
+ },
1283
+ {
1284
+ "id": "authentication.oauthRefreshToken",
1285
+ "label": "Refresh token",
1286
+ "description": "Enter a valid Google API refresh token",
1287
+ "optional": false,
1288
+ "constraints": {
1289
+ "notEmpty": true
1290
+ },
1291
+ "feel": "optional",
1292
+ "group": "authentication",
1293
+ "binding": {
1294
+ "name": "authentication.oauthRefreshToken",
1295
+ "type": "zeebe:input"
1296
+ },
1297
+ "condition": {
1298
+ "property": "authentication.authType",
1299
+ "equals": "refresh",
1300
+ "type": "simple"
1301
+ },
1302
+ "type": "String"
1303
+ },
1304
+ {
1305
+ "id": "resource.type",
1306
+ "label": "Operation",
1307
+ "optional": false,
1308
+ "value": "folder",
1309
+ "constraints": {
1310
+ "notEmpty": true
1311
+ },
1312
+ "group": "operation",
1313
+ "binding": {
1314
+ "name": "resource.type",
1315
+ "type": "zeebe:input"
1316
+ },
1317
+ "type": "Dropdown",
1318
+ "choices": [
1319
+ {
1320
+ "name": "Create folder",
1321
+ "value": "folder"
1322
+ },
1323
+ {
1324
+ "name": "Create file from template",
1325
+ "value": "file"
1326
+ },
1327
+ {
1328
+ "name": "Upload file",
1329
+ "value": "upload"
1330
+ },
1331
+ {
1332
+ "name": "Download file",
1333
+ "value": "download"
1334
+ }
1335
+ ]
1336
+ },
1337
+ {
1338
+ "id": "resource.name",
1339
+ "label": "New resource name",
1340
+ "optional": false,
1341
+ "constraints": {
1342
+ "notEmpty": true
1343
+ },
220
1344
  "feel": "optional",
221
- "optional": true,
1345
+ "group": "operationDetails",
222
1346
  "binding": {
223
- "type": "zeebe:input",
224
- "name": "resource.parent"
1347
+ "name": "resource.name",
1348
+ "type": "zeebe:input"
225
1349
  },
226
1350
  "condition": {
227
- "property": "resourceType",
228
- "equals": "folder"
229
- }
1351
+ "property": "resource.type",
1352
+ "oneOf": ["folder", "file"],
1353
+ "type": "simple"
1354
+ },
1355
+ "type": "String"
230
1356
  },
231
1357
  {
1358
+ "id": "resource.parent",
232
1359
  "label": "Parent folder ID",
233
- "description": "Enter ID of the parent folder where new file will be created",
234
- "group": "operationDetails",
235
- "type": "String",
1360
+ "description": "Your resources will be created here. If left empty, a new resource will appear in the root folder",
1361
+ "optional": true,
236
1362
  "feel": "optional",
1363
+ "group": "operationDetails",
1364
+ "binding": {
1365
+ "name": "resource.parent",
1366
+ "type": "zeebe:input"
1367
+ },
1368
+ "condition": {
1369
+ "property": "resource.type",
1370
+ "oneOf": ["folder", "file", "upload"],
1371
+ "type": "simple"
1372
+ },
1373
+ "type": "String"
1374
+ },
1375
+ {
1376
+ "id": "resource.additionalGoogleDriveProperties",
1377
+ "label": "Additional properties or metadata",
237
1378
  "optional": true,
1379
+ "feel": "required",
1380
+ "group": "operationDetails",
238
1381
  "binding": {
239
- "type": "zeebe:input",
240
- "name": "resource.parent"
1382
+ "name": "resource.additionalGoogleDriveProperties",
1383
+ "type": "zeebe:input"
241
1384
  },
242
1385
  "condition": {
243
- "property": "resourceType",
244
- "equals": "file"
245
- }
1386
+ "property": "resource.type",
1387
+ "equals": "folder",
1388
+ "type": "simple"
1389
+ },
1390
+ "type": "String"
246
1391
  },
247
1392
  {
248
- "label": "Template variables",
249
- "description": "Use this field to pass and update variables in your template as JSON",
1393
+ "id": "resource.template.id",
1394
+ "label": "Template ID",
1395
+ "optional": false,
1396
+ "constraints": {
1397
+ "notEmpty": true
1398
+ },
1399
+ "feel": "optional",
250
1400
  "group": "operationDetails",
251
- "type": "Text",
1401
+ "binding": {
1402
+ "name": "resource.template.id",
1403
+ "type": "zeebe:input"
1404
+ },
1405
+ "condition": {
1406
+ "property": "resource.type",
1407
+ "equals": "file",
1408
+ "type": "simple"
1409
+ },
1410
+ "type": "String"
1411
+ },
1412
+ {
1413
+ "id": "resource.template.variables",
1414
+ "label": "Template variables",
1415
+ "optional": false,
252
1416
  "feel": "required",
1417
+ "group": "operationDetails",
253
1418
  "binding": {
254
- "type": "zeebe:input",
255
- "name": "resource.template.variables"
1419
+ "name": "resource.template.variables",
1420
+ "type": "zeebe:input"
256
1421
  },
257
1422
  "condition": {
258
- "property": "resourceType",
259
- "equals": "file"
260
- }
1423
+ "property": "resource.type",
1424
+ "equals": "file",
1425
+ "type": "simple"
1426
+ },
1427
+ "type": "String"
261
1428
  },
262
1429
  {
263
- "label": "Additional properties or metadata",
264
- "description": "Use this field to pass additional Google Drive parameters as JSON.",
1430
+ "id": "resource.downloadData.fileId",
1431
+ "label": "File ID",
1432
+ "optional": false,
1433
+ "constraints": {
1434
+ "notEmpty": true
1435
+ },
1436
+ "feel": "optional",
265
1437
  "group": "operationDetails",
266
- "type": "Text",
267
- "optional": true,
1438
+ "binding": {
1439
+ "name": "resource.downloadData.fileId",
1440
+ "type": "zeebe:input"
1441
+ },
1442
+ "condition": {
1443
+ "property": "resource.type",
1444
+ "equals": "download",
1445
+ "type": "simple"
1446
+ },
1447
+ "type": "String"
1448
+ },
1449
+ {
1450
+ "id": "resource.uploadData.document",
1451
+ "label": "Document",
1452
+ "description": "Upload camunda document, <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">see documentation</a>",
1453
+ "optional": false,
1454
+ "constraints": {
1455
+ "notEmpty": true
1456
+ },
268
1457
  "feel": "required",
1458
+ "group": "operationDetails",
269
1459
  "binding": {
270
- "type": "zeebe:input",
271
- "name": "resource.additionalGoogleDriveProperties",
272
- "key": "resource.additionalGoogleDriveProperties"
273
- }
1460
+ "name": "resource.uploadData.document",
1461
+ "type": "zeebe:input"
1462
+ },
1463
+ "condition": {
1464
+ "property": "resource.type",
1465
+ "equals": "upload",
1466
+ "type": "simple"
1467
+ },
1468
+ "type": "String"
1469
+ },
1470
+ {
1471
+ "id": "version",
1472
+ "label": "Version",
1473
+ "description": "Version of the element template",
1474
+ "value": "5",
1475
+ "group": "connector",
1476
+ "binding": {
1477
+ "key": "elementTemplateVersion",
1478
+ "type": "zeebe:taskHeader"
1479
+ },
1480
+ "type": "Hidden"
1481
+ },
1482
+ {
1483
+ "id": "id",
1484
+ "label": "ID",
1485
+ "description": "ID of the element template",
1486
+ "value": "io.camunda.connectors.GoogleDrive.v1",
1487
+ "group": "connector",
1488
+ "binding": {
1489
+ "key": "elementTemplateId",
1490
+ "type": "zeebe:taskHeader"
1491
+ },
1492
+ "type": "Hidden"
274
1493
  },
275
1494
  {
1495
+ "id": "resultVariable",
276
1496
  "label": "Result variable",
277
- "description": "Enter name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>",
1497
+ "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
278
1498
  "group": "output",
279
- "type": "String",
280
1499
  "binding": {
281
- "type": "zeebe:taskHeader",
282
- "key": "resultVariable"
283
- }
1500
+ "key": "resultVariable",
1501
+ "type": "zeebe:taskHeader"
1502
+ },
1503
+ "type": "String"
284
1504
  },
285
1505
  {
1506
+ "id": "resultExpression",
286
1507
  "label": "Result expression",
287
- "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>",
288
- "group": "output",
289
- "type": "Text",
1508
+ "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
290
1509
  "feel": "required",
1510
+ "group": "output",
291
1511
  "binding": {
292
- "type": "zeebe:taskHeader",
293
- "key": "resultExpression"
294
- }
1512
+ "key": "resultExpression",
1513
+ "type": "zeebe:taskHeader"
1514
+ },
1515
+ "type": "Text"
295
1516
  },
296
1517
  {
1518
+ "id": "errorExpression",
297
1519
  "label": "Error expression",
298
- "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#bpmn-errors\" target=\"_blank\">documentation</a>",
299
- "group": "errors",
300
- "type": "Text",
1520
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
301
1521
  "feel": "required",
1522
+ "group": "error",
302
1523
  "binding": {
303
- "type": "zeebe:taskHeader",
304
- "key": "errorExpression"
305
- }
1524
+ "key": "errorExpression",
1525
+ "type": "zeebe:taskHeader"
1526
+ },
1527
+ "type": "Text"
1528
+ },
1529
+ {
1530
+ "id": "retryCount",
1531
+ "label": "Retries",
1532
+ "description": "Number of retries",
1533
+ "value": "3",
1534
+ "feel": "optional",
1535
+ "group": "retries",
1536
+ "binding": {
1537
+ "property": "retries",
1538
+ "type": "zeebe:taskDefinition"
1539
+ },
1540
+ "type": "String"
1541
+ },
1542
+ {
1543
+ "id": "retryBackoff",
1544
+ "label": "Retry backoff",
1545
+ "description": "ISO-8601 duration to wait between retries",
1546
+ "value": "PT0S",
1547
+ "group": "retries",
1548
+ "binding": {
1549
+ "key": "retryBackoff",
1550
+ "type": "zeebe:taskHeader"
1551
+ },
1552
+ "type": "String"
306
1553
  }
307
1554
  ],
308
1555
  "icon": {
309
- "contents": "data:image/svg+xml;utf8,%3Csvg width='18' height='18' viewBox='0 0 87.3 78' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z' fill='%230066da'/%3E%3Cpath d='m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z' fill='%2300ac47'/%3E%3Cpath d='m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z' fill='%23ea4335'/%3E%3Cpath d='m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z' fill='%2300832d'/%3E%3Cpath d='m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z' fill='%232684fc'/%3E%3Cpath d='m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z' fill='%23ffba00'/%3E%3C/svg%3E"
310
- },
311
- "engines": {
312
- "camunda": "^8.2"
1556
+ "contents": "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgODcuMyA3OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoIGQ9Im02LjYgNjYuODUgMy44NSA2LjY1Yy44IDEuNCAxLjk1IDIuNSAzLjMgMy4zbDEzLjc1LTIzLjhoLTI3LjVjMCAxLjU1LjQgMy4xIDEuMiA0LjV6IiBmaWxsPSIjMDA2NmRhIi8+Cgk8cGF0aCBkPSJtNDMuNjUgMjUtMTMuNzUtMjMuOGMtMS4zNS44LTIuNSAxLjktMy4zIDMuM2wtMjUuNCA0NGE5LjA2IDkuMDYgMCAwIDAgLTEuMiA0LjVoMjcuNXoiIGZpbGw9IiMwMGFjNDciLz4KCTxwYXRoIGQ9Im03My41NSA3Ni44YzEuMzUtLjggMi41LTEuOSAzLjMtMy4zbDEuNi0yLjc1IDcuNjUtMTMuMjVjLjgtMS40IDEuMi0yLjk1IDEuMi00LjVoLTI3LjUwMmw1Ljg1MiAxMS41eiIgZmlsbD0iI2VhNDMzNSIvPgoJPHBhdGggZD0ibTQzLjY1IDI1IDEzLjc1LTIzLjhjLTEuMzUtLjgtMi45LTEuMi00LjUtMS4yaC0xOC41Yy0xLjYgMC0zLjE1LjQ1LTQuNSAxLjJ6IiBmaWxsPSIjMDA4MzJkIi8+Cgk8cGF0aCBkPSJtNTkuOCA1M2gtMzIuM2wtMTMuNzUgMjMuOGMxLjM1LjggMi45IDEuMiA0LjUgMS4yaDUwLjhjMS42IDAgMy4xNS0uNDUgNC41LTEuMnoiIGZpbGw9IiMyNjg0ZmMiLz4KCTxwYXRoIGQ9Im03My40IDI2LjUtMTIuNy0yMmMtLjgtMS40LTEuOTUtMi41LTMuMy0zLjNsLTEzLjc1IDIzLjggMTYuMTUgMjhoMjcuNDVjMC0xLjU1LS40LTMuMS0xLjItNC41eiIgZmlsbD0iI2ZmYmEwMCIvPgo8L3N2Zz4="
313
1557
  }
314
1558
  },
315
1559
  {
@@ -317,17 +1561,11 @@
317
1561
  "name": "Google Drive Outbound Connector",
318
1562
  "id": "io.camunda.connectors.GoogleDrive.v1",
319
1563
  "description": "Manage Google Drive files and folders",
320
- "keywords": [
321
- "create file",
322
- "create file from template",
323
- "create folder",
324
- "upload file",
325
- "download file",
326
- "file storage",
327
- "document management"
328
- ],
1564
+ "metadata": {
1565
+ "keywords": ["create file", "create file from template", "create folder"]
1566
+ },
329
1567
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
330
- "version": 5,
1568
+ "version": 4,
331
1569
  "category": {
332
1570
  "id": "connectors",
333
1571
  "name": "Connectors"
@@ -352,10 +1590,6 @@
352
1590
  "id": "operationDetails",
353
1591
  "label": "Operation details"
354
1592
  },
355
- {
356
- "id": "connector",
357
- "label": "Connector"
358
- },
359
1593
  {
360
1594
  "id": "output",
361
1595
  "label": "Output mapping"
@@ -653,34 +1887,10 @@
653
1887
  },
654
1888
  "type": "String"
655
1889
  },
656
- {
657
- "id": "version",
658
- "label": "Version",
659
- "description": "Version of the element template",
660
- "value": "5",
661
- "group": "connector",
662
- "binding": {
663
- "key": "elementTemplateVersion",
664
- "type": "zeebe:taskHeader"
665
- },
666
- "type": "Hidden"
667
- },
668
- {
669
- "id": "id",
670
- "label": "ID",
671
- "description": "ID of the element template",
672
- "value": "io.camunda.connectors.GoogleDrive.v1",
673
- "group": "connector",
674
- "binding": {
675
- "key": "elementTemplateId",
676
- "type": "zeebe:taskHeader"
677
- },
678
- "type": "Hidden"
679
- },
680
1890
  {
681
1891
  "id": "resultVariable",
682
1892
  "label": "Result variable",
683
- "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
1893
+ "description": "Name of variable to store the response in",
684
1894
  "group": "output",
685
1895
  "binding": {
686
1896
  "key": "resultVariable",
@@ -691,7 +1901,7 @@
691
1901
  {
692
1902
  "id": "resultExpression",
693
1903
  "label": "Result expression",
694
- "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
1904
+ "description": "Expression to map the response into process variables",
695
1905
  "feel": "required",
696
1906
  "group": "output",
697
1907
  "binding": {
@@ -747,11 +1957,17 @@
747
1957
  "name": "Google Drive Outbound Connector",
748
1958
  "id": "io.camunda.connectors.GoogleDrive.v1",
749
1959
  "description": "Manage Google Drive files and folders",
750
- "metadata": {
751
- "keywords": ["create file", "create file from template", "create folder"]
752
- },
1960
+ "keywords": [
1961
+ "create file",
1962
+ "create file from template",
1963
+ "create folder",
1964
+ "upload file",
1965
+ "download file",
1966
+ "file storage",
1967
+ "document management"
1968
+ ],
753
1969
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
754
- "version": 4,
1970
+ "version": 6,
755
1971
  "category": {
756
1972
  "id": "connectors",
757
1973
  "name": "Connectors"
@@ -761,7 +1977,7 @@
761
1977
  "value": "bpmn:ServiceTask"
762
1978
  },
763
1979
  "engines": {
764
- "camunda": "^8.3"
1980
+ "camunda": "^8.10"
765
1981
  },
766
1982
  "groups": [
767
1983
  {
@@ -776,6 +1992,10 @@
776
1992
  "id": "operationDetails",
777
1993
  "label": "Operation details"
778
1994
  },
1995
+ {
1996
+ "id": "connector",
1997
+ "label": "Connector"
1998
+ },
779
1999
  {
780
2000
  "id": "output",
781
2001
  "label": "Output mapping"
@@ -826,7 +2046,6 @@
826
2046
  {
827
2047
  "id": "authentication.bearerToken",
828
2048
  "label": "Bearer token",
829
- "description": "Enter a valid Google API Bearer token",
830
2049
  "optional": false,
831
2050
  "constraints": {
832
2051
  "notEmpty": true
@@ -847,7 +2066,6 @@
847
2066
  {
848
2067
  "id": "authentication.oauthClientId",
849
2068
  "label": "Client ID",
850
- "description": "Enter Google API Client ID",
851
2069
  "optional": false,
852
2070
  "constraints": {
853
2071
  "notEmpty": true
@@ -868,7 +2086,6 @@
868
2086
  {
869
2087
  "id": "authentication.oauthClientSecret",
870
2088
  "label": "Client secret",
871
- "description": "Enter Google API client Secret",
872
2089
  "optional": false,
873
2090
  "constraints": {
874
2091
  "notEmpty": true
@@ -889,7 +2106,6 @@
889
2106
  {
890
2107
  "id": "authentication.oauthRefreshToken",
891
2108
  "label": "Refresh token",
892
- "description": "Enter a valid Google API refresh token",
893
2109
  "optional": false,
894
2110
  "constraints": {
895
2111
  "notEmpty": true
@@ -963,7 +2179,6 @@
963
2179
  {
964
2180
  "id": "resource.parent",
965
2181
  "label": "Parent folder ID",
966
- "description": "Your resources will be created here. If left empty, a new resource will appear in the root folder",
967
2182
  "optional": true,
968
2183
  "feel": "optional",
969
2184
  "group": "operationDetails",
@@ -976,6 +2191,7 @@
976
2191
  "oneOf": ["folder", "file", "upload"],
977
2192
  "type": "simple"
978
2193
  },
2194
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
979
2195
  "type": "String"
980
2196
  },
981
2197
  {
@@ -1042,25 +2258,209 @@
1042
2258
  "feel": "optional",
1043
2259
  "group": "operationDetails",
1044
2260
  "binding": {
1045
- "name": "resource.downloadData.fileId",
2261
+ "name": "resource.downloadData.fileId",
2262
+ "type": "zeebe:input"
2263
+ },
2264
+ "condition": {
2265
+ "property": "resource.type",
2266
+ "equals": "download",
2267
+ "type": "simple"
2268
+ },
2269
+ "type": "String"
2270
+ },
2271
+ {
2272
+ "id": "resource.uploadData.document_documentSource",
2273
+ "label": "Document source",
2274
+ "value": "camunda",
2275
+ "group": "operationDetails",
2276
+ "binding": {
2277
+ "name": "resource.uploadData.document_documentSource",
2278
+ "type": "zeebe:input"
2279
+ },
2280
+ "condition": {
2281
+ "property": "resource.type",
2282
+ "equals": "upload",
2283
+ "type": "simple"
2284
+ },
2285
+ "tooltip": "Upload a Camunda document. See the <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda document upload API</a>.",
2286
+ "type": "Dropdown",
2287
+ "choices": [
2288
+ {
2289
+ "name": "Camunda Document",
2290
+ "value": "camunda"
2291
+ },
2292
+ {
2293
+ "name": "Inline Content",
2294
+ "value": "inline"
2295
+ },
2296
+ {
2297
+ "name": "From URL",
2298
+ "value": "external"
2299
+ }
2300
+ ]
2301
+ },
2302
+ {
2303
+ "id": "resource.uploadData.document_camundaReference",
2304
+ "label": "Camunda document",
2305
+ "constraints": {
2306
+ "notEmpty": true
2307
+ },
2308
+ "feel": "required",
2309
+ "group": "operationDetails",
2310
+ "binding": {
2311
+ "name": "resource.uploadData.document_camundaReference",
2312
+ "type": "zeebe:input"
2313
+ },
2314
+ "condition": {
2315
+ "allMatch": [
2316
+ {
2317
+ "property": "resource.type",
2318
+ "equals": "upload",
2319
+ "type": "simple"
2320
+ },
2321
+ {
2322
+ "property": "resource.uploadData.document_documentSource",
2323
+ "equals": "camunda",
2324
+ "type": "simple"
2325
+ }
2326
+ ]
2327
+ },
2328
+ "type": "String"
2329
+ },
2330
+ {
2331
+ "id": "resource.uploadData.document_inline_content",
2332
+ "label": "Content",
2333
+ "constraints": {
2334
+ "notEmpty": true
2335
+ },
2336
+ "feel": "optional",
2337
+ "group": "operationDetails",
2338
+ "binding": {
2339
+ "name": "resource.uploadData.document_inline_content",
2340
+ "type": "zeebe:input"
2341
+ },
2342
+ "condition": {
2343
+ "allMatch": [
2344
+ {
2345
+ "property": "resource.type",
2346
+ "equals": "upload",
2347
+ "type": "simple"
2348
+ },
2349
+ {
2350
+ "property": "resource.uploadData.document_documentSource",
2351
+ "equals": "inline",
2352
+ "type": "simple"
2353
+ }
2354
+ ]
2355
+ },
2356
+ "type": "String"
2357
+ },
2358
+ {
2359
+ "id": "resource.uploadData.document_inline_fileName",
2360
+ "label": "File name",
2361
+ "feel": "optional",
2362
+ "group": "operationDetails",
2363
+ "binding": {
2364
+ "name": "resource.uploadData.document_inline_fileName",
2365
+ "type": "zeebe:input"
2366
+ },
2367
+ "condition": {
2368
+ "allMatch": [
2369
+ {
2370
+ "property": "resource.type",
2371
+ "equals": "upload",
2372
+ "type": "simple"
2373
+ },
2374
+ {
2375
+ "property": "resource.uploadData.document_documentSource",
2376
+ "equals": "inline",
2377
+ "type": "simple"
2378
+ }
2379
+ ]
2380
+ },
2381
+ "type": "String"
2382
+ },
2383
+ {
2384
+ "id": "resource.uploadData.document_inline_contentType",
2385
+ "label": "Content type",
2386
+ "feel": "optional",
2387
+ "group": "operationDetails",
2388
+ "binding": {
2389
+ "name": "resource.uploadData.document_inline_contentType",
2390
+ "type": "zeebe:input"
2391
+ },
2392
+ "condition": {
2393
+ "allMatch": [
2394
+ {
2395
+ "property": "resource.type",
2396
+ "equals": "upload",
2397
+ "type": "simple"
2398
+ },
2399
+ {
2400
+ "property": "resource.uploadData.document_documentSource",
2401
+ "equals": "inline",
2402
+ "type": "simple"
2403
+ }
2404
+ ]
2405
+ },
2406
+ "type": "String"
2407
+ },
2408
+ {
2409
+ "id": "resource.uploadData.document_external_url",
2410
+ "label": "URL",
2411
+ "constraints": {
2412
+ "notEmpty": true
2413
+ },
2414
+ "feel": "optional",
2415
+ "group": "operationDetails",
2416
+ "binding": {
2417
+ "name": "resource.uploadData.document_external_url",
2418
+ "type": "zeebe:input"
2419
+ },
2420
+ "condition": {
2421
+ "allMatch": [
2422
+ {
2423
+ "property": "resource.type",
2424
+ "equals": "upload",
2425
+ "type": "simple"
2426
+ },
2427
+ {
2428
+ "property": "resource.uploadData.document_documentSource",
2429
+ "equals": "external",
2430
+ "type": "simple"
2431
+ }
2432
+ ]
2433
+ },
2434
+ "type": "String"
2435
+ },
2436
+ {
2437
+ "id": "resource.uploadData.document_external_fileName",
2438
+ "label": "File name",
2439
+ "feel": "optional",
2440
+ "group": "operationDetails",
2441
+ "binding": {
2442
+ "name": "resource.uploadData.document_external_fileName",
1046
2443
  "type": "zeebe:input"
1047
2444
  },
1048
2445
  "condition": {
1049
- "property": "resource.type",
1050
- "equals": "download",
1051
- "type": "simple"
2446
+ "allMatch": [
2447
+ {
2448
+ "property": "resource.type",
2449
+ "equals": "upload",
2450
+ "type": "simple"
2451
+ },
2452
+ {
2453
+ "property": "resource.uploadData.document_documentSource",
2454
+ "equals": "external",
2455
+ "type": "simple"
2456
+ }
2457
+ ]
1052
2458
  },
1053
2459
  "type": "String"
1054
2460
  },
1055
2461
  {
1056
- "id": "resource.uploadData.document",
1057
- "label": "Document",
1058
- "description": "Upload camunda document, <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">see documentation</a>",
1059
- "optional": false,
1060
- "constraints": {
1061
- "notEmpty": true
1062
- },
1063
- "feel": "required",
2462
+ "id": "resource.uploadData.document__composer",
2463
+ "value": "=if document_documentSource = \"camunda\" then document_camundaReference else if document_documentSource = \"inline\" then { \"camunda.document.type\": \"inline\", content: document_inline_content, name: document_inline_fileName, contentType: document_inline_contentType } else if document_documentSource = \"external\" then { \"camunda.document.type\": \"external\", url: document_external_url, name: document_external_fileName } else null",
1064
2464
  "group": "operationDetails",
1065
2465
  "binding": {
1066
2466
  "name": "resource.uploadData.document",
@@ -1071,12 +2471,36 @@
1071
2471
  "equals": "upload",
1072
2472
  "type": "simple"
1073
2473
  },
1074
- "type": "String"
2474
+ "type": "Hidden"
2475
+ },
2476
+ {
2477
+ "id": "version",
2478
+ "label": "Version",
2479
+ "description": "Version of the element template",
2480
+ "value": "6",
2481
+ "group": "connector",
2482
+ "binding": {
2483
+ "key": "elementTemplateVersion",
2484
+ "type": "zeebe:taskHeader"
2485
+ },
2486
+ "type": "Hidden"
2487
+ },
2488
+ {
2489
+ "id": "id",
2490
+ "label": "ID",
2491
+ "description": "ID of the element template",
2492
+ "value": "io.camunda.connectors.GoogleDrive.v1",
2493
+ "group": "connector",
2494
+ "binding": {
2495
+ "key": "elementTemplateId",
2496
+ "type": "zeebe:taskHeader"
2497
+ },
2498
+ "type": "Hidden"
1075
2499
  },
1076
2500
  {
1077
2501
  "id": "resultVariable",
1078
2502
  "label": "Result variable",
1079
- "description": "Name of variable to store the response in",
2503
+ "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
1080
2504
  "group": "output",
1081
2505
  "binding": {
1082
2506
  "key": "resultVariable",
@@ -1087,7 +2511,7 @@
1087
2511
  {
1088
2512
  "id": "resultExpression",
1089
2513
  "label": "Result expression",
1090
- "description": "Expression to map the response into process variables",
2514
+ "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
1091
2515
  "feel": "required",
1092
2516
  "group": "output",
1093
2517
  "binding": {
@@ -1125,7 +2549,7 @@
1125
2549
  "id": "retryBackoff",
1126
2550
  "label": "Retry backoff",
1127
2551
  "description": "ISO-8601 duration to wait between retries",
1128
- "value": "PT0S",
2552
+ "value": "PT30S",
1129
2553
  "group": "retries",
1130
2554
  "binding": {
1131
2555
  "key": "retryBackoff",
@@ -1142,9 +2566,12 @@
1142
2566
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1143
2567
  "name": "Google Drive connector",
1144
2568
  "id": "io.camunda.connectors.GoogleDrive.v1",
1145
- "version": 1,
1146
2569
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
1147
2570
  "description": "Create folder or a file from template",
2571
+ "deprecated": {
2572
+ "message": "Replace with 'Google Drive connector' template.",
2573
+ "documentationRef": "https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/using-templates/#replacing-templates"
2574
+ },
1148
2575
  "category": {
1149
2576
  "id": "connectors",
1150
2577
  "name": "Connectors"
@@ -1446,21 +2873,15 @@
1446
2873
  ],
1447
2874
  "icon": {
1448
2875
  "contents": "data:image/svg+xml;utf8,%3Csvg width='18' height='18' viewBox='0 0 87.3 78' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z' fill='%230066da'/%3E%3Cpath d='m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z' fill='%2300ac47'/%3E%3Cpath d='m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z' fill='%23ea4335'/%3E%3Cpath d='m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z' fill='%2300832d'/%3E%3Cpath d='m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z' fill='%232684fc'/%3E%3Cpath d='m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z' fill='%23ffba00'/%3E%3C/svg%3E"
1449
- },
1450
- "engines": {
1451
- "camunda": "^8.2"
1452
2876
  }
1453
2877
  },
1454
2878
  {
1455
2879
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1456
- "name": "Google Drive connector",
2880
+ "name": "Google Drive Outbound Connector",
1457
2881
  "id": "io.camunda.connectors.GoogleDrive.v1",
2882
+ "version": 2,
1458
2883
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
1459
2884
  "description": "Create folder or a file from template",
1460
- "deprecated": {
1461
- "message": "Replace with 'Google Drive connector' template.",
1462
- "documentationRef": "https://docs.camunda.io/docs/components/modeler/desktop-modeler/element-templates/using-templates/#replacing-templates"
1463
- },
1464
2885
  "category": {
1465
2886
  "id": "connectors",
1466
2887
  "name": "Connectors"
@@ -1762,15 +3183,27 @@
1762
3183
  ],
1763
3184
  "icon": {
1764
3185
  "contents": "data:image/svg+xml;utf8,%3Csvg width='18' height='18' viewBox='0 0 87.3 78' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z' fill='%230066da'/%3E%3Cpath d='m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z' fill='%2300ac47'/%3E%3Cpath d='m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z' fill='%23ea4335'/%3E%3Cpath d='m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z' fill='%2300832d'/%3E%3Cpath d='m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z' fill='%232684fc'/%3E%3Cpath d='m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z' fill='%23ffba00'/%3E%3C/svg%3E"
3186
+ },
3187
+ "engines": {
3188
+ "camunda": "^8.2"
1765
3189
  }
1766
3190
  },
1767
3191
  {
1768
3192
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
1769
3193
  "name": "Google Drive Outbound Connector",
1770
3194
  "id": "io.camunda.connectors.GoogleDrive.v1",
1771
- "description": "Create folder or a file from template",
3195
+ "description": "Manage Google Drive files and folders",
3196
+ "keywords": [
3197
+ "create file",
3198
+ "create file from template",
3199
+ "create folder",
3200
+ "upload file",
3201
+ "download file",
3202
+ "file storage",
3203
+ "document management"
3204
+ ],
1772
3205
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
1773
- "version": 3,
3206
+ "version": 7,
1774
3207
  "category": {
1775
3208
  "id": "connectors",
1776
3209
  "name": "Connectors"
@@ -1779,19 +3212,26 @@
1779
3212
  "elementType": {
1780
3213
  "value": "bpmn:ServiceTask"
1781
3214
  },
3215
+ "engines": {
3216
+ "camunda": "^8.10"
3217
+ },
1782
3218
  "groups": [
1783
- {
1784
- "id": "authentication",
1785
- "label": "Authentication"
1786
- },
1787
3219
  {
1788
3220
  "id": "operation",
1789
3221
  "label": "Select operation"
1790
3222
  },
3223
+ {
3224
+ "id": "authentication",
3225
+ "label": "Authentication"
3226
+ },
1791
3227
  {
1792
3228
  "id": "operationDetails",
1793
3229
  "label": "Operation details"
1794
3230
  },
3231
+ {
3232
+ "id": "connector",
3233
+ "label": "Connector"
3234
+ },
1795
3235
  {
1796
3236
  "id": "output",
1797
3237
  "label": "Output mapping"
@@ -1814,6 +3254,36 @@
1814
3254
  },
1815
3255
  "type": "Hidden"
1816
3256
  },
3257
+ {
3258
+ "id": "resource.type",
3259
+ "label": "Operation",
3260
+ "description": "Select the Google Drive operation to perform",
3261
+ "value": "folder",
3262
+ "group": "operation",
3263
+ "binding": {
3264
+ "name": "resource.type",
3265
+ "type": "zeebe:input"
3266
+ },
3267
+ "type": "Dropdown",
3268
+ "choices": [
3269
+ {
3270
+ "name": "Create folder",
3271
+ "value": "folder"
3272
+ },
3273
+ {
3274
+ "name": "Create file from template",
3275
+ "value": "file"
3276
+ },
3277
+ {
3278
+ "name": "Upload file",
3279
+ "value": "upload"
3280
+ },
3281
+ {
3282
+ "name": "Download file",
3283
+ "value": "download"
3284
+ }
3285
+ ]
3286
+ },
1817
3287
  {
1818
3288
  "id": "authentication.authType",
1819
3289
  "label": "Type",
@@ -1840,162 +3310,441 @@
1840
3310
  ]
1841
3311
  },
1842
3312
  {
1843
- "id": "authentication.bearerToken",
1844
- "label": "Bearer token",
1845
- "description": "Enter a valid Google API Bearer token",
3313
+ "id": "authentication.bearerToken",
3314
+ "label": "Bearer token",
3315
+ "optional": false,
3316
+ "constraints": {
3317
+ "notEmpty": true
3318
+ },
3319
+ "feel": "optional",
3320
+ "group": "authentication",
3321
+ "binding": {
3322
+ "name": "authentication.bearerToken",
3323
+ "type": "zeebe:input"
3324
+ },
3325
+ "condition": {
3326
+ "property": "authentication.authType",
3327
+ "equals": "bearer",
3328
+ "type": "simple"
3329
+ },
3330
+ "type": "String"
3331
+ },
3332
+ {
3333
+ "id": "authentication.oauthClientId",
3334
+ "label": "Client ID",
3335
+ "optional": false,
3336
+ "constraints": {
3337
+ "notEmpty": true
3338
+ },
3339
+ "feel": "optional",
3340
+ "group": "authentication",
3341
+ "binding": {
3342
+ "name": "authentication.oauthClientId",
3343
+ "type": "zeebe:input"
3344
+ },
3345
+ "condition": {
3346
+ "property": "authentication.authType",
3347
+ "equals": "refresh",
3348
+ "type": "simple"
3349
+ },
3350
+ "type": "String"
3351
+ },
3352
+ {
3353
+ "id": "authentication.oauthClientSecret",
3354
+ "label": "Client secret",
3355
+ "optional": false,
3356
+ "constraints": {
3357
+ "notEmpty": true
3358
+ },
3359
+ "feel": "optional",
3360
+ "group": "authentication",
3361
+ "binding": {
3362
+ "name": "authentication.oauthClientSecret",
3363
+ "type": "zeebe:input"
3364
+ },
3365
+ "condition": {
3366
+ "property": "authentication.authType",
3367
+ "equals": "refresh",
3368
+ "type": "simple"
3369
+ },
3370
+ "type": "String"
3371
+ },
3372
+ {
3373
+ "id": "authentication.oauthRefreshToken",
3374
+ "label": "Refresh token",
3375
+ "optional": false,
3376
+ "constraints": {
3377
+ "notEmpty": true
3378
+ },
3379
+ "feel": "optional",
3380
+ "group": "authentication",
3381
+ "binding": {
3382
+ "name": "authentication.oauthRefreshToken",
3383
+ "type": "zeebe:input"
3384
+ },
3385
+ "condition": {
3386
+ "property": "authentication.authType",
3387
+ "equals": "refresh",
3388
+ "type": "simple"
3389
+ },
3390
+ "type": "String"
3391
+ },
3392
+ {
3393
+ "id": "resource.folderName",
3394
+ "label": "New resource name",
3395
+ "optional": false,
3396
+ "constraints": {
3397
+ "notEmpty": true
3398
+ },
3399
+ "feel": "optional",
3400
+ "group": "operationDetails",
3401
+ "binding": {
3402
+ "name": "resource.name",
3403
+ "type": "zeebe:input"
3404
+ },
3405
+ "condition": {
3406
+ "property": "resource.type",
3407
+ "equals": "folder",
3408
+ "type": "simple"
3409
+ },
3410
+ "type": "String"
3411
+ },
3412
+ {
3413
+ "id": "resource.folderParent",
3414
+ "label": "Parent folder ID",
3415
+ "optional": true,
3416
+ "feel": "optional",
3417
+ "group": "operationDetails",
3418
+ "binding": {
3419
+ "name": "resource.parent",
3420
+ "type": "zeebe:input"
3421
+ },
3422
+ "condition": {
3423
+ "property": "resource.type",
3424
+ "equals": "folder",
3425
+ "type": "simple"
3426
+ },
3427
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
3428
+ "type": "String"
3429
+ },
3430
+ {
3431
+ "id": "resource.additionalGoogleDriveProperties",
3432
+ "label": "Additional properties or metadata",
3433
+ "optional": true,
3434
+ "feel": "required",
3435
+ "group": "operationDetails",
3436
+ "binding": {
3437
+ "name": "resource.additionalGoogleDriveProperties",
3438
+ "type": "zeebe:input"
3439
+ },
3440
+ "condition": {
3441
+ "property": "resource.type",
3442
+ "equals": "folder",
3443
+ "type": "simple"
3444
+ },
3445
+ "type": "String"
3446
+ },
3447
+ {
3448
+ "id": "resource.fileName",
3449
+ "label": "New resource name",
1846
3450
  "optional": false,
1847
3451
  "constraints": {
1848
3452
  "notEmpty": true
1849
3453
  },
1850
3454
  "feel": "optional",
1851
- "group": "authentication",
3455
+ "group": "operationDetails",
1852
3456
  "binding": {
1853
- "name": "authentication.bearerToken",
3457
+ "name": "resource.name",
1854
3458
  "type": "zeebe:input"
1855
3459
  },
1856
3460
  "condition": {
1857
- "property": "authentication.authType",
1858
- "equals": "bearer",
3461
+ "property": "resource.type",
3462
+ "equals": "file",
1859
3463
  "type": "simple"
1860
3464
  },
1861
3465
  "type": "String"
1862
3466
  },
1863
3467
  {
1864
- "id": "authentication.oauthClientId",
1865
- "label": "Client ID",
1866
- "description": "Enter Google API Client ID",
1867
- "optional": false,
1868
- "constraints": {
1869
- "notEmpty": true
1870
- },
3468
+ "id": "resource.fileParent",
3469
+ "label": "Parent folder ID",
3470
+ "optional": true,
1871
3471
  "feel": "optional",
1872
- "group": "authentication",
3472
+ "group": "operationDetails",
1873
3473
  "binding": {
1874
- "name": "authentication.oauthClientId",
3474
+ "name": "resource.parent",
1875
3475
  "type": "zeebe:input"
1876
3476
  },
1877
3477
  "condition": {
1878
- "property": "authentication.authType",
1879
- "equals": "refresh",
3478
+ "property": "resource.type",
3479
+ "equals": "file",
1880
3480
  "type": "simple"
1881
3481
  },
3482
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
1882
3483
  "type": "String"
1883
3484
  },
1884
3485
  {
1885
- "id": "authentication.oauthClientSecret",
1886
- "label": "Client secret",
1887
- "description": "Enter Google API client Secret",
3486
+ "id": "resource.template.id",
3487
+ "label": "Template ID",
1888
3488
  "optional": false,
1889
3489
  "constraints": {
1890
3490
  "notEmpty": true
1891
3491
  },
1892
3492
  "feel": "optional",
1893
- "group": "authentication",
3493
+ "group": "operationDetails",
1894
3494
  "binding": {
1895
- "name": "authentication.oauthClientSecret",
3495
+ "name": "resource.template.id",
1896
3496
  "type": "zeebe:input"
1897
3497
  },
1898
3498
  "condition": {
1899
- "property": "authentication.authType",
1900
- "equals": "refresh",
3499
+ "property": "resource.type",
3500
+ "equals": "file",
1901
3501
  "type": "simple"
1902
3502
  },
1903
3503
  "type": "String"
1904
3504
  },
1905
3505
  {
1906
- "id": "authentication.oauthRefreshToken",
1907
- "label": "Refresh token",
1908
- "description": "Enter a valid Google API refresh token",
3506
+ "id": "resource.template.variables",
3507
+ "label": "Template variables",
1909
3508
  "optional": false,
1910
- "constraints": {
1911
- "notEmpty": true
3509
+ "feel": "required",
3510
+ "group": "operationDetails",
3511
+ "binding": {
3512
+ "name": "resource.template.variables",
3513
+ "type": "zeebe:input"
1912
3514
  },
3515
+ "condition": {
3516
+ "property": "resource.type",
3517
+ "equals": "file",
3518
+ "type": "simple"
3519
+ },
3520
+ "type": "String"
3521
+ },
3522
+ {
3523
+ "id": "resource.uploadParent",
3524
+ "label": "Parent folder ID",
3525
+ "optional": true,
1913
3526
  "feel": "optional",
1914
- "group": "authentication",
3527
+ "group": "operationDetails",
1915
3528
  "binding": {
1916
- "name": "authentication.oauthRefreshToken",
3529
+ "name": "resource.parent",
1917
3530
  "type": "zeebe:input"
1918
3531
  },
1919
3532
  "condition": {
1920
- "property": "authentication.authType",
1921
- "equals": "refresh",
3533
+ "property": "resource.type",
3534
+ "equals": "upload",
1922
3535
  "type": "simple"
1923
3536
  },
3537
+ "tooltip": "Your resources will be created here. If left empty, a new resource will appear in the root folder.",
1924
3538
  "type": "String"
1925
3539
  },
1926
3540
  {
1927
- "id": "resource.type",
1928
- "label": "Operation",
1929
- "optional": false,
1930
- "value": "folder",
1931
- "constraints": {
1932
- "notEmpty": true
1933
- },
1934
- "group": "operation",
3541
+ "id": "resource.uploadData.document_documentSource",
3542
+ "label": "Document source",
3543
+ "value": "camunda",
3544
+ "group": "operationDetails",
1935
3545
  "binding": {
1936
- "name": "resource.type",
3546
+ "name": "resource.uploadData.document_documentSource",
1937
3547
  "type": "zeebe:input"
1938
3548
  },
3549
+ "condition": {
3550
+ "property": "resource.type",
3551
+ "equals": "upload",
3552
+ "type": "simple"
3553
+ },
3554
+ "tooltip": "Upload a Camunda document. See the <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">Camunda document upload API</a>.",
1939
3555
  "type": "Dropdown",
1940
3556
  "choices": [
1941
3557
  {
1942
- "name": "Create folder",
1943
- "value": "folder"
3558
+ "name": "Camunda Document",
3559
+ "value": "camunda"
1944
3560
  },
1945
3561
  {
1946
- "name": "Create file from template",
1947
- "value": "file"
3562
+ "name": "Inline Content",
3563
+ "value": "inline"
3564
+ },
3565
+ {
3566
+ "name": "From URL",
3567
+ "value": "external"
1948
3568
  }
1949
3569
  ]
1950
3570
  },
1951
3571
  {
1952
- "id": "resource.name",
1953
- "label": "New resource name",
1954
- "optional": false,
3572
+ "id": "resource.uploadData.document_camundaReference",
3573
+ "label": "Camunda document",
3574
+ "constraints": {
3575
+ "notEmpty": true
3576
+ },
3577
+ "feel": "required",
3578
+ "group": "operationDetails",
3579
+ "binding": {
3580
+ "name": "resource.uploadData.document_camundaReference",
3581
+ "type": "zeebe:input"
3582
+ },
3583
+ "condition": {
3584
+ "allMatch": [
3585
+ {
3586
+ "property": "resource.uploadData.document_documentSource",
3587
+ "equals": "camunda",
3588
+ "type": "simple"
3589
+ },
3590
+ {
3591
+ "property": "resource.type",
3592
+ "equals": "upload",
3593
+ "type": "simple"
3594
+ }
3595
+ ]
3596
+ },
3597
+ "type": "String"
3598
+ },
3599
+ {
3600
+ "id": "resource.uploadData.document_inline_content",
3601
+ "label": "Content",
1955
3602
  "constraints": {
1956
3603
  "notEmpty": true
1957
3604
  },
1958
3605
  "feel": "optional",
1959
3606
  "group": "operationDetails",
1960
3607
  "binding": {
1961
- "name": "resource.name",
3608
+ "name": "resource.uploadData.document_inline_content",
1962
3609
  "type": "zeebe:input"
1963
3610
  },
3611
+ "condition": {
3612
+ "allMatch": [
3613
+ {
3614
+ "property": "resource.uploadData.document_documentSource",
3615
+ "equals": "inline",
3616
+ "type": "simple"
3617
+ },
3618
+ {
3619
+ "property": "resource.type",
3620
+ "equals": "upload",
3621
+ "type": "simple"
3622
+ }
3623
+ ]
3624
+ },
1964
3625
  "type": "String"
1965
3626
  },
1966
3627
  {
1967
- "id": "resource.parent",
1968
- "label": "Parent folder ID",
1969
- "description": "Your resources will be created here. If left empty, a new resource will appear in the root folder",
1970
- "optional": true,
3628
+ "id": "resource.uploadData.document_inline_fileName",
3629
+ "label": "File name",
1971
3630
  "feel": "optional",
1972
3631
  "group": "operationDetails",
1973
3632
  "binding": {
1974
- "name": "resource.parent",
3633
+ "name": "resource.uploadData.document_inline_fileName",
3634
+ "type": "zeebe:input"
3635
+ },
3636
+ "condition": {
3637
+ "allMatch": [
3638
+ {
3639
+ "property": "resource.uploadData.document_documentSource",
3640
+ "equals": "inline",
3641
+ "type": "simple"
3642
+ },
3643
+ {
3644
+ "property": "resource.type",
3645
+ "equals": "upload",
3646
+ "type": "simple"
3647
+ }
3648
+ ]
3649
+ },
3650
+ "type": "String"
3651
+ },
3652
+ {
3653
+ "id": "resource.uploadData.document_inline_contentType",
3654
+ "label": "Content type",
3655
+ "feel": "optional",
3656
+ "group": "operationDetails",
3657
+ "binding": {
3658
+ "name": "resource.uploadData.document_inline_contentType",
3659
+ "type": "zeebe:input"
3660
+ },
3661
+ "condition": {
3662
+ "allMatch": [
3663
+ {
3664
+ "property": "resource.uploadData.document_documentSource",
3665
+ "equals": "inline",
3666
+ "type": "simple"
3667
+ },
3668
+ {
3669
+ "property": "resource.type",
3670
+ "equals": "upload",
3671
+ "type": "simple"
3672
+ }
3673
+ ]
3674
+ },
3675
+ "type": "String"
3676
+ },
3677
+ {
3678
+ "id": "resource.uploadData.document_external_url",
3679
+ "label": "URL",
3680
+ "constraints": {
3681
+ "notEmpty": true
3682
+ },
3683
+ "feel": "optional",
3684
+ "group": "operationDetails",
3685
+ "binding": {
3686
+ "name": "resource.uploadData.document_external_url",
3687
+ "type": "zeebe:input"
3688
+ },
3689
+ "condition": {
3690
+ "allMatch": [
3691
+ {
3692
+ "property": "resource.uploadData.document_documentSource",
3693
+ "equals": "external",
3694
+ "type": "simple"
3695
+ },
3696
+ {
3697
+ "property": "resource.type",
3698
+ "equals": "upload",
3699
+ "type": "simple"
3700
+ }
3701
+ ]
3702
+ },
3703
+ "type": "String"
3704
+ },
3705
+ {
3706
+ "id": "resource.uploadData.document_external_fileName",
3707
+ "label": "File name",
3708
+ "feel": "optional",
3709
+ "group": "operationDetails",
3710
+ "binding": {
3711
+ "name": "resource.uploadData.document_external_fileName",
1975
3712
  "type": "zeebe:input"
1976
3713
  },
3714
+ "condition": {
3715
+ "allMatch": [
3716
+ {
3717
+ "property": "resource.uploadData.document_documentSource",
3718
+ "equals": "external",
3719
+ "type": "simple"
3720
+ },
3721
+ {
3722
+ "property": "resource.type",
3723
+ "equals": "upload",
3724
+ "type": "simple"
3725
+ }
3726
+ ]
3727
+ },
1977
3728
  "type": "String"
1978
3729
  },
1979
3730
  {
1980
- "id": "resource.additionalGoogleDriveProperties",
1981
- "label": "Additional properties or metadata",
1982
- "optional": true,
1983
- "feel": "required",
3731
+ "id": "resource.uploadData.document__composer",
3732
+ "value": "=if document_documentSource = \"camunda\" then document_camundaReference else if document_documentSource = \"inline\" then { \"camunda.document.type\": \"inline\", content: document_inline_content, name: document_inline_fileName, contentType: document_inline_contentType } else if document_documentSource = \"external\" then { \"camunda.document.type\": \"external\", url: document_external_url, name: document_external_fileName } else null",
1984
3733
  "group": "operationDetails",
1985
3734
  "binding": {
1986
- "name": "resource.additionalGoogleDriveProperties",
3735
+ "name": "resource.uploadData.document",
1987
3736
  "type": "zeebe:input"
1988
3737
  },
1989
3738
  "condition": {
1990
3739
  "property": "resource.type",
1991
- "equals": "folder",
3740
+ "equals": "upload",
1992
3741
  "type": "simple"
1993
3742
  },
1994
- "type": "String"
3743
+ "type": "Hidden"
1995
3744
  },
1996
3745
  {
1997
- "id": "resource.template.id",
1998
- "label": "Template ID",
3746
+ "id": "resource.downloadData.fileId",
3747
+ "label": "File ID",
1999
3748
  "optional": false,
2000
3749
  "constraints": {
2001
3750
  "notEmpty": true
@@ -2003,37 +3752,44 @@
2003
3752
  "feel": "optional",
2004
3753
  "group": "operationDetails",
2005
3754
  "binding": {
2006
- "name": "resource.template.id",
3755
+ "name": "resource.downloadData.fileId",
2007
3756
  "type": "zeebe:input"
2008
3757
  },
2009
3758
  "condition": {
2010
3759
  "property": "resource.type",
2011
- "equals": "file",
3760
+ "equals": "download",
2012
3761
  "type": "simple"
2013
3762
  },
2014
3763
  "type": "String"
2015
3764
  },
2016
3765
  {
2017
- "id": "resource.template.variables",
2018
- "label": "Template variables",
2019
- "optional": false,
2020
- "feel": "required",
2021
- "group": "operationDetails",
3766
+ "id": "version",
3767
+ "label": "Version",
3768
+ "description": "Version of the element template",
3769
+ "value": "7",
3770
+ "group": "connector",
2022
3771
  "binding": {
2023
- "name": "resource.template.variables",
2024
- "type": "zeebe:input"
3772
+ "key": "elementTemplateVersion",
3773
+ "type": "zeebe:taskHeader"
2025
3774
  },
2026
- "condition": {
2027
- "property": "resource.type",
2028
- "equals": "file",
2029
- "type": "simple"
3775
+ "type": "Hidden"
3776
+ },
3777
+ {
3778
+ "id": "id",
3779
+ "label": "ID",
3780
+ "description": "ID of the element template",
3781
+ "value": "io.camunda.connectors.GoogleDrive.v1",
3782
+ "group": "connector",
3783
+ "binding": {
3784
+ "key": "elementTemplateId",
3785
+ "type": "zeebe:taskHeader"
2030
3786
  },
2031
- "type": "String"
3787
+ "type": "Hidden"
2032
3788
  },
2033
3789
  {
2034
3790
  "id": "resultVariable",
2035
3791
  "label": "Result variable",
2036
- "description": "Name of variable to store the response in",
3792
+ "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
2037
3793
  "group": "output",
2038
3794
  "binding": {
2039
3795
  "key": "resultVariable",
@@ -2044,7 +3800,7 @@
2044
3800
  {
2045
3801
  "id": "resultExpression",
2046
3802
  "label": "Result expression",
2047
- "description": "Expression to map the response into process variables",
3803
+ "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
2048
3804
  "feel": "required",
2049
3805
  "group": "output",
2050
3806
  "binding": {
@@ -2082,8 +3838,7 @@
2082
3838
  "id": "retryBackoff",
2083
3839
  "label": "Retry backoff",
2084
3840
  "description": "ISO-8601 duration to wait between retries",
2085
- "value": "PT0S",
2086
- "feel": "optional",
3841
+ "value": "PT30S",
2087
3842
  "group": "retries",
2088
3843
  "binding": {
2089
3844
  "key": "retryBackoff",
@@ -2092,29 +3847,96 @@
2092
3847
  "type": "String"
2093
3848
  }
2094
3849
  ],
3850
+ "steps": [
3851
+ {
3852
+ "name": "Create folder",
3853
+ "description": "Create a new folder in Google Drive",
3854
+ "keywords": [
3855
+ "create folder",
3856
+ "new folder",
3857
+ "google drive",
3858
+ "folder",
3859
+ "directory"
3860
+ ],
3861
+ "presetId": "type_folder"
3862
+ },
3863
+ {
3864
+ "name": "Create file from template",
3865
+ "description": "Create a new file in Google Drive from a template",
3866
+ "keywords": [
3867
+ "create file",
3868
+ "template",
3869
+ "google drive",
3870
+ "file from template",
3871
+ "document",
3872
+ "generate file"
3873
+ ],
3874
+ "presetId": "type_file"
3875
+ },
3876
+ {
3877
+ "name": "Upload file",
3878
+ "description": "Upload a file to Google Drive",
3879
+ "keywords": [
3880
+ "upload",
3881
+ "upload file",
3882
+ "google drive",
3883
+ "file upload",
3884
+ "store file",
3885
+ "add file"
3886
+ ],
3887
+ "presetId": "type_upload"
3888
+ },
3889
+ {
3890
+ "name": "Download file",
3891
+ "description": "Download a file from Google Drive",
3892
+ "keywords": [
3893
+ "download",
3894
+ "download file",
3895
+ "google drive",
3896
+ "retrieve file",
3897
+ "get file",
3898
+ "export file"
3899
+ ],
3900
+ "presetId": "type_download"
3901
+ }
3902
+ ],
3903
+ "presets": [
3904
+ {
3905
+ "id": "type_folder",
3906
+ "properties": {
3907
+ "resource.type": "folder"
3908
+ }
3909
+ },
3910
+ {
3911
+ "id": "type_file",
3912
+ "properties": {
3913
+ "resource.type": "file"
3914
+ }
3915
+ },
3916
+ {
3917
+ "id": "type_upload",
3918
+ "properties": {
3919
+ "resource.type": "upload"
3920
+ }
3921
+ },
3922
+ {
3923
+ "id": "type_download",
3924
+ "properties": {
3925
+ "resource.type": "download"
3926
+ }
3927
+ }
3928
+ ],
2095
3929
  "icon": {
2096
3930
  "contents": "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgODcuMyA3OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoIGQ9Im02LjYgNjYuODUgMy44NSA2LjY1Yy44IDEuNCAxLjk1IDIuNSAzLjMgMy4zbDEzLjc1LTIzLjhoLTI3LjVjMCAxLjU1LjQgMy4xIDEuMiA0LjV6IiBmaWxsPSIjMDA2NmRhIi8+Cgk8cGF0aCBkPSJtNDMuNjUgMjUtMTMuNzUtMjMuOGMtMS4zNS44LTIuNSAxLjktMy4zIDMuM2wtMjUuNCA0NGE5LjA2IDkuMDYgMCAwIDAgLTEuMiA0LjVoMjcuNXoiIGZpbGw9IiMwMGFjNDciLz4KCTxwYXRoIGQ9Im03My41NSA3Ni44YzEuMzUtLjggMi41LTEuOSAzLjMtMy4zbDEuNi0yLjc1IDcuNjUtMTMuMjVjLjgtMS40IDEuMi0yLjk1IDEuMi00LjVoLTI3LjUwMmw1Ljg1MiAxMS41eiIgZmlsbD0iI2VhNDMzNSIvPgoJPHBhdGggZD0ibTQzLjY1IDI1IDEzLjc1LTIzLjhjLTEuMzUtLjgtMi45LTEuMi00LjUtMS4yaC0xOC41Yy0xLjYgMC0zLjE1LjQ1LTQuNSAxLjJ6IiBmaWxsPSIjMDA4MzJkIi8+Cgk8cGF0aCBkPSJtNTkuOCA1M2gtMzIuM2wtMTMuNzUgMjMuOGMxLjM1LjggMi45IDEuMiA0LjUgMS4yaDUwLjhjMS42IDAgMy4xNS0uNDUgNC41LTEuMnoiIGZpbGw9IiMyNjg0ZmMiLz4KCTxwYXRoIGQ9Im03My40IDI2LjUtMTIuNy0yMmMtLjgtMS40LTEuOTUtMi41LTMuMy0zLjNsLTEzLjc1IDIzLjggMTYuMTUgMjhoMjcuNDVjMC0xLjU1LS40LTMuMS0xLjItNC41eiIgZmlsbD0iI2ZmYmEwMCIvPgo8L3N2Zz4="
2097
- },
2098
- "engines": {
2099
- "camunda": "^8.5"
2100
3931
  }
2101
3932
  },
2102
3933
  {
2103
3934
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
2104
3935
  "name": "Google Drive Outbound Connector",
2105
3936
  "id": "io.camunda.connectors.GoogleDrive.v1",
2106
- "description": "Manage Google Drive files and folders",
2107
- "keywords": [
2108
- "create file",
2109
- "create file from template",
2110
- "create folder",
2111
- "upload file",
2112
- "download file",
2113
- "file storage",
2114
- "document management"
2115
- ],
3937
+ "description": "Create folder or a file from template",
2116
3938
  "documentationRef": "https://docs.camunda.io/docs/components/connectors/out-of-the-box-connectors/googledrive/",
2117
- "version": 6,
3939
+ "version": 3,
2118
3940
  "category": {
2119
3941
  "id": "connectors",
2120
3942
  "name": "Connectors"
@@ -2123,9 +3945,6 @@
2123
3945
  "elementType": {
2124
3946
  "value": "bpmn:ServiceTask"
2125
3947
  },
2126
- "engines": {
2127
- "camunda": "^8.10"
2128
- },
2129
3948
  "groups": [
2130
3949
  {
2131
3950
  "id": "authentication",
@@ -2139,10 +3958,6 @@
2139
3958
  "id": "operationDetails",
2140
3959
  "label": "Operation details"
2141
3960
  },
2142
- {
2143
- "id": "connector",
2144
- "label": "Connector"
2145
- },
2146
3961
  {
2147
3962
  "id": "output",
2148
3963
  "label": "Output mapping"
@@ -2222,436 +4037,169 @@
2222
4037
  "feel": "optional",
2223
4038
  "group": "authentication",
2224
4039
  "binding": {
2225
- "name": "authentication.oauthClientId",
2226
- "type": "zeebe:input"
2227
- },
2228
- "condition": {
2229
- "property": "authentication.authType",
2230
- "equals": "refresh",
2231
- "type": "simple"
2232
- },
2233
- "type": "String"
2234
- },
2235
- {
2236
- "id": "authentication.oauthClientSecret",
2237
- "label": "Client secret",
2238
- "description": "Enter Google API client Secret",
2239
- "optional": false,
2240
- "constraints": {
2241
- "notEmpty": true
2242
- },
2243
- "feel": "optional",
2244
- "group": "authentication",
2245
- "binding": {
2246
- "name": "authentication.oauthClientSecret",
2247
- "type": "zeebe:input"
2248
- },
2249
- "condition": {
2250
- "property": "authentication.authType",
2251
- "equals": "refresh",
2252
- "type": "simple"
2253
- },
2254
- "type": "String"
2255
- },
2256
- {
2257
- "id": "authentication.oauthRefreshToken",
2258
- "label": "Refresh token",
2259
- "description": "Enter a valid Google API refresh token",
2260
- "optional": false,
2261
- "constraints": {
2262
- "notEmpty": true
2263
- },
2264
- "feel": "optional",
2265
- "group": "authentication",
2266
- "binding": {
2267
- "name": "authentication.oauthRefreshToken",
2268
- "type": "zeebe:input"
2269
- },
2270
- "condition": {
2271
- "property": "authentication.authType",
2272
- "equals": "refresh",
2273
- "type": "simple"
2274
- },
2275
- "type": "String"
2276
- },
2277
- {
2278
- "id": "resource.type",
2279
- "label": "Operation",
2280
- "optional": false,
2281
- "value": "folder",
2282
- "constraints": {
2283
- "notEmpty": true
2284
- },
2285
- "group": "operation",
2286
- "binding": {
2287
- "name": "resource.type",
2288
- "type": "zeebe:input"
2289
- },
2290
- "type": "Dropdown",
2291
- "choices": [
2292
- {
2293
- "name": "Create folder",
2294
- "value": "folder"
2295
- },
2296
- {
2297
- "name": "Create file from template",
2298
- "value": "file"
2299
- },
2300
- {
2301
- "name": "Upload file",
2302
- "value": "upload"
2303
- },
2304
- {
2305
- "name": "Download file",
2306
- "value": "download"
2307
- }
2308
- ]
2309
- },
2310
- {
2311
- "id": "resource.name",
2312
- "label": "New resource name",
2313
- "optional": false,
2314
- "constraints": {
2315
- "notEmpty": true
2316
- },
2317
- "feel": "optional",
2318
- "group": "operationDetails",
2319
- "binding": {
2320
- "name": "resource.name",
2321
- "type": "zeebe:input"
2322
- },
2323
- "condition": {
2324
- "property": "resource.type",
2325
- "oneOf": ["folder", "file"],
2326
- "type": "simple"
2327
- },
2328
- "type": "String"
2329
- },
2330
- {
2331
- "id": "resource.parent",
2332
- "label": "Parent folder ID",
2333
- "description": "Your resources will be created here. If left empty, a new resource will appear in the root folder",
2334
- "optional": true,
2335
- "feel": "optional",
2336
- "group": "operationDetails",
2337
- "binding": {
2338
- "name": "resource.parent",
2339
- "type": "zeebe:input"
2340
- },
2341
- "condition": {
2342
- "property": "resource.type",
2343
- "oneOf": ["folder", "file", "upload"],
2344
- "type": "simple"
2345
- },
2346
- "type": "String"
2347
- },
2348
- {
2349
- "id": "resource.additionalGoogleDriveProperties",
2350
- "label": "Additional properties or metadata",
2351
- "optional": true,
2352
- "feel": "required",
2353
- "group": "operationDetails",
2354
- "binding": {
2355
- "name": "resource.additionalGoogleDriveProperties",
2356
- "type": "zeebe:input"
2357
- },
2358
- "condition": {
2359
- "property": "resource.type",
2360
- "equals": "folder",
2361
- "type": "simple"
2362
- },
2363
- "type": "String"
2364
- },
2365
- {
2366
- "id": "resource.template.id",
2367
- "label": "Template ID",
2368
- "optional": false,
2369
- "constraints": {
2370
- "notEmpty": true
2371
- },
2372
- "feel": "optional",
2373
- "group": "operationDetails",
2374
- "binding": {
2375
- "name": "resource.template.id",
4040
+ "name": "authentication.oauthClientId",
2376
4041
  "type": "zeebe:input"
2377
4042
  },
2378
4043
  "condition": {
2379
- "property": "resource.type",
2380
- "equals": "file",
4044
+ "property": "authentication.authType",
4045
+ "equals": "refresh",
2381
4046
  "type": "simple"
2382
4047
  },
2383
4048
  "type": "String"
2384
4049
  },
2385
4050
  {
2386
- "id": "resource.template.variables",
2387
- "label": "Template variables",
4051
+ "id": "authentication.oauthClientSecret",
4052
+ "label": "Client secret",
4053
+ "description": "Enter Google API client Secret",
2388
4054
  "optional": false,
2389
- "feel": "required",
2390
- "group": "operationDetails",
4055
+ "constraints": {
4056
+ "notEmpty": true
4057
+ },
4058
+ "feel": "optional",
4059
+ "group": "authentication",
2391
4060
  "binding": {
2392
- "name": "resource.template.variables",
4061
+ "name": "authentication.oauthClientSecret",
2393
4062
  "type": "zeebe:input"
2394
4063
  },
2395
4064
  "condition": {
2396
- "property": "resource.type",
2397
- "equals": "file",
4065
+ "property": "authentication.authType",
4066
+ "equals": "refresh",
2398
4067
  "type": "simple"
2399
4068
  },
2400
4069
  "type": "String"
2401
4070
  },
2402
4071
  {
2403
- "id": "resource.downloadData.fileId",
2404
- "label": "File ID",
4072
+ "id": "authentication.oauthRefreshToken",
4073
+ "label": "Refresh token",
4074
+ "description": "Enter a valid Google API refresh token",
2405
4075
  "optional": false,
2406
4076
  "constraints": {
2407
4077
  "notEmpty": true
2408
4078
  },
2409
4079
  "feel": "optional",
2410
- "group": "operationDetails",
4080
+ "group": "authentication",
2411
4081
  "binding": {
2412
- "name": "resource.downloadData.fileId",
4082
+ "name": "authentication.oauthRefreshToken",
2413
4083
  "type": "zeebe:input"
2414
4084
  },
2415
4085
  "condition": {
2416
- "property": "resource.type",
2417
- "equals": "download",
4086
+ "property": "authentication.authType",
4087
+ "equals": "refresh",
2418
4088
  "type": "simple"
2419
4089
  },
2420
4090
  "type": "String"
2421
4091
  },
2422
4092
  {
2423
- "id": "resource.uploadData.document_documentSource",
2424
- "label": "Document source",
2425
- "description": "Upload camunda document, <a href=\"https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/\">see documentation</a>",
2426
- "value": "camunda",
2427
- "group": "operationDetails",
4093
+ "id": "resource.type",
4094
+ "label": "Operation",
4095
+ "optional": false,
4096
+ "value": "folder",
4097
+ "constraints": {
4098
+ "notEmpty": true
4099
+ },
4100
+ "group": "operation",
2428
4101
  "binding": {
2429
- "name": "resource.uploadData.document_documentSource",
4102
+ "name": "resource.type",
2430
4103
  "type": "zeebe:input"
2431
4104
  },
2432
- "condition": {
2433
- "property": "resource.type",
2434
- "equals": "upload",
2435
- "type": "simple"
2436
- },
2437
4105
  "type": "Dropdown",
2438
4106
  "choices": [
2439
4107
  {
2440
- "name": "Camunda Document",
2441
- "value": "camunda"
2442
- },
2443
- {
2444
- "name": "Inline Content",
2445
- "value": "inline"
4108
+ "name": "Create folder",
4109
+ "value": "folder"
2446
4110
  },
2447
4111
  {
2448
- "name": "From URL",
2449
- "value": "external"
4112
+ "name": "Create file from template",
4113
+ "value": "file"
2450
4114
  }
2451
4115
  ]
2452
4116
  },
2453
4117
  {
2454
- "id": "resource.uploadData.document_camundaReference",
2455
- "label": "Camunda document",
2456
- "constraints": {
2457
- "notEmpty": true
2458
- },
2459
- "feel": "required",
2460
- "group": "operationDetails",
2461
- "binding": {
2462
- "name": "resource.uploadData.document_camundaReference",
2463
- "type": "zeebe:input"
2464
- },
2465
- "condition": {
2466
- "allMatch": [
2467
- {
2468
- "property": "resource.type",
2469
- "equals": "upload",
2470
- "type": "simple"
2471
- },
2472
- {
2473
- "property": "resource.uploadData.document_documentSource",
2474
- "equals": "camunda",
2475
- "type": "simple"
2476
- }
2477
- ]
2478
- },
2479
- "type": "String"
2480
- },
2481
- {
2482
- "id": "resource.uploadData.document_inline_content",
2483
- "label": "Content",
4118
+ "id": "resource.name",
4119
+ "label": "New resource name",
4120
+ "optional": false,
2484
4121
  "constraints": {
2485
4122
  "notEmpty": true
2486
4123
  },
2487
4124
  "feel": "optional",
2488
4125
  "group": "operationDetails",
2489
4126
  "binding": {
2490
- "name": "resource.uploadData.document_inline_content",
4127
+ "name": "resource.name",
2491
4128
  "type": "zeebe:input"
2492
4129
  },
2493
- "condition": {
2494
- "allMatch": [
2495
- {
2496
- "property": "resource.type",
2497
- "equals": "upload",
2498
- "type": "simple"
2499
- },
2500
- {
2501
- "property": "resource.uploadData.document_documentSource",
2502
- "equals": "inline",
2503
- "type": "simple"
2504
- }
2505
- ]
2506
- },
2507
4130
  "type": "String"
2508
4131
  },
2509
4132
  {
2510
- "id": "resource.uploadData.document_inline_fileName",
2511
- "label": "File name",
4133
+ "id": "resource.parent",
4134
+ "label": "Parent folder ID",
4135
+ "description": "Your resources will be created here. If left empty, a new resource will appear in the root folder",
4136
+ "optional": true,
2512
4137
  "feel": "optional",
2513
4138
  "group": "operationDetails",
2514
4139
  "binding": {
2515
- "name": "resource.uploadData.document_inline_fileName",
4140
+ "name": "resource.parent",
2516
4141
  "type": "zeebe:input"
2517
4142
  },
2518
- "condition": {
2519
- "allMatch": [
2520
- {
2521
- "property": "resource.type",
2522
- "equals": "upload",
2523
- "type": "simple"
2524
- },
2525
- {
2526
- "property": "resource.uploadData.document_documentSource",
2527
- "equals": "inline",
2528
- "type": "simple"
2529
- }
2530
- ]
2531
- },
2532
4143
  "type": "String"
2533
4144
  },
2534
4145
  {
2535
- "id": "resource.uploadData.document_inline_contentType",
2536
- "label": "Content type",
2537
- "feel": "optional",
4146
+ "id": "resource.additionalGoogleDriveProperties",
4147
+ "label": "Additional properties or metadata",
4148
+ "optional": true,
4149
+ "feel": "required",
2538
4150
  "group": "operationDetails",
2539
4151
  "binding": {
2540
- "name": "resource.uploadData.document_inline_contentType",
4152
+ "name": "resource.additionalGoogleDriveProperties",
2541
4153
  "type": "zeebe:input"
2542
4154
  },
2543
4155
  "condition": {
2544
- "allMatch": [
2545
- {
2546
- "property": "resource.type",
2547
- "equals": "upload",
2548
- "type": "simple"
2549
- },
2550
- {
2551
- "property": "resource.uploadData.document_documentSource",
2552
- "equals": "inline",
2553
- "type": "simple"
2554
- }
2555
- ]
4156
+ "property": "resource.type",
4157
+ "equals": "folder",
4158
+ "type": "simple"
2556
4159
  },
2557
4160
  "type": "String"
2558
4161
  },
2559
4162
  {
2560
- "id": "resource.uploadData.document_external_url",
2561
- "label": "URL",
4163
+ "id": "resource.template.id",
4164
+ "label": "Template ID",
4165
+ "optional": false,
2562
4166
  "constraints": {
2563
4167
  "notEmpty": true
2564
4168
  },
2565
4169
  "feel": "optional",
2566
4170
  "group": "operationDetails",
2567
4171
  "binding": {
2568
- "name": "resource.uploadData.document_external_url",
2569
- "type": "zeebe:input"
2570
- },
2571
- "condition": {
2572
- "allMatch": [
2573
- {
2574
- "property": "resource.type",
2575
- "equals": "upload",
2576
- "type": "simple"
2577
- },
2578
- {
2579
- "property": "resource.uploadData.document_documentSource",
2580
- "equals": "external",
2581
- "type": "simple"
2582
- }
2583
- ]
2584
- },
2585
- "type": "String"
2586
- },
2587
- {
2588
- "id": "resource.uploadData.document_external_fileName",
2589
- "label": "File name",
2590
- "feel": "optional",
2591
- "group": "operationDetails",
2592
- "binding": {
2593
- "name": "resource.uploadData.document_external_fileName",
4172
+ "name": "resource.template.id",
2594
4173
  "type": "zeebe:input"
2595
4174
  },
2596
4175
  "condition": {
2597
- "allMatch": [
2598
- {
2599
- "property": "resource.type",
2600
- "equals": "upload",
2601
- "type": "simple"
2602
- },
2603
- {
2604
- "property": "resource.uploadData.document_documentSource",
2605
- "equals": "external",
2606
- "type": "simple"
2607
- }
2608
- ]
4176
+ "property": "resource.type",
4177
+ "equals": "file",
4178
+ "type": "simple"
2609
4179
  },
2610
4180
  "type": "String"
2611
4181
  },
2612
4182
  {
2613
- "id": "resource.uploadData.document__composer",
2614
- "value": "=if document_documentSource = \"camunda\" then document_camundaReference else if document_documentSource = \"inline\" then { \"camunda.document.type\": \"inline\", content: document_inline_content, name: document_inline_fileName, contentType: document_inline_contentType } else if document_documentSource = \"external\" then { \"camunda.document.type\": \"external\", url: document_external_url, name: document_external_fileName } else null",
4183
+ "id": "resource.template.variables",
4184
+ "label": "Template variables",
4185
+ "optional": false,
4186
+ "feel": "required",
2615
4187
  "group": "operationDetails",
2616
4188
  "binding": {
2617
- "name": "resource.uploadData.document",
4189
+ "name": "resource.template.variables",
2618
4190
  "type": "zeebe:input"
2619
4191
  },
2620
4192
  "condition": {
2621
4193
  "property": "resource.type",
2622
- "equals": "upload",
4194
+ "equals": "file",
2623
4195
  "type": "simple"
2624
4196
  },
2625
- "type": "Hidden"
2626
- },
2627
- {
2628
- "id": "version",
2629
- "label": "Version",
2630
- "description": "Version of the element template",
2631
- "value": "6",
2632
- "group": "connector",
2633
- "binding": {
2634
- "key": "elementTemplateVersion",
2635
- "type": "zeebe:taskHeader"
2636
- },
2637
- "type": "Hidden"
2638
- },
2639
- {
2640
- "id": "id",
2641
- "label": "ID",
2642
- "description": "ID of the element template",
2643
- "value": "io.camunda.connectors.GoogleDrive.v1",
2644
- "group": "connector",
2645
- "binding": {
2646
- "key": "elementTemplateId",
2647
- "type": "zeebe:taskHeader"
2648
- },
2649
- "type": "Hidden"
4197
+ "type": "String"
2650
4198
  },
2651
4199
  {
2652
4200
  "id": "resultVariable",
2653
4201
  "label": "Result variable",
2654
- "description": "Name of variable to store the response in. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-variable\" target=\"_blank\">documentation</a>.",
4202
+ "description": "Name of variable to store the response in",
2655
4203
  "group": "output",
2656
4204
  "binding": {
2657
4205
  "key": "resultVariable",
@@ -2662,7 +4210,7 @@
2662
4210
  {
2663
4211
  "id": "resultExpression",
2664
4212
  "label": "Result expression",
2665
- "description": "Expression to map the response into process variables. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/#result-expression\" target=\"_blank\">documentation</a>.",
4213
+ "description": "Expression to map the response into process variables",
2666
4214
  "feel": "required",
2667
4215
  "group": "output",
2668
4216
  "binding": {
@@ -2700,7 +4248,8 @@
2700
4248
  "id": "retryBackoff",
2701
4249
  "label": "Retry backoff",
2702
4250
  "description": "ISO-8601 duration to wait between retries",
2703
- "value": "PT30S",
4251
+ "value": "PT0S",
4252
+ "feel": "optional",
2704
4253
  "group": "retries",
2705
4254
  "binding": {
2706
4255
  "key": "retryBackoff",
@@ -2711,6 +4260,9 @@
2711
4260
  ],
2712
4261
  "icon": {
2713
4262
  "contents": "data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgODcuMyA3OCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoIGQ9Im02LjYgNjYuODUgMy44NSA2LjY1Yy44IDEuNCAxLjk1IDIuNSAzLjMgMy4zbDEzLjc1LTIzLjhoLTI3LjVjMCAxLjU1LjQgMy4xIDEuMiA0LjV6IiBmaWxsPSIjMDA2NmRhIi8+Cgk8cGF0aCBkPSJtNDMuNjUgMjUtMTMuNzUtMjMuOGMtMS4zNS44LTIuNSAxLjktMy4zIDMuM2wtMjUuNCA0NGE5LjA2IDkuMDYgMCAwIDAgLTEuMiA0LjVoMjcuNXoiIGZpbGw9IiMwMGFjNDciLz4KCTxwYXRoIGQ9Im03My41NSA3Ni44YzEuMzUtLjggMi41LTEuOSAzLjMtMy4zbDEuNi0yLjc1IDcuNjUtMTMuMjVjLjgtMS40IDEuMi0yLjk1IDEuMi00LjVoLTI3LjUwMmw1Ljg1MiAxMS41eiIgZmlsbD0iI2VhNDMzNSIvPgoJPHBhdGggZD0ibTQzLjY1IDI1IDEzLjc1LTIzLjhjLTEuMzUtLjgtMi45LTEuMi00LjUtMS4yaC0xOC41Yy0xLjYgMC0zLjE1LjQ1LTQuNSAxLjJ6IiBmaWxsPSIjMDA4MzJkIi8+Cgk8cGF0aCBkPSJtNTkuOCA1M2gtMzIuM2wtMTMuNzUgMjMuOGMxLjM1LjggMi45IDEuMiA0LjUgMS4yaDUwLjhjMS42IDAgMy4xNS0uNDUgNC41LTEuMnoiIGZpbGw9IiMyNjg0ZmMiLz4KCTxwYXRoIGQ9Im03My40IDI2LjUtMTIuNy0yMmMtLjgtMS40LTEuOTUtMi41LTMuMy0zLjNsLTEzLjc1IDIzLjggMTYuMTUgMjhoMjcuNDVjMC0xLjU1LS40LTMuMS0xLjItNC41eiIgZmlsbD0iI2ZmYmEwMCIvPgo8L3N2Zz4="
4263
+ },
4264
+ "engines": {
4265
+ "camunda": "^8.5"
2714
4266
  }
2715
4267
  }
2716
4268
  ]