diff --git a/snapshots/228-snapshot.json b/snapshots/228-snapshot.json new file mode 100644 index 0000000..0fb8349 --- /dev/null +++ b/snapshots/228-snapshot.json @@ -0,0 +1,80 @@ +{ + "data": { + "startData": {}, + "resultData": { + "runData": { + "Start": [ + { + "startTime": 1626437048443, + "executionTime": 1, + "data": { + "main": [ + [ + { + "json": {} + } + ] + ] + } + } + ], + "iCalendar": [ + { + "startTime": 1626437048445, + "executionTime": 7, + "data": { + "main": [ + [ + { + "json": {}, + "binary": { + "data": { + "mimeType": "text/calendar", + "data": "QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KQ0FMU0NBTEU6R1JFR09SSUFODQpQUk9ESUQ6YWRhbWdpYmJvbnMvaWNzDQpNRVRIT0Q6UFVCTElTSA0KWC1XUi1DQUxOQU1FOlRlc3RDYWxlbmRhcg0KWC1QVUJMSVNIRUQtVFRMOlBUMUgNCkJFR0lOOlZFVkVOVA0KVUlEOkZpeGVkVUlEDQpTVU1NQVJZOlRlc3RFdmVudA0KRFRTVEFNUDoyMDIxMDcxNlQxMjA0MDBaDQpEVFNUQVJUOjIwMjEwNjE3VDEyMjE0NFoNCkRURU5EOjIwMjEwNjE4VDEyMjUzOVoNCkRFU0NSSVBUSU9OOlRlc3RpbmcgSWNhbGVuZGFyIG5vZGUNCkxPQ0FUSU9OOnJlbW90ZQ0KT1JHQU5JWkVSO0NOPW5vZGVxYTptYWlsdG86bm9kZXFAbjhuLmlvDQpBVFRFTkRFRTtSU1ZQPUZBTFNFO0NOPW5vZGVxYTptYWlsdG86bm9kOGVxYUBnbWFpbC5jb20NClJSVUxFOkRBSUxZO0lOVEVSVkFMPTM7Q09VTlQ9Mw0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRBUg0K", + "fileName": "event.ics", + "fileExtension": "ics" + } + } + } + ] + ] + } + } + ], + "FunctionItem": [ + { + "startTime": 1626437048453, + "executionTime": 5, + "data": { + "main": [ + [ + { + "json": {}, + "binary": { + "data": { + "mimeType": "text/calendar", + "data": "QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KQ0FMU0NBTEU6R1JFR09SSUFODQpQUk9ESUQ6YWRhbWdpYmJvbnMvaWNzDQpNRVRIT0Q6UFVCTElTSA0KWC1XUi1DQUxOQU1FOlRlc3RDYWxlbmRhcg0KWC1QVUJMSVNIRUQtVFRMOlBUMUgNCkJFR0lOOlZFVkVOVA0KVUlEOkZpeGVkVUlEDQpTVU1NQVJZOlRlc3RFdmVudA0KRFRTVEFNUDoyMDIxMDcxNlQxMjA0MDBaDQpEVFNUQVJUOjIwMjEwNjE3VDEyMjE0NFoNCkRURU5EOjIwMjEwNjE4VDEyMjUzOVoNCkRFU0NSSVBUSU9OOlRlc3RpbmcgSWNhbGVuZGFyIG5vZGUNCkxPQ0FUSU9OOnJlbW90ZQ0KT1JHQU5JWkVSO0NOPW5vZGVxYTptYWlsdG86bm9kZXFAbjhuLmlvDQpBVFRFTkRFRTtSU1ZQPUZBTFNFO0NOPW5vZGVxYTptYWlsdG86bm9kOGVxYUBnbWFpbC5jb20NClJSVUxFOkRBSUxZO0lOVEVSVkFMPTM7Q09VTlQ9Mw0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRBUg0K", + "fileName": "event.ics", + "fileExtension": "ics" + } + } + } + ] + ] + } + } + ] + }, + "lastNodeExecuted": "FunctionItem" + }, + "executionData": { + "contextData": {}, + "nodeExecutionStack": [], + "waitingExecution": {} + } + }, + "mode": "cli", + "startedAt": "2021-07-16T12:04:08.442Z", + "stoppedAt": "2021-07-16T12:04:08.458Z", + "finished": true +} \ No newline at end of file diff --git a/workflows/228.json b/workflows/228.json new file mode 100644 index 0000000..80d50e7 --- /dev/null +++ b/workflows/228.json @@ -0,0 +1,97 @@ +{ + "id": 228, + "name": "iCalendar:createEventFile", + "active": false, + "nodes": [ + { + "parameters": {}, + "name": "Start", + "type": "n8n-nodes-base.start", + "typeVersion": 1, + "position": [ + 250, + 300 + ] + }, + { + "parameters": { + "title": "TestEvent", + "start": "=2021-07-17T10:21:44.572Z", + "end": "=2021-07-18T10:25:39.894Z", + "additionalFields": { + "attendeesUi": { + "attendeeValues": [ + { + "name": "nodeqa", + "email": "nod8eqa@gmail.com" + } + ] + }, + "calName": "TestCalendar", + "description": "Testing Icalendar node", + "location": "remote", + "recurrenceRule": "DAILY;INTERVAL=3;COUNT=3", + "organizerUi": { + "organizerValues": { + "name": "nodeqa", + "email": "nodeq@n8n.io" + } + }, + "uid": "FixedUID" + } + }, + "name": "iCalendar", + "type": "n8n-nodes-base.iCal", + "typeVersion": 1, + "position": [ + 550, + 300 + ] + }, + { + "parameters": { + "functionCode": "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n// verify that the created event file is correct\n\nkeys = ['BEGIN','VERSION','CALSCALE','PRODID','METHOD','X-WR-CALNAME','X-PUBLISHED-TTL','BEGIN','UID','SUMMARY','DTSTAMP','DTSTART','DTEND','DESCRIPTION','LOCATION','ORGANIZER;CN=nodeqa','ATTENDEE;RSVP=FALSE;CN=nodeqa','RRULE','END','END',]\n\n\ndata = getBinaryData().data.data;\n\nfiledata =( new Buffer(data, 'base64')).toString();\nfilekeys = filedata.split('\\n').map(line => (line.split(':')[0].trim())).filter( key => !!key);\n\nif (JSON.stringify(keys) !== JSON.stringify(filekeys)){\n throw new Error('Problem in iCalendar node');\n}\n\nreturn item;" + }, + "name": "FunctionItem", + "type": "n8n-nodes-base.functionItem", + "typeVersion": 1, + "position": [ + 750, + 300 + ] + } + ], + "connections": { + "iCalendar": { + "main": [ + [ + { + "node": "FunctionItem", + "type": "main", + "index": 0 + } + ] + ] + }, + "Start": { + "main": [ + [ + { + "node": "iCalendar", + "type": "main", + "index": 0 + } + ] + ] + }, + "FunctionItem": { + "main": [ + [] + ] + } + }, + "createdAt": "2021-07-08T15:05:47.656Z", + "updatedAt": "2021-07-16T12:03:58.775Z", + "settings": {}, + "staticData": null +} \ No newline at end of file