File tree Expand file tree Collapse file tree 2 files changed +192
-7
lines changed Expand file tree Collapse file tree 2 files changed +192
-7
lines changed Original file line number Diff line number Diff line change @@ -42,14 +42,10 @@ function processAction(msg, cfg) {
42
42
43
43
function emitData ( data ) {
44
44
const id = data . id ;
45
+ data . calendarId = cfg . calendarId ;
45
46
console . log ( 'Successfully created event with ID=' + id ) ;
46
- console . log ( JSON . stringify ( data ) ) ;
47
- let messageBody = {
48
- id,
49
- calendarId : cfg . calendarId
50
- } ;
51
47
console . log ( 'Emitting data ...' ) ;
52
- self . emit ( 'data' , messages . newMessageWithBody ( messageBody ) ) ;
48
+ self . emit ( 'data' , messages . newMessageWithBody ( data ) ) ;
53
49
}
54
50
55
51
function emitError ( e ) {
Original file line number Diff line number Diff line change 6
6
"required" :false ,
7
7
"title" :" Event ID"
8
8
},
9
+ "createdDateTime" : {
10
+ "type" :" string" ,
11
+ "required" :false ,
12
+ "title" :" Created Date Time"
13
+ },
14
+ "lastModifiedDateTime" : {
15
+ "type" :" string" ,
16
+ "required" :false ,
17
+ "title" :" Last Modified Date Time"
18
+ },
19
+ "originalStartTimeZone" : {
20
+ "type" :" string" ,
21
+ "required" :false ,
22
+ "title" :" Original Start Time Zone"
23
+ },
24
+ "originalEndTimeZone" : {
25
+ "type" :" string" ,
26
+ "required" :false ,
27
+ "title" :" Original End Time Zone"
28
+ },
29
+ "iCalUId" : {
30
+ "type" :" string" ,
31
+ "required" :false ,
32
+ "title" :" iCalUId"
33
+ },
34
+ "reminderMinutesBeforeStart" : {
35
+ "type" :" string" ,
36
+ "required" :false ,
37
+ "title" :" Reminder Minutes Before Start"
38
+ },
39
+ "subject" : {
40
+ "type" :" string" ,
41
+ "required" :false ,
42
+ "title" :" Subject"
43
+ },
44
+ "importance" : {
45
+ "type" :" string" ,
46
+ "required" :false ,
47
+ "title" :" Importance"
48
+ },
49
+ "sensitivity" : {
50
+ "type" :" string" ,
51
+ "required" :false ,
52
+ "title" :" Sensitivity"
53
+ },
54
+ "isAllDay" : {
55
+ "type" :" boolean" ,
56
+ "required" :false ,
57
+ "title" :" Is All Day"
58
+ },
59
+ "isCancelled" : {
60
+ "type" :" boolean" ,
61
+ "required" :false ,
62
+ "title" :" Is Cancelled"
63
+ },
64
+ "isOrganizer" : {
65
+ "type" :" boolean" ,
66
+ "required" :false ,
67
+ "title" :" Is Organizer"
68
+ },
69
+ "showAs" : {
70
+ "type" :" string" ,
71
+ "required" :false ,
72
+ "title" :" Show As"
73
+ },
74
+ "webLink" : {
75
+ "type" :" string" ,
76
+ "required" :false ,
77
+ "title" :" Web Link"
78
+ },
79
+ "body" : {
80
+ "type" :" object" ,
81
+ "required" :false ,
82
+ "title" :" Object" ,
83
+ "properties" : {
84
+ "contentType" : {
85
+ "type" :" string" ,
86
+ "required" :false ,
87
+ "title" :" Body Content-Type"
88
+ },
89
+ "content" : {
90
+ "type" :" string" ,
91
+ "required" :false ,
92
+ "title" :" Body Content"
93
+ }
94
+ }
95
+ },
96
+ "start" : {
97
+ "type" :" object" ,
98
+ "required" :false ,
99
+ "title" :" Start" ,
100
+ "properties" : {
101
+ "dateTime" : {
102
+ "type" :" string" ,
103
+ "required" :false ,
104
+ "title" :" Start Date and Time"
105
+ },
106
+ "timeZone" : {
107
+ "type" :" string" ,
108
+ "required" :false ,
109
+ "title" :" Start Time Zone"
110
+ }
111
+ }
112
+ },
113
+ "end" : {
114
+ "type" :" object" ,
115
+ "required" :false ,
116
+ "title" :" End" ,
117
+ "properties" : {
118
+ "dateTime" : {
119
+ "type" :" string" ,
120
+ "required" :false ,
121
+ "title" :" End Date and Time"
122
+ },
123
+ "timeZone" : {
124
+ "type" :" string" ,
125
+ "required" :false ,
126
+ "title" :" End Time Zone"
127
+ }
128
+ }
129
+ },
130
+ "location" : {
131
+ "type" :" object" ,
132
+ "required" :false ,
133
+ "title" :" Location" ,
134
+ "properties" : {
135
+ "displayName" : {
136
+ "type" :" string" ,
137
+ "required" :false ,
138
+ "title" :" Location Display Name"
139
+ },
140
+ "address" : {
141
+ "type" :" object" ,
142
+ "required" :false ,
143
+ "title" :" Location Address" ,
144
+ "properties" : {
145
+ "street" : {
146
+ "type" :" string" ,
147
+ "required" :false ,
148
+ "title" :" Location Street"
149
+ },
150
+ "city" : {
151
+ "type" :" string" ,
152
+ "required" :false ,
153
+ "title" :" Location City"
154
+ },
155
+ "state" : {
156
+ "type" :" string" ,
157
+ "required" :false ,
158
+ "title" :" Location State"
159
+ },
160
+ "countryOrRegion" : {
161
+ "type" :" string" ,
162
+ "required" :false ,
163
+ "title" :" Location Country/Region"
164
+ },
165
+ "postalCode" : {
166
+ "type" :" string" ,
167
+ "required" :false ,
168
+ "title" :" Location Postal Code"
169
+ }
170
+ }
171
+ }
172
+ }
173
+ },
174
+ "organizer" : {
175
+ "type" :" object" ,
176
+ "required" :false ,
177
+ "title" :" Organizer" ,
178
+ "properties" : {
179
+ "emailAddress" : {
180
+ "type" :" object" ,
181
+ "required" :false ,
182
+ "title" :" Organizer Address" ,
183
+ "properties" : {
184
+ "name" : {
185
+ "type" :" string" ,
186
+ "required" :false ,
187
+ "title" :" Organizer Name"
188
+ },
189
+ "address" : {
190
+ "type" :" string" ,
191
+ "required" :false ,
192
+ "title" :" Organizer Email Address"
193
+ }
194
+ }
195
+ }
196
+ }
197
+ },
9
198
"calendarId" : {
10
199
"type" :" string" ,
11
200
"required" :false ,
12
- "title" :" Event Calendar ID"
201
+ "title" :" Calendar ID"
13
202
}
14
203
}
15
204
}
You can’t perform that action at this time.
0 commit comments